Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 do
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 BASH_ENV=/dev/null
217 ENV=/dev/null
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 export CONFIG_SHELL
220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221 fi
222
223 if test x$as_have_required = xno; then :
224 $as_echo "$0: This script requires a shell more modern than all"
225 $as_echo "$0: the shells that I found on your system."
226 if test x${ZSH_VERSION+set} = xset ; then
227 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 else
230 $as_echo "$0: Please tell [email protected] about your system,
231 $0: including any error possibly output before this
232 $0: message. Then install a modern shell, or manually run
233 $0: the script under such a shell if you do have one."
234 fi
235 exit 1
236 fi
237 fi
238 fi
239 SHELL=${CONFIG_SHELL-/bin/sh}
240 export SHELL
241 # Unset more variables known to interfere with behavior of common tools.
242 CLICOLOR_FORCE= GREP_OPTIONS=
243 unset CLICOLOR_FORCE GREP_OPTIONS
244
245 ## --------------------- ##
246 ## M4sh Shell Functions. ##
247 ## --------------------- ##
248 # as_fn_unset VAR
249 # ---------------
250 # Portably unset VAR.
251 as_fn_unset ()
252 {
253 { eval $1=; unset $1;}
254 }
255 as_unset=as_fn_unset
256
257 # as_fn_set_status STATUS
258 # -----------------------
259 # Set $? to STATUS, without forking.
260 as_fn_set_status ()
261 {
262 return $1
263 } # as_fn_set_status
264
265 # as_fn_exit STATUS
266 # -----------------
267 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
268 as_fn_exit ()
269 {
270 set +e
271 as_fn_set_status $1
272 exit $1
273 } # as_fn_exit
274
275 # as_fn_mkdir_p
276 # -------------
277 # Create "$as_dir" as a directory, including parents if necessary.
278 as_fn_mkdir_p ()
279 {
280
281 case $as_dir in #(
282 -*) as_dir=./$as_dir;;
283 esac
284 test -d "$as_dir" || eval $as_mkdir_p || {
285 as_dirs=
286 while :; do
287 case $as_dir in #(
288 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
289 *) as_qdir=$as_dir;;
290 esac
291 as_dirs="'$as_qdir' $as_dirs"
292 as_dir=`$as_dirname -- "$as_dir" ||
293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
294 X"$as_dir" : 'X\(//\)[^/]' \| \
295 X"$as_dir" : 'X\(//\)$' \| \
296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
297 $as_echo X"$as_dir" |
298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
299 s//\1/
300 q
301 }
302 /^X\(\/\/\)[^/].*/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)$/{
307 s//\1/
308 q
309 }
310 /^X\(\/\).*/{
311 s//\1/
312 q
313 }
314 s/.*/./; q'`
315 test -d "$as_dir" && break
316 done
317 test -z "$as_dirs" || eval "mkdir $as_dirs"
318 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
319
320
321 } # as_fn_mkdir_p
322 # as_fn_append VAR VALUE
323 # ----------------------
324 # Append the text in VALUE to the end of the definition contained in VAR. Take
325 # advantage of any shell optimizations that allow amortized linear growth over
326 # repeated appends, instead of the typical quadratic growth present in naive
327 # implementations.
328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
329 eval 'as_fn_append ()
330 {
331 eval $1+=\$2
332 }'
333 else
334 as_fn_append ()
335 {
336 eval $1=\$$1\$2
337 }
338 fi # as_fn_append
339
340 # as_fn_arith ARG...
341 # ------------------
342 # Perform arithmetic evaluation on the ARGs, and store the result in the
343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
344 # must be portable across $(()) and expr.
345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
346 eval 'as_fn_arith ()
347 {
348 as_val=$(( $* ))
349 }'
350 else
351 as_fn_arith ()
352 {
353 as_val=`expr "$@" || test $? -eq 1`
354 }
355 fi # as_fn_arith
356
357
358 # as_fn_error STATUS ERROR [LINENO LOG_FD]
359 # ----------------------------------------
360 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
361 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
362 # script with STATUS, using 1 if that was 0.
363 as_fn_error ()
364 {
365 as_status=$1; test $as_status -eq 0 && as_status=1
366 if test "$4"; then
367 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
368 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
369 fi
370 $as_echo "$as_me: error: $2" >&2
371 as_fn_exit $as_status
372 } # as_fn_error
373
374 if expr a : '\(a\)' >/dev/null 2>&1 &&
375 test "X`expr 00001 : '.*\(...\)'`" = X001; then
376 as_expr=expr
377 else
378 as_expr=false
379 fi
380
381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
382 as_basename=basename
383 else
384 as_basename=false
385 fi
386
387 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
388 as_dirname=dirname
389 else
390 as_dirname=false
391 fi
392
393 as_me=`$as_basename -- "$0" ||
394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
395 X"$0" : 'X\(//\)$' \| \
396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 $as_echo X/"$0" |
398 sed '/^.*\/\([^/][^/]*\)\/*$/{
399 s//\1/
400 q
401 }
402 /^X\/\(\/\/\)$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\).*/{
407 s//\1/
408 q
409 }
410 s/.*/./; q'`
411
412 # Avoid depending upon Character Ranges.
413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
416 as_cr_digits='0123456789'
417 as_cr_alnum=$as_cr_Letters$as_cr_digits
418
419
420 as_lineno_1=$LINENO as_lineno_1a=$LINENO
421 as_lineno_2=$LINENO as_lineno_2a=$LINENO
422 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
423 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
424 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
425 sed -n '
426 p
427 /[$]LINENO/=
428 ' <$as_myself |
429 sed '
430 s/[$]LINENO.*/&-/
431 t lineno
432 b
433 :lineno
434 N
435 :loop
436 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
437 t loop
438 s/-\n.*//
439 ' >$as_me.lineno &&
440 chmod +x "$as_me.lineno" ||
441 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442
443 # Don't try to exec as it changes $[0], causing all sort of problems
444 # (the dirname of $[0] is not the place where we might find the
445 # original and so on. Autoconf is especially sensitive to this).
446 . "./$as_me.lineno"
447 # Exit status is that of the last command.
448 exit
449 }
450
451 ECHO_C= ECHO_N= ECHO_T=
452 case `echo -n x` in #(((((
453 -n*)
454 case `echo 'xy\c'` in
455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 xy) ECHO_C='\c';;
457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
458 ECHO_T=' ';;
459 esac;;
460 *)
461 ECHO_N='-n';;
462 esac
463
464 rm -f conf$$ conf$$.exe conf$$.file
465 if test -d conf$$.dir; then
466 rm -f conf$$.dir/conf$$.file
467 else
468 rm -f conf$$.dir
469 mkdir conf$$.dir 2>/dev/null
470 fi
471 if (echo >conf$$.file) 2>/dev/null; then
472 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 as_ln_s='ln -s'
474 # ... but there are two gotchas:
475 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
476 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
477 # In both cases, we have to default to `cp -p'.
478 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 as_ln_s='cp -p'
480 elif ln conf$$.file conf$$ 2>/dev/null; then
481 as_ln_s=ln
482 else
483 as_ln_s='cp -p'
484 fi
485 else
486 as_ln_s='cp -p'
487 fi
488 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
489 rmdir conf$$.dir 2>/dev/null
490
491 if mkdir -p . 2>/dev/null; then
492 as_mkdir_p='mkdir -p "$as_dir"'
493 else
494 test -d ./-p && rmdir ./-p
495 as_mkdir_p=false
496 fi
497
498 if test -x / >/dev/null 2>&1; then
499 as_test_x='test -x'
500 else
501 if ls -dL / >/dev/null 2>&1; then
502 as_ls_L_option=L
503 else
504 as_ls_L_option=
505 fi
506 as_test_x='
507 eval sh -c '\''
508 if test -d "$1"; then
509 test -d "$1/.";
510 else
511 case $1 in #(
512 -*)set "./$1";;
513 esac;
514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
515 ???[sx]*):;;*)false;;esac;fi
516 '\'' sh
517 '
518 fi
519 as_executable_p=$as_test_x
520
521 # Sed expression to map a string onto a valid CPP name.
522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523
524 # Sed expression to map a string onto a valid variable name.
525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
526
527
528 test -n "$DJDIR" || exec 7<&0 </dev/null
529 exec 6>&1
530
531 # Name of the host.
532 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
533 # so uname gets run too.
534 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535
536 #
537 # Initializations.
538 #
539 ac_default_prefix=/usr/local
540 ac_clean_files=
541 ac_config_libobj_dir=.
542 LIBOBJS=
543 cross_compiling=no
544 subdirs=
545 MFLAGS=
546 MAKEFLAGS=
547
548 # Identity of this package.
549 PACKAGE_NAME=
550 PACKAGE_TARNAME=
551 PACKAGE_VERSION=
552 PACKAGE_STRING=
553 PACKAGE_BUGREPORT=
554 PACKAGE_URL=
555
556 ac_unique_file="AUTHORS"
557 ac_subst_vars='LTLIBOBJS
558 LIBOBJS
559 HAVE_WINDRES_FALSE
560 HAVE_WINDRES_TRUE
561 WINDRES
562 BOOST_LIBS
563 BOOST_CFLAGS
564 WITH_BOOST_FALSE
565 WITH_BOOST_TRUE
566 X_LIBS
567 SDL_LIBS
568 SDL_CFLAGS
569 SDL_CONFIG
570 LUA_LIBS
571 LUA_CFLAGS
572 LUACONFIG
573 FRIBIDI_LIBS
574 FRIBIDI_CFLAGS
575 PKG_CONFIG_LIBDIR
576 PKG_CONFIG_PATH
577 PKG_CONFIG
578 RANLIB
579 am__fastdepCC_FALSE
580 am__fastdepCC_TRUE
581 CCDEPMODE
582 ac_ct_CC
583 CFLAGS
584 CC
585 am__fastdepCXX_FALSE
586 am__fastdepCXX_TRUE
587 CXXDEPMODE
588 AMDEPBACKSLASH
589 AMDEP_FALSE
590 AMDEP_TRUE
591 am__quote
592 am__include
593 DEPDIR
594 OBJEXT
595 EXEEXT
596 ac_ct_CXX
597 CPPFLAGS
598 LDFLAGS
599 CXXFLAGS
600 CXX
601 am__untar
602 am__tar
603 AMTAR
604 am__leading_dot
605 SET_MAKE
606 AWK
607 mkdir_p
608 INSTALL_STRIP_PROGRAM
609 STRIP
610 install_sh
611 MAKEINFO
612 AUTOHEADER
613 AUTOMAKE
614 AUTOCONF
615 ACLOCAL
616 VERSION
617 PACKAGE
618 CYGPATH_W
619 INSTALL_DATA
620 INSTALL_SCRIPT
621 INSTALL_PROGRAM
622 target_os
623 target_vendor
624 target_cpu
625 target
626 host_os
627 host_vendor
628 host_cpu
629 host
630 build_os
631 build_vendor
632 build_cpu
633 build
634 target_alias
635 host_alias
636 build_alias
637 LIBS
638 ECHO_T
639 ECHO_N
640 ECHO_C
641 DEFS
642 mandir
643 localedir
644 libdir
645 psdir
646 pdfdir
647 dvidir
648 htmldir
649 infodir
650 docdir
651 oldincludedir
652 includedir
653 localstatedir
654 sharedstatedir
655 sysconfdir
656 datadir
657 datarootdir
658 libexecdir
659 sbindir
660 bindir
661 program_transform_name
662 prefix
663 exec_prefix
664 PACKAGE_URL
665 PACKAGE_BUGREPORT
666 PACKAGE_STRING
667 PACKAGE_VERSION
668 PACKAGE_TARNAME
669 PACKAGE_NAME
670 PATH_SEPARATOR
671 SHELL'
672 ac_subst_files=''
673 ac_user_opts='
674 enable_option_checking
675 enable_dependency_tracking
676 with_lua
677 with_sdl_prefix
678 with_sdl_exec_prefix
679 enable_sdltest
680 with_X
681 with_boost
682 enable_debug
683 '
684 ac_precious_vars='build_alias
685 host_alias
686 target_alias
687 CXX
688 CXXFLAGS
689 LDFLAGS
690 LIBS
691 CPPFLAGS
692 CCC
693 CC
694 CFLAGS
695 PKG_CONFIG
696 PKG_CONFIG_PATH
697 PKG_CONFIG_LIBDIR
698 FRIBIDI_CFLAGS
699 FRIBIDI_LIBS
700 LUA_CFLAGS
701 LUA_LIBS'
702
703
704 # Initialize some variables set by options.
705 ac_init_help=
706 ac_init_version=false
707 ac_unrecognized_opts=
708 ac_unrecognized_sep=
709 # The variables have the same names as the options, with
710 # dashes changed to underlines.
711 cache_file=/dev/null
712 exec_prefix=NONE
713 no_create=
714 no_recursion=
715 prefix=NONE
716 program_prefix=NONE
717 program_suffix=NONE
718 program_transform_name=s,x,x,
719 silent=
720 site=
721 srcdir=
722 verbose=
723 x_includes=NONE
724 x_libraries=NONE
725
726 # Installation directory options.
727 # These are left unexpanded so users can "make install exec_prefix=/foo"
728 # and all the variables that are supposed to be based on exec_prefix
729 # by default will actually change.
730 # Use braces instead of parens because sh, perl, etc. also accept them.
731 # (The list follows the same order as the GNU Coding Standards.)
732 bindir='${exec_prefix}/bin'
733 sbindir='${exec_prefix}/sbin'
734 libexecdir='${exec_prefix}/libexec'
735 datarootdir='${prefix}/share'
736 datadir='${datarootdir}'
737 sysconfdir='${prefix}/etc'
738 sharedstatedir='${prefix}/com'
739 localstatedir='${prefix}/var'
740 includedir='${prefix}/include'
741 oldincludedir='/usr/include'
742 docdir='${datarootdir}/doc/${PACKAGE}'
743 infodir='${datarootdir}/info'
744 htmldir='${docdir}'
745 dvidir='${docdir}'
746 pdfdir='${docdir}'
747 psdir='${docdir}'
748 libdir='${exec_prefix}/lib'
749 localedir='${datarootdir}/locale'
750 mandir='${datarootdir}/man'
751
752 ac_prev=
753 ac_dashdash=
754 for ac_option
755 do
756 # If the previous option needs an argument, assign it.
757 if test -n "$ac_prev"; then
758 eval $ac_prev=\$ac_option
759 ac_prev=
760 continue
761 fi
762
763 case $ac_option in
764 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
765 *=) ac_optarg= ;;
766 *) ac_optarg=yes ;;
767 esac
768
769 # Accept the important Cygnus configure options, so we can diagnose typos.
770
771 case $ac_dashdash$ac_option in
772 --)
773 ac_dashdash=yes ;;
774
775 -bindir | --bindir | --bindi | --bind | --bin | --bi)
776 ac_prev=bindir ;;
777 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
778 bindir=$ac_optarg ;;
779
780 -build | --build | --buil | --bui | --bu)
781 ac_prev=build_alias ;;
782 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
783 build_alias=$ac_optarg ;;
784
785 -cache-file | --cache-file | --cache-fil | --cache-fi \
786 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
787 ac_prev=cache_file ;;
788 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
789 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
790 cache_file=$ac_optarg ;;
791
792 --config-cache | -C)
793 cache_file=config.cache ;;
794
795 -datadir | --datadir | --datadi | --datad)
796 ac_prev=datadir ;;
797 -datadir=* | --datadir=* | --datadi=* | --datad=*)
798 datadir=$ac_optarg ;;
799
800 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
801 | --dataroo | --dataro | --datar)
802 ac_prev=datarootdir ;;
803 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
804 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
805 datarootdir=$ac_optarg ;;
806
807 -disable-* | --disable-*)
808 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
809 # Reject names that are not valid shell variable names.
810 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
811 as_fn_error $? "invalid feature name: $ac_useropt"
812 ac_useropt_orig=$ac_useropt
813 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
814 case $ac_user_opts in
815 *"
816 "enable_$ac_useropt"
817 "*) ;;
818 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
819 ac_unrecognized_sep=', ';;
820 esac
821 eval enable_$ac_useropt=no ;;
822
823 -docdir | --docdir | --docdi | --doc | --do)
824 ac_prev=docdir ;;
825 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
826 docdir=$ac_optarg ;;
827
828 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
829 ac_prev=dvidir ;;
830 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
831 dvidir=$ac_optarg ;;
832
833 -enable-* | --enable-*)
834 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
835 # Reject names that are not valid shell variable names.
836 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
837 as_fn_error $? "invalid feature name: $ac_useropt"
838 ac_useropt_orig=$ac_useropt
839 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
840 case $ac_user_opts in
841 *"
842 "enable_$ac_useropt"
843 "*) ;;
844 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
845 ac_unrecognized_sep=', ';;
846 esac
847 eval enable_$ac_useropt=\$ac_optarg ;;
848
849 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
850 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
851 | --exec | --exe | --ex)
852 ac_prev=exec_prefix ;;
853 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
854 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
855 | --exec=* | --exe=* | --ex=*)
856 exec_prefix=$ac_optarg ;;
857
858 -gas | --gas | --ga | --g)
859 # Obsolete; use --with-gas.
860 with_gas=yes ;;
861
862 -help | --help | --hel | --he | -h)
863 ac_init_help=long ;;
864 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
865 ac_init_help=recursive ;;
866 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
867 ac_init_help=short ;;
868
869 -host | --host | --hos | --ho)
870 ac_prev=host_alias ;;
871 -host=* | --host=* | --hos=* | --ho=*)
872 host_alias=$ac_optarg ;;
873
874 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
875 ac_prev=htmldir ;;
876 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
877 | --ht=*)
878 htmldir=$ac_optarg ;;
879
880 -includedir | --includedir | --includedi | --included | --include \
881 | --includ | --inclu | --incl | --inc)
882 ac_prev=includedir ;;
883 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
884 | --includ=* | --inclu=* | --incl=* | --inc=*)
885 includedir=$ac_optarg ;;
886
887 -infodir | --infodir | --infodi | --infod | --info | --inf)
888 ac_prev=infodir ;;
889 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
890 infodir=$ac_optarg ;;
891
892 -libdir | --libdir | --libdi | --libd)
893 ac_prev=libdir ;;
894 -libdir=* | --libdir=* | --libdi=* | --libd=*)
895 libdir=$ac_optarg ;;
896
897 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
898 | --libexe | --libex | --libe)
899 ac_prev=libexecdir ;;
900 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
901 | --libexe=* | --libex=* | --libe=*)
902 libexecdir=$ac_optarg ;;
903
904 -localedir | --localedir | --localedi | --localed | --locale)
905 ac_prev=localedir ;;
906 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
907 localedir=$ac_optarg ;;
908
909 -localstatedir | --localstatedir | --localstatedi | --localstated \
910 | --localstate | --localstat | --localsta | --localst | --locals)
911 ac_prev=localstatedir ;;
912 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
913 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
914 localstatedir=$ac_optarg ;;
915
916 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
917 ac_prev=mandir ;;
918 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
919 mandir=$ac_optarg ;;
920
921 -nfp | --nfp | --nf)
922 # Obsolete; use --without-fp.
923 with_fp=no ;;
924
925 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
926 | --no-cr | --no-c | -n)
927 no_create=yes ;;
928
929 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
930 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
931 no_recursion=yes ;;
932
933 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
934 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
935 | --oldin | --oldi | --old | --ol | --o)
936 ac_prev=oldincludedir ;;
937 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
938 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
939 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
940 oldincludedir=$ac_optarg ;;
941
942 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
943 ac_prev=prefix ;;
944 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
945 prefix=$ac_optarg ;;
946
947 -program-prefix | --program-prefix | --program-prefi | --program-pref \
948 | --program-pre | --program-pr | --program-p)
949 ac_prev=program_prefix ;;
950 -program-prefix=* | --program-prefix=* | --program-prefi=* \
951 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
952 program_prefix=$ac_optarg ;;
953
954 -program-suffix | --program-suffix | --program-suffi | --program-suff \
955 | --program-suf | --program-su | --program-s)
956 ac_prev=program_suffix ;;
957 -program-suffix=* | --program-suffix=* | --program-suffi=* \
958 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
959 program_suffix=$ac_optarg ;;
960
961 -program-transform-name | --program-transform-name \
962 | --program-transform-nam | --program-transform-na \
963 | --program-transform-n | --program-transform- \
964 | --program-transform | --program-transfor \
965 | --program-transfo | --program-transf \
966 | --program-trans | --program-tran \
967 | --progr-tra | --program-tr | --program-t)
968 ac_prev=program_transform_name ;;
969 -program-transform-name=* | --program-transform-name=* \
970 | --program-transform-nam=* | --program-transform-na=* \
971 | --program-transform-n=* | --program-transform-=* \
972 | --program-transform=* | --program-transfor=* \
973 | --program-transfo=* | --program-transf=* \
974 | --program-trans=* | --program-tran=* \
975 | --progr-tra=* | --program-tr=* | --program-t=*)
976 program_transform_name=$ac_optarg ;;
977
978 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
979 ac_prev=pdfdir ;;
980 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
981 pdfdir=$ac_optarg ;;
982
983 -psdir | --psdir | --psdi | --psd | --ps)
984 ac_prev=psdir ;;
985 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
986 psdir=$ac_optarg ;;
987
988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
989 | -silent | --silent | --silen | --sile | --sil)
990 silent=yes ;;
991
992 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
993 ac_prev=sbindir ;;
994 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
995 | --sbi=* | --sb=*)
996 sbindir=$ac_optarg ;;
997
998 -sharedstatedir | --sharedstatedir | --sharedstatedi \
999 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1000 | --sharedst | --shareds | --shared | --share | --shar \
1001 | --sha | --sh)
1002 ac_prev=sharedstatedir ;;
1003 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1004 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1005 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1006 | --sha=* | --sh=*)
1007 sharedstatedir=$ac_optarg ;;
1008
1009 -site | --site | --sit)
1010 ac_prev=site ;;
1011 -site=* | --site=* | --sit=*)
1012 site=$ac_optarg ;;
1013
1014 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1015 ac_prev=srcdir ;;
1016 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1017 srcdir=$ac_optarg ;;
1018
1019 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1020 | --syscon | --sysco | --sysc | --sys | --sy)
1021 ac_prev=sysconfdir ;;
1022 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1023 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1024 sysconfdir=$ac_optarg ;;
1025
1026 -target | --target | --targe | --targ | --tar | --ta | --t)
1027 ac_prev=target_alias ;;
1028 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1029 target_alias=$ac_optarg ;;
1030
1031 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1032 verbose=yes ;;
1033
1034 -version | --version | --versio | --versi | --vers | -V)
1035 ac_init_version=: ;;
1036
1037 -with-* | --with-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid package name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046 "with_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval with_$ac_useropt=\$ac_optarg ;;
1052
1053 -without-* | --without-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid package name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1061 *"
1062 "with_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval with_$ac_useropt=no ;;
1068
1069 --x)
1070 # Obsolete; use --with-x.
1071 with_x=yes ;;
1072
1073 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1074 | --x-incl | --x-inc | --x-in | --x-i)
1075 ac_prev=x_includes ;;
1076 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1077 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1078 x_includes=$ac_optarg ;;
1079
1080 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1081 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1082 ac_prev=x_libraries ;;
1083 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1084 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1085 x_libraries=$ac_optarg ;;
1086
1087 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1088 Try \`$0 --help' for more information"
1089 ;;
1090
1091 *=*)
1092 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1093 # Reject names that are not valid shell variable names.
1094 case $ac_envvar in #(
1095 '' | [0-9]* | *[!_$as_cr_alnum]* )
1096 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1097 esac
1098 eval $ac_envvar=\$ac_optarg
1099 export $ac_envvar ;;
1100
1101 *)
1102 # FIXME: should be removed in autoconf 3.0.
1103 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1104 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1106 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1107 ;;
1108
1109 esac
1110 done
1111
1112 if test -n "$ac_prev"; then
1113 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1114 as_fn_error $? "missing argument to $ac_option"
1115 fi
1116
1117 if test -n "$ac_unrecognized_opts"; then
1118 case $enable_option_checking in
1119 no) ;;
1120 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1121 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1122 esac
1123 fi
1124
1125 # Check all directory arguments for consistency.
1126 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1127 datadir sysconfdir sharedstatedir localstatedir includedir \
1128 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1129 libdir localedir mandir
1130 do
1131 eval ac_val=\$$ac_var
1132 # Remove trailing slashes.
1133 case $ac_val in
1134 */ )
1135 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1136 eval $ac_var=\$ac_val;;
1137 esac
1138 # Be sure to have absolute directory names.
1139 case $ac_val in
1140 [\\/$]* | ?:[\\/]* ) continue;;
1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 esac
1143 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1144 done
1145
1146 # There might be people who depend on the old broken behavior: `$host'
1147 # used to hold the argument of --host etc.
1148 # FIXME: To remove some day.
1149 build=$build_alias
1150 host=$host_alias
1151 target=$target_alias
1152
1153 # FIXME: To remove some day.
1154 if test "x$host_alias" != x; then
1155 if test "x$build_alias" = x; then
1156 cross_compiling=maybe
1157 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1158 If a cross compiler is detected then cross compile mode will be used" >&2
1159 elif test "x$build_alias" != "x$host_alias"; then
1160 cross_compiling=yes
1161 fi
1162 fi
1163
1164 ac_tool_prefix=
1165 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1166
1167 test "$silent" = yes && exec 6>/dev/null
1168
1169
1170 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1171 ac_ls_di=`ls -di .` &&
1172 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1173 as_fn_error $? "working directory cannot be determined"
1174 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1175 as_fn_error $? "pwd does not report name of working directory"
1176
1177
1178 # Find the source files, if location was not specified.
1179 if test -z "$srcdir"; then
1180 ac_srcdir_defaulted=yes
1181 # Try the directory containing this script, then the parent directory.
1182 ac_confdir=`$as_dirname -- "$as_myself" ||
1183 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1184 X"$as_myself" : 'X\(//\)[^/]' \| \
1185 X"$as_myself" : 'X\(//\)$' \| \
1186 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1187 $as_echo X"$as_myself" |
1188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1189 s//\1/
1190 q
1191 }
1192 /^X\(\/\/\)[^/].*/{
1193 s//\1/
1194 q
1195 }
1196 /^X\(\/\/\)$/{
1197 s//\1/
1198 q
1199 }
1200 /^X\(\/\).*/{
1201 s//\1/
1202 q
1203 }
1204 s/.*/./; q'`
1205 srcdir=$ac_confdir
1206 if test ! -r "$srcdir/$ac_unique_file"; then
1207 srcdir=..
1208 fi
1209 else
1210 ac_srcdir_defaulted=no
1211 fi
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1213 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1214 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1215 fi
1216 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1219 pwd)`
1220 # When building in place, set srcdir=.
1221 if test "$ac_abs_confdir" = "$ac_pwd"; then
1222 srcdir=.
1223 fi
1224 # Remove unnecessary trailing slashes from srcdir.
1225 # Double slashes in file names in object file debugging info
1226 # mess up M-x gdb in Emacs.
1227 case $srcdir in
1228 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229 esac
1230 for ac_var in $ac_precious_vars; do
1231 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_env_${ac_var}_value=\$${ac_var}
1233 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1234 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1235 done
1236
1237 #
1238 # Report the --help message.
1239 #
1240 if test "$ac_init_help" = "long"; then
1241 # Omit some internal or obsolete options to make the list less imposing.
1242 # This message is too long to be a string in the A/UX 3.1 sh.
1243 cat <<_ACEOF
1244 \`configure' configures this package to adapt to many kinds of systems.
1245
1246 Usage: $0 [OPTION]... [VAR=VALUE]...
1247
1248 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1249 VAR=VALUE. See below for descriptions of some of the useful variables.
1250
1251 Defaults for the options are specified in brackets.
1252
1253 Configuration:
1254 -h, --help display this help and exit
1255 --help=short display options specific to this package
1256 --help=recursive display the short help of all the included packages
1257 -V, --version display version information and exit
1258 -q, --quiet, --silent do not print \`checking ...' messages
1259 --cache-file=FILE cache test results in FILE [disabled]
1260 -C, --config-cache alias for \`--cache-file=config.cache'
1261 -n, --no-create do not create output files
1262 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1263
1264 Installation directories:
1265 --prefix=PREFIX install architecture-independent files in PREFIX
1266 [$ac_default_prefix]
1267 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1268 [PREFIX]
1269
1270 By default, \`make install' will install all the files in
1271 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1272 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1273 for instance \`--prefix=\$HOME'.
1274
1275 For better control, use the options below.
1276
1277 Fine tuning of the installation directories:
1278 --bindir=DIR user executables [EPREFIX/bin]
1279 --sbindir=DIR system admin executables [EPREFIX/sbin]
1280 --libexecdir=DIR program executables [EPREFIX/libexec]
1281 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1282 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1283 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1284 --libdir=DIR object code libraries [EPREFIX/lib]
1285 --includedir=DIR C header files [PREFIX/include]
1286 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1287 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1288 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1289 --infodir=DIR info documentation [DATAROOTDIR/info]
1290 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1291 --mandir=DIR man documentation [DATAROOTDIR/man]
1292 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1293 --htmldir=DIR html documentation [DOCDIR]
1294 --dvidir=DIR dvi documentation [DOCDIR]
1295 --pdfdir=DIR pdf documentation [DOCDIR]
1296 --psdir=DIR ps documentation [DOCDIR]
1297 _ACEOF
1298
1299 cat <<\_ACEOF
1300
1301 Program names:
1302 --program-prefix=PREFIX prepend PREFIX to installed program names
1303 --program-suffix=SUFFIX append SUFFIX to installed program names
1304 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1305
1306 System types:
1307 --build=BUILD configure for building on BUILD [guessed]
1308 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1309 --target=TARGET configure for building compilers for TARGET [HOST]
1310 _ACEOF
1311 fi
1312
1313 if test -n "$ac_init_help"; then
1314
1315 cat <<\_ACEOF
1316
1317 Optional Features:
1318 --disable-option-checking ignore unrecognized --enable/--with options
1319 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1320 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1321 --disable-dependency-tracking speeds up one-time build
1322 --enable-dependency-tracking do not reject slow dependency extractors
1323 --disable-sdltest Do not try to compile and run a test SDL program
1324 --enable-debug Print debug messages
1325
1326 Optional Packages:
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --with-lua=PFX Prefix where Lua is installed
1330 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1331 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1332 --with-x enable X window manager support [default=detect]
1333 --with-boost=PFX Prefix where boost is installed
1334
1335 Some influential environment variables:
1336 CXX C++ compiler command
1337 CXXFLAGS C++ compiler flags
1338 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1339 nonstandard directory <lib dir>
1340 LIBS libraries to pass to the linker, e.g. -l<library>
1341 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1342 you have headers in a nonstandard directory <include dir>
1343 CC C compiler command
1344 CFLAGS C compiler flags
1345 PKG_CONFIG path to pkg-config utility
1346 PKG_CONFIG_PATH
1347 directories to add to pkg-config's search path
1348 PKG_CONFIG_LIBDIR
1349 path overriding pkg-config's built-in search path
1350 FRIBIDI_CFLAGS
1351 C compiler flags for FRIBIDI, overriding pkg-config
1352 FRIBIDI_LIBS
1353 linker flags for FRIBIDI, overriding pkg-config
1354 LUA_CFLAGS C compiler flags for LUA, overriding pkg-config
1355 LUA_LIBS linker flags for LUA, overriding pkg-config
1356
1357 Use these variables to override the choices made by `configure' or to help
1358 it to find libraries and programs with nonstandard names/locations.
1359
1360 Report bugs to the package provider.
1361 _ACEOF
1362 ac_status=$?
1363 fi
1364
1365 if test "$ac_init_help" = "recursive"; then
1366 # If there are subdirs, report their specific --help.
1367 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1368 test -d "$ac_dir" ||
1369 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1370 continue
1371 ac_builddir=.
1372
1373 case "$ac_dir" in
1374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1375 *)
1376 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1377 # A ".." for each directory in $ac_dir_suffix.
1378 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1379 case $ac_top_builddir_sub in
1380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1382 esac ;;
1383 esac
1384 ac_abs_top_builddir=$ac_pwd
1385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1386 # for backward compatibility:
1387 ac_top_builddir=$ac_top_build_prefix
1388
1389 case $srcdir in
1390 .) # We are building in place.
1391 ac_srcdir=.
1392 ac_top_srcdir=$ac_top_builddir_sub
1393 ac_abs_top_srcdir=$ac_pwd ;;
1394 [\\/]* | ?:[\\/]* ) # Absolute name.
1395 ac_srcdir=$srcdir$ac_dir_suffix;
1396 ac_top_srcdir=$srcdir
1397 ac_abs_top_srcdir=$srcdir ;;
1398 *) # Relative name.
1399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1400 ac_top_srcdir=$ac_top_build_prefix$srcdir
1401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1402 esac
1403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1404
1405 cd "$ac_dir" || { ac_status=$?; continue; }
1406 # Check for guested configure.
1407 if test -f "$ac_srcdir/configure.gnu"; then
1408 echo &&
1409 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1410 elif test -f "$ac_srcdir/configure"; then
1411 echo &&
1412 $SHELL "$ac_srcdir/configure" --help=recursive
1413 else
1414 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1415 fi || ac_status=$?
1416 cd "$ac_pwd" || { ac_status=$?; break; }
1417 done
1418 fi
1419
1420 test -n "$ac_init_help" && exit $ac_status
1421 if $ac_init_version; then
1422 cat <<\_ACEOF
1423 configure
1424 generated by GNU Autoconf 2.67
1425
1426 Copyright (C) 2010 Free Software Foundation, Inc.
1427 This configure script is free software; the Free Software Foundation
1428 gives unlimited permission to copy, distribute and modify it.
1429 _ACEOF
1430 exit
1431 fi
1432
1433 ## ------------------------ ##
1434 ## Autoconf initialization. ##
1435 ## ------------------------ ##
1436
1437 # ac_fn_cxx_try_compile LINENO
1438 # ----------------------------
1439 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1440 ac_fn_cxx_try_compile ()
1441 {
1442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1443 rm -f conftest.$ac_objext
1444 if { { ac_try="$ac_compile"
1445 case "(($ac_try" in
1446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1447 *) ac_try_echo=$ac_try;;
1448 esac
1449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1450 $as_echo "$ac_try_echo"; } >&5
1451 (eval "$ac_compile") 2>conftest.err
1452 ac_status=$?
1453 if test -s conftest.err; then
1454 grep -v '^ *+' conftest.err >conftest.er1
1455 cat conftest.er1 >&5
1456 mv -f conftest.er1 conftest.err
1457 fi
1458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1459 test $ac_status = 0; } && {
1460 test -z "$ac_cxx_werror_flag" ||
1461 test ! -s conftest.err
1462 } && test -s conftest.$ac_objext; then :
1463 ac_retval=0
1464 else
1465 $as_echo "$as_me: failed program was:" >&5
1466 sed 's/^/| /' conftest.$ac_ext >&5
1467
1468 ac_retval=1
1469 fi
1470 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1471 as_fn_set_status $ac_retval
1472
1473 } # ac_fn_cxx_try_compile
1474
1475 # ac_fn_c_try_compile LINENO
1476 # --------------------------
1477 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1478 ac_fn_c_try_compile ()
1479 {
1480 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1481 rm -f conftest.$ac_objext
1482 if { { ac_try="$ac_compile"
1483 case "(($ac_try" in
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1486 esac
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_compile") 2>conftest.err
1490 ac_status=$?
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1495 fi
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } && {
1498 test -z "$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1500 } && test -s conftest.$ac_objext; then :
1501 ac_retval=0
1502 else
1503 $as_echo "$as_me: failed program was:" >&5
1504 sed 's/^/| /' conftest.$ac_ext >&5
1505
1506 ac_retval=1
1507 fi
1508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1509 as_fn_set_status $ac_retval
1510
1511 } # ac_fn_c_try_compile
1512
1513 # ac_fn_c_try_link LINENO
1514 # -----------------------
1515 # Try to link conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_link ()
1517 {
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext conftest$ac_exeext
1520 if { { ac_try="$ac_link"
1521 case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524 esac
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_link") 2>conftest.err
1528 ac_status=$?
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1533 fi
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest$ac_exeext && {
1539 test "$cross_compiling" = yes ||
1540 $as_test_x conftest$ac_exeext
1541 }; then :
1542 ac_retval=0
1543 else
1544 $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=1
1548 fi
1549 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1550 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1551 # interfere with the next link command; also delete a directory that is
1552 # left behind by Apple's compiler. We do this before executing the actions.
1553 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1555 as_fn_set_status $ac_retval
1556
1557 } # ac_fn_c_try_link
1558
1559 # ac_fn_c_try_run LINENO
1560 # ----------------------
1561 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1562 # that executables *can* be run.
1563 ac_fn_c_try_run ()
1564 {
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_link"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_link") 2>&5
1574 ac_status=$?
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1577 { { case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_try") 2>&5
1584 ac_status=$?
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; }; }; then :
1587 ac_retval=0
1588 else
1589 $as_echo "$as_me: program exited with status $ac_status" >&5
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=$ac_status
1594 fi
1595 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1597 as_fn_set_status $ac_retval
1598
1599 } # ac_fn_c_try_run
1600
1601 # ac_fn_cxx_try_link LINENO
1602 # -------------------------
1603 # Try to link conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_cxx_try_link ()
1605 {
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 rm -f conftest.$ac_objext conftest$ac_exeext
1608 if { { ac_try="$ac_link"
1609 case "(($ac_try" in
1610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611 *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615 (eval "$ac_link") 2>conftest.err
1616 ac_status=$?
1617 if test -s conftest.err; then
1618 grep -v '^ *+' conftest.err >conftest.er1
1619 cat conftest.er1 >&5
1620 mv -f conftest.er1 conftest.err
1621 fi
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && {
1624 test -z "$ac_cxx_werror_flag" ||
1625 test ! -s conftest.err
1626 } && test -s conftest$ac_exeext && {
1627 test "$cross_compiling" = yes ||
1628 $as_test_x conftest$ac_exeext
1629 }; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1638 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1639 # interfere with the next link command; also delete a directory that is
1640 # left behind by Apple's compiler. We do this before executing the actions.
1641 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 as_fn_set_status $ac_retval
1644
1645 } # ac_fn_cxx_try_link
1646 cat >config.log <<_ACEOF
1647 This file contains any messages produced by compilers while
1648 running configure, to aid debugging if configure makes a mistake.
1649
1650 It was created by $as_me, which was
1651 generated by GNU Autoconf 2.67. Invocation command line was
1652
1653 $ $0 $@
1654
1655 _ACEOF
1656 exec 5>>config.log
1657 {
1658 cat <<_ASUNAME
1659 ## --------- ##
1660 ## Platform. ##
1661 ## --------- ##
1662
1663 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1664 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1665 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1666 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1667 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1668
1669 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1670 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1671
1672 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1673 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1674 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1675 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1676 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1677 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1678 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1679
1680 _ASUNAME
1681
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1684 do
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 $as_echo "PATH: $as_dir"
1688 done
1689 IFS=$as_save_IFS
1690
1691 } >&5
1692
1693 cat >&5 <<_ACEOF
1694
1695
1696 ## ----------- ##
1697 ## Core tests. ##
1698 ## ----------- ##
1699
1700 _ACEOF
1701
1702
1703 # Keep a trace of the command line.
1704 # Strip out --no-create and --no-recursion so they do not pile up.
1705 # Strip out --silent because we don't want to record it for future runs.
1706 # Also quote any args containing shell meta-characters.
1707 # Make two passes to allow for proper duplicate-argument suppression.
1708 ac_configure_args=
1709 ac_configure_args0=
1710 ac_configure_args1=
1711 ac_must_keep_next=false
1712 for ac_pass in 1 2
1713 do
1714 for ac_arg
1715 do
1716 case $ac_arg in
1717 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1719 | -silent | --silent | --silen | --sile | --sil)
1720 continue ;;
1721 *\'*)
1722 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 esac
1724 case $ac_pass in
1725 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1726 2)
1727 as_fn_append ac_configure_args1 " '$ac_arg'"
1728 if test $ac_must_keep_next = true; then
1729 ac_must_keep_next=false # Got value, back to normal.
1730 else
1731 case $ac_arg in
1732 *=* | --config-cache | -C | -disable-* | --disable-* \
1733 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1734 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1735 | -with-* | --with-* | -without-* | --without-* | --x)
1736 case "$ac_configure_args0 " in
1737 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738 esac
1739 ;;
1740 -* ) ac_must_keep_next=true ;;
1741 esac
1742 fi
1743 as_fn_append ac_configure_args " '$ac_arg'"
1744 ;;
1745 esac
1746 done
1747 done
1748 { ac_configure_args0=; unset ac_configure_args0;}
1749 { ac_configure_args1=; unset ac_configure_args1;}
1750
1751 # When interrupted or exit'd, cleanup temporary files, and complete
1752 # config.log. We remove comments because anyway the quotes in there
1753 # would cause problems or look ugly.
1754 # WARNING: Use '\'' to represent an apostrophe within the trap.
1755 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1756 trap 'exit_status=$?
1757 # Save into config.log some information that might help in debugging.
1758 {
1759 echo
1760
1761 $as_echo "## ---------------- ##
1762 ## Cache variables. ##
1763 ## ---------------- ##"
1764 echo
1765 # The following way of writing the cache mishandles newlines in values,
1766 (
1767 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1768 eval ac_val=\$$ac_var
1769 case $ac_val in #(
1770 *${as_nl}*)
1771 case $ac_var in #(
1772 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1773 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1774 esac
1775 case $ac_var in #(
1776 _ | IFS | as_nl) ;; #(
1777 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1778 *) { eval $ac_var=; unset $ac_var;} ;;
1779 esac ;;
1780 esac
1781 done
1782 (set) 2>&1 |
1783 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1784 *${as_nl}ac_space=\ *)
1785 sed -n \
1786 "s/'\''/'\''\\\\'\'''\''/g;
1787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1788 ;; #(
1789 *)
1790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1791 ;;
1792 esac |
1793 sort
1794 )
1795 echo
1796
1797 $as_echo "## ----------------- ##
1798 ## Output variables. ##
1799 ## ----------------- ##"
1800 echo
1801 for ac_var in $ac_subst_vars
1802 do
1803 eval ac_val=\$$ac_var
1804 case $ac_val in
1805 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 esac
1807 $as_echo "$ac_var='\''$ac_val'\''"
1808 done | sort
1809 echo
1810
1811 if test -n "$ac_subst_files"; then
1812 $as_echo "## ------------------- ##
1813 ## File substitutions. ##
1814 ## ------------------- ##"
1815 echo
1816 for ac_var in $ac_subst_files
1817 do
1818 eval ac_val=\$$ac_var
1819 case $ac_val in
1820 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1821 esac
1822 $as_echo "$ac_var='\''$ac_val'\''"
1823 done | sort
1824 echo
1825 fi
1826
1827 if test -s confdefs.h; then
1828 $as_echo "## ----------- ##
1829 ## confdefs.h. ##
1830 ## ----------- ##"
1831 echo
1832 cat confdefs.h
1833 echo
1834 fi
1835 test "$ac_signal" != 0 &&
1836 $as_echo "$as_me: caught signal $ac_signal"
1837 $as_echo "$as_me: exit $exit_status"
1838 } >&5
1839 rm -f core *.core core.conftest.* &&
1840 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1841 exit $exit_status
1842 ' 0
1843 for ac_signal in 1 2 13 15; do
1844 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1845 done
1846 ac_signal=0
1847
1848 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1849 rm -f -r conftest* confdefs.h
1850
1851 $as_echo "/* confdefs.h */" > confdefs.h
1852
1853 # Predefined preprocessor variables.
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_NAME "$PACKAGE_NAME"
1857 _ACEOF
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1861 _ACEOF
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1865 _ACEOF
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1869 _ACEOF
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1873 _ACEOF
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_URL "$PACKAGE_URL"
1877 _ACEOF
1878
1879
1880 # Let the site file select an alternate cache file if it wants to.
1881 # Prefer an explicitly selected file to automatically selected ones.
1882 ac_site_file1=NONE
1883 ac_site_file2=NONE
1884 if test -n "$CONFIG_SITE"; then
1885 # We do not want a PATH search for config.site.
1886 case $CONFIG_SITE in #((
1887 -*) ac_site_file1=./$CONFIG_SITE;;
1888 */*) ac_site_file1=$CONFIG_SITE;;
1889 *) ac_site_file1=./$CONFIG_SITE;;
1890 esac
1891 elif test "x$prefix" != xNONE; then
1892 ac_site_file1=$prefix/share/config.site
1893 ac_site_file2=$prefix/etc/config.site
1894 else
1895 ac_site_file1=$ac_default_prefix/share/config.site
1896 ac_site_file2=$ac_default_prefix/etc/config.site
1897 fi
1898 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1899 do
1900 test "x$ac_site_file" = xNONE && continue
1901 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1903 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1904 sed 's/^/| /' "$ac_site_file" >&5
1905 . "$ac_site_file" \
1906 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1908 as_fn_error $? "failed to load site script $ac_site_file
1909 See \`config.log' for more details" "$LINENO" 5 ; }
1910 fi
1911 done
1912
1913 if test -r "$cache_file"; then
1914 # Some versions of bash will fail to source /dev/null (special files
1915 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1916 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1918 $as_echo "$as_me: loading cache $cache_file" >&6;}
1919 case $cache_file in
1920 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1921 *) . "./$cache_file";;
1922 esac
1923 fi
1924 else
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1926 $as_echo "$as_me: creating cache $cache_file" >&6;}
1927 >$cache_file
1928 fi
1929
1930 # Check that the precious variables saved in the cache have kept the same
1931 # value.
1932 ac_cache_corrupted=false
1933 for ac_var in $ac_precious_vars; do
1934 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1935 eval ac_new_set=\$ac_env_${ac_var}_set
1936 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1937 eval ac_new_val=\$ac_env_${ac_var}_value
1938 case $ac_old_set,$ac_new_set in
1939 set,)
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1942 ac_cache_corrupted=: ;;
1943 ,set)
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1945 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1946 ac_cache_corrupted=: ;;
1947 ,);;
1948 *)
1949 if test "x$ac_old_val" != "x$ac_new_val"; then
1950 # differences in whitespace do not lead to failure.
1951 ac_old_val_w=`echo x $ac_old_val`
1952 ac_new_val_w=`echo x $ac_new_val`
1953 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1955 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1956 ac_cache_corrupted=:
1957 else
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1959 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1960 eval $ac_var=\$ac_old_val
1961 fi
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1963 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1965 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1966 fi;;
1967 esac
1968 # Pass precious variables to config.status.
1969 if test "$ac_new_set" = set; then
1970 case $ac_new_val in
1971 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1972 *) ac_arg=$ac_var=$ac_new_val ;;
1973 esac
1974 case " $ac_configure_args " in
1975 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1976 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1977 esac
1978 fi
1979 done
1980 if $ac_cache_corrupted; then
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1984 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1985 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1986 fi
1987 ## -------------------- ##
1988 ## Main body of script. ##
1989 ## -------------------- ##
1990
1991 ac_ext=c
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996
1997
1998 ac_aux_dir=
1999 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2000 if test -f "$ac_dir/install-sh"; then
2001 ac_aux_dir=$ac_dir
2002 ac_install_sh="$ac_aux_dir/install-sh -c"
2003 break
2004 elif test -f "$ac_dir/install.sh"; then
2005 ac_aux_dir=$ac_dir
2006 ac_install_sh="$ac_aux_dir/install.sh -c"
2007 break
2008 elif test -f "$ac_dir/shtool"; then
2009 ac_aux_dir=$ac_dir
2010 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 break
2012 fi
2013 done
2014 if test -z "$ac_aux_dir"; then
2015 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2016 fi
2017
2018 # These three variables are undocumented and unsupported,
2019 # and are intended to be withdrawn in a future Autoconf release.
2020 # They can cause serious problems if a builder's source tree is in a directory
2021 # whose full name contains unusual characters.
2022 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2023 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2024 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2025
2026
2027 # Make sure we can run config.sub.
2028 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2029 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2030
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2032 $as_echo_n "checking build system type... " >&6; }
2033 if test "${ac_cv_build+set}" = set; then :
2034 $as_echo_n "(cached) " >&6
2035 else
2036 ac_build_alias=$build_alias
2037 test "x$ac_build_alias" = x &&
2038 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2039 test "x$ac_build_alias" = x &&
2040 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2041 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2042 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2043
2044 fi
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2046 $as_echo "$ac_cv_build" >&6; }
2047 case $ac_cv_build in
2048 *-*-*) ;;
2049 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2050 esac
2051 build=$ac_cv_build
2052 ac_save_IFS=$IFS; IFS='-'
2053 set x $ac_cv_build
2054 shift
2055 build_cpu=$1
2056 build_vendor=$2
2057 shift; shift
2058 # Remember, the first character of IFS is used to create $*,
2059 # except with old shells:
2060 build_os=$*
2061 IFS=$ac_save_IFS
2062 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2063
2064
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2066 $as_echo_n "checking host system type... " >&6; }
2067 if test "${ac_cv_host+set}" = set; then :
2068 $as_echo_n "(cached) " >&6
2069 else
2070 if test "x$host_alias" = x; then
2071 ac_cv_host=$ac_cv_build
2072 else
2073 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2074 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2075 fi
2076
2077 fi
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2079 $as_echo "$ac_cv_host" >&6; }
2080 case $ac_cv_host in
2081 *-*-*) ;;
2082 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2083 esac
2084 host=$ac_cv_host
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_host
2087 shift
2088 host_cpu=$1
2089 host_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 host_os=$*
2094 IFS=$ac_save_IFS
2095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2096
2097
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2099 $as_echo_n "checking target system type... " >&6; }
2100 if test "${ac_cv_target+set}" = set; then :
2101 $as_echo_n "(cached) " >&6
2102 else
2103 if test "x$target_alias" = x; then
2104 ac_cv_target=$ac_cv_host
2105 else
2106 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2107 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2108 fi
2109
2110 fi
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2112 $as_echo "$ac_cv_target" >&6; }
2113 case $ac_cv_target in
2114 *-*-*) ;;
2115 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2116 esac
2117 target=$ac_cv_target
2118 ac_save_IFS=$IFS; IFS='-'
2119 set x $ac_cv_target
2120 shift
2121 target_cpu=$1
2122 target_vendor=$2
2123 shift; shift
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2126 target_os=$*
2127 IFS=$ac_save_IFS
2128 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2129
2130
2131 # The aliases save the names the user supplied, while $host etc.
2132 # will get canonicalized.
2133 test -n "$target_alias" &&
2134 test "$program_prefix$program_suffix$program_transform_name" = \
2135 NONENONEs,x,x, &&
2136 program_prefix=${target_alias}-
2137
2138 # The AM_INIT_AUTOMAKE macro tells automake the name and version number
2139 # of the software package so it can generate rules for building a source
2140 # archive.
2141 am__api_version="1.9"
2142 # Find a good install program. We prefer a C program (faster),
2143 # so one script is as good as another. But avoid the broken or
2144 # incompatible versions:
2145 # SysV /etc/install, /usr/sbin/install
2146 # SunOS /usr/etc/install
2147 # IRIX /sbin/install
2148 # AIX /bin/install
2149 # AmigaOS /C/install, which installs bootblocks on floppy discs
2150 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2151 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2152 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2153 # OS/2's system install, which has a completely different semantic
2154 # ./install, which can be erroneously created by make from ./install.sh.
2155 # Reject install programs that cannot install multiple files.
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2157 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2158 if test -z "$INSTALL"; then
2159 if test "${ac_cv_path_install+set}" = set; then :
2160 $as_echo_n "(cached) " >&6
2161 else
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2164 do
2165 IFS=$as_save_IFS
2166 test -z "$as_dir" && as_dir=.
2167 # Account for people who put trailing slashes in PATH elements.
2168 case $as_dir/ in #((
2169 ./ | .// | /[cC]/* | \
2170 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2171 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2172 /usr/ucb/* ) ;;
2173 *)
2174 # OSF1 and SCO ODT 3.0 have their own names for install.
2175 # Don't use installbsd from OSF since it installs stuff as root
2176 # by default.
2177 for ac_prog in ginstall scoinst install; do
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2180 if test $ac_prog = install &&
2181 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2182 # AIX install. It has an incompatible calling convention.
2183 :
2184 elif test $ac_prog = install &&
2185 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2186 # program-specific install script used by HP pwplus--don't use.
2187 :
2188 else
2189 rm -rf conftest.one conftest.two conftest.dir
2190 echo one > conftest.one
2191 echo two > conftest.two
2192 mkdir conftest.dir
2193 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2194 test -s conftest.one && test -s conftest.two &&
2195 test -s conftest.dir/conftest.one &&
2196 test -s conftest.dir/conftest.two
2197 then
2198 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2199 break 3
2200 fi
2201 fi
2202 fi
2203 done
2204 done
2205 ;;
2206 esac
2207
2208 done
2209 IFS=$as_save_IFS
2210
2211 rm -rf conftest.one conftest.two conftest.dir
2212
2213 fi
2214 if test "${ac_cv_path_install+set}" = set; then
2215 INSTALL=$ac_cv_path_install
2216 else
2217 # As a last resort, use the slow shell script. Don't cache a
2218 # value for INSTALL within a source directory, because that will
2219 # break other packages using the cache if that directory is
2220 # removed, or if the value is a relative name.
2221 INSTALL=$ac_install_sh
2222 fi
2223 fi
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2225 $as_echo "$INSTALL" >&6; }
2226
2227 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2228 # It thinks the first close brace ends the variable substitution.
2229 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2230
2231 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2232
2233 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2234
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2236 $as_echo_n "checking whether build environment is sane... " >&6; }
2237 # Just in case
2238 sleep 1
2239 echo timestamp > conftest.file
2240 # Do `set' in a subshell so we don't clobber the current shell's
2241 # arguments. Must try -L first in case configure is actually a
2242 # symlink; some systems play weird games with the mod time of symlinks
2243 # (eg FreeBSD returns the mod time of the symlink's containing
2244 # directory).
2245 if (
2246 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2247 if test "$*" = "X"; then
2248 # -L didn't work.
2249 set X `ls -t $srcdir/configure conftest.file`
2250 fi
2251 rm -f conftest.file
2252 if test "$*" != "X $srcdir/configure conftest.file" \
2253 && test "$*" != "X conftest.file $srcdir/configure"; then
2254
2255 # If neither matched, then we have a broken ls. This can happen
2256 # if, for instance, CONFIG_SHELL is bash and it inherits a
2257 # broken ls alias from the environment. This has actually
2258 # happened. Such a system could not be considered "sane".
2259 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2260 alias in your environment" "$LINENO" 5
2261 fi
2262
2263 test "$2" = conftest.file
2264 )
2265 then
2266 # Ok.
2267 :
2268 else
2269 as_fn_error $? "newly created file is older than distributed files!
2270 Check your system clock" "$LINENO" 5
2271 fi
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2273 $as_echo "yes" >&6; }
2274 test "$program_prefix" != NONE &&
2275 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2276 # Use a double $ so make ignores it.
2277 test "$program_suffix" != NONE &&
2278 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2279 # Double any \ or $.
2280 # By default was `s,x,x', remove it if useless.
2281 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2282 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2283
2284 # expand $ac_aux_dir to an absolute path
2285 am_aux_dir=`cd $ac_aux_dir && pwd`
2286
2287 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2288 # Use eval to expand $SHELL
2289 if eval "$MISSING --run true"; then
2290 am_missing_run="$MISSING --run "
2291 else
2292 am_missing_run=
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2294 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2295 fi
2296
2297 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2298 # We used to keeping the `.' as first argument, in order to
2299 # allow $(mkdir_p) to be used without argument. As in
2300 # $(mkdir_p) $(somedir)
2301 # where $(somedir) is conditionally defined. However this is wrong
2302 # for two reasons:
2303 # 1. if the package is installed by a user who cannot write `.'
2304 # make install will fail,
2305 # 2. the above comment should most certainly read
2306 # $(mkdir_p) $(DESTDIR)$(somedir)
2307 # so it does not work when $(somedir) is undefined and
2308 # $(DESTDIR) is not.
2309 # To support the latter case, we have to write
2310 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2311 # so the `.' trick is pointless.
2312 mkdir_p='mkdir -p --'
2313 else
2314 # On NextStep and OpenStep, the `mkdir' command does not
2315 # recognize any option. It will interpret all options as
2316 # directories to create, and then abort because `.' already
2317 # exists.
2318 for d in ./-p ./--version;
2319 do
2320 test -d $d && rmdir $d
2321 done
2322 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2323 if test -f "$ac_aux_dir/mkinstalldirs"; then
2324 mkdir_p='$(mkinstalldirs)'
2325 else
2326 mkdir_p='$(install_sh) -d'
2327 fi
2328 fi
2329
2330 for ac_prog in gawk mawk nawk awk
2331 do
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2335 $as_echo_n "checking for $ac_word... " >&6; }
2336 if test "${ac_cv_prog_AWK+set}" = set; then :
2337 $as_echo_n "(cached) " >&6
2338 else
2339 if test -n "$AWK"; then
2340 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_AWK="$ac_prog"
2350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2352 fi
2353 done
2354 done
2355 IFS=$as_save_IFS
2356
2357 fi
2358 fi
2359 AWK=$ac_cv_prog_AWK
2360 if test -n "$AWK"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2362 $as_echo "$AWK" >&6; }
2363 else
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2365 $as_echo "no" >&6; }
2366 fi
2367
2368
2369 test -n "$AWK" && break
2370 done
2371
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2373 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2374 set x ${MAKE-make}
2375 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2376 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2377 $as_echo_n "(cached) " >&6
2378 else
2379 cat >conftest.make <<\_ACEOF
2380 SHELL = /bin/sh
2381 all:
2382 @echo '@@@%%%=$(MAKE)=@@@%%%'
2383 _ACEOF
2384 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2385 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2386 *@@@%%%=?*=@@@%%%*)
2387 eval ac_cv_prog_make_${ac_make}_set=yes;;
2388 *)
2389 eval ac_cv_prog_make_${ac_make}_set=no;;
2390 esac
2391 rm -f conftest.make
2392 fi
2393 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2395 $as_echo "yes" >&6; }
2396 SET_MAKE=
2397 else
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2399 $as_echo "no" >&6; }
2400 SET_MAKE="MAKE=${MAKE-make}"
2401 fi
2402
2403 rm -rf .tst 2>/dev/null
2404 mkdir .tst 2>/dev/null
2405 if test -d .tst; then
2406 am__leading_dot=.
2407 else
2408 am__leading_dot=_
2409 fi
2410 rmdir .tst 2>/dev/null
2411
2412 # test to see if srcdir already configured
2413 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2414 test -f $srcdir/config.status; then
2415 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2416 fi
2417
2418 # test whether we have cygpath
2419 if test -z "$CYGPATH_W"; then
2420 if (cygpath --version) >/dev/null 2>/dev/null; then
2421 CYGPATH_W='cygpath -w'
2422 else
2423 CYGPATH_W=echo
2424 fi
2425 fi
2426
2427
2428 # Define the identity of the package.
2429 PACKAGE=fillets-ng
2430 VERSION=1.0.1
2431
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE "$PACKAGE"
2435 _ACEOF
2436
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define VERSION "$VERSION"
2440 _ACEOF
2441
2442 # Some tools Automake needs.
2443
2444 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2445
2446
2447 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2448
2449
2450 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2451
2452
2453 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2454
2455
2456 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2457
2458 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2459
2460 # Installed binaries are usually stripped using `strip' when the user
2461 # run `make install-strip'. However `strip' might not be the right
2462 # tool to use in cross-compilation environments, therefore Automake
2463 # will honor the `STRIP' environment variable to overrule this program.
2464 if test "$cross_compiling" != no; then
2465 if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2467 set dummy ${ac_tool_prefix}strip; ac_word=$2
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_prog_STRIP+set}" = set; then :
2471 $as_echo_n "(cached) " >&6
2472 else
2473 if test -n "$STRIP"; then
2474 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 STRIP=$ac_cv_prog_STRIP
2494 if test -n "$STRIP"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2496 $as_echo "$STRIP" >&6; }
2497 else
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499 $as_echo "no" >&6; }
2500 fi
2501
2502
2503 fi
2504 if test -z "$ac_cv_prog_STRIP"; then
2505 ac_ct_STRIP=$STRIP
2506 # Extract the first word of "strip", so it can be a program name with args.
2507 set dummy strip; ac_word=$2
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 if test -n "$ac_ct_STRIP"; then
2514 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH
2518 do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_ac_ct_STRIP="strip"
2524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527 done
2528 done
2529 IFS=$as_save_IFS
2530
2531 fi
2532 fi
2533 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2534 if test -n "$ac_ct_STRIP"; then
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2536 $as_echo "$ac_ct_STRIP" >&6; }
2537 else
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2539 $as_echo "no" >&6; }
2540 fi
2541
2542 if test "x$ac_ct_STRIP" = x; then
2543 STRIP=":"
2544 else
2545 case $cross_compiling:$ac_tool_warned in
2546 yes:)
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2549 ac_tool_warned=yes ;;
2550 esac
2551 STRIP=$ac_ct_STRIP
2552 fi
2553 else
2554 STRIP="$ac_cv_prog_STRIP"
2555 fi
2556
2557 fi
2558 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2559
2560 # We need awk for the "check" target. The system "awk" is bad on
2561 # some platforms.
2562 # Always define AMTAR for backward compatibility.
2563
2564 AMTAR=${AMTAR-"${am_missing_run}tar"}
2565
2566 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2567
2568
2569
2570
2571
2572
2573 # Checks for programs.
2574 ac_ext=cpp
2575 ac_cpp='$CXXCPP $CPPFLAGS'
2576 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2579 if test -z "$CXX"; then
2580 if test -n "$CCC"; then
2581 CXX=$CCC
2582 else
2583 if test -n "$ac_tool_prefix"; then
2584 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2585 do
2586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if test "${ac_cv_prog_CXX+set}" = set; then :
2591 $as_echo_n "(cached) " >&6
2592 else
2593 if test -n "$CXX"; then
2594 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605 break 2
2606 fi
2607 done
2608 done
2609 IFS=$as_save_IFS
2610
2611 fi
2612 fi
2613 CXX=$ac_cv_prog_CXX
2614 if test -n "$CXX"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2616 $as_echo "$CXX" >&6; }
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2620 fi
2621
2622
2623 test -n "$CXX" && break
2624 done
2625 fi
2626 if test -z "$CXX"; then
2627 ac_ct_CXX=$CXX
2628 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2629 do
2630 # Extract the first word of "$ac_prog", so it can be a program name with args.
2631 set dummy $ac_prog; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if test -n "$ac_ct_CXX"; then
2638 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2642 do
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_ac_ct_CXX="$ac_prog"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2650 fi
2651 done
2652 done
2653 IFS=$as_save_IFS
2654
2655 fi
2656 fi
2657 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2658 if test -n "$ac_ct_CXX"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2660 $as_echo "$ac_ct_CXX" >&6; }
2661 else
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2664 fi
2665
2666
2667 test -n "$ac_ct_CXX" && break
2668 done
2669
2670 if test "x$ac_ct_CXX" = x; then
2671 CXX="g++"
2672 else
2673 case $cross_compiling:$ac_tool_warned in
2674 yes:)
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2677 ac_tool_warned=yes ;;
2678 esac
2679 CXX=$ac_ct_CXX
2680 fi
2681 fi
2682
2683 fi
2684 fi
2685 # Provide some information about the compiler.
2686 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2687 set X $ac_compile
2688 ac_compiler=$2
2689 for ac_option in --version -v -V -qversion; do
2690 { { ac_try="$ac_compiler $ac_option >&5"
2691 case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2694 esac
2695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2696 $as_echo "$ac_try_echo"; } >&5
2697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2698 ac_status=$?
2699 if test -s conftest.err; then
2700 sed '10a\
2701 ... rest of stderr output deleted ...
2702 10q' conftest.err >conftest.er1
2703 cat conftest.er1 >&5
2704 fi
2705 rm -f conftest.er1 conftest.err
2706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2707 test $ac_status = 0; }
2708 done
2709
2710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2711 /* end confdefs.h. */
2712
2713 int
2714 main ()
2715 {
2716
2717 ;
2718 return 0;
2719 }
2720 _ACEOF
2721 ac_clean_files_save=$ac_clean_files
2722 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2723 # Try to create an executable without -o first, disregard a.out.
2724 # It will help us diagnose broken compilers, and finding out an intuition
2725 # of exeext.
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2727 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2728 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2729
2730 # The possible output files:
2731 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2732
2733 ac_rmfiles=
2734 for ac_file in $ac_files
2735 do
2736 case $ac_file in
2737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2738 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2739 esac
2740 done
2741 rm -f $ac_rmfiles
2742
2743 if { { ac_try="$ac_link_default"
2744 case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2749 $as_echo "$ac_try_echo"; } >&5
2750 (eval "$ac_link_default") 2>&5
2751 ac_status=$?
2752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2753 test $ac_status = 0; }; then :
2754 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2755 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2756 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2757 # so that the user can short-circuit this test for compilers unknown to
2758 # Autoconf.
2759 for ac_file in $ac_files ''
2760 do
2761 test -f "$ac_file" || continue
2762 case $ac_file in
2763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2764 ;;
2765 [ab].out )
2766 # We found the default executable, but exeext='' is most
2767 # certainly right.
2768 break;;
2769 *.* )
2770 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2771 then :; else
2772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2773 fi
2774 # We set ac_cv_exeext here because the later test for it is not
2775 # safe: cross compilers may not add the suffix if given an `-o'
2776 # argument, so we may need to know it at that point already.
2777 # Even if this section looks crufty: it has the advantage of
2778 # actually working.
2779 break;;
2780 * )
2781 break;;
2782 esac
2783 done
2784 test "$ac_cv_exeext" = no && ac_cv_exeext=
2785
2786 else
2787 ac_file=''
2788 fi
2789 if test -z "$ac_file"; then :
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2792 $as_echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2797 as_fn_error 77 "C++ compiler cannot create executables
2798 See \`config.log' for more details" "$LINENO" 5 ; }
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2801 $as_echo "yes" >&6; }
2802 fi
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2804 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2806 $as_echo "$ac_file" >&6; }
2807 ac_exeext=$ac_cv_exeext
2808
2809 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2810 ac_clean_files=$ac_clean_files_save
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2812 $as_echo_n "checking for suffix of executables... " >&6; }
2813 if { { ac_try="$ac_link"
2814 case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817 esac
2818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2819 $as_echo "$ac_try_echo"; } >&5
2820 (eval "$ac_link") 2>&5
2821 ac_status=$?
2822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2823 test $ac_status = 0; }; then :
2824 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2825 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2826 # work properly (i.e., refer to `conftest.exe'), while it won't with
2827 # `rm'.
2828 for ac_file in conftest.exe conftest conftest.*; do
2829 test -f "$ac_file" || continue
2830 case $ac_file in
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2832 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2833 break;;
2834 * ) break;;
2835 esac
2836 done
2837 else
2838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2841 See \`config.log' for more details" "$LINENO" 5 ; }
2842 fi
2843 rm -f conftest conftest$ac_cv_exeext
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2845 $as_echo "$ac_cv_exeext" >&6; }
2846
2847 rm -f conftest.$ac_ext
2848 EXEEXT=$ac_cv_exeext
2849 ac_exeext=$EXEEXT
2850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851 /* end confdefs.h. */
2852 #include <stdio.h>
2853 int
2854 main ()
2855 {
2856 FILE *f = fopen ("conftest.out", "w");
2857 return ferror (f) || fclose (f) != 0;
2858
2859 ;
2860 return 0;
2861 }
2862 _ACEOF
2863 ac_clean_files="$ac_clean_files conftest.out"
2864 # Check that the compiler produces executables we can run. If not, either
2865 # the compiler is broken, or we cross compile.
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2867 $as_echo_n "checking whether we are cross compiling... " >&6; }
2868 if test "$cross_compiling" != yes; then
2869 { { ac_try="$ac_link"
2870 case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873 esac
2874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875 $as_echo "$ac_try_echo"; } >&5
2876 (eval "$ac_link") 2>&5
2877 ac_status=$?
2878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2879 test $ac_status = 0; }
2880 if { ac_try='./conftest$ac_cv_exeext'
2881 { { case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884 esac
2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886 $as_echo "$ac_try_echo"; } >&5
2887 (eval "$ac_try") 2>&5
2888 ac_status=$?
2889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890 test $ac_status = 0; }; }; then
2891 cross_compiling=no
2892 else
2893 if test "$cross_compiling" = maybe; then
2894 cross_compiling=yes
2895 else
2896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2898 as_fn_error $? "cannot run C++ compiled programs.
2899 If you meant to cross compile, use \`--host'.
2900 See \`config.log' for more details" "$LINENO" 5 ; }
2901 fi
2902 fi
2903 fi
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2905 $as_echo "$cross_compiling" >&6; }
2906
2907 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2908 ac_clean_files=$ac_clean_files_save
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2910 $as_echo_n "checking for suffix of object files... " >&6; }
2911 if test "${ac_cv_objext+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2915 /* end confdefs.h. */
2916
2917 int
2918 main ()
2919 {
2920
2921 ;
2922 return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.o conftest.obj
2926 if { { ac_try="$ac_compile"
2927 case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930 esac
2931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932 $as_echo "$ac_try_echo"; } >&5
2933 (eval "$ac_compile") 2>&5
2934 ac_status=$?
2935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936 test $ac_status = 0; }; then :
2937 for ac_file in conftest.o conftest.obj conftest.*; do
2938 test -f "$ac_file" || continue;
2939 case $ac_file in
2940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2942 break;;
2943 esac
2944 done
2945 else
2946 $as_echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2951 as_fn_error $? "cannot compute suffix of object files: cannot compile
2952 See \`config.log' for more details" "$LINENO" 5 ; }
2953 fi
2954 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955 fi
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2957 $as_echo "$ac_cv_objext" >&6; }
2958 OBJEXT=$ac_cv_objext
2959 ac_objext=$OBJEXT
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2961 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2962 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h. */
2967
2968 int
2969 main ()
2970 {
2971 #ifndef __GNUC__
2972 choke me
2973 #endif
2974
2975 ;
2976 return 0;
2977 }
2978 _ACEOF
2979 if ac_fn_cxx_try_compile "$LINENO"; then :
2980 ac_compiler_gnu=yes
2981 else
2982 ac_compiler_gnu=no
2983 fi
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2986
2987 fi
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2989 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2990 if test $ac_compiler_gnu = yes; then
2991 GXX=yes
2992 else
2993 GXX=
2994 fi
2995 ac_test_CXXFLAGS=${CXXFLAGS+set}
2996 ac_save_CXXFLAGS=$CXXFLAGS
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2998 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2999 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3003 ac_cxx_werror_flag=yes
3004 ac_cv_prog_cxx_g=no
3005 CXXFLAGS="-g"
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3008
3009 int
3010 main ()
3011 {
3012
3013 ;
3014 return 0;
3015 }
3016 _ACEOF
3017 if ac_fn_cxx_try_compile "$LINENO"; then :
3018 ac_cv_prog_cxx_g=yes
3019 else
3020 CXXFLAGS=""
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3023
3024 int
3025 main ()
3026 {
3027
3028 ;
3029 return 0;
3030 }
3031 _ACEOF
3032 if ac_fn_cxx_try_compile "$LINENO"; then :
3033
3034 else
3035 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3036 CXXFLAGS="-g"
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3039
3040 int
3041 main ()
3042 {
3043
3044 ;
3045 return 0;
3046 }
3047 _ACEOF
3048 if ac_fn_cxx_try_compile "$LINENO"; then :
3049 ac_cv_prog_cxx_g=yes
3050 fi
3051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3052 fi
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 fi
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3059 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3060 if test "$ac_test_CXXFLAGS" = set; then
3061 CXXFLAGS=$ac_save_CXXFLAGS
3062 elif test $ac_cv_prog_cxx_g = yes; then
3063 if test "$GXX" = yes; then
3064 CXXFLAGS="-g -O2"
3065 else
3066 CXXFLAGS="-g"
3067 fi
3068 else
3069 if test "$GXX" = yes; then
3070 CXXFLAGS="-O2"
3071 else
3072 CXXFLAGS=
3073 fi
3074 fi
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 DEPDIR="${am__leading_dot}deps"
3081
3082 ac_config_commands="$ac_config_commands depfiles"
3083
3084
3085 am_make=${MAKE-make}
3086 cat > confinc << 'END'
3087 am__doit:
3088 @echo done
3089 .PHONY: am__doit
3090 END
3091 # If we don't find an include directive, just comment out the code.
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3093 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3094 am__include="#"
3095 am__quote=
3096 _am_result=none
3097 # First try GNU make style include.
3098 echo "include confinc" > confmf
3099 # We grep out `Entering directory' and `Leaving directory'
3100 # messages which can occur if `w' ends up in MAKEFLAGS.
3101 # In particular we don't look at `^make:' because GNU make might
3102 # be invoked under some other name (usually "gmake"), in which
3103 # case it prints its new name instead of `make'.
3104 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3105 am__include=include
3106 am__quote=
3107 _am_result=GNU
3108 fi
3109 # Now try BSD make style include.
3110 if test "$am__include" = "#"; then
3111 echo '.include "confinc"' > confmf
3112 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3113 am__include=.include
3114 am__quote="\""
3115 _am_result=BSD
3116 fi
3117 fi
3118
3119
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3121 $as_echo "$_am_result" >&6; }
3122 rm -f confinc confmf
3123
3124 # Check whether --enable-dependency-tracking was given.
3125 if test "${enable_dependency_tracking+set}" = set; then :
3126 enableval=$enable_dependency_tracking;
3127 fi
3128
3129 if test "x$enable_dependency_tracking" != xno; then
3130 am_depcomp="$ac_aux_dir/depcomp"
3131 AMDEPBACKSLASH='\'
3132 fi
3133
3134
3135 if test "x$enable_dependency_tracking" != xno; then
3136 AMDEP_TRUE=
3137 AMDEP_FALSE='#'
3138 else
3139 AMDEP_TRUE='#'
3140 AMDEP_FALSE=
3141 fi
3142
3143
3144
3145
3146 depcc="$CXX" am_compiler_list=
3147
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3149 $as_echo_n "checking dependency style of $depcc... " >&6; }
3150 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3154 # We make a subdir and do the tests there. Otherwise we can end up
3155 # making bogus files that we don't know about and never remove. For
3156 # instance it was reported that on HP-UX the gcc test will end up
3157 # making a dummy file named `D' -- because `-MD' means `put the output
3158 # in D'.
3159 mkdir conftest.dir
3160 # Copy depcomp to subdir because otherwise we won't find it if we're
3161 # using a relative directory.
3162 cp "$am_depcomp" conftest.dir
3163 cd conftest.dir
3164 # We will build objects and dependencies in a subdirectory because
3165 # it helps to detect inapplicable dependency modes. For instance
3166 # both Tru64's cc and ICC support -MD to output dependencies as a
3167 # side effect of compilation, but ICC will put the dependencies in
3168 # the current directory while Tru64 will put them in the object
3169 # directory.
3170 mkdir sub
3171
3172 am_cv_CXX_dependencies_compiler_type=none
3173 if test "$am_compiler_list" = ""; then
3174 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3175 fi
3176 for depmode in $am_compiler_list; do
3177 # Setup a source with many dependencies, because some compilers
3178 # like to wrap large dependency lists on column 80 (with \), and
3179 # we should not choose a depcomp mode which is confused by this.
3180 #
3181 # We need to recreate these files for each test, as the compiler may
3182 # overwrite some of them when testing with obscure command lines.
3183 # This happens at least with the AIX C compiler.
3184 : > sub/conftest.c
3185 for i in 1 2 3 4 5 6; do
3186 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3187 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3188 # Solaris 8's {/usr,}/bin/sh.
3189 touch sub/conftst$i.h
3190 done
3191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3192
3193 case $depmode in
3194 nosideeffect)
3195 # after this tag, mechanisms are not by side-effect, so they'll
3196 # only be used when explicitly requested
3197 if test "x$enable_dependency_tracking" = xyes; then
3198 continue
3199 else
3200 break
3201 fi
3202 ;;
3203 none) break ;;
3204 esac
3205 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3206 # mode. It turns out that the SunPro C++ compiler does not properly
3207 # handle `-M -o', and we need to detect this.
3208 if depmode=$depmode \
3209 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3210 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3211 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3212 >/dev/null 2>conftest.err &&
3213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3214 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3216 # icc doesn't choke on unknown options, it will just issue warnings
3217 # or remarks (even with -Werror). So we grep stderr for any message
3218 # that says an option was ignored or not supported.
3219 # When given -MP, icc 7.0 and 7.1 complain thusly:
3220 # icc: Command line warning: ignoring option '-M'; no argument required
3221 # The diagnosis changed in icc 8.0:
3222 # icc: Command line remark: option '-MP' not supported
3223 if (grep 'ignoring option' conftest.err ||
3224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3225 am_cv_CXX_dependencies_compiler_type=$depmode
3226 break
3227 fi
3228 fi
3229 done
3230
3231 cd ..
3232 rm -rf conftest.dir
3233 else
3234 am_cv_CXX_dependencies_compiler_type=none
3235 fi
3236
3237 fi
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3239 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3240 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3241
3242
3243
3244 if
3245 test "x$enable_dependency_tracking" != xno \
3246 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3247 am__fastdepCXX_TRUE=
3248 am__fastdepCXX_FALSE='#'
3249 else
3250 am__fastdepCXX_TRUE='#'
3251 am__fastdepCXX_FALSE=
3252 fi
3253
3254
3255 ac_ext=c
3256 ac_cpp='$CPP $CPPFLAGS'
3257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3260 if test -n "$ac_tool_prefix"; then
3261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3262 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264 $as_echo_n "checking for $ac_word... " >&6; }
3265 if test "${ac_cv_prog_CC+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3270 else
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 break 2
3281 fi
3282 done
3283 done
3284 IFS=$as_save_IFS
3285
3286 fi
3287 fi
3288 CC=$ac_cv_prog_CC
3289 if test -n "$CC"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3291 $as_echo "$CC" >&6; }
3292 else
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 fi
3296
3297
3298 fi
3299 if test -z "$ac_cv_prog_CC"; then
3300 ac_ct_CC=$CC
3301 # Extract the first word of "gcc", so it can be a program name with args.
3302 set dummy gcc; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3307 else
3308 if test -n "$ac_ct_CC"; then
3309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_ac_ct_CC="gcc"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3321 fi
3322 done
3323 done
3324 IFS=$as_save_IFS
3325
3326 fi
3327 fi
3328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3329 if test -n "$ac_ct_CC"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3331 $as_echo "$ac_ct_CC" >&6; }
3332 else
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 fi
3336
3337 if test "x$ac_ct_CC" = x; then
3338 CC=""
3339 else
3340 case $cross_compiling:$ac_tool_warned in
3341 yes:)
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3344 ac_tool_warned=yes ;;
3345 esac
3346 CC=$ac_ct_CC
3347 fi
3348 else
3349 CC="$ac_cv_prog_CC"
3350 fi
3351
3352 if test -z "$CC"; then
3353 if test -n "$ac_tool_prefix"; then
3354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3355 set dummy ${ac_tool_prefix}cc; ac_word=$2
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 $as_echo_n "checking for $ac_word... " >&6; }
3358 if test "${ac_cv_prog_CC+set}" = set; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 if test -n "$CC"; then
3362 ac_cv_prog_CC="$CC" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3371 ac_cv_prog_CC="${ac_tool_prefix}cc"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 fi
3380 fi
3381 CC=$ac_cv_prog_CC
3382 if test -n "$CC"; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3384 $as_echo "$CC" >&6; }
3385 else
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3388 fi
3389
3390
3391 fi
3392 fi
3393 if test -z "$CC"; then
3394 # Extract the first word of "cc", so it can be a program name with args.
3395 set dummy cc; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if test "${ac_cv_prog_CC+set}" = set; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$CC"; then
3402 ac_cv_prog_CC="$CC" # Let the user override the test.
3403 else
3404 ac_prog_rejected=no
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3413 ac_prog_rejected=yes
3414 continue
3415 fi
3416 ac_cv_prog_CC="cc"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3419 fi
3420 done
3421 done
3422 IFS=$as_save_IFS
3423
3424 if test $ac_prog_rejected = yes; then
3425 # We found a bogon in the path, so make sure we never use it.
3426 set dummy $ac_cv_prog_CC
3427 shift
3428 if test $# != 0; then
3429 # We chose a different compiler from the bogus one.
3430 # However, it has the same basename, so the bogon will be chosen
3431 # first if we set CC to just the basename; use the full file name.
3432 shift
3433 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3434 fi
3435 fi
3436 fi
3437 fi
3438 CC=$ac_cv_prog_CC
3439 if test -n "$CC"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3441 $as_echo "$CC" >&6; }
3442 else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 fi
3446
3447
3448 fi
3449 if test -z "$CC"; then
3450 if test -n "$ac_tool_prefix"; then
3451 for ac_prog in cl.exe
3452 do
3453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474 done
3475 done
3476 IFS=$as_save_IFS
3477
3478 fi
3479 fi
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489
3490 test -n "$CC" && break
3491 done
3492 fi
3493 if test -z "$CC"; then
3494 ac_ct_CC=$CC
3495 for ac_prog in cl.exe
3496 do
3497 # Extract the first word of "$ac_prog", so it can be a program name with args.
3498 set dummy $ac_prog; ac_word=$2
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 $as_echo_n "checking for $ac_word... " >&6; }
3501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3502 $as_echo_n "(cached) " >&6
3503 else
3504 if test -n "$ac_ct_CC"; then
3505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3506 else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3509 do
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 ac_cv_prog_ac_ct_CC="$ac_prog"
3515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 break 2
3517 fi
3518 done
3519 done
3520 IFS=$as_save_IFS
3521
3522 fi
3523 fi
3524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3525 if test -n "$ac_ct_CC"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3527 $as_echo "$ac_ct_CC" >&6; }
3528 else
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3531 fi
3532
3533
3534 test -n "$ac_ct_CC" && break
3535 done
3536
3537 if test "x$ac_ct_CC" = x; then
3538 CC=""
3539 else
3540 case $cross_compiling:$ac_tool_warned in
3541 yes:)
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3544 ac_tool_warned=yes ;;
3545 esac
3546 CC=$ac_ct_CC
3547 fi
3548 fi
3549
3550 fi
3551
3552
3553 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3555 as_fn_error $? "no acceptable C compiler found in \$PATH
3556 See \`config.log' for more details" "$LINENO" 5 ; }
3557
3558 # Provide some information about the compiler.
3559 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3560 set X $ac_compile
3561 ac_compiler=$2
3562 for ac_option in --version -v -V -qversion; do
3563 { { ac_try="$ac_compiler $ac_option >&5"
3564 case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567 esac
3568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3569 $as_echo "$ac_try_echo"; } >&5
3570 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3571 ac_status=$?
3572 if test -s conftest.err; then
3573 sed '10a\
3574 ... rest of stderr output deleted ...
3575 10q' conftest.err >conftest.er1
3576 cat conftest.er1 >&5
3577 fi
3578 rm -f conftest.er1 conftest.err
3579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3580 test $ac_status = 0; }
3581 done
3582
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3584 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3585 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590
3591 int
3592 main ()
3593 {
3594 #ifndef __GNUC__
3595 choke me
3596 #endif
3597
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_compiler_gnu=yes
3604 else
3605 ac_compiler_gnu=no
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3609
3610 fi
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3612 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3613 if test $ac_compiler_gnu = yes; then
3614 GCC=yes
3615 else
3616 GCC=
3617 fi
3618 ac_test_CFLAGS=${CFLAGS+set}
3619 ac_save_CFLAGS=$CFLAGS
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3621 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3622 if test "${ac_cv_prog_cc_g+set}" = set; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 ac_save_c_werror_flag=$ac_c_werror_flag
3626 ac_c_werror_flag=yes
3627 ac_cv_prog_cc_g=no
3628 CFLAGS="-g"
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3631
3632 int
3633 main ()
3634 {
3635
3636 ;
3637 return 0;
3638 }
3639 _ACEOF
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641 ac_cv_prog_cc_g=yes
3642 else
3643 CFLAGS=""
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646
3647 int
3648 main ()
3649 {
3650
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656
3657 else
3658 ac_c_werror_flag=$ac_save_c_werror_flag
3659 CFLAGS="-g"
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662
3663 int
3664 main ()
3665 {
3666
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 if ac_fn_c_try_compile "$LINENO"; then :
3672 ac_cv_prog_cc_g=yes
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 fi
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 fi
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3682 $as_echo "$ac_cv_prog_cc_g" >&6; }
3683 if test "$ac_test_CFLAGS" = set; then
3684 CFLAGS=$ac_save_CFLAGS
3685 elif test $ac_cv_prog_cc_g = yes; then
3686 if test "$GCC" = yes; then
3687 CFLAGS="-g -O2"
3688 else
3689 CFLAGS="-g"
3690 fi
3691 else
3692 if test "$GCC" = yes; then
3693 CFLAGS="-O2"
3694 else
3695 CFLAGS=
3696 fi
3697 fi
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3699 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3700 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 ac_cv_prog_cc_c89=no
3704 ac_save_CC=$CC
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707 #include <stdarg.h>
3708 #include <stdio.h>
3709 #include <sys/types.h>
3710 #include <sys/stat.h>
3711 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3712 struct buf { int x; };
3713 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3714 static char *e (p, i)
3715 char **p;
3716 int i;
3717 {
3718 return p[i];
3719 }
3720 static char *f (char * (*g) (char **, int), char **p, ...)
3721 {
3722 char *s;
3723 va_list v;
3724 va_start (v,p);
3725 s = g (p, va_arg (v,int));
3726 va_end (v);
3727 return s;
3728 }
3729
3730 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3731 function prototypes and stuff, but not '\xHH' hex character constants.
3732 These don't provoke an error unfortunately, instead are silently treated
3733 as 'x'. The following induces an error, until -std is added to get
3734 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3735 array size at least. It's necessary to write '\x00'==0 to get something
3736 that's true only with -std. */
3737 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3738
3739 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3740 inside strings and character constants. */
3741 #define FOO(x) 'x'
3742 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3743
3744 int test (int i, double x);
3745 struct s1 {int (*f) (int a);};
3746 struct s2 {int (*f) (double a);};
3747 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3748 int argc;
3749 char **argv;
3750 int
3751 main ()
3752 {
3753 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3754 ;
3755 return 0;
3756 }
3757 _ACEOF
3758 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3759 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3760 do
3761 CC="$ac_save_CC $ac_arg"
3762 if ac_fn_c_try_compile "$LINENO"; then :
3763 ac_cv_prog_cc_c89=$ac_arg
3764 fi
3765 rm -f core conftest.err conftest.$ac_objext
3766 test "x$ac_cv_prog_cc_c89" != "xno" && break
3767 done
3768 rm -f conftest.$ac_ext
3769 CC=$ac_save_CC
3770
3771 fi
3772 # AC_CACHE_VAL
3773 case "x$ac_cv_prog_cc_c89" in
3774 x)
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3776 $as_echo "none needed" >&6; } ;;
3777 xno)
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3779 $as_echo "unsupported" >&6; } ;;
3780 *)
3781 CC="$CC $ac_cv_prog_cc_c89"
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3783 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3784 esac
3785 if test "x$ac_cv_prog_cc_c89" != xno; then :
3786
3787 fi
3788
3789 ac_ext=c
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3794
3795 depcc="$CC" am_compiler_list=
3796
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3798 $as_echo_n "checking dependency style of $depcc... " >&6; }
3799 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3803 # We make a subdir and do the tests there. Otherwise we can end up
3804 # making bogus files that we don't know about and never remove. For
3805 # instance it was reported that on HP-UX the gcc test will end up
3806 # making a dummy file named `D' -- because `-MD' means `put the output
3807 # in D'.
3808 mkdir conftest.dir
3809 # Copy depcomp to subdir because otherwise we won't find it if we're
3810 # using a relative directory.
3811 cp "$am_depcomp" conftest.dir
3812 cd conftest.dir
3813 # We will build objects and dependencies in a subdirectory because
3814 # it helps to detect inapplicable dependency modes. For instance
3815 # both Tru64's cc and ICC support -MD to output dependencies as a
3816 # side effect of compilation, but ICC will put the dependencies in
3817 # the current directory while Tru64 will put them in the object
3818 # directory.
3819 mkdir sub
3820
3821 am_cv_CC_dependencies_compiler_type=none
3822 if test "$am_compiler_list" = ""; then
3823 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3824 fi
3825 for depmode in $am_compiler_list; do
3826 # Setup a source with many dependencies, because some compilers
3827 # like to wrap large dependency lists on column 80 (with \), and
3828 # we should not choose a depcomp mode which is confused by this.
3829 #
3830 # We need to recreate these files for each test, as the compiler may
3831 # overwrite some of them when testing with obscure command lines.
3832 # This happens at least with the AIX C compiler.
3833 : > sub/conftest.c
3834 for i in 1 2 3 4 5 6; do
3835 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3836 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3837 # Solaris 8's {/usr,}/bin/sh.
3838 touch sub/conftst$i.h
3839 done
3840 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3841
3842 case $depmode in
3843 nosideeffect)
3844 # after this tag, mechanisms are not by side-effect, so they'll
3845 # only be used when explicitly requested
3846 if test "x$enable_dependency_tracking" = xyes; then
3847 continue
3848 else
3849 break
3850 fi
3851 ;;
3852 none) break ;;
3853 esac
3854 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3855 # mode. It turns out that the SunPro C++ compiler does not properly
3856 # handle `-M -o', and we need to detect this.
3857 if depmode=$depmode \
3858 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3860 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3861 >/dev/null 2>conftest.err &&
3862 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3864 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865 # icc doesn't choke on unknown options, it will just issue warnings
3866 # or remarks (even with -Werror). So we grep stderr for any message
3867 # that says an option was ignored or not supported.
3868 # When given -MP, icc 7.0 and 7.1 complain thusly:
3869 # icc: Command line warning: ignoring option '-M'; no argument required
3870 # The diagnosis changed in icc 8.0:
3871 # icc: Command line remark: option '-MP' not supported
3872 if (grep 'ignoring option' conftest.err ||
3873 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874 am_cv_CC_dependencies_compiler_type=$depmode
3875 break
3876 fi
3877 fi
3878 done
3879
3880 cd ..
3881 rm -rf conftest.dir
3882 else
3883 am_cv_CC_dependencies_compiler_type=none
3884 fi
3885
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3888 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3889 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3890
3891
3892
3893 if
3894 test "x$enable_dependency_tracking" != xno \
3895 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3896 am__fastdepCC_TRUE=
3897 am__fastdepCC_FALSE='#'
3898 else
3899 am__fastdepCC_TRUE='#'
3900 am__fastdepCC_FALSE=
3901 fi
3902
3903
3904
3905 if test -n "$ac_tool_prefix"; then
3906 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3907 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913 if test -n "$RANLIB"; then
3914 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3925 break 2
3926 fi
3927 done
3928 done
3929 IFS=$as_save_IFS
3930
3931 fi
3932 fi
3933 RANLIB=$ac_cv_prog_RANLIB
3934 if test -n "$RANLIB"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3936 $as_echo "$RANLIB" >&6; }
3937 else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940 fi
3941
3942
3943 fi
3944 if test -z "$ac_cv_prog_RANLIB"; then
3945 ac_ct_RANLIB=$RANLIB
3946 # Extract the first word of "ranlib", so it can be a program name with args.
3947 set dummy ranlib; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 if test -n "$ac_ct_RANLIB"; then
3954 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_ac_ct_RANLIB="ranlib"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3966 fi
3967 done
3968 done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3974 if test -n "$ac_ct_RANLIB"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3976 $as_echo "$ac_ct_RANLIB" >&6; }
3977 else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982 if test "x$ac_ct_RANLIB" = x; then
3983 RANLIB=":"
3984 else
3985 case $cross_compiling:$ac_tool_warned in
3986 yes:)
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989 ac_tool_warned=yes ;;
3990 esac
3991 RANLIB=$ac_ct_RANLIB
3992 fi
3993 else
3994 RANLIB="$ac_cv_prog_RANLIB"
3995 fi
3996
3997
3998 ###################################################
3999 # Check for libm
4000
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
4002 $as_echo_n "checking for sin in -lm... " >&6; }
4003 if test "${ac_cv_lib_m_sin+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 ac_check_lib_save_LIBS=$LIBS
4007 LIBS="-lm $LIBS"
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4010
4011 /* Override any GCC internal prototype to avoid an error.
4012 Use char because int might match the return type of a GCC
4013 builtin and then its argument prototype would still apply. */
4014 #ifdef __cplusplus
4015 extern "C"
4016 #endif
4017 char sin ();
4018 int
4019 main ()
4020 {
4021 return sin ();
4022 ;
4023 return 0;
4024 }
4025 _ACEOF
4026 if ac_fn_c_try_link "$LINENO"; then :
4027 ac_cv_lib_m_sin=yes
4028 else
4029 ac_cv_lib_m_sin=no
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext \
4032 conftest$ac_exeext conftest.$ac_ext
4033 LIBS=$ac_check_lib_save_LIBS
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
4036 $as_echo "$ac_cv_lib_m_sin" >&6; }
4037 if test "x$ac_cv_lib_m_sin" = x""yes; then :
4038 LIBS="$LIBS -lm"
4039 fi
4040
4041
4042 ###################################################
4043 # Test FriBidi
4044
4045
4046
4047
4048
4049
4050 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4051 if test -n "$ac_tool_prefix"; then
4052 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4053 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4055 $as_echo_n "checking for $ac_word... " >&6; }
4056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 case $PKG_CONFIG in
4060 [\\/]* | ?:[\\/]*)
4061 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4062 ;;
4063 *)
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 break 2
4074 fi
4075 done
4076 done
4077 IFS=$as_save_IFS
4078
4079 ;;
4080 esac
4081 fi
4082 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4083 if test -n "$PKG_CONFIG"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4085 $as_echo "$PKG_CONFIG" >&6; }
4086 else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4089 fi
4090
4091
4092 fi
4093 if test -z "$ac_cv_path_PKG_CONFIG"; then
4094 ac_pt_PKG_CONFIG=$PKG_CONFIG
4095 # Extract the first word of "pkg-config", so it can be a program name with args.
4096 set dummy pkg-config; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4100 $as_echo_n "(cached) " >&6
4101 else
4102 case $ac_pt_PKG_CONFIG in
4103 [\\/]* | ?:[\\/]*)
4104 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4105 ;;
4106 *)
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4117 fi
4118 done
4119 done
4120 IFS=$as_save_IFS
4121
4122 ;;
4123 esac
4124 fi
4125 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4126 if test -n "$ac_pt_PKG_CONFIG"; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4128 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4129 else
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 $as_echo "no" >&6; }
4132 fi
4133
4134 if test "x$ac_pt_PKG_CONFIG" = x; then
4135 PKG_CONFIG=""
4136 else
4137 case $cross_compiling:$ac_tool_warned in
4138 yes:)
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4140 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4141 ac_tool_warned=yes ;;
4142 esac
4143 PKG_CONFIG=$ac_pt_PKG_CONFIG
4144 fi
4145 else
4146 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4147 fi
4148
4149 fi
4150 if test -n "$PKG_CONFIG"; then
4151 _pkg_min_version=0.9.0
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4153 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4154 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4156 $as_echo "yes" >&6; }
4157 else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4160 PKG_CONFIG=""
4161 fi
4162 fi
4163
4164 pkg_failed=no
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FRIBIDI" >&5
4166 $as_echo_n "checking for FRIBIDI... " >&6; }
4167
4168 if test -n "$FRIBIDI_CFLAGS"; then
4169 pkg_cv_FRIBIDI_CFLAGS="$FRIBIDI_CFLAGS"
4170 elif test -n "$PKG_CONFIG"; then
4171 if test -n "$PKG_CONFIG" && \
4172 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi\""; } >&5
4173 ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
4174 ac_status=$?
4175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4176 test $ac_status = 0; }; then
4177 pkg_cv_FRIBIDI_CFLAGS=`$PKG_CONFIG --cflags "fribidi" 2>/dev/null`
4178 else
4179 pkg_failed=yes
4180 fi
4181 else
4182 pkg_failed=untried
4183 fi
4184 if test -n "$FRIBIDI_LIBS"; then
4185 pkg_cv_FRIBIDI_LIBS="$FRIBIDI_LIBS"
4186 elif test -n "$PKG_CONFIG"; then
4187 if test -n "$PKG_CONFIG" && \
4188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fribidi\""; } >&5
4189 ($PKG_CONFIG --exists --print-errors "fribidi") 2>&5
4190 ac_status=$?
4191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4192 test $ac_status = 0; }; then
4193 pkg_cv_FRIBIDI_LIBS=`$PKG_CONFIG --libs "fribidi" 2>/dev/null`
4194 else
4195 pkg_failed=yes
4196 fi
4197 else
4198 pkg_failed=untried
4199 fi
4200
4201
4202
4203 if test $pkg_failed = yes; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206
4207 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4208 _pkg_short_errors_supported=yes
4209 else
4210 _pkg_short_errors_supported=no
4211 fi
4212 if test $_pkg_short_errors_supported = yes; then
4213 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fribidi" 2>&1`
4214 else
4215 FRIBIDI_PKG_ERRORS=`$PKG_CONFIG --print-errors "fribidi" 2>&1`
4216 fi
4217 # Put the nasty error message in config.log where it belongs
4218 echo "$FRIBIDI_PKG_ERRORS" >&5
4219
4220 have_fribidi="no"
4221 elif test $pkg_failed = untried; then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4224 have_fribidi="no"
4225 else
4226 FRIBIDI_CFLAGS=$pkg_cv_FRIBIDI_CFLAGS
4227 FRIBIDI_LIBS=$pkg_cv_FRIBIDI_LIBS
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4229 $as_echo "yes" >&6; }
4230 have_fribidi="yes"
4231 fi
4232
4233
4234 if test "x$have_fribidi" = xyes; then
4235 $as_echo "#define HAVE_FRIBIDI 1" >>confdefs.h
4236
4237 fi
4238
4239 ###################################################
4240 # Check for lua and define LUA_CFLAGS and LUA_LIBS
4241
4242
4243 # Check whether --with-lua was given.
4244 if test "${with_lua+set}" = set; then :
4245 withval=$with_lua; LUAPFX="$withval"
4246 else
4247 LUAPFX=""
4248 fi
4249
4250 if test "x$LUAPFX" != x ; then
4251 LUA_CFLAGS="-I$LUAPFX"
4252 LUA_LIBS="-L$LUAPFX -llua -llualib"
4253 else
4254 for ac_prog in lua-config lua-config50 lua-config5.0
4255 do
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy $ac_prog; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if test "${ac_cv_prog_LUACONFIG+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if test -n "$LUACONFIG"; then
4264 ac_cv_prog_LUACONFIG="$LUACONFIG" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_prog_LUACONFIG="$ac_prog"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4276 fi
4277 done
4278 done
4279 IFS=$as_save_IFS
4280
4281 fi
4282 fi
4283 LUACONFIG=$ac_cv_prog_LUACONFIG
4284 if test -n "$LUACONFIG"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LUACONFIG" >&5
4286 $as_echo "$LUACONFIG" >&6; }
4287 else
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291
4292
4293 test -n "$LUACONFIG" && break
4294 done
4295 test -n "$LUACONFIG" || LUACONFIG=""""
4296
4297 if test "x$LUACONFIG" != x; then
4298 LUA_CFLAGS="`$LUACONFIG --include`"
4299 LUA_LIBS="`$LUACONFIG --static`"
4300 else
4301 pkg_failed=no
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
4303 $as_echo_n "checking for LUA... " >&6; }
4304
4305 if test -n "$LUA_CFLAGS"; then
4306 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
4307 elif test -n "$PKG_CONFIG"; then
4308 if test -n "$PKG_CONFIG" && \
4309 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
4310 ($PKG_CONFIG --exists --print-errors "lua") 2>&5
4311 ac_status=$?
4312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4313 test $ac_status = 0; }; then
4314 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua" 2>/dev/null`
4315 else
4316 pkg_failed=yes
4317 fi
4318 else
4319 pkg_failed=untried
4320 fi
4321 if test -n "$LUA_LIBS"; then
4322 pkg_cv_LUA_LIBS="$LUA_LIBS"
4323 elif test -n "$PKG_CONFIG"; then
4324 if test -n "$PKG_CONFIG" && \
4325 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5
4326 ($PKG_CONFIG --exists --print-errors "lua") 2>&5
4327 ac_status=$?
4328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; }; then
4330 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua" 2>/dev/null`
4331 else
4332 pkg_failed=yes
4333 fi
4334 else
4335 pkg_failed=untried
4336 fi
4337
4338
4339
4340 if test $pkg_failed = yes; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 $as_echo "no" >&6; }
4343
4344 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4345 _pkg_short_errors_supported=yes
4346 else
4347 _pkg_short_errors_supported=no
4348 fi
4349 if test $_pkg_short_errors_supported = yes; then
4350 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua" 2>&1`
4351 else
4352 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua" 2>&1`
4353 fi
4354 # Put the nasty error message in config.log where it belongs
4355 echo "$LUA_PKG_ERRORS" >&5
4356
4357
4358 LUA_CFLAGS=""
4359 LUA_LIBS=""
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_setfenv in -llua" >&5
4361 $as_echo_n "checking for lua_setfenv in -llua... " >&6; }
4362 if test "${ac_cv_lib_lua_lua_setfenv+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 ac_check_lib_save_LIBS=$LIBS
4366 LIBS="-llua $LUA_LIBS $LIBS"
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369
4370 /* Override any GCC internal prototype to avoid an error.
4371 Use char because int might match the return type of a GCC
4372 builtin and then its argument prototype would still apply. */
4373 #ifdef __cplusplus
4374 extern "C"
4375 #endif
4376 char lua_setfenv ();
4377 int
4378 main ()
4379 {
4380 return lua_setfenv ();
4381 ;
4382 return 0;
4383 }
4384 _ACEOF
4385 if ac_fn_c_try_link "$LINENO"; then :
4386 ac_cv_lib_lua_lua_setfenv=yes
4387 else
4388 ac_cv_lib_lua_lua_setfenv=no
4389 fi
4390 rm -f core conftest.err conftest.$ac_objext \
4391 conftest$ac_exeext conftest.$ac_ext
4392 LIBS=$ac_check_lib_save_LIBS
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_lua_setfenv" >&5
4395 $as_echo "$ac_cv_lib_lua_lua_setfenv" >&6; }
4396 if test "x$ac_cv_lib_lua_lua_setfenv" = x""yes; then :
4397 LUA_LIBS="$LUA_LIBS -llua"
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_setfenv in -llua50" >&5
4400 $as_echo_n "checking for lua_setfenv in -llua50... " >&6; }
4401 if test "${ac_cv_lib_lua50_lua_setfenv+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 ac_check_lib_save_LIBS=$LIBS
4405 LIBS="-llua50 $LUA_LIBS $LIBS"
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408
4409 /* Override any GCC internal prototype to avoid an error.
4410 Use char because int might match the return type of a GCC
4411 builtin and then its argument prototype would still apply. */
4412 #ifdef __cplusplus
4413 extern "C"
4414 #endif
4415 char lua_setfenv ();
4416 int
4417 main ()
4418 {
4419 return lua_setfenv ();
4420 ;
4421 return 0;
4422 }
4423 _ACEOF
4424 if ac_fn_c_try_link "$LINENO"; then :
4425 ac_cv_lib_lua50_lua_setfenv=yes
4426 else
4427 ac_cv_lib_lua50_lua_setfenv=no
4428 fi
4429 rm -f core conftest.err conftest.$ac_objext \
4430 conftest$ac_exeext conftest.$ac_ext
4431 LIBS=$ac_check_lib_save_LIBS
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua50_lua_setfenv" >&5
4434 $as_echo "$ac_cv_lib_lua50_lua_setfenv" >&6; }
4435 if test "x$ac_cv_lib_lua50_lua_setfenv" = x""yes; then :
4436 LUA_LIBS="$LUA_LIBS -llua50"
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_setfenv in -llua5.0" >&5
4439 $as_echo_n "checking for lua_setfenv in -llua5.0... " >&6; }
4440 if test "${ac_cv_lib_lua5_0_lua_setfenv+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 ac_check_lib_save_LIBS=$LIBS
4444 LIBS="-llua5.0 $LUA_LIBS $LIBS"
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447
4448 /* Override any GCC internal prototype to avoid an error.
4449 Use char because int might match the return type of a GCC
4450 builtin and then its argument prototype would still apply. */
4451 #ifdef __cplusplus
4452 extern "C"
4453 #endif
4454 char lua_setfenv ();
4455 int
4456 main ()
4457 {
4458 return lua_setfenv ();
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 if ac_fn_c_try_link "$LINENO"; then :
4464 ac_cv_lib_lua5_0_lua_setfenv=yes
4465 else
4466 ac_cv_lib_lua5_0_lua_setfenv=no
4467 fi
4468 rm -f core conftest.err conftest.$ac_objext \
4469 conftest$ac_exeext conftest.$ac_ext
4470 LIBS=$ac_check_lib_save_LIBS
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_0_lua_setfenv" >&5
4473 $as_echo "$ac_cv_lib_lua5_0_lua_setfenv" >&6; }
4474 if test "x$ac_cv_lib_lua5_0_lua_setfenv" = x""yes; then :
4475 LUA_LIBS="$LUA_LIBS -llua5.0"
4476 else
4477 as_fn_error $? "*** Lua5 is required.
4478 Try --with-lua=PREFIX
4479 You can download lua from http://www.lua.org" "$LINENO" 5
4480 fi
4481
4482 fi
4483
4484 fi
4485
4486
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaopen_base in -llualib" >&5
4488 $as_echo_n "checking for luaopen_base in -llualib... " >&6; }
4489 if test "${ac_cv_lib_lualib_luaopen_base+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 ac_check_lib_save_LIBS=$LIBS
4493 LIBS="-llualib $LUA_LIBS $LIBS"
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496
4497 /* Override any GCC internal prototype to avoid an error.
4498 Use char because int might match the return type of a GCC
4499 builtin and then its argument prototype would still apply. */
4500 #ifdef __cplusplus
4501 extern "C"
4502 #endif
4503 char luaopen_base ();
4504 int
4505 main ()
4506 {
4507 return luaopen_base ();
4508 ;
4509 return 0;
4510 }
4511 _ACEOF
4512 if ac_fn_c_try_link "$LINENO"; then :
4513 ac_cv_lib_lualib_luaopen_base=yes
4514 else
4515 ac_cv_lib_lualib_luaopen_base=no
4516 fi
4517 rm -f core conftest.err conftest.$ac_objext \
4518 conftest$ac_exeext conftest.$ac_ext
4519 LIBS=$ac_check_lib_save_LIBS
4520 fi
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lualib_luaopen_base" >&5
4522 $as_echo "$ac_cv_lib_lualib_luaopen_base" >&6; }
4523 if test "x$ac_cv_lib_lualib_luaopen_base" = x""yes; then :
4524 LUA_LIBS="$LUA_LIBS -llualib"
4525 else
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaopen_base in -llualib50" >&5
4527 $as_echo_n "checking for luaopen_base in -llualib50... " >&6; }
4528 if test "${ac_cv_lib_lualib50_luaopen_base+set}" = set; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 ac_check_lib_save_LIBS=$LIBS
4532 LIBS="-llualib50 $LUA_LIBS $LIBS"
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535
4536 /* Override any GCC internal prototype to avoid an error.
4537 Use char because int might match the return type of a GCC
4538 builtin and then its argument prototype would still apply. */
4539 #ifdef __cplusplus
4540 extern "C"
4541 #endif
4542 char luaopen_base ();
4543 int
4544 main ()
4545 {
4546 return luaopen_base ();
4547 ;
4548 return 0;
4549 }
4550 _ACEOF
4551 if ac_fn_c_try_link "$LINENO"; then :
4552 ac_cv_lib_lualib50_luaopen_base=yes
4553 else
4554 ac_cv_lib_lualib50_luaopen_base=no
4555 fi
4556 rm -f core conftest.err conftest.$ac_objext \
4557 conftest$ac_exeext conftest.$ac_ext
4558 LIBS=$ac_check_lib_save_LIBS
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lualib50_luaopen_base" >&5
4561 $as_echo "$ac_cv_lib_lualib50_luaopen_base" >&6; }
4562 if test "x$ac_cv_lib_lualib50_luaopen_base" = x""yes; then :
4563 LUA_LIBS="$LUA_LIBS -llualib50"
4564 else
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaopen_base in -llualib5.0" >&5
4566 $as_echo_n "checking for luaopen_base in -llualib5.0... " >&6; }
4567 if test "${ac_cv_lib_lualib5_0_luaopen_base+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 ac_check_lib_save_LIBS=$LIBS
4571 LIBS="-llualib5.0 $LUA_LIBS $LIBS"
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574
4575 /* Override any GCC internal prototype to avoid an error.
4576 Use char because int might match the return type of a GCC
4577 builtin and then its argument prototype would still apply. */
4578 #ifdef __cplusplus
4579 extern "C"
4580 #endif
4581 char luaopen_base ();
4582 int
4583 main ()
4584 {
4585 return luaopen_base ();
4586 ;
4587 return 0;
4588 }
4589 _ACEOF
4590 if ac_fn_c_try_link "$LINENO"; then :
4591 ac_cv_lib_lualib5_0_luaopen_base=yes
4592 else
4593 ac_cv_lib_lualib5_0_luaopen_base=no
4594 fi
4595 rm -f core conftest.err conftest.$ac_objext \
4596 conftest$ac_exeext conftest.$ac_ext
4597 LIBS=$ac_check_lib_save_LIBS
4598 fi
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lualib5_0_luaopen_base" >&5
4600 $as_echo "$ac_cv_lib_lualib5_0_luaopen_base" >&6; }
4601 if test "x$ac_cv_lib_lualib5_0_luaopen_base" = x""yes; then :
4602 LUA_LIBS="$LUA_LIBS -llualib5.0"
4603 else
4604 as_fn_error $? "*** Lualib5 is required.
4605 You can download lua from http://www.lua.org" "$LINENO" 5
4606 fi
4607
4608 fi
4609
4610 fi
4611
4612
4613 elif test $pkg_failed = untried; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4616
4617 LUA_CFLAGS=""
4618 LUA_LIBS=""
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_setfenv in -llua" >&5
4620 $as_echo_n "checking for lua_setfenv in -llua... " >&6; }
4621 if test "${ac_cv_lib_lua_lua_setfenv+set}" = set; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 ac_check_lib_save_LIBS=$LIBS
4625 LIBS="-llua $LUA_LIBS $LIBS"
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4628
4629 /* Override any GCC internal prototype to avoid an error.
4630 Use char because int might match the return type of a GCC
4631 builtin and then its argument prototype would still apply. */
4632 #ifdef __cplusplus
4633 extern "C"
4634 #endif
4635 char lua_setfenv ();
4636 int
4637 main ()
4638 {
4639 return lua_setfenv ();
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 if ac_fn_c_try_link "$LINENO"; then :
4645 ac_cv_lib_lua_lua_setfenv=yes
4646 else
4647 ac_cv_lib_lua_lua_setfenv=no
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext \
4650 conftest$ac_exeext conftest.$ac_ext
4651 LIBS=$ac_check_lib_save_LIBS
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua_lua_setfenv" >&5
4654 $as_echo "$ac_cv_lib_lua_lua_setfenv" >&6; }
4655 if test "x$ac_cv_lib_lua_lua_setfenv" = x""yes; then :
4656 LUA_LIBS="$LUA_LIBS -llua"
4657 else
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_setfenv in -llua50" >&5
4659 $as_echo_n "checking for lua_setfenv in -llua50... " >&6; }
4660 if test "${ac_cv_lib_lua50_lua_setfenv+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 ac_check_lib_save_LIBS=$LIBS
4664 LIBS="-llua50 $LUA_LIBS $LIBS"
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h. */
4667
4668 /* Override any GCC internal prototype to avoid an error.
4669 Use char because int might match the return type of a GCC
4670 builtin and then its argument prototype would still apply. */
4671 #ifdef __cplusplus
4672 extern "C"
4673 #endif
4674 char lua_setfenv ();
4675 int
4676 main ()
4677 {
4678 return lua_setfenv ();
4679 ;
4680 return 0;
4681 }
4682 _ACEOF
4683 if ac_fn_c_try_link "$LINENO"; then :
4684 ac_cv_lib_lua50_lua_setfenv=yes
4685 else
4686 ac_cv_lib_lua50_lua_setfenv=no
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext \
4689 conftest$ac_exeext conftest.$ac_ext
4690 LIBS=$ac_check_lib_save_LIBS
4691 fi
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua50_lua_setfenv" >&5
4693 $as_echo "$ac_cv_lib_lua50_lua_setfenv" >&6; }
4694 if test "x$ac_cv_lib_lua50_lua_setfenv" = x""yes; then :
4695 LUA_LIBS="$LUA_LIBS -llua50"
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua_setfenv in -llua5.0" >&5
4698 $as_echo_n "checking for lua_setfenv in -llua5.0... " >&6; }
4699 if test "${ac_cv_lib_lua5_0_lua_setfenv+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 ac_check_lib_save_LIBS=$LIBS
4703 LIBS="-llua5.0 $LUA_LIBS $LIBS"
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4706
4707 /* Override any GCC internal prototype to avoid an error.
4708 Use char because int might match the return type of a GCC
4709 builtin and then its argument prototype would still apply. */
4710 #ifdef __cplusplus
4711 extern "C"
4712 #endif
4713 char lua_setfenv ();
4714 int
4715 main ()
4716 {
4717 return lua_setfenv ();
4718 ;
4719 return 0;
4720 }
4721 _ACEOF
4722 if ac_fn_c_try_link "$LINENO"; then :
4723 ac_cv_lib_lua5_0_lua_setfenv=yes
4724 else
4725 ac_cv_lib_lua5_0_lua_setfenv=no
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext \
4728 conftest$ac_exeext conftest.$ac_ext
4729 LIBS=$ac_check_lib_save_LIBS
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lua5_0_lua_setfenv" >&5
4732 $as_echo "$ac_cv_lib_lua5_0_lua_setfenv" >&6; }
4733 if test "x$ac_cv_lib_lua5_0_lua_setfenv" = x""yes; then :
4734 LUA_LIBS="$LUA_LIBS -llua5.0"
4735 else
4736 as_fn_error $? "*** Lua5 is required.
4737 Try --with-lua=PREFIX
4738 You can download lua from http://www.lua.org" "$LINENO" 5
4739 fi
4740
4741 fi
4742
4743 fi
4744
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaopen_base in -llualib" >&5
4747 $as_echo_n "checking for luaopen_base in -llualib... " >&6; }
4748 if test "${ac_cv_lib_lualib_luaopen_base+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 ac_check_lib_save_LIBS=$LIBS
4752 LIBS="-llualib $LUA_LIBS $LIBS"
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755
4756 /* Override any GCC internal prototype to avoid an error.
4757 Use char because int might match the return type of a GCC
4758 builtin and then its argument prototype would still apply. */
4759 #ifdef __cplusplus
4760 extern "C"
4761 #endif
4762 char luaopen_base ();
4763 int
4764 main ()
4765 {
4766 return luaopen_base ();
4767 ;
4768 return 0;
4769 }
4770 _ACEOF
4771 if ac_fn_c_try_link "$LINENO"; then :
4772 ac_cv_lib_lualib_luaopen_base=yes
4773 else
4774 ac_cv_lib_lualib_luaopen_base=no
4775 fi
4776 rm -f core conftest.err conftest.$ac_objext \
4777 conftest$ac_exeext conftest.$ac_ext
4778 LIBS=$ac_check_lib_save_LIBS
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lualib_luaopen_base" >&5
4781 $as_echo "$ac_cv_lib_lualib_luaopen_base" >&6; }
4782 if test "x$ac_cv_lib_lualib_luaopen_base" = x""yes; then :
4783 LUA_LIBS="$LUA_LIBS -llualib"
4784 else
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaopen_base in -llualib50" >&5
4786 $as_echo_n "checking for luaopen_base in -llualib50... " >&6; }
4787 if test "${ac_cv_lib_lualib50_luaopen_base+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 ac_check_lib_save_LIBS=$LIBS
4791 LIBS="-llualib50 $LUA_LIBS $LIBS"
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794
4795 /* Override any GCC internal prototype to avoid an error.
4796 Use char because int might match the return type of a GCC
4797 builtin and then its argument prototype would still apply. */
4798 #ifdef __cplusplus
4799 extern "C"
4800 #endif
4801 char luaopen_base ();
4802 int
4803 main ()
4804 {
4805 return luaopen_base ();
4806 ;
4807 return 0;
4808 }
4809 _ACEOF
4810 if ac_fn_c_try_link "$LINENO"; then :
4811 ac_cv_lib_lualib50_luaopen_base=yes
4812 else
4813 ac_cv_lib_lualib50_luaopen_base=no
4814 fi
4815 rm -f core conftest.err conftest.$ac_objext \
4816 conftest$ac_exeext conftest.$ac_ext
4817 LIBS=$ac_check_lib_save_LIBS
4818 fi
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lualib50_luaopen_base" >&5
4820 $as_echo "$ac_cv_lib_lualib50_luaopen_base" >&6; }
4821 if test "x$ac_cv_lib_lualib50_luaopen_base" = x""yes; then :
4822 LUA_LIBS="$LUA_LIBS -llualib50"
4823 else
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for luaopen_base in -llualib5.0" >&5
4825 $as_echo_n "checking for luaopen_base in -llualib5.0... " >&6; }
4826 if test "${ac_cv_lib_lualib5_0_luaopen_base+set}" = set; then :
4827 $as_echo_n "(cached) " >&6
4828 else
4829 ac_check_lib_save_LIBS=$LIBS
4830 LIBS="-llualib5.0 $LUA_LIBS $LIBS"
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833
4834 /* Override any GCC internal prototype to avoid an error.
4835 Use char because int might match the return type of a GCC
4836 builtin and then its argument prototype would still apply. */
4837 #ifdef __cplusplus
4838 extern "C"
4839 #endif
4840 char luaopen_base ();
4841 int
4842 main ()
4843 {
4844 return luaopen_base ();
4845 ;
4846 return 0;
4847 }
4848 _ACEOF
4849 if ac_fn_c_try_link "$LINENO"; then :
4850 ac_cv_lib_lualib5_0_luaopen_base=yes
4851 else
4852 ac_cv_lib_lualib5_0_luaopen_base=no
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext \
4855 conftest$ac_exeext conftest.$ac_ext
4856 LIBS=$ac_check_lib_save_LIBS
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lualib5_0_luaopen_base" >&5
4859 $as_echo "$ac_cv_lib_lualib5_0_luaopen_base" >&6; }
4860 if test "x$ac_cv_lib_lualib5_0_luaopen_base" = x""yes; then :
4861 LUA_LIBS="$LUA_LIBS -llualib5.0"
4862 else
4863 as_fn_error $? "*** Lualib5 is required.
4864 You can download lua from http://www.lua.org" "$LINENO" 5
4865 fi
4866
4867 fi
4868
4869 fi
4870
4871
4872 else
4873 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
4874 LUA_LIBS=$pkg_cv_LUA_LIBS
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4876 $as_echo "yes" >&6; }
4877
4878 fi
4879 fi
4880 fi
4881
4882
4883
4884
4885 ###################################################
4886 # Check for SDL, and define SDL_CFLAGS and SDL_LIBS
4887 SDL_VERSION=1.2.0
4888
4889 # Check whether --with-sdl-prefix was given.
4890 if test "${with_sdl_prefix+set}" = set; then :
4891 withval=$with_sdl_prefix; sdl_prefix="$withval"
4892 else
4893 sdl_prefix=""
4894 fi
4895
4896
4897 # Check whether --with-sdl-exec-prefix was given.
4898 if test "${with_sdl_exec_prefix+set}" = set; then :
4899 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
4900 else
4901 sdl_exec_prefix=""
4902 fi
4903
4904 # Check whether --enable-sdltest was given.
4905 if test "${enable_sdltest+set}" = set; then :
4906 enableval=$enable_sdltest;
4907 else
4908 enable_sdltest=yes
4909 fi
4910
4911
4912 if test x$sdl_exec_prefix != x ; then
4913 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
4914 if test x${SDL_CONFIG+set} != xset ; then
4915 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
4916 fi
4917 fi
4918 if test x$sdl_prefix != x ; then
4919 sdl_args="$sdl_args --prefix=$sdl_prefix"
4920 if test x${SDL_CONFIG+set} != xset ; then
4921 SDL_CONFIG=$sdl_prefix/bin/sdl-config
4922 fi
4923 fi
4924
4925
4926 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
4927 # Extract the first word of "sdl-config", so it can be a program name with args.
4928 set dummy sdl-config; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 case $SDL_CONFIG in
4935 [\\/]* | ?:[\\/]*)
4936 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4937 ;;
4938 *)
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4949 fi
4950 done
4951 done
4952 IFS=$as_save_IFS
4953
4954 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4955 ;;
4956 esac
4957 fi
4958 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
4959 if test -n "$SDL_CONFIG"; then
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
4961 $as_echo "$SDL_CONFIG" >&6; }
4962 else
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4965 fi
4966
4967
4968 min_sdl_version=$SDL_VERSION
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
4970 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
4971 no_sdl=""
4972 if test "$SDL_CONFIG" = "no" ; then
4973 no_sdl=yes
4974 else
4975 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
4976 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
4977
4978 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
4979 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4980 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
4981 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4982 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
4983 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4984 if test "x$enable_sdltest" = "xyes" ; then
4985 ac_save_CFLAGS="$CFLAGS"
4986 ac_save_LIBS="$LIBS"
4987 CFLAGS="$CFLAGS $SDL_CFLAGS"
4988 LIBS="$LIBS $SDL_LIBS"
4989 rm -f conf.sdltest
4990 if test "$cross_compiling" = yes; then :
4991 echo $ac_n "cross compiling; assumed OK... $ac_c"
4992 else
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4995
4996 #include <stdio.h>
4997 #include <stdlib.h>
4998 #include <string.h>
4999 #include "SDL.h"
5000
5001 char*
5002 my_strdup (char *str)
5003 {
5004 char *new_str;
5005
5006 if (str)
5007 {
5008 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
5009 strcpy (new_str, str);
5010 }
5011 else
5012 new_str = NULL;
5013
5014 return new_str;
5015 }
5016
5017 int main (int argc, char *argv[])
5018 {
5019 int major, minor, micro;
5020 char *tmp_version;
5021
5022 /* This hangs on some systems (?)
5023 system ("touch conf.sdltest");
5024 */
5025 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
5026
5027 /* HP/UX 9 (%@#!) writes to sscanf strings */
5028 tmp_version = my_strdup("$min_sdl_version");
5029 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
5030 printf("%s, bad version string\n", "$min_sdl_version");
5031 exit(1);
5032 }
5033
5034 if (($sdl_major_version > major) ||
5035 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
5036 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
5037 {
5038 return 0;
5039 }
5040 else
5041 {
5042 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
5043 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
5044 printf("*** best to upgrade to the required version.\n");
5045 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
5046 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
5047 printf("*** config.cache before re-running configure\n");
5048 return 1;
5049 }
5050 }
5051
5052
5053 _ACEOF
5054 if ac_fn_c_try_run "$LINENO"; then :
5055
5056 else
5057 no_sdl=yes
5058 fi
5059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5060 conftest.$ac_objext conftest.beam conftest.$ac_ext
5061 fi
5062
5063 CFLAGS="$ac_save_CFLAGS"
5064 LIBS="$ac_save_LIBS"
5065 fi
5066 fi
5067 if test "x$no_sdl" = x ; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5069 $as_echo "yes" >&6; }
5070 :
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 if test "$SDL_CONFIG" = "no" ; then
5075 echo "*** The sdl-config script installed by SDL could not be found"
5076 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
5077 echo "*** your path, or set the SDL_CONFIG environment variable to the"
5078 echo "*** full path to sdl-config."
5079 else
5080 if test -f conf.sdltest ; then
5081 :
5082 else
5083 echo "*** Could not run SDL test program, checking why..."
5084 CFLAGS="$CFLAGS $SDL_CFLAGS"
5085 LIBS="$LIBS $SDL_LIBS"
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088
5089 #include <stdio.h>
5090 #include "SDL.h"
5091
5092 int main(int argc, char *argv[])
5093 { return 0; }
5094 #undef main
5095 #define main K_and_R_C_main
5096
5097 int
5098 main ()
5099 {
5100 return 0;
5101 ;
5102 return 0;
5103 }
5104 _ACEOF
5105 if ac_fn_c_try_link "$LINENO"; then :
5106 echo "*** The test program compiled, but did not run. This usually means"
5107 echo "*** that the run-time linker is not finding SDL or finding the wrong"
5108 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
5109 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5110 echo "*** to the installed location Also, make sure you have run ldconfig if that"
5111 echo "*** is required on your system"
5112 echo "***"
5113 echo "*** If you have an old version installed, it is best to remove it, although"
5114 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5115 else
5116 echo "*** The test program failed to compile or link. See the file config.log for the"
5117 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
5118 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
5119 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
5120 fi
5121 rm -f core conftest.err conftest.$ac_objext \
5122 conftest$ac_exeext conftest.$ac_ext
5123 CFLAGS="$ac_save_CFLAGS"
5124 LIBS="$ac_save_LIBS"
5125 fi
5126 fi
5127 SDL_CFLAGS=""
5128 SDL_LIBS=""
5129 as_fn_error $? "*** library SDL-devel version $SDL_VERSION not found!" "$LINENO" 5
5130
5131 fi
5132
5133
5134 rm -f conf.sdltest
5135
5136
5137 ###################################################
5138 # Checks for C libraries.
5139 # SDL_mixer
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL_mixer" >&5
5141 $as_echo_n "checking for Mix_OpenAudio in -lSDL_mixer... " >&6; }
5142 if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 ac_check_lib_save_LIBS=$LIBS
5146 LIBS="-lSDL_mixer $SDL_CFLAGS $SDL_LIBS
5147 $LIBS"
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150
5151 /* Override any GCC internal prototype to avoid an error.
5152 Use char because int might match the return type of a GCC
5153 builtin and then its argument prototype would still apply. */
5154 #ifdef __cplusplus
5155 extern "C"
5156 #endif
5157 char Mix_OpenAudio ();
5158 int
5159 main ()
5160 {
5161 return Mix_OpenAudio ();
5162 ;
5163 return 0;
5164 }
5165 _ACEOF
5166 if ac_fn_c_try_link "$LINENO"; then :
5167 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
5168 else
5169 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext \
5172 conftest$ac_exeext conftest.$ac_ext
5173 LIBS=$ac_check_lib_save_LIBS
5174 fi
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
5176 $as_echo "$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
5177 if test "x$ac_cv_lib_SDL_mixer_Mix_OpenAudio" = x""yes; then :
5178 SDL_LIBS="-lSDL_mixer $SDL_LIBS"
5179 else
5180 as_fn_error $? "*** SDL_mixer-devel library not found!" "$LINENO" 5
5181 fi
5182
5183 # SDL_image
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
5185 $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
5186 if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 ac_check_lib_save_LIBS=$LIBS
5190 LIBS="-lSDL_image $SDL_CFLAGS $SDL_LIBS
5191 $LIBS"
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5194
5195 /* Override any GCC internal prototype to avoid an error.
5196 Use char because int might match the return type of a GCC
5197 builtin and then its argument prototype would still apply. */
5198 #ifdef __cplusplus
5199 extern "C"
5200 #endif
5201 char IMG_Load ();
5202 int
5203 main ()
5204 {
5205 return IMG_Load ();
5206 ;
5207 return 0;
5208 }
5209 _ACEOF
5210 if ac_fn_c_try_link "$LINENO"; then :
5211 ac_cv_lib_SDL_image_IMG_Load=yes
5212 else
5213 ac_cv_lib_SDL_image_IMG_Load=no
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext \
5216 conftest$ac_exeext conftest.$ac_ext
5217 LIBS=$ac_check_lib_save_LIBS
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
5220 $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
5221 if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
5222 SDL_LIBS="-lSDL_image $SDL_LIBS"
5223 else
5224 as_fn_error $? "*** SDL_image-devel library not found!" "$LINENO" 5
5225 fi
5226
5227 # SDL_ttf
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTF_OpenFont in -lSDL_ttf" >&5
5229 $as_echo_n "checking for TTF_OpenFont in -lSDL_ttf... " >&6; }
5230 if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 ac_check_lib_save_LIBS=$LIBS
5234 LIBS="-lSDL_ttf $SDL_CFLAGS $SDL_LIBS
5235 $LIBS"
5236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5238
5239 /* Override any GCC internal prototype to avoid an error.
5240 Use char because int might match the return type of a GCC
5241 builtin and then its argument prototype would still apply. */
5242 #ifdef __cplusplus
5243 extern "C"
5244 #endif
5245 char TTF_OpenFont ();
5246 int
5247 main ()
5248 {
5249 return TTF_OpenFont ();
5250 ;
5251 return 0;
5252 }
5253 _ACEOF
5254 if ac_fn_c_try_link "$LINENO"; then :
5255 ac_cv_lib_SDL_ttf_TTF_OpenFont=yes
5256 else
5257 ac_cv_lib_SDL_ttf_TTF_OpenFont=no
5258 fi
5259 rm -f core conftest.err conftest.$ac_objext \
5260 conftest$ac_exeext conftest.$ac_ext
5261 LIBS=$ac_check_lib_save_LIBS
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5
5264 $as_echo "$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6; }
5265 if test "x$ac_cv_lib_SDL_ttf_TTF_OpenFont" = x""yes; then :
5266 SDL_LIBS="-lSDL_ttf $SDL_LIBS"
5267 else
5268 as_fn_error $? "*** SDL_ttf-devel library not found!" "$LINENO" 5
5269 fi
5270
5271
5272 ###################################################
5273 # Test X11
5274 X_LIBS=""
5275 have_x11="no"
5276
5277 # Check whether --with-X was given.
5278 if test "${with_X+set}" = set; then :
5279 withval=$with_X; with_x11=$withval
5280 else
5281 with_x11="maybe"
5282 fi
5283
5284 if test "x$with_x11" != "xno" ; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xutf8TextListToTextProperty in -lX11" >&5
5286 $as_echo_n "checking for Xutf8TextListToTextProperty in -lX11... " >&6; }
5287 if test "${ac_cv_lib_X11_Xutf8TextListToTextProperty+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5289 else
5290 ac_check_lib_save_LIBS=$LIBS
5291 LIBS="-lX11 $LIBS"
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294
5295 /* Override any GCC internal prototype to avoid an error.
5296 Use char because int might match the return type of a GCC
5297 builtin and then its argument prototype would still apply. */
5298 #ifdef __cplusplus
5299 extern "C"
5300 #endif
5301 char Xutf8TextListToTextProperty ();
5302 int
5303 main ()
5304 {
5305 return Xutf8TextListToTextProperty ();
5306 ;
5307 return 0;
5308 }
5309 _ACEOF
5310 if ac_fn_c_try_link "$LINENO"; then :
5311 ac_cv_lib_X11_Xutf8TextListToTextProperty=yes
5312 else
5313 ac_cv_lib_X11_Xutf8TextListToTextProperty=no
5314 fi
5315 rm -f core conftest.err conftest.$ac_objext \
5316 conftest$ac_exeext conftest.$ac_ext
5317 LIBS=$ac_check_lib_save_LIBS
5318 fi
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_Xutf8TextListToTextProperty" >&5
5320 $as_echo "$ac_cv_lib_X11_Xutf8TextListToTextProperty" >&6; }
5321 if test "x$ac_cv_lib_X11_Xutf8TextListToTextProperty" = x""yes; then :
5322 with_x11="yes"
5323 else
5324 with_x11="no"
5325 fi
5326
5327 if test "x$with_x11" != "xno" ; then
5328 OLD_CPPFLAGS="$CPPFLAGS"
5329 CPPFLAGS="$CPPFLAGS $SDL_CFLAGS"
5330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332
5333 #include "SDL.h"
5334 #include "SDL_syswm.h"
5335 #include <X11/Xutil.h>
5336
5337 int
5338 main ()
5339 {
5340
5341 SDL_SysWMinfo info;
5342 info.subsystem = SDL_SYSWM_X11;
5343
5344 ;
5345 return 0;
5346 }
5347 _ACEOF
5348 if ac_fn_c_try_compile "$LINENO"; then :
5349 have_x11="yes"
5350 else
5351 have_x11="no"
5352 fi
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354 CPPFLAGS="$OLD_CPPFLAGS"
5355 if test "x$have_x11" = xyes; then
5356 $as_echo "#define HAVE_X11 1" >>confdefs.h
5357
5358 X_LIBS="-lX11"
5359 fi
5360 fi
5361 fi
5362
5363
5364 ###################################################
5365 # enable C++ language
5366 ac_ext=cpp
5367 ac_cpp='$CXXCPP $CPPFLAGS'
5368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5371
5372
5373 ###################################################
5374 # Checks for C++ libraries.
5375 # boost_filesystem, only need for nonPOSIX systems
5376
5377
5378 # Check whether --with-boost was given.
5379 if test "${with_boost+set}" = set; then :
5380 withval=$with_boost; BOOSTPFX="$withval"
5381 else
5382 BOOSTPFX=""
5383 fi
5384
5385 if test "x$BOOSTPFX" != x ; then
5386 BOOST_LIBS="-lboost_filesystem"
5387 if test "x$BOOSTPFX" != xyes ; then
5388 BOOST_CFLAGS="-I$BOOSTPFX"
5389 BOOST_LIBS="-L$BOOSTPFX $BOOST_LIBS"
5390 fi
5391 fi
5392
5393
5394 if test "x$BOOSTPFX" != x; then
5395 WITH_BOOST_TRUE=
5396 WITH_BOOST_FALSE='#'
5397 else
5398 WITH_BOOST_TRUE='#'
5399 WITH_BOOST_FALSE=
5400 fi
5401
5402
5403
5404
5405 ###################################################
5406 # Check for SMPEG
5407
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMPEG_new in -lsmpeg" >&5
5409 $as_echo_n "checking for SMPEG_new in -lsmpeg... " >&6; }
5410 if test "${ac_cv_lib_smpeg_SMPEG_new+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 ac_check_lib_save_LIBS=$LIBS
5414 LIBS="-lsmpeg $SDL_LIBS $LIBS"
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417
5418 /* Override any GCC internal prototype to avoid an error.
5419 Use char because int might match the return type of a GCC
5420 builtin and then its argument prototype would still apply. */
5421 #ifdef __cplusplus
5422 extern "C"
5423 #endif
5424 char SMPEG_new ();
5425 int
5426 main ()
5427 {
5428 return SMPEG_new ();
5429 ;
5430 return 0;
5431 }
5432 _ACEOF
5433 if ac_fn_cxx_try_link "$LINENO"; then :
5434 ac_cv_lib_smpeg_SMPEG_new=yes
5435 else
5436 ac_cv_lib_smpeg_SMPEG_new=no
5437 fi
5438 rm -f core conftest.err conftest.$ac_objext \
5439 conftest$ac_exeext conftest.$ac_ext
5440 LIBS=$ac_check_lib_save_LIBS
5441 fi
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_smpeg_SMPEG_new" >&5
5443 $as_echo "$ac_cv_lib_smpeg_SMPEG_new" >&6; }
5444 if test "x$ac_cv_lib_smpeg_SMPEG_new" = x""yes; then :
5445 have_smpeg="yes"
5446 else
5447 have_smpeg="no"
5448 fi
5449
5450 if test "x$have_smpeg" = xyes; then
5451 SDL_LIBS="-lsmpeg $SDL_LIBS"
5452 $as_echo "#define HAVE_SMPEG 1" >>confdefs.h
5453
5454 fi
5455
5456 ###################################################
5457 # Check for windres for win32 icon.
5458 case "$target" in
5459 *-mingw32*)
5460 for ac_prog in i386-mingw32msvc-windres i586-mingw32msvc-windres
5461 do
5462 # Extract the first word of "$ac_prog", so it can be a program name with args.
5463 set dummy $ac_prog; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if test "${ac_cv_prog_WINDRES+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 if test -n "$WINDRES"; then
5470 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479 ac_cv_prog_WINDRES="$ac_prog"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483 done
5484 done
5485 IFS=$as_save_IFS
5486
5487 fi
5488 fi
5489 WINDRES=$ac_cv_prog_WINDRES
5490 if test -n "$WINDRES"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
5492 $as_echo "$WINDRES" >&6; }
5493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5496 fi
5497
5498
5499 test -n "$WINDRES" && break
5500 done
5501 test -n "$WINDRES" || WINDRES=""""
5502
5503
5504
5505 if test "x$WINDRES" != x; then
5506 HAVE_WINDRES_TRUE=
5507 HAVE_WINDRES_FALSE='#'
5508 else
5509 HAVE_WINDRES_TRUE='#'
5510 HAVE_WINDRES_FALSE=
5511 fi
5512
5513
5514 have_windres="yes"
5515 ;;
5516 *)
5517 WINDRES=""
5518
5519
5520 if false; then
5521 HAVE_WINDRES_TRUE=
5522 HAVE_WINDRES_FALSE='#'
5523 else
5524 HAVE_WINDRES_TRUE='#'
5525 HAVE_WINDRES_FALSE=
5526 fi
5527
5528 have_windres="no"
5529 ;;
5530 esac
5531
5532 ###################################################
5533 # Mung up datadir if need be
5534 if test "${datadir}" = '${datarootdir}' ; then
5535 datadir='${datarootdir}/games/${PACKAGE}'
5536 fi
5537
5538 ###################################################
5539 # Debug on/off
5540 # Check whether --enable-debug was given.
5541 if test "${enable_debug+set}" = set; then :
5542 enableval=$enable_debug; case "${enableval}" in
5543 yes) debug=true ;;
5544 no) debug=false ;;
5545 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
5546 esac
5547 else
5548 debug=false
5549
5550 fi
5551
5552 CXXFLAGS="$CXXFLAGS -Wall -W -Wpointer-arith -Wcast-qual \
5553 -Wcast-align -Woverloaded-virtual \
5554 -Wconversion -Wshadow"
5555 if test "x$debug" = "xtrue"; then
5556 CXXFLAGS="$CXXFLAGS -pedantic -ansi -pipe -g3 -O0"
5557 fi
5558
5559 ###################################################
5560 ac_config_files="$ac_config_files Makefile src/Makefile src/SDL_gfx/Makefile src/gengine/Makefile src/effect/Makefile src/widget/Makefile src/plan/Makefile src/option/Makefile src/state/Makefile src/level/Makefile src/menu/Makefile src/game/Makefile"
5561
5562 cat >confcache <<\_ACEOF
5563 # This file is a shell script that caches the results of configure
5564 # tests run on this system so they can be shared between configure
5565 # scripts and configure runs, see configure's option --config-cache.
5566 # It is not useful on other systems. If it contains results you don't
5567 # want to keep, you may remove or edit it.
5568 #
5569 # config.status only pays attention to the cache file if you give it
5570 # the --recheck option to rerun configure.
5571 #
5572 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5573 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5574 # following values.
5575
5576 _ACEOF
5577
5578 # The following way of writing the cache mishandles newlines in values,
5579 # but we know of no workaround that is simple, portable, and efficient.
5580 # So, we kill variables containing newlines.
5581 # Ultrix sh set writes to stderr and can't be redirected directly,
5582 # and sets the high bit in the cache file unless we assign to the vars.
5583 (
5584 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5585 eval ac_val=\$$ac_var
5586 case $ac_val in #(
5587 *${as_nl}*)
5588 case $ac_var in #(
5589 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5590 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5591 esac
5592 case $ac_var in #(
5593 _ | IFS | as_nl) ;; #(
5594 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5595 *) { eval $ac_var=; unset $ac_var;} ;;
5596 esac ;;
5597 esac
5598 done
5599
5600 (set) 2>&1 |
5601 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5602 *${as_nl}ac_space=\ *)
5603 # `set' does not quote correctly, so add quotes: double-quote
5604 # substitution turns \\\\ into \\, and sed turns \\ into \.
5605 sed -n \
5606 "s/'/'\\\\''/g;
5607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5608 ;; #(
5609 *)
5610 # `set' quotes correctly as required by POSIX, so do not add quotes.
5611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5612 ;;
5613 esac |
5614 sort
5615 ) |
5616 sed '
5617 /^ac_cv_env_/b end
5618 t clear
5619 :clear
5620 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5621 t end
5622 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5623 :end' >>confcache
5624 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5625 if test -w "$cache_file"; then
5626 test "x$cache_file" != "x/dev/null" &&
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5628 $as_echo "$as_me: updating cache $cache_file" >&6;}
5629 cat confcache >$cache_file
5630 else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5632 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5633 fi
5634 fi
5635 rm -f confcache
5636
5637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5638 # Let make expand exec_prefix.
5639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5640
5641 # Transform confdefs.h into DEFS.
5642 # Protect against shell expansion while executing Makefile rules.
5643 # Protect against Makefile macro expansion.
5644 #
5645 # If the first sed substitution is executed (which looks for macros that
5646 # take arguments), then branch to the quote section. Otherwise,
5647 # look for a macro that doesn't take arguments.
5648 ac_script='
5649 :mline
5650 /\\$/{
5651 N
5652 s,\\\n,,
5653 b mline
5654 }
5655 t clear
5656 :clear
5657 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5658 t quote
5659 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5660 t quote
5661 b any
5662 :quote
5663 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5664 s/\[/\\&/g
5665 s/\]/\\&/g
5666 s/\$/$$/g
5667 H
5668 :any
5669 ${
5670 g
5671 s/^\n//
5672 s/\n/ /g
5673 p
5674 }
5675 '
5676 DEFS=`sed -n "$ac_script" confdefs.h`
5677
5678
5679 ac_libobjs=
5680 ac_ltlibobjs=
5681 U=
5682 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5683 # 1. Remove the extension, and $U if already installed.
5684 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5685 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5686 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5687 # will be set to the directory where LIBOBJS objects are built.
5688 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5689 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5690 done
5691 LIBOBJS=$ac_libobjs
5692
5693 LTLIBOBJS=$ac_ltlibobjs
5694
5695
5696 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5697 as_fn_error $? "conditional \"AMDEP\" was never defined.
5698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5699 fi
5700 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5701 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5703 fi
5704 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5705 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5707 fi
5708 if test -z "${WITH_BOOST_TRUE}" && test -z "${WITH_BOOST_FALSE}"; then
5709 as_fn_error $? "conditional \"WITH_BOOST\" was never defined.
5710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5711 fi
5712 if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
5713 as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
5714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5715 fi
5716 if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
5717 as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
5718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5719 fi
5720
5721 : ${CONFIG_STATUS=./config.status}
5722 ac_write_fail=0
5723 ac_clean_files_save=$ac_clean_files
5724 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5726 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5727 as_write_fail=0
5728 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5729 #! $SHELL
5730 # Generated by $as_me.
5731 # Run this file to recreate the current configuration.
5732 # Compiler output produced by configure, useful for debugging
5733 # configure, is in config.log if it exists.
5734
5735 debug=false
5736 ac_cs_recheck=false
5737 ac_cs_silent=false
5738
5739 SHELL=\${CONFIG_SHELL-$SHELL}
5740 export SHELL
5741 _ASEOF
5742 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5743 ## -------------------- ##
5744 ## M4sh Initialization. ##
5745 ## -------------------- ##
5746
5747 # Be more Bourne compatible
5748 DUALCASE=1; export DUALCASE # for MKS sh
5749 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5750 emulate sh
5751 NULLCMD=:
5752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5753 # is contrary to our usage. Disable this feature.
5754 alias -g '${1+"$@"}'='"$@"'
5755 setopt NO_GLOB_SUBST
5756 else
5757 case `(set -o) 2>/dev/null` in #(
5758 *posix*) :
5759 set -o posix ;; #(
5760 *) :
5761 ;;
5762 esac
5763 fi
5764
5765
5766 as_nl='
5767 '
5768 export as_nl
5769 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5770 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5773 # Prefer a ksh shell builtin over an external printf program on Solaris,
5774 # but without wasting forks for bash or zsh.
5775 if test -z "$BASH_VERSION$ZSH_VERSION" \
5776 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5777 as_echo='print -r --'
5778 as_echo_n='print -rn --'
5779 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5780 as_echo='printf %s\n'
5781 as_echo_n='printf %s'
5782 else
5783 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5784 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5785 as_echo_n='/usr/ucb/echo -n'
5786 else
5787 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5788 as_echo_n_body='eval
5789 arg=$1;
5790 case $arg in #(
5791 *"$as_nl"*)
5792 expr "X$arg" : "X\\(.*\\)$as_nl";
5793 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5794 esac;
5795 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5796 '
5797 export as_echo_n_body
5798 as_echo_n='sh -c $as_echo_n_body as_echo'
5799 fi
5800 export as_echo_body
5801 as_echo='sh -c $as_echo_body as_echo'
5802 fi
5803
5804 # The user is always right.
5805 if test "${PATH_SEPARATOR+set}" != set; then
5806 PATH_SEPARATOR=:
5807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5809 PATH_SEPARATOR=';'
5810 }
5811 fi
5812
5813
5814 # IFS
5815 # We need space, tab and new line, in precisely that order. Quoting is
5816 # there to prevent editors from complaining about space-tab.
5817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5818 # splitting by setting IFS to empty value.)
5819 IFS=" "" $as_nl"
5820
5821 # Find who we are. Look in the path if we contain no directory separator.
5822 case $0 in #((
5823 *[\\/]* ) as_myself=$0 ;;
5824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5826 do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5830 done
5831 IFS=$as_save_IFS
5832
5833 ;;
5834 esac
5835 # We did not find ourselves, most probably we were run as `sh COMMAND'
5836 # in which case we are not to be found in the path.
5837 if test "x$as_myself" = x; then
5838 as_myself=$0
5839 fi
5840 if test ! -f "$as_myself"; then
5841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5842 exit 1
5843 fi
5844
5845 # Unset variables that we do not need and which cause bugs (e.g. in
5846 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5847 # suppresses any "Segmentation fault" message there. '((' could
5848 # trigger a bug in pdksh 5.2.14.
5849 for as_var in BASH_ENV ENV MAIL MAILPATH
5850 do eval test x\${$as_var+set} = xset \
5851 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5852 done
5853 PS1='$ '
5854 PS2='> '
5855 PS4='+ '
5856
5857 # NLS nuisances.
5858 LC_ALL=C
5859 export LC_ALL
5860 LANGUAGE=C
5861 export LANGUAGE
5862
5863 # CDPATH.
5864 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5865
5866
5867 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5868 # ----------------------------------------
5869 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5870 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5871 # script with STATUS, using 1 if that was 0.
5872 as_fn_error ()
5873 {
5874 as_status=$1; test $as_status -eq 0 && as_status=1
5875 if test "$4"; then
5876 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5877 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5878 fi
5879 $as_echo "$as_me: error: $2" >&2
5880 as_fn_exit $as_status
5881 } # as_fn_error
5882
5883
5884 # as_fn_set_status STATUS
5885 # -----------------------
5886 # Set $? to STATUS, without forking.
5887 as_fn_set_status ()
5888 {
5889 return $1
5890 } # as_fn_set_status
5891
5892 # as_fn_exit STATUS
5893 # -----------------
5894 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5895 as_fn_exit ()
5896 {
5897 set +e
5898 as_fn_set_status $1
5899 exit $1
5900 } # as_fn_exit
5901
5902 # as_fn_unset VAR
5903 # ---------------
5904 # Portably unset VAR.
5905 as_fn_unset ()
5906 {
5907 { eval $1=; unset $1;}
5908 }
5909 as_unset=as_fn_unset
5910 # as_fn_append VAR VALUE
5911 # ----------------------
5912 # Append the text in VALUE to the end of the definition contained in VAR. Take
5913 # advantage of any shell optimizations that allow amortized linear growth over
5914 # repeated appends, instead of the typical quadratic growth present in naive
5915 # implementations.
5916 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5917 eval 'as_fn_append ()
5918 {
5919 eval $1+=\$2
5920 }'
5921 else
5922 as_fn_append ()
5923 {
5924 eval $1=\$$1\$2
5925 }
5926 fi # as_fn_append
5927
5928 # as_fn_arith ARG...
5929 # ------------------
5930 # Perform arithmetic evaluation on the ARGs, and store the result in the
5931 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5932 # must be portable across $(()) and expr.
5933 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5934 eval 'as_fn_arith ()
5935 {
5936 as_val=$(( $* ))
5937 }'
5938 else
5939 as_fn_arith ()
5940 {
5941 as_val=`expr "$@" || test $? -eq 1`
5942 }
5943 fi # as_fn_arith
5944
5945
5946 if expr a : '\(a\)' >/dev/null 2>&1 &&
5947 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5948 as_expr=expr
5949 else
5950 as_expr=false
5951 fi
5952
5953 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5954 as_basename=basename
5955 else
5956 as_basename=false
5957 fi
5958
5959 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5960 as_dirname=dirname
5961 else
5962 as_dirname=false
5963 fi
5964
5965 as_me=`$as_basename -- "$0" ||
5966 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5967 X"$0" : 'X\(//\)$' \| \
5968 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5969 $as_echo X/"$0" |
5970 sed '/^.*\/\([^/][^/]*\)\/*$/{
5971 s//\1/
5972 q
5973 }
5974 /^X\/\(\/\/\)$/{
5975 s//\1/
5976 q
5977 }
5978 /^X\/\(\/\).*/{
5979 s//\1/
5980 q
5981 }
5982 s/.*/./; q'`
5983
5984 # Avoid depending upon Character Ranges.
5985 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5986 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5987 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5988 as_cr_digits='0123456789'
5989 as_cr_alnum=$as_cr_Letters$as_cr_digits
5990
5991 ECHO_C= ECHO_N= ECHO_T=
5992 case `echo -n x` in #(((((
5993 -n*)
5994 case `echo 'xy\c'` in
5995 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5996 xy) ECHO_C='\c';;
5997 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5998 ECHO_T=' ';;
5999 esac;;
6000 *)
6001 ECHO_N='-n';;
6002 esac
6003
6004 rm -f conf$$ conf$$.exe conf$$.file
6005 if test -d conf$$.dir; then
6006 rm -f conf$$.dir/conf$$.file
6007 else
6008 rm -f conf$$.dir
6009 mkdir conf$$.dir 2>/dev/null
6010 fi
6011 if (echo >conf$$.file) 2>/dev/null; then
6012 if ln -s conf$$.file conf$$ 2>/dev/null; then
6013 as_ln_s='ln -s'
6014 # ... but there are two gotchas:
6015 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6016 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6017 # In both cases, we have to default to `cp -p'.
6018 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6019 as_ln_s='cp -p'
6020 elif ln conf$$.file conf$$ 2>/dev/null; then
6021 as_ln_s=ln
6022 else
6023 as_ln_s='cp -p'
6024 fi
6025 else
6026 as_ln_s='cp -p'
6027 fi
6028 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6029 rmdir conf$$.dir 2>/dev/null
6030
6031
6032 # as_fn_mkdir_p
6033 # -------------
6034 # Create "$as_dir" as a directory, including parents if necessary.
6035 as_fn_mkdir_p ()
6036 {
6037
6038 case $as_dir in #(
6039 -*) as_dir=./$as_dir;;
6040 esac
6041 test -d "$as_dir" || eval $as_mkdir_p || {
6042 as_dirs=
6043 while :; do
6044 case $as_dir in #(
6045 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6046 *) as_qdir=$as_dir;;
6047 esac
6048 as_dirs="'$as_qdir' $as_dirs"
6049 as_dir=`$as_dirname -- "$as_dir" ||
6050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6051 X"$as_dir" : 'X\(//\)[^/]' \| \
6052 X"$as_dir" : 'X\(//\)$' \| \
6053 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6054 $as_echo X"$as_dir" |
6055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6056 s//\1/
6057 q
6058 }
6059 /^X\(\/\/\)[^/].*/{
6060 s//\1/
6061 q
6062 }
6063 /^X\(\/\/\)$/{
6064 s//\1/
6065 q
6066 }
6067 /^X\(\/\).*/{
6068 s//\1/
6069 q
6070 }
6071 s/.*/./; q'`
6072 test -d "$as_dir" && break
6073 done
6074 test -z "$as_dirs" || eval "mkdir $as_dirs"
6075 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6076
6077
6078 } # as_fn_mkdir_p
6079 if mkdir -p . 2>/dev/null; then
6080 as_mkdir_p='mkdir -p "$as_dir"'
6081 else
6082 test -d ./-p && rmdir ./-p
6083 as_mkdir_p=false
6084 fi
6085
6086 if test -x / >/dev/null 2>&1; then
6087 as_test_x='test -x'
6088 else
6089 if ls -dL / >/dev/null 2>&1; then
6090 as_ls_L_option=L
6091 else
6092 as_ls_L_option=
6093 fi
6094 as_test_x='
6095 eval sh -c '\''
6096 if test -d "$1"; then
6097 test -d "$1/.";
6098 else
6099 case $1 in #(
6100 -*)set "./$1";;
6101 esac;
6102 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6103 ???[sx]*):;;*)false;;esac;fi
6104 '\'' sh
6105 '
6106 fi
6107 as_executable_p=$as_test_x
6108
6109 # Sed expression to map a string onto a valid CPP name.
6110 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6111
6112 # Sed expression to map a string onto a valid variable name.
6113 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6114
6115
6116 exec 6>&1
6117 ## ----------------------------------- ##
6118 ## Main body of $CONFIG_STATUS script. ##
6119 ## ----------------------------------- ##
6120 _ASEOF
6121 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6122
6123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6124 # Save the log message, to keep $0 and so on meaningful, and to
6125 # report actual input values of CONFIG_FILES etc. instead of their
6126 # values after options handling.
6127 ac_log="
6128 This file was extended by $as_me, which was
6129 generated by GNU Autoconf 2.67. Invocation command line was
6130
6131 CONFIG_FILES = $CONFIG_FILES
6132 CONFIG_HEADERS = $CONFIG_HEADERS
6133 CONFIG_LINKS = $CONFIG_LINKS
6134 CONFIG_COMMANDS = $CONFIG_COMMANDS
6135 $ $0 $@
6136
6137 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6138 "
6139
6140 _ACEOF
6141
6142 case $ac_config_files in *"
6143 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6144 esac
6145
6146
6147
6148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6149 # Files that config.status was made for.
6150 config_files="$ac_config_files"
6151 config_commands="$ac_config_commands"
6152
6153 _ACEOF
6154
6155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6156 ac_cs_usage="\
6157 \`$as_me' instantiates files and other configuration actions
6158 from templates according to the current configuration. Unless the files
6159 and actions are specified as TAGs, all are instantiated by default.
6160
6161 Usage: $0 [OPTION]... [TAG]...
6162
6163 -h, --help print this help, then exit
6164 -V, --version print version number and configuration settings, then exit
6165 --config print configuration, then exit
6166 -q, --quiet, --silent
6167 do not print progress messages
6168 -d, --debug don't remove temporary files
6169 --recheck update $as_me by reconfiguring in the same conditions
6170 --file=FILE[:TEMPLATE]
6171 instantiate the configuration file FILE
6172
6173 Configuration files:
6174 $config_files
6175
6176 Configuration commands:
6177 $config_commands
6178
6179 Report bugs to the package provider."
6180
6181 _ACEOF
6182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6183 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6184 ac_cs_version="\\
6185 config.status
6186 configured by $0, generated by GNU Autoconf 2.67,
6187 with options \\"\$ac_cs_config\\"
6188
6189 Copyright (C) 2010 Free Software Foundation, Inc.
6190 This config.status script is free software; the Free Software Foundation
6191 gives unlimited permission to copy, distribute and modify it."
6192
6193 ac_pwd='$ac_pwd'
6194 srcdir='$srcdir'
6195 INSTALL='$INSTALL'
6196 AWK='$AWK'
6197 test -n "\$AWK" || AWK=awk
6198 _ACEOF
6199
6200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6201 # The default lists apply if the user does not specify any file.
6202 ac_need_defaults=:
6203 while test $# != 0
6204 do
6205 case $1 in
6206 --*=?*)
6207 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6208 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6209 ac_shift=:
6210 ;;
6211 --*=)
6212 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6213 ac_optarg=
6214 ac_shift=:
6215 ;;
6216 *)
6217 ac_option=$1
6218 ac_optarg=$2
6219 ac_shift=shift
6220 ;;
6221 esac
6222
6223 case $ac_option in
6224 # Handling of the options.
6225 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6226 ac_cs_recheck=: ;;
6227 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6228 $as_echo "$ac_cs_version"; exit ;;
6229 --config | --confi | --conf | --con | --co | --c )
6230 $as_echo "$ac_cs_config"; exit ;;
6231 --debug | --debu | --deb | --de | --d | -d )
6232 debug=: ;;
6233 --file | --fil | --fi | --f )
6234 $ac_shift
6235 case $ac_optarg in
6236 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6237 '') as_fn_error $? "missing file argument" ;;
6238 esac
6239 as_fn_append CONFIG_FILES " '$ac_optarg'"
6240 ac_need_defaults=false;;
6241 --he | --h | --help | --hel | -h )
6242 $as_echo "$ac_cs_usage"; exit ;;
6243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6244 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6245 ac_cs_silent=: ;;
6246
6247 # This is an error.
6248 -*) as_fn_error $? "unrecognized option: \`$1'
6249 Try \`$0 --help' for more information." ;;
6250
6251 *) as_fn_append ac_config_targets " $1"
6252 ac_need_defaults=false ;;
6253
6254 esac
6255 shift
6256 done
6257
6258 ac_configure_extra_args=
6259
6260 if $ac_cs_silent; then
6261 exec 6>/dev/null
6262 ac_configure_extra_args="$ac_configure_extra_args --silent"
6263 fi
6264
6265 _ACEOF
6266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6267 if \$ac_cs_recheck; then
6268 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6269 shift
6270 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6271 CONFIG_SHELL='$SHELL'
6272 export CONFIG_SHELL
6273 exec "\$@"
6274 fi
6275
6276 _ACEOF
6277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6278 exec 5>>config.log
6279 {
6280 echo
6281 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6282 ## Running $as_me. ##
6283 _ASBOX
6284 $as_echo "$ac_log"
6285 } >&5
6286
6287 _ACEOF
6288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6289 #
6290 # INIT-COMMANDS
6291 #
6292 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6293
6294 _ACEOF
6295
6296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6297
6298 # Handling of arguments.
6299 for ac_config_target in $ac_config_targets
6300 do
6301 case $ac_config_target in
6302 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6303 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6304 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6305 "src/SDL_gfx/Makefile") CONFIG_FILES="$CONFIG_FILES src/SDL_gfx/Makefile" ;;
6306 "src/gengine/Makefile") CONFIG_FILES="$CONFIG_FILES src/gengine/Makefile" ;;
6307 "src/effect/Makefile") CONFIG_FILES="$CONFIG_FILES src/effect/Makefile" ;;
6308 "src/widget/Makefile") CONFIG_FILES="$CONFIG_FILES src/widget/Makefile" ;;
6309 "src/plan/Makefile") CONFIG_FILES="$CONFIG_FILES src/plan/Makefile" ;;
6310 "src/option/Makefile") CONFIG_FILES="$CONFIG_FILES src/option/Makefile" ;;
6311 "src/state/Makefile") CONFIG_FILES="$CONFIG_FILES src/state/Makefile" ;;
6312 "src/level/Makefile") CONFIG_FILES="$CONFIG_FILES src/level/Makefile" ;;
6313 "src/menu/Makefile") CONFIG_FILES="$CONFIG_FILES src/menu/Makefile" ;;
6314 "src/game/Makefile") CONFIG_FILES="$CONFIG_FILES src/game/Makefile" ;;
6315
6316 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
6317 esac
6318 done
6319
6320
6321 # If the user did not use the arguments to specify the items to instantiate,
6322 # then the envvar interface is used. Set only those that are not.
6323 # We use the long form for the default assignment because of an extremely
6324 # bizarre bug on SunOS 4.1.3.
6325 if $ac_need_defaults; then
6326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6327 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6328 fi
6329
6330 # Have a temporary directory for convenience. Make it in the build tree
6331 # simply because there is no reason against having it here, and in addition,
6332 # creating and moving files from /tmp can sometimes cause problems.
6333 # Hook for its removal unless debugging.
6334 # Note that there is a small window in which the directory will not be cleaned:
6335 # after its creation but before its name has been assigned to `$tmp'.
6336 $debug ||
6337 {
6338 tmp=
6339 trap 'exit_status=$?
6340 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6341 ' 0
6342 trap 'as_fn_exit 1' 1 2 13 15
6343 }
6344 # Create a (secure) tmp directory for tmp files.
6345
6346 {
6347 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6348 test -n "$tmp" && test -d "$tmp"
6349 } ||
6350 {
6351 tmp=./conf$$-$RANDOM
6352 (umask 077 && mkdir "$tmp")
6353 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6354
6355 # Set up the scripts for CONFIG_FILES section.
6356 # No need to generate them if there are no CONFIG_FILES.
6357 # This happens for instance with `./config.status config.h'.
6358 if test -n "$CONFIG_FILES"; then
6359
6360
6361 ac_cr=`echo X | tr X '\015'`
6362 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6363 # But we know of no other shell where ac_cr would be empty at this
6364 # point, so we can use a bashism as a fallback.
6365 if test "x$ac_cr" = x; then
6366 eval ac_cr=\$\'\\r\'
6367 fi
6368 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6369 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6370 ac_cs_awk_cr='\\r'
6371 else
6372 ac_cs_awk_cr=$ac_cr
6373 fi
6374
6375 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6376 _ACEOF
6377
6378
6379 {
6380 echo "cat >conf$$subs.awk <<_ACEOF" &&
6381 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6382 echo "_ACEOF"
6383 } >conf$$subs.sh ||
6384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6385 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6386 ac_delim='%!_!# '
6387 for ac_last_try in false false false false false :; do
6388 . ./conf$$subs.sh ||
6389 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6390
6391 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6392 if test $ac_delim_n = $ac_delim_num; then
6393 break
6394 elif $ac_last_try; then
6395 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6396 else
6397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6398 fi
6399 done
6400 rm -f conf$$subs.sh
6401
6402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6403 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6404 _ACEOF
6405 sed -n '
6406 h
6407 s/^/S["/; s/!.*/"]=/
6408 p
6409 g
6410 s/^[^!]*!//
6411 :repl
6412 t repl
6413 s/'"$ac_delim"'$//
6414 t delim
6415 :nl
6416 h
6417 s/\(.\{148\}\)..*/\1/
6418 t more1
6419 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6420 p
6421 n
6422 b repl
6423 :more1
6424 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6425 p
6426 g
6427 s/.\{148\}//
6428 t nl
6429 :delim
6430 h
6431 s/\(.\{148\}\)..*/\1/
6432 t more2
6433 s/["\\]/\\&/g; s/^/"/; s/$/"/
6434 p
6435 b
6436 :more2
6437 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6438 p
6439 g
6440 s/.\{148\}//
6441 t delim
6442 ' <conf$$subs.awk | sed '
6443 /^[^""]/{
6444 N
6445 s/\n//
6446 }
6447 ' >>$CONFIG_STATUS || ac_write_fail=1
6448 rm -f conf$$subs.awk
6449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6450 _ACAWK
6451 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6452 for (key in S) S_is_set[key] = 1
6453 FS = ""
6454
6455 }
6456 {
6457 line = $ 0
6458 nfields = split(line, field, "@")
6459 substed = 0
6460 len = length(field[1])
6461 for (i = 2; i < nfields; i++) {
6462 key = field[i]
6463 keylen = length(key)
6464 if (S_is_set[key]) {
6465 value = S[key]
6466 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6467 len += length(value) + length(field[++i])
6468 substed = 1
6469 } else
6470 len += 1 + keylen
6471 }
6472
6473 print line
6474 }
6475
6476 _ACAWK
6477 _ACEOF
6478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6479 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6480 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6481 else
6482 cat
6483 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6484 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6485 _ACEOF
6486
6487 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6488 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6489 # trailing colons and then remove the whole line if VPATH becomes empty
6490 # (actually we leave an empty line to preserve line numbers).
6491 if test "x$srcdir" = x.; then
6492 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6493 h
6494 s///
6495 s/^/:/
6496 s/[ ]*$/:/
6497 s/:\$(srcdir):/:/g
6498 s/:\${srcdir}:/:/g
6499 s/:@srcdir@:/:/g
6500 s/^:*//
6501 s/:*$//
6502 x
6503 s/\(=[ ]*\).*/\1/
6504 G
6505 s/\n//
6506 s/^[^=]*=[ ]*$//
6507 }'
6508 fi
6509
6510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6511 fi # test -n "$CONFIG_FILES"
6512
6513
6514 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
6515 shift
6516 for ac_tag
6517 do
6518 case $ac_tag in
6519 :[FHLC]) ac_mode=$ac_tag; continue;;
6520 esac
6521 case $ac_mode$ac_tag in
6522 :[FHL]*:*);;
6523 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
6524 :[FH]-) ac_tag=-:-;;
6525 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6526 esac
6527 ac_save_IFS=$IFS
6528 IFS=:
6529 set x $ac_tag
6530 IFS=$ac_save_IFS
6531 shift
6532 ac_file=$1
6533 shift
6534
6535 case $ac_mode in
6536 :L) ac_source=$1;;
6537 :[FH])
6538 ac_file_inputs=
6539 for ac_f
6540 do
6541 case $ac_f in
6542 -) ac_f="$tmp/stdin";;
6543 *) # Look for the file first in the build tree, then in the source tree
6544 # (if the path is not absolute). The absolute path cannot be DOS-style,
6545 # because $ac_f cannot contain `:'.
6546 test -f "$ac_f" ||
6547 case $ac_f in
6548 [\\/$]*) false;;
6549 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6550 esac ||
6551 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
6552 esac
6553 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6554 as_fn_append ac_file_inputs " '$ac_f'"
6555 done
6556
6557 # Let's still pretend it is `configure' which instantiates (i.e., don't
6558 # use $as_me), people would be surprised to read:
6559 # /* config.h. Generated by config.status. */
6560 configure_input='Generated from '`
6561 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6562 `' by configure.'
6563 if test x"$ac_file" != x-; then
6564 configure_input="$ac_file. $configure_input"
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6566 $as_echo "$as_me: creating $ac_file" >&6;}
6567 fi
6568 # Neutralize special characters interpreted by sed in replacement strings.
6569 case $configure_input in #(
6570 *\&* | *\|* | *\\* )
6571 ac_sed_conf_input=`$as_echo "$configure_input" |
6572 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6573 *) ac_sed_conf_input=$configure_input;;
6574 esac
6575
6576 case $ac_tag in
6577 *:-:* | *:-) cat >"$tmp/stdin" \
6578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6579 esac
6580 ;;
6581 esac
6582
6583 ac_dir=`$as_dirname -- "$ac_file" ||
6584 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6585 X"$ac_file" : 'X\(//\)[^/]' \| \
6586 X"$ac_file" : 'X\(//\)$' \| \
6587 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6588 $as_echo X"$ac_file" |
6589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6590 s//\1/
6591 q
6592 }
6593 /^X\(\/\/\)[^/].*/{
6594 s//\1/
6595 q
6596 }
6597 /^X\(\/\/\)$/{
6598 s//\1/
6599 q
6600 }
6601 /^X\(\/\).*/{
6602 s//\1/
6603 q
6604 }
6605 s/.*/./; q'`
6606 as_dir="$ac_dir"; as_fn_mkdir_p
6607 ac_builddir=.
6608
6609 case "$ac_dir" in
6610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6611 *)
6612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6613 # A ".." for each directory in $ac_dir_suffix.
6614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6615 case $ac_top_builddir_sub in
6616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6618 esac ;;
6619 esac
6620 ac_abs_top_builddir=$ac_pwd
6621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6622 # for backward compatibility:
6623 ac_top_builddir=$ac_top_build_prefix
6624
6625 case $srcdir in
6626 .) # We are building in place.
6627 ac_srcdir=.
6628 ac_top_srcdir=$ac_top_builddir_sub
6629 ac_abs_top_srcdir=$ac_pwd ;;
6630 [\\/]* | ?:[\\/]* ) # Absolute name.
6631 ac_srcdir=$srcdir$ac_dir_suffix;
6632 ac_top_srcdir=$srcdir
6633 ac_abs_top_srcdir=$srcdir ;;
6634 *) # Relative name.
6635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6636 ac_top_srcdir=$ac_top_build_prefix$srcdir
6637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6638 esac
6639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6640
6641
6642 case $ac_mode in
6643 :F)
6644 #
6645 # CONFIG_FILE
6646 #
6647
6648 case $INSTALL in
6649 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6650 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6651 esac
6652 _ACEOF
6653
6654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6655 # If the template does not know about datarootdir, expand it.
6656 # FIXME: This hack should be removed a few years after 2.60.
6657 ac_datarootdir_hack=; ac_datarootdir_seen=
6658 ac_sed_dataroot='
6659 /datarootdir/ {
6660 p
6661 q
6662 }
6663 /@datadir@/p
6664 /@docdir@/p
6665 /@infodir@/p
6666 /@localedir@/p
6667 /@mandir@/p'
6668 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6669 *datarootdir*) ac_datarootdir_seen=yes;;
6670 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6672 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6673 _ACEOF
6674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6675 ac_datarootdir_hack='
6676 s&@datadir@&$datadir&g
6677 s&@docdir@&$docdir&g
6678 s&@infodir@&$infodir&g
6679 s&@localedir@&$localedir&g
6680 s&@mandir@&$mandir&g
6681 s&\\\${datarootdir}&$datarootdir&g' ;;
6682 esac
6683 _ACEOF
6684
6685 # Neutralize VPATH when `$srcdir' = `.'.
6686 # Shell code in configure.ac might set extrasub.
6687 # FIXME: do we really want to maintain this feature?
6688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6689 ac_sed_extra="$ac_vpsub
6690 $extrasub
6691 _ACEOF
6692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6693 :t
6694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6695 s|@configure_input@|$ac_sed_conf_input|;t t
6696 s&@top_builddir@&$ac_top_builddir_sub&;t t
6697 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6698 s&@srcdir@&$ac_srcdir&;t t
6699 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6700 s&@top_srcdir@&$ac_top_srcdir&;t t
6701 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6702 s&@builddir@&$ac_builddir&;t t
6703 s&@abs_builddir@&$ac_abs_builddir&;t t
6704 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6705 s&@INSTALL@&$ac_INSTALL&;t t
6706 $ac_datarootdir_hack
6707 "
6708 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6710
6711 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6712 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6713 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6715 which seems to be undefined. Please make sure it is defined" >&5
6716 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6717 which seems to be undefined. Please make sure it is defined" >&2;}
6718
6719 rm -f "$tmp/stdin"
6720 case $ac_file in
6721 -) cat "$tmp/out" && rm -f "$tmp/out";;
6722 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6723 esac \
6724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6725 ;;
6726
6727
6728 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6729 $as_echo "$as_me: executing $ac_file commands" >&6;}
6730 ;;
6731 esac
6732
6733
6734 case $ac_file$ac_mode in
6735 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6736 # Strip MF so we end up with the name of the file.
6737 mf=`echo "$mf" | sed -e 's/:.*$//'`
6738 # Check whether this is an Automake generated Makefile or not.
6739 # We used to match only the files named `Makefile.in', but
6740 # some people rename them; so instead we look at the file content.
6741 # Grep'ing the first line is not enough: some people post-process
6742 # each Makefile.in and add a new line on top of each file to say so.
6743 # So let's grep whole file.
6744 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6745 dirpart=`$as_dirname -- "$mf" ||
6746 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6747 X"$mf" : 'X\(//\)[^/]' \| \
6748 X"$mf" : 'X\(//\)$' \| \
6749 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6750 $as_echo X"$mf" |
6751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6752 s//\1/
6753 q
6754 }
6755 /^X\(\/\/\)[^/].*/{
6756 s//\1/
6757 q
6758 }
6759 /^X\(\/\/\)$/{
6760 s//\1/
6761 q
6762 }
6763 /^X\(\/\).*/{
6764 s//\1/
6765 q
6766 }
6767 s/.*/./; q'`
6768 else
6769 continue
6770 fi
6771 # Extract the definition of DEPDIR, am__include, and am__quote
6772 # from the Makefile without running `make'.
6773 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6774 test -z "$DEPDIR" && continue
6775 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6776 test -z "am__include" && continue
6777 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6778 # When using ansi2knr, U may be empty or an underscore; expand it
6779 U=`sed -n 's/^U = //p' < "$mf"`
6780 # Find all dependency output files, they are included files with
6781 # $(DEPDIR) in their names. We invoke sed twice because it is the
6782 # simplest approach to changing $(DEPDIR) to its actual value in the
6783 # expansion.
6784 for file in `sed -n "
6785 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6786 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6787 # Make sure the directory exists.
6788 test -f "$dirpart/$file" && continue
6789 fdir=`$as_dirname -- "$file" ||
6790 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6791 X"$file" : 'X\(//\)[^/]' \| \
6792 X"$file" : 'X\(//\)$' \| \
6793 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6794 $as_echo X"$file" |
6795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6796 s//\1/
6797 q
6798 }
6799 /^X\(\/\/\)[^/].*/{
6800 s//\1/
6801 q
6802 }
6803 /^X\(\/\/\)$/{
6804 s//\1/
6805 q
6806 }
6807 /^X\(\/\).*/{
6808 s//\1/
6809 q
6810 }
6811 s/.*/./; q'`
6812 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6813 # echo "creating $dirpart/$file"
6814 echo '# dummy' > "$dirpart/$file"
6815 done
6816 done
6817 ;;
6818
6819 esac
6820 done # for ac_tag
6821
6822
6823 as_fn_exit 0
6824 _ACEOF
6825 ac_clean_files=$ac_clean_files_save
6826
6827 test $ac_write_fail = 0 ||
6828 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6829
6830
6831 # configure is writing to config.log, and then calls config.status.
6832 # config.status does its own redirection, appending to config.log.
6833 # Unfortunately, on DOS this fails, as config.log is still kept open
6834 # by configure, so config.status won't be able to write to it; its
6835 # output is simply discarded. So we exec the FD to /dev/null,
6836 # effectively closing config.log, so it can be properly (re)opened and
6837 # appended to by config.status. When coming back to configure, we
6838 # need to make the FD available again.
6839 if test "$no_create" != yes; then
6840 ac_cs_success=:
6841 ac_config_status_args=
6842 test "$silent" = yes &&
6843 ac_config_status_args="$ac_config_status_args --quiet"
6844 exec 5>/dev/null
6845 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6846 exec 5>>config.log
6847 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6848 # would make configure fail if this is the last instruction.
6849 $ac_cs_success || as_fn_exit 1
6850 fi
6851 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6853 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6854 fi
6855
6856
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
6858
6859 Fish Fillets NG are now configured.
6860 Checked components: X11=$have_x11, WINDRES=$have_windres, FRIBIDI=$have_fribidi, SMPEG=$have_smpeg
6861
6862 You can now run make.
6863 " >&5
6864 $as_echo "
6865
6866 Fish Fillets NG are now configured.
6867 Checked components: X11=$have_x11, WINDRES=$have_windres, FRIBIDI=$have_fribidi, SMPEG=$have_smpeg
6868
6869 You can now run make.
6870 " >&6; }
6871