1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.57 for orxonox 0.1-pre-alpha. |
---|
4 | # |
---|
5 | # Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
6 | # |
---|
7 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
8 | # Free Software Foundation, Inc. |
---|
9 | # This configure script is free software; the Free Software Foundation |
---|
10 | # gives unlimited permission to copy, distribute and modify it. |
---|
11 | ## --------------------- ## |
---|
12 | ## M4sh Initialization. ## |
---|
13 | ## --------------------- ## |
---|
14 | |
---|
15 | # Be Bourne compatible |
---|
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
17 | emulate sh |
---|
18 | NULLCMD=: |
---|
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
20 | # is contrary to our usage. Disable this feature. |
---|
21 | alias -g '${1+"$@"}'='"$@"' |
---|
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
23 | set -o posix |
---|
24 | fi |
---|
25 | |
---|
26 | # Support unset when possible. |
---|
27 | if (FOO=FOO; unset FOO) >/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 -n "`(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 | as_mkdir_p=false |
---|
224 | fi |
---|
225 | |
---|
226 | as_executable_p="test -f" |
---|
227 | |
---|
228 | # Sed expression to map a string onto a valid CPP name. |
---|
229 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
230 | |
---|
231 | # Sed expression to map a string onto a valid variable name. |
---|
232 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
233 | |
---|
234 | |
---|
235 | # IFS |
---|
236 | # We need space, tab and new line, in precisely that order. |
---|
237 | as_nl=' |
---|
238 | ' |
---|
239 | IFS=" $as_nl" |
---|
240 | |
---|
241 | # CDPATH. |
---|
242 | $as_unset CDPATH |
---|
243 | |
---|
244 | |
---|
245 | # Name of the host. |
---|
246 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
247 | # so uname gets run too. |
---|
248 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
249 | |
---|
250 | exec 6>&1 |
---|
251 | |
---|
252 | # |
---|
253 | # Initializations. |
---|
254 | # |
---|
255 | ac_default_prefix=/usr/local |
---|
256 | ac_config_libobj_dir=. |
---|
257 | cross_compiling=no |
---|
258 | subdirs= |
---|
259 | MFLAGS= |
---|
260 | MAKEFLAGS= |
---|
261 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
262 | |
---|
263 | # Maximum number of lines to put in a shell here document. |
---|
264 | # This variable seems obsolete. It should probably be removed, and |
---|
265 | # only ac_max_sed_lines should be used. |
---|
266 | : ${ac_max_here_lines=38} |
---|
267 | |
---|
268 | # Identity of this package. |
---|
269 | PACKAGE_NAME='orxonox' |
---|
270 | PACKAGE_TARNAME='orxonox' |
---|
271 | PACKAGE_VERSION='0.1-pre-alpha' |
---|
272 | PACKAGE_STRING='orxonox 0.1-pre-alpha' |
---|
273 | PACKAGE_BUGREPORT='orxonox-dev@mail.datacore.ch' |
---|
274 | |
---|
275 | ac_unique_file="." |
---|
276 | # Factoring default headers for most tests. |
---|
277 | ac_includes_default="\ |
---|
278 | #include <stdio.h> |
---|
279 | #if HAVE_SYS_TYPES_H |
---|
280 | # include <sys/types.h> |
---|
281 | #endif |
---|
282 | #if HAVE_SYS_STAT_H |
---|
283 | # include <sys/stat.h> |
---|
284 | #endif |
---|
285 | #if STDC_HEADERS |
---|
286 | # include <stdlib.h> |
---|
287 | # include <stddef.h> |
---|
288 | #else |
---|
289 | # if HAVE_STDLIB_H |
---|
290 | # include <stdlib.h> |
---|
291 | # endif |
---|
292 | #endif |
---|
293 | #if HAVE_STRING_H |
---|
294 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
295 | # include <memory.h> |
---|
296 | # endif |
---|
297 | # include <string.h> |
---|
298 | #endif |
---|
299 | #if HAVE_STRINGS_H |
---|
300 | # include <strings.h> |
---|
301 | #endif |
---|
302 | #if HAVE_INTTYPES_H |
---|
303 | # include <inttypes.h> |
---|
304 | #else |
---|
305 | # if HAVE_STDINT_H |
---|
306 | # include <stdint.h> |
---|
307 | # endif |
---|
308 | #endif |
---|
309 | #if HAVE_UNISTD_H |
---|
310 | # include <unistd.h> |
---|
311 | #endif" |
---|
312 | |
---|
313 | 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 AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP SDL_CONFIG SDL_CFLAGS SDL_LIBS MSBITFIELDS GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS' |
---|
314 | ac_subst_files='' |
---|
315 | |
---|
316 | # Initialize some variables set by options. |
---|
317 | ac_init_help= |
---|
318 | ac_init_version=false |
---|
319 | # The variables have the same names as the options, with |
---|
320 | # dashes changed to underlines. |
---|
321 | cache_file=/dev/null |
---|
322 | exec_prefix=NONE |
---|
323 | no_create= |
---|
324 | no_recursion= |
---|
325 | prefix=NONE |
---|
326 | program_prefix=NONE |
---|
327 | program_suffix=NONE |
---|
328 | program_transform_name=s,x,x, |
---|
329 | silent= |
---|
330 | site= |
---|
331 | srcdir= |
---|
332 | verbose= |
---|
333 | x_includes=NONE |
---|
334 | x_libraries=NONE |
---|
335 | |
---|
336 | # Installation directory options. |
---|
337 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
338 | # and all the variables that are supposed to be based on exec_prefix |
---|
339 | # by default will actually change. |
---|
340 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
341 | bindir='${exec_prefix}/bin' |
---|
342 | sbindir='${exec_prefix}/sbin' |
---|
343 | libexecdir='${exec_prefix}/libexec' |
---|
344 | datadir='${prefix}/share' |
---|
345 | sysconfdir='${prefix}/etc' |
---|
346 | sharedstatedir='${prefix}/com' |
---|
347 | localstatedir='${prefix}/var' |
---|
348 | libdir='${exec_prefix}/lib' |
---|
349 | includedir='${prefix}/include' |
---|
350 | oldincludedir='/usr/include' |
---|
351 | infodir='${prefix}/info' |
---|
352 | mandir='${prefix}/man' |
---|
353 | |
---|
354 | ac_prev= |
---|
355 | for ac_option |
---|
356 | do |
---|
357 | # If the previous option needs an argument, assign it. |
---|
358 | if test -n "$ac_prev"; then |
---|
359 | eval "$ac_prev=\$ac_option" |
---|
360 | ac_prev= |
---|
361 | continue |
---|
362 | fi |
---|
363 | |
---|
364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
365 | |
---|
366 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
367 | |
---|
368 | case $ac_option in |
---|
369 | |
---|
370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
371 | ac_prev=bindir ;; |
---|
372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
373 | bindir=$ac_optarg ;; |
---|
374 | |
---|
375 | -build | --build | --buil | --bui | --bu) |
---|
376 | ac_prev=build_alias ;; |
---|
377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
378 | build_alias=$ac_optarg ;; |
---|
379 | |
---|
380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
382 | ac_prev=cache_file ;; |
---|
383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
385 | cache_file=$ac_optarg ;; |
---|
386 | |
---|
387 | --config-cache | -C) |
---|
388 | cache_file=config.cache ;; |
---|
389 | |
---|
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
391 | ac_prev=datadir ;; |
---|
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
393 | | --da=*) |
---|
394 | datadir=$ac_optarg ;; |
---|
395 | |
---|
396 | -disable-* | --disable-*) |
---|
397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
398 | # Reject names that are not valid shell variable names. |
---|
399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
401 | { (exit 1); exit 1; }; } |
---|
402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
403 | eval "enable_$ac_feature=no" ;; |
---|
404 | |
---|
405 | -enable-* | --enable-*) |
---|
406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
407 | # Reject names that are not valid shell variable names. |
---|
408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
410 | { (exit 1); exit 1; }; } |
---|
411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
412 | case $ac_option in |
---|
413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
414 | *) ac_optarg=yes ;; |
---|
415 | esac |
---|
416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
417 | |
---|
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
420 | | --exec | --exe | --ex) |
---|
421 | ac_prev=exec_prefix ;; |
---|
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
424 | | --exec=* | --exe=* | --ex=*) |
---|
425 | exec_prefix=$ac_optarg ;; |
---|
426 | |
---|
427 | -gas | --gas | --ga | --g) |
---|
428 | # Obsolete; use --with-gas. |
---|
429 | with_gas=yes ;; |
---|
430 | |
---|
431 | -help | --help | --hel | --he | -h) |
---|
432 | ac_init_help=long ;; |
---|
433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
434 | ac_init_help=recursive ;; |
---|
435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
436 | ac_init_help=short ;; |
---|
437 | |
---|
438 | -host | --host | --hos | --ho) |
---|
439 | ac_prev=host_alias ;; |
---|
440 | -host=* | --host=* | --hos=* | --ho=*) |
---|
441 | host_alias=$ac_optarg ;; |
---|
442 | |
---|
443 | -includedir | --includedir | --includedi | --included | --include \ |
---|
444 | | --includ | --inclu | --incl | --inc) |
---|
445 | ac_prev=includedir ;; |
---|
446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
447 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
448 | includedir=$ac_optarg ;; |
---|
449 | |
---|
450 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
451 | ac_prev=infodir ;; |
---|
452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
453 | infodir=$ac_optarg ;; |
---|
454 | |
---|
455 | -libdir | --libdir | --libdi | --libd) |
---|
456 | ac_prev=libdir ;; |
---|
457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
458 | libdir=$ac_optarg ;; |
---|
459 | |
---|
460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
461 | | --libexe | --libex | --libe) |
---|
462 | ac_prev=libexecdir ;; |
---|
463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
464 | | --libexe=* | --libex=* | --libe=*) |
---|
465 | libexecdir=$ac_optarg ;; |
---|
466 | |
---|
467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
468 | | --localstate | --localstat | --localsta | --localst \ |
---|
469 | | --locals | --local | --loca | --loc | --lo) |
---|
470 | ac_prev=localstatedir ;; |
---|
471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
474 | localstatedir=$ac_optarg ;; |
---|
475 | |
---|
476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
477 | ac_prev=mandir ;; |
---|
478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
479 | mandir=$ac_optarg ;; |
---|
480 | |
---|
481 | -nfp | --nfp | --nf) |
---|
482 | # Obsolete; use --without-fp. |
---|
483 | with_fp=no ;; |
---|
484 | |
---|
485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
486 | | --no-cr | --no-c | -n) |
---|
487 | no_create=yes ;; |
---|
488 | |
---|
489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
491 | no_recursion=yes ;; |
---|
492 | |
---|
493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
495 | | --oldin | --oldi | --old | --ol | --o) |
---|
496 | ac_prev=oldincludedir ;; |
---|
497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
500 | oldincludedir=$ac_optarg ;; |
---|
501 | |
---|
502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
503 | ac_prev=prefix ;; |
---|
504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
505 | prefix=$ac_optarg ;; |
---|
506 | |
---|
507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
508 | | --program-pre | --program-pr | --program-p) |
---|
509 | ac_prev=program_prefix ;; |
---|
510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
512 | program_prefix=$ac_optarg ;; |
---|
513 | |
---|
514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
515 | | --program-suf | --program-su | --program-s) |
---|
516 | ac_prev=program_suffix ;; |
---|
517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
519 | program_suffix=$ac_optarg ;; |
---|
520 | |
---|
521 | -program-transform-name | --program-transform-name \ |
---|
522 | | --program-transform-nam | --program-transform-na \ |
---|
523 | | --program-transform-n | --program-transform- \ |
---|
524 | | --program-transform | --program-transfor \ |
---|
525 | | --program-transfo | --program-transf \ |
---|
526 | | --program-trans | --program-tran \ |
---|
527 | | --progr-tra | --program-tr | --program-t) |
---|
528 | ac_prev=program_transform_name ;; |
---|
529 | -program-transform-name=* | --program-transform-name=* \ |
---|
530 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
531 | | --program-transform-n=* | --program-transform-=* \ |
---|
532 | | --program-transform=* | --program-transfor=* \ |
---|
533 | | --program-transfo=* | --program-transf=* \ |
---|
534 | | --program-trans=* | --program-tran=* \ |
---|
535 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
536 | program_transform_name=$ac_optarg ;; |
---|
537 | |
---|
538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
539 | | -silent | --silent | --silen | --sile | --sil) |
---|
540 | silent=yes ;; |
---|
541 | |
---|
542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
543 | ac_prev=sbindir ;; |
---|
544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
545 | | --sbi=* | --sb=*) |
---|
546 | sbindir=$ac_optarg ;; |
---|
547 | |
---|
548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
550 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
551 | | --sha | --sh) |
---|
552 | ac_prev=sharedstatedir ;; |
---|
553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
556 | | --sha=* | --sh=*) |
---|
557 | sharedstatedir=$ac_optarg ;; |
---|
558 | |
---|
559 | -site | --site | --sit) |
---|
560 | ac_prev=site ;; |
---|
561 | -site=* | --site=* | --sit=*) |
---|
562 | site=$ac_optarg ;; |
---|
563 | |
---|
564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
565 | ac_prev=srcdir ;; |
---|
566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
567 | srcdir=$ac_optarg ;; |
---|
568 | |
---|
569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
570 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
571 | ac_prev=sysconfdir ;; |
---|
572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
574 | sysconfdir=$ac_optarg ;; |
---|
575 | |
---|
576 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
577 | ac_prev=target_alias ;; |
---|
578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
579 | target_alias=$ac_optarg ;; |
---|
580 | |
---|
581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
582 | verbose=yes ;; |
---|
583 | |
---|
584 | -version | --version | --versio | --versi | --vers | -V) |
---|
585 | ac_init_version=: ;; |
---|
586 | |
---|
587 | -with-* | --with-*) |
---|
588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
589 | # Reject names that are not valid shell variable names. |
---|
590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
592 | { (exit 1); exit 1; }; } |
---|
593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
594 | case $ac_option in |
---|
595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
596 | *) ac_optarg=yes ;; |
---|
597 | esac |
---|
598 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
599 | |
---|
600 | -without-* | --without-*) |
---|
601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
602 | # Reject names that are not valid shell variable names. |
---|
603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
605 | { (exit 1); exit 1; }; } |
---|
606 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
607 | eval "with_$ac_package=no" ;; |
---|
608 | |
---|
609 | --x) |
---|
610 | # Obsolete; use --with-x. |
---|
611 | with_x=yes ;; |
---|
612 | |
---|
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
614 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
615 | ac_prev=x_includes ;; |
---|
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
618 | x_includes=$ac_optarg ;; |
---|
619 | |
---|
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
622 | ac_prev=x_libraries ;; |
---|
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
625 | x_libraries=$ac_optarg ;; |
---|
626 | |
---|
627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
628 | Try \`$0 --help' for more information." >&2 |
---|
629 | { (exit 1); exit 1; }; } |
---|
630 | ;; |
---|
631 | |
---|
632 | *=*) |
---|
633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
634 | # Reject names that are not valid shell variable names. |
---|
635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
637 | { (exit 1); exit 1; }; } |
---|
638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
639 | eval "$ac_envvar='$ac_optarg'" |
---|
640 | export $ac_envvar ;; |
---|
641 | |
---|
642 | *) |
---|
643 | # FIXME: should be removed in autoconf 3.0. |
---|
644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
648 | ;; |
---|
649 | |
---|
650 | esac |
---|
651 | done |
---|
652 | |
---|
653 | if test -n "$ac_prev"; then |
---|
654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
655 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
656 | { (exit 1); exit 1; }; } |
---|
657 | fi |
---|
658 | |
---|
659 | # Be sure to have absolute paths. |
---|
660 | for ac_var in exec_prefix prefix |
---|
661 | do |
---|
662 | eval ac_val=$`echo $ac_var` |
---|
663 | case $ac_val in |
---|
664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
666 | { (exit 1); exit 1; }; };; |
---|
667 | esac |
---|
668 | done |
---|
669 | |
---|
670 | # Be sure to have absolute paths. |
---|
671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
672 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
673 | do |
---|
674 | eval ac_val=$`echo $ac_var` |
---|
675 | case $ac_val in |
---|
676 | [\\/$]* | ?:[\\/]* ) ;; |
---|
677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
678 | { (exit 1); exit 1; }; };; |
---|
679 | esac |
---|
680 | done |
---|
681 | |
---|
682 | # There might be people who depend on the old broken behavior: `$host' |
---|
683 | # used to hold the argument of --host etc. |
---|
684 | # FIXME: To remove some day. |
---|
685 | build=$build_alias |
---|
686 | host=$host_alias |
---|
687 | target=$target_alias |
---|
688 | |
---|
689 | # FIXME: To remove some day. |
---|
690 | if test "x$host_alias" != x; then |
---|
691 | if test "x$build_alias" = x; then |
---|
692 | cross_compiling=maybe |
---|
693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
694 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
695 | elif test "x$build_alias" != "x$host_alias"; then |
---|
696 | cross_compiling=yes |
---|
697 | fi |
---|
698 | fi |
---|
699 | |
---|
700 | ac_tool_prefix= |
---|
701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
702 | |
---|
703 | test "$silent" = yes && exec 6>/dev/null |
---|
704 | |
---|
705 | |
---|
706 | # Find the source files, if location was not specified. |
---|
707 | if test -z "$srcdir"; then |
---|
708 | ac_srcdir_defaulted=yes |
---|
709 | # Try the directory containing this script, then its parent. |
---|
710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
712 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
713 | X"$0" : 'X\(//\)$' \| \ |
---|
714 | X"$0" : 'X\(/\)' \| \ |
---|
715 | . : '\(.\)' 2>/dev/null || |
---|
716 | echo X"$0" | |
---|
717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
719 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
720 | /^X\(\/\).*/{ s//\1/; q; } |
---|
721 | s/.*/./; q'` |
---|
722 | srcdir=$ac_confdir |
---|
723 | if test ! -r $srcdir/$ac_unique_file; then |
---|
724 | srcdir=.. |
---|
725 | fi |
---|
726 | else |
---|
727 | ac_srcdir_defaulted=no |
---|
728 | fi |
---|
729 | if test ! -r $srcdir/$ac_unique_file; then |
---|
730 | if test "$ac_srcdir_defaulted" = yes; then |
---|
731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
732 | { (exit 1); exit 1; }; } |
---|
733 | else |
---|
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
735 | { (exit 1); exit 1; }; } |
---|
736 | fi |
---|
737 | fi |
---|
738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
740 | { (exit 1); exit 1; }; } |
---|
741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
742 | ac_env_build_alias_set=${build_alias+set} |
---|
743 | ac_env_build_alias_value=$build_alias |
---|
744 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
745 | ac_cv_env_build_alias_value=$build_alias |
---|
746 | ac_env_host_alias_set=${host_alias+set} |
---|
747 | ac_env_host_alias_value=$host_alias |
---|
748 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
749 | ac_cv_env_host_alias_value=$host_alias |
---|
750 | ac_env_target_alias_set=${target_alias+set} |
---|
751 | ac_env_target_alias_value=$target_alias |
---|
752 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
753 | ac_cv_env_target_alias_value=$target_alias |
---|
754 | ac_env_CXX_set=${CXX+set} |
---|
755 | ac_env_CXX_value=$CXX |
---|
756 | ac_cv_env_CXX_set=${CXX+set} |
---|
757 | ac_cv_env_CXX_value=$CXX |
---|
758 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
759 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
760 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
761 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
762 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
763 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
765 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
767 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
770 | ac_env_CC_set=${CC+set} |
---|
771 | ac_env_CC_value=$CC |
---|
772 | ac_cv_env_CC_set=${CC+set} |
---|
773 | ac_cv_env_CC_value=$CC |
---|
774 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
775 | ac_env_CFLAGS_value=$CFLAGS |
---|
776 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
777 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
778 | ac_env_CPP_set=${CPP+set} |
---|
779 | ac_env_CPP_value=$CPP |
---|
780 | ac_cv_env_CPP_set=${CPP+set} |
---|
781 | ac_cv_env_CPP_value=$CPP |
---|
782 | |
---|
783 | # |
---|
784 | # Report the --help message. |
---|
785 | # |
---|
786 | if test "$ac_init_help" = "long"; then |
---|
787 | # Omit some internal or obsolete options to make the list less imposing. |
---|
788 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
789 | cat <<_ACEOF |
---|
790 | \`configure' configures orxonox 0.1-pre-alpha to adapt to many kinds of systems. |
---|
791 | |
---|
792 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
793 | |
---|
794 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
795 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
796 | |
---|
797 | Defaults for the options are specified in brackets. |
---|
798 | |
---|
799 | Configuration: |
---|
800 | -h, --help display this help and exit |
---|
801 | --help=short display options specific to this package |
---|
802 | --help=recursive display the short help of all the included packages |
---|
803 | -V, --version display version information and exit |
---|
804 | -q, --quiet, --silent do not print \`checking...' messages |
---|
805 | --cache-file=FILE cache test results in FILE [disabled] |
---|
806 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
807 | -n, --no-create do not create output files |
---|
808 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
809 | |
---|
810 | _ACEOF |
---|
811 | |
---|
812 | cat <<_ACEOF |
---|
813 | Installation directories: |
---|
814 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
815 | [$ac_default_prefix] |
---|
816 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
817 | [PREFIX] |
---|
818 | |
---|
819 | By default, \`make install' will install all the files in |
---|
820 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
821 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
822 | for instance \`--prefix=\$HOME'. |
---|
823 | |
---|
824 | For better control, use the options below. |
---|
825 | |
---|
826 | Fine tuning of the installation directories: |
---|
827 | --bindir=DIR user executables [EPREFIX/bin] |
---|
828 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
829 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
830 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
831 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
832 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
833 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
834 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
835 | --includedir=DIR C header files [PREFIX/include] |
---|
836 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
837 | --infodir=DIR info documentation [PREFIX/info] |
---|
838 | --mandir=DIR man documentation [PREFIX/man] |
---|
839 | _ACEOF |
---|
840 | |
---|
841 | cat <<\_ACEOF |
---|
842 | |
---|
843 | Program names: |
---|
844 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
845 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
846 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
847 | |
---|
848 | System types: |
---|
849 | --build=BUILD configure for building on BUILD [guessed] |
---|
850 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
851 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
852 | _ACEOF |
---|
853 | fi |
---|
854 | |
---|
855 | if test -n "$ac_init_help"; then |
---|
856 | case $ac_init_help in |
---|
857 | short | recursive ) echo "Configuration of orxonox 0.1-pre-alpha:";; |
---|
858 | esac |
---|
859 | cat <<\_ACEOF |
---|
860 | |
---|
861 | Optional Features: |
---|
862 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
863 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
864 | --disable-dependency-tracking Speeds up one-time builds |
---|
865 | --enable-dependency-tracking Do not reject slow dependency extractors |
---|
866 | --disable-sdltest Do not try to compile and run a test SDL program |
---|
867 | |
---|
868 | Optional Packages: |
---|
869 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
870 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
871 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) |
---|
872 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) |
---|
873 | |
---|
874 | Some influential environment variables: |
---|
875 | CXX C++ compiler command |
---|
876 | CXXFLAGS C++ compiler flags |
---|
877 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
878 | nonstandard directory <lib dir> |
---|
879 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
880 | headers in a nonstandard directory <include dir> |
---|
881 | CC C compiler command |
---|
882 | CFLAGS C compiler flags |
---|
883 | CPP C preprocessor |
---|
884 | |
---|
885 | Use these variables to override the choices made by `configure' or to help |
---|
886 | it to find libraries and programs with nonstandard names/locations. |
---|
887 | |
---|
888 | Report bugs to <orxonox-dev@mail.datacore.ch>. |
---|
889 | _ACEOF |
---|
890 | fi |
---|
891 | |
---|
892 | if test "$ac_init_help" = "recursive"; then |
---|
893 | # If there are subdirs, report their specific --help. |
---|
894 | ac_popdir=`pwd` |
---|
895 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
896 | test -d $ac_dir || continue |
---|
897 | ac_builddir=. |
---|
898 | |
---|
899 | if test "$ac_dir" != .; then |
---|
900 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
901 | # A "../" for each directory in $ac_dir_suffix. |
---|
902 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
903 | else |
---|
904 | ac_dir_suffix= ac_top_builddir= |
---|
905 | fi |
---|
906 | |
---|
907 | case $srcdir in |
---|
908 | .) # No --srcdir option. We are building in place. |
---|
909 | ac_srcdir=. |
---|
910 | if test -z "$ac_top_builddir"; then |
---|
911 | ac_top_srcdir=. |
---|
912 | else |
---|
913 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
914 | fi ;; |
---|
915 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
916 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
917 | ac_top_srcdir=$srcdir ;; |
---|
918 | *) # Relative path. |
---|
919 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
920 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
921 | esac |
---|
922 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
923 | # absolute. |
---|
924 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
925 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
926 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
927 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
928 | |
---|
929 | cd $ac_dir |
---|
930 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
931 | if test -f $ac_srcdir/configure.gnu; then |
---|
932 | echo |
---|
933 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
934 | elif test -f $ac_srcdir/configure; then |
---|
935 | echo |
---|
936 | $SHELL $ac_srcdir/configure --help=recursive |
---|
937 | elif test -f $ac_srcdir/configure.ac || |
---|
938 | test -f $ac_srcdir/configure.in; then |
---|
939 | echo |
---|
940 | $ac_configure --help |
---|
941 | else |
---|
942 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
943 | fi |
---|
944 | cd $ac_popdir |
---|
945 | done |
---|
946 | fi |
---|
947 | |
---|
948 | test -n "$ac_init_help" && exit 0 |
---|
949 | if $ac_init_version; then |
---|
950 | cat <<\_ACEOF |
---|
951 | orxonox configure 0.1-pre-alpha |
---|
952 | generated by GNU Autoconf 2.57 |
---|
953 | |
---|
954 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
955 | Free Software Foundation, Inc. |
---|
956 | This configure script is free software; the Free Software Foundation |
---|
957 | gives unlimited permission to copy, distribute and modify it. |
---|
958 | _ACEOF |
---|
959 | exit 0 |
---|
960 | fi |
---|
961 | exec 5>config.log |
---|
962 | cat >&5 <<_ACEOF |
---|
963 | This file contains any messages produced by compilers while |
---|
964 | running configure, to aid debugging if configure makes a mistake. |
---|
965 | |
---|
966 | It was created by orxonox $as_me 0.1-pre-alpha, which was |
---|
967 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
968 | |
---|
969 | $ $0 $@ |
---|
970 | |
---|
971 | _ACEOF |
---|
972 | { |
---|
973 | cat <<_ASUNAME |
---|
974 | ## --------- ## |
---|
975 | ## Platform. ## |
---|
976 | ## --------- ## |
---|
977 | |
---|
978 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
979 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
980 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
981 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
982 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
983 | |
---|
984 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
985 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
986 | |
---|
987 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
988 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
989 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
990 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
991 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
992 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
993 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
994 | |
---|
995 | _ASUNAME |
---|
996 | |
---|
997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
998 | for as_dir in $PATH |
---|
999 | do |
---|
1000 | IFS=$as_save_IFS |
---|
1001 | test -z "$as_dir" && as_dir=. |
---|
1002 | echo "PATH: $as_dir" |
---|
1003 | done |
---|
1004 | |
---|
1005 | } >&5 |
---|
1006 | |
---|
1007 | cat >&5 <<_ACEOF |
---|
1008 | |
---|
1009 | |
---|
1010 | ## ----------- ## |
---|
1011 | ## Core tests. ## |
---|
1012 | ## ----------- ## |
---|
1013 | |
---|
1014 | _ACEOF |
---|
1015 | |
---|
1016 | |
---|
1017 | # Keep a trace of the command line. |
---|
1018 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1019 | # Strip out --silent because we don't want to record it for future runs. |
---|
1020 | # Also quote any args containing shell meta-characters. |
---|
1021 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1022 | ac_configure_args= |
---|
1023 | ac_configure_args0= |
---|
1024 | ac_configure_args1= |
---|
1025 | ac_sep= |
---|
1026 | ac_must_keep_next=false |
---|
1027 | for ac_pass in 1 2 |
---|
1028 | do |
---|
1029 | for ac_arg |
---|
1030 | do |
---|
1031 | case $ac_arg in |
---|
1032 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1033 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1034 | | -silent | --silent | --silen | --sile | --sil) |
---|
1035 | continue ;; |
---|
1036 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1037 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1038 | esac |
---|
1039 | case $ac_pass in |
---|
1040 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
1041 | 2) |
---|
1042 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
1043 | if test $ac_must_keep_next = true; then |
---|
1044 | ac_must_keep_next=false # Got value, back to normal. |
---|
1045 | else |
---|
1046 | case $ac_arg in |
---|
1047 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1048 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1049 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1050 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1051 | case "$ac_configure_args0 " in |
---|
1052 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1053 | esac |
---|
1054 | ;; |
---|
1055 | -* ) ac_must_keep_next=true ;; |
---|
1056 | esac |
---|
1057 | fi |
---|
1058 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
1059 | # Get rid of the leading space. |
---|
1060 | ac_sep=" " |
---|
1061 | ;; |
---|
1062 | esac |
---|
1063 | done |
---|
1064 | done |
---|
1065 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
1066 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
1067 | |
---|
1068 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1069 | # config.log. We remove comments because anyway the quotes in there |
---|
1070 | # would cause problems or look ugly. |
---|
1071 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
1072 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
1073 | trap 'exit_status=$? |
---|
1074 | # Save into config.log some information that might help in debugging. |
---|
1075 | { |
---|
1076 | echo |
---|
1077 | |
---|
1078 | cat <<\_ASBOX |
---|
1079 | ## ---------------- ## |
---|
1080 | ## Cache variables. ## |
---|
1081 | ## ---------------- ## |
---|
1082 | _ASBOX |
---|
1083 | echo |
---|
1084 | # The following way of writing the cache mishandles newlines in values, |
---|
1085 | { |
---|
1086 | (set) 2>&1 | |
---|
1087 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
1088 | *ac_space=\ *) |
---|
1089 | sed -n \ |
---|
1090 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
1091 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
1092 | ;; |
---|
1093 | *) |
---|
1094 | sed -n \ |
---|
1095 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
1096 | ;; |
---|
1097 | esac; |
---|
1098 | } |
---|
1099 | echo |
---|
1100 | |
---|
1101 | cat <<\_ASBOX |
---|
1102 | ## ----------------- ## |
---|
1103 | ## Output variables. ## |
---|
1104 | ## ----------------- ## |
---|
1105 | _ASBOX |
---|
1106 | echo |
---|
1107 | for ac_var in $ac_subst_vars |
---|
1108 | do |
---|
1109 | eval ac_val=$`echo $ac_var` |
---|
1110 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1111 | done | sort |
---|
1112 | echo |
---|
1113 | |
---|
1114 | if test -n "$ac_subst_files"; then |
---|
1115 | cat <<\_ASBOX |
---|
1116 | ## ------------- ## |
---|
1117 | ## Output files. ## |
---|
1118 | ## ------------- ## |
---|
1119 | _ASBOX |
---|
1120 | echo |
---|
1121 | for ac_var in $ac_subst_files |
---|
1122 | do |
---|
1123 | eval ac_val=$`echo $ac_var` |
---|
1124 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
1125 | done | sort |
---|
1126 | echo |
---|
1127 | fi |
---|
1128 | |
---|
1129 | if test -s confdefs.h; then |
---|
1130 | cat <<\_ASBOX |
---|
1131 | ## ----------- ## |
---|
1132 | ## confdefs.h. ## |
---|
1133 | ## ----------- ## |
---|
1134 | _ASBOX |
---|
1135 | echo |
---|
1136 | sed "/^$/d" confdefs.h | sort |
---|
1137 | echo |
---|
1138 | fi |
---|
1139 | test "$ac_signal" != 0 && |
---|
1140 | echo "$as_me: caught signal $ac_signal" |
---|
1141 | echo "$as_me: exit $exit_status" |
---|
1142 | } >&5 |
---|
1143 | rm -f core core.* *.core && |
---|
1144 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
1145 | exit $exit_status |
---|
1146 | ' 0 |
---|
1147 | for ac_signal in 1 2 13 15; do |
---|
1148 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
1149 | done |
---|
1150 | ac_signal=0 |
---|
1151 | |
---|
1152 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1153 | rm -rf conftest* confdefs.h |
---|
1154 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
1155 | echo >confdefs.h |
---|
1156 | |
---|
1157 | # Predefined preprocessor variables. |
---|
1158 | |
---|
1159 | cat >>confdefs.h <<_ACEOF |
---|
1160 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1161 | _ACEOF |
---|
1162 | |
---|
1163 | |
---|
1164 | cat >>confdefs.h <<_ACEOF |
---|
1165 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1166 | _ACEOF |
---|
1167 | |
---|
1168 | |
---|
1169 | cat >>confdefs.h <<_ACEOF |
---|
1170 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1171 | _ACEOF |
---|
1172 | |
---|
1173 | |
---|
1174 | cat >>confdefs.h <<_ACEOF |
---|
1175 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1176 | _ACEOF |
---|
1177 | |
---|
1178 | |
---|
1179 | cat >>confdefs.h <<_ACEOF |
---|
1180 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1181 | _ACEOF |
---|
1182 | |
---|
1183 | |
---|
1184 | # Let the site file select an alternate cache file if it wants to. |
---|
1185 | # Prefer explicitly selected file to automatically selected ones. |
---|
1186 | if test -z "$CONFIG_SITE"; then |
---|
1187 | if test "x$prefix" != xNONE; then |
---|
1188 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
1189 | else |
---|
1190 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
1191 | fi |
---|
1192 | fi |
---|
1193 | for ac_site_file in $CONFIG_SITE; do |
---|
1194 | if test -r "$ac_site_file"; then |
---|
1195 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
1196 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1197 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1198 | . "$ac_site_file" |
---|
1199 | fi |
---|
1200 | done |
---|
1201 | |
---|
1202 | if test -r "$cache_file"; then |
---|
1203 | # Some versions of bash will fail to source /dev/null (special |
---|
1204 | # files actually), so we avoid doing that. |
---|
1205 | if test -f "$cache_file"; then |
---|
1206 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
1207 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
1208 | case $cache_file in |
---|
1209 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
1210 | *) . ./$cache_file;; |
---|
1211 | esac |
---|
1212 | fi |
---|
1213 | else |
---|
1214 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
1215 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
1216 | >$cache_file |
---|
1217 | fi |
---|
1218 | |
---|
1219 | # Check that the precious variables saved in the cache have kept the same |
---|
1220 | # value. |
---|
1221 | ac_cache_corrupted=false |
---|
1222 | for ac_var in `(set) 2>&1 | |
---|
1223 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
1224 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
1225 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
1226 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
1227 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
1228 | case $ac_old_set,$ac_new_set in |
---|
1229 | set,) |
---|
1230 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
1231 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
1232 | ac_cache_corrupted=: ;; |
---|
1233 | ,set) |
---|
1234 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
1235 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
1236 | ac_cache_corrupted=: ;; |
---|
1237 | ,);; |
---|
1238 | *) |
---|
1239 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
1240 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
1241 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
1242 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
1243 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
1244 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
1245 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
1246 | ac_cache_corrupted=: |
---|
1247 | fi;; |
---|
1248 | esac |
---|
1249 | # Pass precious variables to config.status. |
---|
1250 | if test "$ac_new_set" = set; then |
---|
1251 | case $ac_new_val in |
---|
1252 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
1253 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1254 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
1255 | esac |
---|
1256 | case " $ac_configure_args " in |
---|
1257 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
1258 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
1259 | esac |
---|
1260 | fi |
---|
1261 | done |
---|
1262 | if $ac_cache_corrupted; then |
---|
1263 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
1264 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
1265 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
1266 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
1267 | { (exit 1); exit 1; }; } |
---|
1268 | fi |
---|
1269 | |
---|
1270 | ac_ext=c |
---|
1271 | ac_cpp='$CPP $CPPFLAGS' |
---|
1272 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1273 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1274 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
1275 | |
---|
1276 | |
---|
1277 | |
---|
1278 | |
---|
1279 | |
---|
1280 | |
---|
1281 | |
---|
1282 | |
---|
1283 | |
---|
1284 | |
---|
1285 | |
---|
1286 | |
---|
1287 | |
---|
1288 | |
---|
1289 | |
---|
1290 | |
---|
1291 | |
---|
1292 | |
---|
1293 | |
---|
1294 | |
---|
1295 | |
---|
1296 | |
---|
1297 | |
---|
1298 | |
---|
1299 | |
---|
1300 | |
---|
1301 | |
---|
1302 | |
---|
1303 | # Detect the canonical host and target build environment. |
---|
1304 | ac_aux_dir= |
---|
1305 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
1306 | if test -f $ac_dir/install-sh; then |
---|
1307 | ac_aux_dir=$ac_dir |
---|
1308 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
1309 | break |
---|
1310 | elif test -f $ac_dir/install.sh; then |
---|
1311 | ac_aux_dir=$ac_dir |
---|
1312 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
1313 | break |
---|
1314 | elif test -f $ac_dir/shtool; then |
---|
1315 | ac_aux_dir=$ac_dir |
---|
1316 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
1317 | break |
---|
1318 | fi |
---|
1319 | done |
---|
1320 | if test -z "$ac_aux_dir"; then |
---|
1321 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
---|
1322 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
---|
1323 | { (exit 1); exit 1; }; } |
---|
1324 | fi |
---|
1325 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
1326 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
1327 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
1328 | |
---|
1329 | # Make sure we can run config.sub. |
---|
1330 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
1331 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
1332 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
1333 | { (exit 1); exit 1; }; } |
---|
1334 | |
---|
1335 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
1336 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
1337 | if test "${ac_cv_build+set}" = set; then |
---|
1338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1339 | else |
---|
1340 | ac_cv_build_alias=$build_alias |
---|
1341 | test -z "$ac_cv_build_alias" && |
---|
1342 | ac_cv_build_alias=`$ac_config_guess` |
---|
1343 | test -z "$ac_cv_build_alias" && |
---|
1344 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
1345 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
1346 | { (exit 1); exit 1; }; } |
---|
1347 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
1348 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
1349 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
1350 | { (exit 1); exit 1; }; } |
---|
1351 | |
---|
1352 | fi |
---|
1353 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
1354 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
1355 | build=$ac_cv_build |
---|
1356 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1357 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1358 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1359 | |
---|
1360 | |
---|
1361 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
1362 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
1363 | if test "${ac_cv_host+set}" = set; then |
---|
1364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1365 | else |
---|
1366 | ac_cv_host_alias=$host_alias |
---|
1367 | test -z "$ac_cv_host_alias" && |
---|
1368 | ac_cv_host_alias=$ac_cv_build_alias |
---|
1369 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
1370 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
1371 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
1372 | { (exit 1); exit 1; }; } |
---|
1373 | |
---|
1374 | fi |
---|
1375 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
1376 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
1377 | host=$ac_cv_host |
---|
1378 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1379 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1380 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1381 | |
---|
1382 | |
---|
1383 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
1384 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
1385 | if test "${ac_cv_target+set}" = set; then |
---|
1386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1387 | else |
---|
1388 | ac_cv_target_alias=$target_alias |
---|
1389 | test "x$ac_cv_target_alias" = "x" && |
---|
1390 | ac_cv_target_alias=$ac_cv_host_alias |
---|
1391 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
1392 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
1393 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
1394 | { (exit 1); exit 1; }; } |
---|
1395 | |
---|
1396 | fi |
---|
1397 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
1398 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
1399 | target=$ac_cv_target |
---|
1400 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
1401 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
1402 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
1403 | |
---|
1404 | |
---|
1405 | # The aliases save the names the user supplied, while $host etc. |
---|
1406 | # will get canonicalized. |
---|
1407 | test -n "$target_alias" && |
---|
1408 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
1409 | NONENONEs,x,x, && |
---|
1410 | program_prefix=${target_alias}- |
---|
1411 | |
---|
1412 | |
---|
1413 | am__api_version="1.7" |
---|
1414 | # Find a good install program. We prefer a C program (faster), |
---|
1415 | # so one script is as good as another. But avoid the broken or |
---|
1416 | # incompatible versions: |
---|
1417 | # SysV /etc/install, /usr/sbin/install |
---|
1418 | # SunOS /usr/etc/install |
---|
1419 | # IRIX /sbin/install |
---|
1420 | # AIX /bin/install |
---|
1421 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
1422 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
1423 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
1424 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
1425 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
1426 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
1427 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
1428 | if test -z "$INSTALL"; then |
---|
1429 | if test "${ac_cv_path_install+set}" = set; then |
---|
1430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1431 | else |
---|
1432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1433 | for as_dir in $PATH |
---|
1434 | do |
---|
1435 | IFS=$as_save_IFS |
---|
1436 | test -z "$as_dir" && as_dir=. |
---|
1437 | # Account for people who put trailing slashes in PATH elements. |
---|
1438 | case $as_dir/ in |
---|
1439 | ./ | .// | /cC/* | \ |
---|
1440 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
1441 | /usr/ucb/* ) ;; |
---|
1442 | *) |
---|
1443 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
1444 | # Don't use installbsd from OSF since it installs stuff as root |
---|
1445 | # by default. |
---|
1446 | for ac_prog in ginstall scoinst install; do |
---|
1447 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1448 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
1449 | if test $ac_prog = install && |
---|
1450 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1451 | # AIX install. It has an incompatible calling convention. |
---|
1452 | : |
---|
1453 | elif test $ac_prog = install && |
---|
1454 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
1455 | # program-specific install script used by HP pwplus--don't use. |
---|
1456 | : |
---|
1457 | else |
---|
1458 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
1459 | break 3 |
---|
1460 | fi |
---|
1461 | fi |
---|
1462 | done |
---|
1463 | done |
---|
1464 | ;; |
---|
1465 | esac |
---|
1466 | done |
---|
1467 | |
---|
1468 | |
---|
1469 | fi |
---|
1470 | if test "${ac_cv_path_install+set}" = set; then |
---|
1471 | INSTALL=$ac_cv_path_install |
---|
1472 | else |
---|
1473 | # As a last resort, use the slow shell script. We don't cache a |
---|
1474 | # path for INSTALL within a source directory, because that will |
---|
1475 | # break other packages using the cache if that directory is |
---|
1476 | # removed, or if the path is relative. |
---|
1477 | INSTALL=$ac_install_sh |
---|
1478 | fi |
---|
1479 | fi |
---|
1480 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
1481 | echo "${ECHO_T}$INSTALL" >&6 |
---|
1482 | |
---|
1483 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
1484 | # It thinks the first close brace ends the variable substitution. |
---|
1485 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
1486 | |
---|
1487 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
1488 | |
---|
1489 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
1490 | |
---|
1491 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
---|
1492 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
---|
1493 | # Just in case |
---|
1494 | sleep 1 |
---|
1495 | echo timestamp > conftest.file |
---|
1496 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
1497 | # arguments. Must try -L first in case configure is actually a |
---|
1498 | # symlink; some systems play weird games with the mod time of symlinks |
---|
1499 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
1500 | # directory). |
---|
1501 | if ( |
---|
1502 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
---|
1503 | if test "$*" = "X"; then |
---|
1504 | # -L didn't work. |
---|
1505 | set X `ls -t $srcdir/configure conftest.file` |
---|
1506 | fi |
---|
1507 | rm -f conftest.file |
---|
1508 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
1509 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
1510 | |
---|
1511 | # If neither matched, then we have a broken ls. This can happen |
---|
1512 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
1513 | # broken ls alias from the environment. This has actually |
---|
1514 | # happened. Such a system could not be considered "sane". |
---|
1515 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
---|
1516 | alias in your environment" >&5 |
---|
1517 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
---|
1518 | alias in your environment" >&2;} |
---|
1519 | { (exit 1); exit 1; }; } |
---|
1520 | fi |
---|
1521 | |
---|
1522 | test "$2" = conftest.file |
---|
1523 | ) |
---|
1524 | then |
---|
1525 | # Ok. |
---|
1526 | : |
---|
1527 | else |
---|
1528 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
---|
1529 | Check your system clock" >&5 |
---|
1530 | echo "$as_me: error: newly created file is older than distributed files! |
---|
1531 | Check your system clock" >&2;} |
---|
1532 | { (exit 1); exit 1; }; } |
---|
1533 | fi |
---|
1534 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1535 | echo "${ECHO_T}yes" >&6 |
---|
1536 | test "$program_prefix" != NONE && |
---|
1537 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
---|
1538 | # Use a double $ so make ignores it. |
---|
1539 | test "$program_suffix" != NONE && |
---|
1540 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
---|
1541 | # Double any \ or $. echo might interpret backslashes. |
---|
1542 | # By default was `s,x,x', remove it if useless. |
---|
1543 | cat <<\_ACEOF >conftest.sed |
---|
1544 | s/[\\$]/&&/g;s/;s,x,x,$// |
---|
1545 | _ACEOF |
---|
1546 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
---|
1547 | rm conftest.sed |
---|
1548 | |
---|
1549 | |
---|
1550 | # expand $ac_aux_dir to an absolute path |
---|
1551 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
1552 | |
---|
1553 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
---|
1554 | # Use eval to expand $SHELL |
---|
1555 | if eval "$MISSING --run true"; then |
---|
1556 | am_missing_run="$MISSING --run " |
---|
1557 | else |
---|
1558 | am_missing_run= |
---|
1559 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
---|
1560 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
1561 | fi |
---|
1562 | |
---|
1563 | for ac_prog in gawk mawk nawk awk |
---|
1564 | do |
---|
1565 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1566 | set dummy $ac_prog; ac_word=$2 |
---|
1567 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1569 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
1570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1571 | else |
---|
1572 | if test -n "$AWK"; then |
---|
1573 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
1574 | else |
---|
1575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1576 | for as_dir in $PATH |
---|
1577 | do |
---|
1578 | IFS=$as_save_IFS |
---|
1579 | test -z "$as_dir" && as_dir=. |
---|
1580 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1581 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1582 | ac_cv_prog_AWK="$ac_prog" |
---|
1583 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1584 | break 2 |
---|
1585 | fi |
---|
1586 | done |
---|
1587 | done |
---|
1588 | |
---|
1589 | fi |
---|
1590 | fi |
---|
1591 | AWK=$ac_cv_prog_AWK |
---|
1592 | if test -n "$AWK"; then |
---|
1593 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
1594 | echo "${ECHO_T}$AWK" >&6 |
---|
1595 | else |
---|
1596 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1597 | echo "${ECHO_T}no" >&6 |
---|
1598 | fi |
---|
1599 | |
---|
1600 | test -n "$AWK" && break |
---|
1601 | done |
---|
1602 | |
---|
1603 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
1604 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
1605 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
---|
1606 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
1607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1608 | else |
---|
1609 | cat >conftest.make <<\_ACEOF |
---|
1610 | all: |
---|
1611 | @echo 'ac_maketemp="$(MAKE)"' |
---|
1612 | _ACEOF |
---|
1613 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
1614 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
1615 | if test -n "$ac_maketemp"; then |
---|
1616 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
1617 | else |
---|
1618 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
1619 | fi |
---|
1620 | rm -f conftest.make |
---|
1621 | fi |
---|
1622 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
1623 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
1624 | echo "${ECHO_T}yes" >&6 |
---|
1625 | SET_MAKE= |
---|
1626 | else |
---|
1627 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1628 | echo "${ECHO_T}no" >&6 |
---|
1629 | SET_MAKE="MAKE=${MAKE-make}" |
---|
1630 | fi |
---|
1631 | |
---|
1632 | rm -rf .tst 2>/dev/null |
---|
1633 | mkdir .tst 2>/dev/null |
---|
1634 | if test -d .tst; then |
---|
1635 | am__leading_dot=. |
---|
1636 | else |
---|
1637 | am__leading_dot=_ |
---|
1638 | fi |
---|
1639 | rmdir .tst 2>/dev/null |
---|
1640 | |
---|
1641 | # test to see if srcdir already configured |
---|
1642 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
---|
1643 | test -f $srcdir/config.status; then |
---|
1644 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
---|
1645 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
---|
1646 | { (exit 1); exit 1; }; } |
---|
1647 | fi |
---|
1648 | |
---|
1649 | # test whether we have cygpath |
---|
1650 | if test -z "$CYGPATH_W"; then |
---|
1651 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
1652 | CYGPATH_W='cygpath -w' |
---|
1653 | else |
---|
1654 | CYGPATH_W=echo |
---|
1655 | fi |
---|
1656 | fi |
---|
1657 | |
---|
1658 | |
---|
1659 | # Define the identity of the package. |
---|
1660 | PACKAGE='orxonox' |
---|
1661 | VERSION='0.1-pre-alpha' |
---|
1662 | |
---|
1663 | |
---|
1664 | cat >>confdefs.h <<_ACEOF |
---|
1665 | #define PACKAGE "$PACKAGE" |
---|
1666 | _ACEOF |
---|
1667 | |
---|
1668 | |
---|
1669 | cat >>confdefs.h <<_ACEOF |
---|
1670 | #define VERSION "$VERSION" |
---|
1671 | _ACEOF |
---|
1672 | |
---|
1673 | # Some tools Automake needs. |
---|
1674 | |
---|
1675 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
1676 | |
---|
1677 | |
---|
1678 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
1679 | |
---|
1680 | |
---|
1681 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
1682 | |
---|
1683 | |
---|
1684 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
1685 | |
---|
1686 | |
---|
1687 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
1688 | |
---|
1689 | |
---|
1690 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
1691 | |
---|
1692 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
---|
1693 | |
---|
1694 | # Installed binaries are usually stripped using `strip' when the user |
---|
1695 | # run `make install-strip'. However `strip' might not be the right |
---|
1696 | # tool to use in cross-compilation environments, therefore Automake |
---|
1697 | # will honor the `STRIP' environment variable to overrule this program. |
---|
1698 | if test "$cross_compiling" != no; then |
---|
1699 | if test -n "$ac_tool_prefix"; then |
---|
1700 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
1701 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
1702 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1704 | if test "${ac_cv_prog_STRIP+set}" = set; then |
---|
1705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1706 | else |
---|
1707 | if test -n "$STRIP"; then |
---|
1708 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
1709 | else |
---|
1710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1711 | for as_dir in $PATH |
---|
1712 | do |
---|
1713 | IFS=$as_save_IFS |
---|
1714 | test -z "$as_dir" && as_dir=. |
---|
1715 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1716 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1717 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
1718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1719 | break 2 |
---|
1720 | fi |
---|
1721 | done |
---|
1722 | done |
---|
1723 | |
---|
1724 | fi |
---|
1725 | fi |
---|
1726 | STRIP=$ac_cv_prog_STRIP |
---|
1727 | if test -n "$STRIP"; then |
---|
1728 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
---|
1729 | echo "${ECHO_T}$STRIP" >&6 |
---|
1730 | else |
---|
1731 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1732 | echo "${ECHO_T}no" >&6 |
---|
1733 | fi |
---|
1734 | |
---|
1735 | fi |
---|
1736 | if test -z "$ac_cv_prog_STRIP"; then |
---|
1737 | ac_ct_STRIP=$STRIP |
---|
1738 | # Extract the first word of "strip", so it can be a program name with args. |
---|
1739 | set dummy strip; ac_word=$2 |
---|
1740 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1742 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
---|
1743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1744 | else |
---|
1745 | if test -n "$ac_ct_STRIP"; then |
---|
1746 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
1747 | else |
---|
1748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1749 | for as_dir in $PATH |
---|
1750 | do |
---|
1751 | IFS=$as_save_IFS |
---|
1752 | test -z "$as_dir" && as_dir=. |
---|
1753 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1755 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
1756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1757 | break 2 |
---|
1758 | fi |
---|
1759 | done |
---|
1760 | done |
---|
1761 | |
---|
1762 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
---|
1763 | fi |
---|
1764 | fi |
---|
1765 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
1766 | if test -n "$ac_ct_STRIP"; then |
---|
1767 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
---|
1768 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
---|
1769 | else |
---|
1770 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1771 | echo "${ECHO_T}no" >&6 |
---|
1772 | fi |
---|
1773 | |
---|
1774 | STRIP=$ac_ct_STRIP |
---|
1775 | else |
---|
1776 | STRIP="$ac_cv_prog_STRIP" |
---|
1777 | fi |
---|
1778 | |
---|
1779 | fi |
---|
1780 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
---|
1781 | |
---|
1782 | # We need awk for the "check" target. The system "awk" is bad on |
---|
1783 | # some platforms. |
---|
1784 | |
---|
1785 | |
---|
1786 | |
---|
1787 | |
---|
1788 | |
---|
1789 | ac_config_headers="$ac_config_headers config.h" |
---|
1790 | |
---|
1791 | |
---|
1792 | |
---|
1793 | # Checks for programs. |
---|
1794 | ac_ext=cc |
---|
1795 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
1796 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
1797 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
1798 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
1799 | if test -n "$ac_tool_prefix"; then |
---|
1800 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1801 | do |
---|
1802 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
1803 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
1804 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1805 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1806 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
1807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1808 | else |
---|
1809 | if test -n "$CXX"; then |
---|
1810 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
1811 | else |
---|
1812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1813 | for as_dir in $PATH |
---|
1814 | do |
---|
1815 | IFS=$as_save_IFS |
---|
1816 | test -z "$as_dir" && as_dir=. |
---|
1817 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1818 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1819 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
1820 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1821 | break 2 |
---|
1822 | fi |
---|
1823 | done |
---|
1824 | done |
---|
1825 | |
---|
1826 | fi |
---|
1827 | fi |
---|
1828 | CXX=$ac_cv_prog_CXX |
---|
1829 | if test -n "$CXX"; then |
---|
1830 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
1831 | echo "${ECHO_T}$CXX" >&6 |
---|
1832 | else |
---|
1833 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1834 | echo "${ECHO_T}no" >&6 |
---|
1835 | fi |
---|
1836 | |
---|
1837 | test -n "$CXX" && break |
---|
1838 | done |
---|
1839 | fi |
---|
1840 | if test -z "$CXX"; then |
---|
1841 | ac_ct_CXX=$CXX |
---|
1842 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
1843 | do |
---|
1844 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1845 | set dummy $ac_prog; ac_word=$2 |
---|
1846 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
1847 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
1848 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
1849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
1850 | else |
---|
1851 | if test -n "$ac_ct_CXX"; then |
---|
1852 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
1853 | else |
---|
1854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1855 | for as_dir in $PATH |
---|
1856 | do |
---|
1857 | IFS=$as_save_IFS |
---|
1858 | test -z "$as_dir" && as_dir=. |
---|
1859 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
1860 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
1861 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
1862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
1863 | break 2 |
---|
1864 | fi |
---|
1865 | done |
---|
1866 | done |
---|
1867 | |
---|
1868 | fi |
---|
1869 | fi |
---|
1870 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
1871 | if test -n "$ac_ct_CXX"; then |
---|
1872 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
1873 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
1874 | else |
---|
1875 | echo "$as_me:$LINENO: result: no" >&5 |
---|
1876 | echo "${ECHO_T}no" >&6 |
---|
1877 | fi |
---|
1878 | |
---|
1879 | test -n "$ac_ct_CXX" && break |
---|
1880 | done |
---|
1881 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
1882 | |
---|
1883 | CXX=$ac_ct_CXX |
---|
1884 | fi |
---|
1885 | |
---|
1886 | |
---|
1887 | # Provide some information about the compiler. |
---|
1888 | echo "$as_me:$LINENO:" \ |
---|
1889 | "checking for C++ compiler version" >&5 |
---|
1890 | ac_compiler=`set X $ac_compile; echo $2` |
---|
1891 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
1892 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
1893 | ac_status=$? |
---|
1894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1895 | (exit $ac_status); } |
---|
1896 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
1897 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
1898 | ac_status=$? |
---|
1899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1900 | (exit $ac_status); } |
---|
1901 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
1902 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
1903 | ac_status=$? |
---|
1904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1905 | (exit $ac_status); } |
---|
1906 | |
---|
1907 | cat >conftest.$ac_ext <<_ACEOF |
---|
1908 | #line $LINENO "configure" |
---|
1909 | /* confdefs.h. */ |
---|
1910 | _ACEOF |
---|
1911 | cat confdefs.h >>conftest.$ac_ext |
---|
1912 | cat >>conftest.$ac_ext <<_ACEOF |
---|
1913 | /* end confdefs.h. */ |
---|
1914 | |
---|
1915 | int |
---|
1916 | main () |
---|
1917 | { |
---|
1918 | |
---|
1919 | ; |
---|
1920 | return 0; |
---|
1921 | } |
---|
1922 | _ACEOF |
---|
1923 | ac_clean_files_save=$ac_clean_files |
---|
1924 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
1925 | # Try to create an executable without -o first, disregard a.out. |
---|
1926 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
1927 | # of exeext. |
---|
1928 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
---|
1929 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
---|
1930 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
1931 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
1932 | (eval $ac_link_default) 2>&5 |
---|
1933 | ac_status=$? |
---|
1934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1935 | (exit $ac_status); }; then |
---|
1936 | # Find the output, starting from the most likely. This scheme is |
---|
1937 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
1938 | # resort. |
---|
1939 | |
---|
1940 | # Be careful to initialize this variable, since it used to be cached. |
---|
1941 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
1942 | ac_cv_exeext= |
---|
1943 | # b.out is created by i960 compilers. |
---|
1944 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
1945 | do |
---|
1946 | test -f "$ac_file" || continue |
---|
1947 | case $ac_file in |
---|
1948 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
1949 | ;; |
---|
1950 | conftest.$ac_ext ) |
---|
1951 | # This is the source file. |
---|
1952 | ;; |
---|
1953 | [ab].out ) |
---|
1954 | # We found the default executable, but exeext='' is most |
---|
1955 | # certainly right. |
---|
1956 | break;; |
---|
1957 | *.* ) |
---|
1958 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
1959 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
1960 | # but it would be cool to find out if it's true. Does anybody |
---|
1961 | # maintain Libtool? --akim. |
---|
1962 | export ac_cv_exeext |
---|
1963 | break;; |
---|
1964 | * ) |
---|
1965 | break;; |
---|
1966 | esac |
---|
1967 | done |
---|
1968 | else |
---|
1969 | echo "$as_me: failed program was:" >&5 |
---|
1970 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1971 | |
---|
1972 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
1973 | See \`config.log' for more details." >&5 |
---|
1974 | echo "$as_me: error: C++ compiler cannot create executables |
---|
1975 | See \`config.log' for more details." >&2;} |
---|
1976 | { (exit 77); exit 77; }; } |
---|
1977 | fi |
---|
1978 | |
---|
1979 | ac_exeext=$ac_cv_exeext |
---|
1980 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
1981 | echo "${ECHO_T}$ac_file" >&6 |
---|
1982 | |
---|
1983 | # Check the compiler produces executables we can run. If not, either |
---|
1984 | # the compiler is broken, or we cross compile. |
---|
1985 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
1986 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
1987 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
1988 | # If not cross compiling, check that we can run a simple program. |
---|
1989 | if test "$cross_compiling" != yes; then |
---|
1990 | if { ac_try='./$ac_file' |
---|
1991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
1992 | (eval $ac_try) 2>&5 |
---|
1993 | ac_status=$? |
---|
1994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
1995 | (exit $ac_status); }; }; then |
---|
1996 | cross_compiling=no |
---|
1997 | else |
---|
1998 | if test "$cross_compiling" = maybe; then |
---|
1999 | cross_compiling=yes |
---|
2000 | else |
---|
2001 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
2002 | If you meant to cross compile, use \`--host'. |
---|
2003 | See \`config.log' for more details." >&5 |
---|
2004 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
2005 | If you meant to cross compile, use \`--host'. |
---|
2006 | See \`config.log' for more details." >&2;} |
---|
2007 | { (exit 1); exit 1; }; } |
---|
2008 | fi |
---|
2009 | fi |
---|
2010 | fi |
---|
2011 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
2012 | echo "${ECHO_T}yes" >&6 |
---|
2013 | |
---|
2014 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
2015 | ac_clean_files=$ac_clean_files_save |
---|
2016 | # Check the compiler produces executables we can run. If not, either |
---|
2017 | # the compiler is broken, or we cross compile. |
---|
2018 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
2019 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
2020 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
2021 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
2022 | |
---|
2023 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
2024 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
2025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
2026 | (eval $ac_link) 2>&5 |
---|
2027 | ac_status=$? |
---|
2028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2029 | (exit $ac_status); }; then |
---|
2030 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2031 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2032 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2033 | # `rm'. |
---|
2034 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2035 | test -f "$ac_file" || continue |
---|
2036 | case $ac_file in |
---|
2037 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
2038 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2039 | export ac_cv_exeext |
---|
2040 | break;; |
---|
2041 | * ) break;; |
---|
2042 | esac |
---|
2043 | done |
---|
2044 | else |
---|
2045 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
2046 | See \`config.log' for more details." >&5 |
---|
2047 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
2048 | See \`config.log' for more details." >&2;} |
---|
2049 | { (exit 1); exit 1; }; } |
---|
2050 | fi |
---|
2051 | |
---|
2052 | rm -f conftest$ac_cv_exeext |
---|
2053 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
2054 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
2055 | |
---|
2056 | rm -f conftest.$ac_ext |
---|
2057 | EXEEXT=$ac_cv_exeext |
---|
2058 | ac_exeext=$EXEEXT |
---|
2059 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
2060 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
2061 | if test "${ac_cv_objext+set}" = set; then |
---|
2062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2063 | else |
---|
2064 | cat >conftest.$ac_ext <<_ACEOF |
---|
2065 | #line $LINENO "configure" |
---|
2066 | /* confdefs.h. */ |
---|
2067 | _ACEOF |
---|
2068 | cat confdefs.h >>conftest.$ac_ext |
---|
2069 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2070 | /* end confdefs.h. */ |
---|
2071 | |
---|
2072 | int |
---|
2073 | main () |
---|
2074 | { |
---|
2075 | |
---|
2076 | ; |
---|
2077 | return 0; |
---|
2078 | } |
---|
2079 | _ACEOF |
---|
2080 | rm -f conftest.o conftest.obj |
---|
2081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2082 | (eval $ac_compile) 2>&5 |
---|
2083 | ac_status=$? |
---|
2084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2085 | (exit $ac_status); }; then |
---|
2086 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
2087 | case $ac_file in |
---|
2088 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
2089 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
2090 | break;; |
---|
2091 | esac |
---|
2092 | done |
---|
2093 | else |
---|
2094 | echo "$as_me: failed program was:" >&5 |
---|
2095 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2096 | |
---|
2097 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
2098 | See \`config.log' for more details." >&5 |
---|
2099 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
2100 | See \`config.log' for more details." >&2;} |
---|
2101 | { (exit 1); exit 1; }; } |
---|
2102 | fi |
---|
2103 | |
---|
2104 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
2105 | fi |
---|
2106 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
2107 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
2108 | OBJEXT=$ac_cv_objext |
---|
2109 | ac_objext=$OBJEXT |
---|
2110 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
2111 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
2112 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
2113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2114 | else |
---|
2115 | cat >conftest.$ac_ext <<_ACEOF |
---|
2116 | #line $LINENO "configure" |
---|
2117 | /* confdefs.h. */ |
---|
2118 | _ACEOF |
---|
2119 | cat confdefs.h >>conftest.$ac_ext |
---|
2120 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2121 | /* end confdefs.h. */ |
---|
2122 | |
---|
2123 | int |
---|
2124 | main () |
---|
2125 | { |
---|
2126 | #ifndef __GNUC__ |
---|
2127 | choke me |
---|
2128 | #endif |
---|
2129 | |
---|
2130 | ; |
---|
2131 | return 0; |
---|
2132 | } |
---|
2133 | _ACEOF |
---|
2134 | rm -f conftest.$ac_objext |
---|
2135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2136 | (eval $ac_compile) 2>&5 |
---|
2137 | ac_status=$? |
---|
2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2139 | (exit $ac_status); } && |
---|
2140 | { ac_try='test -s conftest.$ac_objext' |
---|
2141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2142 | (eval $ac_try) 2>&5 |
---|
2143 | ac_status=$? |
---|
2144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2145 | (exit $ac_status); }; }; then |
---|
2146 | ac_compiler_gnu=yes |
---|
2147 | else |
---|
2148 | echo "$as_me: failed program was:" >&5 |
---|
2149 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2150 | |
---|
2151 | ac_compiler_gnu=no |
---|
2152 | fi |
---|
2153 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2154 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
2155 | |
---|
2156 | fi |
---|
2157 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
2158 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
2159 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
2160 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
2161 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
2162 | CXXFLAGS="-g" |
---|
2163 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
2164 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
2165 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
2166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2167 | else |
---|
2168 | cat >conftest.$ac_ext <<_ACEOF |
---|
2169 | #line $LINENO "configure" |
---|
2170 | /* confdefs.h. */ |
---|
2171 | _ACEOF |
---|
2172 | cat confdefs.h >>conftest.$ac_ext |
---|
2173 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2174 | /* end confdefs.h. */ |
---|
2175 | |
---|
2176 | int |
---|
2177 | main () |
---|
2178 | { |
---|
2179 | |
---|
2180 | ; |
---|
2181 | return 0; |
---|
2182 | } |
---|
2183 | _ACEOF |
---|
2184 | rm -f conftest.$ac_objext |
---|
2185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2186 | (eval $ac_compile) 2>&5 |
---|
2187 | ac_status=$? |
---|
2188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2189 | (exit $ac_status); } && |
---|
2190 | { ac_try='test -s conftest.$ac_objext' |
---|
2191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2192 | (eval $ac_try) 2>&5 |
---|
2193 | ac_status=$? |
---|
2194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2195 | (exit $ac_status); }; }; then |
---|
2196 | ac_cv_prog_cxx_g=yes |
---|
2197 | else |
---|
2198 | echo "$as_me: failed program was:" >&5 |
---|
2199 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2200 | |
---|
2201 | ac_cv_prog_cxx_g=no |
---|
2202 | fi |
---|
2203 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2204 | fi |
---|
2205 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
2206 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
2207 | if test "$ac_test_CXXFLAGS" = set; then |
---|
2208 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
2209 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
2210 | if test "$GXX" = yes; then |
---|
2211 | CXXFLAGS="-g -O2" |
---|
2212 | else |
---|
2213 | CXXFLAGS="-g" |
---|
2214 | fi |
---|
2215 | else |
---|
2216 | if test "$GXX" = yes; then |
---|
2217 | CXXFLAGS="-O2" |
---|
2218 | else |
---|
2219 | CXXFLAGS= |
---|
2220 | fi |
---|
2221 | fi |
---|
2222 | for ac_declaration in \ |
---|
2223 | ''\ |
---|
2224 | '#include <stdlib.h>' \ |
---|
2225 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
2226 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
2227 | 'extern "C" void exit (int) throw ();' \ |
---|
2228 | 'extern "C" void exit (int);' \ |
---|
2229 | 'void exit (int);' |
---|
2230 | do |
---|
2231 | cat >conftest.$ac_ext <<_ACEOF |
---|
2232 | #line $LINENO "configure" |
---|
2233 | /* confdefs.h. */ |
---|
2234 | _ACEOF |
---|
2235 | cat confdefs.h >>conftest.$ac_ext |
---|
2236 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2237 | /* end confdefs.h. */ |
---|
2238 | #include <stdlib.h> |
---|
2239 | $ac_declaration |
---|
2240 | int |
---|
2241 | main () |
---|
2242 | { |
---|
2243 | exit (42); |
---|
2244 | ; |
---|
2245 | return 0; |
---|
2246 | } |
---|
2247 | _ACEOF |
---|
2248 | rm -f conftest.$ac_objext |
---|
2249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2250 | (eval $ac_compile) 2>&5 |
---|
2251 | ac_status=$? |
---|
2252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2253 | (exit $ac_status); } && |
---|
2254 | { ac_try='test -s conftest.$ac_objext' |
---|
2255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2256 | (eval $ac_try) 2>&5 |
---|
2257 | ac_status=$? |
---|
2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2259 | (exit $ac_status); }; }; then |
---|
2260 | : |
---|
2261 | else |
---|
2262 | echo "$as_me: failed program was:" >&5 |
---|
2263 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2264 | |
---|
2265 | continue |
---|
2266 | fi |
---|
2267 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2268 | cat >conftest.$ac_ext <<_ACEOF |
---|
2269 | #line $LINENO "configure" |
---|
2270 | /* confdefs.h. */ |
---|
2271 | _ACEOF |
---|
2272 | cat confdefs.h >>conftest.$ac_ext |
---|
2273 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2274 | /* end confdefs.h. */ |
---|
2275 | $ac_declaration |
---|
2276 | int |
---|
2277 | main () |
---|
2278 | { |
---|
2279 | exit (42); |
---|
2280 | ; |
---|
2281 | return 0; |
---|
2282 | } |
---|
2283 | _ACEOF |
---|
2284 | rm -f conftest.$ac_objext |
---|
2285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2286 | (eval $ac_compile) 2>&5 |
---|
2287 | ac_status=$? |
---|
2288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2289 | (exit $ac_status); } && |
---|
2290 | { ac_try='test -s conftest.$ac_objext' |
---|
2291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2292 | (eval $ac_try) 2>&5 |
---|
2293 | ac_status=$? |
---|
2294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2295 | (exit $ac_status); }; }; then |
---|
2296 | break |
---|
2297 | else |
---|
2298 | echo "$as_me: failed program was:" >&5 |
---|
2299 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2300 | |
---|
2301 | fi |
---|
2302 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2303 | done |
---|
2304 | rm -f conftest* |
---|
2305 | if test -n "$ac_declaration"; then |
---|
2306 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
2307 | echo $ac_declaration >>confdefs.h |
---|
2308 | echo '#endif' >>confdefs.h |
---|
2309 | fi |
---|
2310 | |
---|
2311 | ac_ext=c |
---|
2312 | ac_cpp='$CPP $CPPFLAGS' |
---|
2313 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2314 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2315 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2316 | DEPDIR="${am__leading_dot}deps" |
---|
2317 | |
---|
2318 | ac_config_commands="$ac_config_commands depfiles" |
---|
2319 | |
---|
2320 | |
---|
2321 | am_make=${MAKE-make} |
---|
2322 | cat > confinc << 'END' |
---|
2323 | am__doit: |
---|
2324 | @echo done |
---|
2325 | .PHONY: am__doit |
---|
2326 | END |
---|
2327 | # If we don't find an include directive, just comment out the code. |
---|
2328 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
---|
2329 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
---|
2330 | am__include="#" |
---|
2331 | am__quote= |
---|
2332 | _am_result=none |
---|
2333 | # First try GNU make style include. |
---|
2334 | echo "include confinc" > confmf |
---|
2335 | # We grep out `Entering directory' and `Leaving directory' |
---|
2336 | # messages which can occur if `w' ends up in MAKEFLAGS. |
---|
2337 | # In particular we don't look at `^make:' because GNU make might |
---|
2338 | # be invoked under some other name (usually "gmake"), in which |
---|
2339 | # case it prints its new name instead of `make'. |
---|
2340 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
---|
2341 | am__include=include |
---|
2342 | am__quote= |
---|
2343 | _am_result=GNU |
---|
2344 | fi |
---|
2345 | # Now try BSD make style include. |
---|
2346 | if test "$am__include" = "#"; then |
---|
2347 | echo '.include "confinc"' > confmf |
---|
2348 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
---|
2349 | am__include=.include |
---|
2350 | am__quote="\"" |
---|
2351 | _am_result=BSD |
---|
2352 | fi |
---|
2353 | fi |
---|
2354 | |
---|
2355 | |
---|
2356 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
---|
2357 | echo "${ECHO_T}$_am_result" >&6 |
---|
2358 | rm -f confinc confmf |
---|
2359 | |
---|
2360 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
---|
2361 | if test "${enable_dependency_tracking+set}" = set; then |
---|
2362 | enableval="$enable_dependency_tracking" |
---|
2363 | |
---|
2364 | fi; |
---|
2365 | if test "x$enable_dependency_tracking" != xno; then |
---|
2366 | am_depcomp="$ac_aux_dir/depcomp" |
---|
2367 | AMDEPBACKSLASH='\' |
---|
2368 | fi |
---|
2369 | |
---|
2370 | |
---|
2371 | if test "x$enable_dependency_tracking" != xno; then |
---|
2372 | AMDEP_TRUE= |
---|
2373 | AMDEP_FALSE='#' |
---|
2374 | else |
---|
2375 | AMDEP_TRUE='#' |
---|
2376 | AMDEP_FALSE= |
---|
2377 | fi |
---|
2378 | |
---|
2379 | |
---|
2380 | |
---|
2381 | |
---|
2382 | depcc="$CXX" am_compiler_list= |
---|
2383 | |
---|
2384 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
2385 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
2386 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
---|
2387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2388 | else |
---|
2389 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
2390 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
2391 | # making bogus files that we don't know about and never remove. For |
---|
2392 | # instance it was reported that on HP-UX the gcc test will end up |
---|
2393 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
2394 | # in D'. |
---|
2395 | mkdir conftest.dir |
---|
2396 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
2397 | # using a relative directory. |
---|
2398 | cp "$am_depcomp" conftest.dir |
---|
2399 | cd conftest.dir |
---|
2400 | # We will build objects and dependencies in a subdirectory because |
---|
2401 | # it helps to detect inapplicable dependency modes. For instance |
---|
2402 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
2403 | # side effect of compilation, but ICC will put the dependencies in |
---|
2404 | # the current directory while Tru64 will put them in the object |
---|
2405 | # directory. |
---|
2406 | mkdir sub |
---|
2407 | |
---|
2408 | am_cv_CXX_dependencies_compiler_type=none |
---|
2409 | if test "$am_compiler_list" = ""; then |
---|
2410 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
2411 | fi |
---|
2412 | for depmode in $am_compiler_list; do |
---|
2413 | # Setup a source with many dependencies, because some compilers |
---|
2414 | # like to wrap large dependency lists on column 80 (with \), and |
---|
2415 | # we should not choose a depcomp mode which is confused by this. |
---|
2416 | # |
---|
2417 | # We need to recreate these files for each test, as the compiler may |
---|
2418 | # overwrite some of them when testing with obscure command lines. |
---|
2419 | # This happens at least with the AIX C compiler. |
---|
2420 | : > sub/conftest.c |
---|
2421 | for i in 1 2 3 4 5 6; do |
---|
2422 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
2423 | : > sub/conftst$i.h |
---|
2424 | done |
---|
2425 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
2426 | |
---|
2427 | case $depmode in |
---|
2428 | nosideeffect) |
---|
2429 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
2430 | # only be used when explicitly requested |
---|
2431 | if test "x$enable_dependency_tracking" = xyes; then |
---|
2432 | continue |
---|
2433 | else |
---|
2434 | break |
---|
2435 | fi |
---|
2436 | ;; |
---|
2437 | none) break ;; |
---|
2438 | esac |
---|
2439 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
2440 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
2441 | # handle `-M -o', and we need to detect this. |
---|
2442 | if depmode=$depmode \ |
---|
2443 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
2444 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
2445 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
2446 | >/dev/null 2>conftest.err && |
---|
2447 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
2448 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
2449 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
2450 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
2451 | # (even with -Werror). So we grep stderr for any message |
---|
2452 | # that says an option was ignored. |
---|
2453 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
2454 | am_cv_CXX_dependencies_compiler_type=$depmode |
---|
2455 | break |
---|
2456 | fi |
---|
2457 | fi |
---|
2458 | done |
---|
2459 | |
---|
2460 | cd .. |
---|
2461 | rm -rf conftest.dir |
---|
2462 | else |
---|
2463 | am_cv_CXX_dependencies_compiler_type=none |
---|
2464 | fi |
---|
2465 | |
---|
2466 | fi |
---|
2467 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
---|
2468 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
---|
2469 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
---|
2470 | |
---|
2471 | |
---|
2472 | |
---|
2473 | if |
---|
2474 | test "x$enable_dependency_tracking" != xno \ |
---|
2475 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
---|
2476 | am__fastdepCXX_TRUE= |
---|
2477 | am__fastdepCXX_FALSE='#' |
---|
2478 | else |
---|
2479 | am__fastdepCXX_TRUE='#' |
---|
2480 | am__fastdepCXX_FALSE= |
---|
2481 | fi |
---|
2482 | |
---|
2483 | |
---|
2484 | ac_ext=c |
---|
2485 | ac_cpp='$CPP $CPPFLAGS' |
---|
2486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2489 | if test -n "$ac_tool_prefix"; then |
---|
2490 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2491 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2494 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2496 | else |
---|
2497 | if test -n "$CC"; then |
---|
2498 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2499 | else |
---|
2500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2501 | for as_dir in $PATH |
---|
2502 | do |
---|
2503 | IFS=$as_save_IFS |
---|
2504 | test -z "$as_dir" && as_dir=. |
---|
2505 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2507 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2509 | break 2 |
---|
2510 | fi |
---|
2511 | done |
---|
2512 | done |
---|
2513 | |
---|
2514 | fi |
---|
2515 | fi |
---|
2516 | CC=$ac_cv_prog_CC |
---|
2517 | if test -n "$CC"; then |
---|
2518 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2519 | echo "${ECHO_T}$CC" >&6 |
---|
2520 | else |
---|
2521 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2522 | echo "${ECHO_T}no" >&6 |
---|
2523 | fi |
---|
2524 | |
---|
2525 | fi |
---|
2526 | if test -z "$ac_cv_prog_CC"; then |
---|
2527 | ac_ct_CC=$CC |
---|
2528 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2529 | set dummy gcc; ac_word=$2 |
---|
2530 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2532 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2534 | else |
---|
2535 | if test -n "$ac_ct_CC"; then |
---|
2536 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2537 | else |
---|
2538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2539 | for as_dir in $PATH |
---|
2540 | do |
---|
2541 | IFS=$as_save_IFS |
---|
2542 | test -z "$as_dir" && as_dir=. |
---|
2543 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2544 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2545 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2547 | break 2 |
---|
2548 | fi |
---|
2549 | done |
---|
2550 | done |
---|
2551 | |
---|
2552 | fi |
---|
2553 | fi |
---|
2554 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2555 | if test -n "$ac_ct_CC"; then |
---|
2556 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2557 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2558 | else |
---|
2559 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2560 | echo "${ECHO_T}no" >&6 |
---|
2561 | fi |
---|
2562 | |
---|
2563 | CC=$ac_ct_CC |
---|
2564 | else |
---|
2565 | CC="$ac_cv_prog_CC" |
---|
2566 | fi |
---|
2567 | |
---|
2568 | if test -z "$CC"; then |
---|
2569 | if test -n "$ac_tool_prefix"; then |
---|
2570 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2571 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2572 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2573 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2574 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2576 | else |
---|
2577 | if test -n "$CC"; then |
---|
2578 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2579 | else |
---|
2580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2581 | for as_dir in $PATH |
---|
2582 | do |
---|
2583 | IFS=$as_save_IFS |
---|
2584 | test -z "$as_dir" && as_dir=. |
---|
2585 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2586 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2587 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2588 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2589 | break 2 |
---|
2590 | fi |
---|
2591 | done |
---|
2592 | done |
---|
2593 | |
---|
2594 | fi |
---|
2595 | fi |
---|
2596 | CC=$ac_cv_prog_CC |
---|
2597 | if test -n "$CC"; then |
---|
2598 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2599 | echo "${ECHO_T}$CC" >&6 |
---|
2600 | else |
---|
2601 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2602 | echo "${ECHO_T}no" >&6 |
---|
2603 | fi |
---|
2604 | |
---|
2605 | fi |
---|
2606 | if test -z "$ac_cv_prog_CC"; then |
---|
2607 | ac_ct_CC=$CC |
---|
2608 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2609 | set dummy cc; ac_word=$2 |
---|
2610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2612 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2614 | else |
---|
2615 | if test -n "$ac_ct_CC"; then |
---|
2616 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2617 | else |
---|
2618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2619 | for as_dir in $PATH |
---|
2620 | do |
---|
2621 | IFS=$as_save_IFS |
---|
2622 | test -z "$as_dir" && as_dir=. |
---|
2623 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2624 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2625 | ac_cv_prog_ac_ct_CC="cc" |
---|
2626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2627 | break 2 |
---|
2628 | fi |
---|
2629 | done |
---|
2630 | done |
---|
2631 | |
---|
2632 | fi |
---|
2633 | fi |
---|
2634 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2635 | if test -n "$ac_ct_CC"; then |
---|
2636 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2637 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2638 | else |
---|
2639 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2640 | echo "${ECHO_T}no" >&6 |
---|
2641 | fi |
---|
2642 | |
---|
2643 | CC=$ac_ct_CC |
---|
2644 | else |
---|
2645 | CC="$ac_cv_prog_CC" |
---|
2646 | fi |
---|
2647 | |
---|
2648 | fi |
---|
2649 | if test -z "$CC"; then |
---|
2650 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2651 | set dummy cc; ac_word=$2 |
---|
2652 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2653 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2654 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2656 | else |
---|
2657 | if test -n "$CC"; then |
---|
2658 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2659 | else |
---|
2660 | ac_prog_rejected=no |
---|
2661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2662 | for as_dir in $PATH |
---|
2663 | do |
---|
2664 | IFS=$as_save_IFS |
---|
2665 | test -z "$as_dir" && as_dir=. |
---|
2666 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2667 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2668 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2669 | ac_prog_rejected=yes |
---|
2670 | continue |
---|
2671 | fi |
---|
2672 | ac_cv_prog_CC="cc" |
---|
2673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2674 | break 2 |
---|
2675 | fi |
---|
2676 | done |
---|
2677 | done |
---|
2678 | |
---|
2679 | if test $ac_prog_rejected = yes; then |
---|
2680 | # We found a bogon in the path, so make sure we never use it. |
---|
2681 | set dummy $ac_cv_prog_CC |
---|
2682 | shift |
---|
2683 | if test $# != 0; then |
---|
2684 | # We chose a different compiler from the bogus one. |
---|
2685 | # However, it has the same basename, so the bogon will be chosen |
---|
2686 | # first if we set CC to just the basename; use the full file name. |
---|
2687 | shift |
---|
2688 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2689 | fi |
---|
2690 | fi |
---|
2691 | fi |
---|
2692 | fi |
---|
2693 | CC=$ac_cv_prog_CC |
---|
2694 | if test -n "$CC"; then |
---|
2695 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2696 | echo "${ECHO_T}$CC" >&6 |
---|
2697 | else |
---|
2698 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2699 | echo "${ECHO_T}no" >&6 |
---|
2700 | fi |
---|
2701 | |
---|
2702 | fi |
---|
2703 | if test -z "$CC"; then |
---|
2704 | if test -n "$ac_tool_prefix"; then |
---|
2705 | for ac_prog in cl |
---|
2706 | do |
---|
2707 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2708 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2709 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2710 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2711 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
2712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2713 | else |
---|
2714 | if test -n "$CC"; then |
---|
2715 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2716 | else |
---|
2717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2718 | for as_dir in $PATH |
---|
2719 | do |
---|
2720 | IFS=$as_save_IFS |
---|
2721 | test -z "$as_dir" && as_dir=. |
---|
2722 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2723 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2724 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2725 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2726 | break 2 |
---|
2727 | fi |
---|
2728 | done |
---|
2729 | done |
---|
2730 | |
---|
2731 | fi |
---|
2732 | fi |
---|
2733 | CC=$ac_cv_prog_CC |
---|
2734 | if test -n "$CC"; then |
---|
2735 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
2736 | echo "${ECHO_T}$CC" >&6 |
---|
2737 | else |
---|
2738 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2739 | echo "${ECHO_T}no" >&6 |
---|
2740 | fi |
---|
2741 | |
---|
2742 | test -n "$CC" && break |
---|
2743 | done |
---|
2744 | fi |
---|
2745 | if test -z "$CC"; then |
---|
2746 | ac_ct_CC=$CC |
---|
2747 | for ac_prog in cl |
---|
2748 | do |
---|
2749 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2750 | set dummy $ac_prog; ac_word=$2 |
---|
2751 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
2752 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
2753 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
2754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2755 | else |
---|
2756 | if test -n "$ac_ct_CC"; then |
---|
2757 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2758 | else |
---|
2759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2760 | for as_dir in $PATH |
---|
2761 | do |
---|
2762 | IFS=$as_save_IFS |
---|
2763 | test -z "$as_dir" && as_dir=. |
---|
2764 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2765 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
2766 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2767 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2768 | break 2 |
---|
2769 | fi |
---|
2770 | done |
---|
2771 | done |
---|
2772 | |
---|
2773 | fi |
---|
2774 | fi |
---|
2775 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2776 | if test -n "$ac_ct_CC"; then |
---|
2777 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
2778 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
2779 | else |
---|
2780 | echo "$as_me:$LINENO: result: no" >&5 |
---|
2781 | echo "${ECHO_T}no" >&6 |
---|
2782 | fi |
---|
2783 | |
---|
2784 | test -n "$ac_ct_CC" && break |
---|
2785 | done |
---|
2786 | |
---|
2787 | CC=$ac_ct_CC |
---|
2788 | fi |
---|
2789 | |
---|
2790 | fi |
---|
2791 | |
---|
2792 | |
---|
2793 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
2794 | See \`config.log' for more details." >&5 |
---|
2795 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
2796 | See \`config.log' for more details." >&2;} |
---|
2797 | { (exit 1); exit 1; }; } |
---|
2798 | |
---|
2799 | # Provide some information about the compiler. |
---|
2800 | echo "$as_me:$LINENO:" \ |
---|
2801 | "checking for C compiler version" >&5 |
---|
2802 | ac_compiler=`set X $ac_compile; echo $2` |
---|
2803 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
2804 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
2805 | ac_status=$? |
---|
2806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2807 | (exit $ac_status); } |
---|
2808 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
2809 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
2810 | ac_status=$? |
---|
2811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2812 | (exit $ac_status); } |
---|
2813 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
2814 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
2815 | ac_status=$? |
---|
2816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2817 | (exit $ac_status); } |
---|
2818 | |
---|
2819 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
2820 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
2821 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
2822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2823 | else |
---|
2824 | cat >conftest.$ac_ext <<_ACEOF |
---|
2825 | #line $LINENO "configure" |
---|
2826 | /* confdefs.h. */ |
---|
2827 | _ACEOF |
---|
2828 | cat confdefs.h >>conftest.$ac_ext |
---|
2829 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2830 | /* end confdefs.h. */ |
---|
2831 | |
---|
2832 | int |
---|
2833 | main () |
---|
2834 | { |
---|
2835 | #ifndef __GNUC__ |
---|
2836 | choke me |
---|
2837 | #endif |
---|
2838 | |
---|
2839 | ; |
---|
2840 | return 0; |
---|
2841 | } |
---|
2842 | _ACEOF |
---|
2843 | rm -f conftest.$ac_objext |
---|
2844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2845 | (eval $ac_compile) 2>&5 |
---|
2846 | ac_status=$? |
---|
2847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2848 | (exit $ac_status); } && |
---|
2849 | { ac_try='test -s conftest.$ac_objext' |
---|
2850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2851 | (eval $ac_try) 2>&5 |
---|
2852 | ac_status=$? |
---|
2853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2854 | (exit $ac_status); }; }; then |
---|
2855 | ac_compiler_gnu=yes |
---|
2856 | else |
---|
2857 | echo "$as_me: failed program was:" >&5 |
---|
2858 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2859 | |
---|
2860 | ac_compiler_gnu=no |
---|
2861 | fi |
---|
2862 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2863 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
2864 | |
---|
2865 | fi |
---|
2866 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
2867 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
2868 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
2869 | ac_test_CFLAGS=${CFLAGS+set} |
---|
2870 | ac_save_CFLAGS=$CFLAGS |
---|
2871 | CFLAGS="-g" |
---|
2872 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
2873 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
2874 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
2875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2876 | else |
---|
2877 | cat >conftest.$ac_ext <<_ACEOF |
---|
2878 | #line $LINENO "configure" |
---|
2879 | /* confdefs.h. */ |
---|
2880 | _ACEOF |
---|
2881 | cat confdefs.h >>conftest.$ac_ext |
---|
2882 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2883 | /* end confdefs.h. */ |
---|
2884 | |
---|
2885 | int |
---|
2886 | main () |
---|
2887 | { |
---|
2888 | |
---|
2889 | ; |
---|
2890 | return 0; |
---|
2891 | } |
---|
2892 | _ACEOF |
---|
2893 | rm -f conftest.$ac_objext |
---|
2894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2895 | (eval $ac_compile) 2>&5 |
---|
2896 | ac_status=$? |
---|
2897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2898 | (exit $ac_status); } && |
---|
2899 | { ac_try='test -s conftest.$ac_objext' |
---|
2900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2901 | (eval $ac_try) 2>&5 |
---|
2902 | ac_status=$? |
---|
2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2904 | (exit $ac_status); }; }; then |
---|
2905 | ac_cv_prog_cc_g=yes |
---|
2906 | else |
---|
2907 | echo "$as_me: failed program was:" >&5 |
---|
2908 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2909 | |
---|
2910 | ac_cv_prog_cc_g=no |
---|
2911 | fi |
---|
2912 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
2913 | fi |
---|
2914 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
2915 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
2916 | if test "$ac_test_CFLAGS" = set; then |
---|
2917 | CFLAGS=$ac_save_CFLAGS |
---|
2918 | elif test $ac_cv_prog_cc_g = yes; then |
---|
2919 | if test "$GCC" = yes; then |
---|
2920 | CFLAGS="-g -O2" |
---|
2921 | else |
---|
2922 | CFLAGS="-g" |
---|
2923 | fi |
---|
2924 | else |
---|
2925 | if test "$GCC" = yes; then |
---|
2926 | CFLAGS="-O2" |
---|
2927 | else |
---|
2928 | CFLAGS= |
---|
2929 | fi |
---|
2930 | fi |
---|
2931 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
2932 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
2933 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
2934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
2935 | else |
---|
2936 | ac_cv_prog_cc_stdc=no |
---|
2937 | ac_save_CC=$CC |
---|
2938 | cat >conftest.$ac_ext <<_ACEOF |
---|
2939 | #line $LINENO "configure" |
---|
2940 | /* confdefs.h. */ |
---|
2941 | _ACEOF |
---|
2942 | cat confdefs.h >>conftest.$ac_ext |
---|
2943 | cat >>conftest.$ac_ext <<_ACEOF |
---|
2944 | /* end confdefs.h. */ |
---|
2945 | #include <stdarg.h> |
---|
2946 | #include <stdio.h> |
---|
2947 | #include <sys/types.h> |
---|
2948 | #include <sys/stat.h> |
---|
2949 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
2950 | struct buf { int x; }; |
---|
2951 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
2952 | static char *e (p, i) |
---|
2953 | char **p; |
---|
2954 | int i; |
---|
2955 | { |
---|
2956 | return p[i]; |
---|
2957 | } |
---|
2958 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
2959 | { |
---|
2960 | char *s; |
---|
2961 | va_list v; |
---|
2962 | va_start (v,p); |
---|
2963 | s = g (p, va_arg (v,int)); |
---|
2964 | va_end (v); |
---|
2965 | return s; |
---|
2966 | } |
---|
2967 | int test (int i, double x); |
---|
2968 | struct s1 {int (*f) (int a);}; |
---|
2969 | struct s2 {int (*f) (double a);}; |
---|
2970 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
2971 | int argc; |
---|
2972 | char **argv; |
---|
2973 | int |
---|
2974 | main () |
---|
2975 | { |
---|
2976 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
2977 | ; |
---|
2978 | return 0; |
---|
2979 | } |
---|
2980 | _ACEOF |
---|
2981 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
2982 | # breaks some systems' header files. |
---|
2983 | # AIX -qlanglvl=ansi |
---|
2984 | # Ultrix and OSF/1 -std1 |
---|
2985 | # HP-UX 10.20 and later -Ae |
---|
2986 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
2987 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
2988 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
2989 | do |
---|
2990 | CC="$ac_save_CC $ac_arg" |
---|
2991 | rm -f conftest.$ac_objext |
---|
2992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
2993 | (eval $ac_compile) 2>&5 |
---|
2994 | ac_status=$? |
---|
2995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
2996 | (exit $ac_status); } && |
---|
2997 | { ac_try='test -s conftest.$ac_objext' |
---|
2998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
2999 | (eval $ac_try) 2>&5 |
---|
3000 | ac_status=$? |
---|
3001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3002 | (exit $ac_status); }; }; then |
---|
3003 | ac_cv_prog_cc_stdc=$ac_arg |
---|
3004 | break |
---|
3005 | else |
---|
3006 | echo "$as_me: failed program was:" >&5 |
---|
3007 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3008 | |
---|
3009 | fi |
---|
3010 | rm -f conftest.$ac_objext |
---|
3011 | done |
---|
3012 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
3013 | CC=$ac_save_CC |
---|
3014 | |
---|
3015 | fi |
---|
3016 | |
---|
3017 | case "x$ac_cv_prog_cc_stdc" in |
---|
3018 | x|xno) |
---|
3019 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
3020 | echo "${ECHO_T}none needed" >&6 ;; |
---|
3021 | *) |
---|
3022 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
3023 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
3024 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
3025 | esac |
---|
3026 | |
---|
3027 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
3028 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
3029 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
3030 | # the declaration of exit, since it's the most demanding environment. |
---|
3031 | cat >conftest.$ac_ext <<_ACEOF |
---|
3032 | #ifndef __cplusplus |
---|
3033 | choke me |
---|
3034 | #endif |
---|
3035 | _ACEOF |
---|
3036 | rm -f conftest.$ac_objext |
---|
3037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3038 | (eval $ac_compile) 2>&5 |
---|
3039 | ac_status=$? |
---|
3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3041 | (exit $ac_status); } && |
---|
3042 | { ac_try='test -s conftest.$ac_objext' |
---|
3043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3044 | (eval $ac_try) 2>&5 |
---|
3045 | ac_status=$? |
---|
3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3047 | (exit $ac_status); }; }; then |
---|
3048 | for ac_declaration in \ |
---|
3049 | ''\ |
---|
3050 | '#include <stdlib.h>' \ |
---|
3051 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
3052 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
3053 | 'extern "C" void exit (int) throw ();' \ |
---|
3054 | 'extern "C" void exit (int);' \ |
---|
3055 | 'void exit (int);' |
---|
3056 | do |
---|
3057 | cat >conftest.$ac_ext <<_ACEOF |
---|
3058 | #line $LINENO "configure" |
---|
3059 | /* confdefs.h. */ |
---|
3060 | _ACEOF |
---|
3061 | cat confdefs.h >>conftest.$ac_ext |
---|
3062 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3063 | /* end confdefs.h. */ |
---|
3064 | #include <stdlib.h> |
---|
3065 | $ac_declaration |
---|
3066 | int |
---|
3067 | main () |
---|
3068 | { |
---|
3069 | exit (42); |
---|
3070 | ; |
---|
3071 | return 0; |
---|
3072 | } |
---|
3073 | _ACEOF |
---|
3074 | rm -f conftest.$ac_objext |
---|
3075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3076 | (eval $ac_compile) 2>&5 |
---|
3077 | ac_status=$? |
---|
3078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3079 | (exit $ac_status); } && |
---|
3080 | { ac_try='test -s conftest.$ac_objext' |
---|
3081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3082 | (eval $ac_try) 2>&5 |
---|
3083 | ac_status=$? |
---|
3084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3085 | (exit $ac_status); }; }; then |
---|
3086 | : |
---|
3087 | else |
---|
3088 | echo "$as_me: failed program was:" >&5 |
---|
3089 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3090 | |
---|
3091 | continue |
---|
3092 | fi |
---|
3093 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3094 | cat >conftest.$ac_ext <<_ACEOF |
---|
3095 | #line $LINENO "configure" |
---|
3096 | /* confdefs.h. */ |
---|
3097 | _ACEOF |
---|
3098 | cat confdefs.h >>conftest.$ac_ext |
---|
3099 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3100 | /* end confdefs.h. */ |
---|
3101 | $ac_declaration |
---|
3102 | int |
---|
3103 | main () |
---|
3104 | { |
---|
3105 | exit (42); |
---|
3106 | ; |
---|
3107 | return 0; |
---|
3108 | } |
---|
3109 | _ACEOF |
---|
3110 | rm -f conftest.$ac_objext |
---|
3111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3112 | (eval $ac_compile) 2>&5 |
---|
3113 | ac_status=$? |
---|
3114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3115 | (exit $ac_status); } && |
---|
3116 | { ac_try='test -s conftest.$ac_objext' |
---|
3117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3118 | (eval $ac_try) 2>&5 |
---|
3119 | ac_status=$? |
---|
3120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3121 | (exit $ac_status); }; }; then |
---|
3122 | break |
---|
3123 | else |
---|
3124 | echo "$as_me: failed program was:" >&5 |
---|
3125 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3126 | |
---|
3127 | fi |
---|
3128 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3129 | done |
---|
3130 | rm -f conftest* |
---|
3131 | if test -n "$ac_declaration"; then |
---|
3132 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
3133 | echo $ac_declaration >>confdefs.h |
---|
3134 | echo '#endif' >>confdefs.h |
---|
3135 | fi |
---|
3136 | |
---|
3137 | else |
---|
3138 | echo "$as_me: failed program was:" >&5 |
---|
3139 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3140 | |
---|
3141 | fi |
---|
3142 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3143 | ac_ext=c |
---|
3144 | ac_cpp='$CPP $CPPFLAGS' |
---|
3145 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3146 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3148 | |
---|
3149 | depcc="$CC" am_compiler_list= |
---|
3150 | |
---|
3151 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
---|
3152 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
---|
3153 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
---|
3154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3155 | else |
---|
3156 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3157 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3158 | # making bogus files that we don't know about and never remove. For |
---|
3159 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3160 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3161 | # in D'. |
---|
3162 | mkdir conftest.dir |
---|
3163 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3164 | # using a relative directory. |
---|
3165 | cp "$am_depcomp" conftest.dir |
---|
3166 | cd conftest.dir |
---|
3167 | # We will build objects and dependencies in a subdirectory because |
---|
3168 | # it helps to detect inapplicable dependency modes. For instance |
---|
3169 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3170 | # side effect of compilation, but ICC will put the dependencies in |
---|
3171 | # the current directory while Tru64 will put them in the object |
---|
3172 | # directory. |
---|
3173 | mkdir sub |
---|
3174 | |
---|
3175 | am_cv_CC_dependencies_compiler_type=none |
---|
3176 | if test "$am_compiler_list" = ""; then |
---|
3177 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3178 | fi |
---|
3179 | for depmode in $am_compiler_list; do |
---|
3180 | # Setup a source with many dependencies, because some compilers |
---|
3181 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3182 | # we should not choose a depcomp mode which is confused by this. |
---|
3183 | # |
---|
3184 | # We need to recreate these files for each test, as the compiler may |
---|
3185 | # overwrite some of them when testing with obscure command lines. |
---|
3186 | # This happens at least with the AIX C compiler. |
---|
3187 | : > sub/conftest.c |
---|
3188 | for i in 1 2 3 4 5 6; do |
---|
3189 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3190 | : > sub/conftst$i.h |
---|
3191 | done |
---|
3192 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3193 | |
---|
3194 | case $depmode in |
---|
3195 | nosideeffect) |
---|
3196 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3197 | # only be used when explicitly requested |
---|
3198 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3199 | continue |
---|
3200 | else |
---|
3201 | break |
---|
3202 | fi |
---|
3203 | ;; |
---|
3204 | none) break ;; |
---|
3205 | esac |
---|
3206 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3207 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3208 | # handle `-M -o', and we need to detect this. |
---|
3209 | if depmode=$depmode \ |
---|
3210 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
---|
3211 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3212 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
---|
3213 | >/dev/null 2>conftest.err && |
---|
3214 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3215 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
---|
3216 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3217 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3218 | # (even with -Werror). So we grep stderr for any message |
---|
3219 | # that says an option was ignored. |
---|
3220 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
---|
3221 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3222 | break |
---|
3223 | fi |
---|
3224 | fi |
---|
3225 | done |
---|
3226 | |
---|
3227 | cd .. |
---|
3228 | rm -rf conftest.dir |
---|
3229 | else |
---|
3230 | am_cv_CC_dependencies_compiler_type=none |
---|
3231 | fi |
---|
3232 | |
---|
3233 | fi |
---|
3234 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3235 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
---|
3236 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3237 | |
---|
3238 | |
---|
3239 | |
---|
3240 | if |
---|
3241 | test "x$enable_dependency_tracking" != xno \ |
---|
3242 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3243 | am__fastdepCC_TRUE= |
---|
3244 | am__fastdepCC_FALSE='#' |
---|
3245 | else |
---|
3246 | am__fastdepCC_TRUE='#' |
---|
3247 | am__fastdepCC_FALSE= |
---|
3248 | fi |
---|
3249 | |
---|
3250 | |
---|
3251 | |
---|
3252 | ac_ext=c |
---|
3253 | ac_cpp='$CPP $CPPFLAGS' |
---|
3254 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3255 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3256 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3257 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
3258 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
3259 | # On Suns, sometimes $CPP names a directory. |
---|
3260 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3261 | CPP= |
---|
3262 | fi |
---|
3263 | if test -z "$CPP"; then |
---|
3264 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
3265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3266 | else |
---|
3267 | # Double quotes because CPP needs to be expanded |
---|
3268 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3269 | do |
---|
3270 | ac_preproc_ok=false |
---|
3271 | for ac_c_preproc_warn_flag in '' yes |
---|
3272 | do |
---|
3273 | # Use a header file that comes with gcc, so configuring glibc |
---|
3274 | # with a fresh cross-compiler works. |
---|
3275 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3276 | # <limits.h> exists even on freestanding compilers. |
---|
3277 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3278 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3279 | cat >conftest.$ac_ext <<_ACEOF |
---|
3280 | #line $LINENO "configure" |
---|
3281 | /* confdefs.h. */ |
---|
3282 | _ACEOF |
---|
3283 | cat confdefs.h >>conftest.$ac_ext |
---|
3284 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3285 | /* end confdefs.h. */ |
---|
3286 | #ifdef __STDC__ |
---|
3287 | # include <limits.h> |
---|
3288 | #else |
---|
3289 | # include <assert.h> |
---|
3290 | #endif |
---|
3291 | Syntax error |
---|
3292 | _ACEOF |
---|
3293 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3294 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3295 | ac_status=$? |
---|
3296 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3297 | rm -f conftest.er1 |
---|
3298 | cat conftest.err >&5 |
---|
3299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3300 | (exit $ac_status); } >/dev/null; then |
---|
3301 | if test -s conftest.err; then |
---|
3302 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3303 | else |
---|
3304 | ac_cpp_err= |
---|
3305 | fi |
---|
3306 | else |
---|
3307 | ac_cpp_err=yes |
---|
3308 | fi |
---|
3309 | if test -z "$ac_cpp_err"; then |
---|
3310 | : |
---|
3311 | else |
---|
3312 | echo "$as_me: failed program was:" >&5 |
---|
3313 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3314 | |
---|
3315 | # Broken: fails on valid input. |
---|
3316 | continue |
---|
3317 | fi |
---|
3318 | rm -f conftest.err conftest.$ac_ext |
---|
3319 | |
---|
3320 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3321 | # can be detected and how. |
---|
3322 | cat >conftest.$ac_ext <<_ACEOF |
---|
3323 | #line $LINENO "configure" |
---|
3324 | /* confdefs.h. */ |
---|
3325 | _ACEOF |
---|
3326 | cat confdefs.h >>conftest.$ac_ext |
---|
3327 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3328 | /* end confdefs.h. */ |
---|
3329 | #include <ac_nonexistent.h> |
---|
3330 | _ACEOF |
---|
3331 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3332 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3333 | ac_status=$? |
---|
3334 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3335 | rm -f conftest.er1 |
---|
3336 | cat conftest.err >&5 |
---|
3337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3338 | (exit $ac_status); } >/dev/null; then |
---|
3339 | if test -s conftest.err; then |
---|
3340 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3341 | else |
---|
3342 | ac_cpp_err= |
---|
3343 | fi |
---|
3344 | else |
---|
3345 | ac_cpp_err=yes |
---|
3346 | fi |
---|
3347 | if test -z "$ac_cpp_err"; then |
---|
3348 | # Broken: success on invalid input. |
---|
3349 | continue |
---|
3350 | else |
---|
3351 | echo "$as_me: failed program was:" >&5 |
---|
3352 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3353 | |
---|
3354 | # Passes both tests. |
---|
3355 | ac_preproc_ok=: |
---|
3356 | break |
---|
3357 | fi |
---|
3358 | rm -f conftest.err conftest.$ac_ext |
---|
3359 | |
---|
3360 | done |
---|
3361 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3362 | rm -f conftest.err conftest.$ac_ext |
---|
3363 | if $ac_preproc_ok; then |
---|
3364 | break |
---|
3365 | fi |
---|
3366 | |
---|
3367 | done |
---|
3368 | ac_cv_prog_CPP=$CPP |
---|
3369 | |
---|
3370 | fi |
---|
3371 | CPP=$ac_cv_prog_CPP |
---|
3372 | else |
---|
3373 | ac_cv_prog_CPP=$CPP |
---|
3374 | fi |
---|
3375 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
3376 | echo "${ECHO_T}$CPP" >&6 |
---|
3377 | ac_preproc_ok=false |
---|
3378 | for ac_c_preproc_warn_flag in '' yes |
---|
3379 | do |
---|
3380 | # Use a header file that comes with gcc, so configuring glibc |
---|
3381 | # with a fresh cross-compiler works. |
---|
3382 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3383 | # <limits.h> exists even on freestanding compilers. |
---|
3384 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3385 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3386 | cat >conftest.$ac_ext <<_ACEOF |
---|
3387 | #line $LINENO "configure" |
---|
3388 | /* confdefs.h. */ |
---|
3389 | _ACEOF |
---|
3390 | cat confdefs.h >>conftest.$ac_ext |
---|
3391 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3392 | /* end confdefs.h. */ |
---|
3393 | #ifdef __STDC__ |
---|
3394 | # include <limits.h> |
---|
3395 | #else |
---|
3396 | # include <assert.h> |
---|
3397 | #endif |
---|
3398 | Syntax error |
---|
3399 | _ACEOF |
---|
3400 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3401 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3402 | ac_status=$? |
---|
3403 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3404 | rm -f conftest.er1 |
---|
3405 | cat conftest.err >&5 |
---|
3406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3407 | (exit $ac_status); } >/dev/null; then |
---|
3408 | if test -s conftest.err; then |
---|
3409 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3410 | else |
---|
3411 | ac_cpp_err= |
---|
3412 | fi |
---|
3413 | else |
---|
3414 | ac_cpp_err=yes |
---|
3415 | fi |
---|
3416 | if test -z "$ac_cpp_err"; then |
---|
3417 | : |
---|
3418 | else |
---|
3419 | echo "$as_me: failed program was:" >&5 |
---|
3420 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3421 | |
---|
3422 | # Broken: fails on valid input. |
---|
3423 | continue |
---|
3424 | fi |
---|
3425 | rm -f conftest.err conftest.$ac_ext |
---|
3426 | |
---|
3427 | # OK, works on sane cases. Now check whether non-existent headers |
---|
3428 | # can be detected and how. |
---|
3429 | cat >conftest.$ac_ext <<_ACEOF |
---|
3430 | #line $LINENO "configure" |
---|
3431 | /* confdefs.h. */ |
---|
3432 | _ACEOF |
---|
3433 | cat confdefs.h >>conftest.$ac_ext |
---|
3434 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3435 | /* end confdefs.h. */ |
---|
3436 | #include <ac_nonexistent.h> |
---|
3437 | _ACEOF |
---|
3438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3440 | ac_status=$? |
---|
3441 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3442 | rm -f conftest.er1 |
---|
3443 | cat conftest.err >&5 |
---|
3444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3445 | (exit $ac_status); } >/dev/null; then |
---|
3446 | if test -s conftest.err; then |
---|
3447 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3448 | else |
---|
3449 | ac_cpp_err= |
---|
3450 | fi |
---|
3451 | else |
---|
3452 | ac_cpp_err=yes |
---|
3453 | fi |
---|
3454 | if test -z "$ac_cpp_err"; then |
---|
3455 | # Broken: success on invalid input. |
---|
3456 | continue |
---|
3457 | else |
---|
3458 | echo "$as_me: failed program was:" >&5 |
---|
3459 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3460 | |
---|
3461 | # Passes both tests. |
---|
3462 | ac_preproc_ok=: |
---|
3463 | break |
---|
3464 | fi |
---|
3465 | rm -f conftest.err conftest.$ac_ext |
---|
3466 | |
---|
3467 | done |
---|
3468 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3469 | rm -f conftest.err conftest.$ac_ext |
---|
3470 | if $ac_preproc_ok; then |
---|
3471 | : |
---|
3472 | else |
---|
3473 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
3474 | See \`config.log' for more details." >&5 |
---|
3475 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
3476 | See \`config.log' for more details." >&2;} |
---|
3477 | { (exit 1); exit 1; }; } |
---|
3478 | fi |
---|
3479 | |
---|
3480 | ac_ext=c |
---|
3481 | ac_cpp='$CPP $CPPFLAGS' |
---|
3482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3485 | |
---|
3486 | |
---|
3487 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
3488 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
3489 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
3490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3491 | else |
---|
3492 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
3493 | then ac_cv_prog_egrep='grep -E' |
---|
3494 | else ac_cv_prog_egrep='egrep' |
---|
3495 | fi |
---|
3496 | fi |
---|
3497 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
3498 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
3499 | EGREP=$ac_cv_prog_egrep |
---|
3500 | |
---|
3501 | |
---|
3502 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
3503 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
3504 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
3505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3506 | else |
---|
3507 | cat >conftest.$ac_ext <<_ACEOF |
---|
3508 | #line $LINENO "configure" |
---|
3509 | /* confdefs.h. */ |
---|
3510 | _ACEOF |
---|
3511 | cat confdefs.h >>conftest.$ac_ext |
---|
3512 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3513 | /* end confdefs.h. */ |
---|
3514 | #include <stdlib.h> |
---|
3515 | #include <stdarg.h> |
---|
3516 | #include <string.h> |
---|
3517 | #include <float.h> |
---|
3518 | |
---|
3519 | int |
---|
3520 | main () |
---|
3521 | { |
---|
3522 | |
---|
3523 | ; |
---|
3524 | return 0; |
---|
3525 | } |
---|
3526 | _ACEOF |
---|
3527 | rm -f conftest.$ac_objext |
---|
3528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3529 | (eval $ac_compile) 2>&5 |
---|
3530 | ac_status=$? |
---|
3531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3532 | (exit $ac_status); } && |
---|
3533 | { ac_try='test -s conftest.$ac_objext' |
---|
3534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3535 | (eval $ac_try) 2>&5 |
---|
3536 | ac_status=$? |
---|
3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3538 | (exit $ac_status); }; }; then |
---|
3539 | ac_cv_header_stdc=yes |
---|
3540 | else |
---|
3541 | echo "$as_me: failed program was:" >&5 |
---|
3542 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3543 | |
---|
3544 | ac_cv_header_stdc=no |
---|
3545 | fi |
---|
3546 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3547 | |
---|
3548 | if test $ac_cv_header_stdc = yes; then |
---|
3549 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3550 | cat >conftest.$ac_ext <<_ACEOF |
---|
3551 | #line $LINENO "configure" |
---|
3552 | /* confdefs.h. */ |
---|
3553 | _ACEOF |
---|
3554 | cat confdefs.h >>conftest.$ac_ext |
---|
3555 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3556 | /* end confdefs.h. */ |
---|
3557 | #include <string.h> |
---|
3558 | |
---|
3559 | _ACEOF |
---|
3560 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3561 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
3562 | : |
---|
3563 | else |
---|
3564 | ac_cv_header_stdc=no |
---|
3565 | fi |
---|
3566 | rm -f conftest* |
---|
3567 | |
---|
3568 | fi |
---|
3569 | |
---|
3570 | if test $ac_cv_header_stdc = yes; then |
---|
3571 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3572 | cat >conftest.$ac_ext <<_ACEOF |
---|
3573 | #line $LINENO "configure" |
---|
3574 | /* confdefs.h. */ |
---|
3575 | _ACEOF |
---|
3576 | cat confdefs.h >>conftest.$ac_ext |
---|
3577 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3578 | /* end confdefs.h. */ |
---|
3579 | #include <stdlib.h> |
---|
3580 | |
---|
3581 | _ACEOF |
---|
3582 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3583 | $EGREP "free" >/dev/null 2>&1; then |
---|
3584 | : |
---|
3585 | else |
---|
3586 | ac_cv_header_stdc=no |
---|
3587 | fi |
---|
3588 | rm -f conftest* |
---|
3589 | |
---|
3590 | fi |
---|
3591 | |
---|
3592 | if test $ac_cv_header_stdc = yes; then |
---|
3593 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3594 | if test "$cross_compiling" = yes; then |
---|
3595 | : |
---|
3596 | else |
---|
3597 | cat >conftest.$ac_ext <<_ACEOF |
---|
3598 | #line $LINENO "configure" |
---|
3599 | /* confdefs.h. */ |
---|
3600 | _ACEOF |
---|
3601 | cat confdefs.h >>conftest.$ac_ext |
---|
3602 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3603 | /* end confdefs.h. */ |
---|
3604 | #include <ctype.h> |
---|
3605 | #if ((' ' & 0x0FF) == 0x020) |
---|
3606 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3607 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3608 | #else |
---|
3609 | # define ISLOWER(c) \ |
---|
3610 | (('a' <= (c) && (c) <= 'i') \ |
---|
3611 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3612 | || ('s' <= (c) && (c) <= 'z')) |
---|
3613 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3614 | #endif |
---|
3615 | |
---|
3616 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3617 | int |
---|
3618 | main () |
---|
3619 | { |
---|
3620 | int i; |
---|
3621 | for (i = 0; i < 256; i++) |
---|
3622 | if (XOR (islower (i), ISLOWER (i)) |
---|
3623 | || toupper (i) != TOUPPER (i)) |
---|
3624 | exit(2); |
---|
3625 | exit (0); |
---|
3626 | } |
---|
3627 | _ACEOF |
---|
3628 | rm -f conftest$ac_exeext |
---|
3629 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3630 | (eval $ac_link) 2>&5 |
---|
3631 | ac_status=$? |
---|
3632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3633 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
3634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3635 | (eval $ac_try) 2>&5 |
---|
3636 | ac_status=$? |
---|
3637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3638 | (exit $ac_status); }; }; then |
---|
3639 | : |
---|
3640 | else |
---|
3641 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
3642 | echo "$as_me: failed program was:" >&5 |
---|
3643 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3644 | |
---|
3645 | ( exit $ac_status ) |
---|
3646 | ac_cv_header_stdc=no |
---|
3647 | fi |
---|
3648 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
3649 | fi |
---|
3650 | fi |
---|
3651 | fi |
---|
3652 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
3653 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
3654 | if test $ac_cv_header_stdc = yes; then |
---|
3655 | |
---|
3656 | cat >>confdefs.h <<\_ACEOF |
---|
3657 | #define STDC_HEADERS 1 |
---|
3658 | _ACEOF |
---|
3659 | |
---|
3660 | fi |
---|
3661 | |
---|
3662 | |
---|
3663 | ### CHECKING FOR SYSTEM ### |
---|
3664 | |
---|
3665 | echo "$as_me:$LINENO: checking for System" >&5 |
---|
3666 | echo $ECHO_N "checking for System... $ECHO_C" >&6 |
---|
3667 | ## checking for openGL-environment and other sys-specific parameters |
---|
3668 | case "$target" in |
---|
3669 | ### WINDOWS ### |
---|
3670 | *-*-mingw32*) |
---|
3671 | echo "mingw-WINDOWS detected" |
---|
3672 | |
---|
3673 | mingw="yes" |
---|
3674 | MSBITFIELDS="-mms-bitfields" |
---|
3675 | MWINDOWS="-mwindows" |
---|
3676 | |
---|
3677 | # checking gl header |
---|
3678 | #done before loop |
---|
3679 | |
---|
3680 | # checking gl header |
---|
3681 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3682 | |
---|
3683 | |
---|
3684 | |
---|
3685 | |
---|
3686 | |
---|
3687 | |
---|
3688 | |
---|
3689 | |
---|
3690 | |
---|
3691 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3692 | inttypes.h stdint.h unistd.h |
---|
3693 | do |
---|
3694 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3695 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3696 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3697 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3699 | else |
---|
3700 | cat >conftest.$ac_ext <<_ACEOF |
---|
3701 | #line $LINENO "configure" |
---|
3702 | /* confdefs.h. */ |
---|
3703 | _ACEOF |
---|
3704 | cat confdefs.h >>conftest.$ac_ext |
---|
3705 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3706 | /* end confdefs.h. */ |
---|
3707 | $ac_includes_default |
---|
3708 | |
---|
3709 | #include <$ac_header> |
---|
3710 | _ACEOF |
---|
3711 | rm -f conftest.$ac_objext |
---|
3712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3713 | (eval $ac_compile) 2>&5 |
---|
3714 | ac_status=$? |
---|
3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3716 | (exit $ac_status); } && |
---|
3717 | { ac_try='test -s conftest.$ac_objext' |
---|
3718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3719 | (eval $ac_try) 2>&5 |
---|
3720 | ac_status=$? |
---|
3721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3722 | (exit $ac_status); }; }; then |
---|
3723 | eval "$as_ac_Header=yes" |
---|
3724 | else |
---|
3725 | echo "$as_me: failed program was:" >&5 |
---|
3726 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3727 | |
---|
3728 | eval "$as_ac_Header=no" |
---|
3729 | fi |
---|
3730 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3731 | fi |
---|
3732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3734 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3735 | cat >>confdefs.h <<_ACEOF |
---|
3736 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3737 | _ACEOF |
---|
3738 | |
---|
3739 | fi |
---|
3740 | |
---|
3741 | done |
---|
3742 | |
---|
3743 | |
---|
3744 | |
---|
3745 | for ac_header in GL/gl.h |
---|
3746 | do |
---|
3747 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3748 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3749 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3750 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3751 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3753 | fi |
---|
3754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3755 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3756 | else |
---|
3757 | # Is the header compilable? |
---|
3758 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3759 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3760 | cat >conftest.$ac_ext <<_ACEOF |
---|
3761 | #line $LINENO "configure" |
---|
3762 | /* confdefs.h. */ |
---|
3763 | _ACEOF |
---|
3764 | cat confdefs.h >>conftest.$ac_ext |
---|
3765 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3766 | /* end confdefs.h. */ |
---|
3767 | $ac_includes_default |
---|
3768 | #include <$ac_header> |
---|
3769 | _ACEOF |
---|
3770 | rm -f conftest.$ac_objext |
---|
3771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3772 | (eval $ac_compile) 2>&5 |
---|
3773 | ac_status=$? |
---|
3774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3775 | (exit $ac_status); } && |
---|
3776 | { ac_try='test -s conftest.$ac_objext' |
---|
3777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3778 | (eval $ac_try) 2>&5 |
---|
3779 | ac_status=$? |
---|
3780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3781 | (exit $ac_status); }; }; then |
---|
3782 | ac_header_compiler=yes |
---|
3783 | else |
---|
3784 | echo "$as_me: failed program was:" >&5 |
---|
3785 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3786 | |
---|
3787 | ac_header_compiler=no |
---|
3788 | fi |
---|
3789 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
3790 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
3791 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
3792 | |
---|
3793 | # Is the header present? |
---|
3794 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
3795 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
3796 | cat >conftest.$ac_ext <<_ACEOF |
---|
3797 | #line $LINENO "configure" |
---|
3798 | /* confdefs.h. */ |
---|
3799 | _ACEOF |
---|
3800 | cat confdefs.h >>conftest.$ac_ext |
---|
3801 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3802 | /* end confdefs.h. */ |
---|
3803 | #include <$ac_header> |
---|
3804 | _ACEOF |
---|
3805 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
3806 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
3807 | ac_status=$? |
---|
3808 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
3809 | rm -f conftest.er1 |
---|
3810 | cat conftest.err >&5 |
---|
3811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3812 | (exit $ac_status); } >/dev/null; then |
---|
3813 | if test -s conftest.err; then |
---|
3814 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
3815 | else |
---|
3816 | ac_cpp_err= |
---|
3817 | fi |
---|
3818 | else |
---|
3819 | ac_cpp_err=yes |
---|
3820 | fi |
---|
3821 | if test -z "$ac_cpp_err"; then |
---|
3822 | ac_header_preproc=yes |
---|
3823 | else |
---|
3824 | echo "$as_me: failed program was:" >&5 |
---|
3825 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3826 | |
---|
3827 | ac_header_preproc=no |
---|
3828 | fi |
---|
3829 | rm -f conftest.err conftest.$ac_ext |
---|
3830 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
3831 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
3832 | |
---|
3833 | # So? What about this header? |
---|
3834 | case $ac_header_compiler:$ac_header_preproc in |
---|
3835 | yes:no ) |
---|
3836 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
3837 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
3838 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3839 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
3840 | ( |
---|
3841 | cat <<\_ASBOX |
---|
3842 | ## ------------------------------------ ## |
---|
3843 | ## Report this to bug-autoconf@gnu.org. ## |
---|
3844 | ## ------------------------------------ ## |
---|
3845 | _ASBOX |
---|
3846 | ) | |
---|
3847 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
3848 | ;; |
---|
3849 | no:yes ) |
---|
3850 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
3851 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
3852 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
3853 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
3854 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
3855 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
3856 | ( |
---|
3857 | cat <<\_ASBOX |
---|
3858 | ## ------------------------------------ ## |
---|
3859 | ## Report this to bug-autoconf@gnu.org. ## |
---|
3860 | ## ------------------------------------ ## |
---|
3861 | _ASBOX |
---|
3862 | ) | |
---|
3863 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
3864 | ;; |
---|
3865 | esac |
---|
3866 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3867 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3868 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3870 | else |
---|
3871 | eval "$as_ac_Header=$ac_header_preproc" |
---|
3872 | fi |
---|
3873 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3874 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3875 | |
---|
3876 | fi |
---|
3877 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
3878 | cat >>confdefs.h <<_ACEOF |
---|
3879 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3880 | _ACEOF |
---|
3881 | |
---|
3882 | else |
---|
3883 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
3884 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
3885 | { (exit 1); exit 1; }; } |
---|
3886 | fi |
---|
3887 | |
---|
3888 | done |
---|
3889 | |
---|
3890 | # checking for Windows openGl library |
---|
3891 | echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 |
---|
3892 | echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 |
---|
3893 | if test "${ac_cv_lib_opengl32_main+set}" = set; then |
---|
3894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3895 | else |
---|
3896 | ac_check_lib_save_LIBS=$LIBS |
---|
3897 | LIBS="-lopengl32 $LIBS" |
---|
3898 | cat >conftest.$ac_ext <<_ACEOF |
---|
3899 | #line $LINENO "configure" |
---|
3900 | /* confdefs.h. */ |
---|
3901 | _ACEOF |
---|
3902 | cat confdefs.h >>conftest.$ac_ext |
---|
3903 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3904 | /* end confdefs.h. */ |
---|
3905 | |
---|
3906 | |
---|
3907 | int |
---|
3908 | main () |
---|
3909 | { |
---|
3910 | main (); |
---|
3911 | ; |
---|
3912 | return 0; |
---|
3913 | } |
---|
3914 | _ACEOF |
---|
3915 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
3916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
3917 | (eval $ac_link) 2>&5 |
---|
3918 | ac_status=$? |
---|
3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3920 | (exit $ac_status); } && |
---|
3921 | { ac_try='test -s conftest$ac_exeext' |
---|
3922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3923 | (eval $ac_try) 2>&5 |
---|
3924 | ac_status=$? |
---|
3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3926 | (exit $ac_status); }; }; then |
---|
3927 | ac_cv_lib_opengl32_main=yes |
---|
3928 | else |
---|
3929 | echo "$as_me: failed program was:" >&5 |
---|
3930 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3931 | |
---|
3932 | ac_cv_lib_opengl32_main=no |
---|
3933 | fi |
---|
3934 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
3935 | LIBS=$ac_check_lib_save_LIBS |
---|
3936 | fi |
---|
3937 | echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 |
---|
3938 | echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 |
---|
3939 | if test $ac_cv_lib_opengl32_main = yes; then |
---|
3940 | FOUND_opengl32=yes |
---|
3941 | else |
---|
3942 | "gl/gl.h" |
---|
3943 | fi |
---|
3944 | |
---|
3945 | if test "$FOUND_opengl32" = "yes" ; then |
---|
3946 | LIBS="$LIBS -lopengl32" |
---|
3947 | else |
---|
3948 | echo "------------------" |
---|
3949 | echo "opengl not found." |
---|
3950 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
3951 | echo "------------------" |
---|
3952 | exit -1 |
---|
3953 | fi |
---|
3954 | |
---|
3955 | # cheking for GLU-header |
---|
3956 | |
---|
3957 | for ac_header in GL/glu.h |
---|
3958 | do |
---|
3959 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3961 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
3962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
3963 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
3964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
3965 | fi |
---|
3966 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
3967 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
3968 | else |
---|
3969 | # Is the header compilable? |
---|
3970 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
3971 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
3972 | cat >conftest.$ac_ext <<_ACEOF |
---|
3973 | #line $LINENO "configure" |
---|
3974 | /* confdefs.h. */ |
---|
3975 | _ACEOF |
---|
3976 | cat confdefs.h >>conftest.$ac_ext |
---|
3977 | cat >>conftest.$ac_ext <<_ACEOF |
---|
3978 | /* end confdefs.h. */ |
---|
3979 | $ac_includes_default |
---|
3980 | #include <$ac_header> |
---|
3981 | _ACEOF |
---|
3982 | rm -f conftest.$ac_objext |
---|
3983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
3984 | (eval $ac_compile) 2>&5 |
---|
3985 | ac_status=$? |
---|
3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3987 | (exit $ac_status); } && |
---|
3988 | { ac_try='test -s conftest.$ac_objext' |
---|
3989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
3990 | (eval $ac_try) 2>&5 |
---|
3991 | ac_status=$? |
---|
3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
3993 | (exit $ac_status); }; }; then |
---|
3994 | ac_header_compiler=yes |
---|
3995 | else |
---|
3996 | echo "$as_me: failed program was:" >&5 |
---|
3997 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3998 | |
---|
3999 | ac_header_compiler=no |
---|
4000 | fi |
---|
4001 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4002 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4003 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4004 | |
---|
4005 | # Is the header present? |
---|
4006 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4007 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4008 | cat >conftest.$ac_ext <<_ACEOF |
---|
4009 | #line $LINENO "configure" |
---|
4010 | /* confdefs.h. */ |
---|
4011 | _ACEOF |
---|
4012 | cat confdefs.h >>conftest.$ac_ext |
---|
4013 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4014 | /* end confdefs.h. */ |
---|
4015 | #include <$ac_header> |
---|
4016 | _ACEOF |
---|
4017 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4018 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4019 | ac_status=$? |
---|
4020 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4021 | rm -f conftest.er1 |
---|
4022 | cat conftest.err >&5 |
---|
4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4024 | (exit $ac_status); } >/dev/null; then |
---|
4025 | if test -s conftest.err; then |
---|
4026 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4027 | else |
---|
4028 | ac_cpp_err= |
---|
4029 | fi |
---|
4030 | else |
---|
4031 | ac_cpp_err=yes |
---|
4032 | fi |
---|
4033 | if test -z "$ac_cpp_err"; then |
---|
4034 | ac_header_preproc=yes |
---|
4035 | else |
---|
4036 | echo "$as_me: failed program was:" >&5 |
---|
4037 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4038 | |
---|
4039 | ac_header_preproc=no |
---|
4040 | fi |
---|
4041 | rm -f conftest.err conftest.$ac_ext |
---|
4042 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4043 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4044 | |
---|
4045 | # So? What about this header? |
---|
4046 | case $ac_header_compiler:$ac_header_preproc in |
---|
4047 | yes:no ) |
---|
4048 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4049 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4051 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4052 | ( |
---|
4053 | cat <<\_ASBOX |
---|
4054 | ## ------------------------------------ ## |
---|
4055 | ## Report this to bug-autoconf@gnu.org. ## |
---|
4056 | ## ------------------------------------ ## |
---|
4057 | _ASBOX |
---|
4058 | ) | |
---|
4059 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4060 | ;; |
---|
4061 | no:yes ) |
---|
4062 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4063 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4064 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4065 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4066 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4067 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4068 | ( |
---|
4069 | cat <<\_ASBOX |
---|
4070 | ## ------------------------------------ ## |
---|
4071 | ## Report this to bug-autoconf@gnu.org. ## |
---|
4072 | ## ------------------------------------ ## |
---|
4073 | _ASBOX |
---|
4074 | ) | |
---|
4075 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4076 | ;; |
---|
4077 | esac |
---|
4078 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4079 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4080 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4082 | else |
---|
4083 | eval "$as_ac_Header=$ac_header_preproc" |
---|
4084 | fi |
---|
4085 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4086 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4087 | |
---|
4088 | fi |
---|
4089 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4090 | cat >>confdefs.h <<_ACEOF |
---|
4091 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4092 | _ACEOF |
---|
4093 | |
---|
4094 | else |
---|
4095 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4096 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4097 | { (exit 1); exit 1; }; } |
---|
4098 | fi |
---|
4099 | |
---|
4100 | done |
---|
4101 | |
---|
4102 | |
---|
4103 | # checking for libGLU |
---|
4104 | echo "$as_me:$LINENO: checking for main in -lglu32" >&5 |
---|
4105 | echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 |
---|
4106 | if test "${ac_cv_lib_glu32_main+set}" = set; then |
---|
4107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4108 | else |
---|
4109 | ac_check_lib_save_LIBS=$LIBS |
---|
4110 | LIBS="-lglu32 $LIBS" |
---|
4111 | cat >conftest.$ac_ext <<_ACEOF |
---|
4112 | #line $LINENO "configure" |
---|
4113 | /* confdefs.h. */ |
---|
4114 | _ACEOF |
---|
4115 | cat confdefs.h >>conftest.$ac_ext |
---|
4116 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4117 | /* end confdefs.h. */ |
---|
4118 | |
---|
4119 | |
---|
4120 | int |
---|
4121 | main () |
---|
4122 | { |
---|
4123 | main (); |
---|
4124 | ; |
---|
4125 | return 0; |
---|
4126 | } |
---|
4127 | _ACEOF |
---|
4128 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4130 | (eval $ac_link) 2>&5 |
---|
4131 | ac_status=$? |
---|
4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4133 | (exit $ac_status); } && |
---|
4134 | { ac_try='test -s conftest$ac_exeext' |
---|
4135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4136 | (eval $ac_try) 2>&5 |
---|
4137 | ac_status=$? |
---|
4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4139 | (exit $ac_status); }; }; then |
---|
4140 | ac_cv_lib_glu32_main=yes |
---|
4141 | else |
---|
4142 | echo "$as_me: failed program was:" >&5 |
---|
4143 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4144 | |
---|
4145 | ac_cv_lib_glu32_main=no |
---|
4146 | fi |
---|
4147 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4148 | LIBS=$ac_check_lib_save_LIBS |
---|
4149 | fi |
---|
4150 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 |
---|
4151 | echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 |
---|
4152 | if test $ac_cv_lib_glu32_main = yes; then |
---|
4153 | FOUND_glu32=yes |
---|
4154 | fi |
---|
4155 | |
---|
4156 | if test "$FOUND_glu32" = "yes" ; then |
---|
4157 | LIBS="$LIBS -lGLU32" |
---|
4158 | else |
---|
4159 | echo "------------------" |
---|
4160 | echo "GLU library not found." |
---|
4161 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
4162 | echo "------------------" |
---|
4163 | exit -1 |
---|
4164 | fi |
---|
4165 | |
---|
4166 | # checking for mingw32 |
---|
4167 | echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 |
---|
4168 | echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 |
---|
4169 | if test "${ac_cv_lib_mingw32_main+set}" = set; then |
---|
4170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4171 | else |
---|
4172 | ac_check_lib_save_LIBS=$LIBS |
---|
4173 | LIBS="-lmingw32 $LIBS" |
---|
4174 | cat >conftest.$ac_ext <<_ACEOF |
---|
4175 | #line $LINENO "configure" |
---|
4176 | /* confdefs.h. */ |
---|
4177 | _ACEOF |
---|
4178 | cat confdefs.h >>conftest.$ac_ext |
---|
4179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4180 | /* end confdefs.h. */ |
---|
4181 | |
---|
4182 | |
---|
4183 | int |
---|
4184 | main () |
---|
4185 | { |
---|
4186 | main (); |
---|
4187 | ; |
---|
4188 | return 0; |
---|
4189 | } |
---|
4190 | _ACEOF |
---|
4191 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4193 | (eval $ac_link) 2>&5 |
---|
4194 | ac_status=$? |
---|
4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4196 | (exit $ac_status); } && |
---|
4197 | { ac_try='test -s conftest$ac_exeext' |
---|
4198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4199 | (eval $ac_try) 2>&5 |
---|
4200 | ac_status=$? |
---|
4201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4202 | (exit $ac_status); }; }; then |
---|
4203 | ac_cv_lib_mingw32_main=yes |
---|
4204 | else |
---|
4205 | echo "$as_me: failed program was:" >&5 |
---|
4206 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4207 | |
---|
4208 | ac_cv_lib_mingw32_main=no |
---|
4209 | fi |
---|
4210 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4211 | LIBS=$ac_check_lib_save_LIBS |
---|
4212 | fi |
---|
4213 | echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 |
---|
4214 | echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 |
---|
4215 | if test $ac_cv_lib_mingw32_main = yes; then |
---|
4216 | FOUND_mingw32=yes |
---|
4217 | fi |
---|
4218 | |
---|
4219 | if test $FOUND_mingw32 = "yes"; then |
---|
4220 | LIBS="$LIBS -lmingw32" |
---|
4221 | fi |
---|
4222 | # checking for SDL-headers |
---|
4223 | |
---|
4224 | for ac_header in SDL/SDL.h |
---|
4225 | do |
---|
4226 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4227 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4228 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4229 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4230 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4232 | fi |
---|
4233 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4234 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4235 | else |
---|
4236 | # Is the header compilable? |
---|
4237 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4238 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4239 | cat >conftest.$ac_ext <<_ACEOF |
---|
4240 | #line $LINENO "configure" |
---|
4241 | /* confdefs.h. */ |
---|
4242 | _ACEOF |
---|
4243 | cat confdefs.h >>conftest.$ac_ext |
---|
4244 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4245 | /* end confdefs.h. */ |
---|
4246 | $ac_includes_default |
---|
4247 | #include <$ac_header> |
---|
4248 | _ACEOF |
---|
4249 | rm -f conftest.$ac_objext |
---|
4250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4251 | (eval $ac_compile) 2>&5 |
---|
4252 | ac_status=$? |
---|
4253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4254 | (exit $ac_status); } && |
---|
4255 | { ac_try='test -s conftest.$ac_objext' |
---|
4256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4257 | (eval $ac_try) 2>&5 |
---|
4258 | ac_status=$? |
---|
4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4260 | (exit $ac_status); }; }; then |
---|
4261 | ac_header_compiler=yes |
---|
4262 | else |
---|
4263 | echo "$as_me: failed program was:" >&5 |
---|
4264 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4265 | |
---|
4266 | ac_header_compiler=no |
---|
4267 | fi |
---|
4268 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4269 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4270 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4271 | |
---|
4272 | # Is the header present? |
---|
4273 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4274 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4275 | cat >conftest.$ac_ext <<_ACEOF |
---|
4276 | #line $LINENO "configure" |
---|
4277 | /* confdefs.h. */ |
---|
4278 | _ACEOF |
---|
4279 | cat confdefs.h >>conftest.$ac_ext |
---|
4280 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4281 | /* end confdefs.h. */ |
---|
4282 | #include <$ac_header> |
---|
4283 | _ACEOF |
---|
4284 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4285 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4286 | ac_status=$? |
---|
4287 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4288 | rm -f conftest.er1 |
---|
4289 | cat conftest.err >&5 |
---|
4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4291 | (exit $ac_status); } >/dev/null; then |
---|
4292 | if test -s conftest.err; then |
---|
4293 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4294 | else |
---|
4295 | ac_cpp_err= |
---|
4296 | fi |
---|
4297 | else |
---|
4298 | ac_cpp_err=yes |
---|
4299 | fi |
---|
4300 | if test -z "$ac_cpp_err"; then |
---|
4301 | ac_header_preproc=yes |
---|
4302 | else |
---|
4303 | echo "$as_me: failed program was:" >&5 |
---|
4304 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4305 | |
---|
4306 | ac_header_preproc=no |
---|
4307 | fi |
---|
4308 | rm -f conftest.err conftest.$ac_ext |
---|
4309 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4310 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4311 | |
---|
4312 | # So? What about this header? |
---|
4313 | case $ac_header_compiler:$ac_header_preproc in |
---|
4314 | yes:no ) |
---|
4315 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4316 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4317 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4318 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4319 | ( |
---|
4320 | cat <<\_ASBOX |
---|
4321 | ## ------------------------------------ ## |
---|
4322 | ## Report this to bug-autoconf@gnu.org. ## |
---|
4323 | ## ------------------------------------ ## |
---|
4324 | _ASBOX |
---|
4325 | ) | |
---|
4326 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4327 | ;; |
---|
4328 | no:yes ) |
---|
4329 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4330 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4331 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4332 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4334 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4335 | ( |
---|
4336 | cat <<\_ASBOX |
---|
4337 | ## ------------------------------------ ## |
---|
4338 | ## Report this to bug-autoconf@gnu.org. ## |
---|
4339 | ## ------------------------------------ ## |
---|
4340 | _ASBOX |
---|
4341 | ) | |
---|
4342 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4343 | ;; |
---|
4344 | esac |
---|
4345 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4346 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4347 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4349 | else |
---|
4350 | eval "$as_ac_Header=$ac_header_preproc" |
---|
4351 | fi |
---|
4352 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4353 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4354 | |
---|
4355 | fi |
---|
4356 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4357 | cat >>confdefs.h <<_ACEOF |
---|
4358 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4359 | _ACEOF |
---|
4360 | |
---|
4361 | else |
---|
4362 | { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 |
---|
4363 | echo "$as_me: error: cannot find SDL headers" >&2;} |
---|
4364 | { (exit 1); exit 1; }; } |
---|
4365 | fi |
---|
4366 | |
---|
4367 | done |
---|
4368 | |
---|
4369 | |
---|
4370 | #checking for libSDL |
---|
4371 | echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 |
---|
4372 | echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 |
---|
4373 | if test "${ac_cv_lib_sdlmain_main+set}" = set; then |
---|
4374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4375 | else |
---|
4376 | ac_check_lib_save_LIBS=$LIBS |
---|
4377 | LIBS="-lsdlmain $LIBS" |
---|
4378 | cat >conftest.$ac_ext <<_ACEOF |
---|
4379 | #line $LINENO "configure" |
---|
4380 | /* confdefs.h. */ |
---|
4381 | _ACEOF |
---|
4382 | cat confdefs.h >>conftest.$ac_ext |
---|
4383 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4384 | /* end confdefs.h. */ |
---|
4385 | |
---|
4386 | |
---|
4387 | int |
---|
4388 | main () |
---|
4389 | { |
---|
4390 | main (); |
---|
4391 | ; |
---|
4392 | return 0; |
---|
4393 | } |
---|
4394 | _ACEOF |
---|
4395 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4397 | (eval $ac_link) 2>&5 |
---|
4398 | ac_status=$? |
---|
4399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4400 | (exit $ac_status); } && |
---|
4401 | { ac_try='test -s conftest$ac_exeext' |
---|
4402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4403 | (eval $ac_try) 2>&5 |
---|
4404 | ac_status=$? |
---|
4405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4406 | (exit $ac_status); }; }; then |
---|
4407 | ac_cv_lib_sdlmain_main=yes |
---|
4408 | else |
---|
4409 | echo "$as_me: failed program was:" >&5 |
---|
4410 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4411 | |
---|
4412 | ac_cv_lib_sdlmain_main=no |
---|
4413 | fi |
---|
4414 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4415 | LIBS=$ac_check_lib_save_LIBS |
---|
4416 | fi |
---|
4417 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 |
---|
4418 | echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 |
---|
4419 | if test $ac_cv_lib_sdlmain_main = yes; then |
---|
4420 | FOUND_sdlmain=yes |
---|
4421 | fi |
---|
4422 | |
---|
4423 | if test "$FOUND_sdlmain" = "yes" ; then |
---|
4424 | LIBS="$LIBS -lsdlmain" |
---|
4425 | else |
---|
4426 | echo "------------------" |
---|
4427 | echo "SDL library not found." |
---|
4428 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4429 | echo "------------------" |
---|
4430 | exit 1 |
---|
4431 | fi |
---|
4432 | echo "$as_me:$LINENO: checking for main in -lsdl" >&5 |
---|
4433 | echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 |
---|
4434 | if test "${ac_cv_lib_sdl_main+set}" = set; then |
---|
4435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4436 | else |
---|
4437 | ac_check_lib_save_LIBS=$LIBS |
---|
4438 | LIBS="-lsdl $LIBS" |
---|
4439 | cat >conftest.$ac_ext <<_ACEOF |
---|
4440 | #line $LINENO "configure" |
---|
4441 | /* confdefs.h. */ |
---|
4442 | _ACEOF |
---|
4443 | cat confdefs.h >>conftest.$ac_ext |
---|
4444 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4445 | /* end confdefs.h. */ |
---|
4446 | |
---|
4447 | |
---|
4448 | int |
---|
4449 | main () |
---|
4450 | { |
---|
4451 | main (); |
---|
4452 | ; |
---|
4453 | return 0; |
---|
4454 | } |
---|
4455 | _ACEOF |
---|
4456 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4458 | (eval $ac_link) 2>&5 |
---|
4459 | ac_status=$? |
---|
4460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4461 | (exit $ac_status); } && |
---|
4462 | { ac_try='test -s conftest$ac_exeext' |
---|
4463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4464 | (eval $ac_try) 2>&5 |
---|
4465 | ac_status=$? |
---|
4466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4467 | (exit $ac_status); }; }; then |
---|
4468 | ac_cv_lib_sdl_main=yes |
---|
4469 | else |
---|
4470 | echo "$as_me: failed program was:" >&5 |
---|
4471 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4472 | |
---|
4473 | ac_cv_lib_sdl_main=no |
---|
4474 | fi |
---|
4475 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4476 | LIBS=$ac_check_lib_save_LIBS |
---|
4477 | fi |
---|
4478 | echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 |
---|
4479 | echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 |
---|
4480 | if test $ac_cv_lib_sdl_main = yes; then |
---|
4481 | FOUND_sdl=yes |
---|
4482 | fi |
---|
4483 | |
---|
4484 | if test "$FOUND_sdl" = "yes" ; then |
---|
4485 | LIBS="$LIBS -lsdl" |
---|
4486 | else |
---|
4487 | echo "------------------" |
---|
4488 | echo "SDL library not found." |
---|
4489 | echo "please install the SDL library, which can be found at http://www.libsdl.org" |
---|
4490 | echo "------------------" |
---|
4491 | exit -1 |
---|
4492 | fi |
---|
4493 | |
---|
4494 | |
---|
4495 | ;; |
---|
4496 | |
---|
4497 | ### LINUX ### |
---|
4498 | *-*-linux*) |
---|
4499 | echo "Linux detected" |
---|
4500 | |
---|
4501 | Linux="yes" |
---|
4502 | |
---|
4503 | # checking gl header |
---|
4504 | |
---|
4505 | for ac_header in GL/gl.h |
---|
4506 | do |
---|
4507 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4508 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4509 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4510 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4511 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4513 | fi |
---|
4514 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4515 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4516 | else |
---|
4517 | # Is the header compilable? |
---|
4518 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4519 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4520 | cat >conftest.$ac_ext <<_ACEOF |
---|
4521 | #line $LINENO "configure" |
---|
4522 | /* confdefs.h. */ |
---|
4523 | _ACEOF |
---|
4524 | cat confdefs.h >>conftest.$ac_ext |
---|
4525 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4526 | /* end confdefs.h. */ |
---|
4527 | $ac_includes_default |
---|
4528 | #include <$ac_header> |
---|
4529 | _ACEOF |
---|
4530 | rm -f conftest.$ac_objext |
---|
4531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4532 | (eval $ac_compile) 2>&5 |
---|
4533 | ac_status=$? |
---|
4534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4535 | (exit $ac_status); } && |
---|
4536 | { ac_try='test -s conftest.$ac_objext' |
---|
4537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4538 | (eval $ac_try) 2>&5 |
---|
4539 | ac_status=$? |
---|
4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4541 | (exit $ac_status); }; }; then |
---|
4542 | ac_header_compiler=yes |
---|
4543 | else |
---|
4544 | echo "$as_me: failed program was:" >&5 |
---|
4545 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4546 | |
---|
4547 | ac_header_compiler=no |
---|
4548 | fi |
---|
4549 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4550 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4551 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4552 | |
---|
4553 | # Is the header present? |
---|
4554 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4555 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4556 | cat >conftest.$ac_ext <<_ACEOF |
---|
4557 | #line $LINENO "configure" |
---|
4558 | /* confdefs.h. */ |
---|
4559 | _ACEOF |
---|
4560 | cat confdefs.h >>conftest.$ac_ext |
---|
4561 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4562 | /* end confdefs.h. */ |
---|
4563 | #include <$ac_header> |
---|
4564 | _ACEOF |
---|
4565 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4566 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4567 | ac_status=$? |
---|
4568 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4569 | rm -f conftest.er1 |
---|
4570 | cat conftest.err >&5 |
---|
4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4572 | (exit $ac_status); } >/dev/null; then |
---|
4573 | if test -s conftest.err; then |
---|
4574 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4575 | else |
---|
4576 | ac_cpp_err= |
---|
4577 | fi |
---|
4578 | else |
---|
4579 | ac_cpp_err=yes |
---|
4580 | fi |
---|
4581 | if test -z "$ac_cpp_err"; then |
---|
4582 | ac_header_preproc=yes |
---|
4583 | else |
---|
4584 | echo "$as_me: failed program was:" >&5 |
---|
4585 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4586 | |
---|
4587 | ac_header_preproc=no |
---|
4588 | fi |
---|
4589 | rm -f conftest.err conftest.$ac_ext |
---|
4590 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4591 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4592 | |
---|
4593 | # So? What about this header? |
---|
4594 | case $ac_header_compiler:$ac_header_preproc in |
---|
4595 | yes:no ) |
---|
4596 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4597 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4598 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4599 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4600 | ( |
---|
4601 | cat <<\_ASBOX |
---|
4602 | ## ------------------------------------ ## |
---|
4603 | ## Report this to bug-autoconf@gnu.org. ## |
---|
4604 | ## ------------------------------------ ## |
---|
4605 | _ASBOX |
---|
4606 | ) | |
---|
4607 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4608 | ;; |
---|
4609 | no:yes ) |
---|
4610 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4611 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4612 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4613 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4614 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4615 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4616 | ( |
---|
4617 | cat <<\_ASBOX |
---|
4618 | ## ------------------------------------ ## |
---|
4619 | ## Report this to bug-autoconf@gnu.org. ## |
---|
4620 | ## ------------------------------------ ## |
---|
4621 | _ASBOX |
---|
4622 | ) | |
---|
4623 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4624 | ;; |
---|
4625 | esac |
---|
4626 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4627 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4630 | else |
---|
4631 | eval "$as_ac_Header=$ac_header_preproc" |
---|
4632 | fi |
---|
4633 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4634 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4635 | |
---|
4636 | fi |
---|
4637 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4638 | cat >>confdefs.h <<_ACEOF |
---|
4639 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4640 | _ACEOF |
---|
4641 | |
---|
4642 | else |
---|
4643 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4644 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4645 | { (exit 1); exit 1; }; } |
---|
4646 | fi |
---|
4647 | |
---|
4648 | done |
---|
4649 | |
---|
4650 | |
---|
4651 | # checking for Unix GL |
---|
4652 | echo "$as_me:$LINENO: checking for main in -lGL" >&5 |
---|
4653 | echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 |
---|
4654 | if test "${ac_cv_lib_GL_main+set}" = set; then |
---|
4655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4656 | else |
---|
4657 | ac_check_lib_save_LIBS=$LIBS |
---|
4658 | LIBS="-lGL $LIBS" |
---|
4659 | cat >conftest.$ac_ext <<_ACEOF |
---|
4660 | #line $LINENO "configure" |
---|
4661 | /* confdefs.h. */ |
---|
4662 | _ACEOF |
---|
4663 | cat confdefs.h >>conftest.$ac_ext |
---|
4664 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4665 | /* end confdefs.h. */ |
---|
4666 | |
---|
4667 | |
---|
4668 | int |
---|
4669 | main () |
---|
4670 | { |
---|
4671 | main (); |
---|
4672 | ; |
---|
4673 | return 0; |
---|
4674 | } |
---|
4675 | _ACEOF |
---|
4676 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4678 | (eval $ac_link) 2>&5 |
---|
4679 | ac_status=$? |
---|
4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4681 | (exit $ac_status); } && |
---|
4682 | { ac_try='test -s conftest$ac_exeext' |
---|
4683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4684 | (eval $ac_try) 2>&5 |
---|
4685 | ac_status=$? |
---|
4686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4687 | (exit $ac_status); }; }; then |
---|
4688 | ac_cv_lib_GL_main=yes |
---|
4689 | else |
---|
4690 | echo "$as_me: failed program was:" >&5 |
---|
4691 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4692 | |
---|
4693 | ac_cv_lib_GL_main=no |
---|
4694 | fi |
---|
4695 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4696 | LIBS=$ac_check_lib_save_LIBS |
---|
4697 | fi |
---|
4698 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 |
---|
4699 | echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 |
---|
4700 | if test $ac_cv_lib_GL_main = yes; then |
---|
4701 | FOUND_GL=yes |
---|
4702 | fi |
---|
4703 | |
---|
4704 | if test "$FOUND_GL" = "yes" ; then |
---|
4705 | LIBS="$LIBS -lGL" |
---|
4706 | else |
---|
4707 | echo "------------------" |
---|
4708 | echo "opengl not found." |
---|
4709 | echo "please install the opengl package which can be found at http://www.opengl.org" |
---|
4710 | echo "------------------" |
---|
4711 | exit -1 |
---|
4712 | fi |
---|
4713 | |
---|
4714 | # cheking for GLU-header |
---|
4715 | |
---|
4716 | for ac_header in GL/glu.h |
---|
4717 | do |
---|
4718 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
4719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4724 | fi |
---|
4725 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4726 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4727 | else |
---|
4728 | # Is the header compilable? |
---|
4729 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
4730 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
4731 | cat >conftest.$ac_ext <<_ACEOF |
---|
4732 | #line $LINENO "configure" |
---|
4733 | /* confdefs.h. */ |
---|
4734 | _ACEOF |
---|
4735 | cat confdefs.h >>conftest.$ac_ext |
---|
4736 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4737 | /* end confdefs.h. */ |
---|
4738 | $ac_includes_default |
---|
4739 | #include <$ac_header> |
---|
4740 | _ACEOF |
---|
4741 | rm -f conftest.$ac_objext |
---|
4742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
4743 | (eval $ac_compile) 2>&5 |
---|
4744 | ac_status=$? |
---|
4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4746 | (exit $ac_status); } && |
---|
4747 | { ac_try='test -s conftest.$ac_objext' |
---|
4748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4749 | (eval $ac_try) 2>&5 |
---|
4750 | ac_status=$? |
---|
4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4752 | (exit $ac_status); }; }; then |
---|
4753 | ac_header_compiler=yes |
---|
4754 | else |
---|
4755 | echo "$as_me: failed program was:" >&5 |
---|
4756 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4757 | |
---|
4758 | ac_header_compiler=no |
---|
4759 | fi |
---|
4760 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
4761 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
4762 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
4763 | |
---|
4764 | # Is the header present? |
---|
4765 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
4766 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
4767 | cat >conftest.$ac_ext <<_ACEOF |
---|
4768 | #line $LINENO "configure" |
---|
4769 | /* confdefs.h. */ |
---|
4770 | _ACEOF |
---|
4771 | cat confdefs.h >>conftest.$ac_ext |
---|
4772 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4773 | /* end confdefs.h. */ |
---|
4774 | #include <$ac_header> |
---|
4775 | _ACEOF |
---|
4776 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
4777 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
4778 | ac_status=$? |
---|
4779 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
4780 | rm -f conftest.er1 |
---|
4781 | cat conftest.err >&5 |
---|
4782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4783 | (exit $ac_status); } >/dev/null; then |
---|
4784 | if test -s conftest.err; then |
---|
4785 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
4786 | else |
---|
4787 | ac_cpp_err= |
---|
4788 | fi |
---|
4789 | else |
---|
4790 | ac_cpp_err=yes |
---|
4791 | fi |
---|
4792 | if test -z "$ac_cpp_err"; then |
---|
4793 | ac_header_preproc=yes |
---|
4794 | else |
---|
4795 | echo "$as_me: failed program was:" >&5 |
---|
4796 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4797 | |
---|
4798 | ac_header_preproc=no |
---|
4799 | fi |
---|
4800 | rm -f conftest.err conftest.$ac_ext |
---|
4801 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
4802 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
4803 | |
---|
4804 | # So? What about this header? |
---|
4805 | case $ac_header_compiler:$ac_header_preproc in |
---|
4806 | yes:no ) |
---|
4807 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
4808 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
4809 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4810 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4811 | ( |
---|
4812 | cat <<\_ASBOX |
---|
4813 | ## ------------------------------------ ## |
---|
4814 | ## Report this to bug-autoconf@gnu.org. ## |
---|
4815 | ## ------------------------------------ ## |
---|
4816 | _ASBOX |
---|
4817 | ) | |
---|
4818 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4819 | ;; |
---|
4820 | no:yes ) |
---|
4821 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
4822 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
4823 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
4824 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
4825 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
4826 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
4827 | ( |
---|
4828 | cat <<\_ASBOX |
---|
4829 | ## ------------------------------------ ## |
---|
4830 | ## Report this to bug-autoconf@gnu.org. ## |
---|
4831 | ## ------------------------------------ ## |
---|
4832 | _ASBOX |
---|
4833 | ) | |
---|
4834 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
4835 | ;; |
---|
4836 | esac |
---|
4837 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
4838 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
4839 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
4840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4841 | else |
---|
4842 | eval "$as_ac_Header=$ac_header_preproc" |
---|
4843 | fi |
---|
4844 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
4845 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
4846 | |
---|
4847 | fi |
---|
4848 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
4849 | cat >>confdefs.h <<_ACEOF |
---|
4850 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
4851 | _ACEOF |
---|
4852 | |
---|
4853 | else |
---|
4854 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
4855 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
4856 | { (exit 1); exit 1; }; } |
---|
4857 | fi |
---|
4858 | |
---|
4859 | done |
---|
4860 | |
---|
4861 | |
---|
4862 | echo "$as_me:$LINENO: checking for gluProject in -lGLU" >&5 |
---|
4863 | echo $ECHO_N "checking for gluProject in -lGLU... $ECHO_C" >&6 |
---|
4864 | if test "${ac_cv_lib_GLU_gluProject+set}" = set; then |
---|
4865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4866 | else |
---|
4867 | ac_check_lib_save_LIBS=$LIBS |
---|
4868 | LIBS="-lGLU $LIBS" |
---|
4869 | cat >conftest.$ac_ext <<_ACEOF |
---|
4870 | #line $LINENO "configure" |
---|
4871 | /* confdefs.h. */ |
---|
4872 | _ACEOF |
---|
4873 | cat confdefs.h >>conftest.$ac_ext |
---|
4874 | cat >>conftest.$ac_ext <<_ACEOF |
---|
4875 | /* end confdefs.h. */ |
---|
4876 | |
---|
4877 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
4878 | #ifdef __cplusplus |
---|
4879 | extern "C" |
---|
4880 | #endif |
---|
4881 | /* We use char because int might match the return type of a gcc2 |
---|
4882 | builtin and then its argument prototype would still apply. */ |
---|
4883 | char gluProject (); |
---|
4884 | int |
---|
4885 | main () |
---|
4886 | { |
---|
4887 | gluProject (); |
---|
4888 | ; |
---|
4889 | return 0; |
---|
4890 | } |
---|
4891 | _ACEOF |
---|
4892 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
4893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
4894 | (eval $ac_link) 2>&5 |
---|
4895 | ac_status=$? |
---|
4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4897 | (exit $ac_status); } && |
---|
4898 | { ac_try='test -s conftest$ac_exeext' |
---|
4899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
4900 | (eval $ac_try) 2>&5 |
---|
4901 | ac_status=$? |
---|
4902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
4903 | (exit $ac_status); }; }; then |
---|
4904 | ac_cv_lib_GLU_gluProject=yes |
---|
4905 | else |
---|
4906 | echo "$as_me: failed program was:" >&5 |
---|
4907 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
4908 | |
---|
4909 | ac_cv_lib_GLU_gluProject=no |
---|
4910 | fi |
---|
4911 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
4912 | LIBS=$ac_check_lib_save_LIBS |
---|
4913 | fi |
---|
4914 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluProject" >&5 |
---|
4915 | echo "${ECHO_T}$ac_cv_lib_GLU_gluProject" >&6 |
---|
4916 | if test $ac_cv_lib_GLU_gluProject = yes; then |
---|
4917 | FOUND_GLU=yes |
---|
4918 | fi |
---|
4919 | |
---|
4920 | if test "$FOUND_GLU" = "yes" ; then |
---|
4921 | LIBS="$LIBS -lGLU" |
---|
4922 | else |
---|
4923 | echo "------------------" |
---|
4924 | echo "GLU library not found." |
---|
4925 | echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" |
---|
4926 | echo "------------------" |
---|
4927 | exit -1 |
---|
4928 | fi |
---|
4929 | |
---|
4930 | ## checking for SDL |
---|
4931 | SDL_VERSION=1.2.7 |
---|
4932 | |
---|
4933 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. |
---|
4934 | if test "${with_sdl_prefix+set}" = set; then |
---|
4935 | withval="$with_sdl_prefix" |
---|
4936 | sdl_prefix="$withval" |
---|
4937 | else |
---|
4938 | sdl_prefix="" |
---|
4939 | fi; |
---|
4940 | |
---|
4941 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. |
---|
4942 | if test "${with_sdl_exec_prefix+set}" = set; then |
---|
4943 | withval="$with_sdl_exec_prefix" |
---|
4944 | sdl_exec_prefix="$withval" |
---|
4945 | else |
---|
4946 | sdl_exec_prefix="" |
---|
4947 | fi; |
---|
4948 | # Check whether --enable-sdltest or --disable-sdltest was given. |
---|
4949 | if test "${enable_sdltest+set}" = set; then |
---|
4950 | enableval="$enable_sdltest" |
---|
4951 | |
---|
4952 | else |
---|
4953 | enable_sdltest=yes |
---|
4954 | fi; |
---|
4955 | |
---|
4956 | if test x$sdl_exec_prefix != x ; then |
---|
4957 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" |
---|
4958 | if test x${SDL_CONFIG+set} != xset ; then |
---|
4959 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config |
---|
4960 | fi |
---|
4961 | fi |
---|
4962 | if test x$sdl_prefix != x ; then |
---|
4963 | sdl_args="$sdl_args --prefix=$sdl_prefix" |
---|
4964 | if test x${SDL_CONFIG+set} != xset ; then |
---|
4965 | SDL_CONFIG=$sdl_prefix/bin/sdl-config |
---|
4966 | fi |
---|
4967 | fi |
---|
4968 | |
---|
4969 | |
---|
4970 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" |
---|
4971 | # Extract the first word of "sdl-config", so it can be a program name with args. |
---|
4972 | set dummy sdl-config; ac_word=$2 |
---|
4973 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
4974 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
4975 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then |
---|
4976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
4977 | else |
---|
4978 | case $SDL_CONFIG in |
---|
4979 | [\\/]* | ?:[\\/]*) |
---|
4980 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. |
---|
4981 | ;; |
---|
4982 | *) |
---|
4983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4984 | for as_dir in $PATH |
---|
4985 | do |
---|
4986 | IFS=$as_save_IFS |
---|
4987 | test -z "$as_dir" && as_dir=. |
---|
4988 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4989 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
4990 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
4991 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4992 | break 2 |
---|
4993 | fi |
---|
4994 | done |
---|
4995 | done |
---|
4996 | |
---|
4997 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" |
---|
4998 | ;; |
---|
4999 | esac |
---|
5000 | fi |
---|
5001 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG |
---|
5002 | |
---|
5003 | if test -n "$SDL_CONFIG"; then |
---|
5004 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 |
---|
5005 | echo "${ECHO_T}$SDL_CONFIG" >&6 |
---|
5006 | else |
---|
5007 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5008 | echo "${ECHO_T}no" >&6 |
---|
5009 | fi |
---|
5010 | |
---|
5011 | min_sdl_version=$SDL_VERSION |
---|
5012 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 |
---|
5013 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 |
---|
5014 | no_sdl="" |
---|
5015 | if test "$SDL_CONFIG" = "no" ; then |
---|
5016 | no_sdl=yes |
---|
5017 | else |
---|
5018 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` |
---|
5019 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` |
---|
5020 | |
---|
5021 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ |
---|
5022 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
5023 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ |
---|
5024 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
5025 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ |
---|
5026 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
5027 | if test "x$enable_sdltest" = "xyes" ; then |
---|
5028 | ac_save_CFLAGS="$CFLAGS" |
---|
5029 | ac_save_LIBS="$LIBS" |
---|
5030 | CFLAGS="$CFLAGS $SDL_CFLAGS" |
---|
5031 | LIBS="$LIBS $SDL_LIBS" |
---|
5032 | rm -f conf.sdltest |
---|
5033 | if test "$cross_compiling" = yes; then |
---|
5034 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
5035 | else |
---|
5036 | cat >conftest.$ac_ext <<_ACEOF |
---|
5037 | #line $LINENO "configure" |
---|
5038 | /* confdefs.h. */ |
---|
5039 | _ACEOF |
---|
5040 | cat confdefs.h >>conftest.$ac_ext |
---|
5041 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5042 | /* end confdefs.h. */ |
---|
5043 | |
---|
5044 | #include <stdio.h> |
---|
5045 | #include <stdlib.h> |
---|
5046 | #include <string.h> |
---|
5047 | #include "SDL.h" |
---|
5048 | |
---|
5049 | char* |
---|
5050 | my_strdup (char *str) |
---|
5051 | { |
---|
5052 | char *new_str; |
---|
5053 | |
---|
5054 | if (str) |
---|
5055 | { |
---|
5056 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); |
---|
5057 | strcpy (new_str, str); |
---|
5058 | } |
---|
5059 | else |
---|
5060 | new_str = NULL; |
---|
5061 | |
---|
5062 | return new_str; |
---|
5063 | } |
---|
5064 | |
---|
5065 | int main (int argc, char *argv[]) |
---|
5066 | { |
---|
5067 | int major, minor, micro; |
---|
5068 | char *tmp_version; |
---|
5069 | |
---|
5070 | /* This hangs on some systems (?) |
---|
5071 | system ("touch conf.sdltest"); |
---|
5072 | */ |
---|
5073 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } |
---|
5074 | |
---|
5075 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
5076 | tmp_version = my_strdup("$min_sdl_version"); |
---|
5077 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
5078 | printf("%s, bad version string\n", "$min_sdl_version"); |
---|
5079 | exit(1); |
---|
5080 | } |
---|
5081 | |
---|
5082 | if (($sdl_major_version > major) || |
---|
5083 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || |
---|
5084 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) |
---|
5085 | { |
---|
5086 | return 0; |
---|
5087 | } |
---|
5088 | else |
---|
5089 | { |
---|
5090 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); |
---|
5091 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); |
---|
5092 | printf("*** best to upgrade to the required version.\n"); |
---|
5093 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); |
---|
5094 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); |
---|
5095 | printf("*** config.cache before re-running configure\n"); |
---|
5096 | return 1; |
---|
5097 | } |
---|
5098 | } |
---|
5099 | |
---|
5100 | |
---|
5101 | _ACEOF |
---|
5102 | rm -f conftest$ac_exeext |
---|
5103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5104 | (eval $ac_link) 2>&5 |
---|
5105 | ac_status=$? |
---|
5106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5107 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5109 | (eval $ac_try) 2>&5 |
---|
5110 | ac_status=$? |
---|
5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5112 | (exit $ac_status); }; }; then |
---|
5113 | : |
---|
5114 | else |
---|
5115 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5116 | echo "$as_me: failed program was:" >&5 |
---|
5117 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5118 | |
---|
5119 | ( exit $ac_status ) |
---|
5120 | no_sdl=yes |
---|
5121 | fi |
---|
5122 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5123 | fi |
---|
5124 | CFLAGS="$ac_save_CFLAGS" |
---|
5125 | LIBS="$ac_save_LIBS" |
---|
5126 | fi |
---|
5127 | fi |
---|
5128 | if test "x$no_sdl" = x ; then |
---|
5129 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5130 | echo "${ECHO_T}yes" >&6 |
---|
5131 | : |
---|
5132 | else |
---|
5133 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5134 | echo "${ECHO_T}no" >&6 |
---|
5135 | if test "$SDL_CONFIG" = "no" ; then |
---|
5136 | echo "*** The sdl-config script installed by SDL could not be found" |
---|
5137 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" |
---|
5138 | echo "*** your path, or set the SDL_CONFIG environment variable to the" |
---|
5139 | echo "*** full path to sdl-config." |
---|
5140 | else |
---|
5141 | if test -f conf.sdltest ; then |
---|
5142 | : |
---|
5143 | else |
---|
5144 | echo "*** Could not run SDL test program, checking why..." |
---|
5145 | CFLAGS="$CFLAGS $SDL_CFLAGS" |
---|
5146 | LIBS="$LIBS $SDL_LIBS" |
---|
5147 | cat >conftest.$ac_ext <<_ACEOF |
---|
5148 | #line $LINENO "configure" |
---|
5149 | /* confdefs.h. */ |
---|
5150 | _ACEOF |
---|
5151 | cat confdefs.h >>conftest.$ac_ext |
---|
5152 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5153 | /* end confdefs.h. */ |
---|
5154 | |
---|
5155 | #include <stdio.h> |
---|
5156 | #include "SDL.h" |
---|
5157 | |
---|
5158 | int main(int argc, char *argv[]) |
---|
5159 | { return 0; } |
---|
5160 | #undef main |
---|
5161 | #define main K_and_R_C_main |
---|
5162 | |
---|
5163 | int |
---|
5164 | main () |
---|
5165 | { |
---|
5166 | return 0; |
---|
5167 | ; |
---|
5168 | return 0; |
---|
5169 | } |
---|
5170 | _ACEOF |
---|
5171 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5173 | (eval $ac_link) 2>&5 |
---|
5174 | ac_status=$? |
---|
5175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5176 | (exit $ac_status); } && |
---|
5177 | { ac_try='test -s conftest$ac_exeext' |
---|
5178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5179 | (eval $ac_try) 2>&5 |
---|
5180 | ac_status=$? |
---|
5181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5182 | (exit $ac_status); }; }; then |
---|
5183 | echo "*** The test program compiled, but did not run. This usually means" |
---|
5184 | echo "*** that the run-time linker is not finding SDL or finding the wrong" |
---|
5185 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" |
---|
5186 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
5187 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
5188 | echo "*** is required on your system" |
---|
5189 | echo "***" |
---|
5190 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
5191 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
5192 | else |
---|
5193 | echo "$as_me: failed program was:" >&5 |
---|
5194 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5195 | |
---|
5196 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
5197 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" |
---|
5198 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" |
---|
5199 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" |
---|
5200 | fi |
---|
5201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5202 | CFLAGS="$ac_save_CFLAGS" |
---|
5203 | LIBS="$ac_save_LIBS" |
---|
5204 | fi |
---|
5205 | fi |
---|
5206 | SDL_CFLAGS="" |
---|
5207 | SDL_LIBS="" |
---|
5208 | { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5 |
---|
5209 | echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;} |
---|
5210 | { (exit 1); exit 1; }; } |
---|
5211 | |
---|
5212 | fi |
---|
5213 | |
---|
5214 | |
---|
5215 | rm -f conf.sdltest |
---|
5216 | |
---|
5217 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
5218 | LIBS="$LIBS $SDL_LIBS" |
---|
5219 | ;; |
---|
5220 | |
---|
5221 | ### OS X ### |
---|
5222 | *darwin*) |
---|
5223 | echo "OS X detected" |
---|
5224 | |
---|
5225 | osX="yes" |
---|
5226 | |
---|
5227 | # checking gl header |
---|
5228 | |
---|
5229 | for ac_header in OpenGL/gl.h |
---|
5230 | do |
---|
5231 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5232 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5233 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5234 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5235 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5237 | fi |
---|
5238 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5239 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5240 | else |
---|
5241 | # Is the header compilable? |
---|
5242 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5243 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5244 | cat >conftest.$ac_ext <<_ACEOF |
---|
5245 | #line $LINENO "configure" |
---|
5246 | /* confdefs.h. */ |
---|
5247 | _ACEOF |
---|
5248 | cat confdefs.h >>conftest.$ac_ext |
---|
5249 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5250 | /* end confdefs.h. */ |
---|
5251 | $ac_includes_default |
---|
5252 | #include <$ac_header> |
---|
5253 | _ACEOF |
---|
5254 | rm -f conftest.$ac_objext |
---|
5255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5256 | (eval $ac_compile) 2>&5 |
---|
5257 | ac_status=$? |
---|
5258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5259 | (exit $ac_status); } && |
---|
5260 | { ac_try='test -s conftest.$ac_objext' |
---|
5261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5262 | (eval $ac_try) 2>&5 |
---|
5263 | ac_status=$? |
---|
5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5265 | (exit $ac_status); }; }; then |
---|
5266 | ac_header_compiler=yes |
---|
5267 | else |
---|
5268 | echo "$as_me: failed program was:" >&5 |
---|
5269 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5270 | |
---|
5271 | ac_header_compiler=no |
---|
5272 | fi |
---|
5273 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5274 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5275 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5276 | |
---|
5277 | # Is the header present? |
---|
5278 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5279 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5280 | cat >conftest.$ac_ext <<_ACEOF |
---|
5281 | #line $LINENO "configure" |
---|
5282 | /* confdefs.h. */ |
---|
5283 | _ACEOF |
---|
5284 | cat confdefs.h >>conftest.$ac_ext |
---|
5285 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5286 | /* end confdefs.h. */ |
---|
5287 | #include <$ac_header> |
---|
5288 | _ACEOF |
---|
5289 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5290 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5291 | ac_status=$? |
---|
5292 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5293 | rm -f conftest.er1 |
---|
5294 | cat conftest.err >&5 |
---|
5295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5296 | (exit $ac_status); } >/dev/null; then |
---|
5297 | if test -s conftest.err; then |
---|
5298 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5299 | else |
---|
5300 | ac_cpp_err= |
---|
5301 | fi |
---|
5302 | else |
---|
5303 | ac_cpp_err=yes |
---|
5304 | fi |
---|
5305 | if test -z "$ac_cpp_err"; then |
---|
5306 | ac_header_preproc=yes |
---|
5307 | else |
---|
5308 | echo "$as_me: failed program was:" >&5 |
---|
5309 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5310 | |
---|
5311 | ac_header_preproc=no |
---|
5312 | fi |
---|
5313 | rm -f conftest.err conftest.$ac_ext |
---|
5314 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5315 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5316 | |
---|
5317 | # So? What about this header? |
---|
5318 | case $ac_header_compiler:$ac_header_preproc in |
---|
5319 | yes:no ) |
---|
5320 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5321 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5322 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5323 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5324 | ( |
---|
5325 | cat <<\_ASBOX |
---|
5326 | ## ------------------------------------ ## |
---|
5327 | ## Report this to bug-autoconf@gnu.org. ## |
---|
5328 | ## ------------------------------------ ## |
---|
5329 | _ASBOX |
---|
5330 | ) | |
---|
5331 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5332 | ;; |
---|
5333 | no:yes ) |
---|
5334 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5335 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5336 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5337 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5338 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5339 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5340 | ( |
---|
5341 | cat <<\_ASBOX |
---|
5342 | ## ------------------------------------ ## |
---|
5343 | ## Report this to bug-autoconf@gnu.org. ## |
---|
5344 | ## ------------------------------------ ## |
---|
5345 | _ASBOX |
---|
5346 | ) | |
---|
5347 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5348 | ;; |
---|
5349 | esac |
---|
5350 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5351 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5352 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5354 | else |
---|
5355 | eval "$as_ac_Header=$ac_header_preproc" |
---|
5356 | fi |
---|
5357 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5358 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5359 | |
---|
5360 | fi |
---|
5361 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5362 | cat >>confdefs.h <<_ACEOF |
---|
5363 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5364 | _ACEOF |
---|
5365 | |
---|
5366 | else |
---|
5367 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5368 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5369 | { (exit 1); exit 1; }; } |
---|
5370 | fi |
---|
5371 | |
---|
5372 | done |
---|
5373 | |
---|
5374 | # cheking for GLU-header |
---|
5375 | |
---|
5376 | for ac_header in OpenGL/glu.h |
---|
5377 | do |
---|
5378 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
5379 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5380 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5381 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5382 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5383 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5384 | fi |
---|
5385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5386 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5387 | else |
---|
5388 | # Is the header compilable? |
---|
5389 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
5390 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
5391 | cat >conftest.$ac_ext <<_ACEOF |
---|
5392 | #line $LINENO "configure" |
---|
5393 | /* confdefs.h. */ |
---|
5394 | _ACEOF |
---|
5395 | cat confdefs.h >>conftest.$ac_ext |
---|
5396 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5397 | /* end confdefs.h. */ |
---|
5398 | $ac_includes_default |
---|
5399 | #include <$ac_header> |
---|
5400 | _ACEOF |
---|
5401 | rm -f conftest.$ac_objext |
---|
5402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5403 | (eval $ac_compile) 2>&5 |
---|
5404 | ac_status=$? |
---|
5405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5406 | (exit $ac_status); } && |
---|
5407 | { ac_try='test -s conftest.$ac_objext' |
---|
5408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5409 | (eval $ac_try) 2>&5 |
---|
5410 | ac_status=$? |
---|
5411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5412 | (exit $ac_status); }; }; then |
---|
5413 | ac_header_compiler=yes |
---|
5414 | else |
---|
5415 | echo "$as_me: failed program was:" >&5 |
---|
5416 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5417 | |
---|
5418 | ac_header_compiler=no |
---|
5419 | fi |
---|
5420 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
5421 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
5422 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
5423 | |
---|
5424 | # Is the header present? |
---|
5425 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
5426 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
5427 | cat >conftest.$ac_ext <<_ACEOF |
---|
5428 | #line $LINENO "configure" |
---|
5429 | /* confdefs.h. */ |
---|
5430 | _ACEOF |
---|
5431 | cat confdefs.h >>conftest.$ac_ext |
---|
5432 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5433 | /* end confdefs.h. */ |
---|
5434 | #include <$ac_header> |
---|
5435 | _ACEOF |
---|
5436 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
5437 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
5438 | ac_status=$? |
---|
5439 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
5440 | rm -f conftest.er1 |
---|
5441 | cat conftest.err >&5 |
---|
5442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5443 | (exit $ac_status); } >/dev/null; then |
---|
5444 | if test -s conftest.err; then |
---|
5445 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
5446 | else |
---|
5447 | ac_cpp_err= |
---|
5448 | fi |
---|
5449 | else |
---|
5450 | ac_cpp_err=yes |
---|
5451 | fi |
---|
5452 | if test -z "$ac_cpp_err"; then |
---|
5453 | ac_header_preproc=yes |
---|
5454 | else |
---|
5455 | echo "$as_me: failed program was:" >&5 |
---|
5456 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5457 | |
---|
5458 | ac_header_preproc=no |
---|
5459 | fi |
---|
5460 | rm -f conftest.err conftest.$ac_ext |
---|
5461 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
5462 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
5463 | |
---|
5464 | # So? What about this header? |
---|
5465 | case $ac_header_compiler:$ac_header_preproc in |
---|
5466 | yes:no ) |
---|
5467 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
5468 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
5469 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5470 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5471 | ( |
---|
5472 | cat <<\_ASBOX |
---|
5473 | ## ------------------------------------ ## |
---|
5474 | ## Report this to bug-autoconf@gnu.org. ## |
---|
5475 | ## ------------------------------------ ## |
---|
5476 | _ASBOX |
---|
5477 | ) | |
---|
5478 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5479 | ;; |
---|
5480 | no:yes ) |
---|
5481 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
5482 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
5483 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
5484 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
5485 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
5486 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
5487 | ( |
---|
5488 | cat <<\_ASBOX |
---|
5489 | ## ------------------------------------ ## |
---|
5490 | ## Report this to bug-autoconf@gnu.org. ## |
---|
5491 | ## ------------------------------------ ## |
---|
5492 | _ASBOX |
---|
5493 | ) | |
---|
5494 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
5495 | ;; |
---|
5496 | esac |
---|
5497 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
5498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
5499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
5500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5501 | else |
---|
5502 | eval "$as_ac_Header=$ac_header_preproc" |
---|
5503 | fi |
---|
5504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
5505 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
5506 | |
---|
5507 | fi |
---|
5508 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
5509 | cat >>confdefs.h <<_ACEOF |
---|
5510 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
5511 | _ACEOF |
---|
5512 | |
---|
5513 | else |
---|
5514 | { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 |
---|
5515 | echo "$as_me: error: cannot find opengl headers" >&2;} |
---|
5516 | { (exit 1); exit 1; }; } |
---|
5517 | fi |
---|
5518 | |
---|
5519 | done |
---|
5520 | |
---|
5521 | |
---|
5522 | LIBS="$LIBS -framework OpenGL" |
---|
5523 | |
---|
5524 | ## checking for SDL |
---|
5525 | SDL_VERSION=1.2.7 |
---|
5526 | |
---|
5527 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. |
---|
5528 | if test "${with_sdl_prefix+set}" = set; then |
---|
5529 | withval="$with_sdl_prefix" |
---|
5530 | sdl_prefix="$withval" |
---|
5531 | else |
---|
5532 | sdl_prefix="" |
---|
5533 | fi; |
---|
5534 | |
---|
5535 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. |
---|
5536 | if test "${with_sdl_exec_prefix+set}" = set; then |
---|
5537 | withval="$with_sdl_exec_prefix" |
---|
5538 | sdl_exec_prefix="$withval" |
---|
5539 | else |
---|
5540 | sdl_exec_prefix="" |
---|
5541 | fi; |
---|
5542 | # Check whether --enable-sdltest or --disable-sdltest was given. |
---|
5543 | if test "${enable_sdltest+set}" = set; then |
---|
5544 | enableval="$enable_sdltest" |
---|
5545 | |
---|
5546 | else |
---|
5547 | enable_sdltest=yes |
---|
5548 | fi; |
---|
5549 | |
---|
5550 | if test x$sdl_exec_prefix != x ; then |
---|
5551 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" |
---|
5552 | if test x${SDL_CONFIG+set} != xset ; then |
---|
5553 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config |
---|
5554 | fi |
---|
5555 | fi |
---|
5556 | if test x$sdl_prefix != x ; then |
---|
5557 | sdl_args="$sdl_args --prefix=$sdl_prefix" |
---|
5558 | if test x${SDL_CONFIG+set} != xset ; then |
---|
5559 | SDL_CONFIG=$sdl_prefix/bin/sdl-config |
---|
5560 | fi |
---|
5561 | fi |
---|
5562 | |
---|
5563 | |
---|
5564 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" |
---|
5565 | # Extract the first word of "sdl-config", so it can be a program name with args. |
---|
5566 | set dummy sdl-config; ac_word=$2 |
---|
5567 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
5568 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
5569 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then |
---|
5570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5571 | else |
---|
5572 | case $SDL_CONFIG in |
---|
5573 | [\\/]* | ?:[\\/]*) |
---|
5574 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. |
---|
5575 | ;; |
---|
5576 | *) |
---|
5577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5578 | for as_dir in $PATH |
---|
5579 | do |
---|
5580 | IFS=$as_save_IFS |
---|
5581 | test -z "$as_dir" && as_dir=. |
---|
5582 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5583 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
5584 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
---|
5585 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5586 | break 2 |
---|
5587 | fi |
---|
5588 | done |
---|
5589 | done |
---|
5590 | |
---|
5591 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" |
---|
5592 | ;; |
---|
5593 | esac |
---|
5594 | fi |
---|
5595 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG |
---|
5596 | |
---|
5597 | if test -n "$SDL_CONFIG"; then |
---|
5598 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 |
---|
5599 | echo "${ECHO_T}$SDL_CONFIG" >&6 |
---|
5600 | else |
---|
5601 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5602 | echo "${ECHO_T}no" >&6 |
---|
5603 | fi |
---|
5604 | |
---|
5605 | min_sdl_version=$SDL_VERSION |
---|
5606 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 |
---|
5607 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 |
---|
5608 | no_sdl="" |
---|
5609 | if test "$SDL_CONFIG" = "no" ; then |
---|
5610 | no_sdl=yes |
---|
5611 | else |
---|
5612 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` |
---|
5613 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` |
---|
5614 | |
---|
5615 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ |
---|
5616 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
5617 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ |
---|
5618 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
5619 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ |
---|
5620 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
5621 | if test "x$enable_sdltest" = "xyes" ; then |
---|
5622 | ac_save_CFLAGS="$CFLAGS" |
---|
5623 | ac_save_LIBS="$LIBS" |
---|
5624 | CFLAGS="$CFLAGS $SDL_CFLAGS" |
---|
5625 | LIBS="$LIBS $SDL_LIBS" |
---|
5626 | rm -f conf.sdltest |
---|
5627 | if test "$cross_compiling" = yes; then |
---|
5628 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
5629 | else |
---|
5630 | cat >conftest.$ac_ext <<_ACEOF |
---|
5631 | #line $LINENO "configure" |
---|
5632 | /* confdefs.h. */ |
---|
5633 | _ACEOF |
---|
5634 | cat confdefs.h >>conftest.$ac_ext |
---|
5635 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5636 | /* end confdefs.h. */ |
---|
5637 | |
---|
5638 | #include <stdio.h> |
---|
5639 | #include <stdlib.h> |
---|
5640 | #include <string.h> |
---|
5641 | #include "SDL.h" |
---|
5642 | |
---|
5643 | char* |
---|
5644 | my_strdup (char *str) |
---|
5645 | { |
---|
5646 | char *new_str; |
---|
5647 | |
---|
5648 | if (str) |
---|
5649 | { |
---|
5650 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); |
---|
5651 | strcpy (new_str, str); |
---|
5652 | } |
---|
5653 | else |
---|
5654 | new_str = NULL; |
---|
5655 | |
---|
5656 | return new_str; |
---|
5657 | } |
---|
5658 | |
---|
5659 | int main (int argc, char *argv[]) |
---|
5660 | { |
---|
5661 | int major, minor, micro; |
---|
5662 | char *tmp_version; |
---|
5663 | |
---|
5664 | /* This hangs on some systems (?) |
---|
5665 | system ("touch conf.sdltest"); |
---|
5666 | */ |
---|
5667 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } |
---|
5668 | |
---|
5669 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
5670 | tmp_version = my_strdup("$min_sdl_version"); |
---|
5671 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
5672 | printf("%s, bad version string\n", "$min_sdl_version"); |
---|
5673 | exit(1); |
---|
5674 | } |
---|
5675 | |
---|
5676 | if (($sdl_major_version > major) || |
---|
5677 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || |
---|
5678 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) |
---|
5679 | { |
---|
5680 | return 0; |
---|
5681 | } |
---|
5682 | else |
---|
5683 | { |
---|
5684 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); |
---|
5685 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); |
---|
5686 | printf("*** best to upgrade to the required version.\n"); |
---|
5687 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); |
---|
5688 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); |
---|
5689 | printf("*** config.cache before re-running configure\n"); |
---|
5690 | return 1; |
---|
5691 | } |
---|
5692 | } |
---|
5693 | |
---|
5694 | |
---|
5695 | _ACEOF |
---|
5696 | rm -f conftest$ac_exeext |
---|
5697 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5698 | (eval $ac_link) 2>&5 |
---|
5699 | ac_status=$? |
---|
5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5701 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
5702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5703 | (eval $ac_try) 2>&5 |
---|
5704 | ac_status=$? |
---|
5705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5706 | (exit $ac_status); }; }; then |
---|
5707 | : |
---|
5708 | else |
---|
5709 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
5710 | echo "$as_me: failed program was:" >&5 |
---|
5711 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5712 | |
---|
5713 | ( exit $ac_status ) |
---|
5714 | no_sdl=yes |
---|
5715 | fi |
---|
5716 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
5717 | fi |
---|
5718 | CFLAGS="$ac_save_CFLAGS" |
---|
5719 | LIBS="$ac_save_LIBS" |
---|
5720 | fi |
---|
5721 | fi |
---|
5722 | if test "x$no_sdl" = x ; then |
---|
5723 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
5724 | echo "${ECHO_T}yes" >&6 |
---|
5725 | : |
---|
5726 | else |
---|
5727 | echo "$as_me:$LINENO: result: no" >&5 |
---|
5728 | echo "${ECHO_T}no" >&6 |
---|
5729 | if test "$SDL_CONFIG" = "no" ; then |
---|
5730 | echo "*** The sdl-config script installed by SDL could not be found" |
---|
5731 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" |
---|
5732 | echo "*** your path, or set the SDL_CONFIG environment variable to the" |
---|
5733 | echo "*** full path to sdl-config." |
---|
5734 | else |
---|
5735 | if test -f conf.sdltest ; then |
---|
5736 | : |
---|
5737 | else |
---|
5738 | echo "*** Could not run SDL test program, checking why..." |
---|
5739 | CFLAGS="$CFLAGS $SDL_CFLAGS" |
---|
5740 | LIBS="$LIBS $SDL_LIBS" |
---|
5741 | cat >conftest.$ac_ext <<_ACEOF |
---|
5742 | #line $LINENO "configure" |
---|
5743 | /* confdefs.h. */ |
---|
5744 | _ACEOF |
---|
5745 | cat confdefs.h >>conftest.$ac_ext |
---|
5746 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5747 | /* end confdefs.h. */ |
---|
5748 | |
---|
5749 | #include <stdio.h> |
---|
5750 | #include "SDL.h" |
---|
5751 | |
---|
5752 | int main(int argc, char *argv[]) |
---|
5753 | { return 0; } |
---|
5754 | #undef main |
---|
5755 | #define main K_and_R_C_main |
---|
5756 | |
---|
5757 | int |
---|
5758 | main () |
---|
5759 | { |
---|
5760 | return 0; |
---|
5761 | ; |
---|
5762 | return 0; |
---|
5763 | } |
---|
5764 | _ACEOF |
---|
5765 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5767 | (eval $ac_link) 2>&5 |
---|
5768 | ac_status=$? |
---|
5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5770 | (exit $ac_status); } && |
---|
5771 | { ac_try='test -s conftest$ac_exeext' |
---|
5772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5773 | (eval $ac_try) 2>&5 |
---|
5774 | ac_status=$? |
---|
5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5776 | (exit $ac_status); }; }; then |
---|
5777 | echo "*** The test program compiled, but did not run. This usually means" |
---|
5778 | echo "*** that the run-time linker is not finding SDL or finding the wrong" |
---|
5779 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" |
---|
5780 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
5781 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
5782 | echo "*** is required on your system" |
---|
5783 | echo "***" |
---|
5784 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
5785 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
5786 | else |
---|
5787 | echo "$as_me: failed program was:" >&5 |
---|
5788 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5789 | |
---|
5790 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
5791 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" |
---|
5792 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" |
---|
5793 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" |
---|
5794 | fi |
---|
5795 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5796 | CFLAGS="$ac_save_CFLAGS" |
---|
5797 | LIBS="$ac_save_LIBS" |
---|
5798 | fi |
---|
5799 | fi |
---|
5800 | SDL_CFLAGS="" |
---|
5801 | SDL_LIBS="" |
---|
5802 | { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5 |
---|
5803 | echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;} |
---|
5804 | { (exit 1); exit 1; }; } |
---|
5805 | |
---|
5806 | fi |
---|
5807 | |
---|
5808 | |
---|
5809 | rm -f conf.sdltest |
---|
5810 | |
---|
5811 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
---|
5812 | LIBS="$LIBS $SDL_LIBS" |
---|
5813 | ;; |
---|
5814 | |
---|
5815 | *) |
---|
5816 | mingw="no" |
---|
5817 | ;; |
---|
5818 | esac |
---|
5819 | |
---|
5820 | |
---|
5821 | |
---|
5822 | |
---|
5823 | |
---|
5824 | |
---|
5825 | ## checking for GTK |
---|
5826 | PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) |
---|
5827 | |
---|
5828 | |
---|
5829 | |
---|
5830 | |
---|
5831 | if test "x$have_gtk2" = xyes; then |
---|
5832 | HAVE_GTK2_TRUE= |
---|
5833 | HAVE_GTK2_FALSE='#' |
---|
5834 | else |
---|
5835 | HAVE_GTK2_TRUE='#' |
---|
5836 | HAVE_GTK2_FALSE= |
---|
5837 | fi |
---|
5838 | |
---|
5839 | |
---|
5840 | |
---|
5841 | #checking for pthread libs |
---|
5842 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 |
---|
5843 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 |
---|
5844 | if test "${ac_cv_lib_pthread_main+set}" = set; then |
---|
5845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5846 | else |
---|
5847 | ac_check_lib_save_LIBS=$LIBS |
---|
5848 | LIBS="-lpthread $LIBS" |
---|
5849 | cat >conftest.$ac_ext <<_ACEOF |
---|
5850 | #line $LINENO "configure" |
---|
5851 | /* confdefs.h. */ |
---|
5852 | _ACEOF |
---|
5853 | cat confdefs.h >>conftest.$ac_ext |
---|
5854 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5855 | /* end confdefs.h. */ |
---|
5856 | |
---|
5857 | |
---|
5858 | int |
---|
5859 | main () |
---|
5860 | { |
---|
5861 | main (); |
---|
5862 | ; |
---|
5863 | return 0; |
---|
5864 | } |
---|
5865 | _ACEOF |
---|
5866 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5868 | (eval $ac_link) 2>&5 |
---|
5869 | ac_status=$? |
---|
5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5871 | (exit $ac_status); } && |
---|
5872 | { ac_try='test -s conftest$ac_exeext' |
---|
5873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5874 | (eval $ac_try) 2>&5 |
---|
5875 | ac_status=$? |
---|
5876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5877 | (exit $ac_status); }; }; then |
---|
5878 | ac_cv_lib_pthread_main=yes |
---|
5879 | else |
---|
5880 | echo "$as_me: failed program was:" >&5 |
---|
5881 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5882 | |
---|
5883 | ac_cv_lib_pthread_main=no |
---|
5884 | fi |
---|
5885 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5886 | LIBS=$ac_check_lib_save_LIBS |
---|
5887 | fi |
---|
5888 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 |
---|
5889 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 |
---|
5890 | if test $ac_cv_lib_pthread_main = yes; then |
---|
5891 | FOUND_pthread=yes |
---|
5892 | fi |
---|
5893 | |
---|
5894 | if test "$FOUND_pthread" = "yes" ; then |
---|
5895 | LIBS="$LIBS -lpthread" |
---|
5896 | fi |
---|
5897 | |
---|
5898 | |
---|
5899 | # FIXME: Replace `main' with a function in `-lm': |
---|
5900 | |
---|
5901 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
5902 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
5903 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
5904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5905 | else |
---|
5906 | ac_check_lib_save_LIBS=$LIBS |
---|
5907 | LIBS="-lm $LIBS" |
---|
5908 | cat >conftest.$ac_ext <<_ACEOF |
---|
5909 | #line $LINENO "configure" |
---|
5910 | /* confdefs.h. */ |
---|
5911 | _ACEOF |
---|
5912 | cat confdefs.h >>conftest.$ac_ext |
---|
5913 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5914 | /* end confdefs.h. */ |
---|
5915 | |
---|
5916 | |
---|
5917 | int |
---|
5918 | main () |
---|
5919 | { |
---|
5920 | main (); |
---|
5921 | ; |
---|
5922 | return 0; |
---|
5923 | } |
---|
5924 | _ACEOF |
---|
5925 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
5926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
5927 | (eval $ac_link) 2>&5 |
---|
5928 | ac_status=$? |
---|
5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5930 | (exit $ac_status); } && |
---|
5931 | { ac_try='test -s conftest$ac_exeext' |
---|
5932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5933 | (eval $ac_try) 2>&5 |
---|
5934 | ac_status=$? |
---|
5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5936 | (exit $ac_status); }; }; then |
---|
5937 | ac_cv_lib_m_main=yes |
---|
5938 | else |
---|
5939 | echo "$as_me: failed program was:" >&5 |
---|
5940 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
5941 | |
---|
5942 | ac_cv_lib_m_main=no |
---|
5943 | fi |
---|
5944 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
5945 | LIBS=$ac_check_lib_save_LIBS |
---|
5946 | fi |
---|
5947 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
5948 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
5949 | if test $ac_cv_lib_m_main = yes; then |
---|
5950 | cat >>confdefs.h <<_ACEOF |
---|
5951 | #define HAVE_LIBM 1 |
---|
5952 | _ACEOF |
---|
5953 | |
---|
5954 | LIBS="-lm $LIBS" |
---|
5955 | |
---|
5956 | fi |
---|
5957 | |
---|
5958 | |
---|
5959 | |
---|
5960 | # Checks for header files. |
---|
5961 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
5962 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
5963 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
5964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
5965 | else |
---|
5966 | cat >conftest.$ac_ext <<_ACEOF |
---|
5967 | #line $LINENO "configure" |
---|
5968 | /* confdefs.h. */ |
---|
5969 | _ACEOF |
---|
5970 | cat confdefs.h >>conftest.$ac_ext |
---|
5971 | cat >>conftest.$ac_ext <<_ACEOF |
---|
5972 | /* end confdefs.h. */ |
---|
5973 | #include <stdlib.h> |
---|
5974 | #include <stdarg.h> |
---|
5975 | #include <string.h> |
---|
5976 | #include <float.h> |
---|
5977 | |
---|
5978 | int |
---|
5979 | main () |
---|
5980 | { |
---|
5981 | |
---|
5982 | ; |
---|
5983 | return 0; |
---|
5984 | } |
---|
5985 | _ACEOF |
---|
5986 | rm -f conftest.$ac_objext |
---|
5987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
5988 | (eval $ac_compile) 2>&5 |
---|
5989 | ac_status=$? |
---|
5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5991 | (exit $ac_status); } && |
---|
5992 | { ac_try='test -s conftest.$ac_objext' |
---|
5993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
5994 | (eval $ac_try) 2>&5 |
---|
5995 | ac_status=$? |
---|
5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
5997 | (exit $ac_status); }; }; then |
---|
5998 | ac_cv_header_stdc=yes |
---|
5999 | else |
---|
6000 | echo "$as_me: failed program was:" >&5 |
---|
6001 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6002 | |
---|
6003 | ac_cv_header_stdc=no |
---|
6004 | fi |
---|
6005 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
6006 | |
---|
6007 | if test $ac_cv_header_stdc = yes; then |
---|
6008 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
6009 | cat >conftest.$ac_ext <<_ACEOF |
---|
6010 | #line $LINENO "configure" |
---|
6011 | /* confdefs.h. */ |
---|
6012 | _ACEOF |
---|
6013 | cat confdefs.h >>conftest.$ac_ext |
---|
6014 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6015 | /* end confdefs.h. */ |
---|
6016 | #include <string.h> |
---|
6017 | |
---|
6018 | _ACEOF |
---|
6019 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6020 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
6021 | : |
---|
6022 | else |
---|
6023 | ac_cv_header_stdc=no |
---|
6024 | fi |
---|
6025 | rm -f conftest* |
---|
6026 | |
---|
6027 | fi |
---|
6028 | |
---|
6029 | if test $ac_cv_header_stdc = yes; then |
---|
6030 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
6031 | cat >conftest.$ac_ext <<_ACEOF |
---|
6032 | #line $LINENO "configure" |
---|
6033 | /* confdefs.h. */ |
---|
6034 | _ACEOF |
---|
6035 | cat confdefs.h >>conftest.$ac_ext |
---|
6036 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6037 | /* end confdefs.h. */ |
---|
6038 | #include <stdlib.h> |
---|
6039 | |
---|
6040 | _ACEOF |
---|
6041 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
6042 | $EGREP "free" >/dev/null 2>&1; then |
---|
6043 | : |
---|
6044 | else |
---|
6045 | ac_cv_header_stdc=no |
---|
6046 | fi |
---|
6047 | rm -f conftest* |
---|
6048 | |
---|
6049 | fi |
---|
6050 | |
---|
6051 | if test $ac_cv_header_stdc = yes; then |
---|
6052 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
6053 | if test "$cross_compiling" = yes; then |
---|
6054 | : |
---|
6055 | else |
---|
6056 | cat >conftest.$ac_ext <<_ACEOF |
---|
6057 | #line $LINENO "configure" |
---|
6058 | /* confdefs.h. */ |
---|
6059 | _ACEOF |
---|
6060 | cat confdefs.h >>conftest.$ac_ext |
---|
6061 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6062 | /* end confdefs.h. */ |
---|
6063 | #include <ctype.h> |
---|
6064 | #if ((' ' & 0x0FF) == 0x020) |
---|
6065 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
6066 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
6067 | #else |
---|
6068 | # define ISLOWER(c) \ |
---|
6069 | (('a' <= (c) && (c) <= 'i') \ |
---|
6070 | || ('j' <= (c) && (c) <= 'r') \ |
---|
6071 | || ('s' <= (c) && (c) <= 'z')) |
---|
6072 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
6073 | #endif |
---|
6074 | |
---|
6075 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
6076 | int |
---|
6077 | main () |
---|
6078 | { |
---|
6079 | int i; |
---|
6080 | for (i = 0; i < 256; i++) |
---|
6081 | if (XOR (islower (i), ISLOWER (i)) |
---|
6082 | || toupper (i) != TOUPPER (i)) |
---|
6083 | exit(2); |
---|
6084 | exit (0); |
---|
6085 | } |
---|
6086 | _ACEOF |
---|
6087 | rm -f conftest$ac_exeext |
---|
6088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6089 | (eval $ac_link) 2>&5 |
---|
6090 | ac_status=$? |
---|
6091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6092 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6094 | (eval $ac_try) 2>&5 |
---|
6095 | ac_status=$? |
---|
6096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6097 | (exit $ac_status); }; }; then |
---|
6098 | : |
---|
6099 | else |
---|
6100 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6101 | echo "$as_me: failed program was:" >&5 |
---|
6102 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6103 | |
---|
6104 | ( exit $ac_status ) |
---|
6105 | ac_cv_header_stdc=no |
---|
6106 | fi |
---|
6107 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6108 | fi |
---|
6109 | fi |
---|
6110 | fi |
---|
6111 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
6112 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
6113 | if test $ac_cv_header_stdc = yes; then |
---|
6114 | |
---|
6115 | cat >>confdefs.h <<\_ACEOF |
---|
6116 | #define STDC_HEADERS 1 |
---|
6117 | _ACEOF |
---|
6118 | |
---|
6119 | fi |
---|
6120 | |
---|
6121 | |
---|
6122 | |
---|
6123 | for ac_header in stdlib.h string.h |
---|
6124 | do |
---|
6125 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6126 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6127 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6128 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6129 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6131 | fi |
---|
6132 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6133 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6134 | else |
---|
6135 | # Is the header compilable? |
---|
6136 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6137 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6138 | cat >conftest.$ac_ext <<_ACEOF |
---|
6139 | #line $LINENO "configure" |
---|
6140 | /* confdefs.h. */ |
---|
6141 | _ACEOF |
---|
6142 | cat confdefs.h >>conftest.$ac_ext |
---|
6143 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6144 | /* end confdefs.h. */ |
---|
6145 | $ac_includes_default |
---|
6146 | #include <$ac_header> |
---|
6147 | _ACEOF |
---|
6148 | rm -f conftest.$ac_objext |
---|
6149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6150 | (eval $ac_compile) 2>&5 |
---|
6151 | ac_status=$? |
---|
6152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6153 | (exit $ac_status); } && |
---|
6154 | { ac_try='test -s conftest.$ac_objext' |
---|
6155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6156 | (eval $ac_try) 2>&5 |
---|
6157 | ac_status=$? |
---|
6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6159 | (exit $ac_status); }; }; then |
---|
6160 | ac_header_compiler=yes |
---|
6161 | else |
---|
6162 | echo "$as_me: failed program was:" >&5 |
---|
6163 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6164 | |
---|
6165 | ac_header_compiler=no |
---|
6166 | fi |
---|
6167 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
6168 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6169 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6170 | |
---|
6171 | # Is the header present? |
---|
6172 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6173 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6174 | cat >conftest.$ac_ext <<_ACEOF |
---|
6175 | #line $LINENO "configure" |
---|
6176 | /* confdefs.h. */ |
---|
6177 | _ACEOF |
---|
6178 | cat confdefs.h >>conftest.$ac_ext |
---|
6179 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6180 | /* end confdefs.h. */ |
---|
6181 | #include <$ac_header> |
---|
6182 | _ACEOF |
---|
6183 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
6184 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
6185 | ac_status=$? |
---|
6186 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
6187 | rm -f conftest.er1 |
---|
6188 | cat conftest.err >&5 |
---|
6189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6190 | (exit $ac_status); } >/dev/null; then |
---|
6191 | if test -s conftest.err; then |
---|
6192 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
6193 | else |
---|
6194 | ac_cpp_err= |
---|
6195 | fi |
---|
6196 | else |
---|
6197 | ac_cpp_err=yes |
---|
6198 | fi |
---|
6199 | if test -z "$ac_cpp_err"; then |
---|
6200 | ac_header_preproc=yes |
---|
6201 | else |
---|
6202 | echo "$as_me: failed program was:" >&5 |
---|
6203 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6204 | |
---|
6205 | ac_header_preproc=no |
---|
6206 | fi |
---|
6207 | rm -f conftest.err conftest.$ac_ext |
---|
6208 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6209 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6210 | |
---|
6211 | # So? What about this header? |
---|
6212 | case $ac_header_compiler:$ac_header_preproc in |
---|
6213 | yes:no ) |
---|
6214 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6215 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6216 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6217 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6218 | ( |
---|
6219 | cat <<\_ASBOX |
---|
6220 | ## ------------------------------------ ## |
---|
6221 | ## Report this to bug-autoconf@gnu.org. ## |
---|
6222 | ## ------------------------------------ ## |
---|
6223 | _ASBOX |
---|
6224 | ) | |
---|
6225 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6226 | ;; |
---|
6227 | no:yes ) |
---|
6228 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6229 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6230 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6231 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6232 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6233 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6234 | ( |
---|
6235 | cat <<\_ASBOX |
---|
6236 | ## ------------------------------------ ## |
---|
6237 | ## Report this to bug-autoconf@gnu.org. ## |
---|
6238 | ## ------------------------------------ ## |
---|
6239 | _ASBOX |
---|
6240 | ) | |
---|
6241 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6242 | ;; |
---|
6243 | esac |
---|
6244 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6248 | else |
---|
6249 | eval "$as_ac_Header=$ac_header_preproc" |
---|
6250 | fi |
---|
6251 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6252 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6253 | |
---|
6254 | fi |
---|
6255 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
6256 | cat >>confdefs.h <<_ACEOF |
---|
6257 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
6258 | _ACEOF |
---|
6259 | |
---|
6260 | fi |
---|
6261 | |
---|
6262 | done |
---|
6263 | |
---|
6264 | |
---|
6265 | # Checks for typedefs, structures, and compiler characteristics. |
---|
6266 | echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
---|
6267 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 |
---|
6268 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
---|
6269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6270 | else |
---|
6271 | cat >conftest.$ac_ext <<_ACEOF |
---|
6272 | #line $LINENO "configure" |
---|
6273 | /* confdefs.h. */ |
---|
6274 | _ACEOF |
---|
6275 | cat confdefs.h >>conftest.$ac_ext |
---|
6276 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6277 | /* end confdefs.h. */ |
---|
6278 | |
---|
6279 | #include <stdbool.h> |
---|
6280 | #ifndef bool |
---|
6281 | # error bool is not defined |
---|
6282 | #endif |
---|
6283 | #ifndef false |
---|
6284 | # error false is not defined |
---|
6285 | #endif |
---|
6286 | #if false |
---|
6287 | # error false is not 0 |
---|
6288 | #endif |
---|
6289 | #ifndef true |
---|
6290 | # error true is not defined |
---|
6291 | #endif |
---|
6292 | #if true != 1 |
---|
6293 | # error true is not 1 |
---|
6294 | #endif |
---|
6295 | #ifndef __bool_true_false_are_defined |
---|
6296 | # error __bool_true_false_are_defined is not defined |
---|
6297 | #endif |
---|
6298 | |
---|
6299 | struct s { _Bool s: 1; _Bool t; } s; |
---|
6300 | |
---|
6301 | char a[true == 1 ? 1 : -1]; |
---|
6302 | char b[false == 0 ? 1 : -1]; |
---|
6303 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
---|
6304 | char d[(bool) -0.5 == true ? 1 : -1]; |
---|
6305 | bool e = &s; |
---|
6306 | char f[(_Bool) -0.0 == false ? 1 : -1]; |
---|
6307 | char g[true]; |
---|
6308 | char h[sizeof (_Bool)]; |
---|
6309 | char i[sizeof s.t]; |
---|
6310 | |
---|
6311 | int |
---|
6312 | main () |
---|
6313 | { |
---|
6314 | return !a + !b + !c + !d + !e + !f + !g + !h + !i; |
---|
6315 | ; |
---|
6316 | return 0; |
---|
6317 | } |
---|
6318 | _ACEOF |
---|
6319 | rm -f conftest.$ac_objext |
---|
6320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6321 | (eval $ac_compile) 2>&5 |
---|
6322 | ac_status=$? |
---|
6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6324 | (exit $ac_status); } && |
---|
6325 | { ac_try='test -s conftest.$ac_objext' |
---|
6326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6327 | (eval $ac_try) 2>&5 |
---|
6328 | ac_status=$? |
---|
6329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6330 | (exit $ac_status); }; }; then |
---|
6331 | ac_cv_header_stdbool_h=yes |
---|
6332 | else |
---|
6333 | echo "$as_me: failed program was:" >&5 |
---|
6334 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6335 | |
---|
6336 | ac_cv_header_stdbool_h=no |
---|
6337 | fi |
---|
6338 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
6339 | fi |
---|
6340 | echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
---|
6341 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 |
---|
6342 | echo "$as_me:$LINENO: checking for _Bool" >&5 |
---|
6343 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 |
---|
6344 | if test "${ac_cv_type__Bool+set}" = set; then |
---|
6345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6346 | else |
---|
6347 | cat >conftest.$ac_ext <<_ACEOF |
---|
6348 | #line $LINENO "configure" |
---|
6349 | /* confdefs.h. */ |
---|
6350 | _ACEOF |
---|
6351 | cat confdefs.h >>conftest.$ac_ext |
---|
6352 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6353 | /* end confdefs.h. */ |
---|
6354 | $ac_includes_default |
---|
6355 | int |
---|
6356 | main () |
---|
6357 | { |
---|
6358 | if ((_Bool *) 0) |
---|
6359 | return 0; |
---|
6360 | if (sizeof (_Bool)) |
---|
6361 | return 0; |
---|
6362 | ; |
---|
6363 | return 0; |
---|
6364 | } |
---|
6365 | _ACEOF |
---|
6366 | rm -f conftest.$ac_objext |
---|
6367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6368 | (eval $ac_compile) 2>&5 |
---|
6369 | ac_status=$? |
---|
6370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6371 | (exit $ac_status); } && |
---|
6372 | { ac_try='test -s conftest.$ac_objext' |
---|
6373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6374 | (eval $ac_try) 2>&5 |
---|
6375 | ac_status=$? |
---|
6376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6377 | (exit $ac_status); }; }; then |
---|
6378 | ac_cv_type__Bool=yes |
---|
6379 | else |
---|
6380 | echo "$as_me: failed program was:" >&5 |
---|
6381 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6382 | |
---|
6383 | ac_cv_type__Bool=no |
---|
6384 | fi |
---|
6385 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
6386 | fi |
---|
6387 | echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
---|
6388 | echo "${ECHO_T}$ac_cv_type__Bool" >&6 |
---|
6389 | if test $ac_cv_type__Bool = yes; then |
---|
6390 | |
---|
6391 | cat >>confdefs.h <<_ACEOF |
---|
6392 | #define HAVE__BOOL 1 |
---|
6393 | _ACEOF |
---|
6394 | |
---|
6395 | |
---|
6396 | fi |
---|
6397 | |
---|
6398 | if test $ac_cv_header_stdbool_h = yes; then |
---|
6399 | |
---|
6400 | cat >>confdefs.h <<\_ACEOF |
---|
6401 | #define HAVE_STDBOOL_H 1 |
---|
6402 | _ACEOF |
---|
6403 | |
---|
6404 | fi |
---|
6405 | |
---|
6406 | |
---|
6407 | # Checks for library functions. |
---|
6408 | |
---|
6409 | for ac_header in stdlib.h |
---|
6410 | do |
---|
6411 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
6412 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6413 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
6414 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
6415 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
6416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6417 | fi |
---|
6418 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
6419 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
6420 | else |
---|
6421 | # Is the header compilable? |
---|
6422 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
6423 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
6424 | cat >conftest.$ac_ext <<_ACEOF |
---|
6425 | #line $LINENO "configure" |
---|
6426 | /* confdefs.h. */ |
---|
6427 | _ACEOF |
---|
6428 | cat confdefs.h >>conftest.$ac_ext |
---|
6429 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6430 | /* end confdefs.h. */ |
---|
6431 | $ac_includes_default |
---|
6432 | #include <$ac_header> |
---|
6433 | _ACEOF |
---|
6434 | rm -f conftest.$ac_objext |
---|
6435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
6436 | (eval $ac_compile) 2>&5 |
---|
6437 | ac_status=$? |
---|
6438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6439 | (exit $ac_status); } && |
---|
6440 | { ac_try='test -s conftest.$ac_objext' |
---|
6441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6442 | (eval $ac_try) 2>&5 |
---|
6443 | ac_status=$? |
---|
6444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6445 | (exit $ac_status); }; }; then |
---|
6446 | ac_header_compiler=yes |
---|
6447 | else |
---|
6448 | echo "$as_me: failed program was:" >&5 |
---|
6449 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6450 | |
---|
6451 | ac_header_compiler=no |
---|
6452 | fi |
---|
6453 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
6454 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
6455 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
6456 | |
---|
6457 | # Is the header present? |
---|
6458 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
6459 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
6460 | cat >conftest.$ac_ext <<_ACEOF |
---|
6461 | #line $LINENO "configure" |
---|
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 | else |
---|
6480 | ac_cpp_err= |
---|
6481 | fi |
---|
6482 | else |
---|
6483 | ac_cpp_err=yes |
---|
6484 | fi |
---|
6485 | if test -z "$ac_cpp_err"; then |
---|
6486 | ac_header_preproc=yes |
---|
6487 | else |
---|
6488 | echo "$as_me: failed program was:" >&5 |
---|
6489 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6490 | |
---|
6491 | ac_header_preproc=no |
---|
6492 | fi |
---|
6493 | rm -f conftest.err conftest.$ac_ext |
---|
6494 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
6495 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
6496 | |
---|
6497 | # So? What about this header? |
---|
6498 | case $ac_header_compiler:$ac_header_preproc in |
---|
6499 | yes:no ) |
---|
6500 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
6501 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
6502 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6503 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6504 | ( |
---|
6505 | cat <<\_ASBOX |
---|
6506 | ## ------------------------------------ ## |
---|
6507 | ## Report this to bug-autoconf@gnu.org. ## |
---|
6508 | ## ------------------------------------ ## |
---|
6509 | _ASBOX |
---|
6510 | ) | |
---|
6511 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
6512 | ;; |
---|
6513 | no:yes ) |
---|
6514 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
6515 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
6516 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
6517 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
6518 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
6519 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
6520 | ( |
---|
6521 | cat <<\_ASBOX |
---|
6522 | ## ------------------------------------ ## |
---|
6523 | ## Report this to bug-autoconf@gnu.org. ## |
---|
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 | fi |
---|
6547 | |
---|
6548 | done |
---|
6549 | |
---|
6550 | echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 |
---|
6551 | echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 |
---|
6552 | if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then |
---|
6553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6554 | else |
---|
6555 | if test "$cross_compiling" = yes; then |
---|
6556 | ac_cv_func_malloc_0_nonnull=no |
---|
6557 | else |
---|
6558 | cat >conftest.$ac_ext <<_ACEOF |
---|
6559 | #line $LINENO "configure" |
---|
6560 | /* confdefs.h. */ |
---|
6561 | _ACEOF |
---|
6562 | cat confdefs.h >>conftest.$ac_ext |
---|
6563 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6564 | /* end confdefs.h. */ |
---|
6565 | #if STDC_HEADERS || HAVE_STDLIB_H |
---|
6566 | # include <stdlib.h> |
---|
6567 | #else |
---|
6568 | char *malloc (); |
---|
6569 | #endif |
---|
6570 | |
---|
6571 | int |
---|
6572 | main () |
---|
6573 | { |
---|
6574 | exit (malloc (0) ? 0 : 1); |
---|
6575 | ; |
---|
6576 | return 0; |
---|
6577 | } |
---|
6578 | _ACEOF |
---|
6579 | rm -f conftest$ac_exeext |
---|
6580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6581 | (eval $ac_link) 2>&5 |
---|
6582 | ac_status=$? |
---|
6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6584 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
6585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6586 | (eval $ac_try) 2>&5 |
---|
6587 | ac_status=$? |
---|
6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6589 | (exit $ac_status); }; }; then |
---|
6590 | ac_cv_func_malloc_0_nonnull=yes |
---|
6591 | else |
---|
6592 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
6593 | echo "$as_me: failed program was:" >&5 |
---|
6594 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6595 | |
---|
6596 | ( exit $ac_status ) |
---|
6597 | ac_cv_func_malloc_0_nonnull=no |
---|
6598 | fi |
---|
6599 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
6600 | fi |
---|
6601 | fi |
---|
6602 | echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 |
---|
6603 | echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6 |
---|
6604 | if test $ac_cv_func_malloc_0_nonnull = yes; then |
---|
6605 | |
---|
6606 | cat >>confdefs.h <<\_ACEOF |
---|
6607 | #define HAVE_MALLOC 1 |
---|
6608 | _ACEOF |
---|
6609 | |
---|
6610 | else |
---|
6611 | cat >>confdefs.h <<\_ACEOF |
---|
6612 | #define HAVE_MALLOC 0 |
---|
6613 | _ACEOF |
---|
6614 | |
---|
6615 | LIBOBJS="$LIBOBJS malloc.$ac_objext" |
---|
6616 | |
---|
6617 | cat >>confdefs.h <<\_ACEOF |
---|
6618 | #define malloc rpl_malloc |
---|
6619 | _ACEOF |
---|
6620 | |
---|
6621 | fi |
---|
6622 | |
---|
6623 | |
---|
6624 | |
---|
6625 | |
---|
6626 | |
---|
6627 | for ac_func in bzero sqrt |
---|
6628 | do |
---|
6629 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
6630 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
6631 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
6632 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
6633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
6634 | else |
---|
6635 | cat >conftest.$ac_ext <<_ACEOF |
---|
6636 | #line $LINENO "configure" |
---|
6637 | /* confdefs.h. */ |
---|
6638 | _ACEOF |
---|
6639 | cat confdefs.h >>conftest.$ac_ext |
---|
6640 | cat >>conftest.$ac_ext <<_ACEOF |
---|
6641 | /* end confdefs.h. */ |
---|
6642 | /* System header to define __stub macros and hopefully few prototypes, |
---|
6643 | which can conflict with char $ac_func (); below. |
---|
6644 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
6645 | <limits.h> exists even on freestanding compilers. */ |
---|
6646 | #ifdef __STDC__ |
---|
6647 | # include <limits.h> |
---|
6648 | #else |
---|
6649 | # include <assert.h> |
---|
6650 | #endif |
---|
6651 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
6652 | #ifdef __cplusplus |
---|
6653 | extern "C" |
---|
6654 | { |
---|
6655 | #endif |
---|
6656 | /* We use char because int might match the return type of a gcc2 |
---|
6657 | builtin and then its argument prototype would still apply. */ |
---|
6658 | char $ac_func (); |
---|
6659 | /* The GNU C library defines this for functions which it implements |
---|
6660 | to always fail with ENOSYS. Some functions are actually named |
---|
6661 | something starting with __ and the normal name is an alias. */ |
---|
6662 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
6663 | choke me |
---|
6664 | #else |
---|
6665 | char (*f) () = $ac_func; |
---|
6666 | #endif |
---|
6667 | #ifdef __cplusplus |
---|
6668 | } |
---|
6669 | #endif |
---|
6670 | |
---|
6671 | int |
---|
6672 | main () |
---|
6673 | { |
---|
6674 | return f != $ac_func; |
---|
6675 | ; |
---|
6676 | return 0; |
---|
6677 | } |
---|
6678 | _ACEOF |
---|
6679 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
6680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
6681 | (eval $ac_link) 2>&5 |
---|
6682 | ac_status=$? |
---|
6683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6684 | (exit $ac_status); } && |
---|
6685 | { ac_try='test -s conftest$ac_exeext' |
---|
6686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
6687 | (eval $ac_try) 2>&5 |
---|
6688 | ac_status=$? |
---|
6689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
6690 | (exit $ac_status); }; }; then |
---|
6691 | eval "$as_ac_var=yes" |
---|
6692 | else |
---|
6693 | echo "$as_me: failed program was:" >&5 |
---|
6694 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
6695 | |
---|
6696 | eval "$as_ac_var=no" |
---|
6697 | fi |
---|
6698 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
6699 | fi |
---|
6700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
6701 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
6702 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
6703 | cat >>confdefs.h <<_ACEOF |
---|
6704 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
6705 | _ACEOF |
---|
6706 | |
---|
6707 | fi |
---|
6708 | done |
---|
6709 | |
---|
6710 | |
---|
6711 | ac_config_files="$ac_config_files Makefile console/Makefile gui/Makefile src/Makefile importer/Makefile" |
---|
6712 | |
---|
6713 | cat >confcache <<\_ACEOF |
---|
6714 | # This file is a shell script that caches the results of configure |
---|
6715 | # tests run on this system so they can be shared between configure |
---|
6716 | # scripts and configure runs, see configure's option --config-cache. |
---|
6717 | # It is not useful on other systems. If it contains results you don't |
---|
6718 | # want to keep, you may remove or edit it. |
---|
6719 | # |
---|
6720 | # config.status only pays attention to the cache file if you give it |
---|
6721 | # the --recheck option to rerun configure. |
---|
6722 | # |
---|
6723 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
6724 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
6725 | # following values. |
---|
6726 | |
---|
6727 | _ACEOF |
---|
6728 | |
---|
6729 | # The following way of writing the cache mishandles newlines in values, |
---|
6730 | # but we know of no workaround that is simple, portable, and efficient. |
---|
6731 | # So, don't put newlines in cache variables' values. |
---|
6732 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
6733 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
6734 | { |
---|
6735 | (set) 2>&1 | |
---|
6736 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
6737 | *ac_space=\ *) |
---|
6738 | # `set' does not quote correctly, so add quotes (double-quote |
---|
6739 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
6740 | sed -n \ |
---|
6741 | "s/'/'\\\\''/g; |
---|
6742 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
6743 | ;; |
---|
6744 | *) |
---|
6745 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
6746 | sed -n \ |
---|
6747 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
6748 | ;; |
---|
6749 | esac; |
---|
6750 | } | |
---|
6751 | sed ' |
---|
6752 | t clear |
---|
6753 | : clear |
---|
6754 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
6755 | t end |
---|
6756 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
6757 | : end' >>confcache |
---|
6758 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
6759 | if test -w $cache_file; then |
---|
6760 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
6761 | cat confcache >$cache_file |
---|
6762 | else |
---|
6763 | echo "not updating unwritable cache $cache_file" |
---|
6764 | fi |
---|
6765 | fi |
---|
6766 | rm -f confcache |
---|
6767 | |
---|
6768 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
6769 | # Let make expand exec_prefix. |
---|
6770 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
6771 | |
---|
6772 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
6773 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
6774 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6775 | # (actually we leave an empty line to preserve line numbers). |
---|
6776 | if test "x$srcdir" = x.; then |
---|
6777 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
6778 | s/:*\$(srcdir):*/:/; |
---|
6779 | s/:*\${srcdir}:*/:/; |
---|
6780 | s/:*@srcdir@:*/:/; |
---|
6781 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
6782 | s/:*$//; |
---|
6783 | s/^[^=]*=[ ]*$//; |
---|
6784 | }' |
---|
6785 | fi |
---|
6786 | |
---|
6787 | DEFS=-DHAVE_CONFIG_H |
---|
6788 | |
---|
6789 | ac_libobjs= |
---|
6790 | ac_ltlibobjs= |
---|
6791 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
6792 | # 1. Remove the extension, and $U if already installed. |
---|
6793 | ac_i=`echo "$ac_i" | |
---|
6794 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
6795 | # 2. Add them. |
---|
6796 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
6797 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
6798 | done |
---|
6799 | LIBOBJS=$ac_libobjs |
---|
6800 | |
---|
6801 | LTLIBOBJS=$ac_ltlibobjs |
---|
6802 | |
---|
6803 | |
---|
6804 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
6805 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
---|
6806 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6807 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
---|
6808 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6809 | { (exit 1); exit 1; }; } |
---|
6810 | fi |
---|
6811 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
---|
6812 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
---|
6813 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6814 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
---|
6815 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6816 | { (exit 1); exit 1; }; } |
---|
6817 | fi |
---|
6818 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
6819 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
---|
6820 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6821 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
---|
6822 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6823 | { (exit 1); exit 1; }; } |
---|
6824 | fi |
---|
6825 | if test -z "${HAVE_GTK2_TRUE}" && test -z "${HAVE_GTK2_FALSE}"; then |
---|
6826 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK2\" was never defined. |
---|
6827 | Usually this means the macro was only invoked conditionally." >&5 |
---|
6828 | echo "$as_me: error: conditional \"HAVE_GTK2\" was never defined. |
---|
6829 | Usually this means the macro was only invoked conditionally." >&2;} |
---|
6830 | { (exit 1); exit 1; }; } |
---|
6831 | fi |
---|
6832 | |
---|
6833 | : ${CONFIG_STATUS=./config.status} |
---|
6834 | ac_clean_files_save=$ac_clean_files |
---|
6835 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
6836 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
6837 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
6838 | cat >$CONFIG_STATUS <<_ACEOF |
---|
6839 | #! $SHELL |
---|
6840 | # Generated by $as_me. |
---|
6841 | # Run this file to recreate the current configuration. |
---|
6842 | # Compiler output produced by configure, useful for debugging |
---|
6843 | # configure, is in config.log if it exists. |
---|
6844 | |
---|
6845 | debug=false |
---|
6846 | ac_cs_recheck=false |
---|
6847 | ac_cs_silent=false |
---|
6848 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
6849 | _ACEOF |
---|
6850 | |
---|
6851 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
6852 | ## --------------------- ## |
---|
6853 | ## M4sh Initialization. ## |
---|
6854 | ## --------------------- ## |
---|
6855 | |
---|
6856 | # Be Bourne compatible |
---|
6857 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
6858 | emulate sh |
---|
6859 | NULLCMD=: |
---|
6860 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
6861 | # is contrary to our usage. Disable this feature. |
---|
6862 | alias -g '${1+"$@"}'='"$@"' |
---|
6863 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
6864 | set -o posix |
---|
6865 | fi |
---|
6866 | |
---|
6867 | # Support unset when possible. |
---|
6868 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
6869 | as_unset=unset |
---|
6870 | else |
---|
6871 | as_unset=false |
---|
6872 | fi |
---|
6873 | |
---|
6874 | |
---|
6875 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
6876 | $as_unset ENV MAIL MAILPATH |
---|
6877 | PS1='$ ' |
---|
6878 | PS2='> ' |
---|
6879 | PS4='+ ' |
---|
6880 | |
---|
6881 | # NLS nuisances. |
---|
6882 | for as_var in \ |
---|
6883 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
6884 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
6885 | LC_TELEPHONE LC_TIME |
---|
6886 | do |
---|
6887 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
6888 | eval $as_var=C; export $as_var |
---|
6889 | else |
---|
6890 | $as_unset $as_var |
---|
6891 | fi |
---|
6892 | done |
---|
6893 | |
---|
6894 | # Required to use basename. |
---|
6895 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
6896 | as_expr=expr |
---|
6897 | else |
---|
6898 | as_expr=false |
---|
6899 | fi |
---|
6900 | |
---|
6901 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
6902 | as_basename=basename |
---|
6903 | else |
---|
6904 | as_basename=false |
---|
6905 | fi |
---|
6906 | |
---|
6907 | |
---|
6908 | # Name of the executable. |
---|
6909 | as_me=`$as_basename "$0" || |
---|
6910 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6911 | X"$0" : 'X\(//\)$' \| \ |
---|
6912 | X"$0" : 'X\(/\)$' \| \ |
---|
6913 | . : '\(.\)' 2>/dev/null || |
---|
6914 | echo X/"$0" | |
---|
6915 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
6916 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
6917 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
6918 | s/.*/./; q'` |
---|
6919 | |
---|
6920 | |
---|
6921 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
6922 | # Avoid depending upon Character Ranges. |
---|
6923 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6924 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6925 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6926 | as_cr_digits='0123456789' |
---|
6927 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6928 | |
---|
6929 | # The user is always right. |
---|
6930 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
6931 | echo "#! /bin/sh" >conf$$.sh |
---|
6932 | echo "exit 0" >>conf$$.sh |
---|
6933 | chmod +x conf$$.sh |
---|
6934 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
6935 | PATH_SEPARATOR=';' |
---|
6936 | else |
---|
6937 | PATH_SEPARATOR=: |
---|
6938 | fi |
---|
6939 | rm -f conf$$.sh |
---|
6940 | fi |
---|
6941 | |
---|
6942 | |
---|
6943 | as_lineno_1=$LINENO |
---|
6944 | as_lineno_2=$LINENO |
---|
6945 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6946 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6947 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
6948 | # Find who we are. Look in the path if we contain no path at all |
---|
6949 | # relative or not. |
---|
6950 | case $0 in |
---|
6951 | *[\\/]* ) as_myself=$0 ;; |
---|
6952 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6953 | for as_dir in $PATH |
---|
6954 | do |
---|
6955 | IFS=$as_save_IFS |
---|
6956 | test -z "$as_dir" && as_dir=. |
---|
6957 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
6958 | done |
---|
6959 | |
---|
6960 | ;; |
---|
6961 | esac |
---|
6962 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
6963 | # in which case we are not to be found in the path. |
---|
6964 | if test "x$as_myself" = x; then |
---|
6965 | as_myself=$0 |
---|
6966 | fi |
---|
6967 | if test ! -f "$as_myself"; then |
---|
6968 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
6969 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
6970 | { (exit 1); exit 1; }; } |
---|
6971 | fi |
---|
6972 | case $CONFIG_SHELL in |
---|
6973 | '') |
---|
6974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6975 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
6976 | do |
---|
6977 | IFS=$as_save_IFS |
---|
6978 | test -z "$as_dir" && as_dir=. |
---|
6979 | for as_base in sh bash ksh sh5; do |
---|
6980 | case $as_dir in |
---|
6981 | /*) |
---|
6982 | if ("$as_dir/$as_base" -c ' |
---|
6983 | as_lineno_1=$LINENO |
---|
6984 | as_lineno_2=$LINENO |
---|
6985 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
6986 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
6987 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
6988 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
6989 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
6990 | CONFIG_SHELL=$as_dir/$as_base |
---|
6991 | export CONFIG_SHELL |
---|
6992 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
6993 | fi;; |
---|
6994 | esac |
---|
6995 | done |
---|
6996 | done |
---|
6997 | ;; |
---|
6998 | esac |
---|
6999 | |
---|
7000 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
7001 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
7002 | # line-number line before each line; the second 'sed' does the real |
---|
7003 | # work. The second script uses 'N' to pair each line-number line |
---|
7004 | # with the numbered line, and appends trailing '-' during |
---|
7005 | # substitution so that $LINENO is not a special case at line end. |
---|
7006 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
7007 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
7008 | sed '=' <$as_myself | |
---|
7009 | sed ' |
---|
7010 | N |
---|
7011 | s,$,-, |
---|
7012 | : loop |
---|
7013 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
7014 | t loop |
---|
7015 | s,-$,, |
---|
7016 | s,^['$as_cr_digits']*\n,, |
---|
7017 | ' >$as_me.lineno && |
---|
7018 | chmod +x $as_me.lineno || |
---|
7019 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
7020 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
7021 | { (exit 1); exit 1; }; } |
---|
7022 | |
---|
7023 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
7024 | # (the dirname of $[0] is not the place where we might find the |
---|
7025 | # original and so on. Autoconf is especially sensible to this). |
---|
7026 | . ./$as_me.lineno |
---|
7027 | # Exit status is that of the last command. |
---|
7028 | exit |
---|
7029 | } |
---|
7030 | |
---|
7031 | |
---|
7032 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
7033 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
7034 | ' ECHO_T=' ' ;; |
---|
7035 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
7036 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
7037 | esac |
---|
7038 | |
---|
7039 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
7040 | as_expr=expr |
---|
7041 | else |
---|
7042 | as_expr=false |
---|
7043 | fi |
---|
7044 | |
---|
7045 | rm -f conf$$ conf$$.exe conf$$.file |
---|
7046 | echo >conf$$.file |
---|
7047 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
7048 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
7049 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
7050 | if test -f conf$$.exe; then |
---|
7051 | # Don't use ln at all; we don't have any links |
---|
7052 | as_ln_s='cp -p' |
---|
7053 | else |
---|
7054 | as_ln_s='ln -s' |
---|
7055 | fi |
---|
7056 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
7057 | as_ln_s=ln |
---|
7058 | else |
---|
7059 | as_ln_s='cp -p' |
---|
7060 | fi |
---|
7061 | rm -f conf$$ conf$$.exe conf$$.file |
---|
7062 | |
---|
7063 | if mkdir -p . 2>/dev/null; then |
---|
7064 | as_mkdir_p=: |
---|
7065 | else |
---|
7066 | as_mkdir_p=false |
---|
7067 | fi |
---|
7068 | |
---|
7069 | as_executable_p="test -f" |
---|
7070 | |
---|
7071 | # Sed expression to map a string onto a valid CPP name. |
---|
7072 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
7073 | |
---|
7074 | # Sed expression to map a string onto a valid variable name. |
---|
7075 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
7076 | |
---|
7077 | |
---|
7078 | # IFS |
---|
7079 | # We need space, tab and new line, in precisely that order. |
---|
7080 | as_nl=' |
---|
7081 | ' |
---|
7082 | IFS=" $as_nl" |
---|
7083 | |
---|
7084 | # CDPATH. |
---|
7085 | $as_unset CDPATH |
---|
7086 | |
---|
7087 | exec 6>&1 |
---|
7088 | |
---|
7089 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
7090 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
7091 | # values after options handling. Logging --version etc. is OK. |
---|
7092 | exec 5>>config.log |
---|
7093 | { |
---|
7094 | echo |
---|
7095 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
7096 | ## Running $as_me. ## |
---|
7097 | _ASBOX |
---|
7098 | } >&5 |
---|
7099 | cat >&5 <<_CSEOF |
---|
7100 | |
---|
7101 | This file was extended by orxonox $as_me 0.1-pre-alpha, which was |
---|
7102 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
7103 | |
---|
7104 | CONFIG_FILES = $CONFIG_FILES |
---|
7105 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
7106 | CONFIG_LINKS = $CONFIG_LINKS |
---|
7107 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
7108 | $ $0 $@ |
---|
7109 | |
---|
7110 | _CSEOF |
---|
7111 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
7112 | echo >&5 |
---|
7113 | _ACEOF |
---|
7114 | |
---|
7115 | # Files that config.status was made for. |
---|
7116 | if test -n "$ac_config_files"; then |
---|
7117 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
7118 | fi |
---|
7119 | |
---|
7120 | if test -n "$ac_config_headers"; then |
---|
7121 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
7122 | fi |
---|
7123 | |
---|
7124 | if test -n "$ac_config_links"; then |
---|
7125 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
7126 | fi |
---|
7127 | |
---|
7128 | if test -n "$ac_config_commands"; then |
---|
7129 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
7130 | fi |
---|
7131 | |
---|
7132 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7133 | |
---|
7134 | ac_cs_usage="\ |
---|
7135 | \`$as_me' instantiates files from templates according to the |
---|
7136 | current configuration. |
---|
7137 | |
---|
7138 | Usage: $0 [OPTIONS] [FILE]... |
---|
7139 | |
---|
7140 | -h, --help print this help, then exit |
---|
7141 | -V, --version print version number, then exit |
---|
7142 | -q, --quiet do not print progress messages |
---|
7143 | -d, --debug don't remove temporary files |
---|
7144 | --recheck update $as_me by reconfiguring in the same conditions |
---|
7145 | --file=FILE[:TEMPLATE] |
---|
7146 | instantiate the configuration file FILE |
---|
7147 | --header=FILE[:TEMPLATE] |
---|
7148 | instantiate the configuration header FILE |
---|
7149 | |
---|
7150 | Configuration files: |
---|
7151 | $config_files |
---|
7152 | |
---|
7153 | Configuration headers: |
---|
7154 | $config_headers |
---|
7155 | |
---|
7156 | Configuration commands: |
---|
7157 | $config_commands |
---|
7158 | |
---|
7159 | Report bugs to <bug-autoconf@gnu.org>." |
---|
7160 | _ACEOF |
---|
7161 | |
---|
7162 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7163 | ac_cs_version="\\ |
---|
7164 | orxonox config.status 0.1-pre-alpha |
---|
7165 | configured by $0, generated by GNU Autoconf 2.57, |
---|
7166 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
7167 | |
---|
7168 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
---|
7169 | Free Software Foundation, Inc. |
---|
7170 | This config.status script is free software; the Free Software Foundation |
---|
7171 | gives unlimited permission to copy, distribute and modify it." |
---|
7172 | srcdir=$srcdir |
---|
7173 | INSTALL="$INSTALL" |
---|
7174 | _ACEOF |
---|
7175 | |
---|
7176 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7177 | # If no file are specified by the user, then we need to provide default |
---|
7178 | # value. By we need to know if files were specified by the user. |
---|
7179 | ac_need_defaults=: |
---|
7180 | while test $# != 0 |
---|
7181 | do |
---|
7182 | case $1 in |
---|
7183 | --*=*) |
---|
7184 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
7185 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
7186 | ac_shift=: |
---|
7187 | ;; |
---|
7188 | -*) |
---|
7189 | ac_option=$1 |
---|
7190 | ac_optarg=$2 |
---|
7191 | ac_shift=shift |
---|
7192 | ;; |
---|
7193 | *) # This is not an option, so the user has probably given explicit |
---|
7194 | # arguments. |
---|
7195 | ac_option=$1 |
---|
7196 | ac_need_defaults=false;; |
---|
7197 | esac |
---|
7198 | |
---|
7199 | case $ac_option in |
---|
7200 | # Handling of the options. |
---|
7201 | _ACEOF |
---|
7202 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7203 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
7204 | ac_cs_recheck=: ;; |
---|
7205 | --version | --vers* | -V ) |
---|
7206 | echo "$ac_cs_version"; exit 0 ;; |
---|
7207 | --he | --h) |
---|
7208 | # Conflict between --help and --header |
---|
7209 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
7210 | Try \`$0 --help' for more information." >&5 |
---|
7211 | echo "$as_me: error: ambiguous option: $1 |
---|
7212 | Try \`$0 --help' for more information." >&2;} |
---|
7213 | { (exit 1); exit 1; }; };; |
---|
7214 | --help | --hel | -h ) |
---|
7215 | echo "$ac_cs_usage"; exit 0 ;; |
---|
7216 | --debug | --d* | -d ) |
---|
7217 | debug=: ;; |
---|
7218 | --file | --fil | --fi | --f ) |
---|
7219 | $ac_shift |
---|
7220 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
7221 | ac_need_defaults=false;; |
---|
7222 | --header | --heade | --head | --hea ) |
---|
7223 | $ac_shift |
---|
7224 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
7225 | ac_need_defaults=false;; |
---|
7226 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
7227 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
7228 | ac_cs_silent=: ;; |
---|
7229 | |
---|
7230 | # This is an error. |
---|
7231 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
7232 | Try \`$0 --help' for more information." >&5 |
---|
7233 | echo "$as_me: error: unrecognized option: $1 |
---|
7234 | Try \`$0 --help' for more information." >&2;} |
---|
7235 | { (exit 1); exit 1; }; } ;; |
---|
7236 | |
---|
7237 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
7238 | |
---|
7239 | esac |
---|
7240 | shift |
---|
7241 | done |
---|
7242 | |
---|
7243 | ac_configure_extra_args= |
---|
7244 | |
---|
7245 | if $ac_cs_silent; then |
---|
7246 | exec 6>/dev/null |
---|
7247 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
7248 | fi |
---|
7249 | |
---|
7250 | _ACEOF |
---|
7251 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7252 | if \$ac_cs_recheck; then |
---|
7253 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
7254 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
7255 | fi |
---|
7256 | |
---|
7257 | _ACEOF |
---|
7258 | |
---|
7259 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7260 | # |
---|
7261 | # INIT-COMMANDS section. |
---|
7262 | # |
---|
7263 | |
---|
7264 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
7265 | |
---|
7266 | _ACEOF |
---|
7267 | |
---|
7268 | |
---|
7269 | |
---|
7270 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7271 | for ac_config_target in $ac_config_targets |
---|
7272 | do |
---|
7273 | case "$ac_config_target" in |
---|
7274 | # Handling of arguments. |
---|
7275 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
7276 | "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;; |
---|
7277 | "gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES gui/Makefile" ;; |
---|
7278 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
7279 | "importer/Makefile" ) CONFIG_FILES="$CONFIG_FILES importer/Makefile" ;; |
---|
7280 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
7281 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
---|
7282 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
7283 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
7284 | { (exit 1); exit 1; }; };; |
---|
7285 | esac |
---|
7286 | done |
---|
7287 | |
---|
7288 | # If the user did not use the arguments to specify the items to instantiate, |
---|
7289 | # then the envvar interface is used. Set only those that are not. |
---|
7290 | # We use the long form for the default assignment because of an extremely |
---|
7291 | # bizarre bug on SunOS 4.1.3. |
---|
7292 | if $ac_need_defaults; then |
---|
7293 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
7294 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
7295 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
7296 | fi |
---|
7297 | |
---|
7298 | # Have a temporary directory for convenience. Make it in the build tree |
---|
7299 | # simply because there is no reason to put it here, and in addition, |
---|
7300 | # creating and moving files from /tmp can sometimes cause problems. |
---|
7301 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
7302 | $debug || |
---|
7303 | { |
---|
7304 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
7305 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
7306 | } |
---|
7307 | |
---|
7308 | # Create a (secure) tmp directory for tmp files. |
---|
7309 | |
---|
7310 | { |
---|
7311 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
7312 | test -n "$tmp" && test -d "$tmp" |
---|
7313 | } || |
---|
7314 | { |
---|
7315 | tmp=./confstat$$-$RANDOM |
---|
7316 | (umask 077 && mkdir $tmp) |
---|
7317 | } || |
---|
7318 | { |
---|
7319 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
7320 | { (exit 1); exit 1; } |
---|
7321 | } |
---|
7322 | |
---|
7323 | _ACEOF |
---|
7324 | |
---|
7325 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7326 | |
---|
7327 | # |
---|
7328 | # CONFIG_FILES section. |
---|
7329 | # |
---|
7330 | |
---|
7331 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
7332 | # This happens for instance when ./config.status config.h |
---|
7333 | if test -n "\$CONFIG_FILES"; then |
---|
7334 | # Protect against being on the right side of a sed subst in config.status. |
---|
7335 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
7336 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
7337 | s,@SHELL@,$SHELL,;t t |
---|
7338 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
7339 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
7340 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
7341 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
7342 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
7343 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
7344 | s,@exec_prefix@,$exec_prefix,;t t |
---|
7345 | s,@prefix@,$prefix,;t t |
---|
7346 | s,@program_transform_name@,$program_transform_name,;t t |
---|
7347 | s,@bindir@,$bindir,;t t |
---|
7348 | s,@sbindir@,$sbindir,;t t |
---|
7349 | s,@libexecdir@,$libexecdir,;t t |
---|
7350 | s,@datadir@,$datadir,;t t |
---|
7351 | s,@sysconfdir@,$sysconfdir,;t t |
---|
7352 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
7353 | s,@localstatedir@,$localstatedir,;t t |
---|
7354 | s,@libdir@,$libdir,;t t |
---|
7355 | s,@includedir@,$includedir,;t t |
---|
7356 | s,@oldincludedir@,$oldincludedir,;t t |
---|
7357 | s,@infodir@,$infodir,;t t |
---|
7358 | s,@mandir@,$mandir,;t t |
---|
7359 | s,@build_alias@,$build_alias,;t t |
---|
7360 | s,@host_alias@,$host_alias,;t t |
---|
7361 | s,@target_alias@,$target_alias,;t t |
---|
7362 | s,@DEFS@,$DEFS,;t t |
---|
7363 | s,@ECHO_C@,$ECHO_C,;t t |
---|
7364 | s,@ECHO_N@,$ECHO_N,;t t |
---|
7365 | s,@ECHO_T@,$ECHO_T,;t t |
---|
7366 | s,@LIBS@,$LIBS,;t t |
---|
7367 | s,@build@,$build,;t t |
---|
7368 | s,@build_cpu@,$build_cpu,;t t |
---|
7369 | s,@build_vendor@,$build_vendor,;t t |
---|
7370 | s,@build_os@,$build_os,;t t |
---|
7371 | s,@host@,$host,;t t |
---|
7372 | s,@host_cpu@,$host_cpu,;t t |
---|
7373 | s,@host_vendor@,$host_vendor,;t t |
---|
7374 | s,@host_os@,$host_os,;t t |
---|
7375 | s,@target@,$target,;t t |
---|
7376 | s,@target_cpu@,$target_cpu,;t t |
---|
7377 | s,@target_vendor@,$target_vendor,;t t |
---|
7378 | s,@target_os@,$target_os,;t t |
---|
7379 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
7380 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
7381 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
7382 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
---|
7383 | s,@PACKAGE@,$PACKAGE,;t t |
---|
7384 | s,@VERSION@,$VERSION,;t t |
---|
7385 | s,@ACLOCAL@,$ACLOCAL,;t t |
---|
7386 | s,@AUTOCONF@,$AUTOCONF,;t t |
---|
7387 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
---|
7388 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
---|
7389 | s,@MAKEINFO@,$MAKEINFO,;t t |
---|
7390 | s,@AMTAR@,$AMTAR,;t t |
---|
7391 | s,@install_sh@,$install_sh,;t t |
---|
7392 | s,@STRIP@,$STRIP,;t t |
---|
7393 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
---|
7394 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
---|
7395 | s,@AWK@,$AWK,;t t |
---|
7396 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
7397 | s,@am__leading_dot@,$am__leading_dot,;t t |
---|
7398 | s,@CXX@,$CXX,;t t |
---|
7399 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
7400 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
7401 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
7402 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
7403 | s,@EXEEXT@,$EXEEXT,;t t |
---|
7404 | s,@OBJEXT@,$OBJEXT,;t t |
---|
7405 | s,@DEPDIR@,$DEPDIR,;t t |
---|
7406 | s,@am__include@,$am__include,;t t |
---|
7407 | s,@am__quote@,$am__quote,;t t |
---|
7408 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
---|
7409 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
---|
7410 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
---|
7411 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
---|
7412 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
---|
7413 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
---|
7414 | s,@CC@,$CC,;t t |
---|
7415 | s,@CFLAGS@,$CFLAGS,;t t |
---|
7416 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
7417 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
---|
7418 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
---|
7419 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
---|
7420 | s,@CPP@,$CPP,;t t |
---|
7421 | s,@EGREP@,$EGREP,;t t |
---|
7422 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t |
---|
7423 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t |
---|
7424 | s,@SDL_LIBS@,$SDL_LIBS,;t t |
---|
7425 | s,@MSBITFIELDS@,$MSBITFIELDS,;t t |
---|
7426 | s,@GTK2_LIBS@,$GTK2_LIBS,;t t |
---|
7427 | s,@GTK2_CFLAGS@,$GTK2_CFLAGS,;t t |
---|
7428 | s,@HAVE_GTK2_TRUE@,$HAVE_GTK2_TRUE,;t t |
---|
7429 | s,@HAVE_GTK2_FALSE@,$HAVE_GTK2_FALSE,;t t |
---|
7430 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
7431 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
7432 | CEOF |
---|
7433 | |
---|
7434 | _ACEOF |
---|
7435 | |
---|
7436 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7437 | # Split the substitutions into bite-sized pieces for seds with |
---|
7438 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
7439 | ac_max_sed_lines=48 |
---|
7440 | ac_sed_frag=1 # Number of current file. |
---|
7441 | ac_beg=1 # First line for current file. |
---|
7442 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
7443 | ac_more_lines=: |
---|
7444 | ac_sed_cmds= |
---|
7445 | while $ac_more_lines; do |
---|
7446 | if test $ac_beg -gt 1; then |
---|
7447 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
7448 | else |
---|
7449 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
7450 | fi |
---|
7451 | if test ! -s $tmp/subs.frag; then |
---|
7452 | ac_more_lines=false |
---|
7453 | else |
---|
7454 | # The purpose of the label and of the branching condition is to |
---|
7455 | # speed up the sed processing (if there are no `@' at all, there |
---|
7456 | # is no need to browse any of the substitutions). |
---|
7457 | # These are the two extra sed commands mentioned above. |
---|
7458 | (echo ':t |
---|
7459 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
7460 | if test -z "$ac_sed_cmds"; then |
---|
7461 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
7462 | else |
---|
7463 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
7464 | fi |
---|
7465 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
7466 | ac_beg=$ac_end |
---|
7467 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
7468 | fi |
---|
7469 | done |
---|
7470 | if test -z "$ac_sed_cmds"; then |
---|
7471 | ac_sed_cmds=cat |
---|
7472 | fi |
---|
7473 | fi # test -n "$CONFIG_FILES" |
---|
7474 | |
---|
7475 | _ACEOF |
---|
7476 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7477 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
7478 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7479 | case $ac_file in |
---|
7480 | - | *:- | *:-:* ) # input from stdin |
---|
7481 | cat >$tmp/stdin |
---|
7482 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7483 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7484 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7485 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7486 | * ) ac_file_in=$ac_file.in ;; |
---|
7487 | esac |
---|
7488 | |
---|
7489 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
7490 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
7491 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7492 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7493 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7494 | X"$ac_file" : 'X\(/\)' \| \ |
---|
7495 | . : '\(.\)' 2>/dev/null || |
---|
7496 | echo X"$ac_file" | |
---|
7497 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7498 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7499 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7500 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7501 | s/.*/./; q'` |
---|
7502 | { if $as_mkdir_p; then |
---|
7503 | mkdir -p "$ac_dir" |
---|
7504 | else |
---|
7505 | as_dir="$ac_dir" |
---|
7506 | as_dirs= |
---|
7507 | while test ! -d "$as_dir"; do |
---|
7508 | as_dirs="$as_dir $as_dirs" |
---|
7509 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7510 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7511 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7512 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7513 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7514 | . : '\(.\)' 2>/dev/null || |
---|
7515 | echo X"$as_dir" | |
---|
7516 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7517 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7518 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7519 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7520 | s/.*/./; q'` |
---|
7521 | done |
---|
7522 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7523 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7524 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7525 | { (exit 1); exit 1; }; }; } |
---|
7526 | |
---|
7527 | ac_builddir=. |
---|
7528 | |
---|
7529 | if test "$ac_dir" != .; then |
---|
7530 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
7531 | # A "../" for each directory in $ac_dir_suffix. |
---|
7532 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
7533 | else |
---|
7534 | ac_dir_suffix= ac_top_builddir= |
---|
7535 | fi |
---|
7536 | |
---|
7537 | case $srcdir in |
---|
7538 | .) # No --srcdir option. We are building in place. |
---|
7539 | ac_srcdir=. |
---|
7540 | if test -z "$ac_top_builddir"; then |
---|
7541 | ac_top_srcdir=. |
---|
7542 | else |
---|
7543 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
7544 | fi ;; |
---|
7545 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
7546 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7547 | ac_top_srcdir=$srcdir ;; |
---|
7548 | *) # Relative path. |
---|
7549 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
7550 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
7551 | esac |
---|
7552 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
7553 | # absolute. |
---|
7554 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
7555 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
7556 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
7557 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
7558 | |
---|
7559 | |
---|
7560 | case $INSTALL in |
---|
7561 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
7562 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
7563 | esac |
---|
7564 | |
---|
7565 | if test x"$ac_file" != x-; then |
---|
7566 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
7567 | echo "$as_me: creating $ac_file" >&6;} |
---|
7568 | rm -f "$ac_file" |
---|
7569 | fi |
---|
7570 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7571 | # use $as_me), people would be surprised to read: |
---|
7572 | # /* config.h. Generated by config.status. */ |
---|
7573 | if test x"$ac_file" = x-; then |
---|
7574 | configure_input= |
---|
7575 | else |
---|
7576 | configure_input="$ac_file. " |
---|
7577 | fi |
---|
7578 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
7579 | sed 's,.*/,,'` by configure." |
---|
7580 | |
---|
7581 | # First look for the input files in the build tree, otherwise in the |
---|
7582 | # src tree. |
---|
7583 | ac_file_inputs=`IFS=: |
---|
7584 | for f in $ac_file_in; do |
---|
7585 | case $f in |
---|
7586 | -) echo $tmp/stdin ;; |
---|
7587 | [\\/$]*) |
---|
7588 | # Absolute (can't be DOS-style, as IFS=:) |
---|
7589 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7590 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7591 | { (exit 1); exit 1; }; } |
---|
7592 | echo $f;; |
---|
7593 | *) # Relative |
---|
7594 | if test -f "$f"; then |
---|
7595 | # Build tree |
---|
7596 | echo $f |
---|
7597 | elif test -f "$srcdir/$f"; then |
---|
7598 | # Source tree |
---|
7599 | echo $srcdir/$f |
---|
7600 | else |
---|
7601 | # /dev/null tree |
---|
7602 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7603 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7604 | { (exit 1); exit 1; }; } |
---|
7605 | fi;; |
---|
7606 | esac |
---|
7607 | done` || { (exit 1); exit 1; } |
---|
7608 | _ACEOF |
---|
7609 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
7610 | sed "$ac_vpsub |
---|
7611 | $extrasub |
---|
7612 | _ACEOF |
---|
7613 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7614 | :t |
---|
7615 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
7616 | s,@configure_input@,$configure_input,;t t |
---|
7617 | s,@srcdir@,$ac_srcdir,;t t |
---|
7618 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
7619 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
7620 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
7621 | s,@builddir@,$ac_builddir,;t t |
---|
7622 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
7623 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
7624 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
7625 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
7626 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
7627 | rm -f $tmp/stdin |
---|
7628 | if test x"$ac_file" != x-; then |
---|
7629 | mv $tmp/out $ac_file |
---|
7630 | else |
---|
7631 | cat $tmp/out |
---|
7632 | rm -f $tmp/out |
---|
7633 | fi |
---|
7634 | |
---|
7635 | done |
---|
7636 | _ACEOF |
---|
7637 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7638 | |
---|
7639 | # |
---|
7640 | # CONFIG_HEADER section. |
---|
7641 | # |
---|
7642 | |
---|
7643 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
7644 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
7645 | # |
---|
7646 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
7647 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
7648 | ac_dB='[ ].*$,\1#\2' |
---|
7649 | ac_dC=' ' |
---|
7650 | ac_dD=',;t' |
---|
7651 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
7652 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
7653 | ac_uB='$,\1#\2define\3' |
---|
7654 | ac_uC=' ' |
---|
7655 | ac_uD=',;t' |
---|
7656 | |
---|
7657 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
---|
7658 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
7659 | case $ac_file in |
---|
7660 | - | *:- | *:-:* ) # input from stdin |
---|
7661 | cat >$tmp/stdin |
---|
7662 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7663 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7664 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7665 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
7666 | * ) ac_file_in=$ac_file.in ;; |
---|
7667 | esac |
---|
7668 | |
---|
7669 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
7670 | echo "$as_me: creating $ac_file" >&6;} |
---|
7671 | |
---|
7672 | # First look for the input files in the build tree, otherwise in the |
---|
7673 | # src tree. |
---|
7674 | ac_file_inputs=`IFS=: |
---|
7675 | for f in $ac_file_in; do |
---|
7676 | case $f in |
---|
7677 | -) echo $tmp/stdin ;; |
---|
7678 | [\\/$]*) |
---|
7679 | # Absolute (can't be DOS-style, as IFS=:) |
---|
7680 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7681 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7682 | { (exit 1); exit 1; }; } |
---|
7683 | echo $f;; |
---|
7684 | *) # Relative |
---|
7685 | if test -f "$f"; then |
---|
7686 | # Build tree |
---|
7687 | echo $f |
---|
7688 | elif test -f "$srcdir/$f"; then |
---|
7689 | # Source tree |
---|
7690 | echo $srcdir/$f |
---|
7691 | else |
---|
7692 | # /dev/null tree |
---|
7693 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
7694 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
7695 | { (exit 1); exit 1; }; } |
---|
7696 | fi;; |
---|
7697 | esac |
---|
7698 | done` || { (exit 1); exit 1; } |
---|
7699 | # Remove the trailing spaces. |
---|
7700 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
---|
7701 | |
---|
7702 | _ACEOF |
---|
7703 | |
---|
7704 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
---|
7705 | # `conftest.undefs', that substitutes the proper values into |
---|
7706 | # config.h.in to produce config.h. The first handles `#define' |
---|
7707 | # templates, and the second `#undef' templates. |
---|
7708 | # And first: Protect against being on the right side of a sed subst in |
---|
7709 | # config.status. Protect against being in an unquoted here document |
---|
7710 | # in config.status. |
---|
7711 | rm -f conftest.defines conftest.undefs |
---|
7712 | # Using a here document instead of a string reduces the quoting nightmare. |
---|
7713 | # Putting comments in sed scripts is not portable. |
---|
7714 | # |
---|
7715 | # `end' is used to avoid that the second main sed command (meant for |
---|
7716 | # 0-ary CPP macros) applies to n-ary macro definitions. |
---|
7717 | # See the Autoconf documentation for `clear'. |
---|
7718 | cat >confdef2sed.sed <<\_ACEOF |
---|
7719 | s/[\\&,]/\\&/g |
---|
7720 | s,[\\$`],\\&,g |
---|
7721 | t clear |
---|
7722 | : clear |
---|
7723 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
---|
7724 | t end |
---|
7725 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
---|
7726 | : end |
---|
7727 | _ACEOF |
---|
7728 | # If some macros were called several times there might be several times |
---|
7729 | # the same #defines, which is useless. Nevertheless, we may not want to |
---|
7730 | # sort them, since we want the *last* AC-DEFINE to be honored. |
---|
7731 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
---|
7732 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
---|
7733 | rm -f confdef2sed.sed |
---|
7734 | |
---|
7735 | # This sed command replaces #undef with comments. This is necessary, for |
---|
7736 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
7737 | # on some systems where configure will not decide to define it. |
---|
7738 | cat >>conftest.undefs <<\_ACEOF |
---|
7739 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
---|
7740 | _ACEOF |
---|
7741 | |
---|
7742 | # Break up conftest.defines because some shells have a limit on the size |
---|
7743 | # of here documents, and old seds have small limits too (100 cmds). |
---|
7744 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
---|
7745 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
---|
7746 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
---|
7747 | echo ' :' >>$CONFIG_STATUS |
---|
7748 | rm -f conftest.tail |
---|
7749 | while grep . conftest.defines >/dev/null |
---|
7750 | do |
---|
7751 | # Write a limited-size here document to $tmp/defines.sed. |
---|
7752 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
---|
7753 | # Speed up: don't consider the non `#define' lines. |
---|
7754 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
---|
7755 | # Work around the forget-to-reset-the-flag bug. |
---|
7756 | echo 't clr' >>$CONFIG_STATUS |
---|
7757 | echo ': clr' >>$CONFIG_STATUS |
---|
7758 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
---|
7759 | echo 'CEOF |
---|
7760 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
---|
7761 | rm -f $tmp/in |
---|
7762 | mv $tmp/out $tmp/in |
---|
7763 | ' >>$CONFIG_STATUS |
---|
7764 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
---|
7765 | rm -f conftest.defines |
---|
7766 | mv conftest.tail conftest.defines |
---|
7767 | done |
---|
7768 | rm -f conftest.defines |
---|
7769 | echo ' fi # grep' >>$CONFIG_STATUS |
---|
7770 | echo >>$CONFIG_STATUS |
---|
7771 | |
---|
7772 | # Break up conftest.undefs because some shells have a limit on the size |
---|
7773 | # of here documents, and old seds have small limits too (100 cmds). |
---|
7774 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
---|
7775 | rm -f conftest.tail |
---|
7776 | while grep . conftest.undefs >/dev/null |
---|
7777 | do |
---|
7778 | # Write a limited-size here document to $tmp/undefs.sed. |
---|
7779 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
---|
7780 | # Speed up: don't consider the non `#undef' |
---|
7781 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
---|
7782 | # Work around the forget-to-reset-the-flag bug. |
---|
7783 | echo 't clr' >>$CONFIG_STATUS |
---|
7784 | echo ': clr' >>$CONFIG_STATUS |
---|
7785 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
---|
7786 | echo 'CEOF |
---|
7787 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
---|
7788 | rm -f $tmp/in |
---|
7789 | mv $tmp/out $tmp/in |
---|
7790 | ' >>$CONFIG_STATUS |
---|
7791 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
---|
7792 | rm -f conftest.undefs |
---|
7793 | mv conftest.tail conftest.undefs |
---|
7794 | done |
---|
7795 | rm -f conftest.undefs |
---|
7796 | |
---|
7797 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7798 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
7799 | # use $as_me), people would be surprised to read: |
---|
7800 | # /* config.h. Generated by config.status. */ |
---|
7801 | if test x"$ac_file" = x-; then |
---|
7802 | echo "/* Generated by configure. */" >$tmp/config.h |
---|
7803 | else |
---|
7804 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
---|
7805 | fi |
---|
7806 | cat $tmp/in >>$tmp/config.h |
---|
7807 | rm -f $tmp/in |
---|
7808 | if test x"$ac_file" != x-; then |
---|
7809 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
---|
7810 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
---|
7811 | echo "$as_me: $ac_file is unchanged" >&6;} |
---|
7812 | else |
---|
7813 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
7814 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7815 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
7816 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
7817 | X"$ac_file" : 'X\(/\)' \| \ |
---|
7818 | . : '\(.\)' 2>/dev/null || |
---|
7819 | echo X"$ac_file" | |
---|
7820 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7821 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7822 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7823 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7824 | s/.*/./; q'` |
---|
7825 | { if $as_mkdir_p; then |
---|
7826 | mkdir -p "$ac_dir" |
---|
7827 | else |
---|
7828 | as_dir="$ac_dir" |
---|
7829 | as_dirs= |
---|
7830 | while test ! -d "$as_dir"; do |
---|
7831 | as_dirs="$as_dir $as_dirs" |
---|
7832 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
7833 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7834 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
7835 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
7836 | X"$as_dir" : 'X\(/\)' \| \ |
---|
7837 | . : '\(.\)' 2>/dev/null || |
---|
7838 | echo X"$as_dir" | |
---|
7839 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7840 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7841 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7842 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7843 | s/.*/./; q'` |
---|
7844 | done |
---|
7845 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
7846 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
7847 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
7848 | { (exit 1); exit 1; }; }; } |
---|
7849 | |
---|
7850 | rm -f $ac_file |
---|
7851 | mv $tmp/config.h $ac_file |
---|
7852 | fi |
---|
7853 | else |
---|
7854 | cat $tmp/config.h |
---|
7855 | rm -f $tmp/config.h |
---|
7856 | fi |
---|
7857 | # Compute $ac_file's index in $config_headers. |
---|
7858 | _am_stamp_count=1 |
---|
7859 | for _am_header in $config_headers :; do |
---|
7860 | case $_am_header in |
---|
7861 | $ac_file | $ac_file:* ) |
---|
7862 | break ;; |
---|
7863 | * ) |
---|
7864 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
7865 | esac |
---|
7866 | done |
---|
7867 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
---|
7868 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7869 | X$ac_file : 'X\(//\)[^/]' \| \ |
---|
7870 | X$ac_file : 'X\(//\)$' \| \ |
---|
7871 | X$ac_file : 'X\(/\)' \| \ |
---|
7872 | . : '\(.\)' 2>/dev/null || |
---|
7873 | echo X$ac_file | |
---|
7874 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7875 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7876 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7877 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7878 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
7879 | done |
---|
7880 | _ACEOF |
---|
7881 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
7882 | |
---|
7883 | # |
---|
7884 | # CONFIG_COMMANDS section. |
---|
7885 | # |
---|
7886 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
---|
7887 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
---|
7888 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
7889 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
---|
7890 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7891 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
---|
7892 | X"$ac_dest" : 'X\(//\)$' \| \ |
---|
7893 | X"$ac_dest" : 'X\(/\)' \| \ |
---|
7894 | . : '\(.\)' 2>/dev/null || |
---|
7895 | echo X"$ac_dest" | |
---|
7896 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7897 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7898 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7899 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7900 | s/.*/./; q'` |
---|
7901 | ac_builddir=. |
---|
7902 | |
---|
7903 | if test "$ac_dir" != .; then |
---|
7904 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
7905 | # A "../" for each directory in $ac_dir_suffix. |
---|
7906 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
7907 | else |
---|
7908 | ac_dir_suffix= ac_top_builddir= |
---|
7909 | fi |
---|
7910 | |
---|
7911 | case $srcdir in |
---|
7912 | .) # No --srcdir option. We are building in place. |
---|
7913 | ac_srcdir=. |
---|
7914 | if test -z "$ac_top_builddir"; then |
---|
7915 | ac_top_srcdir=. |
---|
7916 | else |
---|
7917 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
7918 | fi ;; |
---|
7919 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
7920 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
7921 | ac_top_srcdir=$srcdir ;; |
---|
7922 | *) # Relative path. |
---|
7923 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
7924 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
7925 | esac |
---|
7926 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
7927 | # absolute. |
---|
7928 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
7929 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
7930 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
7931 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
7932 | |
---|
7933 | |
---|
7934 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
---|
7935 | echo "$as_me: executing $ac_dest commands" >&6;} |
---|
7936 | case $ac_dest in |
---|
7937 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
---|
7938 | # Strip MF so we end up with the name of the file. |
---|
7939 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
7940 | # Check whether this is an Automake generated Makefile or not. |
---|
7941 | # We used to match only the files named `Makefile.in', but |
---|
7942 | # some people rename them; so instead we look at the file content. |
---|
7943 | # Grep'ing the first line is not enough: some people post-process |
---|
7944 | # each Makefile.in and add a new line on top of each file to say so. |
---|
7945 | # So let's grep whole file. |
---|
7946 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
---|
7947 | dirpart=`(dirname "$mf") 2>/dev/null || |
---|
7948 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7949 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
7950 | X"$mf" : 'X\(//\)$' \| \ |
---|
7951 | X"$mf" : 'X\(/\)' \| \ |
---|
7952 | . : '\(.\)' 2>/dev/null || |
---|
7953 | echo X"$mf" | |
---|
7954 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7955 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7956 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7957 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7958 | s/.*/./; q'` |
---|
7959 | else |
---|
7960 | continue |
---|
7961 | fi |
---|
7962 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
---|
7963 | # Extract the definition of DEP_FILES from the Makefile without |
---|
7964 | # running `make'. |
---|
7965 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
---|
7966 | test -z "$DEPDIR" && continue |
---|
7967 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
7968 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
---|
7969 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
---|
7970 | # We invoke sed twice because it is the simplest approach to |
---|
7971 | # changing $(DEPDIR) to its actual value in the expansion. |
---|
7972 | for file in `sed -n -e ' |
---|
7973 | /^DEP_FILES = .*\\\\$/ { |
---|
7974 | s/^DEP_FILES = // |
---|
7975 | :loop |
---|
7976 | s/\\\\$// |
---|
7977 | p |
---|
7978 | n |
---|
7979 | /\\\\$/ b loop |
---|
7980 | p |
---|
7981 | } |
---|
7982 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
---|
7983 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
7984 | # Make sure the directory exists. |
---|
7985 | test -f "$dirpart/$file" && continue |
---|
7986 | fdir=`(dirname "$file") 2>/dev/null || |
---|
7987 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
7988 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
7989 | X"$file" : 'X\(//\)$' \| \ |
---|
7990 | X"$file" : 'X\(/\)' \| \ |
---|
7991 | . : '\(.\)' 2>/dev/null || |
---|
7992 | echo X"$file" | |
---|
7993 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
7994 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
7995 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
7996 | /^X\(\/\).*/{ s//\1/; q; } |
---|
7997 | s/.*/./; q'` |
---|
7998 | { if $as_mkdir_p; then |
---|
7999 | mkdir -p $dirpart/$fdir |
---|
8000 | else |
---|
8001 | as_dir=$dirpart/$fdir |
---|
8002 | as_dirs= |
---|
8003 | while test ! -d "$as_dir"; do |
---|
8004 | as_dirs="$as_dir $as_dirs" |
---|
8005 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
8006 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
8007 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
8008 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
8009 | X"$as_dir" : 'X\(/\)' \| \ |
---|
8010 | . : '\(.\)' 2>/dev/null || |
---|
8011 | echo X"$as_dir" | |
---|
8012 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
8013 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
8014 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
8015 | /^X\(\/\).*/{ s//\1/; q; } |
---|
8016 | s/.*/./; q'` |
---|
8017 | done |
---|
8018 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
8019 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
---|
8020 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
---|
8021 | { (exit 1); exit 1; }; }; } |
---|
8022 | |
---|
8023 | # echo "creating $dirpart/$file" |
---|
8024 | echo '# dummy' > "$dirpart/$file" |
---|
8025 | done |
---|
8026 | done |
---|
8027 | ;; |
---|
8028 | esac |
---|
8029 | done |
---|
8030 | _ACEOF |
---|
8031 | |
---|
8032 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
8033 | |
---|
8034 | { (exit 0); exit 0; } |
---|
8035 | _ACEOF |
---|
8036 | chmod +x $CONFIG_STATUS |
---|
8037 | ac_clean_files=$ac_clean_files_save |
---|
8038 | |
---|
8039 | |
---|
8040 | # configure is writing to config.log, and then calls config.status. |
---|
8041 | # config.status does its own redirection, appending to config.log. |
---|
8042 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
8043 | # by configure, so config.status won't be able to write to it; its |
---|
8044 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
8045 | # effectively closing config.log, so it can be properly (re)opened and |
---|
8046 | # appended to by config.status. When coming back to configure, we |
---|
8047 | # need to make the FD available again. |
---|
8048 | if test "$no_create" != yes; then |
---|
8049 | ac_cs_success=: |
---|
8050 | ac_config_status_args= |
---|
8051 | test "$silent" = yes && |
---|
8052 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
8053 | exec 5>/dev/null |
---|
8054 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
8055 | exec 5>>config.log |
---|
8056 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
8057 | # would make configure fail if this is the last instruction. |
---|
8058 | $ac_cs_success || { (exit 1); exit 1; } |
---|
8059 | fi |
---|
8060 | |
---|