1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.59 for orxonox 0.3.1_alpha. |
---|
4 | # |
---|
5 | # Report bugs to <orxonox-dev at 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.3.1_alpha' |
---|
273 | PACKAGE_STRING='orxonox 0.3.1_alpha' |
---|
274 | PACKAGE_BUGREPORT='orxonox-dev at 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os 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 mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE 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.3.1_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 | |
---|
849 | System types: |
---|
850 | --build=BUILD configure for building on BUILD [guessed] |
---|
851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
852 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
853 | _ACEOF |
---|
854 | fi |
---|
855 | |
---|
856 | if test -n "$ac_init_help"; then |
---|
857 | case $ac_init_help in |
---|
858 | short | recursive ) echo "Configuration of orxonox 0.3.1_alpha:";; |
---|
859 | esac |
---|
860 | cat <<\_ACEOF |
---|
861 | |
---|
862 | Optional Features: |
---|
863 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
864 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
865 | --disable-dependency-tracking speeds up one-time build |
---|
866 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
867 | --enable-debug compiles in debug mode. Lots of debug info about the |
---|
868 | game. |
---|
869 | --disable-modular-debug compiles in modular-debug mode, that logs |
---|
870 | differently on the many modules of orxonox. |
---|
871 | --disable-gtk Prevents GTK from being loaded |
---|
872 | --disable-curl Prevents libcURL from being loaded |
---|
873 | --enable-profile builds orxonox with profiling support |
---|
874 | --enable-efence builds orxonox with efence support |
---|
875 | --enable-documentation also builds the sDocumentation while make from |
---|
876 | srcdir |
---|
877 | |
---|
878 | Optional Packages: |
---|
879 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
880 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
881 | --with-shared-lib-path Tells the executable, where to look for the shared |
---|
882 | libraries. |
---|
883 | --with-sub-projects also builds the subProjects while make from srcdir |
---|
884 | |
---|
885 | Some influential environment variables: |
---|
886 | CXX C++ compiler command |
---|
887 | CXXFLAGS C++ compiler flags |
---|
888 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
889 | nonstandard directory <lib dir> |
---|
890 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
891 | headers in a nonstandard directory <include dir> |
---|
892 | CC C compiler command |
---|
893 | CFLAGS C compiler flags |
---|
894 | CPP C preprocessor |
---|
895 | |
---|
896 | Use these variables to override the choices made by `configure' or to help |
---|
897 | it to find libraries and programs with nonstandard names/locations. |
---|
898 | |
---|
899 | Report bugs to <orxonox-dev at mail.datacore.ch>. |
---|
900 | _ACEOF |
---|
901 | fi |
---|
902 | |
---|
903 | if test "$ac_init_help" = "recursive"; then |
---|
904 | # If there are subdirs, report their specific --help. |
---|
905 | ac_popdir=`pwd` |
---|
906 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
907 | test -d $ac_dir || continue |
---|
908 | ac_builddir=. |
---|
909 | |
---|
910 | if test "$ac_dir" != .; then |
---|
911 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
912 | # A "../" for each directory in $ac_dir_suffix. |
---|
913 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
914 | else |
---|
915 | ac_dir_suffix= ac_top_builddir= |
---|
916 | fi |
---|
917 | |
---|
918 | case $srcdir in |
---|
919 | .) # No --srcdir option. We are building in place. |
---|
920 | ac_srcdir=. |
---|
921 | if test -z "$ac_top_builddir"; then |
---|
922 | ac_top_srcdir=. |
---|
923 | else |
---|
924 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
925 | fi ;; |
---|
926 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
927 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
928 | ac_top_srcdir=$srcdir ;; |
---|
929 | *) # Relative path. |
---|
930 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
931 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
932 | esac |
---|
933 | |
---|
934 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
935 | # the directories may not exist. |
---|
936 | case `pwd` in |
---|
937 | .) ac_abs_builddir="$ac_dir";; |
---|
938 | *) |
---|
939 | case "$ac_dir" in |
---|
940 | .) ac_abs_builddir=`pwd`;; |
---|
941 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
942 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
943 | esac;; |
---|
944 | esac |
---|
945 | case $ac_abs_builddir in |
---|
946 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
947 | *) |
---|
948 | case ${ac_top_builddir}. in |
---|
949 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
950 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
951 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
952 | esac;; |
---|
953 | esac |
---|
954 | case $ac_abs_builddir in |
---|
955 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
956 | *) |
---|
957 | case $ac_srcdir in |
---|
958 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
959 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
960 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
961 | esac;; |
---|
962 | esac |
---|
963 | case $ac_abs_builddir in |
---|
964 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
965 | *) |
---|
966 | case $ac_top_srcdir in |
---|
967 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
968 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
969 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
970 | esac;; |
---|
971 | esac |
---|
972 | |
---|
973 | cd $ac_dir |
---|
974 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
975 | if test -f $ac_srcdir/configure.gnu; then |
---|
976 | echo |
---|
977 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
978 | elif test -f $ac_srcdir/configure; then |
---|
979 | echo |
---|
980 | $SHELL $ac_srcdir/configure --help=recursive |
---|
981 | elif test -f $ac_srcdir/configure.ac || |
---|
982 | test -f $ac_srcdir/configure.in; then |
---|
983 | echo |
---|
984 | $ac_configure --help |
---|
985 | else |
---|
986 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
987 | fi |
---|
988 | cd $ac_popdir |
---|
989 | done |
---|
990 | fi |
---|
991 | |
---|
992 | test -n "$ac_init_help" && exit 0 |
---|
993 | if $ac_init_version; then |
---|
994 | cat <<\_ACEOF |
---|
995 | orxonox configure 0.3.1_alpha |
---|
996 | generated by GNU Autoconf 2.59 |
---|
997 | |
---|
998 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
999 | This configure script is free software; the Free Software Foundation |
---|
1000 | gives unlimited permission to copy, distribute and modify it. |
---|
1001 | _ACEOF |
---|
1002 | exit 0 |
---|
1003 | fi |
---|
1004 | exec 5>config.log |
---|
1005 | cat >&5 <<_ACEOF |
---|
1006 | This file contains any messages produced by compilers while |
---|
1007 | running configure, to aid debugging if configure makes a mistake. |
---|
1008 | |
---|
1009 | It was created by orxonox $as_me 0.3.1_alpha, which was |
---|
1010 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
1011 | |
---|
1012 | $ $0 $@ |
---|
1013 | |
---|
1014 | _ACEOF |
---|
1015 | { |
---|
1016 | cat <<_ASUNAME |
---|
1017 | ## --------- ## |
---|
1018 | ## Platform. ## |
---|
1019 | ## --------- ## |
---|
1020 | |
---|
1021 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1022 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1023 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1024 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1025 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1026 | |
---|
1027 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1028 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1029 | |
---|
1030 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1031 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1032 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1033 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
1034 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1035 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1036 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1037 | |
---|
1038 | _ASUNAME |
---|
1039 | |
---|
1040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1041 | for as_dir in $PATH |
---|
1042 | do |
---|
1043 | IFS=$as_save_IFS |
---|
1044 | test -z "$as_dir" && as_dir=. |
---|
1045 | echo "PATH: $as_dir" |
---|
1046 | done |
---|
1047 | |
---|
1048 | } >&5 |
---|
1049 | |
---|
1050 | cat >&5 <<_ACEOF |
---|
1051 | |
---|
1052 | |
---|
1053 | ## ----------- ## |
---|
1054 | ## Core tests. ## |
---|
1055 | ## ----------- ## |
---|
1056 | |
---|
1057 | _ACEOF |
---|
1058 | |
---|
1059 | |
---|
1060 | # Keep a trace of the command line. |
---|
1061 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1062 | # Strip out --silent because we don't want to record it for future runs. |
---|
1063 | # Also quote any args containing shell meta-characters. |
---|
1064 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1065 | ac_configure_args= |
---|
1066 | ac_configure_args0= |
---|
1067 | ac_configure_args1= |
---|
1068 | ac_sep= |
---|
1069 | ac_must_keep_next=false |
---|
1070 | for ac_pass in 1 2 |
---|
1071 | do |
---|
1072 | for ac_arg |
---|
1073 | do |
---|
1074 | case $ac_arg in |
---|
1075 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1076 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1077 | | -silent | --silent | --silen | --sile | --sil) |
---|
1078 | continue ;; |
---|
1079 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1080 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1081 | esac |
---|
1082 | case $ac_pass in |
---|
1083 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1084 | 2) |
---|
1085 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1086 | if test $ac_must_keep_next = true; then |
---|
1087 | ac_must_keep_next=false # Got value, back to normal. |
---|
1088 | else |
---|
1089 | case $ac_arg in |
---|
1090 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1091 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1092 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1093 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1094 | case "$ac_configure_args0 " in |
---|
1095 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1096 | esac |
---|
1097 | ;; |
---|
1098 | -* ) ac_must_keep_next=true ;; |
---|
1099 | esac |
---|
1100 | fi |
---|
1101 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1102 | # Get rid of the leading space. |
---|
1103 | ac_sep=" " |
---|
1104 | ;; |
---|
1105 | esac |
---|
1106 | done |
---|
1107 | done |
---|
1108 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1109 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1110 | |
---|
1111 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1112 | # config.log. We remove comments because anyway the quotes in there |
---|
1113 | # would cause problems or look ugly. |
---|
1114 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1115 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1116 | trap 'exit_status=$? |
---|
1117 | # Save into config.log some information that might help in debugging. |
---|
1118 | { |
---|
1119 | echo |
---|
1120 | |
---|
1121 | cat <<\_ASBOX |
---|
1122 | ## ---------------- ## |
---|
1123 | ## Cache variables. ## |
---|
1124 | ## ---------------- ## |
---|
1125 | _ASBOX |
---|
1126 | echo |
---|
1127 | # The following way of writing the cache mishandles newlines in values, |
---|
1128 | { |
---|
1129 | (set) 2>&1 | |
---|
1130 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1131 | *ac_space=\ *) |
---|
1132 | sed -n \ |
---|
1133 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1134 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1135 | ;; |
---|
1136 | *) |
---|
1137 | sed -n \ |
---|
1138 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1139 | ;; |
---|
1140 | esac; |
---|
1141 | } |
---|
1142 | echo |
---|
1143 | |
---|
1144 | cat <<\_ASBOX |
---|
1145 | ## ----------------- ## |
---|
1146 | ## Output variables. ## |
---|
1147 | ## ----------------- ## |
---|
1148 | _ASBOX |
---|
1149 | echo |
---|
1150 | for ac_var in $ac_subst_vars |
---|
1151 | do |
---|
1152 | eval ac_val=$`echo $ac_var` |
---|
1153 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1154 | done | sort |
---|
1155 | echo |
---|
1156 | |
---|
1157 | if test -n "$ac_subst_files"; then |
---|
1158 | cat <<\_ASBOX |
---|
1159 | ## ------------- ## |
---|
1160 | ## Output files. ## |
---|
1161 | ## ------------- ## |
---|
1162 | _ASBOX |
---|
1163 | echo |
---|
1164 | for ac_var in $ac_subst_files |
---|
1165 | do |
---|
1166 | eval ac_val=$`echo $ac_var` |
---|
1167 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1168 | done | sort |
---|
1169 | echo |
---|
1170 | fi |
---|
1171 | |
---|
1172 | if test -s confdefs.h; then |
---|
1173 | cat <<\_ASBOX |
---|
1174 | ## ----------- ## |
---|
1175 | ## confdefs.h. ## |
---|
1176 | ## ----------- ## |
---|
1177 | _ASBOX |
---|
1178 | echo |
---|
1179 | sed "/^$/d" confdefs.h | sort |
---|
1180 | echo |
---|
1181 | fi |
---|
1182 | test "$ac_signal" != 0 && |
---|
1183 | echo "$as_me: caught signal $ac_signal" |
---|
1184 | echo "$as_me: exit $exit_status" |
---|
1185 | } >&5 |
---|
1186 | rm -f core *.core && |
---|
1187 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1188 | exit $exit_status |
---|
1189 | ' 0 |
---|
1190 | for ac_signal in 1 2 13 15; do |
---|
1191 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1192 | done |
---|
1193 | ac_signal=0 |
---|
1194 | |
---|
1195 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1196 | rm -rf conftest* confdefs.h |
---|
1197 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1198 | echo >confdefs.h |
---|
1199 | |
---|
1200 | # Predefined preprocessor variables. |
---|
1201 | |
---|
1202 | cat >>confdefs.h <<_ACEOF |
---|
1203 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1204 | _ACEOF |
---|
1205 | |
---|
1206 | |
---|
1207 | cat >>confdefs.h <<_ACEOF |
---|
1208 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1209 | _ACEOF |
---|
1210 | |
---|
1211 | |
---|
1212 | cat >>confdefs.h <<_ACEOF |
---|
1213 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1214 | _ACEOF |
---|
1215 | |
---|
1216 | |
---|
1217 | cat >>confdefs.h <<_ACEOF |
---|
1218 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1219 | _ACEOF |
---|
1220 | |
---|
1221 | |
---|
1222 | cat >>confdefs.h <<_ACEOF |
---|
1223 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1224 | _ACEOF |
---|
1225 | |
---|
1226 | |
---|
1227 | # Let the site file select an alternate cache file if it wants to. |
---|
1228 | # Prefer explicitly selected file to automatically selected ones. |
---|
1229 | if test -z "$CONFIG_SITE"; then |
---|
1230 | if test "x$prefix" != xNONE; then |
---|
1231 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1232 | else |
---|
1233 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1234 | fi |
---|
1235 | fi |
---|
1236 | for ac_site_file in $CONFIG_SITE; do |
---|
1237 | if test -r "$ac_site_file"; then |
---|
1238 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1239 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1240 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1241 | . "$ac_site_file" |
---|
1242 | fi |
---|
1243 | done |
---|
1244 | |
---|
1245 | if test -r "$cache_file"; then |
---|
1246 | # Some versions of bash will fail to source /dev/null (special |
---|
1247 | # files actually), so we avoid doing that. |
---|
1248 | if test -f "$cache_file"; then |
---|
1249 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1250 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1251 | case $cache_file in |
---|
1252 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1253 | *) . ./$cache_file;; |
---|
1254 | esac |
---|
1255 | fi |
---|
1256 | else |
---|
1257 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1258 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1259 | >$cache_file |
---|
1260 | fi |
---|
1261 | |
---|
1262 | # Check that the precious variables saved in the cache have kept the same |
---|
1263 | # value. |
---|
1264 | ac_cache_corrupted=false |
---|
1265 | for ac_var in `(set) 2>&1 | |
---|
1266 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1267 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1268 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1269 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1270 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1271 | case $ac_old_set,$ac_new_set in |
---|
1272 | set,) |
---|
1273 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1274 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1275 | ac_cache_corrupted=: ;; |
---|
1276 | ,set) |
---|
1277 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1278 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1279 | ac_cache_corrupted=: ;; |
---|
1280 | ,);; |
---|
1281 | *) |
---|
1282 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1283 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1284 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1285 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1286 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1287 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1288 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1289 | ac_cache_corrupted=: |
---|
1290 | fi;; |
---|
1291 | esac |
---|
1292 | # Pass precious variables to config.status. |
---|
1293 | if test "$ac_new_set" = set; then |
---|
1294 | case $ac_new_val in |
---|
1295 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1296 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1297 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1298 | esac |
---|
1299 | case " $ac_configure_args " in |
---|
1300 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1301 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1302 | esac |
---|
1303 | fi |
---|
1304 | done |
---|
1305 | if $ac_cache_corrupted; then |
---|
1306 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1307 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1308 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1309 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1310 | { (exit 1); exit 1; }; } |
---|
1311 | fi |
---|
1312 | |
---|
1313 | ac_ext=c |
---|
1314 | ac_cpp='$CPP $CPPFLAGS' |
---|
1315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1318 | |
---|
1319 | |
---|
1320 | |
---|
1321 | |
---|
1322 | |
---|
1323 | |
---|
1324 | |
---|
1325 | |
---|
1326 | |
---|
1327 | |
---|
1328 | |
---|
1329 | |
---|
1330 | |
---|
1331 | |
---|
1332 | |
---|
1333 | |
---|
1334 | |
---|
1335 | |
---|
1336 | |
---|
1337 | |
---|
1338 | |
---|
1339 | |
---|
1340 | |
---|
1341 | |
---|
1342 | |
---|
1343 | |
---|
1344 | |
---|
1345 | |
---|
1346 | ## Detect the canonical host and target build environment. |
---|
1347 | ac_aux_dir= |
---|
1348 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1349 | if test -f $ac_dir/install-sh; then |
---|
1350 | ac_aux_dir=$ac_dir |
---|
1351 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1352 | break |
---|
1353 | elif test -f $ac_dir/install.sh; then |
---|
1354 | ac_aux_dir=$ac_dir |
---|
1355 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1356 | break |
---|
1357 | elif test -f $ac_dir/shtool; then |
---|
1358 | ac_aux_dir=$ac_dir |
---|
1359 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1360 | break |
---|
1361 | fi |
---|
1362 | done |
---|
1363 | if test -z "$ac_aux_dir"; then |
---|
1364 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1365 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1366 | { (exit 1); exit 1; }; } |
---|
1367 | fi |
---|
1368 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1369 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1370 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1371 | |
---|
1372 | # Make sure we can run config.sub. |
---|
1373 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1374 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1375 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1376 | { (exit 1); exit 1; }; } |
---|
1377 | |
---|
1378 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1379 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1380 | if test "${ac_cv_build+set}" = set; then |
---|
1381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1382 | else |
---|
1383 | ac_cv_build_alias=$build_alias |
---|
1384 | test -z "$ac_cv_build_alias" && |
---|
1385 | ac_cv_build_alias=`$ac_config_guess` |
---|
1386 | test -z "$ac_cv_build_alias" && |
---|
1387 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1388 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1389 | { (exit 1); exit 1; }; } |
---|
1390 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1391 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1392 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1393 | { (exit 1); exit 1; }; } |
---|
1394 | |
---|
1395 | fi |
---|
1396 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1397 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1398 | build=$ac_cv_build |
---|
1399 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1400 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1401 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1402 | |
---|
1403 | |
---|
1404 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1405 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1406 | if test "${ac_cv_host+set}" = set; then |
---|
1407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1408 | else |
---|
1409 | ac_cv_host_alias=$host_alias |
---|
1410 | test -z "$ac_cv_host_alias" && |
---|
1411 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1412 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1413 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1414 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1415 | { (exit 1); exit 1; }; } |
---|
1416 | |
---|
1417 | fi |
---|
1418 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1419 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1420 | host=$ac_cv_host |
---|
1421 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1422 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1423 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1424 | |
---|
1425 | |
---|
1426 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
1427 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
1428 | if test "${ac_cv_target+set}" = set; then |
---|
1429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1430 | else |
---|
1431 | ac_cv_target_alias=$target_alias |
---|
1432 | test "x$ac_cv_target_alias" = "x" && |
---|
1433 | ac_cv_target_alias=$ac_cv_host_alias |
---|
1434 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
1435 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
1436 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
1437 | { (exit 1); exit 1; }; } |
---|
1438 | |
---|
1439 | fi |
---|
1440 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
1441 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
1442 | target=$ac_cv_target |
---|
1443 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1444 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1445 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1446 | |
---|
1447 | |
---|
1448 | # The aliases save the names the user supplied, while $host etc. |
---|
1449 | # will get canonicalized. |
---|
1450 | test -n "$target_alias" && |
---|
1451 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
1452 | NONENONEs,x,x, && |
---|
1453 | program_prefix=${target_alias}- |
---|
1454 | |
---|
1455 | am__api_version="1.8" |
---|
1456 | # Find a good install program. We prefer a C program (faster), |
---|
1457 | # so one script is as good as another. But avoid the broken or |
---|
1458 | # incompatible versions: |
---|
1459 | # SysV /etc/install, /usr/sbin/install |
---|
1460 | # SunOS /usr/etc/install |
---|
1461 | # IRIX /sbin/install |
---|
1462 | # AIX /bin/install |
---|
1463 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1464 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1465 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1466 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1467 | # OS/2's system install, which has a completely different semantic |
---|
1468 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1469 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1470 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1471 | if test -z "$INSTALL"; then |
---|
1472 | if test "${ac_cv_path_install+set}" = set; then |
---|
1473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1474 | else |
---|
1475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1476 | for as_dir in $PATH |
---|
1477 | do |
---|
1478 | IFS=$as_save_IFS |
---|
1479 | test -z "$as_dir" && as_dir=. |
---|
1480 | # Account for people who put trailing slashes in PATH elements. |
---|
1481 | case $as_dir/ in |
---|
1482 | ./ | .// | /cC/* | \ |
---|
1483 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1484 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
1485 | /usr/ucb/* ) ;; |
---|
1486 | *) |
---|
1487 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1488 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1489 | # by default. |
---|
1490 | for ac_prog in ginstall scoinst install; do |
---|
1491 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1492 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1493 | if test $ac_prog = install && |
---|
1494 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1495 | # AIX install. It has an incompatible calling convention. |
---|
1496 | : |
---|
1497 | elif test $ac_prog = install && |
---|
1498 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1499 | # program-specific install script used by HP pwplus--don't use. |
---|
1500 | : |
---|
1501 | else |
---|
1502 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1503 | break 3 |
---|
1504 | fi |
---|
1505 | fi |
---|
1506 | done |
---|
1507 | done |
---|
1508 | ;; |
---|
1509 | esac |
---|
1510 | done |
---|
1511 | |
---|
1512 | |
---|
1513 | fi |
---|
1514 | if test "${ac_cv_path_install+set}" = set; then |
---|
1515 | INSTALL=$ac_cv_path_install |
---|
1516 | else |
---|
1517 | # As a last resort, use the slow shell script. We don't cache a |
---|
1518 | # path for INSTALL within a source directory, because that will |
---|
1519 | # break other packages using the cache if that directory is |
---|
1520 | # removed, or if the path is relative. |
---|
1521 | INSTALL=$ac_install_sh |
---|
1522 | fi |
---|
1523 | fi |
---|
1524 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1525 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1526 | |
---|
1527 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1528 | # It thinks the first close brace ends the variable substitution. |
---|
1529 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1530 | |
---|
1531 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1532 | |
---|
1533 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1534 | |
---|
1535 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1536 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1537 | # Just in case |
---|
1538 | sleep 1 |
---|
1539 | echo timestamp > conftest.file |
---|
1540 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1541 | # arguments. Must try -L first in case configure is actually a |
---|
1542 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1543 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1544 | # directory). |
---|
1545 | if ( |
---|
1546 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1547 | if test "$*" = "X"; then |
---|
1548 | # -L didn't work. |
---|
1549 | set X `ls -t $srcdir/configure conftest.file` |
---|
1550 | fi |
---|
1551 | rm -f conftest.file |
---|
1552 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1553 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1554 | |
---|
1555 | # If neither matched, then we have a broken ls. This can happen |
---|
1556 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1557 | # broken ls alias from the environment. This has actually |
---|
1558 | # happened. Such a system could not be considered "sane". |
---|
1559 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1560 | alias in your environment" >&5 |
---|
1561 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1562 | alias in your environment" >&2;} |
---|
1563 | { (exit 1); exit 1; }; } |
---|
1564 | fi |
---|
1565 | |
---|
1566 | test "$2" = conftest.file |
---|
1567 | ) |
---|
1568 | then |
---|
1569 | # Ok. |
---|
1570 | : |
---|
1571 | else |
---|
1572 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1573 | Check your system clock" >&5 |
---|
1574 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1575 | Check your system clock" >&2;} |
---|
1576 | { (exit 1); exit 1; }; } |
---|
1577 | fi |
---|
1578 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1579 | echo "${ECHO_T}yes" >&6 |
---|
1580 | test "$program_prefix" != NONE && |
---|
1581 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1582 | # Use a double $ so make ignores it. |
---|
1583 | test "$program_suffix" != NONE && |
---|
1584 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1585 | # Double any \ or $. echo might interpret backslashes. |
---|
1586 | # By default was `s,x,x', remove it if useless. |
---|
1587 | cat <<\_ACEOF >conftest.sed |
---|
1588 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1589 | _ACEOF |
---|
1590 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1591 | rm conftest.sed |
---|
1592 | |
---|
1593 | # expand $ac_aux_dir to an absolute path |
---|
1594 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1595 | |
---|
1596 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1597 | # Use eval to expand $SHELL |
---|
1598 | if eval "$MISSING --run true"; then |
---|
1599 | am_missing_run="$MISSING --run " |
---|
1600 | else |
---|
1601 | am_missing_run= |
---|
1602 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1603 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1604 | fi |
---|
1605 | |
---|
1606 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
---|
1607 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
---|
1608 | # argument. Indeed, we sometimes output rules like |
---|
1609 | # $(mkdir_p) $(somedir) |
---|
1610 | # where $(somedir) is conditionally defined. |
---|
1611 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more |
---|
1612 | # expensive solution, as it forces Make to start a sub-shell.) |
---|
1613 | mkdir_p='mkdir -p -- .' |
---|
1614 | else |
---|
1615 | # On NextStep and OpenStep, the `mkdir' command does not |
---|
1616 | # recognize any option. It will interpret all options as |
---|
1617 | # directories to create, and then abort because `.' already |
---|
1618 | # exists. |
---|
1619 | for d in ./-p ./--version; |
---|
1620 | do |
---|
1621 | test -d $d && rmdir $d |
---|
1622 | done |
---|
1623 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
---|
1624 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
---|
1625 | mkdir_p='$(mkinstalldirs)' |
---|
1626 | else |
---|
1627 | mkdir_p='$(install_sh) -d' |
---|
1628 | fi |
---|
1629 | fi |
---|
1630 | |
---|
1631 | for ac_prog in gawk mawk nawk awk |
---|
1632 | do |
---|
1633 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1634 | set dummy $ac_prog; ac_word=$2 |
---|
1635 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1637 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1639 | else |
---|
1640 | if test -n "$AWK"; then |
---|
1641 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1642 | else |
---|
1643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1644 | for as_dir in $PATH |
---|
1645 | do |
---|
1646 | IFS=$as_save_IFS |
---|
1647 | test -z "$as_dir" && as_dir=. |
---|
1648 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1649 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1650 | ac_cv_prog_AWK="$ac_prog" |
---|
1651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1652 | break 2 |
---|
1653 | fi |
---|
1654 | done |
---|
1655 | done |
---|
1656 | |
---|
1657 | fi |
---|
1658 | fi |
---|
1659 | AWK=$ac_cv_prog_AWK |
---|
1660 | if test -n "$AWK"; then |
---|
1661 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1662 | echo "${ECHO_T}$AWK" >&6 |
---|
1663 | else |
---|
1664 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1665 | echo "${ECHO_T}no" >&6 |
---|
1666 | fi |
---|
1667 | |
---|
1668 | test -n "$AWK" && break |
---|
1669 | done |
---|
1670 | |
---|
1671 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1672 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1673 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
1674 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1676 | else |
---|
1677 | cat >conftest.make <<\_ACEOF |
---|
1678 | all: |
---|
1679 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1680 | _ACEOF |
---|
1681 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1682 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1683 | if test -n "$ac_maketemp"; then |
---|
1684 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1685 | else |
---|
1686 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1687 | fi |
---|
1688 | rm -f conftest.make |
---|
1689 | fi |
---|
1690 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1691 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1692 | echo "${ECHO_T}yes" >&6 |
---|
1693 | SET_MAKE= |
---|
1694 | else |
---|
1695 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1696 | echo "${ECHO_T}no" >&6 |
---|
1697 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1698 | fi |
---|
1699 | |
---|
1700 | rm -rf .tst 2>/dev/null |
---|
1701 | mkdir .tst 2>/dev/null |
---|
1702 | if test -d .tst; then |
---|
1703 | am__leading_dot=. |
---|
1704 | else |
---|
1705 | am__leading_dot=_ |
---|
1706 | fi |
---|
1707 | rmdir .tst 2>/dev/null |
---|
1708 | |
---|
1709 | # test to see if srcdir already configured |
---|
1710 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1711 | test -f $srcdir/config.status; then |
---|
1712 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1713 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1714 | { (exit 1); exit 1; }; } |
---|
1715 | fi |
---|
1716 | |
---|
1717 | # test whether we have cygpath |
---|
1718 | if test -z "$CYGPATH_W"; then |
---|
1719 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1720 | CYGPATH_W='cygpath -w' |
---|
1721 | else |
---|
1722 | CYGPATH_W=echo |
---|
1723 | fi |
---|
1724 | fi |
---|
1725 | |
---|
1726 | |
---|
1727 | # Define the identity of the package. |
---|
1728 | PACKAGE='orxonox' |
---|
1729 | VERSION='0.3.1_alpha' |
---|
1730 | |
---|
1731 | |
---|
1732 | cat >>confdefs.h <<_ACEOF |
---|
1733 | #define PACKAGE "$PACKAGE" |
---|
1734 | _ACEOF |
---|
1735 | |
---|
1736 | |
---|
1737 | cat >>confdefs.h <<_ACEOF |
---|
1738 | #define VERSION "$VERSION" |
---|
1739 | _ACEOF |
---|
1740 | |
---|
1741 | # Some tools Automake needs. |
---|
1742 | |
---|
1743 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1744 | |
---|
1745 | |
---|
1746 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1747 | |
---|
1748 | |
---|
1749 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1750 | |
---|
1751 | |
---|
1752 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1753 | |
---|
1754 | |
---|
1755 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1756 | |
---|
1757 | |
---|
1758 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1759 | |
---|
1760 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1761 | |
---|
1762 | # Installed binaries are usually stripped using `strip' when the user |
---|
1763 | # run `make install-strip'. However `strip' might not be the right |
---|
1764 | # tool to use in cross-compilation environments, therefore Automake |
---|
1765 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1766 | if test "$cross_compiling" != no; then |
---|
1767 | if test -n "$ac_tool_prefix"; then |
---|
1768 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1769 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1772 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1774 | else |
---|
1775 | if test -n "$STRIP"; then |
---|
1776 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1777 | else |
---|
1778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1779 | for as_dir in $PATH |
---|
1780 | do |
---|
1781 | IFS=$as_save_IFS |
---|
1782 | test -z "$as_dir" && as_dir=. |
---|
1783 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1785 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1787 | break 2 |
---|
1788 | fi |
---|
1789 | done |
---|
1790 | done |
---|
1791 | |
---|
1792 | fi |
---|
1793 | fi |
---|
1794 | STRIP=$ac_cv_prog_STRIP |
---|
1795 | if test -n "$STRIP"; then |
---|
1796 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1797 | echo "${ECHO_T}$STRIP" >&6 |
---|
1798 | else |
---|
1799 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1800 | echo "${ECHO_T}no" >&6 |
---|
1801 | fi |
---|
1802 | |
---|
1803 | fi |
---|
1804 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1805 | ac_ct_STRIP=$STRIP |
---|
1806 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1807 | set dummy strip; ac_word=$2 |
---|
1808 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1810 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1812 | else |
---|
1813 | if test -n "$ac_ct_STRIP"; then |
---|
1814 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1815 | else |
---|
1816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1817 | for as_dir in $PATH |
---|
1818 | do |
---|
1819 | IFS=$as_save_IFS |
---|
1820 | test -z "$as_dir" && as_dir=. |
---|
1821 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1822 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1823 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1825 | break 2 |
---|
1826 | fi |
---|
1827 | done |
---|
1828 | done |
---|
1829 | |
---|
1830 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1831 | fi |
---|
1832 | fi |
---|
1833 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1834 | if test -n "$ac_ct_STRIP"; then |
---|
1835 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1836 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1837 | else |
---|
1838 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1839 | echo "${ECHO_T}no" >&6 |
---|
1840 | fi |
---|
1841 | |
---|
1842 | STRIP=$ac_ct_STRIP |
---|
1843 | else |
---|
1844 | STRIP="$ac_cv_prog_STRIP" |
---|
1845 | fi |
---|
1846 | |
---|
1847 | fi |
---|
1848 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1849 | |
---|
1850 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1851 | # some platforms. |
---|
1852 | |
---|
1853 | |
---|
1854 | |
---|
1855 | |
---|
1856 | |
---|
1857 | ac_config_headers="$ac_config_headers config.h" |
---|
1858 | |
---|
1859 | |
---|
1860 | ######################### |
---|
1861 | ## Checks for programs ## |
---|
1862 | ######################### |
---|
1863 | ac_ext=cc |
---|
1864 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1865 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1866 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1867 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1868 | if test -n "$ac_tool_prefix"; then |
---|
1869 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1870 | do |
---|
1871 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1872 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1873 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1874 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1875 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1877 | else |
---|
1878 | if test -n "$CXX"; then |
---|
1879 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1880 | else |
---|
1881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1882 | for as_dir in $PATH |
---|
1883 | do |
---|
1884 | IFS=$as_save_IFS |
---|
1885 | test -z "$as_dir" && as_dir=. |
---|
1886 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1888 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1889 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1890 | break 2 |
---|
1891 | fi |
---|
1892 | done |
---|
1893 | done |
---|
1894 | |
---|
1895 | fi |
---|
1896 | fi |
---|
1897 | CXX=$ac_cv_prog_CXX |
---|
1898 | if test -n "$CXX"; then |
---|
1899 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1900 | echo "${ECHO_T}$CXX" >&6 |
---|
1901 | else |
---|
1902 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1903 | echo "${ECHO_T}no" >&6 |
---|
1904 | fi |
---|
1905 | |
---|
1906 | test -n "$CXX" && break |
---|
1907 | done |
---|
1908 | fi |
---|
1909 | if test -z "$CXX"; then |
---|
1910 | ac_ct_CXX=$CXX |
---|
1911 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1912 | do |
---|
1913 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1914 | set dummy $ac_prog; ac_word=$2 |
---|
1915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1917 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1919 | else |
---|
1920 | if test -n "$ac_ct_CXX"; then |
---|
1921 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1922 | else |
---|
1923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1924 | for as_dir in $PATH |
---|
1925 | do |
---|
1926 | IFS=$as_save_IFS |
---|
1927 | test -z "$as_dir" && as_dir=. |
---|
1928 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1930 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1932 | break 2 |
---|
1933 | fi |
---|
1934 | done |
---|
1935 | done |
---|
1936 | |
---|
1937 | fi |
---|
1938 | fi |
---|
1939 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1940 | if test -n "$ac_ct_CXX"; then |
---|
1941 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1942 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1943 | else |
---|
1944 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1945 | echo "${ECHO_T}no" >&6 |
---|
1946 | fi |
---|
1947 | |
---|
1948 | test -n "$ac_ct_CXX" && break |
---|
1949 | done |
---|
1950 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1951 | |
---|
1952 | CXX=$ac_ct_CXX |
---|
1953 | fi |
---|
1954 | |
---|
1955 | |
---|
1956 | # Provide some information about the compiler. |
---|
1957 | echo "$as_me:$LINENO:" \ |
---|
1958 | "checking for C++ compiler version" >&5 |
---|
1959 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1960 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1961 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1962 | ac_status=$? |
---|
1963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1964 | (exit $ac_status); } |
---|
1965 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1966 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1967 | ac_status=$? |
---|
1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1969 | (exit $ac_status); } |
---|
1970 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1971 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1972 | ac_status=$? |
---|
1973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1974 | (exit $ac_status); } |
---|
1975 | |
---|
1976 | cat >conftest.$ac_ext <<_ACEOF |
---|
1977 | /* confdefs.h. */ |
---|
1978 | _ACEOF |
---|
1979 | cat confdefs.h >>conftest.$ac_ext |
---|
1980 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1981 | /* end confdefs.h. */ |
---|
1982 | |
---|
1983 | int |
---|
1984 | main () |
---|
1985 | { |
---|
1986 | |
---|
1987 | ; |
---|
1988 | return 0; |
---|
1989 | } |
---|
1990 | _ACEOF |
---|
1991 | ac_clean_files_save=$ac_clean_files |
---|
1992 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1993 | # Try to create an executable without -o first, disregard a.out. |
---|
1994 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1995 | # of exeext. |
---|
1996 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
1997 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
1998 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1999 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
2000 | (eval $ac_link_default) 2>&5 |
---|
2001 | ac_status=$? |
---|
2002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2003 | (exit $ac_status); }; then |
---|
2004 | # Find the output, starting from the most likely. This scheme is |
---|
2005 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
2006 | # resort. |
---|
2007 | |
---|
2008 | # Be careful to initialize this variable, since it used to be cached. |
---|
2009 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
2010 | ac_cv_exeext= |
---|
2011 | # b.out is created by i960 compilers. |
---|
2012 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
2013 | do |
---|
2014 | test -f "$ac_file" || continue |
---|
2015 | case $ac_file in |
---|
2016 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
2017 | ;; |
---|
2018 | conftest.$ac_ext ) |
---|
2019 | # This is the source file. |
---|
2020 | ;; |
---|
2021 | [ab].out ) |
---|
2022 | # We found the default executable, but exeext='' is most |
---|
2023 | # certainly right. |
---|
2024 | break;; |
---|
2025 | *.* ) |
---|
2026 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2027 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
2028 | # but it would be cool to find out if it's true. Does anybody |
---|
2029 | # maintain Libtool? --akim. |
---|
2030 | export ac_cv_exeext |
---|
2031 | break;; |
---|
2032 | * ) |
---|
2033 | break;; |
---|
2034 | esac |
---|
2035 | done |
---|
2036 | else |
---|
2037 | echo "$as_me: failed program was:" >&5 |
---|
2038 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2039 | |
---|
2040 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
2041 | See \`config.log' for more details." >&5 |
---|
2042 | echo "$as_me: error: C++ compiler cannot create executables |
---|
2043 | See \`config.log' for more details." >&2;} |
---|
2044 | { (exit 77); exit 77; }; } |
---|
2045 | fi |
---|
2046 | |
---|
2047 | ac_exeext=$ac_cv_exeext |
---|
2048 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
2049 | echo "${ECHO_T}$ac_file" >&6 |
---|
2050 | |
---|
2051 | # Check the compiler produces executables we can run. If not, either |
---|
2052 | # the compiler is broken, or we cross compile. |
---|
2053 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
2054 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
2055 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
2056 | # If not cross compiling, check that we can run a simple program. |
---|
2057 | if test "$cross_compiling" != yes; then |
---|
2058 | if { ac_try='./$ac_file' |
---|
2059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2060 | (eval $ac_try) 2>&5 |
---|
2061 | ac_status=$? |
---|
2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2063 | (exit $ac_status); }; }; then |
---|
2064 | cross_compiling=no |
---|
2065 | else |
---|
2066 | if test "$cross_compiling" = maybe; then |
---|
2067 | cross_compiling=yes |
---|
2068 | else |
---|
2069 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
2070 | If you meant to cross compile, use \`--host'. |
---|
2071 | See \`config.log' for more details." >&5 |
---|
2072 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
2073 | If you meant to cross compile, use \`--host'. |
---|
2074 | See \`config.log' for more details." >&2;} |
---|
2075 | { (exit 1); exit 1; }; } |
---|
2076 | fi |
---|
2077 | fi |
---|
2078 | fi |
---|
2079 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2080 | echo "${ECHO_T}yes" >&6 |
---|
2081 | |
---|
2082 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2083 | ac_clean_files=$ac_clean_files_save |
---|
2084 | # Check the compiler produces executables we can run. If not, either |
---|
2085 | # the compiler is broken, or we cross compile. |
---|
2086 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2087 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2088 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2089 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2090 | |
---|
2091 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2092 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2094 | (eval $ac_link) 2>&5 |
---|
2095 | ac_status=$? |
---|
2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2097 | (exit $ac_status); }; then |
---|
2098 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2099 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2100 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2101 | # `rm'. |
---|
2102 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2103 | test -f "$ac_file" || continue |
---|
2104 | case $ac_file in |
---|
2105 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2106 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2107 | export ac_cv_exeext |
---|
2108 | break;; |
---|
2109 | * ) break;; |
---|
2110 | esac |
---|
2111 | done |
---|
2112 | else |
---|
2113 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2114 | See \`config.log' for more details." >&5 |
---|
2115 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2116 | See \`config.log' for more details." >&2;} |
---|
2117 | { (exit 1); exit 1; }; } |
---|
2118 | fi |
---|
2119 | |
---|
2120 | rm -f conftest$ac_cv_exeext |
---|
2121 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2122 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2123 | |
---|
2124 | rm -f conftest.$ac_ext |
---|
2125 | EXEEXT=$ac_cv_exeext |
---|
2126 | ac_exeext=$EXEEXT |
---|
2127 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2128 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2129 | if test "${ac_cv_objext+set}" = set; then |
---|
2130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2131 | else |
---|
2132 | cat >conftest.$ac_ext <<_ACEOF |
---|
2133 | /* confdefs.h. */ |
---|
2134 | _ACEOF |
---|
2135 | cat confdefs.h >>conftest.$ac_ext |
---|
2136 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2137 | /* end confdefs.h. */ |
---|
2138 | |
---|
2139 | int |
---|
2140 | main () |
---|
2141 | { |
---|
2142 | |
---|
2143 | ; |
---|
2144 | return 0; |
---|
2145 | } |
---|
2146 | _ACEOF |
---|
2147 | rm -f conftest.o conftest.obj |
---|
2148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2149 | (eval $ac_compile) 2>&5 |
---|
2150 | ac_status=$? |
---|
2151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2152 | (exit $ac_status); }; then |
---|
2153 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2154 | case $ac_file in |
---|
2155 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2156 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2157 | break;; |
---|
2158 | esac |
---|
2159 | done |
---|
2160 | else |
---|
2161 | echo "$as_me: failed program was:" >&5 |
---|
2162 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2163 | |
---|
2164 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2165 | See \`config.log' for more details." >&5 |
---|
2166 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2167 | See \`config.log' for more details." >&2;} |
---|
2168 | { (exit 1); exit 1; }; } |
---|
2169 | fi |
---|
2170 | |
---|
2171 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2172 | fi |
---|
2173 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2174 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2175 | OBJEXT=$ac_cv_objext |
---|
2176 | ac_objext=$OBJEXT |
---|
2177 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2178 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2179 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2181 | else |
---|
2182 | cat >conftest.$ac_ext <<_ACEOF |
---|
2183 | /* confdefs.h. */ |
---|
2184 | _ACEOF |
---|
2185 | cat confdefs.h >>conftest.$ac_ext |
---|
2186 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2187 | /* end confdefs.h. */ |
---|
2188 | |
---|
2189 | int |
---|
2190 | main () |
---|
2191 | { |
---|
2192 | #ifndef __GNUC__ |
---|
2193 | choke me |
---|
2194 | #endif |
---|
2195 | |
---|
2196 | ; |
---|
2197 | return 0; |
---|
2198 | } |
---|
2199 | _ACEOF |
---|
2200 | rm -f conftest.$ac_objext |
---|
2201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2202 | (eval $ac_compile) 2>conftest.er1 |
---|
2203 | ac_status=$? |
---|
2204 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2205 | rm -f conftest.er1 |
---|
2206 | cat conftest.err >&5 |
---|
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2208 | (exit $ac_status); } && |
---|
2209 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2210 | || test ! -s conftest.err' |
---|
2211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2212 | (eval $ac_try) 2>&5 |
---|
2213 | ac_status=$? |
---|
2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2215 | (exit $ac_status); }; } && |
---|
2216 | { ac_try='test -s conftest.$ac_objext' |
---|
2217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2218 | (eval $ac_try) 2>&5 |
---|
2219 | ac_status=$? |
---|
2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2221 | (exit $ac_status); }; }; then |
---|
2222 | ac_compiler_gnu=yes |
---|
2223 | else |
---|
2224 | echo "$as_me: failed program was:" >&5 |
---|
2225 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2226 | |
---|
2227 | ac_compiler_gnu=no |
---|
2228 | fi |
---|
2229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2230 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2231 | |
---|
2232 | fi |
---|
2233 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2234 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2235 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2236 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2237 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2238 | CXXFLAGS="-g" |
---|
2239 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2240 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2241 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2243 | else |
---|
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 | |
---|
2251 | int |
---|
2252 | main () |
---|
2253 | { |
---|
2254 | |
---|
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 | ac_cv_prog_cxx_g=yes |
---|
2282 | else |
---|
2283 | echo "$as_me: failed program was:" >&5 |
---|
2284 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2285 | |
---|
2286 | ac_cv_prog_cxx_g=no |
---|
2287 | fi |
---|
2288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2289 | fi |
---|
2290 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2291 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2292 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2293 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2294 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2295 | if test "$GXX" = yes; then |
---|
2296 | CXXFLAGS="-g -O2" |
---|
2297 | else |
---|
2298 | CXXFLAGS="-g" |
---|
2299 | fi |
---|
2300 | else |
---|
2301 | if test "$GXX" = yes; then |
---|
2302 | CXXFLAGS="-O2" |
---|
2303 | else |
---|
2304 | CXXFLAGS= |
---|
2305 | fi |
---|
2306 | fi |
---|
2307 | for ac_declaration in \ |
---|
2308 | '' \ |
---|
2309 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2310 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2311 | 'extern "C" void exit (int) throw ();' \ |
---|
2312 | 'extern "C" void exit (int);' \ |
---|
2313 | 'void exit (int);' |
---|
2314 | do |
---|
2315 | cat >conftest.$ac_ext <<_ACEOF |
---|
2316 | /* confdefs.h. */ |
---|
2317 | _ACEOF |
---|
2318 | cat confdefs.h >>conftest.$ac_ext |
---|
2319 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2320 | /* end confdefs.h. */ |
---|
2321 | $ac_declaration |
---|
2322 | #include <stdlib.h> |
---|
2323 | int |
---|
2324 | main () |
---|
2325 | { |
---|
2326 | exit (42); |
---|
2327 | ; |
---|
2328 | return 0; |
---|
2329 | } |
---|
2330 | _ACEOF |
---|
2331 | rm -f conftest.$ac_objext |
---|
2332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2333 | (eval $ac_compile) 2>conftest.er1 |
---|
2334 | ac_status=$? |
---|
2335 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2336 | rm -f conftest.er1 |
---|
2337 | cat conftest.err >&5 |
---|
2338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2339 | (exit $ac_status); } && |
---|
2340 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2341 | || test ! -s conftest.err' |
---|
2342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2343 | (eval $ac_try) 2>&5 |
---|
2344 | ac_status=$? |
---|
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2346 | (exit $ac_status); }; } && |
---|
2347 | { ac_try='test -s conftest.$ac_objext' |
---|
2348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2349 | (eval $ac_try) 2>&5 |
---|
2350 | ac_status=$? |
---|
2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2352 | (exit $ac_status); }; }; then |
---|
2353 | : |
---|
2354 | else |
---|
2355 | echo "$as_me: failed program was:" >&5 |
---|
2356 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2357 | |
---|
2358 | continue |
---|
2359 | fi |
---|
2360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2361 | cat >conftest.$ac_ext <<_ACEOF |
---|
2362 | /* confdefs.h. */ |
---|
2363 | _ACEOF |
---|
2364 | cat confdefs.h >>conftest.$ac_ext |
---|
2365 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2366 | /* end confdefs.h. */ |
---|
2367 | $ac_declaration |
---|
2368 | int |
---|
2369 | main () |
---|
2370 | { |
---|
2371 | exit (42); |
---|
2372 | ; |
---|
2373 | return 0; |
---|
2374 | } |
---|
2375 | _ACEOF |
---|
2376 | rm -f conftest.$ac_objext |
---|
2377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2378 | (eval $ac_compile) 2>conftest.er1 |
---|
2379 | ac_status=$? |
---|
2380 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
2381 | rm -f conftest.er1 |
---|
2382 | cat conftest.err >&5 |
---|
2383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2384 | (exit $ac_status); } && |
---|
2385 | { ac_try='test -z "$ac_cxx_werror_flag" |
---|
2386 | || test ! -s conftest.err' |
---|
2387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2388 | (eval $ac_try) 2>&5 |
---|
2389 | ac_status=$? |
---|
2390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2391 | (exit $ac_status); }; } && |
---|
2392 | { ac_try='test -s conftest.$ac_objext' |
---|
2393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2394 | (eval $ac_try) 2>&5 |
---|
2395 | ac_status=$? |
---|
2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2397 | (exit $ac_status); }; }; then |
---|
2398 | break |
---|
2399 | else |
---|
2400 | echo "$as_me: failed program was:" >&5 |
---|
2401 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2402 | |
---|
2403 | fi |
---|
2404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
2405 | done |
---|
2406 | rm -f conftest* |
---|
2407 | if test -n "$ac_declaration"; then |
---|
2408 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2409 | echo $ac_declaration >>confdefs.h |
---|
2410 | echo '#endif' >>confdefs.h |
---|
2411 | fi |
---|
2412 | |
---|
2413 | ac_ext=c |
---|
2414 | ac_cpp='$CPP $CPPFLAGS' |
---|
2415 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2416 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2417 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2418 | DEPDIR="${am__leading_dot}deps" |
---|
2419 | |
---|
2420 | ac_config_commands="$ac_config_commands depfiles" |
---|
2421 | |
---|
2422 | |
---|
2423 | am_make=${MAKE-make} |
---|
2424 | cat > confinc << 'END' |
---|
2425 | am__doit: |
---|
2426 | @echo done |
---|
2427 | .PHONY: am__doit |
---|
2428 | END |
---|
2429 | # If we don't find an include directive, just comment out the code. |
---|
2430 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2431 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2432 | am__include="#" |
---|
2433 | am__quote= |
---|
2434 | _am_result=none |
---|
2435 | # First try GNU make style include. |
---|
2436 | echo "include confinc" > confmf |
---|
2437 | # We grep out `Entering directory' and `Leaving directory' |
---|
2438 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2439 | # In particular we don't look at `^make:' because GNU make might |
---|
2440 | # be invoked under some other name (usually "gmake"), in which |
---|
2441 | # case it prints its new name instead of `make'. |
---|
2442 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2443 | am__include=include |
---|
2444 | am__quote= |
---|
2445 | _am_result=GNU |
---|
2446 | fi |
---|
2447 | # Now try BSD make style include. |
---|
2448 | if test "$am__include" = "#"; then |
---|
2449 | echo '.include "confinc"' > confmf |
---|
2450 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2451 | am__include=.include |
---|
2452 | am__quote="\"" |
---|
2453 | _am_result=BSD |
---|
2454 | fi |
---|
2455 | fi |
---|
2456 | |
---|
2457 | |
---|
2458 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2459 | echo "${ECHO_T}$_am_result" >&6 |
---|
2460 | rm -f confinc confmf |
---|
2461 | |
---|
2462 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2463 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2464 | enableval="$enable_dependency_tracking" |
---|
2465 | |
---|
2466 | fi; |
---|
2467 | if test "x$enable_dependency_tracking" != xno; then |
---|
2468 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2469 | AMDEPBACKSLASH='\' |
---|
2470 | fi |
---|
2471 | |
---|
2472 | |
---|
2473 | if test "x$enable_dependency_tracking" != xno; then |
---|
2474 | AMDEP_TRUE= |
---|
2475 | AMDEP_FALSE='#' |
---|
2476 | else |
---|
2477 | AMDEP_TRUE='#' |
---|
2478 | AMDEP_FALSE= |
---|
2479 | fi |
---|
2480 | |
---|
2481 | |
---|
2482 | |
---|
2483 | |
---|
2484 | depcc="$CXX" am_compiler_list= |
---|
2485 | |
---|
2486 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2487 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2488 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2490 | else |
---|
2491 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2492 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2493 | # making bogus files that we don't know about and never remove. For |
---|
2494 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2495 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2496 | # in D'. |
---|
2497 | mkdir conftest.dir |
---|
2498 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2499 | # using a relative directory. |
---|
2500 | cp "$am_depcomp" conftest.dir |
---|
2501 | cd conftest.dir |
---|
2502 | # We will build objects and dependencies in a subdirectory because |
---|
2503 | # it helps to detect inapplicable dependency modes. For instance |
---|
2504 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2505 | # side effect of compilation, but ICC will put the dependencies in |
---|
2506 | # the current directory while Tru64 will put them in the object |
---|
2507 | # directory. |
---|
2508 | mkdir sub |
---|
2509 | |
---|
2510 | am_cv_CXX_dependencies_compiler_type=none |
---|
2511 | if test "$am_compiler_list" = ""; then |
---|
2512 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2513 | fi |
---|
2514 | for depmode in $am_compiler_list; do |
---|
2515 | # Setup a source with many dependencies, because some compilers |
---|
2516 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2517 | # we should not choose a depcomp mode which is confused by this. |
---|
2518 | # |
---|
2519 | # We need to recreate these files for each test, as the compiler may |
---|
2520 | # overwrite some of them when testing with obscure command lines. |
---|
2521 | # This happens at least with the AIX C compiler. |
---|
2522 | : > sub/conftest.c |
---|
2523 | for i in 1 2 3 4 5 6; do |
---|
2524 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2525 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
2526 | # Solaris 8's {/usr,}/bin/sh. |
---|
2527 | touch sub/conftst$i.h |
---|
2528 | done |
---|
2529 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2530 | |
---|
2531 | case $depmode in |
---|
2532 | nosideeffect) |
---|
2533 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2534 | # only be used when explicitly requested |
---|
2535 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2536 | continue |
---|
2537 | else |
---|
2538 | break |
---|
2539 | fi |
---|
2540 | ;; |
---|
2541 | none) break ;; |
---|
2542 | esac |
---|
2543 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2544 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2545 | # handle `-M -o', and we need to detect this. |
---|
2546 | if depmode=$depmode \ |
---|
2547 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2548 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2549 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2550 | >/dev/null 2>conftest.err && |
---|
2551 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2552 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2553 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2554 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2555 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
2556 | # that says an option was ignored or not supported. |
---|
2557 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
2558 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
2559 | # The diagnosis changed in icc 8.0: |
---|
2560 | # icc: Command line remark: option '-MP' not supported |
---|
2561 | if (grep 'ignoring option' conftest.err || |
---|
2562 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
2563 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2564 | break |
---|
2565 | fi |
---|
2566 | fi |
---|
2567 | done |
---|
2568 | |
---|
2569 | cd .. |
---|
2570 | rm -rf conftest.dir |
---|
2571 | else |
---|
2572 | am_cv_CXX_dependencies_compiler_type=none |
---|
2573 | fi |
---|
2574 | |
---|
2575 | fi |
---|
2576 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2577 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2578 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2579 | |
---|
2580 | |
---|
2581 | |
---|
2582 | if |
---|
2583 | test "x$enable_dependency_tracking" != xno \ |
---|
2584 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2585 | am__fastdepCXX_TRUE= |
---|
2586 | am__fastdepCXX_FALSE='#' |
---|
2587 | else |
---|
2588 | am__fastdepCXX_TRUE='#' |
---|
2589 | am__fastdepCXX_FALSE= |
---|
2590 | fi |
---|
2591 | |
---|
2592 | |
---|
2593 | if test -n "$ac_tool_prefix"; then |
---|
2594 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2595 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2596 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2598 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
2599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2600 | else |
---|
2601 | if test -n "$RANLIB"; then |
---|
2602 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2603 | else |
---|
2604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2605 | for as_dir in $PATH |
---|
2606 | do |
---|
2607 | IFS=$as_save_IFS |
---|
2608 | test -z "$as_dir" && as_dir=. |
---|
2609 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2611 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2613 | break 2 |
---|
2614 | fi |
---|
2615 | done |
---|
2616 | done |
---|
2617 | |
---|
2618 | fi |
---|
2619 | fi |
---|
2620 | RANLIB=$ac_cv_prog_RANLIB |
---|
2621 | if test -n "$RANLIB"; then |
---|
2622 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
2623 | echo "${ECHO_T}$RANLIB" >&6 |
---|
2624 | else |
---|
2625 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2626 | echo "${ECHO_T}no" >&6 |
---|
2627 | fi |
---|
2628 | |
---|
2629 | fi |
---|
2630 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2631 | ac_ct_RANLIB=$RANLIB |
---|
2632 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2633 | set dummy ranlib; ac_word=$2 |
---|
2634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2636 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
2637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2638 | else |
---|
2639 | if test -n "$ac_ct_RANLIB"; then |
---|
2640 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2641 | else |
---|
2642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2643 | for as_dir in $PATH |
---|
2644 | do |
---|
2645 | IFS=$as_save_IFS |
---|
2646 | test -z "$as_dir" && as_dir=. |
---|
2647 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2649 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2651 | break 2 |
---|
2652 | fi |
---|
2653 | done |
---|
2654 | done |
---|
2655 | |
---|
2656 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
2657 | fi |
---|
2658 | fi |
---|
2659 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2660 | if test -n "$ac_ct_RANLIB"; then |
---|
2661 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
2662 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
2663 | else |
---|
2664 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2665 | echo "${ECHO_T}no" >&6 |
---|
2666 | fi |
---|
2667 | |
---|
2668 | RANLIB=$ac_ct_RANLIB |
---|
2669 | else |
---|
2670 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2671 | fi |
---|
2672 | |
---|
2673 | ac_ext=c |
---|
2674 | ac_cpp='$CPP $CPPFLAGS' |
---|
2675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2678 | if test -n "$ac_tool_prefix"; then |
---|
2679 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2680 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2681 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2682 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2683 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2685 | else |
---|
2686 | if test -n "$CC"; then |
---|
2687 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2688 | else |
---|
2689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2690 | for as_dir in $PATH |
---|
2691 | do |
---|
2692 | IFS=$as_save_IFS |
---|
2693 | test -z "$as_dir" && as_dir=. |
---|
2694 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2695 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2696 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2697 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2698 | break 2 |
---|
2699 | fi |
---|
2700 | done |
---|
2701 | done |
---|
2702 | |
---|
2703 | fi |
---|
2704 | fi |
---|
2705 | CC=$ac_cv_prog_CC |
---|
2706 | if test -n "$CC"; then |
---|
2707 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2708 | echo "${ECHO_T}$CC" >&6 |
---|
2709 | else |
---|
2710 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2711 | echo "${ECHO_T}no" >&6 |
---|
2712 | fi |
---|
2713 | |
---|
2714 | fi |
---|
2715 | if test -z "$ac_cv_prog_CC"; then |
---|
2716 | ac_ct_CC=$CC |
---|
2717 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2718 | set dummy gcc; ac_word=$2 |
---|
2719 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2721 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2723 | else |
---|
2724 | if test -n "$ac_ct_CC"; then |
---|
2725 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2726 | else |
---|
2727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2728 | for as_dir in $PATH |
---|
2729 | do |
---|
2730 | IFS=$as_save_IFS |
---|
2731 | test -z "$as_dir" && as_dir=. |
---|
2732 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2733 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2734 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2736 | break 2 |
---|
2737 | fi |
---|
2738 | done |
---|
2739 | done |
---|
2740 | |
---|
2741 | fi |
---|
2742 | fi |
---|
2743 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2744 | if test -n "$ac_ct_CC"; then |
---|
2745 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2746 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2747 | else |
---|
2748 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2749 | echo "${ECHO_T}no" >&6 |
---|
2750 | fi |
---|
2751 | |
---|
2752 | CC=$ac_ct_CC |
---|
2753 | else |
---|
2754 | CC="$ac_cv_prog_CC" |
---|
2755 | fi |
---|
2756 | |
---|
2757 | if test -z "$CC"; then |
---|
2758 | if test -n "$ac_tool_prefix"; then |
---|
2759 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2760 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2761 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2762 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2763 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2765 | else |
---|
2766 | if test -n "$CC"; then |
---|
2767 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2768 | else |
---|
2769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2770 | for as_dir in $PATH |
---|
2771 | do |
---|
2772 | IFS=$as_save_IFS |
---|
2773 | test -z "$as_dir" && as_dir=. |
---|
2774 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2775 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2776 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2778 | break 2 |
---|
2779 | fi |
---|
2780 | done |
---|
2781 | done |
---|
2782 | |
---|
2783 | fi |
---|
2784 | fi |
---|
2785 | CC=$ac_cv_prog_CC |
---|
2786 | if test -n "$CC"; then |
---|
2787 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2788 | echo "${ECHO_T}$CC" >&6 |
---|
2789 | else |
---|
2790 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2791 | echo "${ECHO_T}no" >&6 |
---|
2792 | fi |
---|
2793 | |
---|
2794 | fi |
---|
2795 | if test -z "$ac_cv_prog_CC"; then |
---|
2796 | ac_ct_CC=$CC |
---|
2797 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2798 | set dummy cc; ac_word=$2 |
---|
2799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2801 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2803 | else |
---|
2804 | if test -n "$ac_ct_CC"; then |
---|
2805 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2806 | else |
---|
2807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2808 | for as_dir in $PATH |
---|
2809 | do |
---|
2810 | IFS=$as_save_IFS |
---|
2811 | test -z "$as_dir" && as_dir=. |
---|
2812 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2814 | ac_cv_prog_ac_ct_CC="cc" |
---|
2815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2816 | break 2 |
---|
2817 | fi |
---|
2818 | done |
---|
2819 | done |
---|
2820 | |
---|
2821 | fi |
---|
2822 | fi |
---|
2823 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2824 | if test -n "$ac_ct_CC"; then |
---|
2825 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2826 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2827 | else |
---|
2828 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2829 | echo "${ECHO_T}no" >&6 |
---|
2830 | fi |
---|
2831 | |
---|
2832 | CC=$ac_ct_CC |
---|
2833 | else |
---|
2834 | CC="$ac_cv_prog_CC" |
---|
2835 | fi |
---|
2836 | |
---|
2837 | fi |
---|
2838 | if test -z "$CC"; then |
---|
2839 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2840 | set dummy cc; ac_word=$2 |
---|
2841 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2842 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2843 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2845 | else |
---|
2846 | if test -n "$CC"; then |
---|
2847 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2848 | else |
---|
2849 | ac_prog_rejected=no |
---|
2850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2851 | for as_dir in $PATH |
---|
2852 | do |
---|
2853 | IFS=$as_save_IFS |
---|
2854 | test -z "$as_dir" && as_dir=. |
---|
2855 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2856 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2857 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2858 | ac_prog_rejected=yes |
---|
2859 | continue |
---|
2860 | fi |
---|
2861 | ac_cv_prog_CC="cc" |
---|
2862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2863 | break 2 |
---|
2864 | fi |
---|
2865 | done |
---|
2866 | done |
---|
2867 | |
---|
2868 | if test $ac_prog_rejected = yes; then |
---|
2869 | # We found a bogon in the path, so make sure we never use it. |
---|
2870 | set dummy $ac_cv_prog_CC |
---|
2871 | shift |
---|
2872 | if test $# != 0; then |
---|
2873 | # We chose a different compiler from the bogus one. |
---|
2874 | # However, it has the same basename, so the bogon will be chosen |
---|
2875 | # first if we set CC to just the basename; use the full file name. |
---|
2876 | shift |
---|
2877 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2878 | fi |
---|
2879 | fi |
---|
2880 | fi |
---|
2881 | fi |
---|
2882 | CC=$ac_cv_prog_CC |
---|
2883 | if test -n "$CC"; then |
---|
2884 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2885 | echo "${ECHO_T}$CC" >&6 |
---|
2886 | else |
---|
2887 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2888 | echo "${ECHO_T}no" >&6 |
---|
2889 | fi |
---|
2890 | |
---|
2891 | fi |
---|
2892 | if test -z "$CC"; then |
---|
2893 | if test -n "$ac_tool_prefix"; then |
---|
2894 | for ac_prog in cl |
---|
2895 | do |
---|
2896 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2897 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2898 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2900 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2902 | else |
---|
2903 | if test -n "$CC"; then |
---|
2904 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2905 | else |
---|
2906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2907 | for as_dir in $PATH |
---|
2908 | do |
---|
2909 | IFS=$as_save_IFS |
---|
2910 | test -z "$as_dir" && as_dir=. |
---|
2911 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2912 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2913 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2915 | break 2 |
---|
2916 | fi |
---|
2917 | done |
---|
2918 | done |
---|
2919 | |
---|
2920 | fi |
---|
2921 | fi |
---|
2922 | CC=$ac_cv_prog_CC |
---|
2923 | if test -n "$CC"; then |
---|
2924 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2925 | echo "${ECHO_T}$CC" >&6 |
---|
2926 | else |
---|
2927 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2928 | echo "${ECHO_T}no" >&6 |
---|
2929 | fi |
---|
2930 | |
---|
2931 | test -n "$CC" && break |
---|
2932 | done |
---|
2933 | fi |
---|
2934 | if test -z "$CC"; then |
---|
2935 | ac_ct_CC=$CC |
---|
2936 | for ac_prog in cl |
---|
2937 | do |
---|
2938 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2939 | set dummy $ac_prog; ac_word=$2 |
---|
2940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2942 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2944 | else |
---|
2945 | if test -n "$ac_ct_CC"; then |
---|
2946 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2947 | else |
---|
2948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2949 | for as_dir in $PATH |
---|
2950 | do |
---|
2951 | IFS=$as_save_IFS |
---|
2952 | test -z "$as_dir" && as_dir=. |
---|
2953 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2955 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2957 | break 2 |
---|
2958 | fi |
---|
2959 | done |
---|
2960 | done |
---|
2961 | |
---|
2962 | fi |
---|
2963 | fi |
---|
2964 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2965 | if test -n "$ac_ct_CC"; then |
---|
2966 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2967 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2968 | else |
---|
2969 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2970 | echo "${ECHO_T}no" >&6 |
---|
2971 | fi |
---|
2972 | |
---|
2973 | test -n "$ac_ct_CC" && break |
---|
2974 | done |
---|
2975 | |
---|
2976 | CC=$ac_ct_CC |
---|
2977 | fi |
---|
2978 | |
---|
2979 | fi |
---|
2980 | |
---|
2981 | |
---|
2982 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2983 | See \`config.log' for more details." >&5 |
---|
2984 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2985 | See \`config.log' for more details." >&2;} |
---|
2986 | { (exit 1); exit 1; }; } |
---|
2987 | |
---|
2988 | # Provide some information about the compiler. |
---|
2989 | echo "$as_me:$LINENO:" \ |
---|
2990 | "checking for C compiler version" >&5 |
---|
2991 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2992 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2993 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2994 | ac_status=$? |
---|
2995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2996 | (exit $ac_status); } |
---|
2997 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2998 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2999 | ac_status=$? |
---|
3000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3001 | (exit $ac_status); } |
---|
3002 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
3003 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
3004 | ac_status=$? |
---|
3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3006 | (exit $ac_status); } |
---|
3007 | |
---|
3008 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
3009 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
3010 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
3011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3012 | else |
---|
3013 | cat >conftest.$ac_ext <<_ACEOF |
---|
3014 | /* confdefs.h. */ |
---|
3015 | _ACEOF |
---|
3016 | cat confdefs.h >>conftest.$ac_ext |
---|
3017 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3018 | /* end confdefs.h. */ |
---|
3019 | |
---|
3020 | int |
---|
3021 | main () |
---|
3022 | { |
---|
3023 | #ifndef __GNUC__ |
---|
3024 | choke me |
---|
3025 | #endif |
---|
3026 | |
---|
3027 | ; |
---|
3028 | return 0; |
---|
3029 | } |
---|
3030 | _ACEOF |
---|
3031 | rm -f conftest.$ac_objext |
---|
3032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3033 | (eval $ac_compile) 2>conftest.er1 |
---|
3034 | ac_status=$? |
---|
3035 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3036 | rm -f conftest.er1 |
---|
3037 | cat conftest.err >&5 |
---|
3038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3039 | (exit $ac_status); } && |
---|
3040 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3041 | || test ! -s conftest.err' |
---|
3042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3043 | (eval $ac_try) 2>&5 |
---|
3044 | ac_status=$? |
---|
3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3046 | (exit $ac_status); }; } && |
---|
3047 | { ac_try='test -s conftest.$ac_objext' |
---|
3048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3049 | (eval $ac_try) 2>&5 |
---|
3050 | ac_status=$? |
---|
3051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3052 | (exit $ac_status); }; }; then |
---|
3053 | ac_compiler_gnu=yes |
---|
3054 | else |
---|
3055 | echo "$as_me: failed program was:" >&5 |
---|
3056 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3057 | |
---|
3058 | ac_compiler_gnu=no |
---|
3059 | fi |
---|
3060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3061 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3062 | |
---|
3063 | fi |
---|
3064 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3065 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
3066 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
3067 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3068 | ac_save_CFLAGS=$CFLAGS |
---|
3069 | CFLAGS="-g" |
---|
3070 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
3071 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
3072 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
3073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3074 | else |
---|
3075 | cat >conftest.$ac_ext <<_ACEOF |
---|
3076 | /* confdefs.h. */ |
---|
3077 | _ACEOF |
---|
3078 | cat confdefs.h >>conftest.$ac_ext |
---|
3079 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3080 | /* end confdefs.h. */ |
---|
3081 | |
---|
3082 | int |
---|
3083 | main () |
---|
3084 | { |
---|
3085 | |
---|
3086 | ; |
---|
3087 | return 0; |
---|
3088 | } |
---|
3089 | _ACEOF |
---|
3090 | rm -f conftest.$ac_objext |
---|
3091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3092 | (eval $ac_compile) 2>conftest.er1 |
---|
3093 | ac_status=$? |
---|
3094 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3095 | rm -f conftest.er1 |
---|
3096 | cat conftest.err >&5 |
---|
3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3098 | (exit $ac_status); } && |
---|
3099 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3100 | || test ! -s conftest.err' |
---|
3101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3102 | (eval $ac_try) 2>&5 |
---|
3103 | ac_status=$? |
---|
3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3105 | (exit $ac_status); }; } && |
---|
3106 | { ac_try='test -s conftest.$ac_objext' |
---|
3107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3108 | (eval $ac_try) 2>&5 |
---|
3109 | ac_status=$? |
---|
3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3111 | (exit $ac_status); }; }; then |
---|
3112 | ac_cv_prog_cc_g=yes |
---|
3113 | else |
---|
3114 | echo "$as_me: failed program was:" >&5 |
---|
3115 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3116 | |
---|
3117 | ac_cv_prog_cc_g=no |
---|
3118 | fi |
---|
3119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3120 | fi |
---|
3121 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
3122 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
3123 | if test "$ac_test_CFLAGS" = set; then |
---|
3124 | CFLAGS=$ac_save_CFLAGS |
---|
3125 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3126 | if test "$GCC" = yes; then |
---|
3127 | CFLAGS="-g -O2" |
---|
3128 | else |
---|
3129 | CFLAGS="-g" |
---|
3130 | fi |
---|
3131 | else |
---|
3132 | if test "$GCC" = yes; then |
---|
3133 | CFLAGS="-O2" |
---|
3134 | else |
---|
3135 | CFLAGS= |
---|
3136 | fi |
---|
3137 | fi |
---|
3138 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
3139 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
3140 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
3141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3142 | else |
---|
3143 | ac_cv_prog_cc_stdc=no |
---|
3144 | ac_save_CC=$CC |
---|
3145 | cat >conftest.$ac_ext <<_ACEOF |
---|
3146 | /* confdefs.h. */ |
---|
3147 | _ACEOF |
---|
3148 | cat confdefs.h >>conftest.$ac_ext |
---|
3149 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3150 | /* end confdefs.h. */ |
---|
3151 | #include <stdarg.h> |
---|
3152 | #include <stdio.h> |
---|
3153 | #include <sys/types.h> |
---|
3154 | #include <sys/stat.h> |
---|
3155 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3156 | struct buf { int x; }; |
---|
3157 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3158 | static char *e (p, i) |
---|
3159 | char **p; |
---|
3160 | int i; |
---|
3161 | { |
---|
3162 | return p[i]; |
---|
3163 | } |
---|
3164 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3165 | { |
---|
3166 | char *s; |
---|
3167 | va_list v; |
---|
3168 | va_start (v,p); |
---|
3169 | s = g (p, va_arg (v,int)); |
---|
3170 | va_end (v); |
---|
3171 | return s; |
---|
3172 | } |
---|
3173 | |
---|
3174 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3175 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3176 | These don't provoke an error unfortunately, instead are silently treated |
---|
3177 | as 'x'. The following induces an error, until -std1 is added to get |
---|
3178 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3179 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3180 | that's true only with -std1. */ |
---|
3181 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3182 | |
---|
3183 | int test (int i, double x); |
---|
3184 | struct s1 {int (*f) (int a);}; |
---|
3185 | struct s2 {int (*f) (double a);}; |
---|
3186 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3187 | int argc; |
---|
3188 | char **argv; |
---|
3189 | int |
---|
3190 | main () |
---|
3191 | { |
---|
3192 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3193 | ; |
---|
3194 | return 0; |
---|
3195 | } |
---|
3196 | _ACEOF |
---|
3197 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
3198 | # breaks some systems' header files. |
---|
3199 | # AIX -qlanglvl=ansi |
---|
3200 | # Ultrix and OSF/1 -std1 |
---|
3201 | # HP-UX 10.20 and later -Ae |
---|
3202 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
3203 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
3204 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3205 | do |
---|
3206 | CC="$ac_save_CC $ac_arg" |
---|
3207 | rm -f conftest.$ac_objext |
---|
3208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3209 | (eval $ac_compile) 2>conftest.er1 |
---|
3210 | ac_status=$? |
---|
3211 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3212 | rm -f conftest.er1 |
---|
3213 | cat conftest.err >&5 |
---|
3214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3215 | (exit $ac_status); } && |
---|
3216 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3217 | || test ! -s conftest.err' |
---|
3218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3219 | (eval $ac_try) 2>&5 |
---|
3220 | ac_status=$? |
---|
3221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3222 | (exit $ac_status); }; } && |
---|
3223 | { ac_try='test -s conftest.$ac_objext' |
---|
3224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3225 | (eval $ac_try) 2>&5 |
---|
3226 | ac_status=$? |
---|
3227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3228 | (exit $ac_status); }; }; then |
---|
3229 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3230 | break |
---|
3231 | else |
---|
3232 | echo "$as_me: failed program was:" >&5 |
---|
3233 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3234 | |
---|
3235 | fi |
---|
3236 | rm -f conftest.err conftest.$ac_objext |
---|
3237 | done |
---|
3238 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3239 | CC=$ac_save_CC |
---|
3240 | |
---|
3241 | fi |
---|
3242 | |
---|
3243 | case "x$ac_cv_prog_cc_stdc" in |
---|
3244 | x|xno) |
---|
3245 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3246 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3247 | *) |
---|
3248 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3249 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3250 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3251 | esac |
---|
3252 | |
---|
3253 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3254 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3255 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3256 | # the declaration of exit, since it's the most demanding environment. |
---|
3257 | cat >conftest.$ac_ext <<_ACEOF |
---|
3258 | #ifndef __cplusplus |
---|
3259 | choke me |
---|
3260 | #endif |
---|
3261 | _ACEOF |
---|
3262 | rm -f conftest.$ac_objext |
---|
3263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3264 | (eval $ac_compile) 2>conftest.er1 |
---|
3265 | ac_status=$? |
---|
3266 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3267 | rm -f conftest.er1 |
---|
3268 | cat conftest.err >&5 |
---|
3269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3270 | (exit $ac_status); } && |
---|
3271 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3272 | || test ! -s conftest.err' |
---|
3273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3274 | (eval $ac_try) 2>&5 |
---|
3275 | ac_status=$? |
---|
3276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3277 | (exit $ac_status); }; } && |
---|
3278 | { ac_try='test -s conftest.$ac_objext' |
---|
3279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3280 | (eval $ac_try) 2>&5 |
---|
3281 | ac_status=$? |
---|
3282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3283 | (exit $ac_status); }; }; then |
---|
3284 | for ac_declaration in \ |
---|
3285 | '' \ |
---|
3286 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3287 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3288 | 'extern "C" void exit (int) throw ();' \ |
---|
3289 | 'extern "C" void exit (int);' \ |
---|
3290 | 'void exit (int);' |
---|
3291 | do |
---|
3292 | cat >conftest.$ac_ext <<_ACEOF |
---|
3293 | /* confdefs.h. */ |
---|
3294 | _ACEOF |
---|
3295 | cat confdefs.h >>conftest.$ac_ext |
---|
3296 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3297 | /* end confdefs.h. */ |
---|
3298 | $ac_declaration |
---|
3299 | #include <stdlib.h> |
---|
3300 | int |
---|
3301 | main () |
---|
3302 | { |
---|
3303 | exit (42); |
---|
3304 | ; |
---|
3305 | return 0; |
---|
3306 | } |
---|
3307 | _ACEOF |
---|
3308 | rm -f conftest.$ac_objext |
---|
3309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3310 | (eval $ac_compile) 2>conftest.er1 |
---|
3311 | ac_status=$? |
---|
3312 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3313 | rm -f conftest.er1 |
---|
3314 | cat conftest.err >&5 |
---|
3315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3316 | (exit $ac_status); } && |
---|
3317 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3318 | || test ! -s conftest.err' |
---|
3319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3320 | (eval $ac_try) 2>&5 |
---|
3321 | ac_status=$? |
---|
3322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3323 | (exit $ac_status); }; } && |
---|
3324 | { ac_try='test -s conftest.$ac_objext' |
---|
3325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3326 | (eval $ac_try) 2>&5 |
---|
3327 | ac_status=$? |
---|
3328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3329 | (exit $ac_status); }; }; then |
---|
3330 | : |
---|
3331 | else |
---|
3332 | echo "$as_me: failed program was:" >&5 |
---|
3333 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3334 | |
---|
3335 | continue |
---|
3336 | fi |
---|
3337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3338 | cat >conftest.$ac_ext <<_ACEOF |
---|
3339 | /* confdefs.h. */ |
---|
3340 | _ACEOF |
---|
3341 | cat confdefs.h >>conftest.$ac_ext |
---|
3342 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3343 | /* end confdefs.h. */ |
---|
3344 | $ac_declaration |
---|
3345 | int |
---|
3346 | main () |
---|
3347 | { |
---|
3348 | exit (42); |
---|
3349 | ; |
---|
3350 | return 0; |
---|
3351 | } |
---|
3352 | _ACEOF |
---|
3353 | rm -f conftest.$ac_objext |
---|
3354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3355 | (eval $ac_compile) 2>conftest.er1 |
---|
3356 | ac_status=$? |
---|
3357 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3358 | rm -f conftest.er1 |
---|
3359 | cat conftest.err >&5 |
---|
3360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3361 | (exit $ac_status); } && |
---|
3362 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3363 | || test ! -s conftest.err' |
---|
3364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3365 | (eval $ac_try) 2>&5 |
---|
3366 | ac_status=$? |
---|
3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3368 | (exit $ac_status); }; } && |
---|
3369 | { ac_try='test -s conftest.$ac_objext' |
---|
3370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3371 | (eval $ac_try) 2>&5 |
---|
3372 | ac_status=$? |
---|
3373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3374 | (exit $ac_status); }; }; then |
---|
3375 | break |
---|
3376 | else |
---|
3377 | echo "$as_me: failed program was:" >&5 |
---|
3378 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3379 | |
---|
3380 | fi |
---|
3381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3382 | done |
---|
3383 | rm -f conftest* |
---|
3384 | if test -n "$ac_declaration"; then |
---|
3385 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3386 | echo $ac_declaration >>confdefs.h |
---|
3387 | echo '#endif' >>confdefs.h |
---|
3388 | fi |
---|
3389 | |
---|
3390 | else |
---|
3391 | echo "$as_me: failed program was:" >&5 |
---|
3392 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3393 | |
---|
3394 | fi |
---|
3395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3396 | ac_ext=c |
---|
3397 | ac_cpp='$CPP $CPPFLAGS' |
---|
3398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3401 | |
---|
3402 | depcc="$CC" am_compiler_list= |
---|
3403 | |
---|
3404 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3405 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3406 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3408 | else |
---|
3409 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3410 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3411 | # making bogus files that we don't know about and never remove. For |
---|
3412 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3413 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3414 | # in D'. |
---|
3415 | mkdir conftest.dir |
---|
3416 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3417 | # using a relative directory. |
---|
3418 | cp "$am_depcomp" conftest.dir |
---|
3419 | cd conftest.dir |
---|
3420 | # We will build objects and dependencies in a subdirectory because |
---|
3421 | # it helps to detect inapplicable dependency modes. For instance |
---|
3422 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3423 | # side effect of compilation, but ICC will put the dependencies in |
---|
3424 | # the current directory while Tru64 will put them in the object |
---|
3425 | # directory. |
---|
3426 | mkdir sub |
---|
3427 | |
---|
3428 | am_cv_CC_dependencies_compiler_type=none |
---|
3429 | if test "$am_compiler_list" = ""; then |
---|
3430 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3431 | fi |
---|
3432 | for depmode in $am_compiler_list; do |
---|
3433 | # Setup a source with many dependencies, because some compilers |
---|
3434 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3435 | # we should not choose a depcomp mode which is confused by this. |
---|
3436 | # |
---|
3437 | # We need to recreate these files for each test, as the compiler may |
---|
3438 | # overwrite some of them when testing with obscure command lines. |
---|
3439 | # This happens at least with the AIX C compiler. |
---|
3440 | : > sub/conftest.c |
---|
3441 | for i in 1 2 3 4 5 6; do |
---|
3442 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3443 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3444 | # Solaris 8's {/usr,}/bin/sh. |
---|
3445 | touch sub/conftst$i.h |
---|
3446 | done |
---|
3447 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3448 | |
---|
3449 | case $depmode in |
---|
3450 | nosideeffect) |
---|
3451 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3452 | # only be used when explicitly requested |
---|
3453 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3454 | continue |
---|
3455 | else |
---|
3456 | break |
---|
3457 | fi |
---|
3458 | ;; |
---|
3459 | none) break ;; |
---|
3460 | esac |
---|
3461 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3462 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3463 | # handle `-M -o', and we need to detect this. |
---|
3464 | if depmode=$depmode \ |
---|
3465 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3466 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3467 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3468 | >/dev/null 2>conftest.err && |
---|
3469 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3470 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3471 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3472 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3473 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3474 | # that says an option was ignored or not supported. |
---|
3475 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3476 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3477 | # The diagnosis changed in icc 8.0: |
---|
3478 | # icc: Command line remark: option '-MP' not supported |
---|
3479 | if (grep 'ignoring option' conftest.err || |
---|
3480 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3481 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3482 | break |
---|
3483 | fi |
---|
3484 | fi |
---|
3485 | done |
---|
3486 | |
---|
3487 | cd .. |
---|
3488 | rm -rf conftest.dir |
---|
3489 | else |
---|
3490 | am_cv_CC_dependencies_compiler_type=none |
---|
3491 | fi |
---|
3492 | |
---|
3493 | fi |
---|
3494 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3495 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3496 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3497 | |
---|
3498 | |
---|
3499 | |
---|
3500 | if |
---|
3501 | test "x$enable_dependency_tracking" != xno \ |
---|
3502 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3503 | am__fastdepCC_TRUE= |
---|
3504 | am__fastdepCC_FALSE='#' |
---|
3505 | else |
---|
3506 | am__fastdepCC_TRUE='#' |
---|
3507 | am__fastdepCC_FALSE= |
---|
3508 | fi |
---|
3509 | |
---|
3510 | |
---|
3511 | |
---|
3512 | ac_ext=c |
---|
3513 | ac_cpp='$CPP $CPPFLAGS' |
---|
3514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3517 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3518 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3519 | # On Suns, sometimes $CPP names a directory. |
---|
3520 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3521 | CPP= |
---|
3522 | fi |
---|
3523 | if test -z "$CPP"; then |
---|
3524 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3526 | else |
---|
3527 | # Double quotes because CPP needs to be expanded |
---|
3528 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3529 | do |
---|
3530 | ac_preproc_ok=false |
---|
3531 | for ac_c_preproc_warn_flag in '' yes |
---|
3532 | do |
---|
3533 | # Use a header file that comes with gcc, so configuring glibc |
---|
3534 | # with a fresh cross-compiler works. |
---|
3535 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3536 | # <limits.h> exists even on freestanding compilers. |
---|
3537 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3538 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3539 | cat >conftest.$ac_ext <<_ACEOF |
---|
3540 | /* confdefs.h. */ |
---|
3541 | _ACEOF |
---|
3542 | cat confdefs.h >>conftest.$ac_ext |
---|
3543 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3544 | /* end confdefs.h. */ |
---|
3545 | #ifdef __STDC__ |
---|
3546 | # include <limits.h> |
---|
3547 | #else |
---|
3548 | # include <assert.h> |
---|
3549 | #endif |
---|
3550 | Syntax error |
---|
3551 | _ACEOF |
---|
3552 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3553 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3554 | ac_status=$? |
---|
3555 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3556 | rm -f conftest.er1 |
---|
3557 | cat conftest.err >&5 |
---|
3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3559 | (exit $ac_status); } >/dev/null; then |
---|
3560 | if test -s conftest.err; then |
---|
3561 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3562 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3563 | else |
---|
3564 | ac_cpp_err= |
---|
3565 | fi |
---|
3566 | else |
---|
3567 | ac_cpp_err=yes |
---|
3568 | fi |
---|
3569 | if test -z "$ac_cpp_err"; then |
---|
3570 | : |
---|
3571 | else |
---|
3572 | echo "$as_me: failed program was:" >&5 |
---|
3573 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3574 | |
---|
3575 | # Broken: fails on valid input. |
---|
3576 | continue |
---|
3577 | fi |
---|
3578 | rm -f conftest.err conftest.$ac_ext |
---|
3579 | |
---|
3580 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3581 | # can be detected and how. |
---|
3582 | cat >conftest.$ac_ext <<_ACEOF |
---|
3583 | /* confdefs.h. */ |
---|
3584 | _ACEOF |
---|
3585 | cat confdefs.h >>conftest.$ac_ext |
---|
3586 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3587 | /* end confdefs.h. */ |
---|
3588 | #include <ac_nonexistent.h> |
---|
3589 | _ACEOF |
---|
3590 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3591 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3592 | ac_status=$? |
---|
3593 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3594 | rm -f conftest.er1 |
---|
3595 | cat conftest.err >&5 |
---|
3596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3597 | (exit $ac_status); } >/dev/null; then |
---|
3598 | if test -s conftest.err; then |
---|
3599 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3600 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3601 | else |
---|
3602 | ac_cpp_err= |
---|
3603 | fi |
---|
3604 | else |
---|
3605 | ac_cpp_err=yes |
---|
3606 | fi |
---|
3607 | if test -z "$ac_cpp_err"; then |
---|
3608 | # Broken: success on invalid input. |
---|
3609 | continue |
---|
3610 | else |
---|
3611 | echo "$as_me: failed program was:" >&5 |
---|
3612 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3613 | |
---|
3614 | # Passes both tests. |
---|
3615 | ac_preproc_ok=: |
---|
3616 | break |
---|
3617 | fi |
---|
3618 | rm -f conftest.err conftest.$ac_ext |
---|
3619 | |
---|
3620 | done |
---|
3621 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3622 | rm -f conftest.err conftest.$ac_ext |
---|
3623 | if $ac_preproc_ok; then |
---|
3624 | break |
---|
3625 | fi |
---|
3626 | |
---|
3627 | done |
---|
3628 | ac_cv_prog_CPP=$CPP |
---|
3629 | |
---|
3630 | fi |
---|
3631 | CPP=$ac_cv_prog_CPP |
---|
3632 | else |
---|
3633 | ac_cv_prog_CPP=$CPP |
---|
3634 | fi |
---|
3635 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3636 | echo "${ECHO_T}$CPP" >&6 |
---|
3637 | ac_preproc_ok=false |
---|
3638 | for ac_c_preproc_warn_flag in '' yes |
---|
3639 | do |
---|
3640 | # Use a header file that comes with gcc, so configuring glibc |
---|
3641 | # with a fresh cross-compiler works. |
---|
3642 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3643 | # <limits.h> exists even on freestanding compilers. |
---|
3644 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3645 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3646 | cat >conftest.$ac_ext <<_ACEOF |
---|
3647 | /* confdefs.h. */ |
---|
3648 | _ACEOF |
---|
3649 | cat confdefs.h >>conftest.$ac_ext |
---|
3650 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3651 | /* end confdefs.h. */ |
---|
3652 | #ifdef __STDC__ |
---|
3653 | # include <limits.h> |
---|
3654 | #else |
---|
3655 | # include <assert.h> |
---|
3656 | #endif |
---|
3657 | Syntax error |
---|
3658 | _ACEOF |
---|
3659 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3660 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3661 | ac_status=$? |
---|
3662 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3663 | rm -f conftest.er1 |
---|
3664 | cat conftest.err >&5 |
---|
3665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3666 | (exit $ac_status); } >/dev/null; then |
---|
3667 | if test -s conftest.err; then |
---|
3668 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3669 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3670 | else |
---|
3671 | ac_cpp_err= |
---|
3672 | fi |
---|
3673 | else |
---|
3674 | ac_cpp_err=yes |
---|
3675 | fi |
---|
3676 | if test -z "$ac_cpp_err"; then |
---|
3677 | : |
---|
3678 | else |
---|
3679 | echo "$as_me: failed program was:" >&5 |
---|
3680 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3681 | |
---|
3682 | # Broken: fails on valid input. |
---|
3683 | continue |
---|
3684 | fi |
---|
3685 | rm -f conftest.err conftest.$ac_ext |
---|
3686 | |
---|
3687 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3688 | # can be detected and how. |
---|
3689 | cat >conftest.$ac_ext <<_ACEOF |
---|
3690 | /* confdefs.h. */ |
---|
3691 | _ACEOF |
---|
3692 | cat confdefs.h >>conftest.$ac_ext |
---|
3693 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3694 | /* end confdefs.h. */ |
---|
3695 | #include <ac_nonexistent.h> |
---|
3696 | _ACEOF |
---|
3697 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3698 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3699 | ac_status=$? |
---|
3700 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3701 | rm -f conftest.er1 |
---|
3702 | cat conftest.err >&5 |
---|
3703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3704 | (exit $ac_status); } >/dev/null; then |
---|
3705 | if test -s conftest.err; then |
---|
3706 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3707 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
3708 | else |
---|
3709 | ac_cpp_err= |
---|
3710 | fi |
---|
3711 | else |
---|
3712 | ac_cpp_err=yes |
---|
3713 | fi |
---|
3714 | if test -z "$ac_cpp_err"; then |
---|
3715 | # Broken: success on invalid input. |
---|
3716 | continue |
---|
3717 | else |
---|
3718 | echo "$as_me: failed program was:" >&5 |
---|
3719 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3720 | |
---|
3721 | # Passes both tests. |
---|
3722 | ac_preproc_ok=: |
---|
3723 | break |
---|
3724 | fi |
---|
3725 | rm -f conftest.err conftest.$ac_ext |
---|
3726 | |
---|
3727 | done |
---|
3728 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3729 | rm -f conftest.err conftest.$ac_ext |
---|
3730 | if $ac_preproc_ok; then |
---|
3731 | : |
---|
3732 | else |
---|
3733 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3734 | See \`config.log' for more details." >&5 |
---|
3735 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3736 | See \`config.log' for more details." >&2;} |
---|
3737 | { (exit 1); exit 1; }; } |
---|
3738 | fi |
---|
3739 | |
---|
3740 | ac_ext=c |
---|
3741 | ac_cpp='$CPP $CPPFLAGS' |
---|
3742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3745 | |
---|
3746 | |
---|
3747 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3748 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3749 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3751 | else |
---|
3752 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3753 | then ac_cv_prog_egrep='grep -E' |
---|
3754 | else ac_cv_prog_egrep='egrep' |
---|
3755 | fi |
---|
3756 | fi |
---|
3757 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3758 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3759 | EGREP=$ac_cv_prog_egrep |
---|
3760 | |
---|
3761 | |
---|
3762 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3763 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3764 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3766 | else |
---|
3767 | cat >conftest.$ac_ext <<_ACEOF |
---|
3768 | /* confdefs.h. */ |
---|
3769 | _ACEOF |
---|
3770 | cat confdefs.h >>conftest.$ac_ext |
---|
3771 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3772 | /* end confdefs.h. */ |
---|
3773 | #include <stdlib.h> |
---|
3774 | #include <stdarg.h> |
---|
3775 | #include <string.h> |
---|
3776 | #include <float.h> |
---|
3777 | |
---|
3778 | int |
---|
3779 | main () |
---|
3780 | { |
---|
3781 | |
---|
3782 | ; |
---|
3783 | return 0; |
---|
3784 | } |
---|
3785 | _ACEOF |
---|
3786 | rm -f conftest.$ac_objext |
---|
3787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3788 | (eval $ac_compile) 2>conftest.er1 |
---|
3789 | ac_status=$? |
---|
3790 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3791 | rm -f conftest.er1 |
---|
3792 | cat conftest.err >&5 |
---|
3793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3794 | (exit $ac_status); } && |
---|
3795 | { ac_try='test -z "$ac_c_werror_flag" |
---|
3796 | || test ! -s conftest.err' |
---|
3797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3798 | (eval $ac_try) 2>&5 |
---|
3799 | ac_status=$? |
---|
3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3801 | (exit $ac_status); }; } && |
---|
3802 | { ac_try='test -s conftest.$ac_objext' |
---|
3803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3804 | (eval $ac_try) 2>&5 |
---|
3805 | ac_status=$? |
---|
3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3807 | (exit $ac_status); }; }; then |
---|
3808 | ac_cv_header_stdc=yes |
---|
3809 | else |
---|
3810 | echo "$as_me: failed program was:" >&5 |
---|
3811 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3812 | |
---|
3813 | ac_cv_header_stdc=no |
---|
3814 | fi |
---|
3815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3816 | |
---|
3817 | if test $ac_cv_header_stdc = yes; then |
---|
3818 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3819 | cat >conftest.$ac_ext <<_ACEOF |
---|
3820 | /* confdefs.h. */ |
---|
3821 | _ACEOF |
---|
3822 | cat confdefs.h >>conftest.$ac_ext |
---|
3823 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3824 | /* end confdefs.h. */ |
---|
3825 | #include <string.h> |
---|
3826 | |
---|
3827 | _ACEOF |
---|
3828 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3829 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3830 | : |
---|
3831 | else |
---|
3832 | ac_cv_header_stdc=no |
---|
3833 | fi |
---|
3834 | rm -f conftest* |
---|
3835 | |
---|
3836 | fi |
---|
3837 | |
---|
3838 | if test $ac_cv_header_stdc = yes; then |
---|
3839 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3840 | cat >conftest.$ac_ext <<_ACEOF |
---|
3841 | /* confdefs.h. */ |
---|
3842 | _ACEOF |
---|
3843 | cat confdefs.h >>conftest.$ac_ext |
---|
3844 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3845 | /* end confdefs.h. */ |
---|
3846 | #include <stdlib.h> |
---|
3847 | |
---|
3848 | _ACEOF |
---|
3849 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3850 | $EGREP "free" >/dev/null 2>&1; then |
---|
3851 | : |
---|
3852 | else |
---|
3853 | ac_cv_header_stdc=no |
---|
3854 | fi |
---|
3855 | rm -f conftest* |
---|
3856 | |
---|
3857 | fi |
---|
3858 | |
---|
3859 | if test $ac_cv_header_stdc = yes; then |
---|
3860 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3861 | if test "$cross_compiling" = yes; then |
---|
3862 | : |
---|
3863 | else |
---|
3864 | cat >conftest.$ac_ext <<_ACEOF |
---|
3865 | /* confdefs.h. */ |
---|
3866 | _ACEOF |
---|
3867 | cat confdefs.h >>conftest.$ac_ext |
---|
3868 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3869 | /* end confdefs.h. */ |
---|
3870 | #include <ctype.h> |
---|
3871 | #if ((' ' & 0x0FF) == 0x020) |
---|
3872 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3873 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3874 | #else |
---|
3875 | # define ISLOWER(c) \ |
---|
3876 | (('a' <= (c) && (c) <= 'i') \ |
---|
3877 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3878 | || ('s' <= (c) && (c) <= 'z')) |
---|
3879 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3880 | #endif |
---|
3881 | |
---|
3882 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3883 | int |
---|
3884 | main () |
---|
3885 | { |
---|
3886 | int i; |
---|
3887 | for (i = 0; i < 256; i++) |
---|
3888 | if (XOR (islower (i), ISLOWER (i)) |
---|
3889 | || toupper (i) != TOUPPER (i)) |
---|
3890 | exit(2); |
---|
3891 | exit (0); |
---|
3892 | } |
---|
3893 | _ACEOF |
---|
3894 | rm -f conftest$ac_exeext |
---|
3895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3896 | (eval $ac_link) 2>&5 |
---|
3897 | ac_status=$? |
---|
3898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3899 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3901 | (eval $ac_try) 2>&5 |
---|
3902 | ac_status=$? |
---|
3903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3904 | (exit $ac_status); }; }; then |
---|
3905 | : |
---|
3906 | else |
---|
3907 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3908 | echo "$as_me: failed program was:" >&5 |
---|
3909 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3910 | |
---|
3911 | ( exit $ac_status ) |
---|
3912 | ac_cv_header_stdc=no |
---|
3913 | fi |
---|
3914 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3915 | fi |
---|
3916 | fi |
---|
3917 | fi |
---|
3918 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3919 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3920 | if test $ac_cv_header_stdc = yes; then |
---|
3921 | |
---|
3922 | cat >>confdefs.h <<\_ACEOF |
---|
3923 | #define STDC_HEADERS 1 |
---|
3924 | _ACEOF |
---|
3925 | |
---|
3926 | fi |
---|
3927 | |
---|
3928 | |
---|
3929 | ## THIS IS OUR DEFAULT-DATA-DIRECTORY |
---|
3930 | |
---|
3931 | ################################## |
---|
3932 | ## CHECKING OPTIONAL ARGUMENTS ## |
---|
3933 | ################################## |
---|
3934 | #----------------# |
---|
3935 | # Data-Directory # |
---|
3936 | #----------------# |
---|
3937 | DATA_DIR=$datadir |
---|
3938 | echo \$\{prefix\} |
---|
3939 | if test $DATA_DIR = \$\{prefix\}/share ; then |
---|
3940 | echo "not given" |
---|
3941 | DATA_DIR=/usr/share |
---|
3942 | else |
---|
3943 | echo "given: $DATA_DIR" |
---|
3944 | fi |
---|
3945 | |
---|
3946 | cat >>confdefs.h <<_ACEOF |
---|
3947 | #define DATADIR "$DATA_DIR" |
---|
3948 | _ACEOF |
---|
3949 | |
---|
3950 | |
---|
3951 | #-----------------# |
---|
3952 | # shared-lib-path # |
---|
3953 | #-----------------# |
---|
3954 | SHARED_LIB_PATH=no |
---|
3955 | echo "$as_me:$LINENO: checking shared lib path" >&5 |
---|
3956 | echo $ECHO_N "checking shared lib path... $ECHO_C" >&6 |
---|
3957 | |
---|
3958 | # Check whether --with-shared-lib-path or --without-shared-lib-path was given. |
---|
3959 | if test "${with_shared_lib_path+set}" = set; then |
---|
3960 | withval="$with_shared_lib_path" |
---|
3961 | SHARED_LIB_PATH=$withval |
---|
3962 | fi; |
---|
3963 | if test x$SHARED_LIB_PATH != xno; then |
---|
3964 | echo "set to $SHARED_LIB_PATH" |
---|
3965 | else |
---|
3966 | echo "no" |
---|
3967 | fi |
---|
3968 | |
---|
3969 | |
---|
3970 | #-----------------# |
---|
3971 | # DEBUG-statement # |
---|
3972 | #-----------------# |
---|
3973 | DEBUG=no |
---|
3974 | echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 |
---|
3975 | echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 |
---|
3976 | # Check whether --enable-debug or --disable-debug was given. |
---|
3977 | if test "${enable_debug+set}" = set; then |
---|
3978 | enableval="$enable_debug" |
---|
3979 | DEBUG=$enableval |
---|
3980 | fi; |
---|
3981 | |
---|
3982 | if test x$DEBUG = xno; then |
---|
3983 | echo "no" |
---|
3984 | echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." |
---|
3985 | DEBUG=4 |
---|
3986 | elif test x$DEBUG = xyes; then |
---|
3987 | echo "yes" |
---|
3988 | echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." |
---|
3989 | DEBUG=4 |
---|
3990 | else |
---|
3991 | echo "yes: setting debuglevel to to $DEBUG" |
---|
3992 | fi |
---|
3993 | |
---|
3994 | cat >>confdefs.h <<_ACEOF |
---|
3995 | #define DEBUG $DEBUG |
---|
3996 | _ACEOF |
---|
3997 | |
---|
3998 | |
---|
3999 | |
---|
4000 | #---------------# |
---|
4001 | # Modular Debug # |
---|
4002 | #---------------# |
---|
4003 | MODULAR_DEBUG=yes |
---|
4004 | echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 |
---|
4005 | echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 |
---|
4006 | # Check whether --enable-modular-debug or --disable-modular-debug was given. |
---|
4007 | if test "${enable_modular_debug+set}" = set; then |
---|
4008 | enableval="$enable_modular_debug" |
---|
4009 | MODULAR_DEBUG=$enableval |
---|
4010 | fi; |
---|
4011 | |
---|
4012 | if test x$MODULAR_DEBUG = xno; then |
---|
4013 | echo "no" |
---|
4014 | elif test x$MODULAR_DEBUG = xyes; then |
---|
4015 | echo "yes" |
---|
4016 | |
---|
4017 | cat >>confdefs.h <<_ACEOF |
---|
4018 | #define MODULAR_DEBUG 1 |
---|
4019 | _ACEOF |
---|
4020 | |
---|
4021 | fi |
---|
4022 | |
---|
4023 | #--------------# |
---|
4024 | # GTK-disabled # |
---|
4025 | #--------------# |
---|
4026 | echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 |
---|
4027 | echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 |
---|
4028 | # Check whether --enable-gtk or --disable-gtk was given. |
---|
4029 | if test "${enable_gtk+set}" = set; then |
---|
4030 | enableval="$enable_gtk" |
---|
4031 | def_gtk=no |
---|
4032 | else |
---|
4033 | def_gtk=yes |
---|
4034 | fi; |
---|
4035 | if test x$def_gtk = xyes; then |
---|
4036 | echo "yes" |
---|
4037 | fi |
---|
4038 | if test x$def_gtk = xno; then |
---|
4039 | echo "no" |
---|
4040 | fi |
---|
4041 | |
---|
4042 | #------------------# |
---|
4043 | # libCurl-disabled # |
---|
4044 | #------------------# |
---|
4045 | echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 |
---|
4046 | echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 |
---|
4047 | # Check whether --enable-curl or --disable-curl was given. |
---|
4048 | if test "${enable_curl+set}" = set; then |
---|
4049 | enableval="$enable_curl" |
---|
4050 | def_curl=no |
---|
4051 | else |
---|
4052 | def_curl=yes |
---|
4053 | fi; |
---|
4054 | if test x$def_curl = xyes; then |
---|
4055 | echo "yes" |
---|
4056 | fi |
---|
4057 | if test x$def_curl = xno; then |
---|
4058 | echo "no" |
---|
4059 | fi |
---|
4060 | |
---|
4061 | #-------------------# |
---|
4062 | # SubProject-enable # |
---|
4063 | #-------------------# |
---|
4064 | def_sub_projects=no |
---|
4065 | echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 |
---|
4066 | echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 |
---|
4067 | |
---|
4068 | # Check whether --with-sub-projects or --without-sub-projects was given. |
---|
4069 | if test "${with_sub_projects+set}" = set; then |
---|
4070 | withval="$with_sub_projects" |
---|
4071 | def_sub_projects=yes |
---|
4072 | fi; |
---|
4073 | if test x$def_sub_projects = xyes; then |
---|
4074 | echo "yes" |
---|
4075 | fi |
---|
4076 | if test x$def_sub_projects = xno; then |
---|
4077 | echo "no" |
---|
4078 | fi |
---|
4079 | |
---|
4080 | |
---|
4081 | if test x$def_sub_projects = xyes; then |
---|
4082 | SUB_PROJECTS_TRUE= |
---|
4083 | SUB_PROJECTS_FALSE='#' |
---|
4084 | else |
---|
4085 | SUB_PROJECTS_TRUE='#' |
---|
4086 | SUB_PROJECTS_FALSE= |
---|
4087 | fi |
---|
4088 | |
---|
4089 | |
---|
4090 | #-------------------# |
---|
4091 | # Profiling Enabled # |
---|
4092 | #-------------------# |
---|
4093 | def_profiling=no |
---|
4094 | echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 |
---|
4095 | echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 |
---|
4096 | # Check whether --enable-profile or --disable-profile was given. |
---|
4097 | if test "${enable_profile+set}" = set; then |
---|
4098 | enableval="$enable_profile" |
---|
4099 | def_profiling=yes |
---|
4100 | fi; |
---|
4101 | if test x$def_profiling = xyes; then |
---|
4102 | echo "yes" |
---|
4103 | CXXFLAGS="$CXXFLAGS -pg" |
---|
4104 | fi |
---|
4105 | if test x$def_profiling = xno; then |
---|
4106 | echo "no" |
---|
4107 | fi |
---|
4108 | |
---|
4109 | #----------------# |
---|
4110 | # efence Enabled # |
---|
4111 | #----------------# |
---|
4112 | def_efence=no |
---|
4113 | echo "$as_me:$LINENO: checking if efence should be enabled" >&5 |
---|
4114 | echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 |
---|
4115 | # Check whether --enable-efence or --disable-efence was given. |
---|
4116 | if test "${enable_efence+set}" = set; then |
---|
4117 | enableval="$enable_efence" |
---|
4118 | def_efence=yes |
---|
4119 | fi; |
---|
4120 | if test x$def_efence = xyes; then |
---|
4121 | echo "yes" |
---|
4122 | fi |
---|
4123 | if test x$def_efence = xno; then |
---|
4124 | echo "no" |
---|
4125 | fi |
---|
4126 | |
---|
4127 | #----------------------# |
---|
4128 | # Documentation-enable # |
---|
4129 | #----------------------# |
---|
4130 | def_documentation=no |
---|
4131 | echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 |
---|
4132 | echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 |
---|
4133 | # Check whether --enable-documentation or --disable-documentation was given. |
---|
4134 | if test "${enable_documentation+set}" = set; then |
---|
4135 | enableval="$enable_documentation" |
---|
4136 | def_documentation=yes |
---|
4137 | fi; |
---|
4138 | if test x$def_documentation = xyes; then |
---|
4139 | echo "yes" |
---|
4140 | fi |
---|
4141 | if test x$def_documentation = xno; then |
---|
4142 | echo "no" |
---|
4143 | fi |
---|
4144 | |
---|
4145 | |
---|
4146 | if test x$def_documentation = xyes; then |
---|
4147 | DOCUMENTATION_TRUE= |
---|
4148 | DOCUMENTATION_FALSE='#' |
---|
4149 | else |
---|
4150 | DOCUMENTATION_TRUE='#' |
---|
4151 | DOCUMENTATION_FALSE= |
---|
4152 | fi |
---|
4153 | |
---|
4154 | |
---|
4155 | ####################### |
---|
4156 | ## PROGRAMM CHECKING ## |
---|
4157 | ## 3. party Programs ## |
---|
4158 | ####################### |
---|
4159 | |
---|
4160 | #----------------------# |
---|
4161 | # checking for Doxygen # |
---|
4162 | #----------------------# |
---|
4163 | # Extract the first word of "doxygen", so it can be a program name with args. |
---|
4164 | set dummy doxygen; ac_word=$2 |
---|
4165 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4167 | if test "${ac_cv_path_DOXYGEN+set}" = set; then |
---|
4168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4169 | else |
---|
4170 | case $DOXYGEN in |
---|
4171 | [\\/]* | ?:[\\/]*) |
---|
4172 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
---|
4173 | ;; |
---|
4174 | *) |
---|
4175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4176 | for as_dir in $PATH |
---|
4177 | do |
---|
4178 | IFS=$as_save_IFS |
---|
4179 | test -z "$as_dir" && as_dir=. |
---|
4180 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4181 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4182 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
---|
4183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4184 | break 2 |
---|
4185 | fi |
---|
4186 | done |
---|
4187 | done |
---|
4188 | |
---|
4189 | ;; |
---|
4190 | esac |
---|
4191 | fi |
---|
4192 | DOXYGEN=$ac_cv_path_DOXYGEN |
---|
4193 | |
---|
4194 | if test -n "$DOXYGEN"; then |
---|
4195 | echo "$as_me:$LINENO: result: $DOXYGEN" >&5 |
---|
4196 | echo "${ECHO_T}$DOXYGEN" >&6 |
---|
4197 | else |
---|
4198 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4199 | echo "${ECHO_T}no" >&6 |
---|
4200 | fi |
---|
4201 | |
---|
4202 | |
---|
4203 | |
---|
4204 | if test $DOXYGEN; then |
---|
4205 | DOXYGEN_TRUE= |
---|
4206 | DOXYGEN_FALSE='#' |
---|
4207 | else |
---|
4208 | DOXYGEN_TRUE='#' |
---|
4209 | DOXYGEN_FALSE= |
---|
4210 | fi |
---|
4211 | |
---|
4212 | |
---|
4213 | #--------------------# |
---|
4214 | # checking for gprof # |
---|
4215 | #--------------------# |
---|
4216 | # Extract the first word of "gprof", so it can be a program name with args. |
---|
4217 | set dummy gprof; ac_word=$2 |
---|
4218 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4220 | if test "${ac_cv_path_GPROF+set}" = set; then |
---|
4221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4222 | else |
---|
4223 | case $GPROF in |
---|
4224 | [\\/]* | ?:[\\/]*) |
---|
4225 | ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. |
---|
4226 | ;; |
---|
4227 | *) |
---|
4228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4229 | for as_dir in $PATH |
---|
4230 | do |
---|
4231 | IFS=$as_save_IFS |
---|
4232 | test -z "$as_dir" && as_dir=. |
---|
4233 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4235 | ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" |
---|
4236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4237 | break 2 |
---|
4238 | fi |
---|
4239 | done |
---|
4240 | done |
---|
4241 | |
---|
4242 | ;; |
---|
4243 | esac |
---|
4244 | fi |
---|
4245 | GPROF=$ac_cv_path_GPROF |
---|
4246 | |
---|
4247 | if test -n "$GPROF"; then |
---|
4248 | echo "$as_me:$LINENO: result: $GPROF" >&5 |
---|
4249 | echo "${ECHO_T}$GPROF" >&6 |
---|
4250 | else |
---|
4251 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4252 | echo "${ECHO_T}no" >&6 |
---|
4253 | fi |
---|
4254 | |
---|
4255 | |
---|
4256 | #-------------------------# |
---|
4257 | # checking for pkg-config # |
---|
4258 | #-------------------------# |
---|
4259 | if test x$def_gtk = xyes; then |
---|
4260 | # Extract the first word of "pkg-config", so it can be a program name with args. |
---|
4261 | set dummy pkg-config; ac_word=$2 |
---|
4262 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4264 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
---|
4265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4266 | else |
---|
4267 | case $PKG_CONFIG in |
---|
4268 | [\\/]* | ?:[\\/]*) |
---|
4269 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
---|
4270 | ;; |
---|
4271 | *) |
---|
4272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4273 | for as_dir in $PATH |
---|
4274 | do |
---|
4275 | IFS=$as_save_IFS |
---|
4276 | test -z "$as_dir" && as_dir=. |
---|
4277 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4278 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4279 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
4280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4281 | break 2 |
---|
4282 | fi |
---|
4283 | done |
---|
4284 | done |
---|
4285 | |
---|
4286 | ;; |
---|
4287 | esac |
---|
4288 | fi |
---|
4289 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
---|
4290 | |
---|
4291 | if test -n "$PKG_CONFIG"; then |
---|
4292 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
---|
4293 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
---|
4294 | else |
---|
4295 | echo "$as_me:$LINENO: result: no" >&5 |
---|
4296 | echo "${ECHO_T}no" >&6 |
---|
4297 | fi |
---|
4298 | |
---|
4299 | fi |
---|
4300 | |
---|
4301 | |
---|
4302 | ######################### |
---|
4303 | ## CHECKING FOR SYSTEM ## |
---|
4304 | ######################### |
---|
4305 | ## here the system is checked, and openGL is included |
---|
4306 | ## also checking for SDL on differen Systems |
---|
4307 | |
---|
4308 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
4309 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
4310 | ## checking for openGL-environment and other sys-specific parameters |
---|
4311 | case "$target" in |
---|
4312 | |
---|
4313 | ########### |
---|
4314 | #---------# |
---|
4315 | # WINDOWS # |
---|
4316 | #---------# |
---|
4317 | ########### |
---|
4318 | *-*-mingw32*) |
---|
4319 | echo "mingw-WINDOWS detected" |
---|
4320 | |
---|
4321 | CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS" |
---|
4322 | |
---|
4323 | mingw="yes" |
---|
4324 | MSBITFIELDS="-mms-bitfields" |
---|
4325 | MWINDOWS="-mwindows" |
---|
4326 | |
---|
4327 | |
---|
4328 | |
---|
4329 | # checking for mingw32 |
---|
4330 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4331 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4332 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4334 | else |
---|
4335 | ac_check_lib_save_LIBS=$LIBS |
---|
4336 | LIBS="-lmingw32 $LIBS" |
---|
4337 | cat >conftest.$ac_ext <<_ACEOF |
---|
4338 | /* confdefs.h. */ |
---|
4339 | _ACEOF |
---|
4340 | cat confdefs.h >>conftest.$ac_ext |
---|
4341 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4342 | /* end confdefs.h. */ |
---|
4343 | |
---|
4344 | |
---|
4345 | int |
---|
4346 | main () |
---|
4347 | { |
---|
4348 | main (); |
---|
4349 | ; |
---|
4350 | return 0; |
---|
4351 | } |
---|
4352 | _ACEOF |
---|
4353 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4355 | (eval $ac_link) 2>conftest.er1 |
---|
4356 | ac_status=$? |
---|
4357 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4358 | rm -f conftest.er1 |
---|
4359 | cat conftest.err >&5 |
---|
4360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4361 | (exit $ac_status); } && |
---|
4362 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4363 | || test ! -s conftest.err' |
---|
4364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4365 | (eval $ac_try) 2>&5 |
---|
4366 | ac_status=$? |
---|
4367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4368 | (exit $ac_status); }; } && |
---|
4369 | { ac_try='test -s conftest$ac_exeext' |
---|
4370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4371 | (eval $ac_try) 2>&5 |
---|
4372 | ac_status=$? |
---|
4373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4374 | (exit $ac_status); }; }; then |
---|
4375 | ac_cv_lib_mingw32_main=yes |
---|
4376 | else |
---|
4377 | echo "$as_me: failed program was:" >&5 |
---|
4378 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4379 | |
---|
4380 | ac_cv_lib_mingw32_main=no |
---|
4381 | fi |
---|
4382 | rm -f conftest.err conftest.$ac_objext \ |
---|
4383 | conftest$ac_exeext conftest.$ac_ext |
---|
4384 | LIBS=$ac_check_lib_save_LIBS |
---|
4385 | fi |
---|
4386 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4387 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4388 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4389 | FOUND_mingw32=yes |
---|
4390 | fi |
---|
4391 | |
---|
4392 | if test x$FOUND_mingw32 = xyes; then |
---|
4393 | LIBS="$LIBS -lmingw32" |
---|
4394 | fi |
---|
4395 | |
---|
4396 | #-----------# |
---|
4397 | # SDL(win) # |
---|
4398 | #-----------# |
---|
4399 | # checking for SDL-headers |
---|
4400 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
4401 | |
---|
4402 | |
---|
4403 | |
---|
4404 | |
---|
4405 | |
---|
4406 | |
---|
4407 | |
---|
4408 | |
---|
4409 | |
---|
4410 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
4411 | inttypes.h stdint.h unistd.h |
---|
4412 | do |
---|
4413 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4418 | else |
---|
4419 | cat >conftest.$ac_ext <<_ACEOF |
---|
4420 | /* confdefs.h. */ |
---|
4421 | _ACEOF |
---|
4422 | cat confdefs.h >>conftest.$ac_ext |
---|
4423 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4424 | /* end confdefs.h. */ |
---|
4425 | $ac_includes_default |
---|
4426 | |
---|
4427 | #include <$ac_header> |
---|
4428 | _ACEOF |
---|
4429 | rm -f conftest.$ac_objext |
---|
4430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4431 | (eval $ac_compile) 2>conftest.er1 |
---|
4432 | ac_status=$? |
---|
4433 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4434 | rm -f conftest.er1 |
---|
4435 | cat conftest.err >&5 |
---|
4436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4437 | (exit $ac_status); } && |
---|
4438 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4439 | || test ! -s conftest.err' |
---|
4440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4441 | (eval $ac_try) 2>&5 |
---|
4442 | ac_status=$? |
---|
4443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4444 | (exit $ac_status); }; } && |
---|
4445 | { ac_try='test -s conftest.$ac_objext' |
---|
4446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4447 | (eval $ac_try) 2>&5 |
---|
4448 | ac_status=$? |
---|
4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4450 | (exit $ac_status); }; }; then |
---|
4451 | eval "$as_ac_Header=yes" |
---|
4452 | else |
---|
4453 | echo "$as_me: failed program was:" >&5 |
---|
4454 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4455 | |
---|
4456 | eval "$as_ac_Header=no" |
---|
4457 | fi |
---|
4458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4459 | fi |
---|
4460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4462 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4463 | cat >>confdefs.h <<_ACEOF |
---|
4464 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4465 | _ACEOF |
---|
4466 | |
---|
4467 | fi |
---|
4468 | |
---|
4469 | done |
---|
4470 | |
---|
4471 | |
---|
4472 | |
---|
4473 | for ac_header in SDL/SDL.h |
---|
4474 | do |
---|
4475 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4476 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4477 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4478 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4479 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4481 | fi |
---|
4482 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4483 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4484 | else |
---|
4485 | # Is the header compilable? |
---|
4486 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4487 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4488 | cat >conftest.$ac_ext <<_ACEOF |
---|
4489 | /* confdefs.h. */ |
---|
4490 | _ACEOF |
---|
4491 | cat confdefs.h >>conftest.$ac_ext |
---|
4492 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4493 | /* end confdefs.h. */ |
---|
4494 | $ac_includes_default |
---|
4495 | #include <$ac_header> |
---|
4496 | _ACEOF |
---|
4497 | rm -f conftest.$ac_objext |
---|
4498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4499 | (eval $ac_compile) 2>conftest.er1 |
---|
4500 | ac_status=$? |
---|
4501 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4502 | rm -f conftest.er1 |
---|
4503 | cat conftest.err >&5 |
---|
4504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4505 | (exit $ac_status); } && |
---|
4506 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4507 | || test ! -s conftest.err' |
---|
4508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4509 | (eval $ac_try) 2>&5 |
---|
4510 | ac_status=$? |
---|
4511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4512 | (exit $ac_status); }; } && |
---|
4513 | { ac_try='test -s conftest.$ac_objext' |
---|
4514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4515 | (eval $ac_try) 2>&5 |
---|
4516 | ac_status=$? |
---|
4517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4518 | (exit $ac_status); }; }; then |
---|
4519 | ac_header_compiler=yes |
---|
4520 | else |
---|
4521 | echo "$as_me: failed program was:" >&5 |
---|
4522 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4523 | |
---|
4524 | ac_header_compiler=no |
---|
4525 | fi |
---|
4526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4527 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4528 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4529 | |
---|
4530 | # Is the header present? |
---|
4531 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4532 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4533 | cat >conftest.$ac_ext <<_ACEOF |
---|
4534 | /* confdefs.h. */ |
---|
4535 | _ACEOF |
---|
4536 | cat confdefs.h >>conftest.$ac_ext |
---|
4537 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4538 | /* end confdefs.h. */ |
---|
4539 | #include <$ac_header> |
---|
4540 | _ACEOF |
---|
4541 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4542 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4543 | ac_status=$? |
---|
4544 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4545 | rm -f conftest.er1 |
---|
4546 | cat conftest.err >&5 |
---|
4547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4548 | (exit $ac_status); } >/dev/null; then |
---|
4549 | if test -s conftest.err; then |
---|
4550 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4551 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4552 | else |
---|
4553 | ac_cpp_err= |
---|
4554 | fi |
---|
4555 | else |
---|
4556 | ac_cpp_err=yes |
---|
4557 | fi |
---|
4558 | if test -z "$ac_cpp_err"; then |
---|
4559 | ac_header_preproc=yes |
---|
4560 | else |
---|
4561 | echo "$as_me: failed program was:" >&5 |
---|
4562 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4563 | |
---|
4564 | ac_header_preproc=no |
---|
4565 | fi |
---|
4566 | rm -f conftest.err conftest.$ac_ext |
---|
4567 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4568 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4569 | |
---|
4570 | # So? What about this header? |
---|
4571 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4572 | yes:no: ) |
---|
4573 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4574 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4575 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4576 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4577 | ac_header_preproc=yes |
---|
4578 | ;; |
---|
4579 | no:yes:* ) |
---|
4580 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4581 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4582 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4583 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4584 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4585 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4586 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4587 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4588 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4589 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4590 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4591 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4592 | ( |
---|
4593 | cat <<\_ASBOX |
---|
4594 | ## ---------------------------------------------- ## |
---|
4595 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4596 | ## ---------------------------------------------- ## |
---|
4597 | _ASBOX |
---|
4598 | ) | |
---|
4599 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4600 | ;; |
---|
4601 | esac |
---|
4602 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4603 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4604 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4606 | else |
---|
4607 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4608 | fi |
---|
4609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4610 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4611 | |
---|
4612 | fi |
---|
4613 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4614 | cat >>confdefs.h <<_ACEOF |
---|
4615 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4616 | _ACEOF |
---|
4617 | |
---|
4618 | else |
---|
4619 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
4620 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
4621 | { (exit 1); exit 1; }; } |
---|
4622 | fi |
---|
4623 | |
---|
4624 | done |
---|
4625 | |
---|
4626 | |
---|
4627 | #checking for libSDL |
---|
4628 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
4629 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
4630 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
4631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4632 | else |
---|
4633 | ac_check_lib_save_LIBS=$LIBS |
---|
4634 | LIBS="-lsdlmain $LIBS" |
---|
4635 | cat >conftest.$ac_ext <<_ACEOF |
---|
4636 | /* confdefs.h. */ |
---|
4637 | _ACEOF |
---|
4638 | cat confdefs.h >>conftest.$ac_ext |
---|
4639 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4640 | /* end confdefs.h. */ |
---|
4641 | |
---|
4642 | |
---|
4643 | int |
---|
4644 | main () |
---|
4645 | { |
---|
4646 | main (); |
---|
4647 | ; |
---|
4648 | return 0; |
---|
4649 | } |
---|
4650 | _ACEOF |
---|
4651 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4653 | (eval $ac_link) 2>conftest.er1 |
---|
4654 | ac_status=$? |
---|
4655 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4656 | rm -f conftest.er1 |
---|
4657 | cat conftest.err >&5 |
---|
4658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4659 | (exit $ac_status); } && |
---|
4660 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4661 | || test ! -s conftest.err' |
---|
4662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4663 | (eval $ac_try) 2>&5 |
---|
4664 | ac_status=$? |
---|
4665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4666 | (exit $ac_status); }; } && |
---|
4667 | { ac_try='test -s conftest$ac_exeext' |
---|
4668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4669 | (eval $ac_try) 2>&5 |
---|
4670 | ac_status=$? |
---|
4671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4672 | (exit $ac_status); }; }; then |
---|
4673 | ac_cv_lib_sdlmain_main=yes |
---|
4674 | else |
---|
4675 | echo "$as_me: failed program was:" >&5 |
---|
4676 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4677 | |
---|
4678 | ac_cv_lib_sdlmain_main=no |
---|
4679 | fi |
---|
4680 | rm -f conftest.err conftest.$ac_objext \ |
---|
4681 | conftest$ac_exeext conftest.$ac_ext |
---|
4682 | LIBS=$ac_check_lib_save_LIBS |
---|
4683 | fi |
---|
4684 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
4685 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
4686 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
4687 | FOUND_sdlmain=yes |
---|
4688 | fi |
---|
4689 | |
---|
4690 | if test x$FOUND_sdlmain = xyes ; then |
---|
4691 | LIBS="$LIBS -lsdlmain" |
---|
4692 | else |
---|
4693 | echo "------------------" |
---|
4694 | echo "SDL library not found." |
---|
4695 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4696 | echo "------------------" |
---|
4697 | exit 1 |
---|
4698 | fi |
---|
4699 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
4700 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
4701 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
4702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4703 | else |
---|
4704 | ac_check_lib_save_LIBS=$LIBS |
---|
4705 | LIBS="-lsdl $LIBS" |
---|
4706 | cat >conftest.$ac_ext <<_ACEOF |
---|
4707 | /* confdefs.h. */ |
---|
4708 | _ACEOF |
---|
4709 | cat confdefs.h >>conftest.$ac_ext |
---|
4710 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4711 | /* end confdefs.h. */ |
---|
4712 | |
---|
4713 | |
---|
4714 | int |
---|
4715 | main () |
---|
4716 | { |
---|
4717 | main (); |
---|
4718 | ; |
---|
4719 | return 0; |
---|
4720 | } |
---|
4721 | _ACEOF |
---|
4722 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4724 | (eval $ac_link) 2>conftest.er1 |
---|
4725 | ac_status=$? |
---|
4726 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4727 | rm -f conftest.er1 |
---|
4728 | cat conftest.err >&5 |
---|
4729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4730 | (exit $ac_status); } && |
---|
4731 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4732 | || test ! -s conftest.err' |
---|
4733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4734 | (eval $ac_try) 2>&5 |
---|
4735 | ac_status=$? |
---|
4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4737 | (exit $ac_status); }; } && |
---|
4738 | { ac_try='test -s conftest$ac_exeext' |
---|
4739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4740 | (eval $ac_try) 2>&5 |
---|
4741 | ac_status=$? |
---|
4742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4743 | (exit $ac_status); }; }; then |
---|
4744 | ac_cv_lib_sdl_main=yes |
---|
4745 | else |
---|
4746 | echo "$as_me: failed program was:" >&5 |
---|
4747 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4748 | |
---|
4749 | ac_cv_lib_sdl_main=no |
---|
4750 | fi |
---|
4751 | rm -f conftest.err conftest.$ac_objext \ |
---|
4752 | conftest$ac_exeext conftest.$ac_ext |
---|
4753 | LIBS=$ac_check_lib_save_LIBS |
---|
4754 | fi |
---|
4755 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
4756 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
4757 | if test $ac_cv_lib_sdl_main = yes; then |
---|
4758 | FOUND_sdl=yes |
---|
4759 | fi |
---|
4760 | |
---|
4761 | if test x$FOUND_sdl = xyes ; then |
---|
4762 | LIBS="$LIBS -lsdl" |
---|
4763 | else |
---|
4764 | echo "------------------" |
---|
4765 | echo "SDL library not found." |
---|
4766 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4767 | echo "------------------" |
---|
4768 | exit -1 |
---|
4769 | fi |
---|
4770 | |
---|
4771 | #---------------# |
---|
4772 | # open-GL (win) # |
---|
4773 | #---------------# |
---|
4774 | # checking gl header |
---|
4775 | |
---|
4776 | for ac_header in GL/gl.h |
---|
4777 | do |
---|
4778 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4779 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4780 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4782 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4784 | fi |
---|
4785 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4786 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4787 | else |
---|
4788 | # Is the header compilable? |
---|
4789 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4790 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4791 | cat >conftest.$ac_ext <<_ACEOF |
---|
4792 | /* confdefs.h. */ |
---|
4793 | _ACEOF |
---|
4794 | cat confdefs.h >>conftest.$ac_ext |
---|
4795 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4796 | /* end confdefs.h. */ |
---|
4797 | $ac_includes_default |
---|
4798 | #include <$ac_header> |
---|
4799 | _ACEOF |
---|
4800 | rm -f conftest.$ac_objext |
---|
4801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4802 | (eval $ac_compile) 2>conftest.er1 |
---|
4803 | ac_status=$? |
---|
4804 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4805 | rm -f conftest.er1 |
---|
4806 | cat conftest.err >&5 |
---|
4807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4808 | (exit $ac_status); } && |
---|
4809 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4810 | || test ! -s conftest.err' |
---|
4811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4812 | (eval $ac_try) 2>&5 |
---|
4813 | ac_status=$? |
---|
4814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4815 | (exit $ac_status); }; } && |
---|
4816 | { ac_try='test -s conftest.$ac_objext' |
---|
4817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4818 | (eval $ac_try) 2>&5 |
---|
4819 | ac_status=$? |
---|
4820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4821 | (exit $ac_status); }; }; then |
---|
4822 | ac_header_compiler=yes |
---|
4823 | else |
---|
4824 | echo "$as_me: failed program was:" >&5 |
---|
4825 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4826 | |
---|
4827 | ac_header_compiler=no |
---|
4828 | fi |
---|
4829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
4830 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4831 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4832 | |
---|
4833 | # Is the header present? |
---|
4834 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4835 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4836 | cat >conftest.$ac_ext <<_ACEOF |
---|
4837 | /* confdefs.h. */ |
---|
4838 | _ACEOF |
---|
4839 | cat confdefs.h >>conftest.$ac_ext |
---|
4840 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4841 | /* end confdefs.h. */ |
---|
4842 | #include <$ac_header> |
---|
4843 | _ACEOF |
---|
4844 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4845 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4846 | ac_status=$? |
---|
4847 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4848 | rm -f conftest.er1 |
---|
4849 | cat conftest.err >&5 |
---|
4850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4851 | (exit $ac_status); } >/dev/null; then |
---|
4852 | if test -s conftest.err; then |
---|
4853 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4854 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
4855 | else |
---|
4856 | ac_cpp_err= |
---|
4857 | fi |
---|
4858 | else |
---|
4859 | ac_cpp_err=yes |
---|
4860 | fi |
---|
4861 | if test -z "$ac_cpp_err"; then |
---|
4862 | ac_header_preproc=yes |
---|
4863 | else |
---|
4864 | echo "$as_me: failed program was:" >&5 |
---|
4865 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4866 | |
---|
4867 | ac_header_preproc=no |
---|
4868 | fi |
---|
4869 | rm -f conftest.err conftest.$ac_ext |
---|
4870 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4871 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4872 | |
---|
4873 | # So? What about this header? |
---|
4874 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
4875 | yes:no: ) |
---|
4876 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4877 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4878 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
4879 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
4880 | ac_header_preproc=yes |
---|
4881 | ;; |
---|
4882 | no:yes:* ) |
---|
4883 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4884 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4885 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4886 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4887 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
4888 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
4889 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
4890 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
4891 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4892 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4893 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
4894 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
4895 | ( |
---|
4896 | cat <<\_ASBOX |
---|
4897 | ## ---------------------------------------------- ## |
---|
4898 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
4899 | ## ---------------------------------------------- ## |
---|
4900 | _ASBOX |
---|
4901 | ) | |
---|
4902 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4903 | ;; |
---|
4904 | esac |
---|
4905 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4906 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4907 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4909 | else |
---|
4910 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
4911 | fi |
---|
4912 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4913 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4914 | |
---|
4915 | fi |
---|
4916 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4917 | cat >>confdefs.h <<_ACEOF |
---|
4918 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4919 | _ACEOF |
---|
4920 | |
---|
4921 | else |
---|
4922 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4923 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4924 | { (exit 1); exit 1; }; } |
---|
4925 | fi |
---|
4926 | |
---|
4927 | done |
---|
4928 | |
---|
4929 | # checking for Windows openGl library |
---|
4930 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
4931 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
4932 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
4933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4934 | else |
---|
4935 | ac_check_lib_save_LIBS=$LIBS |
---|
4936 | LIBS="-lopengl32 $LIBS" |
---|
4937 | cat >conftest.$ac_ext <<_ACEOF |
---|
4938 | /* confdefs.h. */ |
---|
4939 | _ACEOF |
---|
4940 | cat confdefs.h >>conftest.$ac_ext |
---|
4941 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4942 | /* end confdefs.h. */ |
---|
4943 | |
---|
4944 | |
---|
4945 | int |
---|
4946 | main () |
---|
4947 | { |
---|
4948 | main (); |
---|
4949 | ; |
---|
4950 | return 0; |
---|
4951 | } |
---|
4952 | _ACEOF |
---|
4953 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4955 | (eval $ac_link) 2>conftest.er1 |
---|
4956 | ac_status=$? |
---|
4957 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4958 | rm -f conftest.er1 |
---|
4959 | cat conftest.err >&5 |
---|
4960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4961 | (exit $ac_status); } && |
---|
4962 | { ac_try='test -z "$ac_c_werror_flag" |
---|
4963 | || test ! -s conftest.err' |
---|
4964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4965 | (eval $ac_try) 2>&5 |
---|
4966 | ac_status=$? |
---|
4967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4968 | (exit $ac_status); }; } && |
---|
4969 | { ac_try='test -s conftest$ac_exeext' |
---|
4970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4971 | (eval $ac_try) 2>&5 |
---|
4972 | ac_status=$? |
---|
4973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4974 | (exit $ac_status); }; }; then |
---|
4975 | ac_cv_lib_opengl32_main=yes |
---|
4976 | else |
---|
4977 | echo "$as_me: failed program was:" >&5 |
---|
4978 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4979 | |
---|
4980 | ac_cv_lib_opengl32_main=no |
---|
4981 | fi |
---|
4982 | rm -f conftest.err conftest.$ac_objext \ |
---|
4983 | conftest$ac_exeext conftest.$ac_ext |
---|
4984 | LIBS=$ac_check_lib_save_LIBS |
---|
4985 | fi |
---|
4986 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
4987 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
4988 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
4989 | FOUND_opengl32=yes |
---|
4990 | else |
---|
4991 | "gl/gl.h" |
---|
4992 | fi |
---|
4993 | |
---|
4994 | if test x$FOUND_opengl32 = xyes ; then |
---|
4995 | LIBS="$LIBS -lopengl32" |
---|
4996 | else |
---|
4997 | echo "------------------" |
---|
4998 | echo "opengl not found." |
---|
4999 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
5000 | echo "------------------" |
---|
5001 | exit -1 |
---|
5002 | fi |
---|
5003 | |
---|
5004 | # cheking for GLU-header |
---|
5005 | |
---|
5006 | for ac_header in GL/glu.h |
---|
5007 | do |
---|
5008 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5009 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5010 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5011 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5012 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5014 | fi |
---|
5015 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5016 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5017 | else |
---|
5018 | # Is the header compilable? |
---|
5019 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5020 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5021 | cat >conftest.$ac_ext <<_ACEOF |
---|
5022 | /* confdefs.h. */ |
---|
5023 | _ACEOF |
---|
5024 | cat confdefs.h >>conftest.$ac_ext |
---|
5025 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5026 | /* end confdefs.h. */ |
---|
5027 | $ac_includes_default |
---|
5028 | #include <$ac_header> |
---|
5029 | _ACEOF |
---|
5030 | rm -f conftest.$ac_objext |
---|
5031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5032 | (eval $ac_compile) 2>conftest.er1 |
---|
5033 | ac_status=$? |
---|
5034 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5035 | rm -f conftest.er1 |
---|
5036 | cat conftest.err >&5 |
---|
5037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5038 | (exit $ac_status); } && |
---|
5039 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5040 | || test ! -s conftest.err' |
---|
5041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5042 | (eval $ac_try) 2>&5 |
---|
5043 | ac_status=$? |
---|
5044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5045 | (exit $ac_status); }; } && |
---|
5046 | { ac_try='test -s conftest.$ac_objext' |
---|
5047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5048 | (eval $ac_try) 2>&5 |
---|
5049 | ac_status=$? |
---|
5050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5051 | (exit $ac_status); }; }; then |
---|
5052 | ac_header_compiler=yes |
---|
5053 | else |
---|
5054 | echo "$as_me: failed program was:" >&5 |
---|
5055 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5056 | |
---|
5057 | ac_header_compiler=no |
---|
5058 | fi |
---|
5059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5060 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5061 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5062 | |
---|
5063 | # Is the header present? |
---|
5064 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5065 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5066 | cat >conftest.$ac_ext <<_ACEOF |
---|
5067 | /* confdefs.h. */ |
---|
5068 | _ACEOF |
---|
5069 | cat confdefs.h >>conftest.$ac_ext |
---|
5070 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5071 | /* end confdefs.h. */ |
---|
5072 | #include <$ac_header> |
---|
5073 | _ACEOF |
---|
5074 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5075 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5076 | ac_status=$? |
---|
5077 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5078 | rm -f conftest.er1 |
---|
5079 | cat conftest.err >&5 |
---|
5080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5081 | (exit $ac_status); } >/dev/null; then |
---|
5082 | if test -s conftest.err; then |
---|
5083 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5084 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5085 | else |
---|
5086 | ac_cpp_err= |
---|
5087 | fi |
---|
5088 | else |
---|
5089 | ac_cpp_err=yes |
---|
5090 | fi |
---|
5091 | if test -z "$ac_cpp_err"; then |
---|
5092 | ac_header_preproc=yes |
---|
5093 | else |
---|
5094 | echo "$as_me: failed program was:" >&5 |
---|
5095 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5096 | |
---|
5097 | ac_header_preproc=no |
---|
5098 | fi |
---|
5099 | rm -f conftest.err conftest.$ac_ext |
---|
5100 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5101 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5102 | |
---|
5103 | # So? What about this header? |
---|
5104 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5105 | yes:no: ) |
---|
5106 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5107 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5108 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5109 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5110 | ac_header_preproc=yes |
---|
5111 | ;; |
---|
5112 | no:yes:* ) |
---|
5113 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5114 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5115 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5116 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5117 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5118 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5119 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5120 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5121 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5122 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5123 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5124 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5125 | ( |
---|
5126 | cat <<\_ASBOX |
---|
5127 | ## ---------------------------------------------- ## |
---|
5128 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5129 | ## ---------------------------------------------- ## |
---|
5130 | _ASBOX |
---|
5131 | ) | |
---|
5132 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5133 | ;; |
---|
5134 | esac |
---|
5135 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5136 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5137 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5139 | else |
---|
5140 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5141 | fi |
---|
5142 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5143 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5144 | |
---|
5145 | fi |
---|
5146 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5147 | cat >>confdefs.h <<_ACEOF |
---|
5148 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5149 | _ACEOF |
---|
5150 | |
---|
5151 | else |
---|
5152 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5153 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5154 | { (exit 1); exit 1; }; } |
---|
5155 | fi |
---|
5156 | |
---|
5157 | done |
---|
5158 | |
---|
5159 | |
---|
5160 | # checking for libGLU |
---|
5161 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
5162 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
5163 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
5164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5165 | else |
---|
5166 | ac_check_lib_save_LIBS=$LIBS |
---|
5167 | LIBS="-lglu32 $LIBS" |
---|
5168 | cat >conftest.$ac_ext <<_ACEOF |
---|
5169 | /* confdefs.h. */ |
---|
5170 | _ACEOF |
---|
5171 | cat confdefs.h >>conftest.$ac_ext |
---|
5172 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5173 | /* end confdefs.h. */ |
---|
5174 | |
---|
5175 | |
---|
5176 | int |
---|
5177 | main () |
---|
5178 | { |
---|
5179 | main (); |
---|
5180 | ; |
---|
5181 | return 0; |
---|
5182 | } |
---|
5183 | _ACEOF |
---|
5184 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5186 | (eval $ac_link) 2>conftest.er1 |
---|
5187 | ac_status=$? |
---|
5188 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5189 | rm -f conftest.er1 |
---|
5190 | cat conftest.err >&5 |
---|
5191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5192 | (exit $ac_status); } && |
---|
5193 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5194 | || test ! -s conftest.err' |
---|
5195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5196 | (eval $ac_try) 2>&5 |
---|
5197 | ac_status=$? |
---|
5198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5199 | (exit $ac_status); }; } && |
---|
5200 | { ac_try='test -s conftest$ac_exeext' |
---|
5201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5202 | (eval $ac_try) 2>&5 |
---|
5203 | ac_status=$? |
---|
5204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5205 | (exit $ac_status); }; }; then |
---|
5206 | ac_cv_lib_glu32_main=yes |
---|
5207 | else |
---|
5208 | echo "$as_me: failed program was:" >&5 |
---|
5209 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5210 | |
---|
5211 | ac_cv_lib_glu32_main=no |
---|
5212 | fi |
---|
5213 | rm -f conftest.err conftest.$ac_objext \ |
---|
5214 | conftest$ac_exeext conftest.$ac_ext |
---|
5215 | LIBS=$ac_check_lib_save_LIBS |
---|
5216 | fi |
---|
5217 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
5218 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
5219 | if test $ac_cv_lib_glu32_main = yes; then |
---|
5220 | FOUND_glu32=yes |
---|
5221 | fi |
---|
5222 | |
---|
5223 | if test x$FOUND_glu32 = xyes ; then |
---|
5224 | LIBS="$LIBS -lGLU32" |
---|
5225 | else |
---|
5226 | echo "------------------" |
---|
5227 | echo "GLU library not found." |
---|
5228 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
5229 | echo "------------------" |
---|
5230 | exit -1 |
---|
5231 | fi |
---|
5232 | |
---|
5233 | #--------# |
---|
5234 | # openAL # |
---|
5235 | #--------# |
---|
5236 | # checking for openAL-headers |
---|
5237 | |
---|
5238 | for ac_header in AL/al.h |
---|
5239 | do |
---|
5240 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5241 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5242 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5243 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5244 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5246 | fi |
---|
5247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5248 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5249 | else |
---|
5250 | # Is the header compilable? |
---|
5251 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5252 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5253 | cat >conftest.$ac_ext <<_ACEOF |
---|
5254 | /* confdefs.h. */ |
---|
5255 | _ACEOF |
---|
5256 | cat confdefs.h >>conftest.$ac_ext |
---|
5257 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5258 | /* end confdefs.h. */ |
---|
5259 | $ac_includes_default |
---|
5260 | #include <$ac_header> |
---|
5261 | _ACEOF |
---|
5262 | rm -f conftest.$ac_objext |
---|
5263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5264 | (eval $ac_compile) 2>conftest.er1 |
---|
5265 | ac_status=$? |
---|
5266 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5267 | rm -f conftest.er1 |
---|
5268 | cat conftest.err >&5 |
---|
5269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5270 | (exit $ac_status); } && |
---|
5271 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5272 | || test ! -s conftest.err' |
---|
5273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5274 | (eval $ac_try) 2>&5 |
---|
5275 | ac_status=$? |
---|
5276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5277 | (exit $ac_status); }; } && |
---|
5278 | { ac_try='test -s conftest.$ac_objext' |
---|
5279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5280 | (eval $ac_try) 2>&5 |
---|
5281 | ac_status=$? |
---|
5282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5283 | (exit $ac_status); }; }; then |
---|
5284 | ac_header_compiler=yes |
---|
5285 | else |
---|
5286 | echo "$as_me: failed program was:" >&5 |
---|
5287 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5288 | |
---|
5289 | ac_header_compiler=no |
---|
5290 | fi |
---|
5291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5292 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5293 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5294 | |
---|
5295 | # Is the header present? |
---|
5296 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5297 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5298 | cat >conftest.$ac_ext <<_ACEOF |
---|
5299 | /* confdefs.h. */ |
---|
5300 | _ACEOF |
---|
5301 | cat confdefs.h >>conftest.$ac_ext |
---|
5302 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5303 | /* end confdefs.h. */ |
---|
5304 | #include <$ac_header> |
---|
5305 | _ACEOF |
---|
5306 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5307 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5308 | ac_status=$? |
---|
5309 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5310 | rm -f conftest.er1 |
---|
5311 | cat conftest.err >&5 |
---|
5312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5313 | (exit $ac_status); } >/dev/null; then |
---|
5314 | if test -s conftest.err; then |
---|
5315 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5316 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5317 | else |
---|
5318 | ac_cpp_err= |
---|
5319 | fi |
---|
5320 | else |
---|
5321 | ac_cpp_err=yes |
---|
5322 | fi |
---|
5323 | if test -z "$ac_cpp_err"; then |
---|
5324 | ac_header_preproc=yes |
---|
5325 | else |
---|
5326 | echo "$as_me: failed program was:" >&5 |
---|
5327 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5328 | |
---|
5329 | ac_header_preproc=no |
---|
5330 | fi |
---|
5331 | rm -f conftest.err conftest.$ac_ext |
---|
5332 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5333 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5334 | |
---|
5335 | # So? What about this header? |
---|
5336 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5337 | yes:no: ) |
---|
5338 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5339 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5340 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5341 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5342 | ac_header_preproc=yes |
---|
5343 | ;; |
---|
5344 | no:yes:* ) |
---|
5345 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5346 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5347 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5348 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5349 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5350 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5351 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5352 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5353 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5354 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5355 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5356 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5357 | ( |
---|
5358 | cat <<\_ASBOX |
---|
5359 | ## ---------------------------------------------- ## |
---|
5360 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5361 | ## ---------------------------------------------- ## |
---|
5362 | _ASBOX |
---|
5363 | ) | |
---|
5364 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5365 | ;; |
---|
5366 | esac |
---|
5367 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5368 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5369 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5371 | else |
---|
5372 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5373 | fi |
---|
5374 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5375 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5376 | |
---|
5377 | fi |
---|
5378 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5379 | cat >>confdefs.h <<_ACEOF |
---|
5380 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5381 | _ACEOF |
---|
5382 | |
---|
5383 | else |
---|
5384 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
5385 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
5386 | { (exit 1); exit 1; }; } |
---|
5387 | fi |
---|
5388 | |
---|
5389 | done |
---|
5390 | |
---|
5391 | # checking for openAL-lib |
---|
5392 | echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5 |
---|
5393 | echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6 |
---|
5394 | if test "${ac_cv_lib_OpenAL32_main+set}" = set; then |
---|
5395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5396 | else |
---|
5397 | ac_check_lib_save_LIBS=$LIBS |
---|
5398 | LIBS="-lOpenAL32 $LIBS" |
---|
5399 | cat >conftest.$ac_ext <<_ACEOF |
---|
5400 | /* confdefs.h. */ |
---|
5401 | _ACEOF |
---|
5402 | cat confdefs.h >>conftest.$ac_ext |
---|
5403 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5404 | /* end confdefs.h. */ |
---|
5405 | |
---|
5406 | |
---|
5407 | int |
---|
5408 | main () |
---|
5409 | { |
---|
5410 | main (); |
---|
5411 | ; |
---|
5412 | return 0; |
---|
5413 | } |
---|
5414 | _ACEOF |
---|
5415 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5417 | (eval $ac_link) 2>conftest.er1 |
---|
5418 | ac_status=$? |
---|
5419 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5420 | rm -f conftest.er1 |
---|
5421 | cat conftest.err >&5 |
---|
5422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5423 | (exit $ac_status); } && |
---|
5424 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5425 | || test ! -s conftest.err' |
---|
5426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5427 | (eval $ac_try) 2>&5 |
---|
5428 | ac_status=$? |
---|
5429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5430 | (exit $ac_status); }; } && |
---|
5431 | { ac_try='test -s conftest$ac_exeext' |
---|
5432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5433 | (eval $ac_try) 2>&5 |
---|
5434 | ac_status=$? |
---|
5435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5436 | (exit $ac_status); }; }; then |
---|
5437 | ac_cv_lib_OpenAL32_main=yes |
---|
5438 | else |
---|
5439 | echo "$as_me: failed program was:" >&5 |
---|
5440 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5441 | |
---|
5442 | ac_cv_lib_OpenAL32_main=no |
---|
5443 | fi |
---|
5444 | rm -f conftest.err conftest.$ac_objext \ |
---|
5445 | conftest$ac_exeext conftest.$ac_ext |
---|
5446 | LIBS=$ac_check_lib_save_LIBS |
---|
5447 | fi |
---|
5448 | echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5 |
---|
5449 | echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6 |
---|
5450 | if test $ac_cv_lib_OpenAL32_main = yes; then |
---|
5451 | FOUND_openal=yes |
---|
5452 | fi |
---|
5453 | |
---|
5454 | echo "$as_me:$LINENO: checking for main in -lALut" >&5 |
---|
5455 | echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6 |
---|
5456 | if test "${ac_cv_lib_ALut_main+set}" = set; then |
---|
5457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5458 | else |
---|
5459 | ac_check_lib_save_LIBS=$LIBS |
---|
5460 | LIBS="-lALut $LIBS" |
---|
5461 | cat >conftest.$ac_ext <<_ACEOF |
---|
5462 | /* confdefs.h. */ |
---|
5463 | _ACEOF |
---|
5464 | cat confdefs.h >>conftest.$ac_ext |
---|
5465 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5466 | /* end confdefs.h. */ |
---|
5467 | |
---|
5468 | |
---|
5469 | int |
---|
5470 | main () |
---|
5471 | { |
---|
5472 | main (); |
---|
5473 | ; |
---|
5474 | return 0; |
---|
5475 | } |
---|
5476 | _ACEOF |
---|
5477 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5479 | (eval $ac_link) 2>conftest.er1 |
---|
5480 | ac_status=$? |
---|
5481 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5482 | rm -f conftest.er1 |
---|
5483 | cat conftest.err >&5 |
---|
5484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5485 | (exit $ac_status); } && |
---|
5486 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5487 | || test ! -s conftest.err' |
---|
5488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5489 | (eval $ac_try) 2>&5 |
---|
5490 | ac_status=$? |
---|
5491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5492 | (exit $ac_status); }; } && |
---|
5493 | { ac_try='test -s conftest$ac_exeext' |
---|
5494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5495 | (eval $ac_try) 2>&5 |
---|
5496 | ac_status=$? |
---|
5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5498 | (exit $ac_status); }; }; then |
---|
5499 | ac_cv_lib_ALut_main=yes |
---|
5500 | else |
---|
5501 | echo "$as_me: failed program was:" >&5 |
---|
5502 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5503 | |
---|
5504 | ac_cv_lib_ALut_main=no |
---|
5505 | fi |
---|
5506 | rm -f conftest.err conftest.$ac_objext \ |
---|
5507 | conftest$ac_exeext conftest.$ac_ext |
---|
5508 | LIBS=$ac_check_lib_save_LIBS |
---|
5509 | fi |
---|
5510 | echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5 |
---|
5511 | echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6 |
---|
5512 | if test $ac_cv_lib_ALut_main = yes; then |
---|
5513 | FOUND_ALut=yes |
---|
5514 | fi |
---|
5515 | |
---|
5516 | if test x$FOUND_openal = xyes ; then |
---|
5517 | if test x$FOUND_ALut = xyes ; then |
---|
5518 | LIBS="$LIBS -lALut -lOpenAL32" |
---|
5519 | else |
---|
5520 | echo "------------------" |
---|
5521 | echo "openal library not found." |
---|
5522 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
5523 | echo "------------------" |
---|
5524 | exit -1 |
---|
5525 | fi |
---|
5526 | fi |
---|
5527 | ;; |
---|
5528 | |
---|
5529 | ######### |
---|
5530 | #-------# |
---|
5531 | # LINUX # |
---|
5532 | #-------# |
---|
5533 | ######### |
---|
5534 | *-*-linux*) |
---|
5535 | echo "Linux detected" |
---|
5536 | |
---|
5537 | Linux="yes" |
---|
5538 | |
---|
5539 | ##CPPFLAGS="-I/usr/include $CPPFLAGS" |
---|
5540 | ##LDFLAGS="-L/usr/lib $LDFLAGS" |
---|
5541 | if test x$SHARED_LIB_PATH != xno; then |
---|
5542 | echo "setting new LDFLAGS with $SHARED_LIB_PATH" |
---|
5543 | LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS" |
---|
5544 | fi |
---|
5545 | |
---|
5546 | # checking gl header |
---|
5547 | |
---|
5548 | for ac_header in GL/gl.h |
---|
5549 | do |
---|
5550 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5551 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5552 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5553 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5554 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5556 | fi |
---|
5557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5558 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5559 | else |
---|
5560 | # Is the header compilable? |
---|
5561 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5562 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5563 | cat >conftest.$ac_ext <<_ACEOF |
---|
5564 | /* confdefs.h. */ |
---|
5565 | _ACEOF |
---|
5566 | cat confdefs.h >>conftest.$ac_ext |
---|
5567 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5568 | /* end confdefs.h. */ |
---|
5569 | $ac_includes_default |
---|
5570 | #include <$ac_header> |
---|
5571 | _ACEOF |
---|
5572 | rm -f conftest.$ac_objext |
---|
5573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5574 | (eval $ac_compile) 2>conftest.er1 |
---|
5575 | ac_status=$? |
---|
5576 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5577 | rm -f conftest.er1 |
---|
5578 | cat conftest.err >&5 |
---|
5579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5580 | (exit $ac_status); } && |
---|
5581 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5582 | || test ! -s conftest.err' |
---|
5583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5584 | (eval $ac_try) 2>&5 |
---|
5585 | ac_status=$? |
---|
5586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5587 | (exit $ac_status); }; } && |
---|
5588 | { ac_try='test -s conftest.$ac_objext' |
---|
5589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5590 | (eval $ac_try) 2>&5 |
---|
5591 | ac_status=$? |
---|
5592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5593 | (exit $ac_status); }; }; then |
---|
5594 | ac_header_compiler=yes |
---|
5595 | else |
---|
5596 | echo "$as_me: failed program was:" >&5 |
---|
5597 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5598 | |
---|
5599 | ac_header_compiler=no |
---|
5600 | fi |
---|
5601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5602 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5603 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5604 | |
---|
5605 | # Is the header present? |
---|
5606 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5607 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5608 | cat >conftest.$ac_ext <<_ACEOF |
---|
5609 | /* confdefs.h. */ |
---|
5610 | _ACEOF |
---|
5611 | cat confdefs.h >>conftest.$ac_ext |
---|
5612 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5613 | /* end confdefs.h. */ |
---|
5614 | #include <$ac_header> |
---|
5615 | _ACEOF |
---|
5616 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5617 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5618 | ac_status=$? |
---|
5619 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5620 | rm -f conftest.er1 |
---|
5621 | cat conftest.err >&5 |
---|
5622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5623 | (exit $ac_status); } >/dev/null; then |
---|
5624 | if test -s conftest.err; then |
---|
5625 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5626 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5627 | else |
---|
5628 | ac_cpp_err= |
---|
5629 | fi |
---|
5630 | else |
---|
5631 | ac_cpp_err=yes |
---|
5632 | fi |
---|
5633 | if test -z "$ac_cpp_err"; then |
---|
5634 | ac_header_preproc=yes |
---|
5635 | else |
---|
5636 | echo "$as_me: failed program was:" >&5 |
---|
5637 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5638 | |
---|
5639 | ac_header_preproc=no |
---|
5640 | fi |
---|
5641 | rm -f conftest.err conftest.$ac_ext |
---|
5642 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5643 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5644 | |
---|
5645 | # So? What about this header? |
---|
5646 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5647 | yes:no: ) |
---|
5648 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5649 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5650 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5651 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5652 | ac_header_preproc=yes |
---|
5653 | ;; |
---|
5654 | no:yes:* ) |
---|
5655 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5656 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5657 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5658 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5659 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5660 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5661 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5662 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5663 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5664 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5665 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5666 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5667 | ( |
---|
5668 | cat <<\_ASBOX |
---|
5669 | ## ---------------------------------------------- ## |
---|
5670 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5671 | ## ---------------------------------------------- ## |
---|
5672 | _ASBOX |
---|
5673 | ) | |
---|
5674 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5675 | ;; |
---|
5676 | esac |
---|
5677 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5678 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5679 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5681 | else |
---|
5682 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5683 | fi |
---|
5684 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5685 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5686 | |
---|
5687 | fi |
---|
5688 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5689 | cat >>confdefs.h <<_ACEOF |
---|
5690 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5691 | _ACEOF |
---|
5692 | |
---|
5693 | else |
---|
5694 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5695 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5696 | { (exit 1); exit 1; }; } |
---|
5697 | fi |
---|
5698 | |
---|
5699 | done |
---|
5700 | |
---|
5701 | |
---|
5702 | # checking for Unix GL |
---|
5703 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
5704 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
5705 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
5706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5707 | else |
---|
5708 | ac_check_lib_save_LIBS=$LIBS |
---|
5709 | LIBS="-lGL $LIBS" |
---|
5710 | cat >conftest.$ac_ext <<_ACEOF |
---|
5711 | /* confdefs.h. */ |
---|
5712 | _ACEOF |
---|
5713 | cat confdefs.h >>conftest.$ac_ext |
---|
5714 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5715 | /* end confdefs.h. */ |
---|
5716 | |
---|
5717 | |
---|
5718 | int |
---|
5719 | main () |
---|
5720 | { |
---|
5721 | main (); |
---|
5722 | ; |
---|
5723 | return 0; |
---|
5724 | } |
---|
5725 | _ACEOF |
---|
5726 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5728 | (eval $ac_link) 2>conftest.er1 |
---|
5729 | ac_status=$? |
---|
5730 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5731 | rm -f conftest.er1 |
---|
5732 | cat conftest.err >&5 |
---|
5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5734 | (exit $ac_status); } && |
---|
5735 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5736 | || test ! -s conftest.err' |
---|
5737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5738 | (eval $ac_try) 2>&5 |
---|
5739 | ac_status=$? |
---|
5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5741 | (exit $ac_status); }; } && |
---|
5742 | { ac_try='test -s conftest$ac_exeext' |
---|
5743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5744 | (eval $ac_try) 2>&5 |
---|
5745 | ac_status=$? |
---|
5746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5747 | (exit $ac_status); }; }; then |
---|
5748 | ac_cv_lib_GL_main=yes |
---|
5749 | else |
---|
5750 | echo "$as_me: failed program was:" >&5 |
---|
5751 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5752 | |
---|
5753 | ac_cv_lib_GL_main=no |
---|
5754 | fi |
---|
5755 | rm -f conftest.err conftest.$ac_objext \ |
---|
5756 | conftest$ac_exeext conftest.$ac_ext |
---|
5757 | LIBS=$ac_check_lib_save_LIBS |
---|
5758 | fi |
---|
5759 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
5760 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
5761 | if test $ac_cv_lib_GL_main = yes; then |
---|
5762 | FOUND_GL=yes |
---|
5763 | fi |
---|
5764 | |
---|
5765 | if test x$FOUND_GL = xyes ; then |
---|
5766 | LIBS="$LIBS -lGL" |
---|
5767 | else |
---|
5768 | echo "------------------" |
---|
5769 | echo "opengl not found." |
---|
5770 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
5771 | echo "------------------" |
---|
5772 | exit -1 |
---|
5773 | fi |
---|
5774 | |
---|
5775 | # cheking for GLU-header |
---|
5776 | |
---|
5777 | for ac_header in GL/glu.h |
---|
5778 | do |
---|
5779 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5780 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5781 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5782 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5783 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5785 | fi |
---|
5786 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5787 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5788 | else |
---|
5789 | # Is the header compilable? |
---|
5790 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5791 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5792 | cat >conftest.$ac_ext <<_ACEOF |
---|
5793 | /* confdefs.h. */ |
---|
5794 | _ACEOF |
---|
5795 | cat confdefs.h >>conftest.$ac_ext |
---|
5796 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5797 | /* end confdefs.h. */ |
---|
5798 | $ac_includes_default |
---|
5799 | #include <$ac_header> |
---|
5800 | _ACEOF |
---|
5801 | rm -f conftest.$ac_objext |
---|
5802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5803 | (eval $ac_compile) 2>conftest.er1 |
---|
5804 | ac_status=$? |
---|
5805 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5806 | rm -f conftest.er1 |
---|
5807 | cat conftest.err >&5 |
---|
5808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5809 | (exit $ac_status); } && |
---|
5810 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5811 | || test ! -s conftest.err' |
---|
5812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5813 | (eval $ac_try) 2>&5 |
---|
5814 | ac_status=$? |
---|
5815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5816 | (exit $ac_status); }; } && |
---|
5817 | { ac_try='test -s conftest.$ac_objext' |
---|
5818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5819 | (eval $ac_try) 2>&5 |
---|
5820 | ac_status=$? |
---|
5821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5822 | (exit $ac_status); }; }; then |
---|
5823 | ac_header_compiler=yes |
---|
5824 | else |
---|
5825 | echo "$as_me: failed program was:" >&5 |
---|
5826 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5827 | |
---|
5828 | ac_header_compiler=no |
---|
5829 | fi |
---|
5830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5831 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5832 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5833 | |
---|
5834 | # Is the header present? |
---|
5835 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5836 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5837 | cat >conftest.$ac_ext <<_ACEOF |
---|
5838 | /* confdefs.h. */ |
---|
5839 | _ACEOF |
---|
5840 | cat confdefs.h >>conftest.$ac_ext |
---|
5841 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5842 | /* end confdefs.h. */ |
---|
5843 | #include <$ac_header> |
---|
5844 | _ACEOF |
---|
5845 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5846 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5847 | ac_status=$? |
---|
5848 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5849 | rm -f conftest.er1 |
---|
5850 | cat conftest.err >&5 |
---|
5851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5852 | (exit $ac_status); } >/dev/null; then |
---|
5853 | if test -s conftest.err; then |
---|
5854 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5855 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
5856 | else |
---|
5857 | ac_cpp_err= |
---|
5858 | fi |
---|
5859 | else |
---|
5860 | ac_cpp_err=yes |
---|
5861 | fi |
---|
5862 | if test -z "$ac_cpp_err"; then |
---|
5863 | ac_header_preproc=yes |
---|
5864 | else |
---|
5865 | echo "$as_me: failed program was:" >&5 |
---|
5866 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5867 | |
---|
5868 | ac_header_preproc=no |
---|
5869 | fi |
---|
5870 | rm -f conftest.err conftest.$ac_ext |
---|
5871 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5872 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5873 | |
---|
5874 | # So? What about this header? |
---|
5875 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
5876 | yes:no: ) |
---|
5877 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5878 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5879 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
5880 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
5881 | ac_header_preproc=yes |
---|
5882 | ;; |
---|
5883 | no:yes:* ) |
---|
5884 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5885 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5886 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5887 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5888 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
5889 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
5890 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
5891 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
5892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5893 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5894 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
5895 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
5896 | ( |
---|
5897 | cat <<\_ASBOX |
---|
5898 | ## ---------------------------------------------- ## |
---|
5899 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
5900 | ## ---------------------------------------------- ## |
---|
5901 | _ASBOX |
---|
5902 | ) | |
---|
5903 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5904 | ;; |
---|
5905 | esac |
---|
5906 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5907 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5908 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5909 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5910 | else |
---|
5911 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
5912 | fi |
---|
5913 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5914 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5915 | |
---|
5916 | fi |
---|
5917 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5918 | cat >>confdefs.h <<_ACEOF |
---|
5919 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5920 | _ACEOF |
---|
5921 | |
---|
5922 | else |
---|
5923 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5924 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5925 | { (exit 1); exit 1; }; } |
---|
5926 | fi |
---|
5927 | |
---|
5928 | done |
---|
5929 | |
---|
5930 | |
---|
5931 | # AC_CHECK_LIB([GLU], [main], FOUND_GLU=yes) |
---|
5932 | # if test x$FOUND_GLU = xyes ; then |
---|
5933 | LIBS="$LIBS -lGLU" |
---|
5934 | # else |
---|
5935 | # echo "------------------" |
---|
5936 | # echo "GLU library not found." |
---|
5937 | # echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
5938 | # echo "------------------" |
---|
5939 | # exit -1 |
---|
5940 | # fi |
---|
5941 | |
---|
5942 | #--------# |
---|
5943 | # openAL # |
---|
5944 | #--------# |
---|
5945 | # checking for openAL-headers |
---|
5946 | |
---|
5947 | for ac_header in AL/al.h |
---|
5948 | do |
---|
5949 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5950 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5951 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5952 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5953 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5955 | fi |
---|
5956 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5957 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5958 | else |
---|
5959 | # Is the header compilable? |
---|
5960 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5961 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5962 | cat >conftest.$ac_ext <<_ACEOF |
---|
5963 | /* confdefs.h. */ |
---|
5964 | _ACEOF |
---|
5965 | cat confdefs.h >>conftest.$ac_ext |
---|
5966 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5967 | /* end confdefs.h. */ |
---|
5968 | $ac_includes_default |
---|
5969 | #include <$ac_header> |
---|
5970 | _ACEOF |
---|
5971 | rm -f conftest.$ac_objext |
---|
5972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5973 | (eval $ac_compile) 2>conftest.er1 |
---|
5974 | ac_status=$? |
---|
5975 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5976 | rm -f conftest.er1 |
---|
5977 | cat conftest.err >&5 |
---|
5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5979 | (exit $ac_status); } && |
---|
5980 | { ac_try='test -z "$ac_c_werror_flag" |
---|
5981 | || test ! -s conftest.err' |
---|
5982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5983 | (eval $ac_try) 2>&5 |
---|
5984 | ac_status=$? |
---|
5985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5986 | (exit $ac_status); }; } && |
---|
5987 | { ac_try='test -s conftest.$ac_objext' |
---|
5988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5989 | (eval $ac_try) 2>&5 |
---|
5990 | ac_status=$? |
---|
5991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5992 | (exit $ac_status); }; }; then |
---|
5993 | ac_header_compiler=yes |
---|
5994 | else |
---|
5995 | echo "$as_me: failed program was:" >&5 |
---|
5996 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5997 | |
---|
5998 | ac_header_compiler=no |
---|
5999 | fi |
---|
6000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6001 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6002 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6003 | |
---|
6004 | # Is the header present? |
---|
6005 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6006 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6007 | cat >conftest.$ac_ext <<_ACEOF |
---|
6008 | /* confdefs.h. */ |
---|
6009 | _ACEOF |
---|
6010 | cat confdefs.h >>conftest.$ac_ext |
---|
6011 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6012 | /* end confdefs.h. */ |
---|
6013 | #include <$ac_header> |
---|
6014 | _ACEOF |
---|
6015 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6016 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6017 | ac_status=$? |
---|
6018 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6019 | rm -f conftest.er1 |
---|
6020 | cat conftest.err >&5 |
---|
6021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6022 | (exit $ac_status); } >/dev/null; then |
---|
6023 | if test -s conftest.err; then |
---|
6024 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6025 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6026 | else |
---|
6027 | ac_cpp_err= |
---|
6028 | fi |
---|
6029 | else |
---|
6030 | ac_cpp_err=yes |
---|
6031 | fi |
---|
6032 | if test -z "$ac_cpp_err"; then |
---|
6033 | ac_header_preproc=yes |
---|
6034 | else |
---|
6035 | echo "$as_me: failed program was:" >&5 |
---|
6036 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6037 | |
---|
6038 | ac_header_preproc=no |
---|
6039 | fi |
---|
6040 | rm -f conftest.err conftest.$ac_ext |
---|
6041 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6042 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6043 | |
---|
6044 | # So? What about this header? |
---|
6045 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6046 | yes:no: ) |
---|
6047 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6048 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6049 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6050 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6051 | ac_header_preproc=yes |
---|
6052 | ;; |
---|
6053 | no:yes:* ) |
---|
6054 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6055 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6056 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6057 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6058 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6059 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6060 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6061 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6062 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6063 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6064 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6065 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6066 | ( |
---|
6067 | cat <<\_ASBOX |
---|
6068 | ## ---------------------------------------------- ## |
---|
6069 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6070 | ## ---------------------------------------------- ## |
---|
6071 | _ASBOX |
---|
6072 | ) | |
---|
6073 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6074 | ;; |
---|
6075 | esac |
---|
6076 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6077 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6078 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6080 | else |
---|
6081 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6082 | fi |
---|
6083 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6084 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6085 | |
---|
6086 | fi |
---|
6087 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6088 | cat >>confdefs.h <<_ACEOF |
---|
6089 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6090 | _ACEOF |
---|
6091 | |
---|
6092 | else |
---|
6093 | { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 |
---|
6094 | echo "$as_me: error: cannot find openAL header." >&2;} |
---|
6095 | { (exit 1); exit 1; }; } |
---|
6096 | fi |
---|
6097 | |
---|
6098 | done |
---|
6099 | |
---|
6100 | # checking for openAL-lib |
---|
6101 | echo "$as_me:$LINENO: checking for main in -lopenal" >&5 |
---|
6102 | echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 |
---|
6103 | if test "${ac_cv_lib_openal_main+set}" = set; then |
---|
6104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6105 | else |
---|
6106 | ac_check_lib_save_LIBS=$LIBS |
---|
6107 | LIBS="-lopenal $LIBS" |
---|
6108 | cat >conftest.$ac_ext <<_ACEOF |
---|
6109 | /* confdefs.h. */ |
---|
6110 | _ACEOF |
---|
6111 | cat confdefs.h >>conftest.$ac_ext |
---|
6112 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6113 | /* end confdefs.h. */ |
---|
6114 | |
---|
6115 | |
---|
6116 | int |
---|
6117 | main () |
---|
6118 | { |
---|
6119 | main (); |
---|
6120 | ; |
---|
6121 | return 0; |
---|
6122 | } |
---|
6123 | _ACEOF |
---|
6124 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6126 | (eval $ac_link) 2>conftest.er1 |
---|
6127 | ac_status=$? |
---|
6128 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6129 | rm -f conftest.er1 |
---|
6130 | cat conftest.err >&5 |
---|
6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6132 | (exit $ac_status); } && |
---|
6133 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6134 | || test ! -s conftest.err' |
---|
6135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6136 | (eval $ac_try) 2>&5 |
---|
6137 | ac_status=$? |
---|
6138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6139 | (exit $ac_status); }; } && |
---|
6140 | { ac_try='test -s conftest$ac_exeext' |
---|
6141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6142 | (eval $ac_try) 2>&5 |
---|
6143 | ac_status=$? |
---|
6144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6145 | (exit $ac_status); }; }; then |
---|
6146 | ac_cv_lib_openal_main=yes |
---|
6147 | else |
---|
6148 | echo "$as_me: failed program was:" >&5 |
---|
6149 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6150 | |
---|
6151 | ac_cv_lib_openal_main=no |
---|
6152 | fi |
---|
6153 | rm -f conftest.err conftest.$ac_objext \ |
---|
6154 | conftest$ac_exeext conftest.$ac_ext |
---|
6155 | LIBS=$ac_check_lib_save_LIBS |
---|
6156 | fi |
---|
6157 | echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 |
---|
6158 | echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 |
---|
6159 | if test $ac_cv_lib_openal_main = yes; then |
---|
6160 | FOUND_openal=yes |
---|
6161 | fi |
---|
6162 | |
---|
6163 | if test x$FOUND_openal = xyes ; then |
---|
6164 | LIBS="$LIBS -lopenal" |
---|
6165 | else |
---|
6166 | echo "------------------" |
---|
6167 | echo "openal library not found." |
---|
6168 | echo "please install the openal library, which can be found at http://www.openal.org" |
---|
6169 | echo "------------------" |
---|
6170 | exit -1 |
---|
6171 | fi |
---|
6172 | # checking for alut |
---|
6173 | |
---|
6174 | for ac_header in AL/alut.h |
---|
6175 | do |
---|
6176 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6177 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6178 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6180 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6182 | fi |
---|
6183 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6184 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6185 | else |
---|
6186 | # Is the header compilable? |
---|
6187 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6188 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6189 | cat >conftest.$ac_ext <<_ACEOF |
---|
6190 | /* confdefs.h. */ |
---|
6191 | _ACEOF |
---|
6192 | cat confdefs.h >>conftest.$ac_ext |
---|
6193 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6194 | /* end confdefs.h. */ |
---|
6195 | $ac_includes_default |
---|
6196 | #include <$ac_header> |
---|
6197 | _ACEOF |
---|
6198 | rm -f conftest.$ac_objext |
---|
6199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6200 | (eval $ac_compile) 2>conftest.er1 |
---|
6201 | ac_status=$? |
---|
6202 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6203 | rm -f conftest.er1 |
---|
6204 | cat conftest.err >&5 |
---|
6205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6206 | (exit $ac_status); } && |
---|
6207 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6208 | || test ! -s conftest.err' |
---|
6209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6210 | (eval $ac_try) 2>&5 |
---|
6211 | ac_status=$? |
---|
6212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6213 | (exit $ac_status); }; } && |
---|
6214 | { ac_try='test -s conftest.$ac_objext' |
---|
6215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6216 | (eval $ac_try) 2>&5 |
---|
6217 | ac_status=$? |
---|
6218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6219 | (exit $ac_status); }; }; then |
---|
6220 | ac_header_compiler=yes |
---|
6221 | else |
---|
6222 | echo "$as_me: failed program was:" >&5 |
---|
6223 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6224 | |
---|
6225 | ac_header_compiler=no |
---|
6226 | fi |
---|
6227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6228 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6229 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6230 | |
---|
6231 | # Is the header present? |
---|
6232 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6233 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6234 | cat >conftest.$ac_ext <<_ACEOF |
---|
6235 | /* confdefs.h. */ |
---|
6236 | _ACEOF |
---|
6237 | cat confdefs.h >>conftest.$ac_ext |
---|
6238 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6239 | /* end confdefs.h. */ |
---|
6240 | #include <$ac_header> |
---|
6241 | _ACEOF |
---|
6242 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6243 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6244 | ac_status=$? |
---|
6245 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6246 | rm -f conftest.er1 |
---|
6247 | cat conftest.err >&5 |
---|
6248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6249 | (exit $ac_status); } >/dev/null; then |
---|
6250 | if test -s conftest.err; then |
---|
6251 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6252 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6253 | else |
---|
6254 | ac_cpp_err= |
---|
6255 | fi |
---|
6256 | else |
---|
6257 | ac_cpp_err=yes |
---|
6258 | fi |
---|
6259 | if test -z "$ac_cpp_err"; then |
---|
6260 | ac_header_preproc=yes |
---|
6261 | else |
---|
6262 | echo "$as_me: failed program was:" >&5 |
---|
6263 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6264 | |
---|
6265 | ac_header_preproc=no |
---|
6266 | fi |
---|
6267 | rm -f conftest.err conftest.$ac_ext |
---|
6268 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6269 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6270 | |
---|
6271 | # So? What about this header? |
---|
6272 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6273 | yes:no: ) |
---|
6274 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6275 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6276 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6277 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6278 | ac_header_preproc=yes |
---|
6279 | ;; |
---|
6280 | no:yes:* ) |
---|
6281 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6282 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6283 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6284 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6285 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6286 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6287 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6288 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6290 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6291 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6292 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6293 | ( |
---|
6294 | cat <<\_ASBOX |
---|
6295 | ## ---------------------------------------------- ## |
---|
6296 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6297 | ## ---------------------------------------------- ## |
---|
6298 | _ASBOX |
---|
6299 | ) | |
---|
6300 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6301 | ;; |
---|
6302 | esac |
---|
6303 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6304 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6305 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6307 | else |
---|
6308 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6309 | fi |
---|
6310 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6311 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6312 | |
---|
6313 | fi |
---|
6314 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6315 | cat >>confdefs.h <<_ACEOF |
---|
6316 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6317 | _ACEOF |
---|
6318 | |
---|
6319 | else |
---|
6320 | { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5 |
---|
6321 | echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;} |
---|
6322 | { (exit 1); exit 1; }; } |
---|
6323 | fi |
---|
6324 | |
---|
6325 | done |
---|
6326 | |
---|
6327 | echo "$as_me:$LINENO: checking for main in -lalut" >&5 |
---|
6328 | echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6 |
---|
6329 | if test "${ac_cv_lib_alut_main+set}" = set; then |
---|
6330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6331 | else |
---|
6332 | ac_check_lib_save_LIBS=$LIBS |
---|
6333 | LIBS="-lalut $LIBS" |
---|
6334 | cat >conftest.$ac_ext <<_ACEOF |
---|
6335 | /* confdefs.h. */ |
---|
6336 | _ACEOF |
---|
6337 | cat confdefs.h >>conftest.$ac_ext |
---|
6338 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6339 | /* end confdefs.h. */ |
---|
6340 | |
---|
6341 | |
---|
6342 | int |
---|
6343 | main () |
---|
6344 | { |
---|
6345 | main (); |
---|
6346 | ; |
---|
6347 | return 0; |
---|
6348 | } |
---|
6349 | _ACEOF |
---|
6350 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6352 | (eval $ac_link) 2>conftest.er1 |
---|
6353 | ac_status=$? |
---|
6354 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6355 | rm -f conftest.er1 |
---|
6356 | cat conftest.err >&5 |
---|
6357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6358 | (exit $ac_status); } && |
---|
6359 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6360 | || test ! -s conftest.err' |
---|
6361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6362 | (eval $ac_try) 2>&5 |
---|
6363 | ac_status=$? |
---|
6364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6365 | (exit $ac_status); }; } && |
---|
6366 | { ac_try='test -s conftest$ac_exeext' |
---|
6367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6368 | (eval $ac_try) 2>&5 |
---|
6369 | ac_status=$? |
---|
6370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6371 | (exit $ac_status); }; }; then |
---|
6372 | ac_cv_lib_alut_main=yes |
---|
6373 | else |
---|
6374 | echo "$as_me: failed program was:" >&5 |
---|
6375 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6376 | |
---|
6377 | ac_cv_lib_alut_main=no |
---|
6378 | fi |
---|
6379 | rm -f conftest.err conftest.$ac_objext \ |
---|
6380 | conftest$ac_exeext conftest.$ac_ext |
---|
6381 | LIBS=$ac_check_lib_save_LIBS |
---|
6382 | fi |
---|
6383 | echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5 |
---|
6384 | echo "${ECHO_T}$ac_cv_lib_alut_main" >&6 |
---|
6385 | if test $ac_cv_lib_alut_main = yes; then |
---|
6386 | FOUND_alut=yes |
---|
6387 | fi |
---|
6388 | |
---|
6389 | if test x$FOUND_alut = xyes ; then |
---|
6390 | LIBS="-lalut $LIBS" |
---|
6391 | fi |
---|
6392 | |
---|
6393 | # checking for SDL |
---|
6394 | echo "$as_me:$LINENO: checking for SDL-version" >&5 |
---|
6395 | echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 |
---|
6396 | SDL_VERSION=`sdl-config --version` |
---|
6397 | echo $SDL_VERSION |
---|
6398 | |
---|
6399 | CPPFLAGS="$CPPFLAGS `sdl-config --cflags`" |
---|
6400 | |
---|
6401 | for ac_header in SDL.h |
---|
6402 | do |
---|
6403 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6404 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6405 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6406 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6407 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6409 | fi |
---|
6410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6411 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6412 | else |
---|
6413 | # Is the header compilable? |
---|
6414 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6415 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6416 | cat >conftest.$ac_ext <<_ACEOF |
---|
6417 | /* confdefs.h. */ |
---|
6418 | _ACEOF |
---|
6419 | cat confdefs.h >>conftest.$ac_ext |
---|
6420 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6421 | /* end confdefs.h. */ |
---|
6422 | $ac_includes_default |
---|
6423 | #include <$ac_header> |
---|
6424 | _ACEOF |
---|
6425 | rm -f conftest.$ac_objext |
---|
6426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6427 | (eval $ac_compile) 2>conftest.er1 |
---|
6428 | ac_status=$? |
---|
6429 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6430 | rm -f conftest.er1 |
---|
6431 | cat conftest.err >&5 |
---|
6432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6433 | (exit $ac_status); } && |
---|
6434 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6435 | || test ! -s conftest.err' |
---|
6436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6437 | (eval $ac_try) 2>&5 |
---|
6438 | ac_status=$? |
---|
6439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6440 | (exit $ac_status); }; } && |
---|
6441 | { ac_try='test -s conftest.$ac_objext' |
---|
6442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6443 | (eval $ac_try) 2>&5 |
---|
6444 | ac_status=$? |
---|
6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6446 | (exit $ac_status); }; }; then |
---|
6447 | ac_header_compiler=yes |
---|
6448 | else |
---|
6449 | echo "$as_me: failed program was:" >&5 |
---|
6450 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6451 | |
---|
6452 | ac_header_compiler=no |
---|
6453 | fi |
---|
6454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6455 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6456 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6457 | |
---|
6458 | # Is the header present? |
---|
6459 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6460 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6461 | cat >conftest.$ac_ext <<_ACEOF |
---|
6462 | /* confdefs.h. */ |
---|
6463 | _ACEOF |
---|
6464 | cat confdefs.h >>conftest.$ac_ext |
---|
6465 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6466 | /* end confdefs.h. */ |
---|
6467 | #include <$ac_header> |
---|
6468 | _ACEOF |
---|
6469 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6470 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6471 | ac_status=$? |
---|
6472 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6473 | rm -f conftest.er1 |
---|
6474 | cat conftest.err >&5 |
---|
6475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6476 | (exit $ac_status); } >/dev/null; then |
---|
6477 | if test -s conftest.err; then |
---|
6478 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6479 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6480 | else |
---|
6481 | ac_cpp_err= |
---|
6482 | fi |
---|
6483 | else |
---|
6484 | ac_cpp_err=yes |
---|
6485 | fi |
---|
6486 | if test -z "$ac_cpp_err"; then |
---|
6487 | ac_header_preproc=yes |
---|
6488 | else |
---|
6489 | echo "$as_me: failed program was:" >&5 |
---|
6490 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6491 | |
---|
6492 | ac_header_preproc=no |
---|
6493 | fi |
---|
6494 | rm -f conftest.err conftest.$ac_ext |
---|
6495 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6496 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6497 | |
---|
6498 | # So? What about this header? |
---|
6499 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6500 | yes:no: ) |
---|
6501 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6502 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6503 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6504 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6505 | ac_header_preproc=yes |
---|
6506 | ;; |
---|
6507 | no:yes:* ) |
---|
6508 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6509 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6510 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6511 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6512 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6513 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6514 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6515 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6516 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6517 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6518 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6519 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6520 | ( |
---|
6521 | cat <<\_ASBOX |
---|
6522 | ## ---------------------------------------------- ## |
---|
6523 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6524 | ## ---------------------------------------------- ## |
---|
6525 | _ASBOX |
---|
6526 | ) | |
---|
6527 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6528 | ;; |
---|
6529 | esac |
---|
6530 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6531 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6532 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6534 | else |
---|
6535 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6536 | fi |
---|
6537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6538 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6539 | |
---|
6540 | fi |
---|
6541 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6542 | cat >>confdefs.h <<_ACEOF |
---|
6543 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6544 | _ACEOF |
---|
6545 | |
---|
6546 | else |
---|
6547 | |
---|
6548 | for ac_header in SDL/SDL.h |
---|
6549 | do |
---|
6550 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6551 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6552 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6553 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6554 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6556 | fi |
---|
6557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6558 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6559 | else |
---|
6560 | # Is the header compilable? |
---|
6561 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6562 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6563 | cat >conftest.$ac_ext <<_ACEOF |
---|
6564 | /* confdefs.h. */ |
---|
6565 | _ACEOF |
---|
6566 | cat confdefs.h >>conftest.$ac_ext |
---|
6567 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6568 | /* end confdefs.h. */ |
---|
6569 | $ac_includes_default |
---|
6570 | #include <$ac_header> |
---|
6571 | _ACEOF |
---|
6572 | rm -f conftest.$ac_objext |
---|
6573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6574 | (eval $ac_compile) 2>conftest.er1 |
---|
6575 | ac_status=$? |
---|
6576 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6577 | rm -f conftest.er1 |
---|
6578 | cat conftest.err >&5 |
---|
6579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6580 | (exit $ac_status); } && |
---|
6581 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6582 | || test ! -s conftest.err' |
---|
6583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6584 | (eval $ac_try) 2>&5 |
---|
6585 | ac_status=$? |
---|
6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6587 | (exit $ac_status); }; } && |
---|
6588 | { ac_try='test -s conftest.$ac_objext' |
---|
6589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6590 | (eval $ac_try) 2>&5 |
---|
6591 | ac_status=$? |
---|
6592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6593 | (exit $ac_status); }; }; then |
---|
6594 | ac_header_compiler=yes |
---|
6595 | else |
---|
6596 | echo "$as_me: failed program was:" >&5 |
---|
6597 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6598 | |
---|
6599 | ac_header_compiler=no |
---|
6600 | fi |
---|
6601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6602 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6603 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6604 | |
---|
6605 | # Is the header present? |
---|
6606 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6607 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6608 | cat >conftest.$ac_ext <<_ACEOF |
---|
6609 | /* confdefs.h. */ |
---|
6610 | _ACEOF |
---|
6611 | cat confdefs.h >>conftest.$ac_ext |
---|
6612 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6613 | /* end confdefs.h. */ |
---|
6614 | #include <$ac_header> |
---|
6615 | _ACEOF |
---|
6616 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6617 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6618 | ac_status=$? |
---|
6619 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6620 | rm -f conftest.er1 |
---|
6621 | cat conftest.err >&5 |
---|
6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6623 | (exit $ac_status); } >/dev/null; then |
---|
6624 | if test -s conftest.err; then |
---|
6625 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6626 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6627 | else |
---|
6628 | ac_cpp_err= |
---|
6629 | fi |
---|
6630 | else |
---|
6631 | ac_cpp_err=yes |
---|
6632 | fi |
---|
6633 | if test -z "$ac_cpp_err"; then |
---|
6634 | ac_header_preproc=yes |
---|
6635 | else |
---|
6636 | echo "$as_me: failed program was:" >&5 |
---|
6637 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6638 | |
---|
6639 | ac_header_preproc=no |
---|
6640 | fi |
---|
6641 | rm -f conftest.err conftest.$ac_ext |
---|
6642 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6643 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6644 | |
---|
6645 | # So? What about this header? |
---|
6646 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6647 | yes:no: ) |
---|
6648 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6649 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6650 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6651 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6652 | ac_header_preproc=yes |
---|
6653 | ;; |
---|
6654 | no:yes:* ) |
---|
6655 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6656 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6657 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6658 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6659 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6660 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6661 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6662 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6663 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6664 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6665 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6666 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6667 | ( |
---|
6668 | cat <<\_ASBOX |
---|
6669 | ## ---------------------------------------------- ## |
---|
6670 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6671 | ## ---------------------------------------------- ## |
---|
6672 | _ASBOX |
---|
6673 | ) | |
---|
6674 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6675 | ;; |
---|
6676 | esac |
---|
6677 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6678 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6679 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6681 | else |
---|
6682 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6683 | fi |
---|
6684 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6685 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6686 | |
---|
6687 | fi |
---|
6688 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6689 | cat >>confdefs.h <<_ACEOF |
---|
6690 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6691 | _ACEOF |
---|
6692 | |
---|
6693 | else |
---|
6694 | { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5 |
---|
6695 | echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;} |
---|
6696 | { (exit 1); exit 1; }; } |
---|
6697 | fi |
---|
6698 | |
---|
6699 | done |
---|
6700 | |
---|
6701 | fi |
---|
6702 | |
---|
6703 | done |
---|
6704 | |
---|
6705 | LIBS="`sdl-config --libs` $LIBS" |
---|
6706 | echo "$as_me:$LINENO: checking for main in -lSDL" >&5 |
---|
6707 | echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 |
---|
6708 | if test "${ac_cv_lib_SDL_main+set}" = set; then |
---|
6709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6710 | else |
---|
6711 | ac_check_lib_save_LIBS=$LIBS |
---|
6712 | LIBS="-lSDL $LIBS" |
---|
6713 | cat >conftest.$ac_ext <<_ACEOF |
---|
6714 | /* confdefs.h. */ |
---|
6715 | _ACEOF |
---|
6716 | cat confdefs.h >>conftest.$ac_ext |
---|
6717 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6718 | /* end confdefs.h. */ |
---|
6719 | |
---|
6720 | |
---|
6721 | int |
---|
6722 | main () |
---|
6723 | { |
---|
6724 | main (); |
---|
6725 | ; |
---|
6726 | return 0; |
---|
6727 | } |
---|
6728 | _ACEOF |
---|
6729 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6731 | (eval $ac_link) 2>conftest.er1 |
---|
6732 | ac_status=$? |
---|
6733 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6734 | rm -f conftest.er1 |
---|
6735 | cat conftest.err >&5 |
---|
6736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6737 | (exit $ac_status); } && |
---|
6738 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6739 | || test ! -s conftest.err' |
---|
6740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6741 | (eval $ac_try) 2>&5 |
---|
6742 | ac_status=$? |
---|
6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6744 | (exit $ac_status); }; } && |
---|
6745 | { ac_try='test -s conftest$ac_exeext' |
---|
6746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6747 | (eval $ac_try) 2>&5 |
---|
6748 | ac_status=$? |
---|
6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6750 | (exit $ac_status); }; }; then |
---|
6751 | ac_cv_lib_SDL_main=yes |
---|
6752 | else |
---|
6753 | echo "$as_me: failed program was:" >&5 |
---|
6754 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6755 | |
---|
6756 | ac_cv_lib_SDL_main=no |
---|
6757 | fi |
---|
6758 | rm -f conftest.err conftest.$ac_objext \ |
---|
6759 | conftest$ac_exeext conftest.$ac_ext |
---|
6760 | LIBS=$ac_check_lib_save_LIBS |
---|
6761 | fi |
---|
6762 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 |
---|
6763 | echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 |
---|
6764 | if test $ac_cv_lib_SDL_main = yes; then |
---|
6765 | FOUND_SDL=yes |
---|
6766 | fi |
---|
6767 | |
---|
6768 | if test x$FOUND_SDL = xyes ; then |
---|
6769 | echo `sdl-config --libs` |
---|
6770 | else |
---|
6771 | echo "------------------" |
---|
6772 | echo "SDL library not found." |
---|
6773 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
6774 | echo "------------------" |
---|
6775 | exit -1 |
---|
6776 | fi |
---|
6777 | |
---|
6778 | ;; |
---|
6779 | |
---|
6780 | ############# |
---|
6781 | #-----------# |
---|
6782 | # MAC -OS X # |
---|
6783 | #-----------# |
---|
6784 | ############# |
---|
6785 | *darwin*) |
---|
6786 | echo "OS X detected" |
---|
6787 | |
---|
6788 | osX="yes" |
---|
6789 | |
---|
6790 | CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" |
---|
6791 | # checking gl header |
---|
6792 | |
---|
6793 | for ac_header in OpenGL/gl.h |
---|
6794 | do |
---|
6795 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6797 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6801 | fi |
---|
6802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6803 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6804 | else |
---|
6805 | # Is the header compilable? |
---|
6806 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6807 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6808 | cat >conftest.$ac_ext <<_ACEOF |
---|
6809 | /* confdefs.h. */ |
---|
6810 | _ACEOF |
---|
6811 | cat confdefs.h >>conftest.$ac_ext |
---|
6812 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6813 | /* end confdefs.h. */ |
---|
6814 | $ac_includes_default |
---|
6815 | #include <$ac_header> |
---|
6816 | _ACEOF |
---|
6817 | rm -f conftest.$ac_objext |
---|
6818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6819 | (eval $ac_compile) 2>conftest.er1 |
---|
6820 | ac_status=$? |
---|
6821 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6822 | rm -f conftest.er1 |
---|
6823 | cat conftest.err >&5 |
---|
6824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6825 | (exit $ac_status); } && |
---|
6826 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6827 | || test ! -s conftest.err' |
---|
6828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6829 | (eval $ac_try) 2>&5 |
---|
6830 | ac_status=$? |
---|
6831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6832 | (exit $ac_status); }; } && |
---|
6833 | { ac_try='test -s conftest.$ac_objext' |
---|
6834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6835 | (eval $ac_try) 2>&5 |
---|
6836 | ac_status=$? |
---|
6837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6838 | (exit $ac_status); }; }; then |
---|
6839 | ac_header_compiler=yes |
---|
6840 | else |
---|
6841 | echo "$as_me: failed program was:" >&5 |
---|
6842 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6843 | |
---|
6844 | ac_header_compiler=no |
---|
6845 | fi |
---|
6846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
6847 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6848 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6849 | |
---|
6850 | # Is the header present? |
---|
6851 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6852 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6853 | cat >conftest.$ac_ext <<_ACEOF |
---|
6854 | /* confdefs.h. */ |
---|
6855 | _ACEOF |
---|
6856 | cat confdefs.h >>conftest.$ac_ext |
---|
6857 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6858 | /* end confdefs.h. */ |
---|
6859 | #include <$ac_header> |
---|
6860 | _ACEOF |
---|
6861 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6862 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6863 | ac_status=$? |
---|
6864 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6865 | rm -f conftest.er1 |
---|
6866 | cat conftest.err >&5 |
---|
6867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6868 | (exit $ac_status); } >/dev/null; then |
---|
6869 | if test -s conftest.err; then |
---|
6870 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6871 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
6872 | else |
---|
6873 | ac_cpp_err= |
---|
6874 | fi |
---|
6875 | else |
---|
6876 | ac_cpp_err=yes |
---|
6877 | fi |
---|
6878 | if test -z "$ac_cpp_err"; then |
---|
6879 | ac_header_preproc=yes |
---|
6880 | else |
---|
6881 | echo "$as_me: failed program was:" >&5 |
---|
6882 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6883 | |
---|
6884 | ac_header_preproc=no |
---|
6885 | fi |
---|
6886 | rm -f conftest.err conftest.$ac_ext |
---|
6887 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6888 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6889 | |
---|
6890 | # So? What about this header? |
---|
6891 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
6892 | yes:no: ) |
---|
6893 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6894 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
6896 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
6897 | ac_header_preproc=yes |
---|
6898 | ;; |
---|
6899 | no:yes:* ) |
---|
6900 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6901 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6902 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6903 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6904 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
6905 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
6906 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
6907 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
6908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6909 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6910 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
6911 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
6912 | ( |
---|
6913 | cat <<\_ASBOX |
---|
6914 | ## ---------------------------------------------- ## |
---|
6915 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
6916 | ## ---------------------------------------------- ## |
---|
6917 | _ASBOX |
---|
6918 | ) | |
---|
6919 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6920 | ;; |
---|
6921 | esac |
---|
6922 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6926 | else |
---|
6927 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
6928 | fi |
---|
6929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6931 | |
---|
6932 | fi |
---|
6933 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6934 | cat >>confdefs.h <<_ACEOF |
---|
6935 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6936 | _ACEOF |
---|
6937 | |
---|
6938 | else |
---|
6939 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
6940 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
6941 | { (exit 1); exit 1; }; } |
---|
6942 | fi |
---|
6943 | |
---|
6944 | done |
---|
6945 | |
---|
6946 | # cheking for GLU-header |
---|
6947 | |
---|
6948 | for ac_header in OpenGL/glu.h |
---|
6949 | do |
---|
6950 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6952 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6953 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6956 | fi |
---|
6957 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6958 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6959 | else |
---|
6960 | # Is the header compilable? |
---|
6961 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6962 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6963 | cat >conftest.$ac_ext <<_ACEOF |
---|
6964 | /* confdefs.h. */ |
---|
6965 | _ACEOF |
---|
6966 | cat confdefs.h >>conftest.$ac_ext |
---|
6967 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6968 | /* end confdefs.h. */ |
---|
6969 | $ac_includes_default |
---|
6970 | #include <$ac_header> |
---|
6971 | _ACEOF |
---|
6972 | rm -f conftest.$ac_objext |
---|
6973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6974 | (eval $ac_compile) 2>conftest.er1 |
---|
6975 | ac_status=$? |
---|
6976 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6977 | rm -f conftest.er1 |
---|
6978 | cat conftest.err >&5 |
---|
6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6980 | (exit $ac_status); } && |
---|
6981 | { ac_try='test -z "$ac_c_werror_flag" |
---|
6982 | || test ! -s conftest.err' |
---|
6983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6984 | (eval $ac_try) 2>&5 |
---|
6985 | ac_status=$? |
---|
6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6987 | (exit $ac_status); }; } && |
---|
6988 | { ac_try='test -s conftest.$ac_objext' |
---|
6989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6990 | (eval $ac_try) 2>&5 |
---|
6991 | ac_status=$? |
---|
6992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6993 | (exit $ac_status); }; }; then |
---|
6994 | ac_header_compiler=yes |
---|
6995 | else |
---|
6996 | echo "$as_me: failed program was:" >&5 |
---|
6997 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6998 | |
---|
6999 | ac_header_compiler=no |
---|
7000 | fi |
---|
7001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7002 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7003 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7004 | |
---|
7005 | # Is the header present? |
---|
7006 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7007 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7008 | cat >conftest.$ac_ext <<_ACEOF |
---|
7009 | /* confdefs.h. */ |
---|
7010 | _ACEOF |
---|
7011 | cat confdefs.h >>conftest.$ac_ext |
---|
7012 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7013 | /* end confdefs.h. */ |
---|
7014 | #include <$ac_header> |
---|
7015 | _ACEOF |
---|
7016 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7017 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7018 | ac_status=$? |
---|
7019 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7020 | rm -f conftest.er1 |
---|
7021 | cat conftest.err >&5 |
---|
7022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7023 | (exit $ac_status); } >/dev/null; then |
---|
7024 | if test -s conftest.err; then |
---|
7025 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7026 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7027 | else |
---|
7028 | ac_cpp_err= |
---|
7029 | fi |
---|
7030 | else |
---|
7031 | ac_cpp_err=yes |
---|
7032 | fi |
---|
7033 | if test -z "$ac_cpp_err"; then |
---|
7034 | ac_header_preproc=yes |
---|
7035 | else |
---|
7036 | echo "$as_me: failed program was:" >&5 |
---|
7037 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7038 | |
---|
7039 | ac_header_preproc=no |
---|
7040 | fi |
---|
7041 | rm -f conftest.err conftest.$ac_ext |
---|
7042 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7043 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7044 | |
---|
7045 | # So? What about this header? |
---|
7046 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7047 | yes:no: ) |
---|
7048 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7049 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7051 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7052 | ac_header_preproc=yes |
---|
7053 | ;; |
---|
7054 | no:yes:* ) |
---|
7055 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7056 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7057 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7058 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7059 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7060 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7061 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7062 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7063 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7064 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7065 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7066 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7067 | ( |
---|
7068 | cat <<\_ASBOX |
---|
7069 | ## ---------------------------------------------- ## |
---|
7070 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7071 | ## ---------------------------------------------- ## |
---|
7072 | _ASBOX |
---|
7073 | ) | |
---|
7074 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7075 | ;; |
---|
7076 | esac |
---|
7077 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7078 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7079 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7081 | else |
---|
7082 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7083 | fi |
---|
7084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7085 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7086 | |
---|
7087 | fi |
---|
7088 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7089 | cat >>confdefs.h <<_ACEOF |
---|
7090 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7091 | _ACEOF |
---|
7092 | |
---|
7093 | else |
---|
7094 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
7095 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
7096 | { (exit 1); exit 1; }; } |
---|
7097 | fi |
---|
7098 | |
---|
7099 | done |
---|
7100 | |
---|
7101 | |
---|
7102 | LIBS="$LIBS -framework OpenGL" |
---|
7103 | |
---|
7104 | |
---|
7105 | ## SDL-check |
---|
7106 | SDL_CFLAGS=`sdl-config --cflags` |
---|
7107 | SDL_LIBS=`sdl-config --libs` |
---|
7108 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
7109 | LIBS="$LIBS $SDL_LIBS" |
---|
7110 | |
---|
7111 | |
---|
7112 | # checking for SDL-headers |
---|
7113 | # AC_CHECK_HEADERS(SDL/SDL.h ,, |
---|
7114 | # [AC_MSG_ERROR([cannot find SDL headers]) ]) |
---|
7115 | |
---|
7116 | ## checking for SDL |
---|
7117 | # SDL_VERSION=1.2.7 |
---|
7118 | # AM_PATH_SDL($SDL_VERSION, |
---|
7119 | # :, |
---|
7120 | # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) |
---|
7121 | # ) |
---|
7122 | |
---|
7123 | |
---|
7124 | ;; |
---|
7125 | |
---|
7126 | *) |
---|
7127 | ;; |
---|
7128 | esac |
---|
7129 | |
---|
7130 | |
---|
7131 | |
---|
7132 | ################################### |
---|
7133 | ## CHECKING FOR HEADERS AND LIBS ## |
---|
7134 | ################################### |
---|
7135 | |
---|
7136 | #---------# |
---|
7137 | # SDL_ttf # |
---|
7138 | #---------# |
---|
7139 | # checking for SDL_ttf-headers |
---|
7140 | |
---|
7141 | for ac_header in SDL_ttf.h |
---|
7142 | do |
---|
7143 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7144 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7145 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7146 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7147 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7149 | fi |
---|
7150 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7151 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7152 | else |
---|
7153 | # Is the header compilable? |
---|
7154 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7155 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7156 | cat >conftest.$ac_ext <<_ACEOF |
---|
7157 | /* confdefs.h. */ |
---|
7158 | _ACEOF |
---|
7159 | cat confdefs.h >>conftest.$ac_ext |
---|
7160 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7161 | /* end confdefs.h. */ |
---|
7162 | $ac_includes_default |
---|
7163 | #include <$ac_header> |
---|
7164 | _ACEOF |
---|
7165 | rm -f conftest.$ac_objext |
---|
7166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7167 | (eval $ac_compile) 2>conftest.er1 |
---|
7168 | ac_status=$? |
---|
7169 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7170 | rm -f conftest.er1 |
---|
7171 | cat conftest.err >&5 |
---|
7172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7173 | (exit $ac_status); } && |
---|
7174 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7175 | || test ! -s conftest.err' |
---|
7176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7177 | (eval $ac_try) 2>&5 |
---|
7178 | ac_status=$? |
---|
7179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7180 | (exit $ac_status); }; } && |
---|
7181 | { ac_try='test -s conftest.$ac_objext' |
---|
7182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7183 | (eval $ac_try) 2>&5 |
---|
7184 | ac_status=$? |
---|
7185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7186 | (exit $ac_status); }; }; then |
---|
7187 | ac_header_compiler=yes |
---|
7188 | else |
---|
7189 | echo "$as_me: failed program was:" >&5 |
---|
7190 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7191 | |
---|
7192 | ac_header_compiler=no |
---|
7193 | fi |
---|
7194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7195 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7196 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7197 | |
---|
7198 | # Is the header present? |
---|
7199 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7200 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7201 | cat >conftest.$ac_ext <<_ACEOF |
---|
7202 | /* confdefs.h. */ |
---|
7203 | _ACEOF |
---|
7204 | cat confdefs.h >>conftest.$ac_ext |
---|
7205 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7206 | /* end confdefs.h. */ |
---|
7207 | #include <$ac_header> |
---|
7208 | _ACEOF |
---|
7209 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7210 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7211 | ac_status=$? |
---|
7212 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7213 | rm -f conftest.er1 |
---|
7214 | cat conftest.err >&5 |
---|
7215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7216 | (exit $ac_status); } >/dev/null; then |
---|
7217 | if test -s conftest.err; then |
---|
7218 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7219 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7220 | else |
---|
7221 | ac_cpp_err= |
---|
7222 | fi |
---|
7223 | else |
---|
7224 | ac_cpp_err=yes |
---|
7225 | fi |
---|
7226 | if test -z "$ac_cpp_err"; then |
---|
7227 | ac_header_preproc=yes |
---|
7228 | else |
---|
7229 | echo "$as_me: failed program was:" >&5 |
---|
7230 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7231 | |
---|
7232 | ac_header_preproc=no |
---|
7233 | fi |
---|
7234 | rm -f conftest.err conftest.$ac_ext |
---|
7235 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7236 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7237 | |
---|
7238 | # So? What about this header? |
---|
7239 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7240 | yes:no: ) |
---|
7241 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7242 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7243 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7244 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7245 | ac_header_preproc=yes |
---|
7246 | ;; |
---|
7247 | no:yes:* ) |
---|
7248 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7249 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7250 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7251 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7252 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7253 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7254 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7255 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7256 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7257 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7258 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7259 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7260 | ( |
---|
7261 | cat <<\_ASBOX |
---|
7262 | ## ---------------------------------------------- ## |
---|
7263 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7264 | ## ---------------------------------------------- ## |
---|
7265 | _ASBOX |
---|
7266 | ) | |
---|
7267 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7268 | ;; |
---|
7269 | esac |
---|
7270 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7271 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7272 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7274 | else |
---|
7275 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7276 | fi |
---|
7277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7278 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7279 | |
---|
7280 | fi |
---|
7281 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7282 | cat >>confdefs.h <<_ACEOF |
---|
7283 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7284 | _ACEOF |
---|
7285 | |
---|
7286 | else |
---|
7287 | |
---|
7288 | for ac_header in SDL/SDL_ttf.h |
---|
7289 | do |
---|
7290 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7291 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7292 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7293 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7296 | fi |
---|
7297 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7298 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7299 | else |
---|
7300 | # Is the header compilable? |
---|
7301 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7302 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7303 | cat >conftest.$ac_ext <<_ACEOF |
---|
7304 | /* confdefs.h. */ |
---|
7305 | _ACEOF |
---|
7306 | cat confdefs.h >>conftest.$ac_ext |
---|
7307 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7308 | /* end confdefs.h. */ |
---|
7309 | $ac_includes_default |
---|
7310 | #include <$ac_header> |
---|
7311 | _ACEOF |
---|
7312 | rm -f conftest.$ac_objext |
---|
7313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7314 | (eval $ac_compile) 2>conftest.er1 |
---|
7315 | ac_status=$? |
---|
7316 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7317 | rm -f conftest.er1 |
---|
7318 | cat conftest.err >&5 |
---|
7319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7320 | (exit $ac_status); } && |
---|
7321 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7322 | || test ! -s conftest.err' |
---|
7323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7324 | (eval $ac_try) 2>&5 |
---|
7325 | ac_status=$? |
---|
7326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7327 | (exit $ac_status); }; } && |
---|
7328 | { ac_try='test -s conftest.$ac_objext' |
---|
7329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7330 | (eval $ac_try) 2>&5 |
---|
7331 | ac_status=$? |
---|
7332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7333 | (exit $ac_status); }; }; then |
---|
7334 | ac_header_compiler=yes |
---|
7335 | else |
---|
7336 | echo "$as_me: failed program was:" >&5 |
---|
7337 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7338 | |
---|
7339 | ac_header_compiler=no |
---|
7340 | fi |
---|
7341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7342 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7343 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7344 | |
---|
7345 | # Is the header present? |
---|
7346 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7347 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7348 | cat >conftest.$ac_ext <<_ACEOF |
---|
7349 | /* confdefs.h. */ |
---|
7350 | _ACEOF |
---|
7351 | cat confdefs.h >>conftest.$ac_ext |
---|
7352 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7353 | /* end confdefs.h. */ |
---|
7354 | #include <$ac_header> |
---|
7355 | _ACEOF |
---|
7356 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7357 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7358 | ac_status=$? |
---|
7359 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7360 | rm -f conftest.er1 |
---|
7361 | cat conftest.err >&5 |
---|
7362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7363 | (exit $ac_status); } >/dev/null; then |
---|
7364 | if test -s conftest.err; then |
---|
7365 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7366 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7367 | else |
---|
7368 | ac_cpp_err= |
---|
7369 | fi |
---|
7370 | else |
---|
7371 | ac_cpp_err=yes |
---|
7372 | fi |
---|
7373 | if test -z "$ac_cpp_err"; then |
---|
7374 | ac_header_preproc=yes |
---|
7375 | else |
---|
7376 | echo "$as_me: failed program was:" >&5 |
---|
7377 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7378 | |
---|
7379 | ac_header_preproc=no |
---|
7380 | fi |
---|
7381 | rm -f conftest.err conftest.$ac_ext |
---|
7382 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7383 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7384 | |
---|
7385 | # So? What about this header? |
---|
7386 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7387 | yes:no: ) |
---|
7388 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7389 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7390 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7391 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7392 | ac_header_preproc=yes |
---|
7393 | ;; |
---|
7394 | no:yes:* ) |
---|
7395 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7396 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7397 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7398 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7399 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7400 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7401 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7402 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7403 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7404 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7405 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7406 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7407 | ( |
---|
7408 | cat <<\_ASBOX |
---|
7409 | ## ---------------------------------------------- ## |
---|
7410 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7411 | ## ---------------------------------------------- ## |
---|
7412 | _ASBOX |
---|
7413 | ) | |
---|
7414 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7415 | ;; |
---|
7416 | esac |
---|
7417 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7418 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7419 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7421 | else |
---|
7422 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7423 | fi |
---|
7424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7425 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7426 | |
---|
7427 | fi |
---|
7428 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7429 | cat >>confdefs.h <<_ACEOF |
---|
7430 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7431 | _ACEOF |
---|
7432 | |
---|
7433 | else |
---|
7434 | { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 |
---|
7435 | echo "$as_me: error: cannot find SDL_ttf header." >&2;} |
---|
7436 | { (exit 1); exit 1; }; } |
---|
7437 | fi |
---|
7438 | |
---|
7439 | done |
---|
7440 | |
---|
7441 | fi |
---|
7442 | |
---|
7443 | done |
---|
7444 | |
---|
7445 | # checking for SDL_ttf-lib |
---|
7446 | echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 |
---|
7447 | echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 |
---|
7448 | if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then |
---|
7449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7450 | else |
---|
7451 | ac_check_lib_save_LIBS=$LIBS |
---|
7452 | LIBS="-lSDL_ttf $LIBS" |
---|
7453 | cat >conftest.$ac_ext <<_ACEOF |
---|
7454 | /* confdefs.h. */ |
---|
7455 | _ACEOF |
---|
7456 | cat confdefs.h >>conftest.$ac_ext |
---|
7457 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7458 | /* end confdefs.h. */ |
---|
7459 | |
---|
7460 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
7461 | #ifdef __cplusplus |
---|
7462 | extern "C" |
---|
7463 | #endif |
---|
7464 | /* We use char because int might match the return type of a gcc2 |
---|
7465 | builtin and then its argument prototype would still apply. */ |
---|
7466 | char TTF_OpenFont (); |
---|
7467 | int |
---|
7468 | main () |
---|
7469 | { |
---|
7470 | TTF_OpenFont (); |
---|
7471 | ; |
---|
7472 | return 0; |
---|
7473 | } |
---|
7474 | _ACEOF |
---|
7475 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7477 | (eval $ac_link) 2>conftest.er1 |
---|
7478 | ac_status=$? |
---|
7479 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7480 | rm -f conftest.er1 |
---|
7481 | cat conftest.err >&5 |
---|
7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7483 | (exit $ac_status); } && |
---|
7484 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7485 | || test ! -s conftest.err' |
---|
7486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7487 | (eval $ac_try) 2>&5 |
---|
7488 | ac_status=$? |
---|
7489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7490 | (exit $ac_status); }; } && |
---|
7491 | { ac_try='test -s conftest$ac_exeext' |
---|
7492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7493 | (eval $ac_try) 2>&5 |
---|
7494 | ac_status=$? |
---|
7495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7496 | (exit $ac_status); }; }; then |
---|
7497 | ac_cv_lib_SDL_ttf_TTF_OpenFont=yes |
---|
7498 | else |
---|
7499 | echo "$as_me: failed program was:" >&5 |
---|
7500 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7501 | |
---|
7502 | ac_cv_lib_SDL_ttf_TTF_OpenFont=no |
---|
7503 | fi |
---|
7504 | rm -f conftest.err conftest.$ac_objext \ |
---|
7505 | conftest$ac_exeext conftest.$ac_ext |
---|
7506 | LIBS=$ac_check_lib_save_LIBS |
---|
7507 | fi |
---|
7508 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 |
---|
7509 | echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 |
---|
7510 | if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then |
---|
7511 | FOUND_SDL_ttf=yes |
---|
7512 | fi |
---|
7513 | |
---|
7514 | if test x$FOUND_SDL_ttf = xyes ; then |
---|
7515 | LIBS="$LIBS -lSDL_ttf" |
---|
7516 | else |
---|
7517 | echo "------------------" |
---|
7518 | echo "SDL_ttf library not found." |
---|
7519 | echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" |
---|
7520 | echo "------------------" |
---|
7521 | exit -1 |
---|
7522 | fi |
---|
7523 | |
---|
7524 | #-----------# |
---|
7525 | # SDL_Image # |
---|
7526 | #-----------# |
---|
7527 | # checking for SDL_image-headers |
---|
7528 | |
---|
7529 | for ac_header in SDL_image.h |
---|
7530 | do |
---|
7531 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7532 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7533 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7534 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7537 | fi |
---|
7538 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7539 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7540 | else |
---|
7541 | # Is the header compilable? |
---|
7542 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7543 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7544 | cat >conftest.$ac_ext <<_ACEOF |
---|
7545 | /* confdefs.h. */ |
---|
7546 | _ACEOF |
---|
7547 | cat confdefs.h >>conftest.$ac_ext |
---|
7548 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7549 | /* end confdefs.h. */ |
---|
7550 | $ac_includes_default |
---|
7551 | #include <$ac_header> |
---|
7552 | _ACEOF |
---|
7553 | rm -f conftest.$ac_objext |
---|
7554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7555 | (eval $ac_compile) 2>conftest.er1 |
---|
7556 | ac_status=$? |
---|
7557 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7558 | rm -f conftest.er1 |
---|
7559 | cat conftest.err >&5 |
---|
7560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7561 | (exit $ac_status); } && |
---|
7562 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7563 | || test ! -s conftest.err' |
---|
7564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7565 | (eval $ac_try) 2>&5 |
---|
7566 | ac_status=$? |
---|
7567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7568 | (exit $ac_status); }; } && |
---|
7569 | { ac_try='test -s conftest.$ac_objext' |
---|
7570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7571 | (eval $ac_try) 2>&5 |
---|
7572 | ac_status=$? |
---|
7573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7574 | (exit $ac_status); }; }; then |
---|
7575 | ac_header_compiler=yes |
---|
7576 | else |
---|
7577 | echo "$as_me: failed program was:" >&5 |
---|
7578 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7579 | |
---|
7580 | ac_header_compiler=no |
---|
7581 | fi |
---|
7582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7583 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7584 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7585 | |
---|
7586 | # Is the header present? |
---|
7587 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7588 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7589 | cat >conftest.$ac_ext <<_ACEOF |
---|
7590 | /* confdefs.h. */ |
---|
7591 | _ACEOF |
---|
7592 | cat confdefs.h >>conftest.$ac_ext |
---|
7593 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7594 | /* end confdefs.h. */ |
---|
7595 | #include <$ac_header> |
---|
7596 | _ACEOF |
---|
7597 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7598 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7599 | ac_status=$? |
---|
7600 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7601 | rm -f conftest.er1 |
---|
7602 | cat conftest.err >&5 |
---|
7603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7604 | (exit $ac_status); } >/dev/null; then |
---|
7605 | if test -s conftest.err; then |
---|
7606 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7607 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7608 | else |
---|
7609 | ac_cpp_err= |
---|
7610 | fi |
---|
7611 | else |
---|
7612 | ac_cpp_err=yes |
---|
7613 | fi |
---|
7614 | if test -z "$ac_cpp_err"; then |
---|
7615 | ac_header_preproc=yes |
---|
7616 | else |
---|
7617 | echo "$as_me: failed program was:" >&5 |
---|
7618 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7619 | |
---|
7620 | ac_header_preproc=no |
---|
7621 | fi |
---|
7622 | rm -f conftest.err conftest.$ac_ext |
---|
7623 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7624 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7625 | |
---|
7626 | # So? What about this header? |
---|
7627 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7628 | yes:no: ) |
---|
7629 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7630 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7631 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7632 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7633 | ac_header_preproc=yes |
---|
7634 | ;; |
---|
7635 | no:yes:* ) |
---|
7636 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7637 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7638 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7639 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7640 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7641 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7642 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7643 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7644 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7645 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7646 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7647 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7648 | ( |
---|
7649 | cat <<\_ASBOX |
---|
7650 | ## ---------------------------------------------- ## |
---|
7651 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7652 | ## ---------------------------------------------- ## |
---|
7653 | _ASBOX |
---|
7654 | ) | |
---|
7655 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7656 | ;; |
---|
7657 | esac |
---|
7658 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7659 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7660 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7662 | else |
---|
7663 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7664 | fi |
---|
7665 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7666 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7667 | |
---|
7668 | fi |
---|
7669 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7670 | cat >>confdefs.h <<_ACEOF |
---|
7671 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7672 | _ACEOF |
---|
7673 | |
---|
7674 | else |
---|
7675 | |
---|
7676 | for ac_header in SDL/SDL_image.h |
---|
7677 | do |
---|
7678 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7679 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7680 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7681 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7682 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7684 | fi |
---|
7685 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7686 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7687 | else |
---|
7688 | # Is the header compilable? |
---|
7689 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7690 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7691 | cat >conftest.$ac_ext <<_ACEOF |
---|
7692 | /* confdefs.h. */ |
---|
7693 | _ACEOF |
---|
7694 | cat confdefs.h >>conftest.$ac_ext |
---|
7695 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7696 | /* end confdefs.h. */ |
---|
7697 | $ac_includes_default |
---|
7698 | #include <$ac_header> |
---|
7699 | _ACEOF |
---|
7700 | rm -f conftest.$ac_objext |
---|
7701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7702 | (eval $ac_compile) 2>conftest.er1 |
---|
7703 | ac_status=$? |
---|
7704 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7705 | rm -f conftest.er1 |
---|
7706 | cat conftest.err >&5 |
---|
7707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7708 | (exit $ac_status); } && |
---|
7709 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7710 | || test ! -s conftest.err' |
---|
7711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7712 | (eval $ac_try) 2>&5 |
---|
7713 | ac_status=$? |
---|
7714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7715 | (exit $ac_status); }; } && |
---|
7716 | { ac_try='test -s conftest.$ac_objext' |
---|
7717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7718 | (eval $ac_try) 2>&5 |
---|
7719 | ac_status=$? |
---|
7720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7721 | (exit $ac_status); }; }; then |
---|
7722 | ac_header_compiler=yes |
---|
7723 | else |
---|
7724 | echo "$as_me: failed program was:" >&5 |
---|
7725 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7726 | |
---|
7727 | ac_header_compiler=no |
---|
7728 | fi |
---|
7729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7730 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7731 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7732 | |
---|
7733 | # Is the header present? |
---|
7734 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7735 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7736 | cat >conftest.$ac_ext <<_ACEOF |
---|
7737 | /* confdefs.h. */ |
---|
7738 | _ACEOF |
---|
7739 | cat confdefs.h >>conftest.$ac_ext |
---|
7740 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7741 | /* end confdefs.h. */ |
---|
7742 | #include <$ac_header> |
---|
7743 | _ACEOF |
---|
7744 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7745 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7746 | ac_status=$? |
---|
7747 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7748 | rm -f conftest.er1 |
---|
7749 | cat conftest.err >&5 |
---|
7750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7751 | (exit $ac_status); } >/dev/null; then |
---|
7752 | if test -s conftest.err; then |
---|
7753 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7754 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7755 | else |
---|
7756 | ac_cpp_err= |
---|
7757 | fi |
---|
7758 | else |
---|
7759 | ac_cpp_err=yes |
---|
7760 | fi |
---|
7761 | if test -z "$ac_cpp_err"; then |
---|
7762 | ac_header_preproc=yes |
---|
7763 | else |
---|
7764 | echo "$as_me: failed program was:" >&5 |
---|
7765 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7766 | |
---|
7767 | ac_header_preproc=no |
---|
7768 | fi |
---|
7769 | rm -f conftest.err conftest.$ac_ext |
---|
7770 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
7771 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
7772 | |
---|
7773 | # So? What about this header? |
---|
7774 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
7775 | yes:no: ) |
---|
7776 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
7777 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
7778 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
7779 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
7780 | ac_header_preproc=yes |
---|
7781 | ;; |
---|
7782 | no:yes:* ) |
---|
7783 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
7784 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
7785 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
7786 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
7787 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
7788 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
7789 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
7790 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
7791 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
7792 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
7793 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
7794 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
7795 | ( |
---|
7796 | cat <<\_ASBOX |
---|
7797 | ## ---------------------------------------------- ## |
---|
7798 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
7799 | ## ---------------------------------------------- ## |
---|
7800 | _ASBOX |
---|
7801 | ) | |
---|
7802 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
7803 | ;; |
---|
7804 | esac |
---|
7805 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7806 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7808 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7809 | else |
---|
7810 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
7811 | fi |
---|
7812 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7813 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7814 | |
---|
7815 | fi |
---|
7816 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
7817 | cat >>confdefs.h <<_ACEOF |
---|
7818 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7819 | _ACEOF |
---|
7820 | |
---|
7821 | else |
---|
7822 | { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5 |
---|
7823 | echo "$as_me: error: SDL_image header not found." >&2;} |
---|
7824 | { (exit 1); exit 1; }; } |
---|
7825 | fi |
---|
7826 | |
---|
7827 | done |
---|
7828 | |
---|
7829 | fi |
---|
7830 | |
---|
7831 | done |
---|
7832 | |
---|
7833 | # checking for SDL_image-lib |
---|
7834 | echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 |
---|
7835 | echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 |
---|
7836 | if test "${ac_cv_lib_SDL_image_main+set}" = set; then |
---|
7837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7838 | else |
---|
7839 | ac_check_lib_save_LIBS=$LIBS |
---|
7840 | LIBS="-lSDL_image $LIBS" |
---|
7841 | cat >conftest.$ac_ext <<_ACEOF |
---|
7842 | /* confdefs.h. */ |
---|
7843 | _ACEOF |
---|
7844 | cat confdefs.h >>conftest.$ac_ext |
---|
7845 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7846 | /* end confdefs.h. */ |
---|
7847 | |
---|
7848 | |
---|
7849 | int |
---|
7850 | main () |
---|
7851 | { |
---|
7852 | main (); |
---|
7853 | ; |
---|
7854 | return 0; |
---|
7855 | } |
---|
7856 | _ACEOF |
---|
7857 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
7858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
7859 | (eval $ac_link) 2>conftest.er1 |
---|
7860 | ac_status=$? |
---|
7861 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7862 | rm -f conftest.er1 |
---|
7863 | cat conftest.err >&5 |
---|
7864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7865 | (exit $ac_status); } && |
---|
7866 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7867 | || test ! -s conftest.err' |
---|
7868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7869 | (eval $ac_try) 2>&5 |
---|
7870 | ac_status=$? |
---|
7871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7872 | (exit $ac_status); }; } && |
---|
7873 | { ac_try='test -s conftest$ac_exeext' |
---|
7874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7875 | (eval $ac_try) 2>&5 |
---|
7876 | ac_status=$? |
---|
7877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7878 | (exit $ac_status); }; }; then |
---|
7879 | ac_cv_lib_SDL_image_main=yes |
---|
7880 | else |
---|
7881 | echo "$as_me: failed program was:" >&5 |
---|
7882 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7883 | |
---|
7884 | ac_cv_lib_SDL_image_main=no |
---|
7885 | fi |
---|
7886 | rm -f conftest.err conftest.$ac_objext \ |
---|
7887 | conftest$ac_exeext conftest.$ac_ext |
---|
7888 | LIBS=$ac_check_lib_save_LIBS |
---|
7889 | fi |
---|
7890 | echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 |
---|
7891 | echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 |
---|
7892 | if test $ac_cv_lib_SDL_image_main = yes; then |
---|
7893 | FOUND_SDL_image=yes |
---|
7894 | fi |
---|
7895 | |
---|
7896 | if test x$FOUND_SDL_image = xyes ; then |
---|
7897 | LIBS="$LIBS -lSDL_image" |
---|
7898 | else |
---|
7899 | echo "------------------" |
---|
7900 | echo "SDL_image library not found." |
---|
7901 | echo "please install the SDL_image library, which can be found at http://www.libsdl.org/projects/SDL_image/" |
---|
7902 | echo "------------------" |
---|
7903 | exit -1 |
---|
7904 | fi |
---|
7905 | |
---|
7906 | #-----# |
---|
7907 | # ogg # |
---|
7908 | #-----# |
---|
7909 | # checking for ogg-headers |
---|
7910 | |
---|
7911 | for ac_header in ogg/ogg.h |
---|
7912 | do |
---|
7913 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7914 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7915 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
7916 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
7917 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
7918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
7919 | fi |
---|
7920 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
7921 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
7922 | else |
---|
7923 | # Is the header compilable? |
---|
7924 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
7925 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
7926 | cat >conftest.$ac_ext <<_ACEOF |
---|
7927 | /* confdefs.h. */ |
---|
7928 | _ACEOF |
---|
7929 | cat confdefs.h >>conftest.$ac_ext |
---|
7930 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7931 | /* end confdefs.h. */ |
---|
7932 | $ac_includes_default |
---|
7933 | #include <$ac_header> |
---|
7934 | _ACEOF |
---|
7935 | rm -f conftest.$ac_objext |
---|
7936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
7937 | (eval $ac_compile) 2>conftest.er1 |
---|
7938 | ac_status=$? |
---|
7939 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7940 | rm -f conftest.er1 |
---|
7941 | cat conftest.err >&5 |
---|
7942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7943 | (exit $ac_status); } && |
---|
7944 | { ac_try='test -z "$ac_c_werror_flag" |
---|
7945 | || test ! -s conftest.err' |
---|
7946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7947 | (eval $ac_try) 2>&5 |
---|
7948 | ac_status=$? |
---|
7949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7950 | (exit $ac_status); }; } && |
---|
7951 | { ac_try='test -s conftest.$ac_objext' |
---|
7952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
7953 | (eval $ac_try) 2>&5 |
---|
7954 | ac_status=$? |
---|
7955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7956 | (exit $ac_status); }; }; then |
---|
7957 | ac_header_compiler=yes |
---|
7958 | else |
---|
7959 | echo "$as_me: failed program was:" >&5 |
---|
7960 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
7961 | |
---|
7962 | ac_header_compiler=no |
---|
7963 | fi |
---|
7964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7965 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
7966 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
7967 | |
---|
7968 | # Is the header present? |
---|
7969 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
7970 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
7971 | cat >conftest.$ac_ext <<_ACEOF |
---|
7972 | /* confdefs.h. */ |
---|
7973 | _ACEOF |
---|
7974 | cat confdefs.h >>conftest.$ac_ext |
---|
7975 | cat >>conftest.$ac_ext <<_ACEOF |
---|
7976 | /* end confdefs.h. */ |
---|
7977 | #include <$ac_header> |
---|
7978 | _ACEOF |
---|
7979 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
7980 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
7981 | ac_status=$? |
---|
7982 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
7983 | rm -f conftest.er1 |
---|
7984 | cat conftest.err >&5 |
---|
7985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7986 | (exit $ac_status); } >/dev/null; then |
---|
7987 | if test -s conftest.err; then |
---|
7988 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
7989 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
7990 | else |
---|
7991 | ac_cpp_err= |
---|
7992 | fi |
---|
7993 | else |
---|
7994 | ac_cpp_err=yes |
---|
7995 | fi |
---|
7996 | if test -z "$ac_cpp_err"; then |
---|
7997 | ac_header_preproc=yes |
---|
7998 | else |
---|
7999 | echo "$as_me: failed program was:" >&5 |
---|
8000 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8001 | |
---|
8002 | ac_header_preproc=no |
---|
8003 | fi |
---|
8004 | rm -f conftest.err conftest.$ac_ext |
---|
8005 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8006 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8007 | |
---|
8008 | # So? What about this header? |
---|
8009 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8010 | yes:no: ) |
---|
8011 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8012 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8013 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8014 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8015 | ac_header_preproc=yes |
---|
8016 | ;; |
---|
8017 | no:yes:* ) |
---|
8018 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8019 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8020 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8021 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8022 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8023 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8024 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8025 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8026 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8027 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8028 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8029 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8030 | ( |
---|
8031 | cat <<\_ASBOX |
---|
8032 | ## ---------------------------------------------- ## |
---|
8033 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8034 | ## ---------------------------------------------- ## |
---|
8035 | _ASBOX |
---|
8036 | ) | |
---|
8037 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8038 | ;; |
---|
8039 | esac |
---|
8040 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8041 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8042 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8044 | else |
---|
8045 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8046 | fi |
---|
8047 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8048 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8049 | |
---|
8050 | fi |
---|
8051 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8052 | cat >>confdefs.h <<_ACEOF |
---|
8053 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8054 | _ACEOF |
---|
8055 | |
---|
8056 | else |
---|
8057 | { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5 |
---|
8058 | echo "$as_me: error: cannot find ogg header." >&2;} |
---|
8059 | { (exit 1); exit 1; }; } |
---|
8060 | fi |
---|
8061 | |
---|
8062 | done |
---|
8063 | |
---|
8064 | # checking for ogg-lib |
---|
8065 | echo "$as_me:$LINENO: checking for main in -logg" >&5 |
---|
8066 | echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 |
---|
8067 | if test "${ac_cv_lib_ogg_main+set}" = set; then |
---|
8068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8069 | else |
---|
8070 | ac_check_lib_save_LIBS=$LIBS |
---|
8071 | LIBS="-logg $LIBS" |
---|
8072 | cat >conftest.$ac_ext <<_ACEOF |
---|
8073 | /* confdefs.h. */ |
---|
8074 | _ACEOF |
---|
8075 | cat confdefs.h >>conftest.$ac_ext |
---|
8076 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8077 | /* end confdefs.h. */ |
---|
8078 | |
---|
8079 | |
---|
8080 | int |
---|
8081 | main () |
---|
8082 | { |
---|
8083 | main (); |
---|
8084 | ; |
---|
8085 | return 0; |
---|
8086 | } |
---|
8087 | _ACEOF |
---|
8088 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8090 | (eval $ac_link) 2>conftest.er1 |
---|
8091 | ac_status=$? |
---|
8092 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8093 | rm -f conftest.er1 |
---|
8094 | cat conftest.err >&5 |
---|
8095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8096 | (exit $ac_status); } && |
---|
8097 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8098 | || test ! -s conftest.err' |
---|
8099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8100 | (eval $ac_try) 2>&5 |
---|
8101 | ac_status=$? |
---|
8102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8103 | (exit $ac_status); }; } && |
---|
8104 | { ac_try='test -s conftest$ac_exeext' |
---|
8105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8106 | (eval $ac_try) 2>&5 |
---|
8107 | ac_status=$? |
---|
8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8109 | (exit $ac_status); }; }; then |
---|
8110 | ac_cv_lib_ogg_main=yes |
---|
8111 | else |
---|
8112 | echo "$as_me: failed program was:" >&5 |
---|
8113 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8114 | |
---|
8115 | ac_cv_lib_ogg_main=no |
---|
8116 | fi |
---|
8117 | rm -f conftest.err conftest.$ac_objext \ |
---|
8118 | conftest$ac_exeext conftest.$ac_ext |
---|
8119 | LIBS=$ac_check_lib_save_LIBS |
---|
8120 | fi |
---|
8121 | echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5 |
---|
8122 | echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6 |
---|
8123 | if test $ac_cv_lib_ogg_main = yes; then |
---|
8124 | FOUND_ogg=yes |
---|
8125 | fi |
---|
8126 | |
---|
8127 | if test x$FOUND_ogg = xyes ; then |
---|
8128 | LIBS="$LIBS -logg" |
---|
8129 | else |
---|
8130 | echo "------------------" |
---|
8131 | echo "ogg library not found." |
---|
8132 | echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
8133 | echo "------------------" |
---|
8134 | exit -1 |
---|
8135 | fi |
---|
8136 | |
---|
8137 | #--------# |
---|
8138 | # vorbis # |
---|
8139 | #--------# |
---|
8140 | # checking for vorbis-lib |
---|
8141 | echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 |
---|
8142 | echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 |
---|
8143 | if test "${ac_cv_lib_vorbis_main+set}" = set; then |
---|
8144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8145 | else |
---|
8146 | ac_check_lib_save_LIBS=$LIBS |
---|
8147 | LIBS="-lvorbis $LIBS" |
---|
8148 | cat >conftest.$ac_ext <<_ACEOF |
---|
8149 | /* confdefs.h. */ |
---|
8150 | _ACEOF |
---|
8151 | cat confdefs.h >>conftest.$ac_ext |
---|
8152 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8153 | /* end confdefs.h. */ |
---|
8154 | |
---|
8155 | |
---|
8156 | int |
---|
8157 | main () |
---|
8158 | { |
---|
8159 | main (); |
---|
8160 | ; |
---|
8161 | return 0; |
---|
8162 | } |
---|
8163 | _ACEOF |
---|
8164 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8166 | (eval $ac_link) 2>conftest.er1 |
---|
8167 | ac_status=$? |
---|
8168 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8169 | rm -f conftest.er1 |
---|
8170 | cat conftest.err >&5 |
---|
8171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8172 | (exit $ac_status); } && |
---|
8173 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8174 | || test ! -s conftest.err' |
---|
8175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8176 | (eval $ac_try) 2>&5 |
---|
8177 | ac_status=$? |
---|
8178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8179 | (exit $ac_status); }; } && |
---|
8180 | { ac_try='test -s conftest$ac_exeext' |
---|
8181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8182 | (eval $ac_try) 2>&5 |
---|
8183 | ac_status=$? |
---|
8184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8185 | (exit $ac_status); }; }; then |
---|
8186 | ac_cv_lib_vorbis_main=yes |
---|
8187 | else |
---|
8188 | echo "$as_me: failed program was:" >&5 |
---|
8189 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8190 | |
---|
8191 | ac_cv_lib_vorbis_main=no |
---|
8192 | fi |
---|
8193 | rm -f conftest.err conftest.$ac_objext \ |
---|
8194 | conftest$ac_exeext conftest.$ac_ext |
---|
8195 | LIBS=$ac_check_lib_save_LIBS |
---|
8196 | fi |
---|
8197 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 |
---|
8198 | echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 |
---|
8199 | if test $ac_cv_lib_vorbis_main = yes; then |
---|
8200 | FOUND_vorbis=yes |
---|
8201 | fi |
---|
8202 | |
---|
8203 | if test x$FOUND_vorbis = xyes ; then |
---|
8204 | LIBS="$LIBS -lvorbis" |
---|
8205 | else |
---|
8206 | echo "------------------" |
---|
8207 | echo "vorbis library not found." |
---|
8208 | echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
8209 | echo "------------------" |
---|
8210 | exit -1 |
---|
8211 | fi |
---|
8212 | |
---|
8213 | #------------# |
---|
8214 | # vorbisfile # |
---|
8215 | #------------# |
---|
8216 | # checking for vorbis-headers |
---|
8217 | |
---|
8218 | for ac_header in vorbis/vorbisfile.h |
---|
8219 | do |
---|
8220 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8222 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8223 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8226 | fi |
---|
8227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8228 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8229 | else |
---|
8230 | # Is the header compilable? |
---|
8231 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8232 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8233 | cat >conftest.$ac_ext <<_ACEOF |
---|
8234 | /* confdefs.h. */ |
---|
8235 | _ACEOF |
---|
8236 | cat confdefs.h >>conftest.$ac_ext |
---|
8237 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8238 | /* end confdefs.h. */ |
---|
8239 | $ac_includes_default |
---|
8240 | #include <$ac_header> |
---|
8241 | _ACEOF |
---|
8242 | rm -f conftest.$ac_objext |
---|
8243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8244 | (eval $ac_compile) 2>conftest.er1 |
---|
8245 | ac_status=$? |
---|
8246 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8247 | rm -f conftest.er1 |
---|
8248 | cat conftest.err >&5 |
---|
8249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8250 | (exit $ac_status); } && |
---|
8251 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8252 | || test ! -s conftest.err' |
---|
8253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8254 | (eval $ac_try) 2>&5 |
---|
8255 | ac_status=$? |
---|
8256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8257 | (exit $ac_status); }; } && |
---|
8258 | { ac_try='test -s conftest.$ac_objext' |
---|
8259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8260 | (eval $ac_try) 2>&5 |
---|
8261 | ac_status=$? |
---|
8262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8263 | (exit $ac_status); }; }; then |
---|
8264 | ac_header_compiler=yes |
---|
8265 | else |
---|
8266 | echo "$as_me: failed program was:" >&5 |
---|
8267 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8268 | |
---|
8269 | ac_header_compiler=no |
---|
8270 | fi |
---|
8271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8272 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8273 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8274 | |
---|
8275 | # Is the header present? |
---|
8276 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8277 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8278 | cat >conftest.$ac_ext <<_ACEOF |
---|
8279 | /* confdefs.h. */ |
---|
8280 | _ACEOF |
---|
8281 | cat confdefs.h >>conftest.$ac_ext |
---|
8282 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8283 | /* end confdefs.h. */ |
---|
8284 | #include <$ac_header> |
---|
8285 | _ACEOF |
---|
8286 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8287 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8288 | ac_status=$? |
---|
8289 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8290 | rm -f conftest.er1 |
---|
8291 | cat conftest.err >&5 |
---|
8292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8293 | (exit $ac_status); } >/dev/null; then |
---|
8294 | if test -s conftest.err; then |
---|
8295 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8296 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8297 | else |
---|
8298 | ac_cpp_err= |
---|
8299 | fi |
---|
8300 | else |
---|
8301 | ac_cpp_err=yes |
---|
8302 | fi |
---|
8303 | if test -z "$ac_cpp_err"; then |
---|
8304 | ac_header_preproc=yes |
---|
8305 | else |
---|
8306 | echo "$as_me: failed program was:" >&5 |
---|
8307 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8308 | |
---|
8309 | ac_header_preproc=no |
---|
8310 | fi |
---|
8311 | rm -f conftest.err conftest.$ac_ext |
---|
8312 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8313 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8314 | |
---|
8315 | # So? What about this header? |
---|
8316 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8317 | yes:no: ) |
---|
8318 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8319 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8321 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8322 | ac_header_preproc=yes |
---|
8323 | ;; |
---|
8324 | no:yes:* ) |
---|
8325 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8326 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8327 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8328 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8329 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8330 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8331 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8332 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8334 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8335 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8336 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8337 | ( |
---|
8338 | cat <<\_ASBOX |
---|
8339 | ## ---------------------------------------------- ## |
---|
8340 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8341 | ## ---------------------------------------------- ## |
---|
8342 | _ASBOX |
---|
8343 | ) | |
---|
8344 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8345 | ;; |
---|
8346 | esac |
---|
8347 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8348 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8349 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8351 | else |
---|
8352 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8353 | fi |
---|
8354 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8355 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8356 | |
---|
8357 | fi |
---|
8358 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8359 | cat >>confdefs.h <<_ACEOF |
---|
8360 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8361 | _ACEOF |
---|
8362 | |
---|
8363 | else |
---|
8364 | { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 |
---|
8365 | echo "$as_me: error: cannot find vorbisfile header." >&2;} |
---|
8366 | { (exit 1); exit 1; }; } |
---|
8367 | fi |
---|
8368 | |
---|
8369 | done |
---|
8370 | |
---|
8371 | # checking for vorbisfile-lib |
---|
8372 | echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 |
---|
8373 | echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 |
---|
8374 | if test "${ac_cv_lib_vorbisfile_main+set}" = set; then |
---|
8375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8376 | else |
---|
8377 | ac_check_lib_save_LIBS=$LIBS |
---|
8378 | LIBS="-lvorbisfile $LIBS" |
---|
8379 | cat >conftest.$ac_ext <<_ACEOF |
---|
8380 | /* confdefs.h. */ |
---|
8381 | _ACEOF |
---|
8382 | cat confdefs.h >>conftest.$ac_ext |
---|
8383 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8384 | /* end confdefs.h. */ |
---|
8385 | |
---|
8386 | |
---|
8387 | int |
---|
8388 | main () |
---|
8389 | { |
---|
8390 | main (); |
---|
8391 | ; |
---|
8392 | return 0; |
---|
8393 | } |
---|
8394 | _ACEOF |
---|
8395 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8397 | (eval $ac_link) 2>conftest.er1 |
---|
8398 | ac_status=$? |
---|
8399 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8400 | rm -f conftest.er1 |
---|
8401 | cat conftest.err >&5 |
---|
8402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8403 | (exit $ac_status); } && |
---|
8404 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8405 | || test ! -s conftest.err' |
---|
8406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8407 | (eval $ac_try) 2>&5 |
---|
8408 | ac_status=$? |
---|
8409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8410 | (exit $ac_status); }; } && |
---|
8411 | { ac_try='test -s conftest$ac_exeext' |
---|
8412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8413 | (eval $ac_try) 2>&5 |
---|
8414 | ac_status=$? |
---|
8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8416 | (exit $ac_status); }; }; then |
---|
8417 | ac_cv_lib_vorbisfile_main=yes |
---|
8418 | else |
---|
8419 | echo "$as_me: failed program was:" >&5 |
---|
8420 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8421 | |
---|
8422 | ac_cv_lib_vorbisfile_main=no |
---|
8423 | fi |
---|
8424 | rm -f conftest.err conftest.$ac_objext \ |
---|
8425 | conftest$ac_exeext conftest.$ac_ext |
---|
8426 | LIBS=$ac_check_lib_save_LIBS |
---|
8427 | fi |
---|
8428 | echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 |
---|
8429 | echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 |
---|
8430 | if test $ac_cv_lib_vorbisfile_main = yes; then |
---|
8431 | FOUND_vorbisfile=yes |
---|
8432 | fi |
---|
8433 | |
---|
8434 | if test x$FOUND_vorbisfile = xyes ; then |
---|
8435 | LIBS="$LIBS -lvorbisfile" |
---|
8436 | else |
---|
8437 | echo "------------------" |
---|
8438 | echo "vorbisfile library not found." |
---|
8439 | echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" |
---|
8440 | echo "------------------" |
---|
8441 | exit -1 |
---|
8442 | fi |
---|
8443 | |
---|
8444 | #-----# |
---|
8445 | # GTK # |
---|
8446 | #-----# |
---|
8447 | if test x$def_gtk = xyes; then |
---|
8448 | #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
8449 | echo "$as_me:$LINENO: checking for gtk2.0" >&5 |
---|
8450 | echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 |
---|
8451 | if `$PKG_CONFIG --exists gtk+-2.0`; then |
---|
8452 | echo "yes" |
---|
8453 | have_gtk2=yes |
---|
8454 | GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
---|
8455 | GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
---|
8456 | |
---|
8457 | cat >>confdefs.h <<_ACEOF |
---|
8458 | #define HAVE_GTK2 1 |
---|
8459 | _ACEOF |
---|
8460 | |
---|
8461 | if test $DEBUG -ge 3; then |
---|
8462 | echo "cflags: $GTK2_CFLAGS" |
---|
8463 | echo "libs: $GTK2_LIBS" |
---|
8464 | fi |
---|
8465 | else |
---|
8466 | echo "no" |
---|
8467 | fi |
---|
8468 | |
---|
8469 | fi |
---|
8470 | |
---|
8471 | |
---|
8472 | |
---|
8473 | |
---|
8474 | if test x$have_gtk2 = xyes; then |
---|
8475 | HAVE_GTK2_TRUE= |
---|
8476 | HAVE_GTK2_FALSE='#' |
---|
8477 | else |
---|
8478 | HAVE_GTK2_TRUE='#' |
---|
8479 | HAVE_GTK2_FALSE= |
---|
8480 | fi |
---|
8481 | |
---|
8482 | |
---|
8483 | #---------# |
---|
8484 | # libcURL # |
---|
8485 | #---------# |
---|
8486 | if test x$def_curl = xyes; then |
---|
8487 | |
---|
8488 | |
---|
8489 | for ac_header in curl/curl.h |
---|
8490 | do |
---|
8491 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
8492 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8493 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8494 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8495 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8497 | fi |
---|
8498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8499 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8500 | else |
---|
8501 | # Is the header compilable? |
---|
8502 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
8503 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
8504 | cat >conftest.$ac_ext <<_ACEOF |
---|
8505 | /* confdefs.h. */ |
---|
8506 | _ACEOF |
---|
8507 | cat confdefs.h >>conftest.$ac_ext |
---|
8508 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8509 | /* end confdefs.h. */ |
---|
8510 | $ac_includes_default |
---|
8511 | #include <$ac_header> |
---|
8512 | _ACEOF |
---|
8513 | rm -f conftest.$ac_objext |
---|
8514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8515 | (eval $ac_compile) 2>conftest.er1 |
---|
8516 | ac_status=$? |
---|
8517 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8518 | rm -f conftest.er1 |
---|
8519 | cat conftest.err >&5 |
---|
8520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8521 | (exit $ac_status); } && |
---|
8522 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8523 | || test ! -s conftest.err' |
---|
8524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8525 | (eval $ac_try) 2>&5 |
---|
8526 | ac_status=$? |
---|
8527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8528 | (exit $ac_status); }; } && |
---|
8529 | { ac_try='test -s conftest.$ac_objext' |
---|
8530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8531 | (eval $ac_try) 2>&5 |
---|
8532 | ac_status=$? |
---|
8533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8534 | (exit $ac_status); }; }; then |
---|
8535 | ac_header_compiler=yes |
---|
8536 | else |
---|
8537 | echo "$as_me: failed program was:" >&5 |
---|
8538 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8539 | |
---|
8540 | ac_header_compiler=no |
---|
8541 | fi |
---|
8542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8543 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
8544 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
8545 | |
---|
8546 | # Is the header present? |
---|
8547 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
8548 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
8549 | cat >conftest.$ac_ext <<_ACEOF |
---|
8550 | /* confdefs.h. */ |
---|
8551 | _ACEOF |
---|
8552 | cat confdefs.h >>conftest.$ac_ext |
---|
8553 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8554 | /* end confdefs.h. */ |
---|
8555 | #include <$ac_header> |
---|
8556 | _ACEOF |
---|
8557 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
8558 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
8559 | ac_status=$? |
---|
8560 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8561 | rm -f conftest.er1 |
---|
8562 | cat conftest.err >&5 |
---|
8563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8564 | (exit $ac_status); } >/dev/null; then |
---|
8565 | if test -s conftest.err; then |
---|
8566 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
8567 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
8568 | else |
---|
8569 | ac_cpp_err= |
---|
8570 | fi |
---|
8571 | else |
---|
8572 | ac_cpp_err=yes |
---|
8573 | fi |
---|
8574 | if test -z "$ac_cpp_err"; then |
---|
8575 | ac_header_preproc=yes |
---|
8576 | else |
---|
8577 | echo "$as_me: failed program was:" >&5 |
---|
8578 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8579 | |
---|
8580 | ac_header_preproc=no |
---|
8581 | fi |
---|
8582 | rm -f conftest.err conftest.$ac_ext |
---|
8583 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
8584 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
8585 | |
---|
8586 | # So? What about this header? |
---|
8587 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
8588 | yes:no: ) |
---|
8589 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
8590 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
8591 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
8592 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
8593 | ac_header_preproc=yes |
---|
8594 | ;; |
---|
8595 | no:yes:* ) |
---|
8596 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
8597 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
8598 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
8599 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
8600 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
8601 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
8602 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
8603 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
8604 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
8605 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
8606 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
8607 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
8608 | ( |
---|
8609 | cat <<\_ASBOX |
---|
8610 | ## ---------------------------------------------- ## |
---|
8611 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
8612 | ## ---------------------------------------------- ## |
---|
8613 | _ASBOX |
---|
8614 | ) | |
---|
8615 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
8616 | ;; |
---|
8617 | esac |
---|
8618 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
8619 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
8620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
8621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8622 | else |
---|
8623 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
8624 | fi |
---|
8625 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
8626 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
8627 | |
---|
8628 | fi |
---|
8629 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
8630 | cat >>confdefs.h <<_ACEOF |
---|
8631 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
8632 | _ACEOF |
---|
8633 | curlHeader="yes" |
---|
8634 | else |
---|
8635 | curlHeader="no" |
---|
8636 | fi |
---|
8637 | |
---|
8638 | done |
---|
8639 | |
---|
8640 | echo "$as_me:$LINENO: checking for main in -lcurl" >&5 |
---|
8641 | echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 |
---|
8642 | if test "${ac_cv_lib_curl_main+set}" = set; then |
---|
8643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8644 | else |
---|
8645 | ac_check_lib_save_LIBS=$LIBS |
---|
8646 | LIBS="-lcurl $LIBS" |
---|
8647 | cat >conftest.$ac_ext <<_ACEOF |
---|
8648 | /* confdefs.h. */ |
---|
8649 | _ACEOF |
---|
8650 | cat confdefs.h >>conftest.$ac_ext |
---|
8651 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8652 | /* end confdefs.h. */ |
---|
8653 | |
---|
8654 | |
---|
8655 | int |
---|
8656 | main () |
---|
8657 | { |
---|
8658 | main (); |
---|
8659 | ; |
---|
8660 | return 0; |
---|
8661 | } |
---|
8662 | _ACEOF |
---|
8663 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8665 | (eval $ac_link) 2>conftest.er1 |
---|
8666 | ac_status=$? |
---|
8667 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8668 | rm -f conftest.er1 |
---|
8669 | cat conftest.err >&5 |
---|
8670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8671 | (exit $ac_status); } && |
---|
8672 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8673 | || test ! -s conftest.err' |
---|
8674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8675 | (eval $ac_try) 2>&5 |
---|
8676 | ac_status=$? |
---|
8677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8678 | (exit $ac_status); }; } && |
---|
8679 | { ac_try='test -s conftest$ac_exeext' |
---|
8680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8681 | (eval $ac_try) 2>&5 |
---|
8682 | ac_status=$? |
---|
8683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8684 | (exit $ac_status); }; }; then |
---|
8685 | ac_cv_lib_curl_main=yes |
---|
8686 | else |
---|
8687 | echo "$as_me: failed program was:" >&5 |
---|
8688 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8689 | |
---|
8690 | ac_cv_lib_curl_main=no |
---|
8691 | fi |
---|
8692 | rm -f conftest.err conftest.$ac_objext \ |
---|
8693 | conftest$ac_exeext conftest.$ac_ext |
---|
8694 | LIBS=$ac_check_lib_save_LIBS |
---|
8695 | fi |
---|
8696 | echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 |
---|
8697 | echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 |
---|
8698 | if test $ac_cv_lib_curl_main = yes; then |
---|
8699 | FOUND_curl=yes |
---|
8700 | fi |
---|
8701 | |
---|
8702 | if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then |
---|
8703 | have_curl=yes |
---|
8704 | CURL_LIBS=`curl-config --libs` |
---|
8705 | CURLCFLAGS=`curl-config --cflags` |
---|
8706 | |
---|
8707 | cat >>confdefs.h <<_ACEOF |
---|
8708 | #define HAVE_CURL 1 |
---|
8709 | _ACEOF |
---|
8710 | |
---|
8711 | else |
---|
8712 | have_curl=no |
---|
8713 | fi |
---|
8714 | |
---|
8715 | fi |
---|
8716 | |
---|
8717 | |
---|
8718 | |
---|
8719 | |
---|
8720 | if test x$have_curl = xyes; then |
---|
8721 | HAVE_CURL_TRUE= |
---|
8722 | HAVE_CURL_FALSE='#' |
---|
8723 | else |
---|
8724 | HAVE_CURL_TRUE='#' |
---|
8725 | HAVE_CURL_FALSE= |
---|
8726 | fi |
---|
8727 | |
---|
8728 | |
---|
8729 | #--------# |
---|
8730 | # efence # |
---|
8731 | #--------# |
---|
8732 | if test x$def_efence = xyes ; then |
---|
8733 | echo "$as_me:$LINENO: checking for main in -lefence" >&5 |
---|
8734 | echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 |
---|
8735 | if test "${ac_cv_lib_efence_main+set}" = set; then |
---|
8736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8737 | else |
---|
8738 | ac_check_lib_save_LIBS=$LIBS |
---|
8739 | LIBS="-lefence $LIBS" |
---|
8740 | cat >conftest.$ac_ext <<_ACEOF |
---|
8741 | /* confdefs.h. */ |
---|
8742 | _ACEOF |
---|
8743 | cat confdefs.h >>conftest.$ac_ext |
---|
8744 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8745 | /* end confdefs.h. */ |
---|
8746 | |
---|
8747 | |
---|
8748 | int |
---|
8749 | main () |
---|
8750 | { |
---|
8751 | main (); |
---|
8752 | ; |
---|
8753 | return 0; |
---|
8754 | } |
---|
8755 | _ACEOF |
---|
8756 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8758 | (eval $ac_link) 2>conftest.er1 |
---|
8759 | ac_status=$? |
---|
8760 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8761 | rm -f conftest.er1 |
---|
8762 | cat conftest.err >&5 |
---|
8763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8764 | (exit $ac_status); } && |
---|
8765 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8766 | || test ! -s conftest.err' |
---|
8767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8768 | (eval $ac_try) 2>&5 |
---|
8769 | ac_status=$? |
---|
8770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8771 | (exit $ac_status); }; } && |
---|
8772 | { ac_try='test -s conftest$ac_exeext' |
---|
8773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8774 | (eval $ac_try) 2>&5 |
---|
8775 | ac_status=$? |
---|
8776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8777 | (exit $ac_status); }; }; then |
---|
8778 | ac_cv_lib_efence_main=yes |
---|
8779 | else |
---|
8780 | echo "$as_me: failed program was:" >&5 |
---|
8781 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8782 | |
---|
8783 | ac_cv_lib_efence_main=no |
---|
8784 | fi |
---|
8785 | rm -f conftest.err conftest.$ac_objext \ |
---|
8786 | conftest$ac_exeext conftest.$ac_ext |
---|
8787 | LIBS=$ac_check_lib_save_LIBS |
---|
8788 | fi |
---|
8789 | echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 |
---|
8790 | echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 |
---|
8791 | if test $ac_cv_lib_efence_main = yes; then |
---|
8792 | FOUND_efence=yes |
---|
8793 | fi |
---|
8794 | |
---|
8795 | if test x$FOUND_efence = xyes ; then |
---|
8796 | LIBS="$LIBS -lefence" |
---|
8797 | fi |
---|
8798 | |
---|
8799 | fi |
---|
8800 | |
---|
8801 | # FIXME: Replace `main' with a function in `-lm': |
---|
8802 | |
---|
8803 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
8804 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
8805 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
8806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8807 | else |
---|
8808 | ac_check_lib_save_LIBS=$LIBS |
---|
8809 | LIBS="-lm $LIBS" |
---|
8810 | cat >conftest.$ac_ext <<_ACEOF |
---|
8811 | /* confdefs.h. */ |
---|
8812 | _ACEOF |
---|
8813 | cat confdefs.h >>conftest.$ac_ext |
---|
8814 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8815 | /* end confdefs.h. */ |
---|
8816 | |
---|
8817 | |
---|
8818 | int |
---|
8819 | main () |
---|
8820 | { |
---|
8821 | main (); |
---|
8822 | ; |
---|
8823 | return 0; |
---|
8824 | } |
---|
8825 | _ACEOF |
---|
8826 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
8827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
8828 | (eval $ac_link) 2>conftest.er1 |
---|
8829 | ac_status=$? |
---|
8830 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8831 | rm -f conftest.er1 |
---|
8832 | cat conftest.err >&5 |
---|
8833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8834 | (exit $ac_status); } && |
---|
8835 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8836 | || test ! -s conftest.err' |
---|
8837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8838 | (eval $ac_try) 2>&5 |
---|
8839 | ac_status=$? |
---|
8840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8841 | (exit $ac_status); }; } && |
---|
8842 | { ac_try='test -s conftest$ac_exeext' |
---|
8843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8844 | (eval $ac_try) 2>&5 |
---|
8845 | ac_status=$? |
---|
8846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8847 | (exit $ac_status); }; }; then |
---|
8848 | ac_cv_lib_m_main=yes |
---|
8849 | else |
---|
8850 | echo "$as_me: failed program was:" >&5 |
---|
8851 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8852 | |
---|
8853 | ac_cv_lib_m_main=no |
---|
8854 | fi |
---|
8855 | rm -f conftest.err conftest.$ac_objext \ |
---|
8856 | conftest$ac_exeext conftest.$ac_ext |
---|
8857 | LIBS=$ac_check_lib_save_LIBS |
---|
8858 | fi |
---|
8859 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
8860 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
8861 | if test $ac_cv_lib_m_main = yes; then |
---|
8862 | cat >>confdefs.h <<_ACEOF |
---|
8863 | #define HAVE_LIBM 1 |
---|
8864 | _ACEOF |
---|
8865 | |
---|
8866 | LIBS="-lm $LIBS" |
---|
8867 | |
---|
8868 | fi |
---|
8869 | |
---|
8870 | |
---|
8871 | |
---|
8872 | # Checks for header files. |
---|
8873 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
8874 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
8875 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
8876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
8877 | else |
---|
8878 | cat >conftest.$ac_ext <<_ACEOF |
---|
8879 | /* confdefs.h. */ |
---|
8880 | _ACEOF |
---|
8881 | cat confdefs.h >>conftest.$ac_ext |
---|
8882 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8883 | /* end confdefs.h. */ |
---|
8884 | #include <stdlib.h> |
---|
8885 | #include <stdarg.h> |
---|
8886 | #include <string.h> |
---|
8887 | #include <float.h> |
---|
8888 | |
---|
8889 | int |
---|
8890 | main () |
---|
8891 | { |
---|
8892 | |
---|
8893 | ; |
---|
8894 | return 0; |
---|
8895 | } |
---|
8896 | _ACEOF |
---|
8897 | rm -f conftest.$ac_objext |
---|
8898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
8899 | (eval $ac_compile) 2>conftest.er1 |
---|
8900 | ac_status=$? |
---|
8901 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
8902 | rm -f conftest.er1 |
---|
8903 | cat conftest.err >&5 |
---|
8904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8905 | (exit $ac_status); } && |
---|
8906 | { ac_try='test -z "$ac_c_werror_flag" |
---|
8907 | || test ! -s conftest.err' |
---|
8908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8909 | (eval $ac_try) 2>&5 |
---|
8910 | ac_status=$? |
---|
8911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8912 | (exit $ac_status); }; } && |
---|
8913 | { ac_try='test -s conftest.$ac_objext' |
---|
8914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
8915 | (eval $ac_try) 2>&5 |
---|
8916 | ac_status=$? |
---|
8917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8918 | (exit $ac_status); }; }; then |
---|
8919 | ac_cv_header_stdc=yes |
---|
8920 | else |
---|
8921 | echo "$as_me: failed program was:" >&5 |
---|
8922 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
8923 | |
---|
8924 | ac_cv_header_stdc=no |
---|
8925 | fi |
---|
8926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
8927 | |
---|
8928 | if test $ac_cv_header_stdc = yes; then |
---|
8929 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
8930 | cat >conftest.$ac_ext <<_ACEOF |
---|
8931 | /* confdefs.h. */ |
---|
8932 | _ACEOF |
---|
8933 | cat confdefs.h >>conftest.$ac_ext |
---|
8934 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8935 | /* end confdefs.h. */ |
---|
8936 | #include <string.h> |
---|
8937 | |
---|
8938 | _ACEOF |
---|
8939 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8940 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
8941 | : |
---|
8942 | else |
---|
8943 | ac_cv_header_stdc=no |
---|
8944 | fi |
---|
8945 | rm -f conftest* |
---|
8946 | |
---|
8947 | fi |
---|
8948 | |
---|
8949 | if test $ac_cv_header_stdc = yes; then |
---|
8950 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
8951 | cat >conftest.$ac_ext <<_ACEOF |
---|
8952 | /* confdefs.h. */ |
---|
8953 | _ACEOF |
---|
8954 | cat confdefs.h >>conftest.$ac_ext |
---|
8955 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8956 | /* end confdefs.h. */ |
---|
8957 | #include <stdlib.h> |
---|
8958 | |
---|
8959 | _ACEOF |
---|
8960 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
8961 | $EGREP "free" >/dev/null 2>&1; then |
---|
8962 | : |
---|
8963 | else |
---|
8964 | ac_cv_header_stdc=no |
---|
8965 | fi |
---|
8966 | rm -f conftest* |
---|
8967 | |
---|
8968 | fi |
---|
8969 | |
---|
8970 | if test $ac_cv_header_stdc = yes; then |
---|
8971 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
8972 | if test "$cross_compiling" = yes; then |
---|
8973 | : |
---|
8974 | else |
---|
8975 | cat >conftest.$ac_ext <<_ACEOF |
---|
8976 | /* confdefs.h. */ |
---|
8977 | _ACEOF |
---|
8978 | cat confdefs.h >>conftest.$ac_ext |
---|
8979 | cat >>conftest.$ac_ext <<_ACEOF |
---|
8980 | /* end confdefs.h. */ |
---|
8981 | #include <ctype.h> |
---|
8982 | #if ((' ' & 0x0FF) == 0x020) |
---|
8983 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
8984 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
8985 | #else |
---|
8986 | # define ISLOWER(c) \ |
---|
8987 | (('a' <= (c) && (c) <= 'i') \ |
---|
8988 | || ('j' <= (c) && (c) <= 'r') \ |
---|
8989 | || ('s' <= (c) && (c) <= 'z')) |
---|
8990 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
8991 | #endif |
---|
8992 | |
---|
8993 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
8994 | int |
---|
8995 | main () |
---|
8996 | { |
---|
8997 | int i; |
---|
8998 | for (i = 0; i < 256; i++) |
---|
8999 | if (XOR (islower (i), ISLOWER (i)) |
---|
9000 | || toupper (i) != TOUPPER (i)) |
---|
9001 | exit(2); |
---|
9002 | exit (0); |
---|
9003 | } |
---|
9004 | _ACEOF |
---|
9005 | rm -f conftest$ac_exeext |
---|
9006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9007 | (eval $ac_link) 2>&5 |
---|
9008 | ac_status=$? |
---|
9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9010 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
9011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9012 | (eval $ac_try) 2>&5 |
---|
9013 | ac_status=$? |
---|
9014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9015 | (exit $ac_status); }; }; then |
---|
9016 | : |
---|
9017 | else |
---|
9018 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
9019 | echo "$as_me: failed program was:" >&5 |
---|
9020 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9021 | |
---|
9022 | ( exit $ac_status ) |
---|
9023 | ac_cv_header_stdc=no |
---|
9024 | fi |
---|
9025 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
9026 | fi |
---|
9027 | fi |
---|
9028 | fi |
---|
9029 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
9030 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
9031 | if test $ac_cv_header_stdc = yes; then |
---|
9032 | |
---|
9033 | cat >>confdefs.h <<\_ACEOF |
---|
9034 | #define STDC_HEADERS 1 |
---|
9035 | _ACEOF |
---|
9036 | |
---|
9037 | fi |
---|
9038 | |
---|
9039 | |
---|
9040 | |
---|
9041 | for ac_header in stdlib.h string.h |
---|
9042 | do |
---|
9043 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
9044 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9045 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9046 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9047 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9049 | fi |
---|
9050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9051 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9052 | else |
---|
9053 | # Is the header compilable? |
---|
9054 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9055 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
9056 | cat >conftest.$ac_ext <<_ACEOF |
---|
9057 | /* confdefs.h. */ |
---|
9058 | _ACEOF |
---|
9059 | cat confdefs.h >>conftest.$ac_ext |
---|
9060 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9061 | /* end confdefs.h. */ |
---|
9062 | $ac_includes_default |
---|
9063 | #include <$ac_header> |
---|
9064 | _ACEOF |
---|
9065 | rm -f conftest.$ac_objext |
---|
9066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9067 | (eval $ac_compile) 2>conftest.er1 |
---|
9068 | ac_status=$? |
---|
9069 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9070 | rm -f conftest.er1 |
---|
9071 | cat conftest.err >&5 |
---|
9072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9073 | (exit $ac_status); } && |
---|
9074 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9075 | || test ! -s conftest.err' |
---|
9076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9077 | (eval $ac_try) 2>&5 |
---|
9078 | ac_status=$? |
---|
9079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9080 | (exit $ac_status); }; } && |
---|
9081 | { ac_try='test -s conftest.$ac_objext' |
---|
9082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9083 | (eval $ac_try) 2>&5 |
---|
9084 | ac_status=$? |
---|
9085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9086 | (exit $ac_status); }; }; then |
---|
9087 | ac_header_compiler=yes |
---|
9088 | else |
---|
9089 | echo "$as_me: failed program was:" >&5 |
---|
9090 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9091 | |
---|
9092 | ac_header_compiler=no |
---|
9093 | fi |
---|
9094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9095 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9096 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9097 | |
---|
9098 | # Is the header present? |
---|
9099 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9100 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9101 | cat >conftest.$ac_ext <<_ACEOF |
---|
9102 | /* confdefs.h. */ |
---|
9103 | _ACEOF |
---|
9104 | cat confdefs.h >>conftest.$ac_ext |
---|
9105 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9106 | /* end confdefs.h. */ |
---|
9107 | #include <$ac_header> |
---|
9108 | _ACEOF |
---|
9109 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9110 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9111 | ac_status=$? |
---|
9112 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9113 | rm -f conftest.er1 |
---|
9114 | cat conftest.err >&5 |
---|
9115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9116 | (exit $ac_status); } >/dev/null; then |
---|
9117 | if test -s conftest.err; then |
---|
9118 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9119 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9120 | else |
---|
9121 | ac_cpp_err= |
---|
9122 | fi |
---|
9123 | else |
---|
9124 | ac_cpp_err=yes |
---|
9125 | fi |
---|
9126 | if test -z "$ac_cpp_err"; then |
---|
9127 | ac_header_preproc=yes |
---|
9128 | else |
---|
9129 | echo "$as_me: failed program was:" >&5 |
---|
9130 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9131 | |
---|
9132 | ac_header_preproc=no |
---|
9133 | fi |
---|
9134 | rm -f conftest.err conftest.$ac_ext |
---|
9135 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9136 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9137 | |
---|
9138 | # So? What about this header? |
---|
9139 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9140 | yes:no: ) |
---|
9141 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9142 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9143 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9144 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9145 | ac_header_preproc=yes |
---|
9146 | ;; |
---|
9147 | no:yes:* ) |
---|
9148 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9149 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9150 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9151 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9152 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9153 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9154 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9155 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9156 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9157 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9158 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9159 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9160 | ( |
---|
9161 | cat <<\_ASBOX |
---|
9162 | ## ---------------------------------------------- ## |
---|
9163 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9164 | ## ---------------------------------------------- ## |
---|
9165 | _ASBOX |
---|
9166 | ) | |
---|
9167 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9168 | ;; |
---|
9169 | esac |
---|
9170 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9171 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9172 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9174 | else |
---|
9175 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9176 | fi |
---|
9177 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9178 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9179 | |
---|
9180 | fi |
---|
9181 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9182 | cat >>confdefs.h <<_ACEOF |
---|
9183 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9184 | _ACEOF |
---|
9185 | |
---|
9186 | fi |
---|
9187 | |
---|
9188 | done |
---|
9189 | |
---|
9190 | |
---|
9191 | # Checks for typedefs, structures, and compiler characteristics. |
---|
9192 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
9193 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
9194 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
9195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9196 | else |
---|
9197 | cat >conftest.$ac_ext <<_ACEOF |
---|
9198 | /* confdefs.h. */ |
---|
9199 | _ACEOF |
---|
9200 | cat confdefs.h >>conftest.$ac_ext |
---|
9201 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9202 | /* end confdefs.h. */ |
---|
9203 | |
---|
9204 | #include <stdbool.h> |
---|
9205 | #ifndef bool |
---|
9206 | # error bool is not defined |
---|
9207 | #endif |
---|
9208 | #ifndef false |
---|
9209 | # error false is not defined |
---|
9210 | #endif |
---|
9211 | #if false |
---|
9212 | # error false is not 0 |
---|
9213 | #endif |
---|
9214 | #ifndef true |
---|
9215 | # error true is not defined |
---|
9216 | #endif |
---|
9217 | #if true != 1 |
---|
9218 | # error true is not 1 |
---|
9219 | #endif |
---|
9220 | #ifndef __bool_true_false_are_defined |
---|
9221 | # error __bool_true_false_are_defined is not defined |
---|
9222 | #endif |
---|
9223 | |
---|
9224 | struct s { _Bool s: 1; _Bool t; } s; |
---|
9225 | |
---|
9226 | char a[true == 1 ? 1 : -1]; |
---|
9227 | char b[false == 0 ? 1 : -1]; |
---|
9228 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
9229 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
9230 | bool e = &s; |
---|
9231 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
9232 | char g[true]; |
---|
9233 | char h[sizeof (_Bool)]; |
---|
9234 | char i[sizeof s.t]; |
---|
9235 | |
---|
9236 | int |
---|
9237 | main () |
---|
9238 | { |
---|
9239 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
9240 | ; |
---|
9241 | return 0; |
---|
9242 | } |
---|
9243 | _ACEOF |
---|
9244 | rm -f conftest.$ac_objext |
---|
9245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9246 | (eval $ac_compile) 2>conftest.er1 |
---|
9247 | ac_status=$? |
---|
9248 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9249 | rm -f conftest.er1 |
---|
9250 | cat conftest.err >&5 |
---|
9251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9252 | (exit $ac_status); } && |
---|
9253 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9254 | || test ! -s conftest.err' |
---|
9255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9256 | (eval $ac_try) 2>&5 |
---|
9257 | ac_status=$? |
---|
9258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9259 | (exit $ac_status); }; } && |
---|
9260 | { ac_try='test -s conftest.$ac_objext' |
---|
9261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9262 | (eval $ac_try) 2>&5 |
---|
9263 | ac_status=$? |
---|
9264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9265 | (exit $ac_status); }; }; then |
---|
9266 | ac_cv_header_stdbool_h=yes |
---|
9267 | else |
---|
9268 | echo "$as_me: failed program was:" >&5 |
---|
9269 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9270 | |
---|
9271 | ac_cv_header_stdbool_h=no |
---|
9272 | fi |
---|
9273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9274 | fi |
---|
9275 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
9276 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
9277 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
9278 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
9279 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
9280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9281 | else |
---|
9282 | cat >conftest.$ac_ext <<_ACEOF |
---|
9283 | /* confdefs.h. */ |
---|
9284 | _ACEOF |
---|
9285 | cat confdefs.h >>conftest.$ac_ext |
---|
9286 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9287 | /* end confdefs.h. */ |
---|
9288 | $ac_includes_default |
---|
9289 | int |
---|
9290 | main () |
---|
9291 | { |
---|
9292 | if ((_Bool *) 0) |
---|
9293 | return 0; |
---|
9294 | if (sizeof (_Bool)) |
---|
9295 | return 0; |
---|
9296 | ; |
---|
9297 | return 0; |
---|
9298 | } |
---|
9299 | _ACEOF |
---|
9300 | rm -f conftest.$ac_objext |
---|
9301 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9302 | (eval $ac_compile) 2>conftest.er1 |
---|
9303 | ac_status=$? |
---|
9304 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9305 | rm -f conftest.er1 |
---|
9306 | cat conftest.err >&5 |
---|
9307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9308 | (exit $ac_status); } && |
---|
9309 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9310 | || test ! -s conftest.err' |
---|
9311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9312 | (eval $ac_try) 2>&5 |
---|
9313 | ac_status=$? |
---|
9314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9315 | (exit $ac_status); }; } && |
---|
9316 | { ac_try='test -s conftest.$ac_objext' |
---|
9317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9318 | (eval $ac_try) 2>&5 |
---|
9319 | ac_status=$? |
---|
9320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9321 | (exit $ac_status); }; }; then |
---|
9322 | ac_cv_type__Bool=yes |
---|
9323 | else |
---|
9324 | echo "$as_me: failed program was:" >&5 |
---|
9325 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9326 | |
---|
9327 | ac_cv_type__Bool=no |
---|
9328 | fi |
---|
9329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9330 | fi |
---|
9331 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
9332 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
9333 | if test $ac_cv_type__Bool = yes; then |
---|
9334 | |
---|
9335 | cat >>confdefs.h <<_ACEOF |
---|
9336 | #define HAVE__BOOL 1 |
---|
9337 | _ACEOF |
---|
9338 | |
---|
9339 | |
---|
9340 | fi |
---|
9341 | |
---|
9342 | if test $ac_cv_header_stdbool_h = yes; then |
---|
9343 | |
---|
9344 | cat >>confdefs.h <<\_ACEOF |
---|
9345 | #define HAVE_STDBOOL_H 1 |
---|
9346 | _ACEOF |
---|
9347 | |
---|
9348 | fi |
---|
9349 | |
---|
9350 | |
---|
9351 | # Checks for library functions. |
---|
9352 | |
---|
9353 | for ac_header in stdlib.h |
---|
9354 | do |
---|
9355 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
9356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9357 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9358 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9359 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9361 | fi |
---|
9362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9363 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9364 | else |
---|
9365 | # Is the header compilable? |
---|
9366 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
9367 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
9368 | cat >conftest.$ac_ext <<_ACEOF |
---|
9369 | /* confdefs.h. */ |
---|
9370 | _ACEOF |
---|
9371 | cat confdefs.h >>conftest.$ac_ext |
---|
9372 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9373 | /* end confdefs.h. */ |
---|
9374 | $ac_includes_default |
---|
9375 | #include <$ac_header> |
---|
9376 | _ACEOF |
---|
9377 | rm -f conftest.$ac_objext |
---|
9378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
9379 | (eval $ac_compile) 2>conftest.er1 |
---|
9380 | ac_status=$? |
---|
9381 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9382 | rm -f conftest.er1 |
---|
9383 | cat conftest.err >&5 |
---|
9384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9385 | (exit $ac_status); } && |
---|
9386 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9387 | || test ! -s conftest.err' |
---|
9388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9389 | (eval $ac_try) 2>&5 |
---|
9390 | ac_status=$? |
---|
9391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9392 | (exit $ac_status); }; } && |
---|
9393 | { ac_try='test -s conftest.$ac_objext' |
---|
9394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9395 | (eval $ac_try) 2>&5 |
---|
9396 | ac_status=$? |
---|
9397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9398 | (exit $ac_status); }; }; then |
---|
9399 | ac_header_compiler=yes |
---|
9400 | else |
---|
9401 | echo "$as_me: failed program was:" >&5 |
---|
9402 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9403 | |
---|
9404 | ac_header_compiler=no |
---|
9405 | fi |
---|
9406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
9407 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
9408 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
9409 | |
---|
9410 | # Is the header present? |
---|
9411 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
9412 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
9413 | cat >conftest.$ac_ext <<_ACEOF |
---|
9414 | /* confdefs.h. */ |
---|
9415 | _ACEOF |
---|
9416 | cat confdefs.h >>conftest.$ac_ext |
---|
9417 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9418 | /* end confdefs.h. */ |
---|
9419 | #include <$ac_header> |
---|
9420 | _ACEOF |
---|
9421 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
9422 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
9423 | ac_status=$? |
---|
9424 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9425 | rm -f conftest.er1 |
---|
9426 | cat conftest.err >&5 |
---|
9427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9428 | (exit $ac_status); } >/dev/null; then |
---|
9429 | if test -s conftest.err; then |
---|
9430 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
9431 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
9432 | else |
---|
9433 | ac_cpp_err= |
---|
9434 | fi |
---|
9435 | else |
---|
9436 | ac_cpp_err=yes |
---|
9437 | fi |
---|
9438 | if test -z "$ac_cpp_err"; then |
---|
9439 | ac_header_preproc=yes |
---|
9440 | else |
---|
9441 | echo "$as_me: failed program was:" >&5 |
---|
9442 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9443 | |
---|
9444 | ac_header_preproc=no |
---|
9445 | fi |
---|
9446 | rm -f conftest.err conftest.$ac_ext |
---|
9447 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
9448 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
9449 | |
---|
9450 | # So? What about this header? |
---|
9451 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
9452 | yes:no: ) |
---|
9453 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
9454 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
9455 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
9456 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
9457 | ac_header_preproc=yes |
---|
9458 | ;; |
---|
9459 | no:yes:* ) |
---|
9460 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
9461 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
9462 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
9463 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
9464 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
9465 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
9466 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
9467 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
9468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
9469 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
9470 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
9471 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
9472 | ( |
---|
9473 | cat <<\_ASBOX |
---|
9474 | ## ---------------------------------------------- ## |
---|
9475 | ## Report this to orxonox-dev at mail.datacore.ch ## |
---|
9476 | ## ---------------------------------------------- ## |
---|
9477 | _ASBOX |
---|
9478 | ) | |
---|
9479 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
9480 | ;; |
---|
9481 | esac |
---|
9482 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
9483 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
9484 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
9485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9486 | else |
---|
9487 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
9488 | fi |
---|
9489 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
9490 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
9491 | |
---|
9492 | fi |
---|
9493 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
9494 | cat >>confdefs.h <<_ACEOF |
---|
9495 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
9496 | _ACEOF |
---|
9497 | |
---|
9498 | fi |
---|
9499 | |
---|
9500 | done |
---|
9501 | |
---|
9502 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
9503 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
9504 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
9505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9506 | else |
---|
9507 | if test "$cross_compiling" = yes; then |
---|
9508 | ac_cv_func_malloc_0_nonnull=no |
---|
9509 | else |
---|
9510 | cat >conftest.$ac_ext <<_ACEOF |
---|
9511 | /* confdefs.h. */ |
---|
9512 | _ACEOF |
---|
9513 | cat confdefs.h >>conftest.$ac_ext |
---|
9514 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9515 | /* end confdefs.h. */ |
---|
9516 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
9517 | # include <stdlib.h> |
---|
9518 | #else |
---|
9519 | char *malloc (); |
---|
9520 | #endif |
---|
9521 | |
---|
9522 | int |
---|
9523 | main () |
---|
9524 | { |
---|
9525 | exit (malloc (0) ? 0 : 1); |
---|
9526 | ; |
---|
9527 | return 0; |
---|
9528 | } |
---|
9529 | _ACEOF |
---|
9530 | rm -f conftest$ac_exeext |
---|
9531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9532 | (eval $ac_link) 2>&5 |
---|
9533 | ac_status=$? |
---|
9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9535 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
9536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9537 | (eval $ac_try) 2>&5 |
---|
9538 | ac_status=$? |
---|
9539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9540 | (exit $ac_status); }; }; then |
---|
9541 | ac_cv_func_malloc_0_nonnull=yes |
---|
9542 | else |
---|
9543 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
9544 | echo "$as_me: failed program was:" >&5 |
---|
9545 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9546 | |
---|
9547 | ( exit $ac_status ) |
---|
9548 | ac_cv_func_malloc_0_nonnull=no |
---|
9549 | fi |
---|
9550 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
9551 | fi |
---|
9552 | fi |
---|
9553 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
9554 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
9555 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
9556 | |
---|
9557 | cat >>confdefs.h <<\_ACEOF |
---|
9558 | #define HAVE_MALLOC 1 |
---|
9559 | _ACEOF |
---|
9560 | |
---|
9561 | else |
---|
9562 | cat >>confdefs.h <<\_ACEOF |
---|
9563 | #define HAVE_MALLOC 0 |
---|
9564 | _ACEOF |
---|
9565 | |
---|
9566 | case $LIBOBJS in |
---|
9567 | "malloc.$ac_objext" | \ |
---|
9568 | *" malloc.$ac_objext" | \ |
---|
9569 | "malloc.$ac_objext "* | \ |
---|
9570 | *" malloc.$ac_objext "* ) ;; |
---|
9571 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; |
---|
9572 | esac |
---|
9573 | |
---|
9574 | |
---|
9575 | cat >>confdefs.h <<\_ACEOF |
---|
9576 | #define malloc rpl_malloc |
---|
9577 | _ACEOF |
---|
9578 | |
---|
9579 | fi |
---|
9580 | |
---|
9581 | |
---|
9582 | |
---|
9583 | |
---|
9584 | |
---|
9585 | for ac_func in bzero sqrt |
---|
9586 | do |
---|
9587 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
9588 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
9589 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
9590 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
9591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
9592 | else |
---|
9593 | cat >conftest.$ac_ext <<_ACEOF |
---|
9594 | /* confdefs.h. */ |
---|
9595 | _ACEOF |
---|
9596 | cat confdefs.h >>conftest.$ac_ext |
---|
9597 | cat >>conftest.$ac_ext <<_ACEOF |
---|
9598 | /* end confdefs.h. */ |
---|
9599 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
9600 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
9601 | #define $ac_func innocuous_$ac_func |
---|
9602 | |
---|
9603 | /* System header to define __stub macros and hopefully few prototypes, |
---|
9604 | which can conflict with char $ac_func (); below. |
---|
9605 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
9606 | <limits.h> exists even on freestanding compilers. */ |
---|
9607 | |
---|
9608 | #ifdef __STDC__ |
---|
9609 | # include <limits.h> |
---|
9610 | #else |
---|
9611 | # include <assert.h> |
---|
9612 | #endif |
---|
9613 | |
---|
9614 | #undef $ac_func |
---|
9615 | |
---|
9616 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
9617 | #ifdef __cplusplus |
---|
9618 | extern "C" |
---|
9619 | { |
---|
9620 | #endif |
---|
9621 | /* We use char because int might match the return type of a gcc2 |
---|
9622 | builtin and then its argument prototype would still apply. */ |
---|
9623 | char $ac_func (); |
---|
9624 | /* The GNU C library defines this for functions which it implements |
---|
9625 | to always fail with ENOSYS. Some functions are actually named |
---|
9626 | something starting with __ and the normal name is an alias. */ |
---|
9627 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
9628 | choke me |
---|
9629 | #else |
---|
9630 | char (*f) () = $ac_func; |
---|
9631 | #endif |
---|
9632 | #ifdef __cplusplus |
---|
9633 | } |
---|
9634 | #endif |
---|
9635 | |
---|
9636 | int |
---|
9637 | main () |
---|
9638 | { |
---|
9639 | return f != $ac_func; |
---|
9640 | ; |
---|
9641 | return 0; |
---|
9642 | } |
---|
9643 | _ACEOF |
---|
9644 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
9645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
9646 | (eval $ac_link) 2>conftest.er1 |
---|
9647 | ac_status=$? |
---|
9648 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
9649 | rm -f conftest.er1 |
---|
9650 | cat conftest.err >&5 |
---|
9651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9652 | (exit $ac_status); } && |
---|
9653 | { ac_try='test -z "$ac_c_werror_flag" |
---|
9654 | || test ! -s conftest.err' |
---|
9655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9656 | (eval $ac_try) 2>&5 |
---|
9657 | ac_status=$? |
---|
9658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9659 | (exit $ac_status); }; } && |
---|
9660 | { ac_try='test -s conftest$ac_exeext' |
---|
9661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
9662 | (eval $ac_try) 2>&5 |
---|
9663 | ac_status=$? |
---|
9664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
9665 | (exit $ac_status); }; }; then |
---|
9666 | eval "$as_ac_var=yes" |
---|
9667 | else |
---|
9668 | echo "$as_me: failed program was:" >&5 |
---|
9669 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
9670 | |
---|
9671 | eval "$as_ac_var=no" |
---|
9672 | fi |
---|
9673 | rm -f conftest.err conftest.$ac_objext \ |
---|
9674 | conftest$ac_exeext conftest.$ac_ext |
---|
9675 | fi |
---|
9676 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
9677 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
9678 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
9679 | cat >>confdefs.h <<_ACEOF |
---|
9680 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
9681 | _ACEOF |
---|
9682 | |
---|
9683 | fi |
---|
9684 | done |
---|
9685 | |
---|
9686 | |
---|
9687 | ###################### |
---|
9688 | ## OUTPUT CONFIGURE ## |
---|
9689 | ###################### |
---|
9690 | ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/tinyxml/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile" |
---|
9691 | |
---|
9692 | |
---|
9693 | cat >confcache <<\_ACEOF |
---|
9694 | # This file is a shell script that caches the results of configure |
---|
9695 | # tests run on this system so they can be shared between configure |
---|
9696 | # scripts and configure runs, see configure's option --config-cache. |
---|
9697 | # It is not useful on other systems. If it contains results you don't |
---|
9698 | # want to keep, you may remove or edit it. |
---|
9699 | # |
---|
9700 | # config.status only pays attention to the cache file if you give it |
---|
9701 | # the --recheck option to rerun configure. |
---|
9702 | # |
---|
9703 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
9704 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
9705 | # following values. |
---|
9706 | |
---|
9707 | _ACEOF |
---|
9708 | |
---|
9709 | # The following way of writing the cache mishandles newlines in values, |
---|
9710 | # but we know of no workaround that is simple, portable, and efficient. |
---|
9711 | # So, don't put newlines in cache variables' values. |
---|
9712 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
9713 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
9714 | { |
---|
9715 | (set) 2>&1 | |
---|
9716 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
9717 | *ac_space=\ *) |
---|
9718 | # `set' does not quote correctly, so add quotes (double-quote |
---|
9719 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
9720 | sed -n \ |
---|
9721 | "s/'/'\\\\''/g; |
---|
9722 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
9723 | ;; |
---|
9724 | *) |
---|
9725 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
9726 | sed -n \ |
---|
9727 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
9728 | ;; |
---|
9729 | esac; |
---|
9730 | } | |
---|
9731 | sed ' |
---|
9732 | t clear |
---|
9733 | : clear |
---|
9734 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
9735 | t end |
---|
9736 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
9737 | : end' >>confcache |
---|
9738 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
9739 | if test -w $cache_file; then |
---|
9740 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
9741 | cat confcache >$cache_file |
---|
9742 | else |
---|
9743 | echo "not updating unwritable cache $cache_file" |
---|
9744 | fi |
---|
9745 | fi |
---|
9746 | rm -f confcache |
---|
9747 | |
---|
9748 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
9749 | # Let make expand exec_prefix. |
---|
9750 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
9751 | |
---|
9752 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
9753 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
9754 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
9755 | # (actually we leave an empty line to preserve line numbers). |
---|
9756 | if test "x$srcdir" = x.; then |
---|
9757 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
9758 | s/:*\$(srcdir):*/:/; |
---|
9759 | s/:*\${srcdir}:*/:/; |
---|
9760 | s/:*@srcdir@:*/:/; |
---|
9761 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
9762 | s/:*$//; |
---|
9763 | s/^[^=]*=[ ]*$//; |
---|
9764 | }' |
---|
9765 | fi |
---|
9766 | |
---|
9767 | DEFS=-DHAVE_CONFIG_H |
---|
9768 | |
---|
9769 | ac_libobjs= |
---|
9770 | ac_ltlibobjs= |
---|
9771 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
9772 | # 1. Remove the extension, and $U if already installed. |
---|
9773 | ac_i=`echo "$ac_i" | |
---|
9774 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
9775 | # 2. Add them. |
---|
9776 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
9777 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
9778 | done |
---|
9779 | LIBOBJS=$ac_libobjs |
---|
9780 | |
---|
9781 | LTLIBOBJS=$ac_ltlibobjs |
---|
9782 | |
---|
9783 | |
---|
9784 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
9785 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
9786 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9787 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
9788 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9789 | { (exit 1); exit 1; }; } |
---|
9790 | fi |
---|
9791 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
9792 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
9793 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9794 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
9795 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9796 | { (exit 1); exit 1; }; } |
---|
9797 | fi |
---|
9798 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
9799 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
9800 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9801 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
9802 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9803 | { (exit 1); exit 1; }; } |
---|
9804 | fi |
---|
9805 | if test -z "${SUB_PROJECTS_TRUE}" && test -z "${SUB_PROJECTS_FALSE}"; then |
---|
9806 | { { echo "$as_me:$LINENO: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
9807 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9808 | echo "$as_me: error: conditional \"SUB_PROJECTS\" was never defined. |
---|
9809 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9810 | { (exit 1); exit 1; }; } |
---|
9811 | fi |
---|
9812 | if test -z "${DOCUMENTATION_TRUE}" && test -z "${DOCUMENTATION_FALSE}"; then |
---|
9813 | { { echo "$as_me:$LINENO: error: conditional \"DOCUMENTATION\" was never defined. |
---|
9814 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9815 | echo "$as_me: error: conditional \"DOCUMENTATION\" was never defined. |
---|
9816 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9817 | { (exit 1); exit 1; }; } |
---|
9818 | fi |
---|
9819 | if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then |
---|
9820 | { { echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined. |
---|
9821 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9822 | echo "$as_me: error: conditional \"DOXYGEN\" was never defined. |
---|
9823 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9824 | { (exit 1); exit 1; }; } |
---|
9825 | fi |
---|
9826 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
9827 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
9828 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9829 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
9830 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9831 | { (exit 1); exit 1; }; } |
---|
9832 | fi |
---|
9833 | if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then |
---|
9834 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CURL\" was never defined. |
---|
9835 | Usually this means the macro was only invoked conditionally." >&5 |
---|
9836 | echo "$as_me: error: conditional \"HAVE_CURL\" was never defined. |
---|
9837 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
9838 | { (exit 1); exit 1; }; } |
---|
9839 | fi |
---|
9840 | |
---|
9841 | : ${CONFIG_STATUS=./config.status} |
---|
9842 | ac_clean_files_save=$ac_clean_files |
---|
9843 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
9844 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
9845 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
9846 | cat >$CONFIG_STATUS <<_ACEOF |
---|
9847 | #! $SHELL |
---|
9848 | # Generated by $as_me. |
---|
9849 | # Run this file to recreate the current configuration. |
---|
9850 | # Compiler output produced by configure, useful for debugging |
---|
9851 | # configure, is in config.log if it exists. |
---|
9852 | |
---|
9853 | debug=false |
---|
9854 | ac_cs_recheck=false |
---|
9855 | ac_cs_silent=false |
---|
9856 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
9857 | _ACEOF |
---|
9858 | |
---|
9859 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
9860 | ## --------------------- ## |
---|
9861 | ## M4sh Initialization. ## |
---|
9862 | ## --------------------- ## |
---|
9863 | |
---|
9864 | # Be Bourne compatible |
---|
9865 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
9866 | emulate sh |
---|
9867 | NULLCMD=: |
---|
9868 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
9869 | # is contrary to our usage. Disable this feature. |
---|
9870 | alias -g '${1+"$@"}'='"$@"' |
---|
9871 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
9872 | set -o posix |
---|
9873 | fi |
---|
9874 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
9875 | |
---|
9876 | # Support unset when possible. |
---|
9877 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
9878 | as_unset=unset |
---|
9879 | else |
---|
9880 | as_unset=false |
---|
9881 | fi |
---|
9882 | |
---|
9883 | |
---|
9884 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
9885 | $as_unset ENV MAIL MAILPATH |
---|
9886 | PS1='$ ' |
---|
9887 | PS2='> ' |
---|
9888 | PS4='+ ' |
---|
9889 | |
---|
9890 | # NLS nuisances. |
---|
9891 | for as_var in \ |
---|
9892 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
9893 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
9894 | LC_TELEPHONE LC_TIME |
---|
9895 | do |
---|
9896 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
9897 | eval $as_var=C; export $as_var |
---|
9898 | else |
---|
9899 | $as_unset $as_var |
---|
9900 | fi |
---|
9901 | done |
---|
9902 | |
---|
9903 | # Required to use basename. |
---|
9904 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
9905 | as_expr=expr |
---|
9906 | else |
---|
9907 | as_expr=false |
---|
9908 | fi |
---|
9909 | |
---|
9910 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
9911 | as_basename=basename |
---|
9912 | else |
---|
9913 | as_basename=false |
---|
9914 | fi |
---|
9915 | |
---|
9916 | |
---|
9917 | # Name of the executable. |
---|
9918 | as_me=`$as_basename "$0" || |
---|
9919 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
9920 | X"$0" : 'X\(//\)$' \| \ |
---|
9921 | X"$0" : 'X\(/\)$' \| \ |
---|
9922 | . : '\(.\)' 2>/dev/null || |
---|
9923 | echo X/"$0" | |
---|
9924 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
9925 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
9926 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
9927 | s/.*/./; q'` |
---|
9928 | |
---|
9929 | |
---|
9930 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
9931 | # Avoid depending upon Character Ranges. |
---|
9932 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
9933 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
9934 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
9935 | as_cr_digits='0123456789' |
---|
9936 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
9937 | |
---|
9938 | # The user is always right. |
---|
9939 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
9940 | echo "#! /bin/sh" >conf$$.sh |
---|
9941 | echo "exit 0" >>conf$$.sh |
---|
9942 | chmod +x conf$$.sh |
---|
9943 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
9944 | PATH_SEPARATOR=';' |
---|
9945 | else |
---|
9946 | PATH_SEPARATOR=: |
---|
9947 | fi |
---|
9948 | rm -f conf$$.sh |
---|
9949 | fi |
---|
9950 | |
---|
9951 | |
---|
9952 | as_lineno_1=$LINENO |
---|
9953 | as_lineno_2=$LINENO |
---|
9954 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
9955 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
9956 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
9957 | # Find who we are. Look in the path if we contain no path at all |
---|
9958 | # relative or not. |
---|
9959 | case $0 in |
---|
9960 | *[\\/]* ) as_myself=$0 ;; |
---|
9961 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9962 | for as_dir in $PATH |
---|
9963 | do |
---|
9964 | IFS=$as_save_IFS |
---|
9965 | test -z "$as_dir" && as_dir=. |
---|
9966 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
9967 | done |
---|
9968 | |
---|
9969 | ;; |
---|
9970 | esac |
---|
9971 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
9972 | # in which case we are not to be found in the path. |
---|
9973 | if test "x$as_myself" = x; then |
---|
9974 | as_myself=$0 |
---|
9975 | fi |
---|
9976 | if test ! -f "$as_myself"; then |
---|
9977 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
9978 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
9979 | { (exit 1); exit 1; }; } |
---|
9980 | fi |
---|
9981 | case $CONFIG_SHELL in |
---|
9982 | '') |
---|
9983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
9984 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
9985 | do |
---|
9986 | IFS=$as_save_IFS |
---|
9987 | test -z "$as_dir" && as_dir=. |
---|
9988 | for as_base in sh bash ksh sh5; do |
---|
9989 | case $as_dir in |
---|
9990 | /*) |
---|
9991 | if ("$as_dir/$as_base" -c ' |
---|
9992 | as_lineno_1=$LINENO |
---|
9993 | as_lineno_2=$LINENO |
---|
9994 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
9995 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
9996 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
9997 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
9998 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
9999 | CONFIG_SHELL=$as_dir/$as_base |
---|
10000 | export CONFIG_SHELL |
---|
10001 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
10002 | fi;; |
---|
10003 | esac |
---|
10004 | done |
---|
10005 | done |
---|
10006 | ;; |
---|
10007 | esac |
---|
10008 | |
---|
10009 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
10010 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
10011 | # line-number line before each line; the second 'sed' does the real |
---|
10012 | # work. The second script uses 'N' to pair each line-number line |
---|
10013 | # with the numbered line, and appends trailing '-' during |
---|
10014 | # substitution so that $LINENO is not a special case at line end. |
---|
10015 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
10016 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
10017 | sed '=' <$as_myself | |
---|
10018 | sed ' |
---|
10019 | N |
---|
10020 | s,$,-, |
---|
10021 | : loop |
---|
10022 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
10023 | t loop |
---|
10024 | s,-$,, |
---|
10025 | s,^['$as_cr_digits']*\n,, |
---|
10026 | ' >$as_me.lineno && |
---|
10027 | chmod +x $as_me.lineno || |
---|
10028 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
10029 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
10030 | { (exit 1); exit 1; }; } |
---|
10031 | |
---|
10032 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
10033 | # (the dirname of $[0] is not the place where we might find the |
---|
10034 | # original and so on. Autoconf is especially sensible to this). |
---|
10035 | . ./$as_me.lineno |
---|
10036 | # Exit status is that of the last command. |
---|
10037 | exit |
---|
10038 | } |
---|
10039 | |
---|
10040 | |
---|
10041 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
10042 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
10043 | ' ECHO_T=' ' ;; |
---|
10044 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
10045 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
10046 | esac |
---|
10047 | |
---|
10048 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
10049 | as_expr=expr |
---|
10050 | else |
---|
10051 | as_expr=false |
---|
10052 | fi |
---|
10053 | |
---|
10054 | rm -f conf$$ conf$$.exe conf$$.file |
---|
10055 | echo >conf$$.file |
---|
10056 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
10057 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
10058 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
10059 | if test -f conf$$.exe; then |
---|
10060 | # Don't use ln at all; we don't have any links |
---|
10061 | as_ln_s='cp -p' |
---|
10062 | else |
---|
10063 | as_ln_s='ln -s' |
---|
10064 | fi |
---|
10065 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
10066 | as_ln_s=ln |
---|
10067 | else |
---|
10068 | as_ln_s='cp -p' |
---|
10069 | fi |
---|
10070 | rm -f conf$$ conf$$.exe conf$$.file |
---|
10071 | |
---|
10072 | if mkdir -p . 2>/dev/null; then |
---|
10073 | as_mkdir_p=: |
---|
10074 | else |
---|
10075 | test -d ./-p && rmdir ./-p |
---|
10076 | as_mkdir_p=false |
---|
10077 | fi |
---|
10078 | |
---|
10079 | as_executable_p="test -f" |
---|
10080 | |
---|
10081 | # Sed expression to map a string onto a valid CPP name. |
---|
10082 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
10083 | |
---|
10084 | # Sed expression to map a string onto a valid variable name. |
---|
10085 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
10086 | |
---|
10087 | |
---|
10088 | # IFS |
---|
10089 | # We need space, tab and new line, in precisely that order. |
---|
10090 | as_nl=' |
---|
10091 | ' |
---|
10092 | IFS=" $as_nl" |
---|
10093 | |
---|
10094 | # CDPATH. |
---|
10095 | $as_unset CDPATH |
---|
10096 | |
---|
10097 | exec 6>&1 |
---|
10098 | |
---|
10099 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
10100 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
10101 | # values after options handling. Logging --version etc. is OK. |
---|
10102 | exec 5>>config.log |
---|
10103 | { |
---|
10104 | echo |
---|
10105 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
10106 | ## Running $as_me. ## |
---|
10107 | _ASBOX |
---|
10108 | } >&5 |
---|
10109 | cat >&5 <<_CSEOF |
---|
10110 | |
---|
10111 | This file was extended by orxonox $as_me 0.3.1_alpha, which was |
---|
10112 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
10113 | |
---|
10114 | CONFIG_FILES = $CONFIG_FILES |
---|
10115 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
10116 | CONFIG_LINKS = $CONFIG_LINKS |
---|
10117 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
10118 | $ $0 $@ |
---|
10119 | |
---|
10120 | _CSEOF |
---|
10121 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
10122 | echo >&5 |
---|
10123 | _ACEOF |
---|
10124 | |
---|
10125 | # Files that config.status was made for. |
---|
10126 | if test -n "$ac_config_files"; then |
---|
10127 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
10128 | fi |
---|
10129 | |
---|
10130 | if test -n "$ac_config_headers"; then |
---|
10131 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
10132 | fi |
---|
10133 | |
---|
10134 | if test -n "$ac_config_links"; then |
---|
10135 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
10136 | fi |
---|
10137 | |
---|
10138 | if test -n "$ac_config_commands"; then |
---|
10139 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
10140 | fi |
---|
10141 | |
---|
10142 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10143 | |
---|
10144 | ac_cs_usage="\ |
---|
10145 | \`$as_me' instantiates files from templates according to the |
---|
10146 | current configuration. |
---|
10147 | |
---|
10148 | Usage: $0 [OPTIONS] [FILE]... |
---|
10149 | |
---|
10150 | -h, --help print this help, then exit |
---|
10151 | -V, --version print version number, then exit |
---|
10152 | -q, --quiet do not print progress messages |
---|
10153 | -d, --debug don't remove temporary files |
---|
10154 | --recheck update $as_me by reconfiguring in the same conditions |
---|
10155 | --file=FILE[:TEMPLATE] |
---|
10156 | instantiate the configuration file FILE |
---|
10157 | --header=FILE[:TEMPLATE] |
---|
10158 | instantiate the configuration header FILE |
---|
10159 | |
---|
10160 | Configuration files: |
---|
10161 | $config_files |
---|
10162 | |
---|
10163 | Configuration headers: |
---|
10164 | $config_headers |
---|
10165 | |
---|
10166 | Configuration commands: |
---|
10167 | $config_commands |
---|
10168 | |
---|
10169 | Report bugs to <bug-autoconf@gnu.org>." |
---|
10170 | _ACEOF |
---|
10171 | |
---|
10172 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10173 | ac_cs_version="\\ |
---|
10174 | orxonox config.status 0.3.1_alpha |
---|
10175 | configured by $0, generated by GNU Autoconf 2.59, |
---|
10176 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
10177 | |
---|
10178 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
10179 | This config.status script is free software; the Free Software Foundation |
---|
10180 | gives unlimited permission to copy, distribute and modify it." |
---|
10181 | srcdir=$srcdir |
---|
10182 | INSTALL="$INSTALL" |
---|
10183 | _ACEOF |
---|
10184 | |
---|
10185 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10186 | # If no file are specified by the user, then we need to provide default |
---|
10187 | # value. By we need to know if files were specified by the user. |
---|
10188 | ac_need_defaults=: |
---|
10189 | while test $# != 0 |
---|
10190 | do |
---|
10191 | case $1 in |
---|
10192 | --*=*) |
---|
10193 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
10194 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
10195 | ac_shift=: |
---|
10196 | ;; |
---|
10197 | -*) |
---|
10198 | ac_option=$1 |
---|
10199 | ac_optarg=$2 |
---|
10200 | ac_shift=shift |
---|
10201 | ;; |
---|
10202 | *) # This is not an option, so the user has probably given explicit |
---|
10203 | # arguments. |
---|
10204 | ac_option=$1 |
---|
10205 | ac_need_defaults=false;; |
---|
10206 | esac |
---|
10207 | |
---|
10208 | case $ac_option in |
---|
10209 | # Handling of the options. |
---|
10210 | _ACEOF |
---|
10211 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10212 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
10213 | ac_cs_recheck=: ;; |
---|
10214 | --version | --vers* | -V ) |
---|
10215 | echo "$ac_cs_version"; exit 0 ;; |
---|
10216 | --he | --h) |
---|
10217 | # Conflict between --help and --header |
---|
10218 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
10219 | Try \`$0 --help' for more information." >&5 |
---|
10220 | echo "$as_me: error: ambiguous option: $1 |
---|
10221 | Try \`$0 --help' for more information." >&2;} |
---|
10222 | { (exit 1); exit 1; }; };; |
---|
10223 | --help | --hel | -h ) |
---|
10224 | echo "$ac_cs_usage"; exit 0 ;; |
---|
10225 | --debug | --d* | -d ) |
---|
10226 | debug=: ;; |
---|
10227 | --file | --fil | --fi | --f ) |
---|
10228 | $ac_shift |
---|
10229 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
10230 | ac_need_defaults=false;; |
---|
10231 | --header | --heade | --head | --hea ) |
---|
10232 | $ac_shift |
---|
10233 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
10234 | ac_need_defaults=false;; |
---|
10235 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
10236 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
10237 | ac_cs_silent=: ;; |
---|
10238 | |
---|
10239 | # This is an error. |
---|
10240 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
10241 | Try \`$0 --help' for more information." >&5 |
---|
10242 | echo "$as_me: error: unrecognized option: $1 |
---|
10243 | Try \`$0 --help' for more information." >&2;} |
---|
10244 | { (exit 1); exit 1; }; } ;; |
---|
10245 | |
---|
10246 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
10247 | |
---|
10248 | esac |
---|
10249 | shift |
---|
10250 | done |
---|
10251 | |
---|
10252 | ac_configure_extra_args= |
---|
10253 | |
---|
10254 | if $ac_cs_silent; then |
---|
10255 | exec 6>/dev/null |
---|
10256 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
10257 | fi |
---|
10258 | |
---|
10259 | _ACEOF |
---|
10260 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10261 | if \$ac_cs_recheck; then |
---|
10262 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
10263 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
10264 | fi |
---|
10265 | |
---|
10266 | _ACEOF |
---|
10267 | |
---|
10268 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10269 | # |
---|
10270 | # INIT-COMMANDS section. |
---|
10271 | # |
---|
10272 | |
---|
10273 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
10274 | |
---|
10275 | _ACEOF |
---|
10276 | |
---|
10277 | |
---|
10278 | |
---|
10279 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10280 | for ac_config_target in $ac_config_targets |
---|
10281 | do |
---|
10282 | case "$ac_config_target" in |
---|
10283 | # Handling of arguments. |
---|
10284 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
10285 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
10286 | "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;; |
---|
10287 | "src/lib/graphics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/Makefile" ;; |
---|
10288 | "src/lib/graphics/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/importer/Makefile" ;; |
---|
10289 | "src/lib/graphics/spatial_separation/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/graphics/spatial_separation/Makefile" ;; |
---|
10290 | "src/lib/sound/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/sound/Makefile" ;; |
---|
10291 | "src/lib/event/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/event/Makefile" ;; |
---|
10292 | "src/lib/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/physics/Makefile" ;; |
---|
10293 | "src/lib/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/particles/Makefile" ;; |
---|
10294 | "src/lib/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/collision_detection/Makefile" ;; |
---|
10295 | "src/lib/shell/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/shell/Makefile" ;; |
---|
10296 | "src/lib/gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/gui/Makefile" ;; |
---|
10297 | "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;; |
---|
10298 | "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; |
---|
10299 | "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; |
---|
10300 | "src/subprojects/importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/importer/Makefile" ;; |
---|
10301 | "src/subprojects/particles/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/particles/Makefile" ;; |
---|
10302 | "src/subprojects/collision_detection/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/collision_detection/Makefile" ;; |
---|
10303 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
10304 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
10305 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
10306 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
10307 | { (exit 1); exit 1; }; };; |
---|
10308 | esac |
---|
10309 | done |
---|
10310 | |
---|
10311 | # If the user did not use the arguments to specify the items to instantiate, |
---|
10312 | # then the envvar interface is used. Set only those that are not. |
---|
10313 | # We use the long form for the default assignment because of an extremely |
---|
10314 | # bizarre bug on SunOS 4.1.3. |
---|
10315 | if $ac_need_defaults; then |
---|
10316 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
10317 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
10318 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
10319 | fi |
---|
10320 | |
---|
10321 | # Have a temporary directory for convenience. Make it in the build tree |
---|
10322 | # simply because there is no reason to put it here, and in addition, |
---|
10323 | # creating and moving files from /tmp can sometimes cause problems. |
---|
10324 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
10325 | $debug || |
---|
10326 | { |
---|
10327 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
10328 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
10329 | } |
---|
10330 | |
---|
10331 | # Create a (secure) tmp directory for tmp files. |
---|
10332 | |
---|
10333 | { |
---|
10334 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
10335 | test -n "$tmp" && test -d "$tmp" |
---|
10336 | } || |
---|
10337 | { |
---|
10338 | tmp=./confstat$$-$RANDOM |
---|
10339 | (umask 077 && mkdir $tmp) |
---|
10340 | } || |
---|
10341 | { |
---|
10342 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
10343 | { (exit 1); exit 1; } |
---|
10344 | } |
---|
10345 | |
---|
10346 | _ACEOF |
---|
10347 | |
---|
10348 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10349 | |
---|
10350 | # |
---|
10351 | # CONFIG_FILES section. |
---|
10352 | # |
---|
10353 | |
---|
10354 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
10355 | # This happens for instance when ./config.status config.h |
---|
10356 | if test -n "\$CONFIG_FILES"; then |
---|
10357 | # Protect against being on the right side of a sed subst in config.status. |
---|
10358 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
10359 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
10360 | s,@SHELL@,$SHELL,;t t |
---|
10361 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
10362 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
10363 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
10364 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
10365 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
10366 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
10367 | s,@exec_prefix@,$exec_prefix,;t t |
---|
10368 | s,@prefix@,$prefix,;t t |
---|
10369 | s,@program_transform_name@,$program_transform_name,;t t |
---|
10370 | s,@bindir@,$bindir,;t t |
---|
10371 | s,@sbindir@,$sbindir,;t t |
---|
10372 | s,@libexecdir@,$libexecdir,;t t |
---|
10373 | s,@datadir@,$datadir,;t t |
---|
10374 | s,@sysconfdir@,$sysconfdir,;t t |
---|
10375 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
10376 | s,@localstatedir@,$localstatedir,;t t |
---|
10377 | s,@libdir@,$libdir,;t t |
---|
10378 | s,@includedir@,$includedir,;t t |
---|
10379 | s,@oldincludedir@,$oldincludedir,;t t |
---|
10380 | s,@infodir@,$infodir,;t t |
---|
10381 | s,@mandir@,$mandir,;t t |
---|
10382 | s,@build_alias@,$build_alias,;t t |
---|
10383 | s,@host_alias@,$host_alias,;t t |
---|
10384 | s,@target_alias@,$target_alias,;t t |
---|
10385 | s,@DEFS@,$DEFS,;t t |
---|
10386 | s,@ECHO_C@,$ECHO_C,;t t |
---|
10387 | s,@ECHO_N@,$ECHO_N,;t t |
---|
10388 | s,@ECHO_T@,$ECHO_T,;t t |
---|
10389 | s,@LIBS@,$LIBS,;t t |
---|
10390 | s,@build@,$build,;t t |
---|
10391 | s,@build_cpu@,$build_cpu,;t t |
---|
10392 | s,@build_vendor@,$build_vendor,;t t |
---|
10393 | s,@build_os@,$build_os,;t t |
---|
10394 | s,@host@,$host,;t t |
---|
10395 | s,@host_cpu@,$host_cpu,;t t |
---|
10396 | s,@host_vendor@,$host_vendor,;t t |
---|
10397 | s,@host_os@,$host_os,;t t |
---|
10398 | s,@target@,$target,;t t |
---|
10399 | s,@target_cpu@,$target_cpu,;t t |
---|
10400 | s,@target_vendor@,$target_vendor,;t t |
---|
10401 | s,@target_os@,$target_os,;t t |
---|
10402 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
10403 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
10404 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
10405 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
10406 | s,@PACKAGE@,$PACKAGE,;t t |
---|
10407 | s,@VERSION@,$VERSION,;t t |
---|
10408 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
10409 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
10410 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
10411 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
10412 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
10413 | s,@AMTAR@,$AMTAR,;t t |
---|
10414 | s,@install_sh@,$install_sh,;t t |
---|
10415 | s,@STRIP@,$STRIP,;t t |
---|
10416 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
10417 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
10418 | s,@mkdir_p@,$mkdir_p,;t t |
---|
10419 | s,@AWK@,$AWK,;t t |
---|
10420 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
10421 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
10422 | s,@CXX@,$CXX,;t t |
---|
10423 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
10424 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
10425 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
10426 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
10427 | s,@EXEEXT@,$EXEEXT,;t t |
---|
10428 | s,@OBJEXT@,$OBJEXT,;t t |
---|
10429 | s,@DEPDIR@,$DEPDIR,;t t |
---|
10430 | s,@am__include@,$am__include,;t t |
---|
10431 | s,@am__quote@,$am__quote,;t t |
---|
10432 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
10433 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
10434 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
10435 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
10436 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
10437 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
10438 | s,@RANLIB@,$RANLIB,;t t |
---|
10439 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
10440 | s,@CC@,$CC,;t t |
---|
10441 | s,@CFLAGS@,$CFLAGS,;t t |
---|
10442 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
10443 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
10444 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
10445 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
10446 | s,@CPP@,$CPP,;t t |
---|
10447 | s,@EGREP@,$EGREP,;t t |
---|
10448 | s,@DEBUG@,$DEBUG,;t t |
---|
10449 | s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t |
---|
10450 | s,@SUB_PROJECTS_FALSE@,$SUB_PROJECTS_FALSE,;t t |
---|
10451 | s,@DOCUMENTATION_TRUE@,$DOCUMENTATION_TRUE,;t t |
---|
10452 | s,@DOCUMENTATION_FALSE@,$DOCUMENTATION_FALSE,;t t |
---|
10453 | s,@DOXYGEN@,$DOXYGEN,;t t |
---|
10454 | s,@DOXYGEN_TRUE@,$DOXYGEN_TRUE,;t t |
---|
10455 | s,@DOXYGEN_FALSE@,$DOXYGEN_FALSE,;t t |
---|
10456 | s,@GPROF@,$GPROF,;t t |
---|
10457 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
---|
10458 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
10459 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
10460 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
10461 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
10462 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
10463 | s,@CURL_LIBS@,$CURL_LIBS,;t t |
---|
10464 | s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t |
---|
10465 | s,@HAVE_CURL_TRUE@,$HAVE_CURL_TRUE,;t t |
---|
10466 | s,@HAVE_CURL_FALSE@,$HAVE_CURL_FALSE,;t t |
---|
10467 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
10468 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
10469 | CEOF |
---|
10470 | |
---|
10471 | _ACEOF |
---|
10472 | |
---|
10473 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10474 | # Split the substitutions into bite-sized pieces for seds with |
---|
10475 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
10476 | ac_max_sed_lines=48 |
---|
10477 | ac_sed_frag=1 # Number of current file. |
---|
10478 | ac_beg=1 # First line for current file. |
---|
10479 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
10480 | ac_more_lines=: |
---|
10481 | ac_sed_cmds= |
---|
10482 | while $ac_more_lines; do |
---|
10483 | if test $ac_beg -gt 1; then |
---|
10484 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
10485 | else |
---|
10486 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
10487 | fi |
---|
10488 | if test ! -s $tmp/subs.frag; then |
---|
10489 | ac_more_lines=false |
---|
10490 | else |
---|
10491 | # The purpose of the label and of the branching condition is to |
---|
10492 | # speed up the sed processing (if there are no `@' at all, there |
---|
10493 | # is no need to browse any of the substitutions). |
---|
10494 | # These are the two extra sed commands mentioned above. |
---|
10495 | (echo ':t |
---|
10496 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
10497 | if test -z "$ac_sed_cmds"; then |
---|
10498 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
10499 | else |
---|
10500 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
10501 | fi |
---|
10502 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
10503 | ac_beg=$ac_end |
---|
10504 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
10505 | fi |
---|
10506 | done |
---|
10507 | if test -z "$ac_sed_cmds"; then |
---|
10508 | ac_sed_cmds=cat |
---|
10509 | fi |
---|
10510 | fi # test -n "$CONFIG_FILES" |
---|
10511 | |
---|
10512 | _ACEOF |
---|
10513 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10514 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
10515 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
10516 | case $ac_file in |
---|
10517 | - | *:- | *:-:* ) # input from stdin |
---|
10518 | cat >$tmp/stdin |
---|
10519 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10520 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
10521 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10522 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
10523 | * ) ac_file_in=$ac_file.in ;; |
---|
10524 | esac |
---|
10525 | |
---|
10526 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
10527 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
10528 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10529 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
10530 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
10531 | X"$ac_file" : 'X\(/\)' \| \ |
---|
10532 | . : '\(.\)' 2>/dev/null || |
---|
10533 | echo X"$ac_file" | |
---|
10534 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10535 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10536 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10537 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10538 | s/.*/./; q'` |
---|
10539 | { if $as_mkdir_p; then |
---|
10540 | mkdir -p "$ac_dir" |
---|
10541 | else |
---|
10542 | as_dir="$ac_dir" |
---|
10543 | as_dirs= |
---|
10544 | while test ! -d "$as_dir"; do |
---|
10545 | as_dirs="$as_dir $as_dirs" |
---|
10546 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
10547 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10548 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
10549 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
10550 | X"$as_dir" : 'X\(/\)' \| \ |
---|
10551 | . : '\(.\)' 2>/dev/null || |
---|
10552 | echo X"$as_dir" | |
---|
10553 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10554 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10555 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10556 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10557 | s/.*/./; q'` |
---|
10558 | done |
---|
10559 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
10560 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
10561 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
10562 | { (exit 1); exit 1; }; }; } |
---|
10563 | |
---|
10564 | ac_builddir=. |
---|
10565 | |
---|
10566 | if test "$ac_dir" != .; then |
---|
10567 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
10568 | # A "../" for each directory in $ac_dir_suffix. |
---|
10569 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
10570 | else |
---|
10571 | ac_dir_suffix= ac_top_builddir= |
---|
10572 | fi |
---|
10573 | |
---|
10574 | case $srcdir in |
---|
10575 | .) # No --srcdir option. We are building in place. |
---|
10576 | ac_srcdir=. |
---|
10577 | if test -z "$ac_top_builddir"; then |
---|
10578 | ac_top_srcdir=. |
---|
10579 | else |
---|
10580 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
10581 | fi ;; |
---|
10582 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
10583 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
10584 | ac_top_srcdir=$srcdir ;; |
---|
10585 | *) # Relative path. |
---|
10586 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
10587 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
10588 | esac |
---|
10589 | |
---|
10590 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
10591 | # the directories may not exist. |
---|
10592 | case `pwd` in |
---|
10593 | .) ac_abs_builddir="$ac_dir";; |
---|
10594 | *) |
---|
10595 | case "$ac_dir" in |
---|
10596 | .) ac_abs_builddir=`pwd`;; |
---|
10597 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
10598 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
10599 | esac;; |
---|
10600 | esac |
---|
10601 | case $ac_abs_builddir in |
---|
10602 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
10603 | *) |
---|
10604 | case ${ac_top_builddir}. in |
---|
10605 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
10606 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
10607 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
10608 | esac;; |
---|
10609 | esac |
---|
10610 | case $ac_abs_builddir in |
---|
10611 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
10612 | *) |
---|
10613 | case $ac_srcdir in |
---|
10614 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
10615 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
10616 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
10617 | esac;; |
---|
10618 | esac |
---|
10619 | case $ac_abs_builddir in |
---|
10620 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
10621 | *) |
---|
10622 | case $ac_top_srcdir in |
---|
10623 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
10624 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
10625 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
10626 | esac;; |
---|
10627 | esac |
---|
10628 | |
---|
10629 | |
---|
10630 | case $INSTALL in |
---|
10631 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
10632 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
10633 | esac |
---|
10634 | |
---|
10635 | if test x"$ac_file" != x-; then |
---|
10636 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
10637 | echo "$as_me: creating $ac_file" >&6;} |
---|
10638 | rm -f "$ac_file" |
---|
10639 | fi |
---|
10640 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
10641 | # use $as_me), people would be surprised to read: |
---|
10642 | # /* config.h. Generated by config.status. */ |
---|
10643 | if test x"$ac_file" = x-; then |
---|
10644 | configure_input= |
---|
10645 | else |
---|
10646 | configure_input="$ac_file. " |
---|
10647 | fi |
---|
10648 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
10649 | sed 's,.*/,,'` by configure." |
---|
10650 | |
---|
10651 | # First look for the input files in the build tree, otherwise in the |
---|
10652 | # src tree. |
---|
10653 | ac_file_inputs=`IFS=: |
---|
10654 | for f in $ac_file_in; do |
---|
10655 | case $f in |
---|
10656 | -) echo $tmp/stdin ;; |
---|
10657 | [\\/$]*) |
---|
10658 | # Absolute (can't be DOS-style, as IFS=:) |
---|
10659 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
10660 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
10661 | { (exit 1); exit 1; }; } |
---|
10662 | echo "$f";; |
---|
10663 | *) # Relative |
---|
10664 | if test -f "$f"; then |
---|
10665 | # Build tree |
---|
10666 | echo "$f" |
---|
10667 | elif test -f "$srcdir/$f"; then |
---|
10668 | # Source tree |
---|
10669 | echo "$srcdir/$f" |
---|
10670 | else |
---|
10671 | # /dev/null tree |
---|
10672 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
10673 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
10674 | { (exit 1); exit 1; }; } |
---|
10675 | fi;; |
---|
10676 | esac |
---|
10677 | done` || { (exit 1); exit 1; } |
---|
10678 | _ACEOF |
---|
10679 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
10680 | sed "$ac_vpsub |
---|
10681 | $extrasub |
---|
10682 | _ACEOF |
---|
10683 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10684 | :t |
---|
10685 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
10686 | s,@configure_input@,$configure_input,;t t |
---|
10687 | s,@srcdir@,$ac_srcdir,;t t |
---|
10688 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
10689 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
10690 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
10691 | s,@builddir@,$ac_builddir,;t t |
---|
10692 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
10693 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
10694 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
10695 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
10696 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
10697 | rm -f $tmp/stdin |
---|
10698 | if test x"$ac_file" != x-; then |
---|
10699 | mv $tmp/out $ac_file |
---|
10700 | else |
---|
10701 | cat $tmp/out |
---|
10702 | rm -f $tmp/out |
---|
10703 | fi |
---|
10704 | |
---|
10705 | done |
---|
10706 | _ACEOF |
---|
10707 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10708 | |
---|
10709 | # |
---|
10710 | # CONFIG_HEADER section. |
---|
10711 | # |
---|
10712 | |
---|
10713 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
10714 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
10715 | # |
---|
10716 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
10717 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
10718 | ac_dB='[ ].*$,\1#\2' |
---|
10719 | ac_dC=' ' |
---|
10720 | ac_dD=',;t' |
---|
10721 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
10722 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
10723 | ac_uB='$,\1#\2define\3' |
---|
10724 | ac_uC=' ' |
---|
10725 | ac_uD=',;t' |
---|
10726 | |
---|
10727 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
10728 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
10729 | case $ac_file in |
---|
10730 | - | *:- | *:-:* ) # input from stdin |
---|
10731 | cat >$tmp/stdin |
---|
10732 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10733 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
10734 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10735 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
10736 | * ) ac_file_in=$ac_file.in ;; |
---|
10737 | esac |
---|
10738 | |
---|
10739 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
10740 | echo "$as_me: creating $ac_file" >&6;} |
---|
10741 | |
---|
10742 | # First look for the input files in the build tree, otherwise in the |
---|
10743 | # src tree. |
---|
10744 | ac_file_inputs=`IFS=: |
---|
10745 | for f in $ac_file_in; do |
---|
10746 | case $f in |
---|
10747 | -) echo $tmp/stdin ;; |
---|
10748 | [\\/$]*) |
---|
10749 | # Absolute (can't be DOS-style, as IFS=:) |
---|
10750 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
10751 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
10752 | { (exit 1); exit 1; }; } |
---|
10753 | # Do quote $f, to prevent DOS paths from being IFS'd. |
---|
10754 | echo "$f";; |
---|
10755 | *) # Relative |
---|
10756 | if test -f "$f"; then |
---|
10757 | # Build tree |
---|
10758 | echo "$f" |
---|
10759 | elif test -f "$srcdir/$f"; then |
---|
10760 | # Source tree |
---|
10761 | echo "$srcdir/$f" |
---|
10762 | else |
---|
10763 | # /dev/null tree |
---|
10764 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
10765 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
10766 | { (exit 1); exit 1; }; } |
---|
10767 | fi;; |
---|
10768 | esac |
---|
10769 | done` || { (exit 1); exit 1; } |
---|
10770 | # Remove the trailing spaces. |
---|
10771 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
10772 | |
---|
10773 | _ACEOF |
---|
10774 | |
---|
10775 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
10776 | # `conftest.undefs', that substitutes the proper values into |
---|
10777 | # config.h.in to produce config.h. The first handles `#define' |
---|
10778 | # templates, and the second `#undef' templates. |
---|
10779 | # And first: Protect against being on the right side of a sed subst in |
---|
10780 | # config.status. Protect against being in an unquoted here document |
---|
10781 | # in config.status. |
---|
10782 | rm -f conftest.defines conftest.undefs |
---|
10783 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
10784 | # Putting comments in sed scripts is not portable. |
---|
10785 | # |
---|
10786 | # `end' is used to avoid that the second main sed command (meant for |
---|
10787 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
10788 | # See the Autoconf documentation for `clear'. |
---|
10789 | cat >confdef2sed.sed <<\_ACEOF |
---|
10790 | s/[\\&,]/\\&/g |
---|
10791 | s,[\\$`],\\&,g |
---|
10792 | t clear |
---|
10793 | : clear |
---|
10794 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
10795 | t end |
---|
10796 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
10797 | : end |
---|
10798 | _ACEOF |
---|
10799 | # If some macros were called several times there might be several times |
---|
10800 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
10801 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
10802 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
10803 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
10804 | rm -f confdef2sed.sed |
---|
10805 | |
---|
10806 | # This sed command replaces #undef with comments. This is necessary, for |
---|
10807 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
10808 | # on some systems where configure will not decide to define it. |
---|
10809 | cat >>conftest.undefs <<\_ACEOF |
---|
10810 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
10811 | _ACEOF |
---|
10812 | |
---|
10813 | # Break up conftest.defines because some shells have a limit on the size |
---|
10814 | # of here documents, and old seds have small limits too (100 cmds). |
---|
10815 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
10816 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
10817 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
10818 | echo ' :' >>$CONFIG_STATUS |
---|
10819 | rm -f conftest.tail |
---|
10820 | while grep . conftest.defines >/dev/null |
---|
10821 | do |
---|
10822 | # Write a limited-size here document to $tmp/defines.sed. |
---|
10823 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
10824 | # Speed up: don't consider the non `#define' lines. |
---|
10825 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
10826 | # Work around the forget-to-reset-the-flag bug. |
---|
10827 | echo 't clr' >>$CONFIG_STATUS |
---|
10828 | echo ': clr' >>$CONFIG_STATUS |
---|
10829 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
10830 | echo 'CEOF |
---|
10831 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
10832 | rm -f $tmp/in |
---|
10833 | mv $tmp/out $tmp/in |
---|
10834 | ' >>$CONFIG_STATUS |
---|
10835 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
10836 | rm -f conftest.defines |
---|
10837 | mv conftest.tail conftest.defines |
---|
10838 | done |
---|
10839 | rm -f conftest.defines |
---|
10840 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
10841 | echo >>$CONFIG_STATUS |
---|
10842 | |
---|
10843 | # Break up conftest.undefs because some shells have a limit on the size |
---|
10844 | # of here documents, and old seds have small limits too (100 cmds). |
---|
10845 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
10846 | rm -f conftest.tail |
---|
10847 | while grep . conftest.undefs >/dev/null |
---|
10848 | do |
---|
10849 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
10850 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
10851 | # Speed up: don't consider the non `#undef' |
---|
10852 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
10853 | # Work around the forget-to-reset-the-flag bug. |
---|
10854 | echo 't clr' >>$CONFIG_STATUS |
---|
10855 | echo ': clr' >>$CONFIG_STATUS |
---|
10856 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
10857 | echo 'CEOF |
---|
10858 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
10859 | rm -f $tmp/in |
---|
10860 | mv $tmp/out $tmp/in |
---|
10861 | ' >>$CONFIG_STATUS |
---|
10862 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
10863 | rm -f conftest.undefs |
---|
10864 | mv conftest.tail conftest.undefs |
---|
10865 | done |
---|
10866 | rm -f conftest.undefs |
---|
10867 | |
---|
10868 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10869 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
10870 | # use $as_me), people would be surprised to read: |
---|
10871 | # /* config.h. Generated by config.status. */ |
---|
10872 | if test x"$ac_file" = x-; then |
---|
10873 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
10874 | else |
---|
10875 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
10876 | fi |
---|
10877 | cat $tmp/in >>$tmp/config.h |
---|
10878 | rm -f $tmp/in |
---|
10879 | if test x"$ac_file" != x-; then |
---|
10880 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
10881 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
10882 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
10883 | else |
---|
10884 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
10885 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10886 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
10887 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
10888 | X"$ac_file" : 'X\(/\)' \| \ |
---|
10889 | . : '\(.\)' 2>/dev/null || |
---|
10890 | echo X"$ac_file" | |
---|
10891 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10892 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10893 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10894 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10895 | s/.*/./; q'` |
---|
10896 | { if $as_mkdir_p; then |
---|
10897 | mkdir -p "$ac_dir" |
---|
10898 | else |
---|
10899 | as_dir="$ac_dir" |
---|
10900 | as_dirs= |
---|
10901 | while test ! -d "$as_dir"; do |
---|
10902 | as_dirs="$as_dir $as_dirs" |
---|
10903 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
10904 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10905 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
10906 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
10907 | X"$as_dir" : 'X\(/\)' \| \ |
---|
10908 | . : '\(.\)' 2>/dev/null || |
---|
10909 | echo X"$as_dir" | |
---|
10910 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10911 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10912 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10913 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10914 | s/.*/./; q'` |
---|
10915 | done |
---|
10916 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
10917 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
10918 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
10919 | { (exit 1); exit 1; }; }; } |
---|
10920 | |
---|
10921 | rm -f $ac_file |
---|
10922 | mv $tmp/config.h $ac_file |
---|
10923 | fi |
---|
10924 | else |
---|
10925 | cat $tmp/config.h |
---|
10926 | rm -f $tmp/config.h |
---|
10927 | fi |
---|
10928 | # Compute $ac_file's index in $config_headers. |
---|
10929 | _am_stamp_count=1 |
---|
10930 | for _am_header in $config_headers :; do |
---|
10931 | case $_am_header in |
---|
10932 | $ac_file | $ac_file:* ) |
---|
10933 | break ;; |
---|
10934 | * ) |
---|
10935 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
10936 | esac |
---|
10937 | done |
---|
10938 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
10939 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10940 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
10941 | X$ac_file : 'X\(//\)$' \| \ |
---|
10942 | X$ac_file : 'X\(/\)' \| \ |
---|
10943 | . : '\(.\)' 2>/dev/null || |
---|
10944 | echo X$ac_file | |
---|
10945 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10946 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10947 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10948 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10949 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
10950 | done |
---|
10951 | _ACEOF |
---|
10952 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
10953 | |
---|
10954 | # |
---|
10955 | # CONFIG_COMMANDS section. |
---|
10956 | # |
---|
10957 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
10958 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
10959 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
10960 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
10961 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10962 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
10963 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
10964 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
10965 | . : '\(.\)' 2>/dev/null || |
---|
10966 | echo X"$ac_dest" | |
---|
10967 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10968 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10969 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10970 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10971 | s/.*/./; q'` |
---|
10972 | { if $as_mkdir_p; then |
---|
10973 | mkdir -p "$ac_dir" |
---|
10974 | else |
---|
10975 | as_dir="$ac_dir" |
---|
10976 | as_dirs= |
---|
10977 | while test ! -d "$as_dir"; do |
---|
10978 | as_dirs="$as_dir $as_dirs" |
---|
10979 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
10980 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
10981 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
10982 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
10983 | X"$as_dir" : 'X\(/\)' \| \ |
---|
10984 | . : '\(.\)' 2>/dev/null || |
---|
10985 | echo X"$as_dir" | |
---|
10986 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
10987 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
10988 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
10989 | /^X\(\/\).*/{ s//\1/; q; } |
---|
10990 | s/.*/./; q'` |
---|
10991 | done |
---|
10992 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
10993 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
10994 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
10995 | { (exit 1); exit 1; }; }; } |
---|
10996 | |
---|
10997 | ac_builddir=. |
---|
10998 | |
---|
10999 | if test "$ac_dir" != .; then |
---|
11000 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
11001 | # A "../" for each directory in $ac_dir_suffix. |
---|
11002 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
11003 | else |
---|
11004 | ac_dir_suffix= ac_top_builddir= |
---|
11005 | fi |
---|
11006 | |
---|
11007 | case $srcdir in |
---|
11008 | .) # No --srcdir option. We are building in place. |
---|
11009 | ac_srcdir=. |
---|
11010 | if test -z "$ac_top_builddir"; then |
---|
11011 | ac_top_srcdir=. |
---|
11012 | else |
---|
11013 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
11014 | fi ;; |
---|
11015 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
11016 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
11017 | ac_top_srcdir=$srcdir ;; |
---|
11018 | *) # Relative path. |
---|
11019 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
11020 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
11021 | esac |
---|
11022 | |
---|
11023 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
11024 | # the directories may not exist. |
---|
11025 | case `pwd` in |
---|
11026 | .) ac_abs_builddir="$ac_dir";; |
---|
11027 | *) |
---|
11028 | case "$ac_dir" in |
---|
11029 | .) ac_abs_builddir=`pwd`;; |
---|
11030 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
11031 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
11032 | esac;; |
---|
11033 | esac |
---|
11034 | case $ac_abs_builddir in |
---|
11035 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
11036 | *) |
---|
11037 | case ${ac_top_builddir}. in |
---|
11038 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
11039 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
11040 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
11041 | esac;; |
---|
11042 | esac |
---|
11043 | case $ac_abs_builddir in |
---|
11044 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
11045 | *) |
---|
11046 | case $ac_srcdir in |
---|
11047 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
11048 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
11049 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
11050 | esac;; |
---|
11051 | esac |
---|
11052 | case $ac_abs_builddir in |
---|
11053 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
11054 | *) |
---|
11055 | case $ac_top_srcdir in |
---|
11056 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
11057 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
11058 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
11059 | esac;; |
---|
11060 | esac |
---|
11061 | |
---|
11062 | |
---|
11063 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
11064 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
11065 | case $ac_dest in |
---|
11066 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
11067 | # Strip MF so we end up with the name of the file. |
---|
11068 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
11069 | # Check whether this is an Automake generated Makefile or not. |
---|
11070 | # We used to match only the files named `Makefile.in', but |
---|
11071 | # some people rename them; so instead we look at the file content. |
---|
11072 | # Grep'ing the first line is not enough: some people post-process |
---|
11073 | # each Makefile.in and add a new line on top of each file to say so. |
---|
11074 | # So let's grep whole file. |
---|
11075 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
11076 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
11077 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11078 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
11079 | X"$mf" : 'X\(//\)$' \| \ |
---|
11080 | X"$mf" : 'X\(/\)' \| \ |
---|
11081 | . : '\(.\)' 2>/dev/null || |
---|
11082 | echo X"$mf" | |
---|
11083 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11084 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11085 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11086 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11087 | s/.*/./; q'` |
---|
11088 | else |
---|
11089 | continue |
---|
11090 | fi |
---|
11091 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
11092 | # Extract the definition of DEP_FILES from the Makefile without |
---|
11093 | # running `make'. |
---|
11094 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
11095 | test -z "$DEPDIR" && continue |
---|
11096 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
11097 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
11098 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
11099 | # We invoke sed twice because it is the simplest approach to |
---|
11100 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
11101 | for file in `sed -n ' |
---|
11102 | /^DEP_FILES = .*\\\\$/ { |
---|
11103 | s/^DEP_FILES = // |
---|
11104 | :loop |
---|
11105 | s/\\\\$// |
---|
11106 | p |
---|
11107 | n |
---|
11108 | /\\\\$/ b loop |
---|
11109 | p |
---|
11110 | } |
---|
11111 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
11112 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
11113 | # Make sure the directory exists. |
---|
11114 | test -f "$dirpart/$file" && continue |
---|
11115 | fdir=`(dirname "$file") 2>/dev/null || |
---|
11116 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11117 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
11118 | X"$file" : 'X\(//\)$' \| \ |
---|
11119 | X"$file" : 'X\(/\)' \| \ |
---|
11120 | . : '\(.\)' 2>/dev/null || |
---|
11121 | echo X"$file" | |
---|
11122 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11123 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11124 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11125 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11126 | s/.*/./; q'` |
---|
11127 | { if $as_mkdir_p; then |
---|
11128 | mkdir -p $dirpart/$fdir |
---|
11129 | else |
---|
11130 | as_dir=$dirpart/$fdir |
---|
11131 | as_dirs= |
---|
11132 | while test ! -d "$as_dir"; do |
---|
11133 | as_dirs="$as_dir $as_dirs" |
---|
11134 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
11135 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
11136 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
11137 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
11138 | X"$as_dir" : 'X\(/\)' \| \ |
---|
11139 | . : '\(.\)' 2>/dev/null || |
---|
11140 | echo X"$as_dir" | |
---|
11141 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
11142 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
11143 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
11144 | /^X\(\/\).*/{ s//\1/; q; } |
---|
11145 | s/.*/./; q'` |
---|
11146 | done |
---|
11147 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
11148 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
11149 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
11150 | { (exit 1); exit 1; }; }; } |
---|
11151 | |
---|
11152 | # echo "creating $dirpart/$file" |
---|
11153 | echo '# dummy' > "$dirpart/$file" |
---|
11154 | done |
---|
11155 | done |
---|
11156 | ;; |
---|
11157 | esac |
---|
11158 | done |
---|
11159 | _ACEOF |
---|
11160 | |
---|
11161 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
11162 | |
---|
11163 | { (exit 0); exit 0; } |
---|
11164 | _ACEOF |
---|
11165 | chmod +x $CONFIG_STATUS |
---|
11166 | ac_clean_files=$ac_clean_files_save |
---|
11167 | |
---|
11168 | |
---|
11169 | # configure is writing to config.log, and then calls config.status. |
---|
11170 | # config.status does its own redirection, appending to config.log. |
---|
11171 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
11172 | # by configure, so config.status won't be able to write to it; its |
---|
11173 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
11174 | # effectively closing config.log, so it can be properly (re)opened and |
---|
11175 | # appended to by config.status. When coming back to configure, we |
---|
11176 | # need to make the FD available again. |
---|
11177 | if test "$no_create" != yes; then |
---|
11178 | ac_cs_success=: |
---|
11179 | ac_config_status_args= |
---|
11180 | test "$silent" = yes && |
---|
11181 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
11182 | exec 5>/dev/null |
---|
11183 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
11184 | exec 5>>config.log |
---|
11185 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
11186 | # would make configure fail if this is the last instruction. |
---|
11187 | $ac_cs_success || { (exit 1); exit 1; } |
---|
11188 | fi |
---|
11189 | |
---|