Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Adonthell 0.3.8.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and
270 $0: [email protected] about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Adonthell'
582 PACKAGE_TARNAME='adonthell'
583 PACKAGE_VERSION='0.3.8'
584 PACKAGE_STRING='Adonthell 0.3.8'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL='http://adonthell.nongnu.org'
587
588 ac_unique_file="README"
589 gt_needs=
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 gamedatadir
631 OGG_DEFS
632 SDL_DEFS
633 HAVE_OGG_VORBIS_FALSE
634 HAVE_OGG_VORBIS_TRUE
635 P_DOT
636 P_DOXYGEN
637 BUILD_DOC_FALSE
638 BUILD_DOC_TRUE
639 IGE_MAC_LIBS
640 IGE_MAC_CFLAGS
641 GTK_LIBS
642 GTK_CFLAGS
643 CAIRO_LIBS
644 CAIRO_CFLAGS
645 BUILD_DLGEDIT_FALSE
646 BUILD_DLGEDIT_TRUE
647 SWIG
648 PY_LIBS
649 PY_CFLAGS
650 PY_PREFIX
651 PYTHON
652 SDL2_CONFIG
653 SDL_LIBS
654 SDL_CFLAGS
655 SDL2_FRAMEWORK
656 OGG_LIBS
657 OGG_CFLAGS
658 FT2_LIBS
659 FT2_CFLAGS
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 COMPILE_SCRIPTS_FALSE
664 COMPILE_SCRIPTS_TRUE
665 POSUB
666 LTLIBINTL
667 LIBINTL
668 INTLLIBS
669 LTLIBICONV
670 LIBICONV
671 INTL_MACOSX_LIBS
672 EGREP
673 GREP
674 CPP
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 ac_ct_CC
679 CFLAGS
680 CC
681 XGETTEXT_EXTRA_OPTIONS
682 MSGMERGE
683 XGETTEXT_015
684 XGETTEXT
685 GMSGFMT_015
686 MSGFMT_015
687 GMSGFMT
688 MSGFMT
689 GETTEXT_MACRO_VERSION
690 USE_NLS
691 SED
692 RANLIB
693 CXXCPP
694 am__fastdepCXX_FALSE
695 am__fastdepCXX_TRUE
696 CXXDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CXX
707 CPPFLAGS
708 LDFLAGS
709 CXXFLAGS
710 CXX
711 LN_S
712 AM_BACKSLASH
713 AM_DEFAULT_VERBOSITY
714 AM_DEFAULT_V
715 AM_V
716 am__untar
717 am__tar
718 AMTAR
719 am__leading_dot
720 SET_MAKE
721 AWK
722 mkdir_p
723 MKDIR_P
724 INSTALL_STRIP_PROGRAM
725 STRIP
726 install_sh
727 MAKEINFO
728 AUTOHEADER
729 AUTOMAKE
730 AUTOCONF
731 ACLOCAL
732 VERSION
733 PACKAGE
734 CYGPATH_W
735 am__isrc
736 INSTALL_DATA
737 INSTALL_SCRIPT
738 INSTALL_PROGRAM
739 target_os
740 target_vendor
741 target_cpu
742 target
743 host_os
744 host_vendor
745 host_cpu
746 host
747 build_os
748 build_vendor
749 build_cpu
750 build
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 runstatedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_silent_rules
794 enable_dependency_tracking
795 enable_nls
796 with_gnu_ld
797 enable_rpath
798 with_libiconv_prefix
799 with_libintl_prefix
800 enable_unix_install
801 enable_dlgedit
802 enable_memleaks
803 enable_doc
804 enable_py_debug
805 enable_pyc
806 with_data_dir
807 with_python
808 with_py_libs
809 with_py_cflags
810 with_sdl_prefix
811 with_sdl_exec_prefix
812 enable_sdltest
813 enable_sdlframework
814 '
815 ac_precious_vars='build_alias
816 host_alias
817 target_alias
818 CXX
819 CXXFLAGS
820 LDFLAGS
821 LIBS
822 CPPFLAGS
823 CCC
824 CXXCPP
825 CC
826 CFLAGS
827 CPP
828 PKG_CONFIG
829 PKG_CONFIG_PATH
830 PKG_CONFIG_LIBDIR
831 FT2_CFLAGS
832 FT2_LIBS
833 OGG_CFLAGS
834 OGG_LIBS
835 SDL2_FRAMEWORK
836 SDL_CFLAGS
837 SDL_LIBS
838 CAIRO_CFLAGS
839 CAIRO_LIBS
840 GTK_CFLAGS
841 GTK_LIBS
842 IGE_MAC_CFLAGS
843 IGE_MAC_LIBS'
844
845
846 # Initialize some variables set by options.
847 ac_init_help=
848 ac_init_version=false
849 ac_unrecognized_opts=
850 ac_unrecognized_sep=
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
867
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 runstatedir='${localstatedir}/run'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
894
895 ac_prev=
896 ac_dashdash=
897 for ac_option
898 do
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
901 eval $ac_prev=\$ac_option
902 ac_prev=
903 continue
904 fi
905
906 case $ac_option in
907 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *=) ac_optarg= ;;
909 *) ac_optarg=yes ;;
910 esac
911
912 # Accept the important Cygnus configure options, so we can diagnose typos.
913
914 case $ac_dashdash$ac_option in
915 --)
916 ac_dashdash=yes ;;
917
918 -bindir | --bindir | --bindi | --bind | --bin | --bi)
919 ac_prev=bindir ;;
920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
921 bindir=$ac_optarg ;;
922
923 -build | --build | --buil | --bui | --bu)
924 ac_prev=build_alias ;;
925 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
926 build_alias=$ac_optarg ;;
927
928 -cache-file | --cache-file | --cache-fil | --cache-fi \
929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
930 ac_prev=cache_file ;;
931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
933 cache_file=$ac_optarg ;;
934
935 --config-cache | -C)
936 cache_file=config.cache ;;
937
938 -datadir | --datadir | --datadi | --datad)
939 ac_prev=datadir ;;
940 -datadir=* | --datadir=* | --datadi=* | --datad=*)
941 datadir=$ac_optarg ;;
942
943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
944 | --dataroo | --dataro | --datar)
945 ac_prev=datarootdir ;;
946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
948 datarootdir=$ac_optarg ;;
949
950 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=no ;;
965
966 -docdir | --docdir | --docdi | --doc | --do)
967 ac_prev=docdir ;;
968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969 docdir=$ac_optarg ;;
970
971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972 ac_prev=dvidir ;;
973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974 dvidir=$ac_optarg ;;
975
976 -enable-* | --enable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error $? "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
984 *"
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=\$ac_optarg ;;
991
992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
994 | --exec | --exe | --ex)
995 ac_prev=exec_prefix ;;
996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
998 | --exec=* | --exe=* | --ex=*)
999 exec_prefix=$ac_optarg ;;
1000
1001 -gas | --gas | --ga | --g)
1002 # Obsolete; use --with-gas.
1003 with_gas=yes ;;
1004
1005 -help | --help | --hel | --he | -h)
1006 ac_init_help=long ;;
1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1008 ac_init_help=recursive ;;
1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1010 ac_init_help=short ;;
1011
1012 -host | --host | --hos | --ho)
1013 ac_prev=host_alias ;;
1014 -host=* | --host=* | --hos=* | --ho=*)
1015 host_alias=$ac_optarg ;;
1016
1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1018 ac_prev=htmldir ;;
1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1020 | --ht=*)
1021 htmldir=$ac_optarg ;;
1022
1023 -includedir | --includedir | --includedi | --included | --include \
1024 | --includ | --inclu | --incl | --inc)
1025 ac_prev=includedir ;;
1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1027 | --includ=* | --inclu=* | --incl=* | --inc=*)
1028 includedir=$ac_optarg ;;
1029
1030 -infodir | --infodir | --infodi | --infod | --info | --inf)
1031 ac_prev=infodir ;;
1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1033 infodir=$ac_optarg ;;
1034
1035 -libdir | --libdir | --libdi | --libd)
1036 ac_prev=libdir ;;
1037 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1038 libdir=$ac_optarg ;;
1039
1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1041 | --libexe | --libex | --libe)
1042 ac_prev=libexecdir ;;
1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1044 | --libexe=* | --libex=* | --libe=*)
1045 libexecdir=$ac_optarg ;;
1046
1047 -localedir | --localedir | --localedi | --localed | --locale)
1048 ac_prev=localedir ;;
1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1050 localedir=$ac_optarg ;;
1051
1052 -localstatedir | --localstatedir | --localstatedi | --localstated \
1053 | --localstate | --localstat | --localsta | --localst | --locals)
1054 ac_prev=localstatedir ;;
1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1057 localstatedir=$ac_optarg ;;
1058
1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1060 ac_prev=mandir ;;
1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1062 mandir=$ac_optarg ;;
1063
1064 -nfp | --nfp | --nf)
1065 # Obsolete; use --without-fp.
1066 with_fp=no ;;
1067
1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1069 | --no-cr | --no-c | -n)
1070 no_create=yes ;;
1071
1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 no_recursion=yes ;;
1075
1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1078 | --oldin | --oldi | --old | --ol | --o)
1079 ac_prev=oldincludedir ;;
1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1083 oldincludedir=$ac_optarg ;;
1084
1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1086 ac_prev=prefix ;;
1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1088 prefix=$ac_optarg ;;
1089
1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1091 | --program-pre | --program-pr | --program-p)
1092 ac_prev=program_prefix ;;
1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1095 program_prefix=$ac_optarg ;;
1096
1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1098 | --program-suf | --program-su | --program-s)
1099 ac_prev=program_suffix ;;
1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1102 program_suffix=$ac_optarg ;;
1103
1104 -program-transform-name | --program-transform-name \
1105 | --program-transform-nam | --program-transform-na \
1106 | --program-transform-n | --program-transform- \
1107 | --program-transform | --program-transfor \
1108 | --program-transfo | --program-transf \
1109 | --program-trans | --program-tran \
1110 | --progr-tra | --program-tr | --program-t)
1111 ac_prev=program_transform_name ;;
1112 -program-transform-name=* | --program-transform-name=* \
1113 | --program-transform-nam=* | --program-transform-na=* \
1114 | --program-transform-n=* | --program-transform-=* \
1115 | --program-transform=* | --program-transfor=* \
1116 | --program-transfo=* | --program-transf=* \
1117 | --program-trans=* | --program-tran=* \
1118 | --progr-tra=* | --program-tr=* | --program-t=*)
1119 program_transform_name=$ac_optarg ;;
1120
1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1122 ac_prev=pdfdir ;;
1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1124 pdfdir=$ac_optarg ;;
1125
1126 -psdir | --psdir | --psdi | --psd | --ps)
1127 ac_prev=psdir ;;
1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 psdir=$ac_optarg ;;
1130
1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1132 | -silent | --silent | --silen | --sile | --sil)
1133 silent=yes ;;
1134
1135 -runstatedir | --runstatedir | --runstatedi | --runstated \
1136 | --runstate | --runstat | --runsta | --runst | --runs \
1137 | --run | --ru | --r)
1138 ac_prev=runstatedir ;;
1139 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1140 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1141 | --run=* | --ru=* | --r=*)
1142 runstatedir=$ac_optarg ;;
1143
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1145 ac_prev=sbindir ;;
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1147 | --sbi=* | --sb=*)
1148 sbindir=$ac_optarg ;;
1149
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1153 | --sha | --sh)
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1158 | --sha=* | --sh=*)
1159 sharedstatedir=$ac_optarg ;;
1160
1161 -site | --site | --sit)
1162 ac_prev=site ;;
1163 -site=* | --site=* | --sit=*)
1164 site=$ac_optarg ;;
1165
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1167 ac_prev=srcdir ;;
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1170
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1177
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1182
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1184 verbose=yes ;;
1185
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1188
1189 -with-* | --with-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1197 *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=\$ac_optarg ;;
1204
1205 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1213 *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1218 esac
1219 eval with_$ac_useropt=no ;;
1220
1221 --x)
1222 # Obsolete; use --with-x.
1223 with_x=yes ;;
1224
1225 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226 | --x-incl | --x-inc | --x-in | --x-i)
1227 ac_prev=x_includes ;;
1228 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230 x_includes=$ac_optarg ;;
1231
1232 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234 ac_prev=x_libraries ;;
1235 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237 x_libraries=$ac_optarg ;;
1238
1239 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1240 Try \`$0 --help' for more information"
1241 ;;
1242
1243 *=*)
1244 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1245 # Reject names that are not valid shell variable names.
1246 case $ac_envvar in #(
1247 '' | [0-9]* | *[!_$as_cr_alnum]* )
1248 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1249 esac
1250 eval $ac_envvar=\$ac_optarg
1251 export $ac_envvar ;;
1252
1253 *)
1254 # FIXME: should be removed in autoconf 3.0.
1255 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1259 ;;
1260
1261 esac
1262 done
1263
1264 if test -n "$ac_prev"; then
1265 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266 as_fn_error $? "missing argument to $ac_option"
1267 fi
1268
1269 if test -n "$ac_unrecognized_opts"; then
1270 case $enable_option_checking in
1271 no) ;;
1272 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1273 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1274 esac
1275 fi
1276
1277 # Check all directory arguments for consistency.
1278 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1279 datadir sysconfdir sharedstatedir localstatedir includedir \
1280 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1281 libdir localedir mandir runstatedir
1282 do
1283 eval ac_val=\$$ac_var
1284 # Remove trailing slashes.
1285 case $ac_val in
1286 */ )
1287 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1288 eval $ac_var=\$ac_val;;
1289 esac
1290 # Be sure to have absolute directory names.
1291 case $ac_val in
1292 [\\/$]* | ?:[\\/]* ) continue;;
1293 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1294 esac
1295 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1296 done
1297
1298 # There might be people who depend on the old broken behavior: `$host'
1299 # used to hold the argument of --host etc.
1300 # FIXME: To remove some day.
1301 build=$build_alias
1302 host=$host_alias
1303 target=$target_alias
1304
1305 # FIXME: To remove some day.
1306 if test "x$host_alias" != x; then
1307 if test "x$build_alias" = x; then
1308 cross_compiling=maybe
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1311 fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 as_fn_error $? "working directory cannot be determined"
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325 as_fn_error $? "pwd does not report name of working directory"
1326
1327
1328 # Find the source files, if location was not specified.
1329 if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$as_myself" ||
1333 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$as_myself" : 'X\(//\)[^/]' \| \
1335 X"$as_myself" : 'X\(//\)$' \| \
1336 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1337 $as_echo X"$as_myself" |
1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
1355 srcdir=$ac_confdir
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 srcdir=..
1358 fi
1359 else
1360 ac_srcdir_defaulted=no
1361 fi
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1365 fi
1366 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367 ac_abs_confdir=`(
1368 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1369 pwd)`
1370 # When building in place, set srcdir=.
1371 if test "$ac_abs_confdir" = "$ac_pwd"; then
1372 srcdir=.
1373 fi
1374 # Remove unnecessary trailing slashes from srcdir.
1375 # Double slashes in file names in object file debugging info
1376 # mess up M-x gdb in Emacs.
1377 case $srcdir in
1378 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1379 esac
1380 for ac_var in $ac_precious_vars; do
1381 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1382 eval ac_env_${ac_var}_value=\$${ac_var}
1383 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1385 done
1386
1387 #
1388 # Report the --help message.
1389 #
1390 if test "$ac_init_help" = "long"; then
1391 # Omit some internal or obsolete options to make the list less imposing.
1392 # This message is too long to be a string in the A/UX 3.1 sh.
1393 cat <<_ACEOF
1394 \`configure' configures Adonthell 0.3.8 to adapt to many kinds of systems.
1395
1396 Usage: $0 [OPTION]... [VAR=VALUE]...
1397
1398 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1399 VAR=VALUE. See below for descriptions of some of the useful variables.
1400
1401 Defaults for the options are specified in brackets.
1402
1403 Configuration:
1404 -h, --help display this help and exit
1405 --help=short display options specific to this package
1406 --help=recursive display the short help of all the included packages
1407 -V, --version display version information and exit
1408 -q, --quiet, --silent do not print \`checking ...' messages
1409 --cache-file=FILE cache test results in FILE [disabled]
1410 -C, --config-cache alias for \`--cache-file=config.cache'
1411 -n, --no-create do not create output files
1412 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1413
1414 Installation directories:
1415 --prefix=PREFIX install architecture-independent files in PREFIX
1416 [$ac_default_prefix]
1417 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1418 [PREFIX]
1419
1420 By default, \`make install' will install all the files in
1421 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1422 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1423 for instance \`--prefix=\$HOME'.
1424
1425 For better control, use the options below.
1426
1427 Fine tuning of the installation directories:
1428 --bindir=DIR user executables [EPREFIX/bin]
1429 --sbindir=DIR system admin executables [EPREFIX/sbin]
1430 --libexecdir=DIR program executables [EPREFIX/libexec]
1431 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1432 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1433 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1434 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/adonthell]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1449
1450 cat <<\_ACEOF
1451
1452 Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457 System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461 _ACEOF
1462 fi
1463
1464 if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of Adonthell 0.3.8:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470 Optional Features:
1471 --disable-option-checking ignore unrecognized --enable/--with options
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-silent-rules less verbose build output (undo: "make V=1")
1475 --disable-silent-rules verbose build output (undo: "make V=0")
1476 --enable-dependency-tracking
1477 do not reject slow dependency extractors
1478 --disable-dependency-tracking
1479 speeds up one-time build
1480 --disable-nls do not use Native Language Support
1481 --disable-rpath do not hardcode runtime library paths
1482 --disable-unix-install disable a Unix-like install (enabled by default)
1483 --enable-dlgedit Build the Adonthell dialogue editior (disabled by
1484 default)
1485 --enable-memleaks enable check for memory leaks (disabled by default)
1486 --enable-doc build the Adonthell developer documentation
1487 (disabled by default)
1488 --disable-py-debug disable debugging of Python scripts (enabled by
1489 default)
1490 --disable-pyc Do not compile Python scripts
1491 --disable-sdltest Do not try to compile and run a test SDL program
1492 --disable-sdlframework Do not search for SDL2.framework
1493
1494 Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1499 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1500 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1501 --without-libintl-prefix don't search for libintl in includedir and libdir
1502 --with-data-dir=DIR directory where data will be installed
1503 --with-python=CMD name of python executable
1504 --with-py-libs=LIBS override Python libraries auto-detection
1505 --with-py-cflags=FLAGS override Python cflags auto-detection
1506 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1507 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1508
1509 Some influential environment variables:
1510 CXX C++ compiler command
1511 CXXFLAGS C++ compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 LIBS libraries to pass to the linker, e.g. -l<library>
1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516 you have headers in a nonstandard directory <include dir>
1517 CXXCPP C++ preprocessor
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 CPP C preprocessor
1521 PKG_CONFIG path to pkg-config utility
1522 PKG_CONFIG_PATH
1523 directories to add to pkg-config's search path
1524 PKG_CONFIG_LIBDIR
1525 path overriding pkg-config's built-in search path
1526 FT2_CFLAGS C compiler flags for FT2, overriding pkg-config
1527 FT2_LIBS linker flags for FT2, overriding pkg-config
1528 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1529 OGG_LIBS linker flags for OGG, overriding pkg-config
1530 SDL2_FRAMEWORK
1531 Path to SDL2.framework
1532 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1533 SDL_LIBS linker flags for SDL, overriding pkg-config
1534 CAIRO_CFLAGS
1535 C compiler flags for CAIRO, overriding pkg-config
1536 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
1537 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1538 GTK_LIBS linker flags for GTK, overriding pkg-config
1539 IGE_MAC_CFLAGS
1540 C compiler flags for IGE_MAC, overriding pkg-config
1541 IGE_MAC_LIBS
1542 linker flags for IGE_MAC, overriding pkg-config
1543
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1546
1547 Report bugs to <[email protected]>.
1548 Adonthell home page: <http://adonthell.nongnu.org>.
1549 _ACEOF
1550 ac_status=$?
1551 fi
1552
1553 if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556 test -d "$ac_dir" ||
1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 continue
1559 ac_builddir=.
1560
1561 case "$ac_dir" in
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *)
1564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571 esac
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1576
1577 case $srcdir in
1578 .) # We are building in place.
1579 ac_srcdir=.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 esac
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1606 fi
1607
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 Adonthell configure 0.3.8
1612 generated by GNU Autoconf 2.69
1613
1614 Copyright (C) 2012 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618 exit
1619 fi
1620
1621 ## ------------------------ ##
1622 ## Autoconf initialization. ##
1623 ## ------------------------ ##
1624
1625 # ac_fn_cxx_try_compile LINENO
1626 # ----------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_cxx_try_compile ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_cxx_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1660
1661 } # ac_fn_cxx_try_compile
1662
1663 # ac_fn_cxx_try_cpp LINENO
1664 # ------------------------
1665 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_cxx_try_cpp ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_cpp conftest.$ac_ext"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } > conftest.i && {
1685 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1686 test ! -s conftest.err
1687 }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694 fi
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1697
1698 } # ac_fn_cxx_try_cpp
1699
1700 # ac_fn_c_try_compile LINENO
1701 # --------------------------
1702 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_compile ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext
1707 if { { ac_try="$ac_compile"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_compile") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest.$ac_objext; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=1
1732 fi
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_compile
1737
1738 # ac_fn_c_try_cpp LINENO
1739 # ----------------------
1740 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 ac_fn_c_try_cpp ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_cpp conftest.$ac_ext"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } > conftest.i && {
1760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 }; then :
1763 ac_retval=0
1764 else
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 ac_retval=1
1769 fi
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_cpp
1774
1775 # ac_fn_c_try_link LINENO
1776 # -----------------------
1777 # Try to link conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_link ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 test -x conftest$ac_exeext
1803 }; then :
1804 ac_retval=0
1805 else
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=1
1810 fi
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_link
1820
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1825 ac_fn_c_try_run ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1829 case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1836 ac_status=$?
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1846 ac_status=$?
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1849 ac_retval=0
1850 else
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=$ac_status
1856 fi
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1860
1861 } # ac_fn_c_try_run
1862
1863 # ac_fn_c_check_func LINENO FUNC VAR
1864 # ----------------------------------
1865 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1866 ac_fn_c_check_func ()
1867 {
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873 else
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1878 #define $2 innocuous_$2
1879
1880 /* System header to define __stub macros and hopefully few prototypes,
1881 which can conflict with char $2 (); below.
1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1883 <limits.h> exists even on freestanding compilers. */
1884
1885 #ifdef __STDC__
1886 # include <limits.h>
1887 #else
1888 # include <assert.h>
1889 #endif
1890
1891 #undef $2
1892
1893 /* Override any GCC internal prototype to avoid an error.
1894 Use char because int might match the return type of a GCC
1895 builtin and then its argument prototype would still apply. */
1896 #ifdef __cplusplus
1897 extern "C"
1898 #endif
1899 char $2 ();
1900 /* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903 #if defined __stub_$2 || defined __stub___$2
1904 choke me
1905 #endif
1906
1907 int
1908 main ()
1909 {
1910 return $2 ();
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_link "$LINENO"; then :
1916 eval "$3=yes"
1917 else
1918 eval "$3=no"
1919 fi
1920 rm -f core conftest.err conftest.$ac_objext \
1921 conftest$ac_exeext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928 } # ac_fn_c_check_func
1929
1930 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1931 # ---------------------------------------------
1932 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1933 # accordingly.
1934 ac_fn_c_check_decl ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 as_decl_name=`echo $2|sed 's/ *(.*//'`
1938 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1940 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $4
1947 int
1948 main ()
1949 {
1950 #ifndef $as_decl_name
1951 #ifdef __cplusplus
1952 (void) $as_decl_use;
1953 #else
1954 (void) $as_decl_name;
1955 #endif
1956 #endif
1957
1958 ;
1959 return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 eval "$3=yes"
1964 else
1965 eval "$3=no"
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974 } # ac_fn_c_check_decl
1975
1976 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1977 # -------------------------------------------------------
1978 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979 # the include files in INCLUDES and setting the cache variable VAR
1980 # accordingly.
1981 ac_fn_c_check_header_mongrel ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if eval \${$3+:} false; then :
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1989 fi
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 else
1994 # Is the header compilable?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996 $as_echo_n "checking $2 usability... " >&6; }
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 $4
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_header_compiler=yes
2004 else
2005 ac_header_compiler=no
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009 $as_echo "$ac_header_compiler" >&6; }
2010
2011 # Is the header present?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013 $as_echo_n "checking $2 presence... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 #include <$2>
2017 _ACEOF
2018 if ac_fn_c_try_cpp "$LINENO"; then :
2019 ac_header_preproc=yes
2020 else
2021 ac_header_preproc=no
2022 fi
2023 rm -f conftest.err conftest.i conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025 $as_echo "$ac_header_preproc" >&6; }
2026
2027 # So? What about this header?
2028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2029 yes:no: )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2034 ;;
2035 no:yes:* )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 ( $as_echo "## ------------------------------------------- ##
2047 ## Report this to [email protected] ##
2048 ## ------------------------------------------- ##"
2049 ) | sed "s/^/$as_me: WARNING: /" >&2
2050 ;;
2051 esac
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 $as_echo_n "checking for $2... " >&6; }
2054 if eval \${$3+:} false; then :
2055 $as_echo_n "(cached) " >&6
2056 else
2057 eval "$3=\$ac_header_compiler"
2058 fi
2059 eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061 $as_echo "$ac_res" >&6; }
2062 fi
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064
2065 } # ac_fn_c_check_header_mongrel
2066
2067 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2068 # -------------------------------------------------------
2069 # Tests whether HEADER exists and can be compiled using the include files in
2070 # INCLUDES, setting the cache variable VAR accordingly.
2071 ac_fn_c_check_header_compile ()
2072 {
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2075 $as_echo_n "checking for $2... " >&6; }
2076 if eval \${$3+:} false; then :
2077 $as_echo_n "(cached) " >&6
2078 else
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2081 $4
2082 #include <$2>
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 eval "$3=yes"
2086 else
2087 eval "$3=no"
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 fi
2091 eval ac_res=\$$3
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 $as_echo "$ac_res" >&6; }
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2095
2096 } # ac_fn_c_check_header_compile
2097
2098 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2099 # ---------------------------------------------------------
2100 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2101 # the include files in INCLUDES and setting the cache variable VAR
2102 # accordingly.
2103 ac_fn_cxx_check_header_mongrel ()
2104 {
2105 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2106 if eval \${$3+:} false; then :
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2111 fi
2112 eval ac_res=\$$3
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 else
2116 # Is the header compilable?
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2118 $as_echo_n "checking $2 usability... " >&6; }
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2121 $4
2122 #include <$2>
2123 _ACEOF
2124 if ac_fn_cxx_try_compile "$LINENO"; then :
2125 ac_header_compiler=yes
2126 else
2127 ac_header_compiler=no
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2131 $as_echo "$ac_header_compiler" >&6; }
2132
2133 # Is the header present?
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2135 $as_echo_n "checking $2 presence... " >&6; }
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2138 #include <$2>
2139 _ACEOF
2140 if ac_fn_cxx_try_cpp "$LINENO"; then :
2141 ac_header_preproc=yes
2142 else
2143 ac_header_preproc=no
2144 fi
2145 rm -f conftest.err conftest.i conftest.$ac_ext
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2147 $as_echo "$ac_header_preproc" >&6; }
2148
2149 # So? What about this header?
2150 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2151 yes:no: )
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2153 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2155 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2156 ;;
2157 no:yes:* )
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2159 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2161 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2163 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2165 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2167 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2168 ( $as_echo "## ------------------------------------------- ##
2169 ## Report this to [email protected] ##
2170 ## ------------------------------------------- ##"
2171 ) | sed "s/^/$as_me: WARNING: /" >&2
2172 ;;
2173 esac
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2175 $as_echo_n "checking for $2... " >&6; }
2176 if eval \${$3+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178 else
2179 eval "$3=\$ac_header_compiler"
2180 fi
2181 eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 fi
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2186
2187 } # ac_fn_cxx_check_header_mongrel
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2191
2192 It was created by Adonthell $as_me 0.3.8, which was
2193 generated by GNU Autoconf 2.69. Invocation command line was
2194
2195 $ $0 $@
2196
2197 _ACEOF
2198 exec 5>>config.log
2199 {
2200 cat <<_ASUNAME
2201 ## --------- ##
2202 ## Platform. ##
2203 ## --------- ##
2204
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2210
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2213
2214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2221
2222 _ASUNAME
2223
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 $as_echo "PATH: $as_dir"
2230 done
2231 IFS=$as_save_IFS
2232
2233 } >&5
2234
2235 cat >&5 <<_ACEOF
2236
2237
2238 ## ----------- ##
2239 ## Core tests. ##
2240 ## ----------- ##
2241
2242 _ACEOF
2243
2244
2245 # Keep a trace of the command line.
2246 # Strip out --no-create and --no-recursion so they do not pile up.
2247 # Strip out --silent because we don't want to record it for future runs.
2248 # Also quote any args containing shell meta-characters.
2249 # Make two passes to allow for proper duplicate-argument suppression.
2250 ac_configure_args=
2251 ac_configure_args0=
2252 ac_configure_args1=
2253 ac_must_keep_next=false
2254 for ac_pass in 1 2
2255 do
2256 for ac_arg
2257 do
2258 case $ac_arg in
2259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2261 | -silent | --silent | --silen | --sile | --sil)
2262 continue ;;
2263 *\'*)
2264 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2265 esac
2266 case $ac_pass in
2267 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2268 2)
2269 as_fn_append ac_configure_args1 " '$ac_arg'"
2270 if test $ac_must_keep_next = true; then
2271 ac_must_keep_next=false # Got value, back to normal.
2272 else
2273 case $ac_arg in
2274 *=* | --config-cache | -C | -disable-* | --disable-* \
2275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2277 | -with-* | --with-* | -without-* | --without-* | --x)
2278 case "$ac_configure_args0 " in
2279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2280 esac
2281 ;;
2282 -* ) ac_must_keep_next=true ;;
2283 esac
2284 fi
2285 as_fn_append ac_configure_args " '$ac_arg'"
2286 ;;
2287 esac
2288 done
2289 done
2290 { ac_configure_args0=; unset ac_configure_args0;}
2291 { ac_configure_args1=; unset ac_configure_args1;}
2292
2293 # When interrupted or exit'd, cleanup temporary files, and complete
2294 # config.log. We remove comments because anyway the quotes in there
2295 # would cause problems or look ugly.
2296 # WARNING: Use '\'' to represent an apostrophe within the trap.
2297 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2298 trap 'exit_status=$?
2299 # Save into config.log some information that might help in debugging.
2300 {
2301 echo
2302
2303 $as_echo "## ---------------- ##
2304 ## Cache variables. ##
2305 ## ---------------- ##"
2306 echo
2307 # The following way of writing the cache mishandles newlines in values,
2308 (
2309 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2310 eval ac_val=\$$ac_var
2311 case $ac_val in #(
2312 *${as_nl}*)
2313 case $ac_var in #(
2314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2315 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2316 esac
2317 case $ac_var in #(
2318 _ | IFS | as_nl) ;; #(
2319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2320 *) { eval $ac_var=; unset $ac_var;} ;;
2321 esac ;;
2322 esac
2323 done
2324 (set) 2>&1 |
2325 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2326 *${as_nl}ac_space=\ *)
2327 sed -n \
2328 "s/'\''/'\''\\\\'\'''\''/g;
2329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2330 ;; #(
2331 *)
2332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2333 ;;
2334 esac |
2335 sort
2336 )
2337 echo
2338
2339 $as_echo "## ----------------- ##
2340 ## Output variables. ##
2341 ## ----------------- ##"
2342 echo
2343 for ac_var in $ac_subst_vars
2344 do
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2352
2353 if test -n "$ac_subst_files"; then
2354 $as_echo "## ------------------- ##
2355 ## File substitutions. ##
2356 ## ------------------- ##"
2357 echo
2358 for ac_var in $ac_subst_files
2359 do
2360 eval ac_val=\$$ac_var
2361 case $ac_val in
2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363 esac
2364 $as_echo "$ac_var='\''$ac_val'\''"
2365 done | sort
2366 echo
2367 fi
2368
2369 if test -s confdefs.h; then
2370 $as_echo "## ----------- ##
2371 ## confdefs.h. ##
2372 ## ----------- ##"
2373 echo
2374 cat confdefs.h
2375 echo
2376 fi
2377 test "$ac_signal" != 0 &&
2378 $as_echo "$as_me: caught signal $ac_signal"
2379 $as_echo "$as_me: exit $exit_status"
2380 } >&5
2381 rm -f core *.core core.conftest.* &&
2382 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2383 exit $exit_status
2384 ' 0
2385 for ac_signal in 1 2 13 15; do
2386 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2387 done
2388 ac_signal=0
2389
2390 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2391 rm -f -r conftest* confdefs.h
2392
2393 $as_echo "/* confdefs.h */" > confdefs.h
2394
2395 # Predefined preprocessor variables.
2396
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_NAME "$PACKAGE_NAME"
2399 _ACEOF
2400
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2403 _ACEOF
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2407 _ACEOF
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_STRING "$PACKAGE_STRING"
2411 _ACEOF
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_URL "$PACKAGE_URL"
2419 _ACEOF
2420
2421
2422 # Let the site file select an alternate cache file if it wants to.
2423 # Prefer an explicitly selected file to automatically selected ones.
2424 ac_site_file1=NONE
2425 ac_site_file2=NONE
2426 if test -n "$CONFIG_SITE"; then
2427 # We do not want a PATH search for config.site.
2428 case $CONFIG_SITE in #((
2429 -*) ac_site_file1=./$CONFIG_SITE;;
2430 */*) ac_site_file1=$CONFIG_SITE;;
2431 *) ac_site_file1=./$CONFIG_SITE;;
2432 esac
2433 elif test "x$prefix" != xNONE; then
2434 ac_site_file1=$prefix/share/config.site
2435 ac_site_file2=$prefix/etc/config.site
2436 else
2437 ac_site_file1=$ac_default_prefix/share/config.site
2438 ac_site_file2=$ac_default_prefix/etc/config.site
2439 fi
2440 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2441 do
2442 test "x$ac_site_file" = xNONE && continue
2443 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2445 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2446 sed 's/^/| /' "$ac_site_file" >&5
2447 . "$ac_site_file" \
2448 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2450 as_fn_error $? "failed to load site script $ac_site_file
2451 See \`config.log' for more details" "$LINENO" 5; }
2452 fi
2453 done
2454
2455 if test -r "$cache_file"; then
2456 # Some versions of bash will fail to source /dev/null (special files
2457 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2458 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460 $as_echo "$as_me: loading cache $cache_file" >&6;}
2461 case $cache_file in
2462 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463 *) . "./$cache_file";;
2464 esac
2465 fi
2466 else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468 $as_echo "$as_me: creating cache $cache_file" >&6;}
2469 >$cache_file
2470 fi
2471
2472 gt_needs="$gt_needs "
2473 # Check that the precious variables saved in the cache have kept the same
2474 # value.
2475 ac_cache_corrupted=false
2476 for ac_var in $ac_precious_vars; do
2477 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2478 eval ac_new_set=\$ac_env_${ac_var}_set
2479 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2480 eval ac_new_val=\$ac_env_${ac_var}_value
2481 case $ac_old_set,$ac_new_set in
2482 set,)
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2484 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2485 ac_cache_corrupted=: ;;
2486 ,set)
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2489 ac_cache_corrupted=: ;;
2490 ,);;
2491 *)
2492 if test "x$ac_old_val" != "x$ac_new_val"; then
2493 # differences in whitespace do not lead to failure.
2494 ac_old_val_w=`echo x $ac_old_val`
2495 ac_new_val_w=`echo x $ac_new_val`
2496 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2498 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2499 ac_cache_corrupted=:
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2502 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2503 eval $ac_var=\$ac_old_val
2504 fi
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2506 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2508 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2509 fi;;
2510 esac
2511 # Pass precious variables to config.status.
2512 if test "$ac_new_set" = set; then
2513 case $ac_new_val in
2514 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2515 *) ac_arg=$ac_var=$ac_new_val ;;
2516 esac
2517 case " $ac_configure_args " in
2518 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2519 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2520 esac
2521 fi
2522 done
2523 if $ac_cache_corrupted; then
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2527 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2528 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2529 fi
2530 ## -------------------- ##
2531 ## Main body of script. ##
2532 ## -------------------- ##
2533
2534 ac_ext=c
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539
2540
2541
2542 ac_aux_dir=
2543 for ac_dir in . "$srcdir"/.; do
2544 if test -f "$ac_dir/install-sh"; then
2545 ac_aux_dir=$ac_dir
2546 ac_install_sh="$ac_aux_dir/install-sh -c"
2547 break
2548 elif test -f "$ac_dir/install.sh"; then
2549 ac_aux_dir=$ac_dir
2550 ac_install_sh="$ac_aux_dir/install.sh -c"
2551 break
2552 elif test -f "$ac_dir/shtool"; then
2553 ac_aux_dir=$ac_dir
2554 ac_install_sh="$ac_aux_dir/shtool install -c"
2555 break
2556 fi
2557 done
2558 if test -z "$ac_aux_dir"; then
2559 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2560 fi
2561
2562 # These three variables are undocumented and unsupported,
2563 # and are intended to be withdrawn in a future Autoconf release.
2564 # They can cause serious problems if a builder's source tree is in a directory
2565 # whose full name contains unusual characters.
2566 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2567 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2568 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2569
2570
2571
2572
2573
2574 # Make sure we can run config.sub.
2575 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2576 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2579 $as_echo_n "checking build system type... " >&6; }
2580 if ${ac_cv_build+:} false; then :
2581 $as_echo_n "(cached) " >&6
2582 else
2583 ac_build_alias=$build_alias
2584 test "x$ac_build_alias" = x &&
2585 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2586 test "x$ac_build_alias" = x &&
2587 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2588 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2589 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2590
2591 fi
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2593 $as_echo "$ac_cv_build" >&6; }
2594 case $ac_cv_build in
2595 *-*-*) ;;
2596 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2597 esac
2598 build=$ac_cv_build
2599 ac_save_IFS=$IFS; IFS='-'
2600 set x $ac_cv_build
2601 shift
2602 build_cpu=$1
2603 build_vendor=$2
2604 shift; shift
2605 # Remember, the first character of IFS is used to create $*,
2606 # except with old shells:
2607 build_os=$*
2608 IFS=$ac_save_IFS
2609 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2610
2611
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2613 $as_echo_n "checking host system type... " >&6; }
2614 if ${ac_cv_host+:} false; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test "x$host_alias" = x; then
2618 ac_cv_host=$ac_cv_build
2619 else
2620 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2621 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2622 fi
2623
2624 fi
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2626 $as_echo "$ac_cv_host" >&6; }
2627 case $ac_cv_host in
2628 *-*-*) ;;
2629 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2630 esac
2631 host=$ac_cv_host
2632 ac_save_IFS=$IFS; IFS='-'
2633 set x $ac_cv_host
2634 shift
2635 host_cpu=$1
2636 host_vendor=$2
2637 shift; shift
2638 # Remember, the first character of IFS is used to create $*,
2639 # except with old shells:
2640 host_os=$*
2641 IFS=$ac_save_IFS
2642 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2643
2644
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2646 $as_echo_n "checking target system type... " >&6; }
2647 if ${ac_cv_target+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if test "x$target_alias" = x; then
2651 ac_cv_target=$ac_cv_host
2652 else
2653 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2654 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2655 fi
2656
2657 fi
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2659 $as_echo "$ac_cv_target" >&6; }
2660 case $ac_cv_target in
2661 *-*-*) ;;
2662 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2663 esac
2664 target=$ac_cv_target
2665 ac_save_IFS=$IFS; IFS='-'
2666 set x $ac_cv_target
2667 shift
2668 target_cpu=$1
2669 target_vendor=$2
2670 shift; shift
2671 # Remember, the first character of IFS is used to create $*,
2672 # except with old shells:
2673 target_os=$*
2674 IFS=$ac_save_IFS
2675 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2676
2677
2678 # The aliases save the names the user supplied, while $host etc.
2679 # will get canonicalized.
2680 test -n "$target_alias" &&
2681 test "$program_prefix$program_suffix$program_transform_name" = \
2682 NONENONEs,x,x, &&
2683 program_prefix=${target_alias}-
2684
2685 am__api_version='1.15'
2686
2687 # Find a good install program. We prefer a C program (faster),
2688 # so one script is as good as another. But avoid the broken or
2689 # incompatible versions:
2690 # SysV /etc/install, /usr/sbin/install
2691 # SunOS /usr/etc/install
2692 # IRIX /sbin/install
2693 # AIX /bin/install
2694 # AmigaOS /C/install, which installs bootblocks on floppy discs
2695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2698 # OS/2's system install, which has a completely different semantic
2699 # ./install, which can be erroneously created by make from ./install.sh.
2700 # Reject install programs that cannot install multiple files.
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2702 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2703 if test -z "$INSTALL"; then
2704 if ${ac_cv_path_install+:} false; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 # Account for people who put trailing slashes in PATH elements.
2713 case $as_dir/ in #((
2714 ./ | .// | /[cC]/* | \
2715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2716 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2717 /usr/ucb/* ) ;;
2718 *)
2719 # OSF1 and SCO ODT 3.0 have their own names for install.
2720 # Don't use installbsd from OSF since it installs stuff as root
2721 # by default.
2722 for ac_prog in ginstall scoinst install; do
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2725 if test $ac_prog = install &&
2726 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2727 # AIX install. It has an incompatible calling convention.
2728 :
2729 elif test $ac_prog = install &&
2730 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2731 # program-specific install script used by HP pwplus--don't use.
2732 :
2733 else
2734 rm -rf conftest.one conftest.two conftest.dir
2735 echo one > conftest.one
2736 echo two > conftest.two
2737 mkdir conftest.dir
2738 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2739 test -s conftest.one && test -s conftest.two &&
2740 test -s conftest.dir/conftest.one &&
2741 test -s conftest.dir/conftest.two
2742 then
2743 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2744 break 3
2745 fi
2746 fi
2747 fi
2748 done
2749 done
2750 ;;
2751 esac
2752
2753 done
2754 IFS=$as_save_IFS
2755
2756 rm -rf conftest.one conftest.two conftest.dir
2757
2758 fi
2759 if test "${ac_cv_path_install+set}" = set; then
2760 INSTALL=$ac_cv_path_install
2761 else
2762 # As a last resort, use the slow shell script. Don't cache a
2763 # value for INSTALL within a source directory, because that will
2764 # break other packages using the cache if that directory is
2765 # removed, or if the value is a relative name.
2766 INSTALL=$ac_install_sh
2767 fi
2768 fi
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2770 $as_echo "$INSTALL" >&6; }
2771
2772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2773 # It thinks the first close brace ends the variable substitution.
2774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2775
2776 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2777
2778 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2779
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2781 $as_echo_n "checking whether build environment is sane... " >&6; }
2782 # Reject unsafe characters in $srcdir or the absolute working directory
2783 # name. Accept space and tab only in the latter.
2784 am_lf='
2785 '
2786 case `pwd` in
2787 *[\\\"\#\$\&\'\`$am_lf]*)
2788 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2789 esac
2790 case $srcdir in
2791 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2792 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2793 esac
2794
2795 # Do 'set' in a subshell so we don't clobber the current shell's
2796 # arguments. Must try -L first in case configure is actually a
2797 # symlink; some systems play weird games with the mod time of symlinks
2798 # (eg FreeBSD returns the mod time of the symlink's containing
2799 # directory).
2800 if (
2801 am_has_slept=no
2802 for am_try in 1 2; do
2803 echo "timestamp, slept: $am_has_slept" > conftest.file
2804 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2805 if test "$*" = "X"; then
2806 # -L didn't work.
2807 set X `ls -t "$srcdir/configure" conftest.file`
2808 fi
2809 if test "$*" != "X $srcdir/configure conftest.file" \
2810 && test "$*" != "X conftest.file $srcdir/configure"; then
2811
2812 # If neither matched, then we have a broken ls. This can happen
2813 # if, for instance, CONFIG_SHELL is bash and it inherits a
2814 # broken ls alias from the environment. This has actually
2815 # happened. Such a system could not be considered "sane".
2816 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2817 alias in your environment" "$LINENO" 5
2818 fi
2819 if test "$2" = conftest.file || test $am_try -eq 2; then
2820 break
2821 fi
2822 # Just in case.
2823 sleep 1
2824 am_has_slept=yes
2825 done
2826 test "$2" = conftest.file
2827 )
2828 then
2829 # Ok.
2830 :
2831 else
2832 as_fn_error $? "newly created file is older than distributed files!
2833 Check your system clock" "$LINENO" 5
2834 fi
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2836 $as_echo "yes" >&6; }
2837 # If we didn't sleep, we still need to ensure time stamps of config.status and
2838 # generated files are strictly newer.
2839 am_sleep_pid=
2840 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2841 ( sleep 1 ) &
2842 am_sleep_pid=$!
2843 fi
2844
2845 rm -f conftest.file
2846
2847 test "$program_prefix" != NONE &&
2848 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2849 # Use a double $ so make ignores it.
2850 test "$program_suffix" != NONE &&
2851 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2852 # Double any \ or $.
2853 # By default was `s,x,x', remove it if useless.
2854 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2855 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2856
2857 # Expand $ac_aux_dir to an absolute path.
2858 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2859
2860 if test x"${MISSING+set}" != xset; then
2861 case $am_aux_dir in
2862 *\ * | *\ *)
2863 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2864 *)
2865 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2866 esac
2867 fi
2868 # Use eval to expand $SHELL
2869 if eval "$MISSING --is-lightweight"; then
2870 am_missing_run="$MISSING "
2871 else
2872 am_missing_run=
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2874 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2875 fi
2876
2877 if test x"${install_sh+set}" != xset; then
2878 case $am_aux_dir in
2879 *\ * | *\ *)
2880 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2881 *)
2882 install_sh="\${SHELL} $am_aux_dir/install-sh"
2883 esac
2884 fi
2885
2886 # Installed binaries are usually stripped using 'strip' when the user
2887 # run "make install-strip". However 'strip' might not be the right
2888 # tool to use in cross-compilation environments, therefore Automake
2889 # will honor the 'STRIP' environment variable to overrule this program.
2890 if test "$cross_compiling" != no; then
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}strip; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_STRIP+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$STRIP"; then
2900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 STRIP=$ac_cv_prog_STRIP
2920 if test -n "$STRIP"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2922 $as_echo "$STRIP" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928
2929 fi
2930 if test -z "$ac_cv_prog_STRIP"; then
2931 ac_ct_STRIP=$STRIP
2932 # Extract the first word of "strip", so it can be a program name with args.
2933 set dummy strip; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$ac_ct_STRIP"; then
2940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_ac_ct_STRIP="strip"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2960 if test -n "$ac_ct_STRIP"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2962 $as_echo "$ac_ct_STRIP" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968 if test "x$ac_ct_STRIP" = x; then
2969 STRIP=":"
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977 STRIP=$ac_ct_STRIP
2978 fi
2979 else
2980 STRIP="$ac_cv_prog_STRIP"
2981 fi
2982
2983 fi
2984 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2985
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2987 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2988 if test -z "$MKDIR_P"; then
2989 if ${ac_cv_path_mkdir+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_prog in mkdir gmkdir; do
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3000 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3001 'mkdir (GNU coreutils) '* | \
3002 'mkdir (coreutils) '* | \
3003 'mkdir (fileutils) '4.1*)
3004 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3005 break 3;;
3006 esac
3007 done
3008 done
3009 done
3010 IFS=$as_save_IFS
3011
3012 fi
3013
3014 test -d ./--version && rmdir ./--version
3015 if test "${ac_cv_path_mkdir+set}" = set; then
3016 MKDIR_P="$ac_cv_path_mkdir -p"
3017 else
3018 # As a last resort, use the slow shell script. Don't cache a
3019 # value for MKDIR_P within a source directory, because that will
3020 # break other packages using the cache if that directory is
3021 # removed, or if the value is a relative name.
3022 MKDIR_P="$ac_install_sh -d"
3023 fi
3024 fi
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3026 $as_echo "$MKDIR_P" >&6; }
3027
3028 for ac_prog in gawk mawk nawk awk
3029 do
3030 # Extract the first word of "$ac_prog", so it can be a program name with args.
3031 set dummy $ac_prog; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_AWK+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 if test -n "$AWK"; then
3038 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3039 else
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3042 do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047 ac_cv_prog_AWK="$ac_prog"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi
3056 fi
3057 AWK=$ac_cv_prog_AWK
3058 if test -n "$AWK"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3060 $as_echo "$AWK" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3064 fi
3065
3066
3067 test -n "$AWK" && break
3068 done
3069
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3071 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3072 set x ${MAKE-make}
3073 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3074 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3075 $as_echo_n "(cached) " >&6
3076 else
3077 cat >conftest.make <<\_ACEOF
3078 SHELL = /bin/sh
3079 all:
3080 @echo '@@@%%%=$(MAKE)=@@@%%%'
3081 _ACEOF
3082 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3083 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3084 *@@@%%%=?*=@@@%%%*)
3085 eval ac_cv_prog_make_${ac_make}_set=yes;;
3086 *)
3087 eval ac_cv_prog_make_${ac_make}_set=no;;
3088 esac
3089 rm -f conftest.make
3090 fi
3091 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093 $as_echo "yes" >&6; }
3094 SET_MAKE=
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 SET_MAKE="MAKE=${MAKE-make}"
3099 fi
3100
3101 rm -rf .tst 2>/dev/null
3102 mkdir .tst 2>/dev/null
3103 if test -d .tst; then
3104 am__leading_dot=.
3105 else
3106 am__leading_dot=_
3107 fi
3108 rmdir .tst 2>/dev/null
3109
3110 # Check whether --enable-silent-rules was given.
3111 if test "${enable_silent_rules+set}" = set; then :
3112 enableval=$enable_silent_rules;
3113 fi
3114
3115 case $enable_silent_rules in # (((
3116 yes) AM_DEFAULT_VERBOSITY=0;;
3117 no) AM_DEFAULT_VERBOSITY=1;;
3118 *) AM_DEFAULT_VERBOSITY=1;;
3119 esac
3120 am_make=${MAKE-make}
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3122 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3123 if ${am_cv_make_support_nested_variables+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 if $as_echo 'TRUE=$(BAR$(V))
3127 BAR0=false
3128 BAR1=true
3129 V=1
3130 am__doit:
3131 @$(TRUE)
3132 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3133 am_cv_make_support_nested_variables=yes
3134 else
3135 am_cv_make_support_nested_variables=no
3136 fi
3137 fi
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3139 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3140 if test $am_cv_make_support_nested_variables = yes; then
3141 AM_V='$(V)'
3142 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3143 else
3144 AM_V=$AM_DEFAULT_VERBOSITY
3145 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3146 fi
3147 AM_BACKSLASH='\'
3148
3149 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3150 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3151 # is not polluted with repeated "-I."
3152 am__isrc=' -I$(srcdir)'
3153 # test to see if srcdir already configured
3154 if test -f $srcdir/config.status; then
3155 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3156 fi
3157 fi
3158
3159 # test whether we have cygpath
3160 if test -z "$CYGPATH_W"; then
3161 if (cygpath --version) >/dev/null 2>/dev/null; then
3162 CYGPATH_W='cygpath -w'
3163 else
3164 CYGPATH_W=echo
3165 fi
3166 fi
3167
3168
3169 # Define the identity of the package.
3170 PACKAGE='adonthell'
3171 VERSION='0.3.8'
3172
3173
3174 cat >>confdefs.h <<_ACEOF
3175 #define PACKAGE "$PACKAGE"
3176 _ACEOF
3177
3178
3179 cat >>confdefs.h <<_ACEOF
3180 #define VERSION "$VERSION"
3181 _ACEOF
3182
3183 # Some tools Automake needs.
3184
3185 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3186
3187
3188 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3189
3190
3191 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3192
3193
3194 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3195
3196
3197 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3198
3199 # For better backward compatibility. To be removed once Automake 1.9.x
3200 # dies out for good. For more background, see:
3201 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3202 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3203 mkdir_p='$(MKDIR_P)'
3204
3205 # We need awk for the "check" target (and possibly the TAP driver). The
3206 # system "awk" is bad on some platforms.
3207 # Always define AMTAR for backward compatibility. Yes, it's still used
3208 # in the wild :-( We should find a proper way to deprecate it ...
3209 AMTAR='$${TAR-tar}'
3210
3211
3212 # We'll loop over all known methods to create a tar archive until one works.
3213 _am_tools='gnutar pax cpio none'
3214
3215 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3216
3217
3218
3219
3220
3221
3222 # POSIX will say in a future version that running "rm -f" with no argument
3223 # is OK; and we want to be able to make that assumption in our Makefile
3224 # recipes. So use an aggressive probe to check that the usage we want is
3225 # actually supported "in the wild" to an acceptable degree.
3226 # See automake bug#10828.
3227 # To make any issue more visible, cause the running configure to be aborted
3228 # by default if the 'rm' program in use doesn't match our expectations; the
3229 # user can still override this though.
3230 if rm -f && rm -fr && rm -rf; then : OK; else
3231 cat >&2 <<'END'
3232 Oops!
3233
3234 Your 'rm' program seems unable to run without file operands specified
3235 on the command line, even when the '-f' option is present. This is contrary
3236 to the behaviour of most rm programs out there, and not conforming with
3237 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3238
3239 Please tell [email protected] about your system, including the value
3240 of your $PATH and any error possibly output before this message. This
3241 can help us improve future automake versions.
3242
3243 END
3244 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3245 echo 'Configuration will proceed anyway, since you have set the' >&2
3246 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3247 echo >&2
3248 else
3249 cat >&2 <<'END'
3250 Aborting the configuration process, to ensure you take notice of the issue.
3251
3252 You can download and install GNU coreutils to get an 'rm' implementation
3253 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3254
3255 If you want to complete the configuration process using your problematic
3256 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3257 to "yes", and re-run configure.
3258
3259 END
3260 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3261 fi
3262 fi
3263
3264 ac_config_headers="$ac_config_headers config.h"
3265
3266
3267
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3269 $as_echo_n "checking whether ln -s works... " >&6; }
3270 LN_S=$as_ln_s
3271 if test "$LN_S" = "ln -s"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3276 $as_echo "no, using $LN_S" >&6; }
3277 fi
3278
3279 ac_ext=cpp
3280 ac_cpp='$CXXCPP $CPPFLAGS'
3281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3284 if test -z "$CXX"; then
3285 if test -n "$CCC"; then
3286 CXX=$CCC
3287 else
3288 if test -n "$ac_tool_prefix"; then
3289 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3290 do
3291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_CXX+:} false; then :
3296 $as_echo_n "(cached) " >&6
3297 else
3298 if test -n "$CXX"; then
3299 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304 IFS=$as_save_IFS
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 break 2
3311 fi
3312 done
3313 done
3314 IFS=$as_save_IFS
3315
3316 fi
3317 fi
3318 CXX=$ac_cv_prog_CXX
3319 if test -n "$CXX"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3321 $as_echo "$CXX" >&6; }
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3326
3327
3328 test -n "$CXX" && break
3329 done
3330 fi
3331 if test -z "$CXX"; then
3332 ac_ct_CXX=$CXX
3333 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3334 do
3335 # Extract the first word of "$ac_prog", so it can be a program name with args.
3336 set dummy $ac_prog; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3340 $as_echo_n "(cached) " >&6
3341 else
3342 if test -n "$ac_ct_CXX"; then
3343 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_ac_ct_CXX="$ac_prog"
3353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356 done
3357 done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3363 if test -n "$ac_ct_CXX"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3365 $as_echo "$ac_ct_CXX" >&6; }
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371
3372 test -n "$ac_ct_CXX" && break
3373 done
3374
3375 if test "x$ac_ct_CXX" = x; then
3376 CXX="g++"
3377 else
3378 case $cross_compiling:$ac_tool_warned in
3379 yes:)
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382 ac_tool_warned=yes ;;
3383 esac
3384 CXX=$ac_ct_CXX
3385 fi
3386 fi
3387
3388 fi
3389 fi
3390 # Provide some information about the compiler.
3391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3392 set X $ac_compile
3393 ac_compiler=$2
3394 for ac_option in --version -v -V -qversion; do
3395 { { ac_try="$ac_compiler $ac_option >&5"
3396 case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3403 ac_status=$?
3404 if test -s conftest.err; then
3405 sed '10a\
3406 ... rest of stderr output deleted ...
3407 10q' conftest.err >conftest.er1
3408 cat conftest.er1 >&5
3409 fi
3410 rm -f conftest.er1 conftest.err
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }
3413 done
3414
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3417
3418 int
3419 main ()
3420 {
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 ac_clean_files_save=$ac_clean_files
3427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3428 # Try to create an executable without -o first, disregard a.out.
3429 # It will help us diagnose broken compilers, and finding out an intuition
3430 # of exeext.
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3432 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3433 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3434
3435 # The possible output files:
3436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3437
3438 ac_rmfiles=
3439 for ac_file in $ac_files
3440 do
3441 case $ac_file in
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3444 esac
3445 done
3446 rm -f $ac_rmfiles
3447
3448 if { { ac_try="$ac_link_default"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link_default") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3461 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3462 # so that the user can short-circuit this test for compilers unknown to
3463 # Autoconf.
3464 for ac_file in $ac_files ''
3465 do
3466 test -f "$ac_file" || continue
3467 case $ac_file in
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3469 ;;
3470 [ab].out )
3471 # We found the default executable, but exeext='' is most
3472 # certainly right.
3473 break;;
3474 *.* )
3475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3476 then :; else
3477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478 fi
3479 # We set ac_cv_exeext here because the later test for it is not
3480 # safe: cross compilers may not add the suffix if given an `-o'
3481 # argument, so we may need to know it at that point already.
3482 # Even if this section looks crufty: it has the advantage of
3483 # actually working.
3484 break;;
3485 * )
3486 break;;
3487 esac
3488 done
3489 test "$ac_cv_exeext" = no && ac_cv_exeext=
3490
3491 else
3492 ac_file=''
3493 fi
3494 if test -z "$ac_file"; then :
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error 77 "C++ compiler cannot create executables
3503 See \`config.log' for more details" "$LINENO" 5; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3506 $as_echo "yes" >&6; }
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3509 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3511 $as_echo "$ac_file" >&6; }
3512 ac_exeext=$ac_cv_exeext
3513
3514 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3515 ac_clean_files=$ac_clean_files_save
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3517 $as_echo_n "checking for suffix of executables... " >&6; }
3518 if { { ac_try="$ac_link"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_link") 2>&5
3526 ac_status=$?
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3530 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3531 # work properly (i.e., refer to `conftest.exe'), while it won't with
3532 # `rm'.
3533 for ac_file in conftest.exe conftest conftest.*; do
3534 test -f "$ac_file" || continue
3535 case $ac_file in
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538 break;;
3539 * ) break;;
3540 esac
3541 done
3542 else
3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details" "$LINENO" 5; }
3547 fi
3548 rm -f conftest conftest$ac_cv_exeext
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3550 $as_echo "$ac_cv_exeext" >&6; }
3551
3552 rm -f conftest.$ac_ext
3553 EXEEXT=$ac_cv_exeext
3554 ac_exeext=$EXEEXT
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557 #include <stdio.h>
3558 int
3559 main ()
3560 {
3561 FILE *f = fopen ("conftest.out", "w");
3562 return ferror (f) || fclose (f) != 0;
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 ac_clean_files="$ac_clean_files conftest.out"
3569 # Check that the compiler produces executables we can run. If not, either
3570 # the compiler is broken, or we cross compile.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3572 $as_echo_n "checking whether we are cross compiling... " >&6; }
3573 if test "$cross_compiling" != yes; then
3574 { { ac_try="$ac_link"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link") 2>&5
3582 ac_status=$?
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }
3585 if { ac_try='./conftest$ac_cv_exeext'
3586 { { case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592 (eval "$ac_try") 2>&5
3593 ac_status=$?
3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }; }; then
3596 cross_compiling=no
3597 else
3598 if test "$cross_compiling" = maybe; then
3599 cross_compiling=yes
3600 else
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "cannot run C++ compiled programs.
3604 If you meant to cross compile, use \`--host'.
3605 See \`config.log' for more details" "$LINENO" 5; }
3606 fi
3607 fi
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3610 $as_echo "$cross_compiling" >&6; }
3611
3612 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3613 ac_clean_files=$ac_clean_files_save
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3615 $as_echo_n "checking for suffix of object files... " >&6; }
3616 if ${ac_cv_objext+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3621
3622 int
3623 main ()
3624 {
3625
3626 ;
3627 return 0;
3628 }
3629 _ACEOF
3630 rm -f conftest.o conftest.obj
3631 if { { ac_try="$ac_compile"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638 (eval "$ac_compile") 2>&5
3639 ac_status=$?
3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }; then :
3642 for ac_file in conftest.o conftest.obj conftest.*; do
3643 test -f "$ac_file" || continue;
3644 case $ac_file in
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3647 break;;
3648 esac
3649 done
3650 else
3651 $as_echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error $? "cannot compute suffix of object files: cannot compile
3657 See \`config.log' for more details" "$LINENO" 5; }
3658 fi
3659 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3660 fi
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3662 $as_echo "$ac_cv_objext" >&6; }
3663 OBJEXT=$ac_cv_objext
3664 ac_objext=$OBJEXT
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3666 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3667 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3672
3673 int
3674 main ()
3675 {
3676 #ifndef __GNUC__
3677 choke me
3678 #endif
3679
3680 ;
3681 return 0;
3682 }
3683 _ACEOF
3684 if ac_fn_cxx_try_compile "$LINENO"; then :
3685 ac_compiler_gnu=yes
3686 else
3687 ac_compiler_gnu=no
3688 fi
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3691
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3694 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3696 GXX=yes
3697 else
3698 GXX=
3699 fi
3700 ac_test_CXXFLAGS=${CXXFLAGS+set}
3701 ac_save_CXXFLAGS=$CXXFLAGS
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3703 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3704 if ${ac_cv_prog_cxx_g+:} false; then :
3705 $as_echo_n "(cached) " >&6
3706 else
3707 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3708 ac_cxx_werror_flag=yes
3709 ac_cv_prog_cxx_g=no
3710 CXXFLAGS="-g"
3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713
3714 int
3715 main ()
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 if ac_fn_cxx_try_compile "$LINENO"; then :
3723 ac_cv_prog_cxx_g=yes
3724 else
3725 CXXFLAGS=""
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 int
3730 main ()
3731 {
3732
3733 ;
3734 return 0;
3735 }
3736 _ACEOF
3737 if ac_fn_cxx_try_compile "$LINENO"; then :
3738
3739 else
3740 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3741 CXXFLAGS="-g"
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744
3745 int
3746 main ()
3747 {
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_cxx_try_compile "$LINENO"; then :
3754 ac_cv_prog_cxx_g=yes
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3764 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3765 if test "$ac_test_CXXFLAGS" = set; then
3766 CXXFLAGS=$ac_save_CXXFLAGS
3767 elif test $ac_cv_prog_cxx_g = yes; then
3768 if test "$GXX" = yes; then
3769 CXXFLAGS="-g -O2"
3770 else
3771 CXXFLAGS="-g"
3772 fi
3773 else
3774 if test "$GXX" = yes; then
3775 CXXFLAGS="-O2"
3776 else
3777 CXXFLAGS=
3778 fi
3779 fi
3780 ac_ext=c
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785 DEPDIR="${am__leading_dot}deps"
3786
3787 ac_config_commands="$ac_config_commands depfiles"
3788
3789
3790 am_make=${MAKE-make}
3791 cat > confinc << 'END'
3792 am__doit:
3793 @echo this is the am__doit target
3794 .PHONY: am__doit
3795 END
3796 # If we don't find an include directive, just comment out the code.
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3798 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3799 am__include="#"
3800 am__quote=
3801 _am_result=none
3802 # First try GNU make style include.
3803 echo "include confinc" > confmf
3804 # Ignore all kinds of additional output from 'make'.
3805 case `$am_make -s -f confmf 2> /dev/null` in #(
3806 *the\ am__doit\ target*)
3807 am__include=include
3808 am__quote=
3809 _am_result=GNU
3810 ;;
3811 esac
3812 # Now try BSD make style include.
3813 if test "$am__include" = "#"; then
3814 echo '.include "confinc"' > confmf
3815 case `$am_make -s -f confmf 2> /dev/null` in #(
3816 *the\ am__doit\ target*)
3817 am__include=.include
3818 am__quote="\""
3819 _am_result=BSD
3820 ;;
3821 esac
3822 fi
3823
3824
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3826 $as_echo "$_am_result" >&6; }
3827 rm -f confinc confmf
3828
3829 # Check whether --enable-dependency-tracking was given.
3830 if test "${enable_dependency_tracking+set}" = set; then :
3831 enableval=$enable_dependency_tracking;
3832 fi
3833
3834 if test "x$enable_dependency_tracking" != xno; then
3835 am_depcomp="$ac_aux_dir/depcomp"
3836 AMDEPBACKSLASH='\'
3837 am__nodep='_no'
3838 fi
3839 if test "x$enable_dependency_tracking" != xno; then
3840 AMDEP_TRUE=
3841 AMDEP_FALSE='#'
3842 else
3843 AMDEP_TRUE='#'
3844 AMDEP_FALSE=
3845 fi
3846
3847
3848
3849 depcc="$CXX" am_compiler_list=
3850
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3852 $as_echo_n "checking dependency style of $depcc... " >&6; }
3853 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3857 # We make a subdir and do the tests there. Otherwise we can end up
3858 # making bogus files that we don't know about and never remove. For
3859 # instance it was reported that on HP-UX the gcc test will end up
3860 # making a dummy file named 'D' -- because '-MD' means "put the output
3861 # in D".
3862 rm -rf conftest.dir
3863 mkdir conftest.dir
3864 # Copy depcomp to subdir because otherwise we won't find it if we're
3865 # using a relative directory.
3866 cp "$am_depcomp" conftest.dir
3867 cd conftest.dir
3868 # We will build objects and dependencies in a subdirectory because
3869 # it helps to detect inapplicable dependency modes. For instance
3870 # both Tru64's cc and ICC support -MD to output dependencies as a
3871 # side effect of compilation, but ICC will put the dependencies in
3872 # the current directory while Tru64 will put them in the object
3873 # directory.
3874 mkdir sub
3875
3876 am_cv_CXX_dependencies_compiler_type=none
3877 if test "$am_compiler_list" = ""; then
3878 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3879 fi
3880 am__universal=false
3881 case " $depcc " in #(
3882 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3883 esac
3884
3885 for depmode in $am_compiler_list; do
3886 # Setup a source with many dependencies, because some compilers
3887 # like to wrap large dependency lists on column 80 (with \), and
3888 # we should not choose a depcomp mode which is confused by this.
3889 #
3890 # We need to recreate these files for each test, as the compiler may
3891 # overwrite some of them when testing with obscure command lines.
3892 # This happens at least with the AIX C compiler.
3893 : > sub/conftest.c
3894 for i in 1 2 3 4 5 6; do
3895 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3896 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3897 # Solaris 10 /bin/sh.
3898 echo '/* dummy */' > sub/conftst$i.h
3899 done
3900 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3901
3902 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3903 # mode. It turns out that the SunPro C++ compiler does not properly
3904 # handle '-M -o', and we need to detect this. Also, some Intel
3905 # versions had trouble with output in subdirs.
3906 am__obj=sub/conftest.${OBJEXT-o}
3907 am__minus_obj="-o $am__obj"
3908 case $depmode in
3909 gcc)
3910 # This depmode causes a compiler race in universal mode.
3911 test "$am__universal" = false || continue
3912 ;;
3913 nosideeffect)
3914 # After this tag, mechanisms are not by side-effect, so they'll
3915 # only be used when explicitly requested.
3916 if test "x$enable_dependency_tracking" = xyes; then
3917 continue
3918 else
3919 break
3920 fi
3921 ;;
3922 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3923 # This compiler won't grok '-c -o', but also, the minuso test has
3924 # not run yet. These depmodes are late enough in the game, and
3925 # so weak that their functioning should not be impacted.
3926 am__obj=conftest.${OBJEXT-o}
3927 am__minus_obj=
3928 ;;
3929 none) break ;;
3930 esac
3931 if depmode=$depmode \
3932 source=sub/conftest.c object=$am__obj \
3933 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3934 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3935 >/dev/null 2>conftest.err &&
3936 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3937 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3938 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3939 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3940 # icc doesn't choke on unknown options, it will just issue warnings
3941 # or remarks (even with -Werror). So we grep stderr for any message
3942 # that says an option was ignored or not supported.
3943 # When given -MP, icc 7.0 and 7.1 complain thusly:
3944 # icc: Command line warning: ignoring option '-M'; no argument required
3945 # The diagnosis changed in icc 8.0:
3946 # icc: Command line remark: option '-MP' not supported
3947 if (grep 'ignoring option' conftest.err ||
3948 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3949 am_cv_CXX_dependencies_compiler_type=$depmode
3950 break
3951 fi
3952 fi
3953 done
3954
3955 cd ..
3956 rm -rf conftest.dir
3957 else
3958 am_cv_CXX_dependencies_compiler_type=none
3959 fi
3960
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3963 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3964 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3965
3966 if
3967 test "x$enable_dependency_tracking" != xno \
3968 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3969 am__fastdepCXX_TRUE=
3970 am__fastdepCXX_FALSE='#'
3971 else
3972 am__fastdepCXX_TRUE='#'
3973 am__fastdepCXX_FALSE=
3974 fi
3975
3976
3977 ac_ext=cpp
3978 ac_cpp='$CXXCPP $CPPFLAGS'
3979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3983 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3984 if test -z "$CXXCPP"; then
3985 if ${ac_cv_prog_CXXCPP+:} false; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 # Double quotes because CXXCPP needs to be expanded
3989 for CXXCPP in "$CXX -E" "/lib/cpp"
3990 do
3991 ac_preproc_ok=false
3992 for ac_cxx_preproc_warn_flag in '' yes
3993 do
3994 # Use a header file that comes with gcc, so configuring glibc
3995 # with a fresh cross-compiler works.
3996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3997 # <limits.h> exists even on freestanding compilers.
3998 # On the NeXT, cc -E runs the code through the compiler's parser,
3999 # not just through cpp. "Syntax error" is here to catch this case.
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #ifdef __STDC__
4003 # include <limits.h>
4004 #else
4005 # include <assert.h>
4006 #endif
4007 Syntax error
4008 _ACEOF
4009 if ac_fn_cxx_try_cpp "$LINENO"; then :
4010
4011 else
4012 # Broken: fails on valid input.
4013 continue
4014 fi
4015 rm -f conftest.err conftest.i conftest.$ac_ext
4016
4017 # OK, works on sane cases. Now check whether nonexistent headers
4018 # can be detected and how.
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021 #include <ac_nonexistent.h>
4022 _ACEOF
4023 if ac_fn_cxx_try_cpp "$LINENO"; then :
4024 # Broken: success on invalid input.
4025 continue
4026 else
4027 # Passes both tests.
4028 ac_preproc_ok=:
4029 break
4030 fi
4031 rm -f conftest.err conftest.i conftest.$ac_ext
4032
4033 done
4034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4035 rm -f conftest.i conftest.err conftest.$ac_ext
4036 if $ac_preproc_ok; then :
4037 break
4038 fi
4039
4040 done
4041 ac_cv_prog_CXXCPP=$CXXCPP
4042
4043 fi
4044 CXXCPP=$ac_cv_prog_CXXCPP
4045 else
4046 ac_cv_prog_CXXCPP=$CXXCPP
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4049 $as_echo "$CXXCPP" >&6; }
4050 ac_preproc_ok=false
4051 for ac_cxx_preproc_warn_flag in '' yes
4052 do
4053 # Use a header file that comes with gcc, so configuring glibc
4054 # with a fresh cross-compiler works.
4055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4056 # <limits.h> exists even on freestanding compilers.
4057 # On the NeXT, cc -E runs the code through the compiler's parser,
4058 # not just through cpp. "Syntax error" is here to catch this case.
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #ifdef __STDC__
4062 # include <limits.h>
4063 #else
4064 # include <assert.h>
4065 #endif
4066 Syntax error
4067 _ACEOF
4068 if ac_fn_cxx_try_cpp "$LINENO"; then :
4069
4070 else
4071 # Broken: fails on valid input.
4072 continue
4073 fi
4074 rm -f conftest.err conftest.i conftest.$ac_ext
4075
4076 # OK, works on sane cases. Now check whether nonexistent headers
4077 # can be detected and how.
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <ac_nonexistent.h>
4081 _ACEOF
4082 if ac_fn_cxx_try_cpp "$LINENO"; then :
4083 # Broken: success on invalid input.
4084 continue
4085 else
4086 # Passes both tests.
4087 ac_preproc_ok=:
4088 break
4089 fi
4090 rm -f conftest.err conftest.i conftest.$ac_ext
4091
4092 done
4093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4094 rm -f conftest.i conftest.err conftest.$ac_ext
4095 if $ac_preproc_ok; then :
4096
4097 else
4098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4100 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4101 See \`config.log' for more details" "$LINENO" 5; }
4102 fi
4103
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4111 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4112 set x ${MAKE-make}
4113 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4114 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 cat >conftest.make <<\_ACEOF
4118 SHELL = /bin/sh
4119 all:
4120 @echo '@@@%%%=$(MAKE)=@@@%%%'
4121 _ACEOF
4122 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4123 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4124 *@@@%%%=?*=@@@%%%*)
4125 eval ac_cv_prog_make_${ac_make}_set=yes;;
4126 *)
4127 eval ac_cv_prog_make_${ac_make}_set=no;;
4128 esac
4129 rm -f conftest.make
4130 fi
4131 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4133 $as_echo "yes" >&6; }
4134 SET_MAKE=
4135 else
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137 $as_echo "no" >&6; }
4138 SET_MAKE="MAKE=${MAKE-make}"
4139 fi
4140
4141 if test -n "$ac_tool_prefix"; then
4142 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4143 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 $as_echo_n "checking for $ac_word... " >&6; }
4146 if ${ac_cv_prog_RANLIB+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 if test -n "$RANLIB"; then
4150 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 break 2
4162 fi
4163 done
4164 done
4165 IFS=$as_save_IFS
4166
4167 fi
4168 fi
4169 RANLIB=$ac_cv_prog_RANLIB
4170 if test -n "$RANLIB"; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4172 $as_echo "$RANLIB" >&6; }
4173 else
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4176 fi
4177
4178
4179 fi
4180 if test -z "$ac_cv_prog_RANLIB"; then
4181 ac_ct_RANLIB=$RANLIB
4182 # Extract the first word of "ranlib", so it can be a program name with args.
4183 set dummy ranlib; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 if test -n "$ac_ct_RANLIB"; then
4190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_ac_ct_RANLIB="ranlib"
4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 break 2
4202 fi
4203 done
4204 done
4205 IFS=$as_save_IFS
4206
4207 fi
4208 fi
4209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4210 if test -n "$ac_ct_RANLIB"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4212 $as_echo "$ac_ct_RANLIB" >&6; }
4213 else
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218 if test "x$ac_ct_RANLIB" = x; then
4219 RANLIB=":"
4220 else
4221 case $cross_compiling:$ac_tool_warned in
4222 yes:)
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4225 ac_tool_warned=yes ;;
4226 esac
4227 RANLIB=$ac_ct_RANLIB
4228 fi
4229 else
4230 RANLIB="$ac_cv_prog_RANLIB"
4231 fi
4232
4233
4234
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4236 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4237 if ${ac_cv_path_SED+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4241 for ac_i in 1 2 3 4 5 6 7; do
4242 ac_script="$ac_script$as_nl$ac_script"
4243 done
4244 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4245 { ac_script=; unset ac_script;}
4246 if test -z "$SED"; then
4247 ac_path_SED_found=false
4248 # Loop through the user's path and test for each of PROGNAME-LIST
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_prog in sed gsed; do
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4257 as_fn_executable_p "$ac_path_SED" || continue
4258 # Check for GNU ac_path_SED and select it if it is found.
4259 # Check for GNU $ac_path_SED
4260 case `"$ac_path_SED" --version 2>&1` in
4261 *GNU*)
4262 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4263 *)
4264 ac_count=0
4265 $as_echo_n 0123456789 >"conftest.in"
4266 while :
4267 do
4268 cat "conftest.in" "conftest.in" >"conftest.tmp"
4269 mv "conftest.tmp" "conftest.in"
4270 cp "conftest.in" "conftest.nl"
4271 $as_echo '' >> "conftest.nl"
4272 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4274 as_fn_arith $ac_count + 1 && ac_count=$as_val
4275 if test $ac_count -gt ${ac_path_SED_max-0}; then
4276 # Best one so far, save it but keep looking for a better one
4277 ac_cv_path_SED="$ac_path_SED"
4278 ac_path_SED_max=$ac_count
4279 fi
4280 # 10*(2^10) chars as input seems more than enough
4281 test $ac_count -gt 10 && break
4282 done
4283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4284 esac
4285
4286 $ac_path_SED_found && break 3
4287 done
4288 done
4289 done
4290 IFS=$as_save_IFS
4291 if test -z "$ac_cv_path_SED"; then
4292 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4293 fi
4294 else
4295 ac_cv_path_SED=$SED
4296 fi
4297
4298 fi
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4300 $as_echo "$ac_cv_path_SED" >&6; }
4301 SED="$ac_cv_path_SED"
4302 rm -f conftest.sed
4303
4304
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4306 $as_echo_n "checking whether NLS is requested... " >&6; }
4307 # Check whether --enable-nls was given.
4308 if test "${enable_nls+set}" = set; then :
4309 enableval=$enable_nls; USE_NLS=$enableval
4310 else
4311 USE_NLS=yes
4312 fi
4313
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4315 $as_echo "$USE_NLS" >&6; }
4316
4317
4318
4319
4320 GETTEXT_MACRO_VERSION=0.19
4321
4322
4323
4324
4325 # Prepare PATH_SEPARATOR.
4326 # The user is always right.
4327 if test "${PATH_SEPARATOR+set}" != set; then
4328 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4329 # contains only /bin. Note that ksh looks also at the FPATH variable,
4330 # so we have to set that as well for the test.
4331 PATH_SEPARATOR=:
4332 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4333 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4334 || PATH_SEPARATOR=';'
4335 }
4336 fi
4337
4338 # Find out how to test for executable files. Don't use a zero-byte file,
4339 # as systems may use methods other than mode bits to determine executability.
4340 cat >conf$$.file <<_ASEOF
4341 #! /bin/sh
4342 exit 0
4343 _ASEOF
4344 chmod +x conf$$.file
4345 if test -x conf$$.file >/dev/null 2>&1; then
4346 ac_executable_p="test -x"
4347 else
4348 ac_executable_p="test -f"
4349 fi
4350 rm -f conf$$.file
4351
4352 # Extract the first word of "msgfmt", so it can be a program name with args.
4353 set dummy msgfmt; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_path_MSGFMT+:} false; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 case "$MSGFMT" in
4360 [\\/]* | ?:[\\/]*)
4361 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4362 ;;
4363 *)
4364 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4365 for ac_dir in $PATH; do
4366 IFS="$ac_save_IFS"
4367 test -z "$ac_dir" && ac_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4370 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4371 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4372 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4373 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4374 break 2
4375 fi
4376 fi
4377 done
4378 done
4379 IFS="$ac_save_IFS"
4380 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4381 ;;
4382 esac
4383 fi
4384 MSGFMT="$ac_cv_path_MSGFMT"
4385 if test "$MSGFMT" != ":"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4387 $as_echo "$MSGFMT" >&6; }
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4391 fi
4392
4393 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4394 set dummy gmsgfmt; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_path_GMSGFMT+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 case $GMSGFMT in
4401 [\\/]* | ?:[\\/]*)
4402 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4403 ;;
4404 *)
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4421 ;;
4422 esac
4423 fi
4424 GMSGFMT=$ac_cv_path_GMSGFMT
4425 if test -n "$GMSGFMT"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
4427 $as_echo "$GMSGFMT" >&6; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 fi
4432
4433
4434
4435 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4436 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
4437 *) MSGFMT_015=$MSGFMT ;;
4438 esac
4439
4440 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4441 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
4442 *) GMSGFMT_015=$GMSGFMT ;;
4443 esac
4444
4445
4446
4447 # Prepare PATH_SEPARATOR.
4448 # The user is always right.
4449 if test "${PATH_SEPARATOR+set}" != set; then
4450 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4451 # contains only /bin. Note that ksh looks also at the FPATH variable,
4452 # so we have to set that as well for the test.
4453 PATH_SEPARATOR=:
4454 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4455 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4456 || PATH_SEPARATOR=';'
4457 }
4458 fi
4459
4460 # Find out how to test for executable files. Don't use a zero-byte file,
4461 # as systems may use methods other than mode bits to determine executability.
4462 cat >conf$$.file <<_ASEOF
4463 #! /bin/sh
4464 exit 0
4465 _ASEOF
4466 chmod +x conf$$.file
4467 if test -x conf$$.file >/dev/null 2>&1; then
4468 ac_executable_p="test -x"
4469 else
4470 ac_executable_p="test -f"
4471 fi
4472 rm -f conf$$.file
4473
4474 # Extract the first word of "xgettext", so it can be a program name with args.
4475 set dummy xgettext; ac_word=$2
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4477 $as_echo_n "checking for $ac_word... " >&6; }
4478 if ${ac_cv_path_XGETTEXT+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 case "$XGETTEXT" in
4482 [\\/]* | ?:[\\/]*)
4483 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4484 ;;
4485 *)
4486 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4487 for ac_dir in $PATH; do
4488 IFS="$ac_save_IFS"
4489 test -z "$ac_dir" && ac_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4492 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4493 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4494 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4495 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4496 break 2
4497 fi
4498 fi
4499 done
4500 done
4501 IFS="$ac_save_IFS"
4502 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4503 ;;
4504 esac
4505 fi
4506 XGETTEXT="$ac_cv_path_XGETTEXT"
4507 if test "$XGETTEXT" != ":"; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
4509 $as_echo "$XGETTEXT" >&6; }
4510 else
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512 $as_echo "no" >&6; }
4513 fi
4514
4515 rm -f messages.po
4516
4517 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
4518 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
4519 *) XGETTEXT_015=$XGETTEXT ;;
4520 esac
4521
4522
4523
4524 # Prepare PATH_SEPARATOR.
4525 # The user is always right.
4526 if test "${PATH_SEPARATOR+set}" != set; then
4527 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
4528 # contains only /bin. Note that ksh looks also at the FPATH variable,
4529 # so we have to set that as well for the test.
4530 PATH_SEPARATOR=:
4531 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4532 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
4533 || PATH_SEPARATOR=';'
4534 }
4535 fi
4536
4537 # Find out how to test for executable files. Don't use a zero-byte file,
4538 # as systems may use methods other than mode bits to determine executability.
4539 cat >conf$$.file <<_ASEOF
4540 #! /bin/sh
4541 exit 0
4542 _ASEOF
4543 chmod +x conf$$.file
4544 if test -x conf$$.file >/dev/null 2>&1; then
4545 ac_executable_p="test -x"
4546 else
4547 ac_executable_p="test -f"
4548 fi
4549 rm -f conf$$.file
4550
4551 # Extract the first word of "msgmerge", so it can be a program name with args.
4552 set dummy msgmerge; ac_word=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if ${ac_cv_path_MSGMERGE+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 case "$MSGMERGE" in
4559 [\\/]* | ?:[\\/]*)
4560 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4561 ;;
4562 *)
4563 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4564 for ac_dir in $PATH; do
4565 IFS="$ac_save_IFS"
4566 test -z "$ac_dir" && ac_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4569 echo "$as_me: trying $ac_dir/$ac_word..." >&5
4570 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
4571 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4572 break 2
4573 fi
4574 fi
4575 done
4576 done
4577 IFS="$ac_save_IFS"
4578 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4579 ;;
4580 esac
4581 fi
4582 MSGMERGE="$ac_cv_path_MSGMERGE"
4583 if test "$MSGMERGE" != ":"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
4585 $as_echo "$MSGMERGE" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 fi
4590
4591
4592 test -n "$localedir" || localedir='${datadir}/locale'
4593
4594
4595 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
4596
4597
4598 ac_config_commands="$ac_config_commands po-directories"
4599
4600
4601
4602 if test "X$prefix" = "XNONE"; then
4603 acl_final_prefix="$ac_default_prefix"
4604 else
4605 acl_final_prefix="$prefix"
4606 fi
4607 if test "X$exec_prefix" = "XNONE"; then
4608 acl_final_exec_prefix='${prefix}'
4609 else
4610 acl_final_exec_prefix="$exec_prefix"
4611 fi
4612 acl_save_prefix="$prefix"
4613 prefix="$acl_final_prefix"
4614 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
4615 prefix="$acl_save_prefix"
4616
4617 ac_ext=c
4618 ac_cpp='$CPP $CPPFLAGS'
4619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 if test -n "$ac_tool_prefix"; then
4623 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4624 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if ${ac_cv_prog_CC+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if test -n "$CC"; then
4631 ac_cv_prog_CC="$CC" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4635 do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4643 fi
4644 done
4645 done
4646 IFS=$as_save_IFS
4647
4648 fi
4649 fi
4650 CC=$ac_cv_prog_CC
4651 if test -n "$CC"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4653 $as_echo "$CC" >&6; }
4654 else
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4657 fi
4658
4659
4660 fi
4661 if test -z "$ac_cv_prog_CC"; then
4662 ac_ct_CC=$CC
4663 # Extract the first word of "gcc", so it can be a program name with args.
4664 set dummy gcc; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 if test -n "$ac_ct_CC"; then
4671 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_prog_ac_ct_CC="gcc"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4683 fi
4684 done
4685 done
4686 IFS=$as_save_IFS
4687
4688 fi
4689 fi
4690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4691 if test -n "$ac_ct_CC"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4693 $as_echo "$ac_ct_CC" >&6; }
4694 else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4697 fi
4698
4699 if test "x$ac_ct_CC" = x; then
4700 CC=""
4701 else
4702 case $cross_compiling:$ac_tool_warned in
4703 yes:)
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706 ac_tool_warned=yes ;;
4707 esac
4708 CC=$ac_ct_CC
4709 fi
4710 else
4711 CC="$ac_cv_prog_CC"
4712 fi
4713
4714 if test -z "$CC"; then
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}cc; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_CC+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$CC"; then
4724 ac_cv_prog_CC="$CC" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_CC="${ac_tool_prefix}cc"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 CC=$ac_cv_prog_CC
4744 if test -n "$CC"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4746 $as_echo "$CC" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752
4753 fi
4754 fi
4755 if test -z "$CC"; then
4756 # Extract the first word of "cc", so it can be a program name with args.
4757 set dummy cc; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if ${ac_cv_prog_CC+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -n "$CC"; then
4764 ac_cv_prog_CC="$CC" # Let the user override the test.
4765 else
4766 ac_prog_rejected=no
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4775 ac_prog_rejected=yes
4776 continue
4777 fi
4778 ac_cv_prog_CC="cc"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4781 fi
4782 done
4783 done
4784 IFS=$as_save_IFS
4785
4786 if test $ac_prog_rejected = yes; then
4787 # We found a bogon in the path, so make sure we never use it.
4788 set dummy $ac_cv_prog_CC
4789 shift
4790 if test $# != 0; then
4791 # We chose a different compiler from the bogus one.
4792 # However, it has the same basename, so the bogon will be chosen
4793 # first if we set CC to just the basename; use the full file name.
4794 shift
4795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4796 fi
4797 fi
4798 fi
4799 fi
4800 CC=$ac_cv_prog_CC
4801 if test -n "$CC"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4803 $as_echo "$CC" >&6; }
4804 else
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4807 fi
4808
4809
4810 fi
4811 if test -z "$CC"; then
4812 if test -n "$ac_tool_prefix"; then
4813 for ac_prog in cl.exe
4814 do
4815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if ${ac_cv_prog_CC+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -n "$CC"; then
4823 ac_cv_prog_CC="$CC" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 CC=$ac_cv_prog_CC
4843 if test -n "$CC"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4845 $as_echo "$CC" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 fi
4850
4851
4852 test -n "$CC" && break
4853 done
4854 fi
4855 if test -z "$CC"; then
4856 ac_ct_CC=$CC
4857 for ac_prog in cl.exe
4858 do
4859 # Extract the first word of "$ac_prog", so it can be a program name with args.
4860 set dummy $ac_prog; ac_word=$2
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 $as_echo_n "checking for $ac_word... " >&6; }
4863 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 if test -n "$ac_ct_CC"; then
4867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876 ac_cv_prog_ac_ct_CC="$ac_prog"
4877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884 fi
4885 fi
4886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4887 if test -n "$ac_ct_CC"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4889 $as_echo "$ac_ct_CC" >&6; }
4890 else
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4893 fi
4894
4895
4896 test -n "$ac_ct_CC" && break
4897 done
4898
4899 if test "x$ac_ct_CC" = x; then
4900 CC=""
4901 else
4902 case $cross_compiling:$ac_tool_warned in
4903 yes:)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4907 esac
4908 CC=$ac_ct_CC
4909 fi
4910 fi
4911
4912 fi
4913
4914
4915 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4917 as_fn_error $? "no acceptable C compiler found in \$PATH
4918 See \`config.log' for more details" "$LINENO" 5; }
4919
4920 # Provide some information about the compiler.
4921 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4922 set X $ac_compile
4923 ac_compiler=$2
4924 for ac_option in --version -v -V -qversion; do
4925 { { ac_try="$ac_compiler $ac_option >&5"
4926 case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929 esac
4930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4931 $as_echo "$ac_try_echo"; } >&5
4932 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4933 ac_status=$?
4934 if test -s conftest.err; then
4935 sed '10a\
4936 ... rest of stderr output deleted ...
4937 10q' conftest.err >conftest.er1
4938 cat conftest.er1 >&5
4939 fi
4940 rm -f conftest.er1 conftest.err
4941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4942 test $ac_status = 0; }
4943 done
4944
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4946 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4947 if ${ac_cv_c_compiler_gnu+:} false; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952
4953 int
4954 main ()
4955 {
4956 #ifndef __GNUC__
4957 choke me
4958 #endif
4959
4960 ;
4961 return 0;
4962 }
4963 _ACEOF
4964 if ac_fn_c_try_compile "$LINENO"; then :
4965 ac_compiler_gnu=yes
4966 else
4967 ac_compiler_gnu=no
4968 fi
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4970 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4971
4972 fi
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4974 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4975 if test $ac_compiler_gnu = yes; then
4976 GCC=yes
4977 else
4978 GCC=
4979 fi
4980 ac_test_CFLAGS=${CFLAGS+set}
4981 ac_save_CFLAGS=$CFLAGS
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4983 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4984 if ${ac_cv_prog_cc_g+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 ac_save_c_werror_flag=$ac_c_werror_flag
4988 ac_c_werror_flag=yes
4989 ac_cv_prog_cc_g=no
4990 CFLAGS="-g"
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993
4994 int
4995 main ()
4996 {
4997
4998 ;
4999 return 0;
5000 }
5001 _ACEOF
5002 if ac_fn_c_try_compile "$LINENO"; then :
5003 ac_cv_prog_cc_g=yes
5004 else
5005 CFLAGS=""
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008
5009 int
5010 main ()
5011 {
5012
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 if ac_fn_c_try_compile "$LINENO"; then :
5018
5019 else
5020 ac_c_werror_flag=$ac_save_c_werror_flag
5021 CFLAGS="-g"
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5024
5025 int
5026 main ()
5027 {
5028
5029 ;
5030 return 0;
5031 }
5032 _ACEOF
5033 if ac_fn_c_try_compile "$LINENO"; then :
5034 ac_cv_prog_cc_g=yes
5035 fi
5036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 fi
5038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5039 fi
5040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5041 ac_c_werror_flag=$ac_save_c_werror_flag
5042 fi
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5044 $as_echo "$ac_cv_prog_cc_g" >&6; }
5045 if test "$ac_test_CFLAGS" = set; then
5046 CFLAGS=$ac_save_CFLAGS
5047 elif test $ac_cv_prog_cc_g = yes; then
5048 if test "$GCC" = yes; then
5049 CFLAGS="-g -O2"
5050 else
5051 CFLAGS="-g"
5052 fi
5053 else
5054 if test "$GCC" = yes; then
5055 CFLAGS="-O2"
5056 else
5057 CFLAGS=
5058 fi
5059 fi
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5061 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5062 if ${ac_cv_prog_cc_c89+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 ac_cv_prog_cc_c89=no
5066 ac_save_CC=$CC
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #include <stdarg.h>
5070 #include <stdio.h>
5071 struct stat;
5072 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5073 struct buf { int x; };
5074 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5075 static char *e (p, i)
5076 char **p;
5077 int i;
5078 {
5079 return p[i];
5080 }
5081 static char *f (char * (*g) (char **, int), char **p, ...)
5082 {
5083 char *s;
5084 va_list v;
5085 va_start (v,p);
5086 s = g (p, va_arg (v,int));
5087 va_end (v);
5088 return s;
5089 }
5090
5091 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5092 function prototypes and stuff, but not '\xHH' hex character constants.
5093 These don't provoke an error unfortunately, instead are silently treated
5094 as 'x'. The following induces an error, until -std is added to get
5095 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5096 array size at least. It's necessary to write '\x00'==0 to get something
5097 that's true only with -std. */
5098 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5099
5100 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5101 inside strings and character constants. */
5102 #define FOO(x) 'x'
5103 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5104
5105 int test (int i, double x);
5106 struct s1 {int (*f) (int a);};
5107 struct s2 {int (*f) (double a);};
5108 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5109 int argc;
5110 char **argv;
5111 int
5112 main ()
5113 {
5114 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5115 ;
5116 return 0;
5117 }
5118 _ACEOF
5119 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5120 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5121 do
5122 CC="$ac_save_CC $ac_arg"
5123 if ac_fn_c_try_compile "$LINENO"; then :
5124 ac_cv_prog_cc_c89=$ac_arg
5125 fi
5126 rm -f core conftest.err conftest.$ac_objext
5127 test "x$ac_cv_prog_cc_c89" != "xno" && break
5128 done
5129 rm -f conftest.$ac_ext
5130 CC=$ac_save_CC
5131
5132 fi
5133 # AC_CACHE_VAL
5134 case "x$ac_cv_prog_cc_c89" in
5135 x)
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5137 $as_echo "none needed" >&6; } ;;
5138 xno)
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5140 $as_echo "unsupported" >&6; } ;;
5141 *)
5142 CC="$CC $ac_cv_prog_cc_c89"
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5144 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5145 esac
5146 if test "x$ac_cv_prog_cc_c89" != xno; then :
5147
5148 fi
5149
5150 ac_ext=c
5151 ac_cpp='$CPP $CPPFLAGS'
5152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5155
5156 ac_ext=c
5157 ac_cpp='$CPP $CPPFLAGS'
5158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5162 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5163 if ${am_cv_prog_cc_c_o+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168
5169 int
5170 main ()
5171 {
5172
5173 ;
5174 return 0;
5175 }
5176 _ACEOF
5177 # Make sure it works both with $CC and with simple cc.
5178 # Following AC_PROG_CC_C_O, we do the test twice because some
5179 # compilers refuse to overwrite an existing .o file with -o,
5180 # though they will create one.
5181 am_cv_prog_cc_c_o=yes
5182 for am_i in 1 2; do
5183 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5184 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } \
5188 && test -f conftest2.$ac_objext; then
5189 : OK
5190 else
5191 am_cv_prog_cc_c_o=no
5192 break
5193 fi
5194 done
5195 rm -f core conftest*
5196 unset am_i
5197 fi
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5199 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5200 if test "$am_cv_prog_cc_c_o" != yes; then
5201 # Losing compiler, so override with the script.
5202 # FIXME: It is wrong to rewrite CC.
5203 # But if we don't then we get into trouble of one sort or another.
5204 # A longer-term fix would be to have automake use am__CC in this case,
5205 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5206 CC="$am_aux_dir/compile $CC"
5207 fi
5208 ac_ext=c
5209 ac_cpp='$CPP $CPPFLAGS'
5210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213
5214
5215 depcc="$CC" am_compiler_list=
5216
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5218 $as_echo_n "checking dependency style of $depcc... " >&6; }
5219 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5223 # We make a subdir and do the tests there. Otherwise we can end up
5224 # making bogus files that we don't know about and never remove. For
5225 # instance it was reported that on HP-UX the gcc test will end up
5226 # making a dummy file named 'D' -- because '-MD' means "put the output
5227 # in D".
5228 rm -rf conftest.dir
5229 mkdir conftest.dir
5230 # Copy depcomp to subdir because otherwise we won't find it if we're
5231 # using a relative directory.
5232 cp "$am_depcomp" conftest.dir
5233 cd conftest.dir
5234 # We will build objects and dependencies in a subdirectory because
5235 # it helps to detect inapplicable dependency modes. For instance
5236 # both Tru64's cc and ICC support -MD to output dependencies as a
5237 # side effect of compilation, but ICC will put the dependencies in
5238 # the current directory while Tru64 will put them in the object
5239 # directory.
5240 mkdir sub
5241
5242 am_cv_CC_dependencies_compiler_type=none
5243 if test "$am_compiler_list" = ""; then
5244 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5245 fi
5246 am__universal=false
5247 case " $depcc " in #(
5248 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5249 esac
5250
5251 for depmode in $am_compiler_list; do
5252 # Setup a source with many dependencies, because some compilers
5253 # like to wrap large dependency lists on column 80 (with \), and
5254 # we should not choose a depcomp mode which is confused by this.
5255 #
5256 # We need to recreate these files for each test, as the compiler may
5257 # overwrite some of them when testing with obscure command lines.
5258 # This happens at least with the AIX C compiler.
5259 : > sub/conftest.c
5260 for i in 1 2 3 4 5 6; do
5261 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5262 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5263 # Solaris 10 /bin/sh.
5264 echo '/* dummy */' > sub/conftst$i.h
5265 done
5266 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5267
5268 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5269 # mode. It turns out that the SunPro C++ compiler does not properly
5270 # handle '-M -o', and we need to detect this. Also, some Intel
5271 # versions had trouble with output in subdirs.
5272 am__obj=sub/conftest.${OBJEXT-o}
5273 am__minus_obj="-o $am__obj"
5274 case $depmode in
5275 gcc)
5276 # This depmode causes a compiler race in universal mode.
5277 test "$am__universal" = false || continue
5278 ;;
5279 nosideeffect)
5280 # After this tag, mechanisms are not by side-effect, so they'll
5281 # only be used when explicitly requested.
5282 if test "x$enable_dependency_tracking" = xyes; then
5283 continue
5284 else
5285 break
5286 fi
5287 ;;
5288 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5289 # This compiler won't grok '-c -o', but also, the minuso test has
5290 # not run yet. These depmodes are late enough in the game, and
5291 # so weak that their functioning should not be impacted.
5292 am__obj=conftest.${OBJEXT-o}
5293 am__minus_obj=
5294 ;;
5295 none) break ;;
5296 esac
5297 if depmode=$depmode \
5298 source=sub/conftest.c object=$am__obj \
5299 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5300 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5301 >/dev/null 2>conftest.err &&
5302 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5303 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5304 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5305 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5306 # icc doesn't choke on unknown options, it will just issue warnings
5307 # or remarks (even with -Werror). So we grep stderr for any message
5308 # that says an option was ignored or not supported.
5309 # When given -MP, icc 7.0 and 7.1 complain thusly:
5310 # icc: Command line warning: ignoring option '-M'; no argument required
5311 # The diagnosis changed in icc 8.0:
5312 # icc: Command line remark: option '-MP' not supported
5313 if (grep 'ignoring option' conftest.err ||
5314 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5315 am_cv_CC_dependencies_compiler_type=$depmode
5316 break
5317 fi
5318 fi
5319 done
5320
5321 cd ..
5322 rm -rf conftest.dir
5323 else
5324 am_cv_CC_dependencies_compiler_type=none
5325 fi
5326
5327 fi
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5329 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5330 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5331
5332 if
5333 test "x$enable_dependency_tracking" != xno \
5334 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5335 am__fastdepCC_TRUE=
5336 am__fastdepCC_FALSE='#'
5337 else
5338 am__fastdepCC_TRUE='#'
5339 am__fastdepCC_FALSE=
5340 fi
5341
5342
5343
5344
5345 # Check whether --with-gnu-ld was given.
5346 if test "${with_gnu_ld+set}" = set; then :
5347 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5348 else
5349 with_gnu_ld=no
5350 fi
5351
5352 # Prepare PATH_SEPARATOR.
5353 # The user is always right.
5354 if test "${PATH_SEPARATOR+set}" != set; then
5355 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5356 # contains only /bin. Note that ksh looks also at the FPATH variable,
5357 # so we have to set that as well for the test.
5358 PATH_SEPARATOR=:
5359 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5360 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5361 || PATH_SEPARATOR=';'
5362 }
5363 fi
5364
5365 ac_prog=ld
5366 if test "$GCC" = yes; then
5367 # Check if gcc -print-prog-name=ld gives a path.
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5369 $as_echo_n "checking for ld used by $CC... " >&6; }
5370 case $host in
5371 *-*-mingw*)
5372 # gcc leaves a trailing carriage return which upsets mingw
5373 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5374 *)
5375 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5376 esac
5377 case $ac_prog in
5378 # Accept absolute paths.
5379 [\\/]* | ?:[\\/]*)
5380 re_direlt='/[^/][^/]*/\.\./'
5381 # Canonicalize the pathname of ld
5382 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5383 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5384 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5385 done
5386 test -z "$LD" && LD="$ac_prog"
5387 ;;
5388 "")
5389 # If it fails, then pretend we aren't using GCC.
5390 ac_prog=ld
5391 ;;
5392 *)
5393 # If it is relative, then search for the first ld in PATH.
5394 with_gnu_ld=unknown
5395 ;;
5396 esac
5397 elif test "$with_gnu_ld" = yes; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5399 $as_echo_n "checking for GNU ld... " >&6; }
5400 else
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5402 $as_echo_n "checking for non-GNU ld... " >&6; }
5403 fi
5404 if ${acl_cv_path_LD+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 if test -z "$LD"; then
5408 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5409 for ac_dir in $PATH; do
5410 IFS="$acl_save_ifs"
5411 test -z "$ac_dir" && ac_dir=.
5412 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5413 acl_cv_path_LD="$ac_dir/$ac_prog"
5414 # Check to see if the program is GNU ld. I'd rather use --version,
5415 # but apparently some variants of GNU ld only accept -v.
5416 # Break only if it was the GNU/non-GNU ld that we prefer.
5417 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5418 *GNU* | *'with BFD'*)
5419 test "$with_gnu_ld" != no && break
5420 ;;
5421 *)
5422 test "$with_gnu_ld" != yes && break
5423 ;;
5424 esac
5425 fi
5426 done
5427 IFS="$acl_save_ifs"
5428 else
5429 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5430 fi
5431 fi
5432
5433 LD="$acl_cv_path_LD"
5434 if test -n "$LD"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5436 $as_echo "$LD" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 fi
5441 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5443 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5444 if ${acl_cv_prog_gnu_ld+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5448 case `$LD -v 2>&1 </dev/null` in
5449 *GNU* | *'with BFD'*)
5450 acl_cv_prog_gnu_ld=yes
5451 ;;
5452 *)
5453 acl_cv_prog_gnu_ld=no
5454 ;;
5455 esac
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5458 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5459 with_gnu_ld=$acl_cv_prog_gnu_ld
5460
5461
5462
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5465 $as_echo_n "checking for shared library run path origin... " >&6; }
5466 if ${acl_cv_rpath+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469
5470 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5471 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5472 . ./conftest.sh
5473 rm -f ./conftest.sh
5474 acl_cv_rpath=done
5475
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5478 $as_echo "$acl_cv_rpath" >&6; }
5479 wl="$acl_cv_wl"
5480 acl_libext="$acl_cv_libext"
5481 acl_shlibext="$acl_cv_shlibext"
5482 acl_libname_spec="$acl_cv_libname_spec"
5483 acl_library_names_spec="$acl_cv_library_names_spec"
5484 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5485 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5486 acl_hardcode_direct="$acl_cv_hardcode_direct"
5487 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5488 # Check whether --enable-rpath was given.
5489 if test "${enable_rpath+set}" = set; then :
5490 enableval=$enable_rpath; :
5491 else
5492 enable_rpath=yes
5493 fi
5494
5495
5496
5497 ac_ext=c
5498 ac_cpp='$CPP $CPPFLAGS'
5499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5503 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5504 # On Suns, sometimes $CPP names a directory.
5505 if test -n "$CPP" && test -d "$CPP"; then
5506 CPP=
5507 fi
5508 if test -z "$CPP"; then
5509 if ${ac_cv_prog_CPP+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 # Double quotes because CPP needs to be expanded
5513 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5514 do
5515 ac_preproc_ok=false
5516 for ac_c_preproc_warn_flag in '' yes
5517 do
5518 # Use a header file that comes with gcc, so configuring glibc
5519 # with a fresh cross-compiler works.
5520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5521 # <limits.h> exists even on freestanding compilers.
5522 # On the NeXT, cc -E runs the code through the compiler's parser,
5523 # not just through cpp. "Syntax error" is here to catch this case.
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526 #ifdef __STDC__
5527 # include <limits.h>
5528 #else
5529 # include <assert.h>
5530 #endif
5531 Syntax error
5532 _ACEOF
5533 if ac_fn_c_try_cpp "$LINENO"; then :
5534
5535 else
5536 # Broken: fails on valid input.
5537 continue
5538 fi
5539 rm -f conftest.err conftest.i conftest.$ac_ext
5540
5541 # OK, works on sane cases. Now check whether nonexistent headers
5542 # can be detected and how.
5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5544 /* end confdefs.h. */
5545 #include <ac_nonexistent.h>
5546 _ACEOF
5547 if ac_fn_c_try_cpp "$LINENO"; then :
5548 # Broken: success on invalid input.
5549 continue
5550 else
5551 # Passes both tests.
5552 ac_preproc_ok=:
5553 break
5554 fi
5555 rm -f conftest.err conftest.i conftest.$ac_ext
5556
5557 done
5558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5559 rm -f conftest.i conftest.err conftest.$ac_ext
5560 if $ac_preproc_ok; then :
5561 break
5562 fi
5563
5564 done
5565 ac_cv_prog_CPP=$CPP
5566
5567 fi
5568 CPP=$ac_cv_prog_CPP
5569 else
5570 ac_cv_prog_CPP=$CPP
5571 fi
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5573 $as_echo "$CPP" >&6; }
5574 ac_preproc_ok=false
5575 for ac_c_preproc_warn_flag in '' yes
5576 do
5577 # Use a header file that comes with gcc, so configuring glibc
5578 # with a fresh cross-compiler works.
5579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5580 # <limits.h> exists even on freestanding compilers.
5581 # On the NeXT, cc -E runs the code through the compiler's parser,
5582 # not just through cpp. "Syntax error" is here to catch this case.
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 #ifdef __STDC__
5586 # include <limits.h>
5587 #else
5588 # include <assert.h>
5589 #endif
5590 Syntax error
5591 _ACEOF
5592 if ac_fn_c_try_cpp "$LINENO"; then :
5593
5594 else
5595 # Broken: fails on valid input.
5596 continue
5597 fi
5598 rm -f conftest.err conftest.i conftest.$ac_ext
5599
5600 # OK, works on sane cases. Now check whether nonexistent headers
5601 # can be detected and how.
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 #include <ac_nonexistent.h>
5605 _ACEOF
5606 if ac_fn_c_try_cpp "$LINENO"; then :
5607 # Broken: success on invalid input.
5608 continue
5609 else
5610 # Passes both tests.
5611 ac_preproc_ok=:
5612 break
5613 fi
5614 rm -f conftest.err conftest.i conftest.$ac_ext
5615
5616 done
5617 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5618 rm -f conftest.i conftest.err conftest.$ac_ext
5619 if $ac_preproc_ok; then :
5620
5621 else
5622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5624 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5625 See \`config.log' for more details" "$LINENO" 5; }
5626 fi
5627
5628 ac_ext=c
5629 ac_cpp='$CPP $CPPFLAGS'
5630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5633
5634
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5636 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5637 if ${ac_cv_path_GREP+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -z "$GREP"; then
5641 ac_path_GREP_found=false
5642 # Loop through the user's path and test for each of PROGNAME-LIST
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_prog in grep ggrep; do
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5651 as_fn_executable_p "$ac_path_GREP" || continue
5652 # Check for GNU ac_path_GREP and select it if it is found.
5653 # Check for GNU $ac_path_GREP
5654 case `"$ac_path_GREP" --version 2>&1` in
5655 *GNU*)
5656 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5657 *)
5658 ac_count=0
5659 $as_echo_n 0123456789 >"conftest.in"
5660 while :
5661 do
5662 cat "conftest.in" "conftest.in" >"conftest.tmp"
5663 mv "conftest.tmp" "conftest.in"
5664 cp "conftest.in" "conftest.nl"
5665 $as_echo 'GREP' >> "conftest.nl"
5666 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5668 as_fn_arith $ac_count + 1 && ac_count=$as_val
5669 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5670 # Best one so far, save it but keep looking for a better one
5671 ac_cv_path_GREP="$ac_path_GREP"
5672 ac_path_GREP_max=$ac_count
5673 fi
5674 # 10*(2^10) chars as input seems more than enough
5675 test $ac_count -gt 10 && break
5676 done
5677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5678 esac
5679
5680 $ac_path_GREP_found && break 3
5681 done
5682 done
5683 done
5684 IFS=$as_save_IFS
5685 if test -z "$ac_cv_path_GREP"; then
5686 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5687 fi
5688 else
5689 ac_cv_path_GREP=$GREP
5690 fi
5691
5692 fi
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5694 $as_echo "$ac_cv_path_GREP" >&6; }
5695 GREP="$ac_cv_path_GREP"
5696
5697
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5699 $as_echo_n "checking for egrep... " >&6; }
5700 if ${ac_cv_path_EGREP+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5704 then ac_cv_path_EGREP="$GREP -E"
5705 else
5706 if test -z "$EGREP"; then
5707 ac_path_EGREP_found=false
5708 # Loop through the user's path and test for each of PROGNAME-LIST
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5711 do
5712 IFS=$as_save_IFS
5713 test -z "$as_dir" && as_dir=.
5714 for ac_prog in egrep; do
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5717 as_fn_executable_p "$ac_path_EGREP" || continue
5718 # Check for GNU ac_path_EGREP and select it if it is found.
5719 # Check for GNU $ac_path_EGREP
5720 case `"$ac_path_EGREP" --version 2>&1` in
5721 *GNU*)
5722 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5723 *)
5724 ac_count=0
5725 $as_echo_n 0123456789 >"conftest.in"
5726 while :
5727 do
5728 cat "conftest.in" "conftest.in" >"conftest.tmp"
5729 mv "conftest.tmp" "conftest.in"
5730 cp "conftest.in" "conftest.nl"
5731 $as_echo 'EGREP' >> "conftest.nl"
5732 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5734 as_fn_arith $ac_count + 1 && ac_count=$as_val
5735 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5736 # Best one so far, save it but keep looking for a better one
5737 ac_cv_path_EGREP="$ac_path_EGREP"
5738 ac_path_EGREP_max=$ac_count
5739 fi
5740 # 10*(2^10) chars as input seems more than enough
5741 test $ac_count -gt 10 && break
5742 done
5743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5744 esac
5745
5746 $ac_path_EGREP_found && break 3
5747 done
5748 done
5749 done
5750 IFS=$as_save_IFS
5751 if test -z "$ac_cv_path_EGREP"; then
5752 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5753 fi
5754 else
5755 ac_cv_path_EGREP=$EGREP
5756 fi
5757
5758 fi
5759 fi
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5761 $as_echo "$ac_cv_path_EGREP" >&6; }
5762 EGREP="$ac_cv_path_EGREP"
5763
5764
5765
5766
5767 acl_libdirstem=lib
5768 acl_libdirstem2=
5769 case "$host_os" in
5770 solaris*)
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5772 $as_echo_n "checking for 64-bit host... " >&6; }
5773 if ${gl_cv_solaris_64bit+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778
5779 #ifdef _LP64
5780 sixtyfour bits
5781 #endif
5782
5783 _ACEOF
5784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5785 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5786 gl_cv_solaris_64bit=yes
5787 else
5788 gl_cv_solaris_64bit=no
5789 fi
5790 rm -f conftest*
5791
5792
5793 fi
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5795 $as_echo "$gl_cv_solaris_64bit" >&6; }
5796 if test $gl_cv_solaris_64bit = yes; then
5797 acl_libdirstem=lib/64
5798 case "$host_cpu" in
5799 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5800 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5801 esac
5802 fi
5803 ;;
5804 *)
5805 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5806 if test -n "$searchpath"; then
5807 acl_save_IFS="${IFS= }"; IFS=":"
5808 for searchdir in $searchpath; do
5809 if test -d "$searchdir"; then
5810 case "$searchdir" in
5811 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5812 */../ | */.. )
5813 # Better ignore directories of this form. They are misleading.
5814 ;;
5815 *) searchdir=`cd "$searchdir" && pwd`
5816 case "$searchdir" in
5817 */lib64 ) acl_libdirstem=lib64 ;;
5818 esac ;;
5819 esac
5820 fi
5821 done
5822 IFS="$acl_save_IFS"
5823 fi
5824 ;;
5825 esac
5826 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839 use_additional=yes
5840
5841 acl_save_prefix="$prefix"
5842 prefix="$acl_final_prefix"
5843 acl_save_exec_prefix="$exec_prefix"
5844 exec_prefix="$acl_final_exec_prefix"
5845
5846 eval additional_includedir=\"$includedir\"
5847 eval additional_libdir=\"$libdir\"
5848
5849 exec_prefix="$acl_save_exec_prefix"
5850 prefix="$acl_save_prefix"
5851
5852
5853 # Check whether --with-libiconv-prefix was given.
5854 if test "${with_libiconv_prefix+set}" = set; then :
5855 withval=$with_libiconv_prefix;
5856 if test "X$withval" = "Xno"; then
5857 use_additional=no
5858 else
5859 if test "X$withval" = "X"; then
5860
5861 acl_save_prefix="$prefix"
5862 prefix="$acl_final_prefix"
5863 acl_save_exec_prefix="$exec_prefix"
5864 exec_prefix="$acl_final_exec_prefix"
5865
5866 eval additional_includedir=\"$includedir\"
5867 eval additional_libdir=\"$libdir\"
5868
5869 exec_prefix="$acl_save_exec_prefix"
5870 prefix="$acl_save_prefix"
5871
5872 else
5873 additional_includedir="$withval/include"
5874 additional_libdir="$withval/$acl_libdirstem"
5875 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5876 && ! test -d "$withval/$acl_libdirstem"; then
5877 additional_libdir="$withval/$acl_libdirstem2"
5878 fi
5879 fi
5880 fi
5881
5882 fi
5883
5884 LIBICONV=
5885 LTLIBICONV=
5886 INCICONV=
5887 LIBICONV_PREFIX=
5888 HAVE_LIBICONV=
5889 rpathdirs=
5890 ltrpathdirs=
5891 names_already_handled=
5892 names_next_round='iconv '
5893 while test -n "$names_next_round"; do
5894 names_this_round="$names_next_round"
5895 names_next_round=
5896 for name in $names_this_round; do
5897 already_handled=
5898 for n in $names_already_handled; do
5899 if test "$n" = "$name"; then
5900 already_handled=yes
5901 break
5902 fi
5903 done
5904 if test -z "$already_handled"; then
5905 names_already_handled="$names_already_handled $name"
5906 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5907 eval value=\"\$HAVE_LIB$uppername\"
5908 if test -n "$value"; then
5909 if test "$value" = yes; then
5910 eval value=\"\$LIB$uppername\"
5911 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5912 eval value=\"\$LTLIB$uppername\"
5913 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5914 else
5915 :
5916 fi
5917 else
5918 found_dir=
5919 found_la=
5920 found_so=
5921 found_a=
5922 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5923 if test -n "$acl_shlibext"; then
5924 shrext=".$acl_shlibext" # typically: shrext=.so
5925 else
5926 shrext=
5927 fi
5928 if test $use_additional = yes; then
5929 dir="$additional_libdir"
5930 if test -n "$acl_shlibext"; then
5931 if test -f "$dir/$libname$shrext"; then
5932 found_dir="$dir"
5933 found_so="$dir/$libname$shrext"
5934 else
5935 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5936 ver=`(cd "$dir" && \
5937 for f in "$libname$shrext".*; do echo "$f"; done \
5938 | sed -e "s,^$libname$shrext\\\\.,," \
5939 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5940 | sed 1q ) 2>/dev/null`
5941 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5942 found_dir="$dir"
5943 found_so="$dir/$libname$shrext.$ver"
5944 fi
5945 else
5946 eval library_names=\"$acl_library_names_spec\"
5947 for f in $library_names; do
5948 if test -f "$dir/$f"; then
5949 found_dir="$dir"
5950 found_so="$dir/$f"
5951 break
5952 fi
5953 done
5954 fi
5955 fi
5956 fi
5957 if test "X$found_dir" = "X"; then
5958 if test -f "$dir/$libname.$acl_libext"; then
5959 found_dir="$dir"
5960 found_a="$dir/$libname.$acl_libext"
5961 fi
5962 fi
5963 if test "X$found_dir" != "X"; then
5964 if test -f "$dir/$libname.la"; then
5965 found_la="$dir/$libname.la"
5966 fi
5967 fi
5968 fi
5969 if test "X$found_dir" = "X"; then
5970 for x in $LDFLAGS $LTLIBICONV; do
5971
5972 acl_save_prefix="$prefix"
5973 prefix="$acl_final_prefix"
5974 acl_save_exec_prefix="$exec_prefix"
5975 exec_prefix="$acl_final_exec_prefix"
5976 eval x=\"$x\"
5977 exec_prefix="$acl_save_exec_prefix"
5978 prefix="$acl_save_prefix"
5979
5980 case "$x" in
5981 -L*)
5982 dir=`echo "X$x" | sed -e 's/^X-L//'`
5983 if test -n "$acl_shlibext"; then
5984 if test -f "$dir/$libname$shrext"; then
5985 found_dir="$dir"
5986 found_so="$dir/$libname$shrext"
5987 else
5988 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5989 ver=`(cd "$dir" && \
5990 for f in "$libname$shrext".*; do echo "$f"; done \
5991 | sed -e "s,^$libname$shrext\\\\.,," \
5992 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5993 | sed 1q ) 2>/dev/null`
5994 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5995 found_dir="$dir"
5996 found_so="$dir/$libname$shrext.$ver"
5997 fi
5998 else
5999 eval library_names=\"$acl_library_names_spec\"
6000 for f in $library_names; do
6001 if test -f "$dir/$f"; then
6002 found_dir="$dir"
6003 found_so="$dir/$f"
6004 break
6005 fi
6006 done
6007 fi
6008 fi
6009 fi
6010 if test "X$found_dir" = "X"; then
6011 if test -f "$dir/$libname.$acl_libext"; then
6012 found_dir="$dir"
6013 found_a="$dir/$libname.$acl_libext"
6014 fi
6015 fi
6016 if test "X$found_dir" != "X"; then
6017 if test -f "$dir/$libname.la"; then
6018 found_la="$dir/$libname.la"
6019 fi
6020 fi
6021 ;;
6022 esac
6023 if test "X$found_dir" != "X"; then
6024 break
6025 fi
6026 done
6027 fi
6028 if test "X$found_dir" != "X"; then
6029 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6030 if test "X$found_so" != "X"; then
6031 if test "$enable_rpath" = no \
6032 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6033 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6034 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6035 else
6036 haveit=
6037 for x in $ltrpathdirs; do
6038 if test "X$x" = "X$found_dir"; then
6039 haveit=yes
6040 break
6041 fi
6042 done
6043 if test -z "$haveit"; then
6044 ltrpathdirs="$ltrpathdirs $found_dir"
6045 fi
6046 if test "$acl_hardcode_direct" = yes; then
6047 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6048 else
6049 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6050 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6051 haveit=
6052 for x in $rpathdirs; do
6053 if test "X$x" = "X$found_dir"; then
6054 haveit=yes
6055 break
6056 fi
6057 done
6058 if test -z "$haveit"; then
6059 rpathdirs="$rpathdirs $found_dir"
6060 fi
6061 else
6062 haveit=
6063 for x in $LDFLAGS $LIBICONV; do
6064
6065 acl_save_prefix="$prefix"
6066 prefix="$acl_final_prefix"
6067 acl_save_exec_prefix="$exec_prefix"
6068 exec_prefix="$acl_final_exec_prefix"
6069 eval x=\"$x\"
6070 exec_prefix="$acl_save_exec_prefix"
6071 prefix="$acl_save_prefix"
6072
6073 if test "X$x" = "X-L$found_dir"; then
6074 haveit=yes
6075 break
6076 fi
6077 done
6078 if test -z "$haveit"; then
6079 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6080 fi
6081 if test "$acl_hardcode_minus_L" != no; then
6082 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6083 else
6084 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6085 fi
6086 fi
6087 fi
6088 fi
6089 else
6090 if test "X$found_a" != "X"; then
6091 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6092 else
6093 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6094 fi
6095 fi
6096 additional_includedir=
6097 case "$found_dir" in
6098 */$acl_libdirstem | */$acl_libdirstem/)
6099 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6100 if test "$name" = 'iconv'; then
6101 LIBICONV_PREFIX="$basedir"
6102 fi
6103 additional_includedir="$basedir/include"
6104 ;;
6105 */$acl_libdirstem2 | */$acl_libdirstem2/)
6106 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6107 if test "$name" = 'iconv'; then
6108 LIBICONV_PREFIX="$basedir"
6109 fi
6110 additional_includedir="$basedir/include"
6111 ;;
6112 esac
6113 if test "X$additional_includedir" != "X"; then
6114 if test "X$additional_includedir" != "X/usr/include"; then
6115 haveit=
6116 if test "X$additional_includedir" = "X/usr/local/include"; then
6117 if test -n "$GCC"; then
6118 case $host_os in
6119 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6120 esac
6121 fi
6122 fi
6123 if test -z "$haveit"; then
6124 for x in $CPPFLAGS $INCICONV; do
6125
6126 acl_save_prefix="$prefix"
6127 prefix="$acl_final_prefix"
6128 acl_save_exec_prefix="$exec_prefix"
6129 exec_prefix="$acl_final_exec_prefix"
6130 eval x=\"$x\"
6131 exec_prefix="$acl_save_exec_prefix"
6132 prefix="$acl_save_prefix"
6133
6134 if test "X$x" = "X-I$additional_includedir"; then
6135 haveit=yes
6136 break
6137 fi
6138 done
6139 if test -z "$haveit"; then
6140 if test -d "$additional_includedir"; then
6141 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6142 fi
6143 fi
6144 fi
6145 fi
6146 fi
6147 if test -n "$found_la"; then
6148 save_libdir="$libdir"
6149 case "$found_la" in
6150 */* | *\\*) . "$found_la" ;;
6151 *) . "./$found_la" ;;
6152 esac
6153 libdir="$save_libdir"
6154 for dep in $dependency_libs; do
6155 case "$dep" in
6156 -L*)
6157 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6158 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6159 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6160 haveit=
6161 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6162 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6163 if test -n "$GCC"; then
6164 case $host_os in
6165 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6166 esac
6167 fi
6168 fi
6169 if test -z "$haveit"; then
6170 haveit=
6171 for x in $LDFLAGS $LIBICONV; do
6172
6173 acl_save_prefix="$prefix"
6174 prefix="$acl_final_prefix"
6175 acl_save_exec_prefix="$exec_prefix"
6176 exec_prefix="$acl_final_exec_prefix"
6177 eval x=\"$x\"
6178 exec_prefix="$acl_save_exec_prefix"
6179 prefix="$acl_save_prefix"
6180
6181 if test "X$x" = "X-L$additional_libdir"; then
6182 haveit=yes
6183 break
6184 fi
6185 done
6186 if test -z "$haveit"; then
6187 if test -d "$additional_libdir"; then
6188 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6189 fi
6190 fi
6191 haveit=
6192 for x in $LDFLAGS $LTLIBICONV; do
6193
6194 acl_save_prefix="$prefix"
6195 prefix="$acl_final_prefix"
6196 acl_save_exec_prefix="$exec_prefix"
6197 exec_prefix="$acl_final_exec_prefix"
6198 eval x=\"$x\"
6199 exec_prefix="$acl_save_exec_prefix"
6200 prefix="$acl_save_prefix"
6201
6202 if test "X$x" = "X-L$additional_libdir"; then
6203 haveit=yes
6204 break
6205 fi
6206 done
6207 if test -z "$haveit"; then
6208 if test -d "$additional_libdir"; then
6209 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6210 fi
6211 fi
6212 fi
6213 fi
6214 ;;
6215 -R*)
6216 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6217 if test "$enable_rpath" != no; then
6218 haveit=
6219 for x in $rpathdirs; do
6220 if test "X$x" = "X$dir"; then
6221 haveit=yes
6222 break
6223 fi
6224 done
6225 if test -z "$haveit"; then
6226 rpathdirs="$rpathdirs $dir"
6227 fi
6228 haveit=
6229 for x in $ltrpathdirs; do
6230 if test "X$x" = "X$dir"; then
6231 haveit=yes
6232 break
6233 fi
6234 done
6235 if test -z "$haveit"; then
6236 ltrpathdirs="$ltrpathdirs $dir"
6237 fi
6238 fi
6239 ;;
6240 -l*)
6241 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6242 ;;
6243 *.la)
6244 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6245 ;;
6246 *)
6247 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6248 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6249 ;;
6250 esac
6251 done
6252 fi
6253 else
6254 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6255 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6256 fi
6257 fi
6258 fi
6259 done
6260 done
6261 if test "X$rpathdirs" != "X"; then
6262 if test -n "$acl_hardcode_libdir_separator"; then
6263 alldirs=
6264 for found_dir in $rpathdirs; do
6265 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6266 done
6267 acl_save_libdir="$libdir"
6268 libdir="$alldirs"
6269 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6270 libdir="$acl_save_libdir"
6271 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6272 else
6273 for found_dir in $rpathdirs; do
6274 acl_save_libdir="$libdir"
6275 libdir="$found_dir"
6276 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6277 libdir="$acl_save_libdir"
6278 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6279 done
6280 fi
6281 fi
6282 if test "X$ltrpathdirs" != "X"; then
6283 for found_dir in $ltrpathdirs; do
6284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6285 done
6286 fi
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6319 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6320 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 gt_save_LIBS="$LIBS"
6324 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6327 #include <CoreFoundation/CFPreferences.h>
6328 int
6329 main ()
6330 {
6331 CFPreferencesCopyAppValue(NULL, NULL)
6332 ;
6333 return 0;
6334 }
6335 _ACEOF
6336 if ac_fn_c_try_link "$LINENO"; then :
6337 gt_cv_func_CFPreferencesCopyAppValue=yes
6338 else
6339 gt_cv_func_CFPreferencesCopyAppValue=no
6340 fi
6341 rm -f core conftest.err conftest.$ac_objext \
6342 conftest$ac_exeext conftest.$ac_ext
6343 LIBS="$gt_save_LIBS"
6344 fi
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6346 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6347 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6348
6349 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6350
6351 fi
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6353 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6354 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6355 $as_echo_n "(cached) " >&6
6356 else
6357 gt_save_LIBS="$LIBS"
6358 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6361 #include <CoreFoundation/CFLocale.h>
6362 int
6363 main ()
6364 {
6365 CFLocaleCopyCurrent();
6366 ;
6367 return 0;
6368 }
6369 _ACEOF
6370 if ac_fn_c_try_link "$LINENO"; then :
6371 gt_cv_func_CFLocaleCopyCurrent=yes
6372 else
6373 gt_cv_func_CFLocaleCopyCurrent=no
6374 fi
6375 rm -f core conftest.err conftest.$ac_objext \
6376 conftest$ac_exeext conftest.$ac_ext
6377 LIBS="$gt_save_LIBS"
6378 fi
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6380 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6381 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6382
6383 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6384
6385 fi
6386 INTL_MACOSX_LIBS=
6387 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6388 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6389 fi
6390
6391
6392
6393
6394
6395
6396 LIBINTL=
6397 LTLIBINTL=
6398 POSUB=
6399
6400 case " $gt_needs " in
6401 *" need-formatstring-macros "*) gt_api_version=3 ;;
6402 *" need-ngettext "*) gt_api_version=2 ;;
6403 *) gt_api_version=1 ;;
6404 esac
6405 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6406 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6407
6408 if test "$USE_NLS" = "yes"; then
6409 gt_use_preinstalled_gnugettext=no
6410
6411
6412 if test $gt_api_version -ge 3; then
6413 gt_revision_test_code='
6414 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6415 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6416 #endif
6417 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6418 '
6419 else
6420 gt_revision_test_code=
6421 fi
6422 if test $gt_api_version -ge 2; then
6423 gt_expression_test_code=' + * ngettext ("", "", 0)'
6424 else
6425 gt_expression_test_code=
6426 fi
6427
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6429 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6430 if eval \${$gt_func_gnugettext_libc+:} false; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6435
6436 #include <libintl.h>
6437 $gt_revision_test_code
6438 extern int _nl_msg_cat_cntr;
6439 extern int *_nl_domain_bindings;
6440
6441 int
6442 main ()
6443 {
6444
6445 bindtextdomain ("", "");
6446 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6447
6448 ;
6449 return 0;
6450 }
6451 _ACEOF
6452 if ac_fn_c_try_link "$LINENO"; then :
6453 eval "$gt_func_gnugettext_libc=yes"
6454 else
6455 eval "$gt_func_gnugettext_libc=no"
6456 fi
6457 rm -f core conftest.err conftest.$ac_objext \
6458 conftest$ac_exeext conftest.$ac_ext
6459 fi
6460 eval ac_res=\$$gt_func_gnugettext_libc
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6462 $as_echo "$ac_res" >&6; }
6463
6464 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6465
6466
6467
6468
6469
6470 am_save_CPPFLAGS="$CPPFLAGS"
6471
6472 for element in $INCICONV; do
6473 haveit=
6474 for x in $CPPFLAGS; do
6475
6476 acl_save_prefix="$prefix"
6477 prefix="$acl_final_prefix"
6478 acl_save_exec_prefix="$exec_prefix"
6479 exec_prefix="$acl_final_exec_prefix"
6480 eval x=\"$x\"
6481 exec_prefix="$acl_save_exec_prefix"
6482 prefix="$acl_save_prefix"
6483
6484 if test "X$x" = "X$element"; then
6485 haveit=yes
6486 break
6487 fi
6488 done
6489 if test -z "$haveit"; then
6490 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6491 fi
6492 done
6493
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6496 $as_echo_n "checking for iconv... " >&6; }
6497 if ${am_cv_func_iconv+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500
6501 am_cv_func_iconv="no, consider installing GNU libiconv"
6502 am_cv_lib_iconv=no
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505
6506 #include <stdlib.h>
6507 #include <iconv.h>
6508
6509 int
6510 main ()
6511 {
6512 iconv_t cd = iconv_open("","");
6513 iconv(cd,NULL,NULL,NULL,NULL);
6514 iconv_close(cd);
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_link "$LINENO"; then :
6520 am_cv_func_iconv=yes
6521 fi
6522 rm -f core conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524 if test "$am_cv_func_iconv" != yes; then
6525 am_save_LIBS="$LIBS"
6526 LIBS="$LIBS $LIBICONV"
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529
6530 #include <stdlib.h>
6531 #include <iconv.h>
6532
6533 int
6534 main ()
6535 {
6536 iconv_t cd = iconv_open("","");
6537 iconv(cd,NULL,NULL,NULL,NULL);
6538 iconv_close(cd);
6539 ;
6540 return 0;
6541 }
6542 _ACEOF
6543 if ac_fn_c_try_link "$LINENO"; then :
6544 am_cv_lib_iconv=yes
6545 am_cv_func_iconv=yes
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext \
6548 conftest$ac_exeext conftest.$ac_ext
6549 LIBS="$am_save_LIBS"
6550 fi
6551
6552 fi
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6554 $as_echo "$am_cv_func_iconv" >&6; }
6555 if test "$am_cv_func_iconv" = yes; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6557 $as_echo_n "checking for working iconv... " >&6; }
6558 if ${am_cv_func_iconv_works+:} false; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561
6562 am_save_LIBS="$LIBS"
6563 if test $am_cv_lib_iconv = yes; then
6564 LIBS="$LIBS $LIBICONV"
6565 fi
6566 am_cv_func_iconv_works=no
6567 for ac_iconv_const in '' 'const'; do
6568 if test "$cross_compiling" = yes; then :
6569 case "$host_os" in
6570 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6571 *) am_cv_func_iconv_works="guessing yes" ;;
6572 esac
6573 else
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576
6577 #include <iconv.h>
6578 #include <string.h>
6579
6580 #ifndef ICONV_CONST
6581 # define ICONV_CONST $ac_iconv_const
6582 #endif
6583
6584 int
6585 main ()
6586 {
6587 int result = 0;
6588 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6589 returns. */
6590 {
6591 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6592 if (cd_utf8_to_88591 != (iconv_t)(-1))
6593 {
6594 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
6595 char buf[10];
6596 ICONV_CONST char *inptr = input;
6597 size_t inbytesleft = strlen (input);
6598 char *outptr = buf;
6599 size_t outbytesleft = sizeof (buf);
6600 size_t res = iconv (cd_utf8_to_88591,
6601 &inptr, &inbytesleft,
6602 &outptr, &outbytesleft);
6603 if (res == 0)
6604 result |= 1;
6605 iconv_close (cd_utf8_to_88591);
6606 }
6607 }
6608 /* Test against Solaris 10 bug: Failures are not distinguishable from
6609 successful returns. */
6610 {
6611 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6612 if (cd_ascii_to_88591 != (iconv_t)(-1))
6613 {
6614 static ICONV_CONST char input[] = "\263";
6615 char buf[10];
6616 ICONV_CONST char *inptr = input;
6617 size_t inbytesleft = strlen (input);
6618 char *outptr = buf;
6619 size_t outbytesleft = sizeof (buf);
6620 size_t res = iconv (cd_ascii_to_88591,
6621 &inptr, &inbytesleft,
6622 &outptr, &outbytesleft);
6623 if (res == 0)
6624 result |= 2;
6625 iconv_close (cd_ascii_to_88591);
6626 }
6627 }
6628 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
6629 {
6630 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6631 if (cd_88591_to_utf8 != (iconv_t)(-1))
6632 {
6633 static ICONV_CONST char input[] = "\304";
6634 static char buf[2] = { (char)0xDE, (char)0xAD };
6635 ICONV_CONST char *inptr = input;
6636 size_t inbytesleft = 1;
6637 char *outptr = buf;
6638 size_t outbytesleft = 1;
6639 size_t res = iconv (cd_88591_to_utf8,
6640 &inptr, &inbytesleft,
6641 &outptr, &outbytesleft);
6642 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6643 result |= 4;
6644 iconv_close (cd_88591_to_utf8);
6645 }
6646 }
6647 #if 0 /* This bug could be worked around by the caller. */
6648 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6649 {
6650 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6651 if (cd_88591_to_utf8 != (iconv_t)(-1))
6652 {
6653 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6654 char buf[50];
6655 ICONV_CONST char *inptr = input;
6656 size_t inbytesleft = strlen (input);
6657 char *outptr = buf;
6658 size_t outbytesleft = sizeof (buf);
6659 size_t res = iconv (cd_88591_to_utf8,
6660 &inptr, &inbytesleft,
6661 &outptr, &outbytesleft);
6662 if ((int)res > 0)
6663 result |= 8;
6664 iconv_close (cd_88591_to_utf8);
6665 }
6666 }
6667 #endif
6668 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6669 provided. */
6670 if (/* Try standardized names. */
6671 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6672 /* Try IRIX, OSF/1 names. */
6673 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6674 /* Try AIX names. */
6675 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6676 /* Try HP-UX names. */
6677 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6678 result |= 16;
6679 return result;
6680
6681 ;
6682 return 0;
6683 }
6684 _ACEOF
6685 if ac_fn_c_try_run "$LINENO"; then :
6686 am_cv_func_iconv_works=yes
6687 fi
6688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6689 conftest.$ac_objext conftest.beam conftest.$ac_ext
6690 fi
6691
6692 test "$am_cv_func_iconv_works" = no || break
6693 done
6694 LIBS="$am_save_LIBS"
6695
6696 fi
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6698 $as_echo "$am_cv_func_iconv_works" >&6; }
6699 case "$am_cv_func_iconv_works" in
6700 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6701 *) am_func_iconv=yes ;;
6702 esac
6703 else
6704 am_func_iconv=no am_cv_lib_iconv=no
6705 fi
6706 if test "$am_func_iconv" = yes; then
6707
6708 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6709
6710 fi
6711 if test "$am_cv_lib_iconv" = yes; then
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6713 $as_echo_n "checking how to link with libiconv... " >&6; }
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6715 $as_echo "$LIBICONV" >&6; }
6716 else
6717 CPPFLAGS="$am_save_CPPFLAGS"
6718 LIBICONV=
6719 LTLIBICONV=
6720 fi
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732 use_additional=yes
6733
6734 acl_save_prefix="$prefix"
6735 prefix="$acl_final_prefix"
6736 acl_save_exec_prefix="$exec_prefix"
6737 exec_prefix="$acl_final_exec_prefix"
6738
6739 eval additional_includedir=\"$includedir\"
6740 eval additional_libdir=\"$libdir\"
6741
6742 exec_prefix="$acl_save_exec_prefix"
6743 prefix="$acl_save_prefix"
6744
6745
6746 # Check whether --with-libintl-prefix was given.
6747 if test "${with_libintl_prefix+set}" = set; then :
6748 withval=$with_libintl_prefix;
6749 if test "X$withval" = "Xno"; then
6750 use_additional=no
6751 else
6752 if test "X$withval" = "X"; then
6753
6754 acl_save_prefix="$prefix"
6755 prefix="$acl_final_prefix"
6756 acl_save_exec_prefix="$exec_prefix"
6757 exec_prefix="$acl_final_exec_prefix"
6758
6759 eval additional_includedir=\"$includedir\"
6760 eval additional_libdir=\"$libdir\"
6761
6762 exec_prefix="$acl_save_exec_prefix"
6763 prefix="$acl_save_prefix"
6764
6765 else
6766 additional_includedir="$withval/include"
6767 additional_libdir="$withval/$acl_libdirstem"
6768 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6769 && ! test -d "$withval/$acl_libdirstem"; then
6770 additional_libdir="$withval/$acl_libdirstem2"
6771 fi
6772 fi
6773 fi
6774
6775 fi
6776
6777 LIBINTL=
6778 LTLIBINTL=
6779 INCINTL=
6780 LIBINTL_PREFIX=
6781 HAVE_LIBINTL=
6782 rpathdirs=
6783 ltrpathdirs=
6784 names_already_handled=
6785 names_next_round='intl '
6786 while test -n "$names_next_round"; do
6787 names_this_round="$names_next_round"
6788 names_next_round=
6789 for name in $names_this_round; do
6790 already_handled=
6791 for n in $names_already_handled; do
6792 if test "$n" = "$name"; then
6793 already_handled=yes
6794 break
6795 fi
6796 done
6797 if test -z "$already_handled"; then
6798 names_already_handled="$names_already_handled $name"
6799 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6800 eval value=\"\$HAVE_LIB$uppername\"
6801 if test -n "$value"; then
6802 if test "$value" = yes; then
6803 eval value=\"\$LIB$uppername\"
6804 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6805 eval value=\"\$LTLIB$uppername\"
6806 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6807 else
6808 :
6809 fi
6810 else
6811 found_dir=
6812 found_la=
6813 found_so=
6814 found_a=
6815 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6816 if test -n "$acl_shlibext"; then
6817 shrext=".$acl_shlibext" # typically: shrext=.so
6818 else
6819 shrext=
6820 fi
6821 if test $use_additional = yes; then
6822 dir="$additional_libdir"
6823 if test -n "$acl_shlibext"; then
6824 if test -f "$dir/$libname$shrext"; then
6825 found_dir="$dir"
6826 found_so="$dir/$libname$shrext"
6827 else
6828 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6829 ver=`(cd "$dir" && \
6830 for f in "$libname$shrext".*; do echo "$f"; done \
6831 | sed -e "s,^$libname$shrext\\\\.,," \
6832 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6833 | sed 1q ) 2>/dev/null`
6834 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6835 found_dir="$dir"
6836 found_so="$dir/$libname$shrext.$ver"
6837 fi
6838 else
6839 eval library_names=\"$acl_library_names_spec\"
6840 for f in $library_names; do
6841 if test -f "$dir/$f"; then
6842 found_dir="$dir"
6843 found_so="$dir/$f"
6844 break
6845 fi
6846 done
6847 fi
6848 fi
6849 fi
6850 if test "X$found_dir" = "X"; then
6851 if test -f "$dir/$libname.$acl_libext"; then
6852 found_dir="$dir"
6853 found_a="$dir/$libname.$acl_libext"
6854 fi
6855 fi
6856 if test "X$found_dir" != "X"; then
6857 if test -f "$dir/$libname.la"; then
6858 found_la="$dir/$libname.la"
6859 fi
6860 fi
6861 fi
6862 if test "X$found_dir" = "X"; then
6863 for x in $LDFLAGS $LTLIBINTL; do
6864
6865 acl_save_prefix="$prefix"
6866 prefix="$acl_final_prefix"
6867 acl_save_exec_prefix="$exec_prefix"
6868 exec_prefix="$acl_final_exec_prefix"
6869 eval x=\"$x\"
6870 exec_prefix="$acl_save_exec_prefix"
6871 prefix="$acl_save_prefix"
6872
6873 case "$x" in
6874 -L*)
6875 dir=`echo "X$x" | sed -e 's/^X-L//'`
6876 if test -n "$acl_shlibext"; then
6877 if test -f "$dir/$libname$shrext"; then
6878 found_dir="$dir"
6879 found_so="$dir/$libname$shrext"
6880 else
6881 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6882 ver=`(cd "$dir" && \
6883 for f in "$libname$shrext".*; do echo "$f"; done \
6884 | sed -e "s,^$libname$shrext\\\\.,," \
6885 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6886 | sed 1q ) 2>/dev/null`
6887 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6888 found_dir="$dir"
6889 found_so="$dir/$libname$shrext.$ver"
6890 fi
6891 else
6892 eval library_names=\"$acl_library_names_spec\"
6893 for f in $library_names; do
6894 if test -f "$dir/$f"; then
6895 found_dir="$dir"
6896 found_so="$dir/$f"
6897 break
6898 fi
6899 done
6900 fi
6901 fi
6902 fi
6903 if test "X$found_dir" = "X"; then
6904 if test -f "$dir/$libname.$acl_libext"; then
6905 found_dir="$dir"
6906 found_a="$dir/$libname.$acl_libext"
6907 fi
6908 fi
6909 if test "X$found_dir" != "X"; then
6910 if test -f "$dir/$libname.la"; then
6911 found_la="$dir/$libname.la"
6912 fi
6913 fi
6914 ;;
6915 esac
6916 if test "X$found_dir" != "X"; then
6917 break
6918 fi
6919 done
6920 fi
6921 if test "X$found_dir" != "X"; then
6922 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6923 if test "X$found_so" != "X"; then
6924 if test "$enable_rpath" = no \
6925 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6926 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6927 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6928 else
6929 haveit=
6930 for x in $ltrpathdirs; do
6931 if test "X$x" = "X$found_dir"; then
6932 haveit=yes
6933 break
6934 fi
6935 done
6936 if test -z "$haveit"; then
6937 ltrpathdirs="$ltrpathdirs $found_dir"
6938 fi
6939 if test "$acl_hardcode_direct" = yes; then
6940 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6941 else
6942 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6943 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6944 haveit=
6945 for x in $rpathdirs; do
6946 if test "X$x" = "X$found_dir"; then
6947 haveit=yes
6948 break
6949 fi
6950 done
6951 if test -z "$haveit"; then
6952 rpathdirs="$rpathdirs $found_dir"
6953 fi
6954 else
6955 haveit=
6956 for x in $LDFLAGS $LIBINTL; do
6957
6958 acl_save_prefix="$prefix"
6959 prefix="$acl_final_prefix"
6960 acl_save_exec_prefix="$exec_prefix"
6961 exec_prefix="$acl_final_exec_prefix"
6962 eval x=\"$x\"
6963 exec_prefix="$acl_save_exec_prefix"
6964 prefix="$acl_save_prefix"
6965
6966 if test "X$x" = "X-L$found_dir"; then
6967 haveit=yes
6968 break
6969 fi
6970 done
6971 if test -z "$haveit"; then
6972 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6973 fi
6974 if test "$acl_hardcode_minus_L" != no; then
6975 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6976 else
6977 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6978 fi
6979 fi
6980 fi
6981 fi
6982 else
6983 if test "X$found_a" != "X"; then
6984 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6985 else
6986 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6987 fi
6988 fi
6989 additional_includedir=
6990 case "$found_dir" in
6991 */$acl_libdirstem | */$acl_libdirstem/)
6992 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6993 if test "$name" = 'intl'; then
6994 LIBINTL_PREFIX="$basedir"
6995 fi
6996 additional_includedir="$basedir/include"
6997 ;;
6998 */$acl_libdirstem2 | */$acl_libdirstem2/)
6999 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7000 if test "$name" = 'intl'; then
7001 LIBINTL_PREFIX="$basedir"
7002 fi
7003 additional_includedir="$basedir/include"
7004 ;;
7005 esac
7006 if test "X$additional_includedir" != "X"; then
7007 if test "X$additional_includedir" != "X/usr/include"; then
7008 haveit=
7009 if test "X$additional_includedir" = "X/usr/local/include"; then
7010 if test -n "$GCC"; then
7011 case $host_os in
7012 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7013 esac
7014 fi
7015 fi
7016 if test -z "$haveit"; then
7017 for x in $CPPFLAGS $INCINTL; do
7018
7019 acl_save_prefix="$prefix"
7020 prefix="$acl_final_prefix"
7021 acl_save_exec_prefix="$exec_prefix"
7022 exec_prefix="$acl_final_exec_prefix"
7023 eval x=\"$x\"
7024 exec_prefix="$acl_save_exec_prefix"
7025 prefix="$acl_save_prefix"
7026
7027 if test "X$x" = "X-I$additional_includedir"; then
7028 haveit=yes
7029 break
7030 fi
7031 done
7032 if test -z "$haveit"; then
7033 if test -d "$additional_includedir"; then
7034 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7035 fi
7036 fi
7037 fi
7038 fi
7039 fi
7040 if test -n "$found_la"; then
7041 save_libdir="$libdir"
7042 case "$found_la" in
7043 */* | *\\*) . "$found_la" ;;
7044 *) . "./$found_la" ;;
7045 esac
7046 libdir="$save_libdir"
7047 for dep in $dependency_libs; do
7048 case "$dep" in
7049 -L*)
7050 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7051 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7052 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7053 haveit=
7054 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7055 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7056 if test -n "$GCC"; then
7057 case $host_os in
7058 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7059 esac
7060 fi
7061 fi
7062 if test -z "$haveit"; then
7063 haveit=
7064 for x in $LDFLAGS $LIBINTL; do
7065
7066 acl_save_prefix="$prefix"
7067 prefix="$acl_final_prefix"
7068 acl_save_exec_prefix="$exec_prefix"
7069 exec_prefix="$acl_final_exec_prefix"
7070 eval x=\"$x\"
7071 exec_prefix="$acl_save_exec_prefix"
7072 prefix="$acl_save_prefix"
7073
7074 if test "X$x" = "X-L$additional_libdir"; then
7075 haveit=yes
7076 break
7077 fi
7078 done
7079 if test -z "$haveit"; then
7080 if test -d "$additional_libdir"; then
7081 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7082 fi
7083 fi
7084 haveit=
7085 for x in $LDFLAGS $LTLIBINTL; do
7086
7087 acl_save_prefix="$prefix"
7088 prefix="$acl_final_prefix"
7089 acl_save_exec_prefix="$exec_prefix"
7090 exec_prefix="$acl_final_exec_prefix"
7091 eval x=\"$x\"
7092 exec_prefix="$acl_save_exec_prefix"
7093 prefix="$acl_save_prefix"
7094
7095 if test "X$x" = "X-L$additional_libdir"; then
7096 haveit=yes
7097 break
7098 fi
7099 done
7100 if test -z "$haveit"; then
7101 if test -d "$additional_libdir"; then
7102 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7103 fi
7104 fi
7105 fi
7106 fi
7107 ;;
7108 -R*)
7109 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7110 if test "$enable_rpath" != no; then
7111 haveit=
7112 for x in $rpathdirs; do
7113 if test "X$x" = "X$dir"; then
7114 haveit=yes
7115 break
7116 fi
7117 done
7118 if test -z "$haveit"; then
7119 rpathdirs="$rpathdirs $dir"
7120 fi
7121 haveit=
7122 for x in $ltrpathdirs; do
7123 if test "X$x" = "X$dir"; then
7124 haveit=yes
7125 break
7126 fi
7127 done
7128 if test -z "$haveit"; then
7129 ltrpathdirs="$ltrpathdirs $dir"
7130 fi
7131 fi
7132 ;;
7133 -l*)
7134 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7135 ;;
7136 *.la)
7137 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7138 ;;
7139 *)
7140 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7141 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7142 ;;
7143 esac
7144 done
7145 fi
7146 else
7147 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7148 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7149 fi
7150 fi
7151 fi
7152 done
7153 done
7154 if test "X$rpathdirs" != "X"; then
7155 if test -n "$acl_hardcode_libdir_separator"; then
7156 alldirs=
7157 for found_dir in $rpathdirs; do
7158 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7159 done
7160 acl_save_libdir="$libdir"
7161 libdir="$alldirs"
7162 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7163 libdir="$acl_save_libdir"
7164 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7165 else
7166 for found_dir in $rpathdirs; do
7167 acl_save_libdir="$libdir"
7168 libdir="$found_dir"
7169 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7170 libdir="$acl_save_libdir"
7171 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7172 done
7173 fi
7174 fi
7175 if test "X$ltrpathdirs" != "X"; then
7176 for found_dir in $ltrpathdirs; do
7177 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7178 done
7179 fi
7180
7181
7182
7183
7184
7185
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7187 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7188 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 gt_save_CPPFLAGS="$CPPFLAGS"
7192 CPPFLAGS="$CPPFLAGS $INCINTL"
7193 gt_save_LIBS="$LIBS"
7194 LIBS="$LIBS $LIBINTL"
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197
7198 #include <libintl.h>
7199 $gt_revision_test_code
7200 extern int _nl_msg_cat_cntr;
7201 extern
7202 #ifdef __cplusplus
7203 "C"
7204 #endif
7205 const char *_nl_expand_alias (const char *);
7206
7207 int
7208 main ()
7209 {
7210
7211 bindtextdomain ("", "");
7212 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7213
7214 ;
7215 return 0;
7216 }
7217 _ACEOF
7218 if ac_fn_c_try_link "$LINENO"; then :
7219 eval "$gt_func_gnugettext_libintl=yes"
7220 else
7221 eval "$gt_func_gnugettext_libintl=no"
7222 fi
7223 rm -f core conftest.err conftest.$ac_objext \
7224 conftest$ac_exeext conftest.$ac_ext
7225 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7226 LIBS="$LIBS $LIBICONV"
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7229
7230 #include <libintl.h>
7231 $gt_revision_test_code
7232 extern int _nl_msg_cat_cntr;
7233 extern
7234 #ifdef __cplusplus
7235 "C"
7236 #endif
7237 const char *_nl_expand_alias (const char *);
7238
7239 int
7240 main ()
7241 {
7242
7243 bindtextdomain ("", "");
7244 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7245
7246 ;
7247 return 0;
7248 }
7249 _ACEOF
7250 if ac_fn_c_try_link "$LINENO"; then :
7251 LIBINTL="$LIBINTL $LIBICONV"
7252 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7253 eval "$gt_func_gnugettext_libintl=yes"
7254
7255 fi
7256 rm -f core conftest.err conftest.$ac_objext \
7257 conftest$ac_exeext conftest.$ac_ext
7258 fi
7259 CPPFLAGS="$gt_save_CPPFLAGS"
7260 LIBS="$gt_save_LIBS"
7261 fi
7262 eval ac_res=\$$gt_func_gnugettext_libintl
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7264 $as_echo "$ac_res" >&6; }
7265 fi
7266
7267 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7268 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7269 && test "$PACKAGE" != gettext-runtime \
7270 && test "$PACKAGE" != gettext-tools; }; then
7271 gt_use_preinstalled_gnugettext=yes
7272 else
7273 LIBINTL=
7274 LTLIBINTL=
7275 INCINTL=
7276 fi
7277
7278
7279
7280 if test -n "$INTL_MACOSX_LIBS"; then
7281 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7282 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7283 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7284 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7285 fi
7286 fi
7287
7288 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7289 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7290
7291 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7292
7293 else
7294 USE_NLS=no
7295 fi
7296 fi
7297
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7299 $as_echo_n "checking whether to use NLS... " >&6; }
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7301 $as_echo "$USE_NLS" >&6; }
7302 if test "$USE_NLS" = "yes"; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7304 $as_echo_n "checking where the gettext function comes from... " >&6; }
7305 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7306 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7307 gt_source="external libintl"
7308 else
7309 gt_source="libc"
7310 fi
7311 else
7312 gt_source="included intl directory"
7313 fi
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7315 $as_echo "$gt_source" >&6; }
7316 fi
7317
7318 if test "$USE_NLS" = "yes"; then
7319
7320 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7321 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7323 $as_echo_n "checking how to link with libintl... " >&6; }
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7325 $as_echo "$LIBINTL" >&6; }
7326
7327 for element in $INCINTL; do
7328 haveit=
7329 for x in $CPPFLAGS; do
7330
7331 acl_save_prefix="$prefix"
7332 prefix="$acl_final_prefix"
7333 acl_save_exec_prefix="$exec_prefix"
7334 exec_prefix="$acl_final_exec_prefix"
7335 eval x=\"$x\"
7336 exec_prefix="$acl_save_exec_prefix"
7337 prefix="$acl_save_prefix"
7338
7339 if test "X$x" = "X$element"; then
7340 haveit=yes
7341 break
7342 fi
7343 done
7344 if test -z "$haveit"; then
7345 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7346 fi
7347 done
7348
7349 fi
7350
7351
7352 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7353
7354
7355 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7356
7357 fi
7358
7359 POSUB=po
7360 fi
7361
7362
7363
7364 INTLLIBS="$LIBINTL"
7365
7366
7367
7368
7369
7370
7371
7372
7373 # Check whether --enable-unix-install was given.
7374 if test "${enable_unix_install+set}" = set; then :
7375 enableval=$enable_unix_install; unixinst=$enableval
7376 else
7377 unixinst=yes
7378 fi
7379
7380 # Check whether --enable-dlgedit was given.
7381 if test "${enable_dlgedit+set}" = set; then :
7382 enableval=$enable_dlgedit; dlgedit=$enableval
7383 else
7384 dlgedit=no
7385 fi
7386
7387 # Check whether --enable-memleaks was given.
7388 if test "${enable_memleaks+set}" = set; then :
7389 enableval=$enable_memleaks; memleaks=$enableval
7390 else
7391 memleaks=no
7392 fi
7393
7394 # Check whether --enable-doc was given.
7395 if test "${enable_doc+set}" = set; then :
7396 enableval=$enable_doc; builddoc=$enableval
7397 else
7398 builddoc=no
7399 fi
7400
7401 # Check whether --enable-py-debug was given.
7402 if test "${enable_py_debug+set}" = set; then :
7403 enableval=$enable_py_debug; pydebug=$enableval
7404 else
7405 pydebug=yes
7406 fi
7407
7408 # Check whether --enable-pyc was given.
7409 if test "${enable_pyc+set}" = set; then :
7410 enableval=$enable_pyc;
7411 fi
7412
7413
7414 # Check whether --with-data-dir was given.
7415 if test "${with_data_dir+set}" = set; then :
7416 withval=$with_data_dir; gamedatadir="$withval"
7417 else
7418 gamedatadir=none
7419 fi
7420
7421
7422 # Check whether --with-python was given.
7423 if test "${with_python+set}" = set; then :
7424 withval=$with_python;
7425 else
7426 with_python=no
7427 fi
7428
7429
7430 # Check whether --with-py-libs was given.
7431 if test "${with_py_libs+set}" = set; then :
7432 withval=$with_py_libs; pylibs="$withval"
7433 else
7434 pylibs=none
7435 fi
7436
7437
7438 # Check whether --with-py-cflags was given.
7439 if test "${with_py_cflags+set}" = set; then :
7440 withval=$with_py_cflags; pycflags="$withval"
7441 else
7442 pycflags=none
7443 fi
7444
7445
7446
7447 if test "x$enable_pyc" != "xno"; then
7448 COMPILE_SCRIPTS_TRUE=
7449 COMPILE_SCRIPTS_FALSE='#'
7450 else
7451 COMPILE_SCRIPTS_TRUE='#'
7452 COMPILE_SCRIPTS_FALSE=
7453 fi
7454
7455
7456
7457 if test x$gamedatadir = xnone; then
7458 if test x$unixinst = xno; then
7459 DEFS="$DEFS -DSINGLE_DIR_INST"
7460
7461 case "$target" in
7462 *-apple-darwin*)
7463 osx="yes"
7464 gamedatadir="${datadir}/Resources"
7465 DEFS="$DEFS -DDATA_DIR=\"\\\"../Resources\\\"\""
7466 LDFLAGS="$LDFLAGS -headerpad_max_install_names"
7467 ;;
7468 *-*-cygwin* | *-*-mingw32 | *-*-mingw64 )
7469 gamedatadir="${datadir}"
7470 DEFS="$DEFS -DDATA_DIR=\"\\\"../\\\"\""
7471 ;;
7472 *)
7473 gamedatadir="${datadir}/adonthell"
7474 DEFS="$DEFS -DDATA_DIR=\"\\\"../share/adonthell\\\"\""
7475 ;;
7476 esac
7477 else
7478 gamedatadir="${datadir}/adonthell"
7479 DEFS="$DEFS -DDATA_DIR=\"\\\"$gamedatadir\\\"\""
7480
7481 case "$target" in
7482 *-apple-darwin*)
7483 osx="yes"
7484 ;;
7485 esac
7486 fi
7487 else
7488 DEFS="$DEFS -DDATA_DIR=\"\\\"$gamedatadir\\\"\""
7489 fi
7490
7491
7492 if test x$memleaks = xyes; then
7493 DEFS="$DEFS -DMEMORY_LEAKS"
7494 fi
7495
7496
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
7498 $as_echo_n "checking for main in -lpthread... " >&6; }
7499 if ${ac_cv_lib_pthread_main+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 ac_check_lib_save_LIBS=$LIBS
7503 LIBS="-lpthread $LIBS"
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506
7507
7508 int
7509 main ()
7510 {
7511 return main ();
7512 ;
7513 return 0;
7514 }
7515 _ACEOF
7516 if ac_fn_c_try_link "$LINENO"; then :
7517 ac_cv_lib_pthread_main=yes
7518 else
7519 ac_cv_lib_pthread_main=no
7520 fi
7521 rm -f core conftest.err conftest.$ac_objext \
7522 conftest$ac_exeext conftest.$ac_ext
7523 LIBS=$ac_check_lib_save_LIBS
7524 fi
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7526 $as_echo "$ac_cv_lib_pthread_main" >&6; }
7527 if test "x$ac_cv_lib_pthread_main" = xyes; then :
7528 PTHREADS=yes
7529 else
7530 PTHREADS=no
7531 fi
7532
7533
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
7535 $as_echo_n "checking for main in -lz... " >&6; }
7536 if ${ac_cv_lib_z_main+:} false; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 ac_check_lib_save_LIBS=$LIBS
7540 LIBS="-lz $LIBS"
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543
7544
7545 int
7546 main ()
7547 {
7548 return main ();
7549 ;
7550 return 0;
7551 }
7552 _ACEOF
7553 if ac_fn_c_try_link "$LINENO"; then :
7554 ac_cv_lib_z_main=yes
7555 else
7556 ac_cv_lib_z_main=no
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext \
7559 conftest$ac_exeext conftest.$ac_ext
7560 LIBS=$ac_check_lib_save_LIBS
7561 fi
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
7563 $as_echo "$ac_cv_lib_z_main" >&6; }
7564 if test "x$ac_cv_lib_z_main" = xyes; then :
7565 LIBS="$LIBS -lz"
7566 else
7567 as_fn_error $? "*** ZLib is required" "$LINENO" 5
7568 fi
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7580 if test -n "$ac_tool_prefix"; then
7581 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7582 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584 $as_echo_n "checking for $ac_word... " >&6; }
7585 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 case $PKG_CONFIG in
7589 [\\/]* | ?:[\\/]*)
7590 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7591 ;;
7592 *)
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594 for as_dir in $PATH
7595 do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7600 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7603 fi
7604 done
7605 done
7606 IFS=$as_save_IFS
7607
7608 ;;
7609 esac
7610 fi
7611 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7612 if test -n "$PKG_CONFIG"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7614 $as_echo "$PKG_CONFIG" >&6; }
7615 else
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7618 fi
7619
7620
7621 fi
7622 if test -z "$ac_cv_path_PKG_CONFIG"; then
7623 ac_pt_PKG_CONFIG=$PKG_CONFIG
7624 # Extract the first word of "pkg-config", so it can be a program name with args.
7625 set dummy pkg-config; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 case $ac_pt_PKG_CONFIG in
7632 [\\/]* | ?:[\\/]*)
7633 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7634 ;;
7635 *)
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637 for as_dir in $PATH
7638 do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647 done
7648 done
7649 IFS=$as_save_IFS
7650
7651 ;;
7652 esac
7653 fi
7654 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7655 if test -n "$ac_pt_PKG_CONFIG"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7657 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7658 else
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662
7663 if test "x$ac_pt_PKG_CONFIG" = x; then
7664 PKG_CONFIG=""
7665 else
7666 case $cross_compiling:$ac_tool_warned in
7667 yes:)
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7670 ac_tool_warned=yes ;;
7671 esac
7672 PKG_CONFIG=$ac_pt_PKG_CONFIG
7673 fi
7674 else
7675 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7676 fi
7677
7678 fi
7679 if test -n "$PKG_CONFIG"; then
7680 _pkg_min_version=0.9.0
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7682 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7683 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7685 $as_echo "yes" >&6; }
7686 else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7689 PKG_CONFIG=""
7690 fi
7691 fi
7692
7693 pkg_failed=no
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT2" >&5
7695 $as_echo_n "checking for FT2... " >&6; }
7696
7697 if test -n "$FT2_CFLAGS"; then
7698 pkg_cv_FT2_CFLAGS="$FT2_CFLAGS"
7699 elif test -n "$PKG_CONFIG"; then
7700 if test -n "$PKG_CONFIG" && \
7701 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 6.0.0\""; } >&5
7702 ($PKG_CONFIG --exists --print-errors "freetype2 >= 6.0.0") 2>&5
7703 ac_status=$?
7704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7705 test $ac_status = 0; }; then
7706 pkg_cv_FT2_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 6.0.0" 2>/dev/null`
7707 test "x$?" != "x0" && pkg_failed=yes
7708 else
7709 pkg_failed=yes
7710 fi
7711 else
7712 pkg_failed=untried
7713 fi
7714 if test -n "$FT2_LIBS"; then
7715 pkg_cv_FT2_LIBS="$FT2_LIBS"
7716 elif test -n "$PKG_CONFIG"; then
7717 if test -n "$PKG_CONFIG" && \
7718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 6.0.0\""; } >&5
7719 ($PKG_CONFIG --exists --print-errors "freetype2 >= 6.0.0") 2>&5
7720 ac_status=$?
7721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7722 test $ac_status = 0; }; then
7723 pkg_cv_FT2_LIBS=`$PKG_CONFIG --libs "freetype2 >= 6.0.0" 2>/dev/null`
7724 test "x$?" != "x0" && pkg_failed=yes
7725 else
7726 pkg_failed=yes
7727 fi
7728 else
7729 pkg_failed=untried
7730 fi
7731
7732
7733
7734 if test $pkg_failed = yes; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7737
7738 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7739 _pkg_short_errors_supported=yes
7740 else
7741 _pkg_short_errors_supported=no
7742 fi
7743 if test $_pkg_short_errors_supported = yes; then
7744 FT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 6.0.0" 2>&1`
7745 else
7746 FT2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 6.0.0" 2>&1`
7747 fi
7748 # Put the nasty error message in config.log where it belongs
7749 echo "$FT2_PKG_ERRORS" >&5
7750
7751 as_fn_error $? "*** Freetype2 is required" "$LINENO" 5
7752 elif test $pkg_failed = untried; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 as_fn_error $? "*** Freetype2 is required" "$LINENO" 5
7756 else
7757 FT2_CFLAGS=$pkg_cv_FT2_CFLAGS
7758 FT2_LIBS=$pkg_cv_FT2_LIBS
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7760 $as_echo "yes" >&6; }
7761 :
7762 fi
7763
7764
7765
7766
7767
7768
7769 pkg_failed=no
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OGG" >&5
7771 $as_echo_n "checking for OGG... " >&6; }
7772
7773 if test -n "$OGG_CFLAGS"; then
7774 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
7775 elif test -n "$PKG_CONFIG"; then
7776 if test -n "$PKG_CONFIG" && \
7777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0.0, vorbis >= 1.0.0\""; } >&5
7778 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0.0, vorbis >= 1.0.0") 2>&5
7779 ac_status=$?
7780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7781 test $ac_status = 0; }; then
7782 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.0.0, vorbis >= 1.0.0" 2>/dev/null`
7783 test "x$?" != "x0" && pkg_failed=yes
7784 else
7785 pkg_failed=yes
7786 fi
7787 else
7788 pkg_failed=untried
7789 fi
7790 if test -n "$OGG_LIBS"; then
7791 pkg_cv_OGG_LIBS="$OGG_LIBS"
7792 elif test -n "$PKG_CONFIG"; then
7793 if test -n "$PKG_CONFIG" && \
7794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.0.0, vorbis >= 1.0.0\""; } >&5
7795 ($PKG_CONFIG --exists --print-errors "ogg >= 1.0.0, vorbis >= 1.0.0") 2>&5
7796 ac_status=$?
7797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7798 test $ac_status = 0; }; then
7799 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.0.0, vorbis >= 1.0.0" 2>/dev/null`
7800 test "x$?" != "x0" && pkg_failed=yes
7801 else
7802 pkg_failed=yes
7803 fi
7804 else
7805 pkg_failed=untried
7806 fi
7807
7808
7809
7810 if test $pkg_failed = yes; then
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812 $as_echo "no" >&6; }
7813
7814 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7815 _pkg_short_errors_supported=yes
7816 else
7817 _pkg_short_errors_supported=no
7818 fi
7819 if test $_pkg_short_errors_supported = yes; then
7820 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ogg >= 1.0.0, vorbis >= 1.0.0" 2>&1`
7821 else
7822 OGG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ogg >= 1.0.0, vorbis >= 1.0.0" 2>&1`
7823 fi
7824 # Put the nasty error message in config.log where it belongs
7825 echo "$OGG_PKG_ERRORS" >&5
7826
7827
7828 OGG_VORBIS=no
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling OggVorbis support" >&5
7830 $as_echo "Disabling OggVorbis support" >&6; }
7831 ogg_music="disabled"
7832
7833 elif test $pkg_failed = untried; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7836
7837 OGG_VORBIS=no
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling OggVorbis support" >&5
7839 $as_echo "Disabling OggVorbis support" >&6; }
7840 ogg_music="disabled"
7841
7842 else
7843 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
7844 OGG_LIBS=$pkg_cv_OGG_LIBS
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7846 $as_echo "yes" >&6; }
7847
7848 OGG_VORBIS="yes"
7849 ogg_music="enabled"
7850 OGG_DEFS="-DOGG_MUSIC"
7851
7852 fi
7853
7854
7855
7856
7857 SDL_VERSION=2.0.0
7858
7859 # Check whether --with-sdl-prefix was given.
7860 if test "${with_sdl_prefix+set}" = set; then :
7861 withval=$with_sdl_prefix; sdl_prefix="$withval"
7862 else
7863 sdl_prefix=""
7864 fi
7865
7866
7867 # Check whether --with-sdl-exec-prefix was given.
7868 if test "${with_sdl_exec_prefix+set}" = set; then :
7869 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7870 else
7871 sdl_exec_prefix=""
7872 fi
7873
7874 # Check whether --enable-sdltest was given.
7875 if test "${enable_sdltest+set}" = set; then :
7876 enableval=$enable_sdltest;
7877 else
7878 enable_sdltest=yes
7879 fi
7880
7881 # Check whether --enable-sdlframework was given.
7882 if test "${enable_sdlframework+set}" = set; then :
7883 enableval=$enable_sdlframework;
7884 else
7885 search_sdl_framework=yes
7886 fi
7887
7888
7889
7890
7891 min_sdl_version=$SDL_VERSION
7892
7893 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
7894
7895 pkg_failed=no
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
7897 $as_echo_n "checking for SDL... " >&6; }
7898
7899 if test -n "$SDL_CFLAGS"; then
7900 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
7901 elif test -n "$PKG_CONFIG"; then
7902 if test -n "$PKG_CONFIG" && \
7903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
7904 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
7905 ac_status=$?
7906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7907 test $ac_status = 0; }; then
7908 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl2 >= $min_sdl_version" 2>/dev/null`
7909 test "x$?" != "x0" && pkg_failed=yes
7910 else
7911 pkg_failed=yes
7912 fi
7913 else
7914 pkg_failed=untried
7915 fi
7916 if test -n "$SDL_LIBS"; then
7917 pkg_cv_SDL_LIBS="$SDL_LIBS"
7918 elif test -n "$PKG_CONFIG"; then
7919 if test -n "$PKG_CONFIG" && \
7920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl2 >= \$min_sdl_version\""; } >&5
7921 ($PKG_CONFIG --exists --print-errors "sdl2 >= $min_sdl_version") 2>&5
7922 ac_status=$?
7923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7924 test $ac_status = 0; }; then
7925 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl2 >= $min_sdl_version" 2>/dev/null`
7926 test "x$?" != "x0" && pkg_failed=yes
7927 else
7928 pkg_failed=yes
7929 fi
7930 else
7931 pkg_failed=untried
7932 fi
7933
7934
7935
7936 if test $pkg_failed = yes; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939
7940 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7941 _pkg_short_errors_supported=yes
7942 else
7943 _pkg_short_errors_supported=no
7944 fi
7945 if test $_pkg_short_errors_supported = yes; then
7946 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1`
7947 else
7948 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl2 >= $min_sdl_version" 2>&1`
7949 fi
7950 # Put the nasty error message in config.log where it belongs
7951 echo "$SDL_PKG_ERRORS" >&5
7952
7953 sdl_pc=no
7954 elif test $pkg_failed = untried; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956 $as_echo "no" >&6; }
7957 sdl_pc=no
7958 else
7959 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
7960 SDL_LIBS=$pkg_cv_SDL_LIBS
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7962 $as_echo "yes" >&6; }
7963 sdl_pc=yes
7964 fi
7965 else
7966 sdl_pc=no
7967 if test x$sdl_exec_prefix != x ; then
7968 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
7969 if test x${SDL2_CONFIG+set} != xset ; then
7970 SDL2_CONFIG=$sdl_exec_prefix/bin/sdl2-config
7971 fi
7972 fi
7973 if test x$sdl_prefix != x ; then
7974 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
7975 if test x${SDL2_CONFIG+set} != xset ; then
7976 SDL2_CONFIG=$sdl_prefix/bin/sdl2-config
7977 fi
7978 fi
7979 fi
7980
7981 if test "x$sdl_pc" = xyes ; then
7982 no_sdl=""
7983 SDL2_CONFIG="pkg-config sdl2"
7984 else
7985 as_save_PATH="$PATH"
7986 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
7987 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7988 fi
7989 # Extract the first word of "sdl2-config", so it can be a program name with args.
7990 set dummy sdl2-config; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_path_SDL2_CONFIG+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 case $SDL2_CONFIG in
7997 [\\/]* | ?:[\\/]*)
7998 ac_cv_path_SDL2_CONFIG="$SDL2_CONFIG" # Let the user override the test with a path.
7999 ;;
8000 *)
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8003 do
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8008 ac_cv_path_SDL2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012 done
8013 done
8014 IFS=$as_save_IFS
8015
8016 test -z "$ac_cv_path_SDL2_CONFIG" && ac_cv_path_SDL2_CONFIG="no"
8017 ;;
8018 esac
8019 fi
8020 SDL2_CONFIG=$ac_cv_path_SDL2_CONFIG
8021 if test -n "$SDL2_CONFIG"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL2_CONFIG" >&5
8023 $as_echo "$SDL2_CONFIG" >&6; }
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029
8030 PATH="$as_save_PATH"
8031 no_sdl=""
8032
8033 if test "$SDL2_CONFIG" = "no" -a "x$search_sdl_framework" = "xyes"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL2.framework" >&5
8035 $as_echo_n "checking for SDL2.framework... " >&6; }
8036 if test "x$SDL2_FRAMEWORK" != x; then
8037 sdl_framework=$SDL2_FRAMEWORK
8038 else
8039 for d in / ~/ /System/; do
8040 if test -d "$dLibrary/Frameworks/SDL2.framework"; then
8041 sdl_framework="$dLibrary/Frameworks/SDL2.framework"
8042 fi
8043 done
8044 fi
8045
8046 if test -d $sdl_framework; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sdl_framework" >&5
8048 $as_echo "$sdl_framework" >&6; }
8049 sdl_framework_dir=`dirname $sdl_framework`
8050 SDL_CFLAGS="-F$sdl_framework_dir -Wl,-framework,SDL2 -I$sdl_framework/include"
8051 SDL_LIBS="-F$sdl_framework_dir -Wl,-framework,SDL2"
8052 else
8053 no_sdl=yes
8054 fi
8055 fi
8056
8057 if test "$SDL2_CONFIG" != "no"; then
8058 if test "x$sdl_pc" = "xno"; then
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
8060 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
8061 SDL_CFLAGS=`$SDL2_CONFIG $sdl_config_args --cflags`
8062 SDL_LIBS=`$SDL2_CONFIG $sdl_config_args --libs`
8063 fi
8064
8065 sdl_major_version=`$SDL2_CONFIG $sdl_config_args --version | \
8066 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8067 sdl_minor_version=`$SDL2_CONFIG $sdl_config_args --version | \
8068 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8069 sdl_micro_version=`$SDL2_CONFIG $sdl_config_args --version | \
8070 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8071 if test "x$enable_sdltest" = "xyes" ; then
8072 ac_save_CFLAGS="$CFLAGS"
8073 ac_save_CXXFLAGS="$CXXFLAGS"
8074 ac_save_LIBS="$LIBS"
8075 CFLAGS="$CFLAGS $SDL_CFLAGS"
8076 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8077 LIBS="$LIBS $SDL_LIBS"
8078 rm -f conf.sdltest
8079 if test "$cross_compiling" = yes; then :
8080 echo $ac_n "cross compiling; assumed OK... $ac_c"
8081 else
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8084
8085 #include <stdio.h>
8086 #include <stdlib.h>
8087 #include <string.h>
8088 #include "SDL.h"
8089
8090 char*
8091 my_strdup (char *str)
8092 {
8093 char *new_str;
8094
8095 if (str)
8096 {
8097 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
8098 strcpy (new_str, str);
8099 }
8100 else
8101 new_str = NULL;
8102
8103 return new_str;
8104 }
8105
8106 int main (int argc, char *argv[])
8107 {
8108 int major, minor, micro;
8109 char *tmp_version;
8110
8111 /* This hangs on some systems (?)
8112 system ("touch conf.sdltest");
8113 */
8114 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
8115
8116 /* HP/UX 9 (%@#!) writes to sscanf strings */
8117 tmp_version = my_strdup("$min_sdl_version");
8118 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8119 printf("%s, bad version string\n", "$min_sdl_version");
8120 exit(1);
8121 }
8122
8123 if (($sdl_major_version > major) ||
8124 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
8125 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
8126 {
8127 return 0;
8128 }
8129 else
8130 {
8131 printf("\n*** 'sdl2-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
8132 printf("*** of SDL required is %d.%d.%d. If sdl2-config is correct, then it is\n", major, minor, micro);
8133 printf("*** best to upgrade to the required version.\n");
8134 printf("*** If sdl2-config was wrong, set the environment variable SDL2_CONFIG\n");
8135 printf("*** to point to the correct copy of sdl2-config, and remove the file\n");
8136 printf("*** config.cache before re-running configure\n");
8137 return 1;
8138 }
8139 }
8140
8141
8142 _ACEOF
8143 if ac_fn_c_try_run "$LINENO"; then :
8144
8145 else
8146 no_sdl=yes
8147 fi
8148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8149 conftest.$ac_objext conftest.beam conftest.$ac_ext
8150 fi
8151
8152 CFLAGS="$ac_save_CFLAGS"
8153 CXXFLAGS="$ac_save_CXXFLAGS"
8154 LIBS="$ac_save_LIBS"
8155
8156 fi
8157 if test "x$sdl_pc" = "xno"; then
8158 if test "x$no_sdl" = "xyes"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8161 else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8163 $as_echo "yes" >&6; }
8164 fi
8165 fi
8166 fi
8167 fi
8168 if test "x$no_sdl" = x ; then
8169 :
8170 else
8171 if test "$SDL2_CONFIG" = "no" ; then
8172 echo "*** The sdl2-config script installed by SDL could not be found"
8173 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
8174 echo "*** your path, or set the SDL2_CONFIG environment variable to the"
8175 echo "*** full path to sdl2-config."
8176 else
8177 if test -f conf.sdltest ; then
8178 :
8179 else
8180 echo "*** Could not run SDL test program, checking why..."
8181 CFLAGS="$CFLAGS $SDL_CFLAGS"
8182 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8183 LIBS="$LIBS $SDL_LIBS"
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186
8187 #include <stdio.h>
8188 #include "SDL.h"
8189
8190 int main(int argc, char *argv[])
8191 { return 0; }
8192 #undef main
8193 #define main K_and_R_C_main
8194
8195 int
8196 main ()
8197 {
8198 return 0;
8199 ;
8200 return 0;
8201 }
8202 _ACEOF
8203 if ac_fn_c_try_link "$LINENO"; then :
8204 echo "*** The test program compiled, but did not run. This usually means"
8205 echo "*** that the run-time linker is not finding SDL or finding the wrong"
8206 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
8207 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8208 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8209 echo "*** is required on your system"
8210 echo "***"
8211 echo "*** If you have an old version installed, it is best to remove it, although"
8212 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8213 else
8214 echo "*** The test program failed to compile or link. See the file config.log for the"
8215 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
8216 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
8217 echo "*** may want to edit the sdl2-config script: $SDL2_CONFIG"
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext \
8220 conftest$ac_exeext conftest.$ac_ext
8221 CFLAGS="$ac_save_CFLAGS"
8222 CXXFLAGS="$ac_save_CXXFLAGS"
8223 LIBS="$ac_save_LIBS"
8224 fi
8225 fi
8226 SDL_CFLAGS=""
8227 SDL_LIBS=""
8228 as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
8229
8230 fi
8231
8232
8233 rm -f conf.sdltest
8234
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL2" >&5
8236 $as_echo_n "checking for SDL_Init in -lSDL2... " >&6; }
8237 if ${ac_cv_lib_SDL2_SDL_Init+:} false; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 ac_check_lib_save_LIBS=$LIBS
8241 LIBS="-lSDL2 $LIBS"
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244
8245 /* Override any GCC internal prototype to avoid an error.
8246 Use char because int might match the return type of a GCC
8247 builtin and then its argument prototype would still apply. */
8248 #ifdef __cplusplus
8249 extern "C"
8250 #endif
8251 char SDL_Init ();
8252 int
8253 main ()
8254 {
8255 return SDL_Init ();
8256 ;
8257 return 0;
8258 }
8259 _ACEOF
8260 if ac_fn_c_try_link "$LINENO"; then :
8261 ac_cv_lib_SDL2_SDL_Init=yes
8262 else
8263 ac_cv_lib_SDL2_SDL_Init=no
8264 fi
8265 rm -f core conftest.err conftest.$ac_objext \
8266 conftest$ac_exeext conftest.$ac_ext
8267 LIBS=$ac_check_lib_save_LIBS
8268 fi
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_SDL_Init" >&5
8270 $as_echo "$ac_cv_lib_SDL2_SDL_Init" >&6; }
8271 if test "x$ac_cv_lib_SDL2_SDL_Init" = xyes; then :
8272 LIBS="$LIBS -lSDL2"
8273 fi
8274
8275 for ac_func in SDL_GetDisplayUsableBounds
8276 do :
8277 ac_fn_c_check_func "$LINENO" "SDL_GetDisplayUsableBounds" "ac_cv_func_SDL_GetDisplayUsableBounds"
8278 if test "x$ac_cv_func_SDL_GetDisplayUsableBounds" = xyes; then :
8279 cat >>confdefs.h <<_ACEOF
8280 #define HAVE_SDL_GETDISPLAYUSABLEBOUNDS 1
8281 _ACEOF
8282
8283 fi
8284 done
8285
8286 ac_fn_c_check_decl "$LINENO" "SDL_WINDOW_ALLOW_HIGHDPI" "ac_cv_have_decl_SDL_WINDOW_ALLOW_HIGHDPI" "#include <SDL2/SDL_video.h>
8287 "
8288 if test "x$ac_cv_have_decl_SDL_WINDOW_ALLOW_HIGHDPI" = xyes; then :
8289 ac_have_decl=1
8290 else
8291 ac_have_decl=0
8292 fi
8293
8294 cat >>confdefs.h <<_ACEOF
8295 #define HAVE_DECL_SDL_WINDOW_ALLOW_HIGHDPI $ac_have_decl
8296 _ACEOF
8297
8298
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL2_mixer" >&5
8300 $as_echo_n "checking for Mix_OpenAudio in -lSDL2_mixer... " >&6; }
8301 if ${ac_cv_lib_SDL2_mixer_Mix_OpenAudio+:} false; then :
8302 $as_echo_n "(cached) " >&6
8303 else
8304 ac_check_lib_save_LIBS=$LIBS
8305 LIBS="-lSDL2_mixer $LIBS"
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308
8309 /* Override any GCC internal prototype to avoid an error.
8310 Use char because int might match the return type of a GCC
8311 builtin and then its argument prototype would still apply. */
8312 #ifdef __cplusplus
8313 extern "C"
8314 #endif
8315 char Mix_OpenAudio ();
8316 int
8317 main ()
8318 {
8319 return Mix_OpenAudio ();
8320 ;
8321 return 0;
8322 }
8323 _ACEOF
8324 if ac_fn_c_try_link "$LINENO"; then :
8325 ac_cv_lib_SDL2_mixer_Mix_OpenAudio=yes
8326 else
8327 ac_cv_lib_SDL2_mixer_Mix_OpenAudio=no
8328 fi
8329 rm -f core conftest.err conftest.$ac_objext \
8330 conftest$ac_exeext conftest.$ac_ext
8331 LIBS=$ac_check_lib_save_LIBS
8332 fi
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_mixer_Mix_OpenAudio" >&5
8334 $as_echo "$ac_cv_lib_SDL2_mixer_Mix_OpenAudio" >&6; }
8335 if test "x$ac_cv_lib_SDL2_mixer_Mix_OpenAudio" = xyes; then :
8336 LIBS="$LIBS -lSDL2_mixer"
8337 else
8338 as_fn_error $? "*** SDL_mixer is required" "$LINENO" 5
8339
8340 fi
8341
8342
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTF_Init in -lSDL2_ttf" >&5
8344 $as_echo_n "checking for TTF_Init in -lSDL2_ttf... " >&6; }
8345 if ${ac_cv_lib_SDL2_ttf_TTF_Init+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 ac_check_lib_save_LIBS=$LIBS
8349 LIBS="-lSDL2_ttf $LIBS"
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351 /* end confdefs.h. */
8352
8353 /* Override any GCC internal prototype to avoid an error.
8354 Use char because int might match the return type of a GCC
8355 builtin and then its argument prototype would still apply. */
8356 #ifdef __cplusplus
8357 extern "C"
8358 #endif
8359 char TTF_Init ();
8360 int
8361 main ()
8362 {
8363 return TTF_Init ();
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 if ac_fn_c_try_link "$LINENO"; then :
8369 ac_cv_lib_SDL2_ttf_TTF_Init=yes
8370 else
8371 ac_cv_lib_SDL2_ttf_TTF_Init=no
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext \
8374 conftest$ac_exeext conftest.$ac_ext
8375 LIBS=$ac_check_lib_save_LIBS
8376 fi
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL2_ttf_TTF_Init" >&5
8378 $as_echo "$ac_cv_lib_SDL2_ttf_TTF_Init" >&6; }
8379 if test "x$ac_cv_lib_SDL2_ttf_TTF_Init" = xyes; then :
8380 LIBS="$LIBS -lSDL2_ttf"
8381 else
8382 as_fn_error $? "*** SDL_ttf is required" "$LINENO" 5
8383
8384 fi
8385
8386 for ac_func in TTF_GetFontKerningSizeGlyphs
8387 do :
8388 ac_fn_c_check_func "$LINENO" "TTF_GetFontKerningSizeGlyphs" "ac_cv_func_TTF_GetFontKerningSizeGlyphs"
8389 if test "x$ac_cv_func_TTF_GetFontKerningSizeGlyphs" = xyes; then :
8390 cat >>confdefs.h <<_ACEOF
8391 #define HAVE_TTF_GETFONTKERNINGSIZEGLYPHS 1
8392 _ACEOF
8393
8394 fi
8395 done
8396
8397
8398
8399 case "$target" in
8400 *-*-cygwin* | *-*-mingw32 | *-*-mingw64 )
8401 SDL_CFLAGS=`echo $SDL_CFLAGS | sed 's/-Dmain=SDL_main//'`
8402 SDL_DEFS="-DSDL_MAIN_HANDLED"
8403 ;;
8404 esac
8405
8406
8407
8408 if test "x$with_python" != "xno"; then
8409 # Extract the first word of "$with_python", so it can be a program name with args.
8410 set dummy $with_python; ac_word=$2
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412 $as_echo_n "checking for $ac_word... " >&6; }
8413 if ${ac_cv_path_PYTHON+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 case $PYTHON in
8417 [\\/]* | ?:[\\/]*)
8418 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8419 ;;
8420 *)
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 for as_dir in $PATH
8423 do
8424 IFS=$as_save_IFS
8425 test -z "$as_dir" && as_dir=.
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8428 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8430 break 2
8431 fi
8432 done
8433 done
8434 IFS=$as_save_IFS
8435
8436 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="no"
8437 ;;
8438 esac
8439 fi
8440 PYTHON=$ac_cv_path_PYTHON
8441 if test -n "$PYTHON"; then
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8443 $as_echo "$PYTHON" >&6; }
8444 else
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446 $as_echo "no" >&6; }
8447 fi
8448
8449
8450 else
8451 for ac_prog in python3 python
8452 do
8453 # Extract the first word of "$ac_prog", so it can be a program name with args.
8454 set dummy $ac_prog; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if ${ac_cv_path_PYTHON+:} false; then :
8458 $as_echo_n "(cached) " >&6
8459 else
8460 case $PYTHON in
8461 [\\/]* | ?:[\\/]*)
8462 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8463 ;;
8464 *)
8465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466 for as_dir in $PATH
8467 do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8472 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 break 2
8475 fi
8476 done
8477 done
8478 IFS=$as_save_IFS
8479
8480 ;;
8481 esac
8482 fi
8483 PYTHON=$ac_cv_path_PYTHON
8484 if test -n "$PYTHON"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
8486 $as_echo "$PYTHON" >&6; }
8487 else
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489 $as_echo "no" >&6; }
8490 fi
8491
8492
8493 test -n "$PYTHON" && break
8494 done
8495 test -n "$PYTHON" || PYTHON="no"
8496
8497 fi
8498
8499 if test x$PYTHON == xno ; then
8500 echo "Adonthell requires Python. Exiting..."
8501 exit 1
8502 fi
8503
8504
8505
8506 PY_HEX_VERSION=`$PYTHON -c 'import sys ; print (int(sys.hexversion))'`
8507 PY_VERSION=`$PYTHON -c 'import sys ; print (sys.version.split(" ")[0])'`
8508
8509
8510 if test $PY_HEX_VERSION -lt `printf %d 0x020201F0`; then
8511 echo "Sorry, you need to have Python 2.2.1 or greater installed - update your version!"
8512 as_fn_error $? "*** Python 2.2.1 or better required" "$LINENO" 5
8513 fi
8514
8515
8516 PY_PREFIX=`$PYTHON -c 'import sys; print (sys.prefix)'`
8517
8518
8519
8520 if test "x$pycflags" = xnone; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python header files" >&5
8522 $as_echo_n "checking for Python header files... " >&6; }
8523
8524 PYINCLUDE=`$PYTHON -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_var("INCLUDEPY"))'`
8525
8526
8527
8528 case "$target" in
8529 *-*-cygwin* | *-*-mingw32*)
8530 PYINCLUDE=`cd $PYINCLUDE && pwd`
8531 ;;
8532 esac
8533
8534 if test -r "$PYINCLUDE/Python.h"; then
8535 PY_CFLAGS="-I$PYINCLUDE"
8536
8537 else
8538 as_fn_error $? "Could not find Python.h in $PYINCLUDE" "$LINENO" 5
8539 fi
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8541 $as_echo "found" >&6; }
8542 else
8543 PY_CFLAGS=${pycflags}
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python cflags" >&5
8545 $as_echo_n "checking for Python cflags... " >&6; }
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_CFLAGS" >&5
8547 $as_echo "$PY_CFLAGS" >&6; }
8548
8549 fi
8550
8551
8552 if test "x$pylibs" = xnone; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library" >&5
8554 $as_echo_n "checking for Python library... " >&6; }
8555 PYLIB=""
8556
8557 PYLIBVER=`$PYTHON -c 'import sys; print (sys.version[:3])'`
8558
8559
8560 fw=`echo "$PY_PREFIX" | sed 's/.*\(Python\.framework\).*/\1/;'`
8561 if test "x$fw" != x && test "x$osx" = "xyes"; then
8562 PY_LIBS="$PY_PREFIX/Python"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
8564 $as_echo "found" >&6; }
8565 else
8566 PYLIB=`$PYTHON -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_var("BLDLIBRARY"))'`
8567 if test "x$PYLIB" != x ; then
8568 PY_LIBS="$PYLIB $PY_LIBS"
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYLIB" >&5
8570 $as_echo "$PYLIB" >&6; }
8571 else
8572 as_fn_error $? "*** Python library not found" "$LINENO" 5
8573 fi
8574
8575 as_ac_Lib=`$as_echo "ac_cv_lib_${PYLIB:2}''_main" | $as_tr_sh`
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${PYLIB:2}" >&5
8577 $as_echo_n "checking for main in -l${PYLIB:2}... " >&6; }
8578 if eval \${$as_ac_Lib+:} false; then :
8579 $as_echo_n "(cached) " >&6
8580 else
8581 ac_check_lib_save_LIBS=$LIBS
8582 LIBS="-l${PYLIB:2} $LIBS"
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8585
8586
8587 int
8588 main ()
8589 {
8590 return main ();
8591 ;
8592 return 0;
8593 }
8594 _ACEOF
8595 if ac_fn_c_try_link "$LINENO"; then :
8596 eval "$as_ac_Lib=yes"
8597 else
8598 eval "$as_ac_Lib=no"
8599 fi
8600 rm -f core conftest.err conftest.$ac_objext \
8601 conftest$ac_exeext conftest.$ac_ext
8602 LIBS=$ac_check_lib_save_LIBS
8603 fi
8604 eval ac_res=\$$as_ac_Lib
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8606 $as_echo "$ac_res" >&6; }
8607 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
8608 FOUND_PYLIB=yes
8609 else
8610 FOUND_PYLIB=no
8611 fi
8612
8613 if test "$FOUND_PYLIB" == "no" ; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library location" >&5
8615 $as_echo_n "checking for Python library location... " >&6; }
8616 PYLIBDIR=`$PYTHON -c 'import distutils.sysconfig; print(distutils.sysconfig.get_config_var("LIBPL"))'`
8617 if test "x$PYLIBDIR" != x ; then
8618 PY_LIBS="-L$PYLIBDIR $PY_LIBS"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYLIBDIR" >&5
8620 $as_echo "$PYLIBDIR" >&6; }
8621 else
8622 as_fn_error $? "*** Python library location not found" "$LINENO" 5
8623 fi
8624 fi
8625 fi
8626
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python's dependencies" >&5
8628 $as_echo_n "checking for Python's dependencies... " >&6; }
8629
8630 py_extradeps=`$PYTHON -c 'import distutils.sysconfig; print (distutils.sysconfig.get_config_var("LIBS"))'`
8631 py_sysextradeps=`$PYTHON -c 'import distutils.sysconfig; print (distutils.sysconfig.get_config_var("SYSLIBS"))'`
8632
8633 PY_DEPS="$py_extradeps $py_sysextradeps"
8634
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_DEPS" >&5
8636 $as_echo "$PY_DEPS" >&6; }
8637
8638
8639 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8640 PY_LIBS="-Wl,-E $PY_LIBS $PY_DEPS"
8641 else
8642 PY_LIBS="$PY_LIBS $PY_DEPS"
8643 fi
8644
8645 else
8646 PY_LIBS=${pylibs}
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python ld flags" >&5
8648 $as_echo_n "checking for Python ld flags... " >&6; }
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_LIBS" >&5
8650 $as_echo "$PY_LIBS" >&6; }
8651
8652 fi
8653
8654 if test "$pydebug" == "yes" ; then
8655 DEFS="$DEFS -DPY_DEBUG"
8656 fi
8657
8658
8659
8660 if test $PY_HEX_VERSION -ge `printf %d 0x03050000` ; then
8661 swig_req_major=3
8662 swig_req_minor=0
8663 swig_req_micro=8
8664 elif test $PY_HEX_VERSION -ge `printf %d 0x03030000` ; then
8665 swig_req_major=3
8666 swig_req_minor=0
8667 swig_req_micro=0
8668 elif test $PY_HEX_VERSION -ge `printf %d 0x03020000` ; then
8669 swig_req_major=2
8670 swig_req_minor=0
8671 swig_req_micro=4
8672 elif test $PY_HEX_VERSION -ge `printf %d 0x03000000` ; then
8673 swig_req_major=1
8674 swig_req_minor=3
8675 swig_req_micro=37
8676 elif test $PY_HEX_VERSION -ge `printf %d 0x02050000` ; then
8677 swig_req_major=1
8678 swig_req_minor=3
8679 swig_req_micro=30
8680 else
8681 swig_req_major=1
8682 swig_req_minor=3
8683 swig_req_micro=24
8684 fi
8685
8686 SWIG_MINVER=$swig_req_major.$swig_req_minor.$swig_req_micro
8687 haveswig=no
8688
8689
8690 for ac_prog in swig3.0 swig2.0 swig
8691 do
8692 # Extract the first word of "$ac_prog", so it can be a program name with args.
8693 set dummy $ac_prog; ac_word=$2
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695 $as_echo_n "checking for $ac_word... " >&6; }
8696 if ${ac_cv_path_SWIG+:} false; then :
8697 $as_echo_n "(cached) " >&6
8698 else
8699 case $SWIG in
8700 [\\/]* | ?:[\\/]*)
8701 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
8702 ;;
8703 *)
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 for as_dir in $PATH
8706 do
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 break 2
8714 fi
8715 done
8716 done
8717 IFS=$as_save_IFS
8718
8719 ;;
8720 esac
8721 fi
8722 SWIG=$ac_cv_path_SWIG
8723 if test -n "$SWIG"; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
8725 $as_echo "$SWIG" >&6; }
8726 else
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728 $as_echo "no" >&6; }
8729 fi
8730
8731
8732 test -n "$SWIG" && break
8733 done
8734 test -n "$SWIG" || SWIG="no"
8735
8736 if test "$SWIG" != "no" ; then
8737 $SWIG -version &> swig.ver
8738
8739
8740 swig_major_ver=`sed 's/.* \([0-9]*\)\.[0-9]*\.[0-9]*.*/\1/p; d' swig.ver`
8741 swig_minor_ver=`sed 's/.* [0-9]*\.\([0-9]*\)\.[0-9]*.*/\1/p; d' swig.ver`
8742 swig_micro_ver=`sed 's/.* [0-9]*\.[0-9]*\.\([0-9]*\).*/\1/p; d' swig.ver`
8743
8744
8745 rm -f swig.ver
8746
8747 SWIG_VERSION="$swig_major_ver.$swig_minor_ver.$swig_micro_ver"
8748
8749 if test $swig_major_ver -gt $swig_req_major -o \
8750 $swig_major_ver -eq $swig_req_major -a $swig_minor_ver -gt $swig_req_minor -o \
8751 $swig_major_ver -eq $swig_req_major -a $swig_minor_ver -eq $swig_req_minor -a $swig_micro_ver -ge $swig_req_micro;
8752 then
8753 haveswig=yes
8754 fi
8755 fi
8756
8757
8758 if test "x$haveswig" = "xno" ; then
8759 if test -d ".git"; then
8760 echo "*** To compile Adonthell from GIT, you will need SWIG ${SWIG_MINVER} or higher."
8761 echo "*** You can obtain the most recent version from http://www.swig.org."
8762 echo "***"
8763 echo "*** As an alternative, you can try using an older version of Python"
8764 echo "*** by specifying the --with-python=<python-exe> configure option"
8765 exit 1;
8766 else
8767 echo "*** NOTE: If you plan to make changes to the code you will need"
8768 echo "*** SWIG ${SWIG_MINVER} or higher. SWIG can be found at http://www.swig.org."
8769 fi
8770 fi
8771
8772
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the various editors" >&5
8774 $as_echo_n "checking whether to build the various editors... " >&6; }
8775 if test "x$dlgedit" = "xno" ; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8778 else
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8780 $as_echo "yes" >&6; }
8781 fi
8782
8783 if test x$dlgedit = xyes; then
8784 BUILD_DLGEDIT_TRUE=
8785 BUILD_DLGEDIT_FALSE='#'
8786 else
8787 BUILD_DLGEDIT_TRUE='#'
8788 BUILD_DLGEDIT_FALSE=
8789 fi
8790
8791
8792 if test "x$dlgedit" = "xyes"; then :
8793
8794
8795
8796
8797 pkg_failed=no
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
8799 $as_echo_n "checking for CAIRO... " >&6; }
8800
8801 if test -n "$CAIRO_CFLAGS"; then
8802 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
8803 elif test -n "$PKG_CONFIG"; then
8804 if test -n "$PKG_CONFIG" && \
8805 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2.6\""; } >&5
8806 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2.6") 2>&5
8807 ac_status=$?
8808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8809 test $ac_status = 0; }; then
8810 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2.6" 2>/dev/null`
8811 test "x$?" != "x0" && pkg_failed=yes
8812 else
8813 pkg_failed=yes
8814 fi
8815 else
8816 pkg_failed=untried
8817 fi
8818 if test -n "$CAIRO_LIBS"; then
8819 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
8820 elif test -n "$PKG_CONFIG"; then
8821 if test -n "$PKG_CONFIG" && \
8822 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2.6\""; } >&5
8823 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2.6") 2>&5
8824 ac_status=$?
8825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8826 test $ac_status = 0; }; then
8827 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2.6" 2>/dev/null`
8828 test "x$?" != "x0" && pkg_failed=yes
8829 else
8830 pkg_failed=yes
8831 fi
8832 else
8833 pkg_failed=untried
8834 fi
8835
8836
8837
8838 if test $pkg_failed = yes; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8841
8842 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8843 _pkg_short_errors_supported=yes
8844 else
8845 _pkg_short_errors_supported=no
8846 fi
8847 if test $_pkg_short_errors_supported = yes; then
8848 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2.6" 2>&1`
8849 else
8850 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2.6" 2>&1`
8851 fi
8852 # Put the nasty error message in config.log where it belongs
8853 echo "$CAIRO_PKG_ERRORS" >&5
8854
8855 as_fn_error $? "Package requirements (cairo >= 1.2.6) were not met:
8856
8857 $CAIRO_PKG_ERRORS
8858
8859 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8860 installed software in a non-standard prefix.
8861
8862 Alternatively, you may set the environment variables CAIRO_CFLAGS
8863 and CAIRO_LIBS to avoid the need to call pkg-config.
8864 See the pkg-config man page for more details." "$LINENO" 5
8865 elif test $pkg_failed = untried; then
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8870 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8871 is in your PATH or set the PKG_CONFIG environment variable to the full
8872 path to pkg-config.
8873
8874 Alternatively, you may set the environment variables CAIRO_CFLAGS
8875 and CAIRO_LIBS to avoid the need to call pkg-config.
8876 See the pkg-config man page for more details.
8877
8878 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8879 See \`config.log' for more details" "$LINENO" 5; }
8880 else
8881 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
8882 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8884 $as_echo "yes" >&6; }
8885
8886 fi
8887
8888
8889
8890
8891
8892 pkg_failed=no
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
8894 $as_echo_n "checking for GTK... " >&6; }
8895
8896 if test -n "$GTK_CFLAGS"; then
8897 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
8898 elif test -n "$PKG_CONFIG"; then
8899 if test -n "$PKG_CONFIG" && \
8900 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18.0\""; } >&5
8901 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18.0") 2>&5
8902 ac_status=$?
8903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8904 test $ac_status = 0; }; then
8905 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.18.0" 2>/dev/null`
8906 test "x$?" != "x0" && pkg_failed=yes
8907 else
8908 pkg_failed=yes
8909 fi
8910 else
8911 pkg_failed=untried
8912 fi
8913 if test -n "$GTK_LIBS"; then
8914 pkg_cv_GTK_LIBS="$GTK_LIBS"
8915 elif test -n "$PKG_CONFIG"; then
8916 if test -n "$PKG_CONFIG" && \
8917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.18.0\""; } >&5
8918 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18.0") 2>&5
8919 ac_status=$?
8920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8921 test $ac_status = 0; }; then
8922 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.18.0" 2>/dev/null`
8923 test "x$?" != "x0" && pkg_failed=yes
8924 else
8925 pkg_failed=yes
8926 fi
8927 else
8928 pkg_failed=untried
8929 fi
8930
8931
8932
8933 if test $pkg_failed = yes; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8936
8937 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8938 _pkg_short_errors_supported=yes
8939 else
8940 _pkg_short_errors_supported=no
8941 fi
8942 if test $_pkg_short_errors_supported = yes; then
8943 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.18.0" 2>&1`
8944 else
8945 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.18.0" 2>&1`
8946 fi
8947 # Put the nasty error message in config.log where it belongs
8948 echo "$GTK_PKG_ERRORS" >&5
8949
8950 as_fn_error $? "Package requirements (gtk+-2.0 >= 2.18.0) were not met:
8951
8952 $GTK_PKG_ERRORS
8953
8954 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8955 installed software in a non-standard prefix.
8956
8957 Alternatively, you may set the environment variables GTK_CFLAGS
8958 and GTK_LIBS to avoid the need to call pkg-config.
8959 See the pkg-config man page for more details." "$LINENO" 5
8960 elif test $pkg_failed = untried; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8962 $as_echo "no" >&6; }
8963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8965 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8966 is in your PATH or set the PKG_CONFIG environment variable to the full
8967 path to pkg-config.
8968
8969 Alternatively, you may set the environment variables GTK_CFLAGS
8970 and GTK_LIBS to avoid the need to call pkg-config.
8971 See the pkg-config man page for more details.
8972
8973 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8974 See \`config.log' for more details" "$LINENO" 5; }
8975 else
8976 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
8977 GTK_LIBS=$pkg_cv_GTK_LIBS
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8979 $as_echo "yes" >&6; }
8980
8981 fi
8982
8983
8984
8985
8986 _gdk_tgt=`$PKG_CONFIG --variable=target gdk-2.0`
8987 if test "x$_gdk_tgt" = xquartz; then
8988
8989 pkg_failed=no
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IGE_MAC" >&5
8991 $as_echo_n "checking for IGE_MAC... " >&6; }
8992
8993 if test -n "$IGE_MAC_CFLAGS"; then
8994 pkg_cv_IGE_MAC_CFLAGS="$IGE_MAC_CFLAGS"
8995 elif test -n "$PKG_CONFIG"; then
8996 if test -n "$PKG_CONFIG" && \
8997 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ige-mac-integration\""; } >&5
8998 ($PKG_CONFIG --exists --print-errors "ige-mac-integration") 2>&5
8999 ac_status=$?
9000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9001 test $ac_status = 0; }; then
9002 pkg_cv_IGE_MAC_CFLAGS=`$PKG_CONFIG --cflags "ige-mac-integration" 2>/dev/null`
9003 test "x$?" != "x0" && pkg_failed=yes
9004 else
9005 pkg_failed=yes
9006 fi
9007 else
9008 pkg_failed=untried
9009 fi
9010 if test -n "$IGE_MAC_LIBS"; then
9011 pkg_cv_IGE_MAC_LIBS="$IGE_MAC_LIBS"
9012 elif test -n "$PKG_CONFIG"; then
9013 if test -n "$PKG_CONFIG" && \
9014 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ige-mac-integration\""; } >&5
9015 ($PKG_CONFIG --exists --print-errors "ige-mac-integration") 2>&5
9016 ac_status=$?
9017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9018 test $ac_status = 0; }; then
9019 pkg_cv_IGE_MAC_LIBS=`$PKG_CONFIG --libs "ige-mac-integration" 2>/dev/null`
9020 test "x$?" != "x0" && pkg_failed=yes
9021 else
9022 pkg_failed=yes
9023 fi
9024 else
9025 pkg_failed=untried
9026 fi
9027
9028
9029
9030 if test $pkg_failed = yes; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9033
9034 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9035 _pkg_short_errors_supported=yes
9036 else
9037 _pkg_short_errors_supported=no
9038 fi
9039 if test $_pkg_short_errors_supported = yes; then
9040 IGE_MAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ige-mac-integration" 2>&1`
9041 else
9042 IGE_MAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ige-mac-integration" 2>&1`
9043 fi
9044 # Put the nasty error message in config.log where it belongs
9045 echo "$IGE_MAC_PKG_ERRORS" >&5
9046
9047 as_fn_error $? "Package requirements (ige-mac-integration) were not met:
9048
9049 $IGE_MAC_PKG_ERRORS
9050
9051 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9052 installed software in a non-standard prefix.
9053
9054 Alternatively, you may set the environment variables IGE_MAC_CFLAGS
9055 and IGE_MAC_LIBS to avoid the need to call pkg-config.
9056 See the pkg-config man page for more details." "$LINENO" 5
9057 elif test $pkg_failed = untried; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 $as_echo "no" >&6; }
9060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9062 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
9063 is in your PATH or set the PKG_CONFIG environment variable to the full
9064 path to pkg-config.
9065
9066 Alternatively, you may set the environment variables IGE_MAC_CFLAGS
9067 and IGE_MAC_LIBS to avoid the need to call pkg-config.
9068 See the pkg-config man page for more details.
9069
9070 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9071 See \`config.log' for more details" "$LINENO" 5; }
9072 else
9073 IGE_MAC_CFLAGS=$pkg_cv_IGE_MAC_CFLAGS
9074 IGE_MAC_LIBS=$pkg_cv_IGE_MAC_LIBS
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9076 $as_echo "yes" >&6; }
9077
9078 fi
9079
9080
9081 fi
9082
9083 fi
9084
9085
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the developer documentation" >&5
9087 $as_echo_n "checking whether to build the developer documentation... " >&6; }
9088 if test x$builddoc = xno; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9091 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9093 $as_echo "yes" >&6; }
9094 fi
9095
9096 if test x$builddoc = xyes; then
9097 BUILD_DOC_TRUE=
9098 BUILD_DOC_FALSE='#'
9099 else
9100 BUILD_DOC_TRUE='#'
9101 BUILD_DOC_FALSE=
9102 fi
9103
9104
9105
9106 if test x$builddoc = xyes; then
9107 # Extract the first word of "doxygen", so it can be a program name with args.
9108 set dummy doxygen; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if ${ac_cv_path_P_DOXYGEN+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 case $P_DOXYGEN in
9115 [\\/]* | ?:[\\/]*)
9116 ac_cv_path_P_DOXYGEN="$P_DOXYGEN" # Let the user override the test with a path.
9117 ;;
9118 *)
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9121 do
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9126 ac_cv_path_P_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9129 fi
9130 done
9131 done
9132 IFS=$as_save_IFS
9133
9134 test -z "$ac_cv_path_P_DOXYGEN" && ac_cv_path_P_DOXYGEN="no"
9135 ;;
9136 esac
9137 fi
9138 P_DOXYGEN=$ac_cv_path_P_DOXYGEN
9139 if test -n "$P_DOXYGEN"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P_DOXYGEN" >&5
9141 $as_echo "$P_DOXYGEN" >&6; }
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9145 fi
9146
9147
9148 if test x$P_DOXYGEN == xno ; then
9149 echo "Adonthell documentation requires doxygen. Exiting..."
9150 exit 1
9151 fi
9152 # Extract the first word of "dot", so it can be a program name with args.
9153 set dummy dot; ac_word=$2
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9155 $as_echo_n "checking for $ac_word... " >&6; }
9156 if ${ac_cv_path_P_DOT+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 case $P_DOT in
9160 [\\/]* | ?:[\\/]*)
9161 ac_cv_path_P_DOT="$P_DOT" # Let the user override the test with a path.
9162 ;;
9163 *)
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9166 do
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9171 ac_cv_path_P_DOT="$as_dir/$ac_word$ac_exec_ext"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9174 fi
9175 done
9176 done
9177 IFS=$as_save_IFS
9178
9179 test -z "$ac_cv_path_P_DOT" && ac_cv_path_P_DOT="no"
9180 ;;
9181 esac
9182 fi
9183 P_DOT=$ac_cv_path_P_DOT
9184 if test -n "$P_DOT"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P_DOT" >&5
9186 $as_echo "$P_DOT" >&6; }
9187 else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9190 fi
9191
9192
9193 if test x$P_DOT == xno ; then
9194 echo "Adonthell documentation requires dot. Exiting..."
9195 exit 1
9196 fi
9197 fi
9198
9199
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9201 $as_echo_n "checking for ANSI C header files... " >&6; }
9202 if ${ac_cv_header_stdc+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 #include <stdlib.h>
9208 #include <stdarg.h>
9209 #include <string.h>
9210 #include <float.h>
9211
9212 int
9213 main ()
9214 {
9215
9216 ;
9217 return 0;
9218 }
9219 _ACEOF
9220 if ac_fn_c_try_compile "$LINENO"; then :
9221 ac_cv_header_stdc=yes
9222 else
9223 ac_cv_header_stdc=no
9224 fi
9225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9226
9227 if test $ac_cv_header_stdc = yes; then
9228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 #include <string.h>
9232
9233 _ACEOF
9234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9235 $EGREP "memchr" >/dev/null 2>&1; then :
9236
9237 else
9238 ac_cv_header_stdc=no
9239 fi
9240 rm -f conftest*
9241
9242 fi
9243
9244 if test $ac_cv_header_stdc = yes; then
9245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 #include <stdlib.h>
9249
9250 _ACEOF
9251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9252 $EGREP "free" >/dev/null 2>&1; then :
9253
9254 else
9255 ac_cv_header_stdc=no
9256 fi
9257 rm -f conftest*
9258
9259 fi
9260
9261 if test $ac_cv_header_stdc = yes; then
9262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9263 if test "$cross_compiling" = yes; then :
9264 :
9265 else
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267 /* end confdefs.h. */
9268 #include <ctype.h>
9269 #include <stdlib.h>
9270 #if ((' ' & 0x0FF) == 0x020)
9271 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9272 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9273 #else
9274 # define ISLOWER(c) \
9275 (('a' <= (c) && (c) <= 'i') \
9276 || ('j' <= (c) && (c) <= 'r') \
9277 || ('s' <= (c) && (c) <= 'z'))
9278 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9279 #endif
9280
9281 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9282 int
9283 main ()
9284 {
9285 int i;
9286 for (i = 0; i < 256; i++)
9287 if (XOR (islower (i), ISLOWER (i))
9288 || toupper (i) != TOUPPER (i))
9289 return 2;
9290 return 0;
9291 }
9292 _ACEOF
9293 if ac_fn_c_try_run "$LINENO"; then :
9294
9295 else
9296 ac_cv_header_stdc=no
9297 fi
9298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9299 conftest.$ac_objext conftest.beam conftest.$ac_ext
9300 fi
9301
9302 fi
9303 fi
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9305 $as_echo "$ac_cv_header_stdc" >&6; }
9306 if test $ac_cv_header_stdc = yes; then
9307
9308 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9309
9310 fi
9311
9312 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9313 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9314 inttypes.h stdint.h unistd.h
9315 do :
9316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9317 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9318 "
9319 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9320 cat >>confdefs.h <<_ACEOF
9321 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9322 _ACEOF
9323
9324 fi
9325
9326 done
9327
9328
9329 ac_fn_c_check_header_mongrel "$LINENO" "SDL2/SDL.h" "ac_cv_header_SDL2_SDL_h" "$ac_includes_default"
9330 if test "x$ac_cv_header_SDL2_SDL_h" = xyes; then :
9331
9332 fi
9333
9334
9335 ac_fn_c_check_header_mongrel "$LINENO" "SDL2/SDL_mixer.h" "ac_cv_header_SDL2_SDL_mixer_h" "$ac_includes_default"
9336 if test "x$ac_cv_header_SDL2_SDL_mixer_h" = xyes; then :
9337
9338 fi
9339
9340
9341 ac_fn_c_check_header_mongrel "$LINENO" "SDL2/SDL_ttf.h" "ac_cv_header_SDL2_SDL_ttf_h" "$ac_includes_default"
9342 if test "x$ac_cv_header_SDL2_SDL_ttf_h" = xyes; then :
9343
9344 fi
9345
9346
9347 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9348 if test "x$ac_cv_header_zlib_h" = xyes; then :
9349
9350 fi
9351
9352
9353
9354 if test x$PTHREADS = xyes; then
9355 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9356 if test "x$ac_cv_header_pthread_h" = xyes; then :
9357
9358 fi
9359
9360
9361 fi
9362
9363 if test x$OGG_VORBIS = xyes; then
9364 ac_fn_c_check_header_mongrel "$LINENO" "vorbis/vorbisfile.h" "ac_cv_header_vorbis_vorbisfile_h" "$ac_includes_default"
9365 if test "x$ac_cv_header_vorbis_vorbisfile_h" = xyes; then :
9366
9367 fi
9368
9369
9370 fi
9371
9372 ac_ext=cpp
9373 ac_cpp='$CXXCPP $CPPFLAGS'
9374 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9377
9378
9379
9380 for ac_header in tr1/unordered_map
9381 do :
9382 ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" "$ac_includes_default"
9383 if test "x$ac_cv_header_tr1_unordered_map" = xyes; then :
9384 cat >>confdefs.h <<_ACEOF
9385 #define HAVE_TR1_UNORDERED_MAP 1
9386 _ACEOF
9387
9388 fi
9389
9390 done
9391
9392 for ac_header in unordered_map
9393 do :
9394 ac_fn_cxx_check_header_mongrel "$LINENO" "unordered_map" "ac_cv_header_unordered_map" "$ac_includes_default"
9395 if test "x$ac_cv_header_unordered_map" = xyes; then :
9396 cat >>confdefs.h <<_ACEOF
9397 #define HAVE_UNORDERED_MAP 1
9398 _ACEOF
9399
9400 fi
9401
9402 done
9403
9404 ac_ext=c
9405 ac_cpp='$CPP $CPPFLAGS'
9406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9409
9410
9411 if test x$OGG_VORBIS = xyes; then
9412 HAVE_OGG_VORBIS_TRUE=
9413 HAVE_OGG_VORBIS_FALSE='#'
9414 else
9415 HAVE_OGG_VORBIS_TRUE='#'
9416 HAVE_OGG_VORBIS_FALSE=
9417 fi
9418
9419
9420
9421 CXXFLAGS="$CXXFLAGS $DEFS $INCLUDES"
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438 ac_config_files="$ac_config_files Makefile adonthell.spec doc/Makefile doc/devel/Makefile doc/dlgedit/Makefile doc/dlgedit-api/Makefile doc/items/Makefile m4/Makefile po/Makefile.in src/Makefile src/modules/Makefile src/tools/Makefile src/tools/dlgedit/Makefile"
9439
9440 cat >confcache <<\_ACEOF
9441 # This file is a shell script that caches the results of configure
9442 # tests run on this system so they can be shared between configure
9443 # scripts and configure runs, see configure's option --config-cache.
9444 # It is not useful on other systems. If it contains results you don't
9445 # want to keep, you may remove or edit it.
9446 #
9447 # config.status only pays attention to the cache file if you give it
9448 # the --recheck option to rerun configure.
9449 #
9450 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9451 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9452 # following values.
9453
9454 _ACEOF
9455
9456 # The following way of writing the cache mishandles newlines in values,
9457 # but we know of no workaround that is simple, portable, and efficient.
9458 # So, we kill variables containing newlines.
9459 # Ultrix sh set writes to stderr and can't be redirected directly,
9460 # and sets the high bit in the cache file unless we assign to the vars.
9461 (
9462 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9463 eval ac_val=\$$ac_var
9464 case $ac_val in #(
9465 *${as_nl}*)
9466 case $ac_var in #(
9467 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9468 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9469 esac
9470 case $ac_var in #(
9471 _ | IFS | as_nl) ;; #(
9472 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9473 *) { eval $ac_var=; unset $ac_var;} ;;
9474 esac ;;
9475 esac
9476 done
9477
9478 (set) 2>&1 |
9479 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9480 *${as_nl}ac_space=\ *)
9481 # `set' does not quote correctly, so add quotes: double-quote
9482 # substitution turns \\\\ into \\, and sed turns \\ into \.
9483 sed -n \
9484 "s/'/'\\\\''/g;
9485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9486 ;; #(
9487 *)
9488 # `set' quotes correctly as required by POSIX, so do not add quotes.
9489 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9490 ;;
9491 esac |
9492 sort
9493 ) |
9494 sed '
9495 /^ac_cv_env_/b end
9496 t clear
9497 :clear
9498 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9499 t end
9500 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9501 :end' >>confcache
9502 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9503 if test -w "$cache_file"; then
9504 if test "x$cache_file" != "x/dev/null"; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9506 $as_echo "$as_me: updating cache $cache_file" >&6;}
9507 if test ! -f "$cache_file" || test -h "$cache_file"; then
9508 cat confcache >"$cache_file"
9509 else
9510 case $cache_file in #(
9511 */* | ?:*)
9512 mv -f confcache "$cache_file"$$ &&
9513 mv -f "$cache_file"$$ "$cache_file" ;; #(
9514 *)
9515 mv -f confcache "$cache_file" ;;
9516 esac
9517 fi
9518 fi
9519 else
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9521 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9522 fi
9523 fi
9524 rm -f confcache
9525
9526 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9527 # Let make expand exec_prefix.
9528 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9529
9530 DEFS=-DHAVE_CONFIG_H
9531
9532 ac_libobjs=
9533 ac_ltlibobjs=
9534 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9535 # 1. Remove the extension, and $U if already installed.
9536 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9537 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9538 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9539 # will be set to the directory where LIBOBJS objects are built.
9540 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9541 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9542 done
9543 LIBOBJS=$ac_libobjs
9544
9545 LTLIBOBJS=$ac_ltlibobjs
9546
9547
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
9549 $as_echo_n "checking that generated files are newer than configure... " >&6; }
9550 if test -n "$am_sleep_pid"; then
9551 # Hide warnings about reused PIDs.
9552 wait $am_sleep_pid 2>/dev/null
9553 fi
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
9555 $as_echo "done" >&6; }
9556 if test -n "$EXEEXT"; then
9557 am__EXEEXT_TRUE=
9558 am__EXEEXT_FALSE='#'
9559 else
9560 am__EXEEXT_TRUE='#'
9561 am__EXEEXT_FALSE=
9562 fi
9563
9564 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9565 as_fn_error $? "conditional \"AMDEP\" was never defined.
9566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9567 fi
9568 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9569 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9571 fi
9572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9573 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9575 fi
9576 if test -z "${COMPILE_SCRIPTS_TRUE}" && test -z "${COMPILE_SCRIPTS_FALSE}"; then
9577 as_fn_error $? "conditional \"COMPILE_SCRIPTS\" was never defined.
9578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9579 fi
9580 if test -z "${BUILD_DLGEDIT_TRUE}" && test -z "${BUILD_DLGEDIT_FALSE}"; then
9581 as_fn_error $? "conditional \"BUILD_DLGEDIT\" was never defined.
9582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9583 fi
9584 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
9585 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
9586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9587 fi
9588 if test -z "${HAVE_OGG_VORBIS_TRUE}" && test -z "${HAVE_OGG_VORBIS_FALSE}"; then
9589 as_fn_error $? "conditional \"HAVE_OGG_VORBIS\" was never defined.
9590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
9591 fi
9592
9593 : "${CONFIG_STATUS=./config.status}"
9594 ac_write_fail=0
9595 ac_clean_files_save=$ac_clean_files
9596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9598 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9599 as_write_fail=0
9600 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9601 #! $SHELL
9602 # Generated by $as_me.
9603 # Run this file to recreate the current configuration.
9604 # Compiler output produced by configure, useful for debugging
9605 # configure, is in config.log if it exists.
9606
9607 debug=false
9608 ac_cs_recheck=false
9609 ac_cs_silent=false
9610
9611 SHELL=\${CONFIG_SHELL-$SHELL}
9612 export SHELL
9613 _ASEOF
9614 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9615 ## -------------------- ##
9616 ## M4sh Initialization. ##
9617 ## -------------------- ##
9618
9619 # Be more Bourne compatible
9620 DUALCASE=1; export DUALCASE # for MKS sh
9621 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9622 emulate sh
9623 NULLCMD=:
9624 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9625 # is contrary to our usage. Disable this feature.
9626 alias -g '${1+"$@"}'='"$@"'
9627 setopt NO_GLOB_SUBST
9628 else
9629 case `(set -o) 2>/dev/null` in #(
9630 *posix*) :
9631 set -o posix ;; #(
9632 *) :
9633 ;;
9634 esac
9635 fi
9636
9637
9638 as_nl='
9639 '
9640 export as_nl
9641 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9642 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9643 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9644 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9645 # Prefer a ksh shell builtin over an external printf program on Solaris,
9646 # but without wasting forks for bash or zsh.
9647 if test -z "$BASH_VERSION$ZSH_VERSION" \
9648 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9649 as_echo='print -r --'
9650 as_echo_n='print -rn --'
9651 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9652 as_echo='printf %s\n'
9653 as_echo_n='printf %s'
9654 else
9655 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9656 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9657 as_echo_n='/usr/ucb/echo -n'
9658 else
9659 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9660 as_echo_n_body='eval
9661 arg=$1;
9662 case $arg in #(
9663 *"$as_nl"*)
9664 expr "X$arg" : "X\\(.*\\)$as_nl";
9665 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9666 esac;
9667 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9668 '
9669 export as_echo_n_body
9670 as_echo_n='sh -c $as_echo_n_body as_echo'
9671 fi
9672 export as_echo_body
9673 as_echo='sh -c $as_echo_body as_echo'
9674 fi
9675
9676 # The user is always right.
9677 if test "${PATH_SEPARATOR+set}" != set; then
9678 PATH_SEPARATOR=:
9679 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9680 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9681 PATH_SEPARATOR=';'
9682 }
9683 fi
9684
9685
9686 # IFS
9687 # We need space, tab and new line, in precisely that order. Quoting is
9688 # there to prevent editors from complaining about space-tab.
9689 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9690 # splitting by setting IFS to empty value.)
9691 IFS=" "" $as_nl"
9692
9693 # Find who we are. Look in the path if we contain no directory separator.
9694 as_myself=
9695 case $0 in #((
9696 *[\\/]* ) as_myself=$0 ;;
9697 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9698 for as_dir in $PATH
9699 do
9700 IFS=$as_save_IFS
9701 test -z "$as_dir" && as_dir=.
9702 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9703 done
9704 IFS=$as_save_IFS
9705
9706 ;;
9707 esac
9708 # We did not find ourselves, most probably we were run as `sh COMMAND'
9709 # in which case we are not to be found in the path.
9710 if test "x$as_myself" = x; then
9711 as_myself=$0
9712 fi
9713 if test ! -f "$as_myself"; then
9714 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9715 exit 1
9716 fi
9717
9718 # Unset variables that we do not need and which cause bugs (e.g. in
9719 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9720 # suppresses any "Segmentation fault" message there. '((' could
9721 # trigger a bug in pdksh 5.2.14.
9722 for as_var in BASH_ENV ENV MAIL MAILPATH
9723 do eval test x\${$as_var+set} = xset \
9724 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9725 done
9726 PS1='$ '
9727 PS2='> '
9728 PS4='+ '
9729
9730 # NLS nuisances.
9731 LC_ALL=C
9732 export LC_ALL
9733 LANGUAGE=C
9734 export LANGUAGE
9735
9736 # CDPATH.
9737 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9738
9739
9740 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9741 # ----------------------------------------
9742 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9743 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9744 # script with STATUS, using 1 if that was 0.
9745 as_fn_error ()
9746 {
9747 as_status=$1; test $as_status -eq 0 && as_status=1
9748 if test "$4"; then
9749 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9750 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9751 fi
9752 $as_echo "$as_me: error: $2" >&2
9753 as_fn_exit $as_status
9754 } # as_fn_error
9755
9756
9757 # as_fn_set_status STATUS
9758 # -----------------------
9759 # Set $? to STATUS, without forking.
9760 as_fn_set_status ()
9761 {
9762 return $1
9763 } # as_fn_set_status
9764
9765 # as_fn_exit STATUS
9766 # -----------------
9767 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9768 as_fn_exit ()
9769 {
9770 set +e
9771 as_fn_set_status $1
9772 exit $1
9773 } # as_fn_exit
9774
9775 # as_fn_unset VAR
9776 # ---------------
9777 # Portably unset VAR.
9778 as_fn_unset ()
9779 {
9780 { eval $1=; unset $1;}
9781 }
9782 as_unset=as_fn_unset
9783 # as_fn_append VAR VALUE
9784 # ----------------------
9785 # Append the text in VALUE to the end of the definition contained in VAR. Take
9786 # advantage of any shell optimizations that allow amortized linear growth over
9787 # repeated appends, instead of the typical quadratic growth present in naive
9788 # implementations.
9789 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9790 eval 'as_fn_append ()
9791 {
9792 eval $1+=\$2
9793 }'
9794 else
9795 as_fn_append ()
9796 {
9797 eval $1=\$$1\$2
9798 }
9799 fi # as_fn_append
9800
9801 # as_fn_arith ARG...
9802 # ------------------
9803 # Perform arithmetic evaluation on the ARGs, and store the result in the
9804 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9805 # must be portable across $(()) and expr.
9806 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9807 eval 'as_fn_arith ()
9808 {
9809 as_val=$(( $* ))
9810 }'
9811 else
9812 as_fn_arith ()
9813 {
9814 as_val=`expr "$@" || test $? -eq 1`
9815 }
9816 fi # as_fn_arith
9817
9818
9819 if expr a : '\(a\)' >/dev/null 2>&1 &&
9820 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9821 as_expr=expr
9822 else
9823 as_expr=false
9824 fi
9825
9826 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9827 as_basename=basename
9828 else
9829 as_basename=false
9830 fi
9831
9832 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9833 as_dirname=dirname
9834 else
9835 as_dirname=false
9836 fi
9837
9838 as_me=`$as_basename -- "$0" ||
9839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9840 X"$0" : 'X\(//\)$' \| \
9841 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9842 $as_echo X/"$0" |
9843 sed '/^.*\/\([^/][^/]*\)\/*$/{
9844 s//\1/
9845 q
9846 }
9847 /^X\/\(\/\/\)$/{
9848 s//\1/
9849 q
9850 }
9851 /^X\/\(\/\).*/{
9852 s//\1/
9853 q
9854 }
9855 s/.*/./; q'`
9856
9857 # Avoid depending upon Character Ranges.
9858 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9859 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9860 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9861 as_cr_digits='0123456789'
9862 as_cr_alnum=$as_cr_Letters$as_cr_digits
9863
9864 ECHO_C= ECHO_N= ECHO_T=
9865 case `echo -n x` in #(((((
9866 -n*)
9867 case `echo 'xy\c'` in
9868 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9869 xy) ECHO_C='\c';;
9870 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9871 ECHO_T=' ';;
9872 esac;;
9873 *)
9874 ECHO_N='-n';;
9875 esac
9876
9877 rm -f conf$$ conf$$.exe conf$$.file
9878 if test -d conf$$.dir; then
9879 rm -f conf$$.dir/conf$$.file
9880 else
9881 rm -f conf$$.dir
9882 mkdir conf$$.dir 2>/dev/null
9883 fi
9884 if (echo >conf$$.file) 2>/dev/null; then
9885 if ln -s conf$$.file conf$$ 2>/dev/null; then
9886 as_ln_s='ln -s'
9887 # ... but there are two gotchas:
9888 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9889 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9890 # In both cases, we have to default to `cp -pR'.
9891 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9892 as_ln_s='cp -pR'
9893 elif ln conf$$.file conf$$ 2>/dev/null; then
9894 as_ln_s=ln
9895 else
9896 as_ln_s='cp -pR'
9897 fi
9898 else
9899 as_ln_s='cp -pR'
9900 fi
9901 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9902 rmdir conf$$.dir 2>/dev/null
9903
9904
9905 # as_fn_mkdir_p
9906 # -------------
9907 # Create "$as_dir" as a directory, including parents if necessary.
9908 as_fn_mkdir_p ()
9909 {
9910
9911 case $as_dir in #(
9912 -*) as_dir=./$as_dir;;
9913 esac
9914 test -d "$as_dir" || eval $as_mkdir_p || {
9915 as_dirs=
9916 while :; do
9917 case $as_dir in #(
9918 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9919 *) as_qdir=$as_dir;;
9920 esac
9921 as_dirs="'$as_qdir' $as_dirs"
9922 as_dir=`$as_dirname -- "$as_dir" ||
9923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9924 X"$as_dir" : 'X\(//\)[^/]' \| \
9925 X"$as_dir" : 'X\(//\)$' \| \
9926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9927 $as_echo X"$as_dir" |
9928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9929 s//\1/
9930 q
9931 }
9932 /^X\(\/\/\)[^/].*/{
9933 s//\1/
9934 q
9935 }
9936 /^X\(\/\/\)$/{
9937 s//\1/
9938 q
9939 }
9940 /^X\(\/\).*/{
9941 s//\1/
9942 q
9943 }
9944 s/.*/./; q'`
9945 test -d "$as_dir" && break
9946 done
9947 test -z "$as_dirs" || eval "mkdir $as_dirs"
9948 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9949
9950
9951 } # as_fn_mkdir_p
9952 if mkdir -p . 2>/dev/null; then
9953 as_mkdir_p='mkdir -p "$as_dir"'
9954 else
9955 test -d ./-p && rmdir ./-p
9956 as_mkdir_p=false
9957 fi
9958
9959
9960 # as_fn_executable_p FILE
9961 # -----------------------
9962 # Test if FILE is an executable regular file.
9963 as_fn_executable_p ()
9964 {
9965 test -f "$1" && test -x "$1"
9966 } # as_fn_executable_p
9967 as_test_x='test -x'
9968 as_executable_p=as_fn_executable_p
9969
9970 # Sed expression to map a string onto a valid CPP name.
9971 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9972
9973 # Sed expression to map a string onto a valid variable name.
9974 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9975
9976
9977 exec 6>&1
9978 ## ----------------------------------- ##
9979 ## Main body of $CONFIG_STATUS script. ##
9980 ## ----------------------------------- ##
9981 _ASEOF
9982 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9983
9984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9985 # Save the log message, to keep $0 and so on meaningful, and to
9986 # report actual input values of CONFIG_FILES etc. instead of their
9987 # values after options handling.
9988 ac_log="
9989 This file was extended by Adonthell $as_me 0.3.8, which was
9990 generated by GNU Autoconf 2.69. Invocation command line was
9991
9992 CONFIG_FILES = $CONFIG_FILES
9993 CONFIG_HEADERS = $CONFIG_HEADERS
9994 CONFIG_LINKS = $CONFIG_LINKS
9995 CONFIG_COMMANDS = $CONFIG_COMMANDS
9996 $ $0 $@
9997
9998 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9999 "
10000
10001 _ACEOF
10002
10003 case $ac_config_files in *"
10004 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10005 esac
10006
10007 case $ac_config_headers in *"
10008 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10009 esac
10010
10011
10012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10013 # Files that config.status was made for.
10014 config_files="$ac_config_files"
10015 config_headers="$ac_config_headers"
10016 config_commands="$ac_config_commands"
10017
10018 _ACEOF
10019
10020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10021 ac_cs_usage="\
10022 \`$as_me' instantiates files and other configuration actions
10023 from templates according to the current configuration. Unless the files
10024 and actions are specified as TAGs, all are instantiated by default.
10025
10026 Usage: $0 [OPTION]... [TAG]...
10027
10028 -h, --help print this help, then exit
10029 -V, --version print version number and configuration settings, then exit
10030 --config print configuration, then exit
10031 -q, --quiet, --silent
10032 do not print progress messages
10033 -d, --debug don't remove temporary files
10034 --recheck update $as_me by reconfiguring in the same conditions
10035 --file=FILE[:TEMPLATE]
10036 instantiate the configuration file FILE
10037 --header=FILE[:TEMPLATE]
10038 instantiate the configuration header FILE
10039
10040 Configuration files:
10041 $config_files
10042
10043 Configuration headers:
10044 $config_headers
10045
10046 Configuration commands:
10047 $config_commands
10048
10049 Report bugs to <[email protected]>.
10050 Adonthell home page: <http://adonthell.nongnu.org>."
10051
10052 _ACEOF
10053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10054 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10055 ac_cs_version="\\
10056 Adonthell config.status 0.3.8
10057 configured by $0, generated by GNU Autoconf 2.69,
10058 with options \\"\$ac_cs_config\\"
10059
10060 Copyright (C) 2012 Free Software Foundation, Inc.
10061 This config.status script is free software; the Free Software Foundation
10062 gives unlimited permission to copy, distribute and modify it."
10063
10064 ac_pwd='$ac_pwd'
10065 srcdir='$srcdir'
10066 INSTALL='$INSTALL'
10067 MKDIR_P='$MKDIR_P'
10068 AWK='$AWK'
10069 test -n "\$AWK" || AWK=awk
10070 _ACEOF
10071
10072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10073 # The default lists apply if the user does not specify any file.
10074 ac_need_defaults=:
10075 while test $# != 0
10076 do
10077 case $1 in
10078 --*=?*)
10079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10081 ac_shift=:
10082 ;;
10083 --*=)
10084 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10085 ac_optarg=
10086 ac_shift=:
10087 ;;
10088 *)
10089 ac_option=$1
10090 ac_optarg=$2
10091 ac_shift=shift
10092 ;;
10093 esac
10094
10095 case $ac_option in
10096 # Handling of the options.
10097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10098 ac_cs_recheck=: ;;
10099 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10100 $as_echo "$ac_cs_version"; exit ;;
10101 --config | --confi | --conf | --con | --co | --c )
10102 $as_echo "$ac_cs_config"; exit ;;
10103 --debug | --debu | --deb | --de | --d | -d )
10104 debug=: ;;
10105 --file | --fil | --fi | --f )
10106 $ac_shift
10107 case $ac_optarg in
10108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10109 '') as_fn_error $? "missing file argument" ;;
10110 esac
10111 as_fn_append CONFIG_FILES " '$ac_optarg'"
10112 ac_need_defaults=false;;
10113 --header | --heade | --head | --hea )
10114 $ac_shift
10115 case $ac_optarg in
10116 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10117 esac
10118 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10119 ac_need_defaults=false;;
10120 --he | --h)
10121 # Conflict between --help and --header
10122 as_fn_error $? "ambiguous option: \`$1'
10123 Try \`$0 --help' for more information.";;
10124 --help | --hel | -h )
10125 $as_echo "$ac_cs_usage"; exit ;;
10126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10128 ac_cs_silent=: ;;
10129
10130 # This is an error.
10131 -*) as_fn_error $? "unrecognized option: \`$1'
10132 Try \`$0 --help' for more information." ;;
10133
10134 *) as_fn_append ac_config_targets " $1"
10135 ac_need_defaults=false ;;
10136
10137 esac
10138 shift
10139 done
10140
10141 ac_configure_extra_args=
10142
10143 if $ac_cs_silent; then
10144 exec 6>/dev/null
10145 ac_configure_extra_args="$ac_configure_extra_args --silent"
10146 fi
10147
10148 _ACEOF
10149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10150 if \$ac_cs_recheck; then
10151 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10152 shift
10153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10154 CONFIG_SHELL='$SHELL'
10155 export CONFIG_SHELL
10156 exec "\$@"
10157 fi
10158
10159 _ACEOF
10160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10161 exec 5>>config.log
10162 {
10163 echo
10164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10165 ## Running $as_me. ##
10166 _ASBOX
10167 $as_echo "$ac_log"
10168 } >&5
10169
10170 _ACEOF
10171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10172 #
10173 # INIT-COMMANDS
10174 #
10175 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10176 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10177 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
10178 # from automake < 1.5.
10179 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10180 # Capture the value of LINGUAS because we need it to compute CATALOGS.
10181 LINGUAS="${LINGUAS-%UNSET%}"
10182
10183
10184 _ACEOF
10185
10186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10187
10188 # Handling of arguments.
10189 for ac_config_target in $ac_config_targets
10190 do
10191 case $ac_config_target in
10192 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10193 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10194 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
10195 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10196 "adonthell.spec") CONFIG_FILES="$CONFIG_FILES adonthell.spec" ;;
10197 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10198 "doc/devel/Makefile") CONFIG_FILES="$CONFIG_FILES doc/devel/Makefile" ;;
10199 "doc/dlgedit/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dlgedit/Makefile" ;;
10200 "doc/dlgedit-api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dlgedit-api/Makefile" ;;
10201 "doc/items/Makefile") CONFIG_FILES="$CONFIG_FILES doc/items/Makefile" ;;
10202 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10203 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10204 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10205 "src/modules/Makefile") CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
10206 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
10207 "src/tools/dlgedit/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/dlgedit/Makefile" ;;
10208
10209 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10210 esac
10211 done
10212
10213
10214 # If the user did not use the arguments to specify the items to instantiate,
10215 # then the envvar interface is used. Set only those that are not.
10216 # We use the long form for the default assignment because of an extremely
10217 # bizarre bug on SunOS 4.1.3.
10218 if $ac_need_defaults; then
10219 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10220 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10221 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10222 fi
10223
10224 # Have a temporary directory for convenience. Make it in the build tree
10225 # simply because there is no reason against having it here, and in addition,
10226 # creating and moving files from /tmp can sometimes cause problems.
10227 # Hook for its removal unless debugging.
10228 # Note that there is a small window in which the directory will not be cleaned:
10229 # after its creation but before its name has been assigned to `$tmp'.
10230 $debug ||
10231 {
10232 tmp= ac_tmp=
10233 trap 'exit_status=$?
10234 : "${ac_tmp:=$tmp}"
10235 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10236 ' 0
10237 trap 'as_fn_exit 1' 1 2 13 15
10238 }
10239 # Create a (secure) tmp directory for tmp files.
10240
10241 {
10242 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10243 test -d "$tmp"
10244 } ||
10245 {
10246 tmp=./conf$$-$RANDOM
10247 (umask 077 && mkdir "$tmp")
10248 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10249 ac_tmp=$tmp
10250
10251 # Set up the scripts for CONFIG_FILES section.
10252 # No need to generate them if there are no CONFIG_FILES.
10253 # This happens for instance with `./config.status config.h'.
10254 if test -n "$CONFIG_FILES"; then
10255
10256
10257 ac_cr=`echo X | tr X '\015'`
10258 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10259 # But we know of no other shell where ac_cr would be empty at this
10260 # point, so we can use a bashism as a fallback.
10261 if test "x$ac_cr" = x; then
10262 eval ac_cr=\$\'\\r\'
10263 fi
10264 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10265 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10266 ac_cs_awk_cr='\\r'
10267 else
10268 ac_cs_awk_cr=$ac_cr
10269 fi
10270
10271 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10272 _ACEOF
10273
10274
10275 {
10276 echo "cat >conf$$subs.awk <<_ACEOF" &&
10277 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10278 echo "_ACEOF"
10279 } >conf$$subs.sh ||
10280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10281 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10282 ac_delim='%!_!# '
10283 for ac_last_try in false false false false false :; do
10284 . ./conf$$subs.sh ||
10285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10286
10287 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10288 if test $ac_delim_n = $ac_delim_num; then
10289 break
10290 elif $ac_last_try; then
10291 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10292 else
10293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10294 fi
10295 done
10296 rm -f conf$$subs.sh
10297
10298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10299 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10300 _ACEOF
10301 sed -n '
10302 h
10303 s/^/S["/; s/!.*/"]=/
10304 p
10305 g
10306 s/^[^!]*!//
10307 :repl
10308 t repl
10309 s/'"$ac_delim"'$//
10310 t delim
10311 :nl
10312 h
10313 s/\(.\{148\}\)..*/\1/
10314 t more1
10315 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10316 p
10317 n
10318 b repl
10319 :more1
10320 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10321 p
10322 g
10323 s/.\{148\}//
10324 t nl
10325 :delim
10326 h
10327 s/\(.\{148\}\)..*/\1/
10328 t more2
10329 s/["\\]/\\&/g; s/^/"/; s/$/"/
10330 p
10331 b
10332 :more2
10333 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10334 p
10335 g
10336 s/.\{148\}//
10337 t delim
10338 ' <conf$$subs.awk | sed '
10339 /^[^""]/{
10340 N
10341 s/\n//
10342 }
10343 ' >>$CONFIG_STATUS || ac_write_fail=1
10344 rm -f conf$$subs.awk
10345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10346 _ACAWK
10347 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10348 for (key in S) S_is_set[key] = 1
10349 FS = ""
10350
10351 }
10352 {
10353 line = $ 0
10354 nfields = split(line, field, "@")
10355 substed = 0
10356 len = length(field[1])
10357 for (i = 2; i < nfields; i++) {
10358 key = field[i]
10359 keylen = length(key)
10360 if (S_is_set[key]) {
10361 value = S[key]
10362 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10363 len += length(value) + length(field[++i])
10364 substed = 1
10365 } else
10366 len += 1 + keylen
10367 }
10368
10369 print line
10370 }
10371
10372 _ACAWK
10373 _ACEOF
10374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10375 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10376 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10377 else
10378 cat
10379 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10380 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10381 _ACEOF
10382
10383 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10384 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10385 # trailing colons and then remove the whole line if VPATH becomes empty
10386 # (actually we leave an empty line to preserve line numbers).
10387 if test "x$srcdir" = x.; then
10388 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10389 h
10390 s///
10391 s/^/:/
10392 s/[ ]*$/:/
10393 s/:\$(srcdir):/:/g
10394 s/:\${srcdir}:/:/g
10395 s/:@srcdir@:/:/g
10396 s/^:*//
10397 s/:*$//
10398 x
10399 s/\(=[ ]*\).*/\1/
10400 G
10401 s/\n//
10402 s/^[^=]*=[ ]*$//
10403 }'
10404 fi
10405
10406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10407 fi # test -n "$CONFIG_FILES"
10408
10409 # Set up the scripts for CONFIG_HEADERS section.
10410 # No need to generate them if there are no CONFIG_HEADERS.
10411 # This happens for instance with `./config.status Makefile'.
10412 if test -n "$CONFIG_HEADERS"; then
10413 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10414 BEGIN {
10415 _ACEOF
10416
10417 # Transform confdefs.h into an awk script `defines.awk', embedded as
10418 # here-document in config.status, that substitutes the proper values into
10419 # config.h.in to produce config.h.
10420
10421 # Create a delimiter string that does not exist in confdefs.h, to ease
10422 # handling of long lines.
10423 ac_delim='%!_!# '
10424 for ac_last_try in false false :; do
10425 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10426 if test -z "$ac_tt"; then
10427 break
10428 elif $ac_last_try; then
10429 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10430 else
10431 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10432 fi
10433 done
10434
10435 # For the awk script, D is an array of macro values keyed by name,
10436 # likewise P contains macro parameters if any. Preserve backslash
10437 # newline sequences.
10438
10439 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10440 sed -n '
10441 s/.\{148\}/&'"$ac_delim"'/g
10442 t rset
10443 :rset
10444 s/^[ ]*#[ ]*define[ ][ ]*/ /
10445 t def
10446 d
10447 :def
10448 s/\\$//
10449 t bsnl
10450 s/["\\]/\\&/g
10451 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10452 D["\1"]=" \3"/p
10453 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10454 d
10455 :bsnl
10456 s/["\\]/\\&/g
10457 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10458 D["\1"]=" \3\\\\\\n"\\/p
10459 t cont
10460 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10461 t cont
10462 d
10463 :cont
10464 n
10465 s/.\{148\}/&'"$ac_delim"'/g
10466 t clear
10467 :clear
10468 s/\\$//
10469 t bsnlc
10470 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10471 d
10472 :bsnlc
10473 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10474 b cont
10475 ' <confdefs.h | sed '
10476 s/'"$ac_delim"'/"\\\
10477 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10478
10479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10480 for (key in D) D_is_set[key] = 1
10481 FS = ""
10482 }
10483 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10484 line = \$ 0
10485 split(line, arg, " ")
10486 if (arg[1] == "#") {
10487 defundef = arg[2]
10488 mac1 = arg[3]
10489 } else {
10490 defundef = substr(arg[1], 2)
10491 mac1 = arg[2]
10492 }
10493 split(mac1, mac2, "(") #)
10494 macro = mac2[1]
10495 prefix = substr(line, 1, index(line, defundef) - 1)
10496 if (D_is_set[macro]) {
10497 # Preserve the white space surrounding the "#".
10498 print prefix "define", macro P[macro] D[macro]
10499 next
10500 } else {
10501 # Replace #undef with comments. This is necessary, for example,
10502 # in the case of _POSIX_SOURCE, which is predefined and required
10503 # on some systems where configure will not decide to define it.
10504 if (defundef == "undef") {
10505 print "/*", prefix defundef, macro, "*/"
10506 next
10507 }
10508 }
10509 }
10510 { print }
10511 _ACAWK
10512 _ACEOF
10513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10514 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10515 fi # test -n "$CONFIG_HEADERS"
10516
10517
10518 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10519 shift
10520 for ac_tag
10521 do
10522 case $ac_tag in
10523 :[FHLC]) ac_mode=$ac_tag; continue;;
10524 esac
10525 case $ac_mode$ac_tag in
10526 :[FHL]*:*);;
10527 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10528 :[FH]-) ac_tag=-:-;;
10529 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10530 esac
10531 ac_save_IFS=$IFS
10532 IFS=:
10533 set x $ac_tag
10534 IFS=$ac_save_IFS
10535 shift
10536 ac_file=$1
10537 shift
10538
10539 case $ac_mode in
10540 :L) ac_source=$1;;
10541 :[FH])
10542 ac_file_inputs=
10543 for ac_f
10544 do
10545 case $ac_f in
10546 -) ac_f="$ac_tmp/stdin";;
10547 *) # Look for the file first in the build tree, then in the source tree
10548 # (if the path is not absolute). The absolute path cannot be DOS-style,
10549 # because $ac_f cannot contain `:'.
10550 test -f "$ac_f" ||
10551 case $ac_f in
10552 [\\/$]*) false;;
10553 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10554 esac ||
10555 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10556 esac
10557 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10558 as_fn_append ac_file_inputs " '$ac_f'"
10559 done
10560
10561 # Let's still pretend it is `configure' which instantiates (i.e., don't
10562 # use $as_me), people would be surprised to read:
10563 # /* config.h. Generated by config.status. */
10564 configure_input='Generated from '`
10565 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10566 `' by configure.'
10567 if test x"$ac_file" != x-; then
10568 configure_input="$ac_file. $configure_input"
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10570 $as_echo "$as_me: creating $ac_file" >&6;}
10571 fi
10572 # Neutralize special characters interpreted by sed in replacement strings.
10573 case $configure_input in #(
10574 *\&* | *\|* | *\\* )
10575 ac_sed_conf_input=`$as_echo "$configure_input" |
10576 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10577 *) ac_sed_conf_input=$configure_input;;
10578 esac
10579
10580 case $ac_tag in
10581 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10583 esac
10584 ;;
10585 esac
10586
10587 ac_dir=`$as_dirname -- "$ac_file" ||
10588 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10589 X"$ac_file" : 'X\(//\)[^/]' \| \
10590 X"$ac_file" : 'X\(//\)$' \| \
10591 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10592 $as_echo X"$ac_file" |
10593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10594 s//\1/
10595 q
10596 }
10597 /^X\(\/\/\)[^/].*/{
10598 s//\1/
10599 q
10600 }
10601 /^X\(\/\/\)$/{
10602 s//\1/
10603 q
10604 }
10605 /^X\(\/\).*/{
10606 s//\1/
10607 q
10608 }
10609 s/.*/./; q'`
10610 as_dir="$ac_dir"; as_fn_mkdir_p
10611 ac_builddir=.
10612
10613 case "$ac_dir" in
10614 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10615 *)
10616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10617 # A ".." for each directory in $ac_dir_suffix.
10618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10619 case $ac_top_builddir_sub in
10620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10622 esac ;;
10623 esac
10624 ac_abs_top_builddir=$ac_pwd
10625 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10626 # for backward compatibility:
10627 ac_top_builddir=$ac_top_build_prefix
10628
10629 case $srcdir in
10630 .) # We are building in place.
10631 ac_srcdir=.
10632 ac_top_srcdir=$ac_top_builddir_sub
10633 ac_abs_top_srcdir=$ac_pwd ;;
10634 [\\/]* | ?:[\\/]* ) # Absolute name.
10635 ac_srcdir=$srcdir$ac_dir_suffix;
10636 ac_top_srcdir=$srcdir
10637 ac_abs_top_srcdir=$srcdir ;;
10638 *) # Relative name.
10639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10640 ac_top_srcdir=$ac_top_build_prefix$srcdir
10641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10642 esac
10643 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10644
10645
10646 case $ac_mode in
10647 :F)
10648 #
10649 # CONFIG_FILE
10650 #
10651
10652 case $INSTALL in
10653 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10654 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10655 esac
10656 ac_MKDIR_P=$MKDIR_P
10657 case $MKDIR_P in
10658 [\\/$]* | ?:[\\/]* ) ;;
10659 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10660 esac
10661 _ACEOF
10662
10663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10664 # If the template does not know about datarootdir, expand it.
10665 # FIXME: This hack should be removed a few years after 2.60.
10666 ac_datarootdir_hack=; ac_datarootdir_seen=
10667 ac_sed_dataroot='
10668 /datarootdir/ {
10669 p
10670 q
10671 }
10672 /@datadir@/p
10673 /@docdir@/p
10674 /@infodir@/p
10675 /@localedir@/p
10676 /@mandir@/p'
10677 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10678 *datarootdir*) ac_datarootdir_seen=yes;;
10679 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10681 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10682 _ACEOF
10683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10684 ac_datarootdir_hack='
10685 s&@datadir@&$datadir&g
10686 s&@docdir@&$docdir&g
10687 s&@infodir@&$infodir&g
10688 s&@localedir@&$localedir&g
10689 s&@mandir@&$mandir&g
10690 s&\\\${datarootdir}&$datarootdir&g' ;;
10691 esac
10692 _ACEOF
10693
10694 # Neutralize VPATH when `$srcdir' = `.'.
10695 # Shell code in configure.ac might set extrasub.
10696 # FIXME: do we really want to maintain this feature?
10697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10698 ac_sed_extra="$ac_vpsub
10699 $extrasub
10700 _ACEOF
10701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10702 :t
10703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10704 s|@configure_input@|$ac_sed_conf_input|;t t
10705 s&@top_builddir@&$ac_top_builddir_sub&;t t
10706 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10707 s&@srcdir@&$ac_srcdir&;t t
10708 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10709 s&@top_srcdir@&$ac_top_srcdir&;t t
10710 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10711 s&@builddir@&$ac_builddir&;t t
10712 s&@abs_builddir@&$ac_abs_builddir&;t t
10713 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10714 s&@INSTALL@&$ac_INSTALL&;t t
10715 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10716 $ac_datarootdir_hack
10717 "
10718 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10719 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10720
10721 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10722 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10723 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10724 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10726 which seems to be undefined. Please make sure it is defined" >&5
10727 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10728 which seems to be undefined. Please make sure it is defined" >&2;}
10729
10730 rm -f "$ac_tmp/stdin"
10731 case $ac_file in
10732 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10733 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10734 esac \
10735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10736 ;;
10737 :H)
10738 #
10739 # CONFIG_HEADER
10740 #
10741 if test x"$ac_file" != x-; then
10742 {
10743 $as_echo "/* $configure_input */" \
10744 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10745 } >"$ac_tmp/config.h" \
10746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10747 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10749 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10750 else
10751 rm -f "$ac_file"
10752 mv "$ac_tmp/config.h" "$ac_file" \
10753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10754 fi
10755 else
10756 $as_echo "/* $configure_input */" \
10757 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10758 || as_fn_error $? "could not create -" "$LINENO" 5
10759 fi
10760 # Compute "$ac_file"'s index in $config_headers.
10761 _am_arg="$ac_file"
10762 _am_stamp_count=1
10763 for _am_header in $config_headers :; do
10764 case $_am_header in
10765 $_am_arg | $_am_arg:* )
10766 break ;;
10767 * )
10768 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10769 esac
10770 done
10771 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10772 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10773 X"$_am_arg" : 'X\(//\)[^/]' \| \
10774 X"$_am_arg" : 'X\(//\)$' \| \
10775 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10776 $as_echo X"$_am_arg" |
10777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10778 s//\1/
10779 q
10780 }
10781 /^X\(\/\/\)[^/].*/{
10782 s//\1/
10783 q
10784 }
10785 /^X\(\/\/\)$/{
10786 s//\1/
10787 q
10788 }
10789 /^X\(\/\).*/{
10790 s//\1/
10791 q
10792 }
10793 s/.*/./; q'`/stamp-h$_am_stamp_count
10794 ;;
10795
10796 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10797 $as_echo "$as_me: executing $ac_file commands" >&6;}
10798 ;;
10799 esac
10800
10801
10802 case $ac_file$ac_mode in
10803 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10804 # Older Autoconf quotes --file arguments for eval, but not when files
10805 # are listed without --file. Let's play safe and only enable the eval
10806 # if we detect the quoting.
10807 case $CONFIG_FILES in
10808 *\'*) eval set x "$CONFIG_FILES" ;;
10809 *) set x $CONFIG_FILES ;;
10810 esac
10811 shift
10812 for mf
10813 do
10814 # Strip MF so we end up with the name of the file.
10815 mf=`echo "$mf" | sed -e 's/:.*$//'`
10816 # Check whether this is an Automake generated Makefile or not.
10817 # We used to match only the files named 'Makefile.in', but
10818 # some people rename them; so instead we look at the file content.
10819 # Grep'ing the first line is not enough: some people post-process
10820 # each Makefile.in and add a new line on top of each file to say so.
10821 # Grep'ing the whole file is not good either: AIX grep has a line
10822 # limit of 2048, but all sed's we know have understand at least 4000.
10823 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10824 dirpart=`$as_dirname -- "$mf" ||
10825 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10826 X"$mf" : 'X\(//\)[^/]' \| \
10827 X"$mf" : 'X\(//\)$' \| \
10828 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10829 $as_echo X"$mf" |
10830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10831 s//\1/
10832 q
10833 }
10834 /^X\(\/\/\)[^/].*/{
10835 s//\1/
10836 q
10837 }
10838 /^X\(\/\/\)$/{
10839 s//\1/
10840 q
10841 }
10842 /^X\(\/\).*/{
10843 s//\1/
10844 q
10845 }
10846 s/.*/./; q'`
10847 else
10848 continue
10849 fi
10850 # Extract the definition of DEPDIR, am__include, and am__quote
10851 # from the Makefile without running 'make'.
10852 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10853 test -z "$DEPDIR" && continue
10854 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10855 test -z "$am__include" && continue
10856 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10857 # Find all dependency output files, they are included files with
10858 # $(DEPDIR) in their names. We invoke sed twice because it is the
10859 # simplest approach to changing $(DEPDIR) to its actual value in the
10860 # expansion.
10861 for file in `sed -n "
10862 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10863 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
10864 # Make sure the directory exists.
10865 test -f "$dirpart/$file" && continue
10866 fdir=`$as_dirname -- "$file" ||
10867 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10868 X"$file" : 'X\(//\)[^/]' \| \
10869 X"$file" : 'X\(//\)$' \| \
10870 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10871 $as_echo X"$file" |
10872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10873 s//\1/
10874 q
10875 }
10876 /^X\(\/\/\)[^/].*/{
10877 s//\1/
10878 q
10879 }
10880 /^X\(\/\/\)$/{
10881 s//\1/
10882 q
10883 }
10884 /^X\(\/\).*/{
10885 s//\1/
10886 q
10887 }
10888 s/.*/./; q'`
10889 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10890 # echo "creating $dirpart/$file"
10891 echo '# dummy' > "$dirpart/$file"
10892 done
10893 done
10894 }
10895 ;;
10896 "po-directories":C)
10897 for ac_file in $CONFIG_FILES; do
10898 # Support "outfile[:infile[:infile...]]"
10899 case "$ac_file" in
10900 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10901 esac
10902 # PO directories have a Makefile.in generated from Makefile.in.in.
10903 case "$ac_file" in */Makefile.in)
10904 # Adjust a relative srcdir.
10905 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10906 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
10907 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10908 # In autoconf-2.13 it is called $ac_given_srcdir.
10909 # In autoconf-2.50 it is called $srcdir.
10910 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10911 case "$ac_given_srcdir" in
10912 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10913 /*) top_srcdir="$ac_given_srcdir" ;;
10914 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10915 esac
10916 # Treat a directory as a PO directory if and only if it has a
10917 # POTFILES.in file. This allows packages to have multiple PO
10918 # directories under different names or in different locations.
10919 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10920 rm -f "$ac_dir/POTFILES"
10921 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10922 gt_tab=`printf '\t'`
10923 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10924 POMAKEFILEDEPS="POTFILES.in"
10925 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10926 # on $ac_dir but don't depend on user-specified configuration
10927 # parameters.
10928 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10929 # The LINGUAS file contains the set of available languages.
10930 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10931 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10932 fi
10933 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10934 # Hide the ALL_LINGUAS assignment from automake < 1.5.
10935 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10936 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10937 else
10938 # The set of available languages was given in configure.in.
10939 # Hide the ALL_LINGUAS assignment from automake < 1.5.
10940 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10941 fi
10942 # Compute POFILES
10943 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10944 # Compute UPDATEPOFILES
10945 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10946 # Compute DUMMYPOFILES
10947 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10948 # Compute GMOFILES
10949 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10950 case "$ac_given_srcdir" in
10951 .) srcdirpre= ;;
10952 *) srcdirpre='$(srcdir)/' ;;
10953 esac
10954 POFILES=
10955 UPDATEPOFILES=
10956 DUMMYPOFILES=
10957 GMOFILES=
10958 for lang in $ALL_LINGUAS; do
10959 POFILES="$POFILES $srcdirpre$lang.po"
10960 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10961 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10962 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10963 done
10964 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10965 # environment variable.
10966 INST_LINGUAS=
10967 if test -n "$ALL_LINGUAS"; then
10968 for presentlang in $ALL_LINGUAS; do
10969 useit=no
10970 if test "%UNSET%" != "$LINGUAS"; then
10971 desiredlanguages="$LINGUAS"
10972 else
10973 desiredlanguages="$ALL_LINGUAS"
10974 fi
10975 for desiredlang in $desiredlanguages; do
10976 # Use the presentlang catalog if desiredlang is
10977 # a. equal to presentlang, or
10978 # b. a variant of presentlang (because in this case,
10979 # presentlang can be used as a fallback for messages
10980 # which are not translated in the desiredlang catalog).
10981 case "$desiredlang" in
10982 "$presentlang"*) useit=yes;;
10983 esac
10984 done
10985 if test $useit = yes; then
10986 INST_LINGUAS="$INST_LINGUAS $presentlang"
10987 fi
10988 done
10989 fi
10990 CATALOGS=
10991 if test -n "$INST_LINGUAS"; then
10992 for lang in $INST_LINGUAS; do
10993 CATALOGS="$CATALOGS $lang.gmo"
10994 done
10995 fi
10996 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10997 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10998 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10999 if test -f "$f"; then
11000 case "$f" in
11001 *.orig | *.bak | *~) ;;
11002 *) cat "$f" >> "$ac_dir/Makefile" ;;
11003 esac
11004 fi
11005 done
11006 fi
11007 ;;
11008 esac
11009 done ;;
11010
11011 esac
11012 done # for ac_tag
11013
11014
11015 as_fn_exit 0
11016 _ACEOF
11017 ac_clean_files=$ac_clean_files_save
11018
11019 test $ac_write_fail = 0 ||
11020 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11021
11022
11023 # configure is writing to config.log, and then calls config.status.
11024 # config.status does its own redirection, appending to config.log.
11025 # Unfortunately, on DOS this fails, as config.log is still kept open
11026 # by configure, so config.status won't be able to write to it; its
11027 # output is simply discarded. So we exec the FD to /dev/null,
11028 # effectively closing config.log, so it can be properly (re)opened and
11029 # appended to by config.status. When coming back to configure, we
11030 # need to make the FD available again.
11031 if test "$no_create" != yes; then
11032 ac_cs_success=:
11033 ac_config_status_args=
11034 test "$silent" = yes &&
11035 ac_config_status_args="$ac_config_status_args --quiet"
11036 exec 5>/dev/null
11037 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11038 exec 5>>config.log
11039 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11040 # would make configure fail if this is the last instruction.
11041 $ac_cs_success || as_fn_exit 1
11042 fi
11043 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11045 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11046 fi
11047
11048
11049
11050 echo
11051 echo "Adonthell v$VERSION"
11052 echo
11053 echo "SDL ....................... : `sdl2-config --version`"
11054 echo "Python .................... : $PY_VERSION"
11055 echo "Python debugging .......... : $pydebug"
11056 echo "Freetype .................. : `pkg-config --modversion freetype2`"
11057 if test "x$haveswig" = "xyes"; then
11058 echo "SWIG ...................... : $SWIG_VERSION"
11059 fi
11060 if test "x$dlgedit" = "xyes"; then
11061 echo "Cairo ..................... : `pkg-config --modversion cairo`"
11062 echo "GTK+ ...................... : `pkg-config --modversion gtk+-2.0`"
11063 fi
11064 echo "Ogg music ................. : $ogg_music"
11065 echo "Building dlgedit .......... : $dlgedit"
11066 echo "Building API doc .......... : $builddoc"
11067 if test "x$memleaks" = "xyes"; then
11068 echo "Test for Memory Leaks ..... : enabled"
11069 fi
11070 if test x$unixinst = xno; then
11071 echo "Data directory ............ : Single Directory install"
11072 else
11073 echo "Data directory ............ : ${gamedatadir}"
11074 fi
11075
11076 echo
11077 echo "Now type 'make' to build Adonthell"
11078 echo "Afterwards, 'make install' will install Adonthell in $prefix/bin"
11079 echo
11080
11081