Annotation of early-roguelike/srogue/autom4te.cache/output.1, Revision 1.1.1.1
1.1 rubenllo 1: @%:@! /bin/sh
2: @%:@ Guess values for system-dependent variables and create Makefiles.
3: @%:@ Generated by GNU Autoconf 2.69 for SRogue 9.0.
4: @%:@
5: @%:@ Report bugs to <yendor@rogueforge.net>.
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 bug-autoconf@gnu.org and
270: $0: yendor@rogueforge.net about your system, including any
271: $0: error possibly output before this message. Then install
272: $0: a modern shell, or manually run the script under such a
273: $0: 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 @S|@? 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 "@S|@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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments
392: @%:@ must be portable across @S|@(()) 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 @S|@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: LIB@&t@OBJS=
575: cross_compiling=no
576: subdirs=
577: MFLAGS=
578: MAKEFLAGS=
579:
580: # Identity of this package.
581: PACKAGE_NAME='SRogue'
582: PACKAGE_TARNAME='srogue'
583: PACKAGE_VERSION='9.0'
584: PACKAGE_STRING='SRogue 9.0'
585: PACKAGE_BUGREPORT='yendor@rogueforge.net'
586: PACKAGE_URL=''
587:
588: # Factoring default headers for most tests.
589: ac_includes_default="\
590: #include <stdio.h>
591: #ifdef HAVE_SYS_TYPES_H
592: # include <sys/types.h>
593: #endif
594: #ifdef HAVE_SYS_STAT_H
595: # include <sys/stat.h>
596: #endif
597: #ifdef STDC_HEADERS
598: # include <stdlib.h>
599: # include <stddef.h>
600: #else
601: # ifdef HAVE_STDLIB_H
602: # include <stdlib.h>
603: # endif
604: #endif
605: #ifdef HAVE_STRING_H
606: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607: # include <memory.h>
608: # endif
609: # include <string.h>
610: #endif
611: #ifdef HAVE_STRINGS_H
612: # include <strings.h>
613: #endif
614: #ifdef HAVE_INTTYPES_H
615: # include <inttypes.h>
616: #endif
617: #ifdef HAVE_STDINT_H
618: # include <stdint.h>
619: #endif
620: #ifdef HAVE_UNISTD_H
621: # include <unistd.h>
622: #endif"
623:
624: ac_subst_vars='LTLIBOBJS
625: SAVEDIR
626: LOGFILE
627: SCOREFILE
628: GROUPOWNER
629: PROGRAM
630: DOCS_NONE
631: DOCS_NROFF
632: DOCS_GROFF
633: TBL
634: COLCRT
635: GROFF
636: NROFF
637: INSTALL_DATA
638: INSTALL_SCRIPT
639: INSTALL_PROGRAM
640: LIB@&t@OBJS
641: EGREP
642: GREP
643: CPP
644: OBJEXT
645: EXEEXT
646: ac_ct_CC
647: CPPFLAGS
648: LDFLAGS
649: CFLAGS
650: CC
651: target_alias
652: host_alias
653: build_alias
654: LIBS
655: ECHO_T
656: ECHO_N
657: ECHO_C
658: DEFS
659: mandir
660: localedir
661: libdir
662: psdir
663: pdfdir
664: dvidir
665: htmldir
666: infodir
667: docdir
668: oldincludedir
669: includedir
670: localstatedir
671: sharedstatedir
672: sysconfdir
673: datadir
674: datarootdir
675: libexecdir
676: sbindir
677: bindir
678: program_transform_name
679: prefix
680: exec_prefix
681: PACKAGE_URL
682: PACKAGE_BUGREPORT
683: PACKAGE_STRING
684: PACKAGE_VERSION
685: PACKAGE_TARNAME
686: PACKAGE_NAME
687: PATH_SEPARATOR
688: SHELL'
689: ac_subst_files=''
690: ac_user_opts='
691: enable_option_checking
692: with_ncurses
693: with_program_name
694: enable_setgid
695: enable_scorefile
696: enable_logfile
697: enable_savedir
698: enable_wizardmode
699: '
700: ac_precious_vars='build_alias
701: host_alias
702: target_alias
703: CC
704: CFLAGS
705: LDFLAGS
706: LIBS
707: CPPFLAGS
708: CPP'
709:
710:
711: # Initialize some variables set by options.
712: ac_init_help=
713: ac_init_version=false
714: ac_unrecognized_opts=
715: ac_unrecognized_sep=
716: # The variables have the same names as the options, with
717: # dashes changed to underlines.
718: cache_file=/dev/null
719: exec_prefix=NONE
720: no_create=
721: no_recursion=
722: prefix=NONE
723: program_prefix=NONE
724: program_suffix=NONE
725: program_transform_name=s,x,x,
726: silent=
727: site=
728: srcdir=
729: verbose=
730: x_includes=NONE
731: x_libraries=NONE
732:
733: # Installation directory options.
734: # These are left unexpanded so users can "make install exec_prefix=/foo"
735: # and all the variables that are supposed to be based on exec_prefix
736: # by default will actually change.
737: # Use braces instead of parens because sh, perl, etc. also accept them.
738: # (The list follows the same order as the GNU Coding Standards.)
739: bindir='${exec_prefix}/bin'
740: sbindir='${exec_prefix}/sbin'
741: libexecdir='${exec_prefix}/libexec'
742: datarootdir='${prefix}/share'
743: datadir='${datarootdir}'
744: sysconfdir='${prefix}/etc'
745: sharedstatedir='${prefix}/com'
746: localstatedir='${prefix}/var'
747: includedir='${prefix}/include'
748: oldincludedir='/usr/include'
749: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
750: infodir='${datarootdir}/info'
751: htmldir='${docdir}'
752: dvidir='${docdir}'
753: pdfdir='${docdir}'
754: psdir='${docdir}'
755: libdir='${exec_prefix}/lib'
756: localedir='${datarootdir}/locale'
757: mandir='${datarootdir}/man'
758:
759: ac_prev=
760: ac_dashdash=
761: for ac_option
762: do
763: # If the previous option needs an argument, assign it.
764: if test -n "$ac_prev"; then
765: eval $ac_prev=\$ac_option
766: ac_prev=
767: continue
768: fi
769:
770: case $ac_option in
771: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772: *=) ac_optarg= ;;
773: *) ac_optarg=yes ;;
774: esac
775:
776: # Accept the important Cygnus configure options, so we can diagnose typos.
777:
778: case $ac_dashdash$ac_option in
779: --)
780: ac_dashdash=yes ;;
781:
782: -bindir | --bindir | --bindi | --bind | --bin | --bi)
783: ac_prev=bindir ;;
784: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
785: bindir=$ac_optarg ;;
786:
787: -build | --build | --buil | --bui | --bu)
788: ac_prev=build_alias ;;
789: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
790: build_alias=$ac_optarg ;;
791:
792: -cache-file | --cache-file | --cache-fil | --cache-fi \
793: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
794: ac_prev=cache_file ;;
795: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
796: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
797: cache_file=$ac_optarg ;;
798:
799: --config-cache | -C)
800: cache_file=config.cache ;;
801:
802: -datadir | --datadir | --datadi | --datad)
803: ac_prev=datadir ;;
804: -datadir=* | --datadir=* | --datadi=* | --datad=*)
805: datadir=$ac_optarg ;;
806:
807: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
808: | --dataroo | --dataro | --datar)
809: ac_prev=datarootdir ;;
810: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
811: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
812: datarootdir=$ac_optarg ;;
813:
814: -disable-* | --disable-*)
815: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
816: # Reject names that are not valid shell variable names.
817: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
818: as_fn_error $? "invalid feature name: $ac_useropt"
819: ac_useropt_orig=$ac_useropt
820: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
821: case $ac_user_opts in
822: *"
823: "enable_$ac_useropt"
824: "*) ;;
825: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
826: ac_unrecognized_sep=', ';;
827: esac
828: eval enable_$ac_useropt=no ;;
829:
830: -docdir | --docdir | --docdi | --doc | --do)
831: ac_prev=docdir ;;
832: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
833: docdir=$ac_optarg ;;
834:
835: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
836: ac_prev=dvidir ;;
837: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
838: dvidir=$ac_optarg ;;
839:
840: -enable-* | --enable-*)
841: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
842: # Reject names that are not valid shell variable names.
843: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
844: as_fn_error $? "invalid feature name: $ac_useropt"
845: ac_useropt_orig=$ac_useropt
846: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
847: case $ac_user_opts in
848: *"
849: "enable_$ac_useropt"
850: "*) ;;
851: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
852: ac_unrecognized_sep=', ';;
853: esac
854: eval enable_$ac_useropt=\$ac_optarg ;;
855:
856: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
857: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
858: | --exec | --exe | --ex)
859: ac_prev=exec_prefix ;;
860: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
861: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
862: | --exec=* | --exe=* | --ex=*)
863: exec_prefix=$ac_optarg ;;
864:
865: -gas | --gas | --ga | --g)
866: # Obsolete; use --with-gas.
867: with_gas=yes ;;
868:
869: -help | --help | --hel | --he | -h)
870: ac_init_help=long ;;
871: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
872: ac_init_help=recursive ;;
873: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
874: ac_init_help=short ;;
875:
876: -host | --host | --hos | --ho)
877: ac_prev=host_alias ;;
878: -host=* | --host=* | --hos=* | --ho=*)
879: host_alias=$ac_optarg ;;
880:
881: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
882: ac_prev=htmldir ;;
883: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
884: | --ht=*)
885: htmldir=$ac_optarg ;;
886:
887: -includedir | --includedir | --includedi | --included | --include \
888: | --includ | --inclu | --incl | --inc)
889: ac_prev=includedir ;;
890: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
891: | --includ=* | --inclu=* | --incl=* | --inc=*)
892: includedir=$ac_optarg ;;
893:
894: -infodir | --infodir | --infodi | --infod | --info | --inf)
895: ac_prev=infodir ;;
896: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
897: infodir=$ac_optarg ;;
898:
899: -libdir | --libdir | --libdi | --libd)
900: ac_prev=libdir ;;
901: -libdir=* | --libdir=* | --libdi=* | --libd=*)
902: libdir=$ac_optarg ;;
903:
904: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
905: | --libexe | --libex | --libe)
906: ac_prev=libexecdir ;;
907: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
908: | --libexe=* | --libex=* | --libe=*)
909: libexecdir=$ac_optarg ;;
910:
911: -localedir | --localedir | --localedi | --localed | --locale)
912: ac_prev=localedir ;;
913: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
914: localedir=$ac_optarg ;;
915:
916: -localstatedir | --localstatedir | --localstatedi | --localstated \
917: | --localstate | --localstat | --localsta | --localst | --locals)
918: ac_prev=localstatedir ;;
919: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
920: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
921: localstatedir=$ac_optarg ;;
922:
923: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
924: ac_prev=mandir ;;
925: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
926: mandir=$ac_optarg ;;
927:
928: -nfp | --nfp | --nf)
929: # Obsolete; use --without-fp.
930: with_fp=no ;;
931:
932: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
933: | --no-cr | --no-c | -n)
934: no_create=yes ;;
935:
936: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
937: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
938: no_recursion=yes ;;
939:
940: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
941: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
942: | --oldin | --oldi | --old | --ol | --o)
943: ac_prev=oldincludedir ;;
944: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
945: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
946: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
947: oldincludedir=$ac_optarg ;;
948:
949: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
950: ac_prev=prefix ;;
951: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
952: prefix=$ac_optarg ;;
953:
954: -program-prefix | --program-prefix | --program-prefi | --program-pref \
955: | --program-pre | --program-pr | --program-p)
956: ac_prev=program_prefix ;;
957: -program-prefix=* | --program-prefix=* | --program-prefi=* \
958: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
959: program_prefix=$ac_optarg ;;
960:
961: -program-suffix | --program-suffix | --program-suffi | --program-suff \
962: | --program-suf | --program-su | --program-s)
963: ac_prev=program_suffix ;;
964: -program-suffix=* | --program-suffix=* | --program-suffi=* \
965: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
966: program_suffix=$ac_optarg ;;
967:
968: -program-transform-name | --program-transform-name \
969: | --program-transform-nam | --program-transform-na \
970: | --program-transform-n | --program-transform- \
971: | --program-transform | --program-transfor \
972: | --program-transfo | --program-transf \
973: | --program-trans | --program-tran \
974: | --progr-tra | --program-tr | --program-t)
975: ac_prev=program_transform_name ;;
976: -program-transform-name=* | --program-transform-name=* \
977: | --program-transform-nam=* | --program-transform-na=* \
978: | --program-transform-n=* | --program-transform-=* \
979: | --program-transform=* | --program-transfor=* \
980: | --program-transfo=* | --program-transf=* \
981: | --program-trans=* | --program-tran=* \
982: | --progr-tra=* | --program-tr=* | --program-t=*)
983: program_transform_name=$ac_optarg ;;
984:
985: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
986: ac_prev=pdfdir ;;
987: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
988: pdfdir=$ac_optarg ;;
989:
990: -psdir | --psdir | --psdi | --psd | --ps)
991: ac_prev=psdir ;;
992: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
993: psdir=$ac_optarg ;;
994:
995: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
996: | -silent | --silent | --silen | --sile | --sil)
997: silent=yes ;;
998:
999: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1000: ac_prev=sbindir ;;
1001: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1002: | --sbi=* | --sb=*)
1003: sbindir=$ac_optarg ;;
1004:
1005: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1006: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1007: | --sharedst | --shareds | --shared | --share | --shar \
1008: | --sha | --sh)
1009: ac_prev=sharedstatedir ;;
1010: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1011: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1012: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1013: | --sha=* | --sh=*)
1014: sharedstatedir=$ac_optarg ;;
1015:
1016: -site | --site | --sit)
1017: ac_prev=site ;;
1018: -site=* | --site=* | --sit=*)
1019: site=$ac_optarg ;;
1020:
1021: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1022: ac_prev=srcdir ;;
1023: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1024: srcdir=$ac_optarg ;;
1025:
1026: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1027: | --syscon | --sysco | --sysc | --sys | --sy)
1028: ac_prev=sysconfdir ;;
1029: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1030: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1031: sysconfdir=$ac_optarg ;;
1032:
1033: -target | --target | --targe | --targ | --tar | --ta | --t)
1034: ac_prev=target_alias ;;
1035: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1036: target_alias=$ac_optarg ;;
1037:
1038: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1039: verbose=yes ;;
1040:
1041: -version | --version | --versio | --versi | --vers | -V)
1042: ac_init_version=: ;;
1043:
1044: -with-* | --with-*)
1045: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1046: # Reject names that are not valid shell variable names.
1047: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048: as_fn_error $? "invalid package name: $ac_useropt"
1049: ac_useropt_orig=$ac_useropt
1050: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051: case $ac_user_opts in
1052: *"
1053: "with_$ac_useropt"
1054: "*) ;;
1055: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1056: ac_unrecognized_sep=', ';;
1057: esac
1058: eval with_$ac_useropt=\$ac_optarg ;;
1059:
1060: -without-* | --without-*)
1061: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1062: # Reject names that are not valid shell variable names.
1063: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064: as_fn_error $? "invalid package name: $ac_useropt"
1065: ac_useropt_orig=$ac_useropt
1066: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067: case $ac_user_opts in
1068: *"
1069: "with_$ac_useropt"
1070: "*) ;;
1071: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1072: ac_unrecognized_sep=', ';;
1073: esac
1074: eval with_$ac_useropt=no ;;
1075:
1076: --x)
1077: # Obsolete; use --with-x.
1078: with_x=yes ;;
1079:
1080: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1081: | --x-incl | --x-inc | --x-in | --x-i)
1082: ac_prev=x_includes ;;
1083: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1084: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1085: x_includes=$ac_optarg ;;
1086:
1087: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1088: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1089: ac_prev=x_libraries ;;
1090: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1091: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1092: x_libraries=$ac_optarg ;;
1093:
1094: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1095: Try \`$0 --help' for more information"
1096: ;;
1097:
1098: *=*)
1099: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1100: # Reject names that are not valid shell variable names.
1101: case $ac_envvar in #(
1102: '' | [0-9]* | *[!_$as_cr_alnum]* )
1103: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1104: esac
1105: eval $ac_envvar=\$ac_optarg
1106: export $ac_envvar ;;
1107:
1108: *)
1109: # FIXME: should be removed in autoconf 3.0.
1110: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1111: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1113: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1114: ;;
1115:
1116: esac
1117: done
1118:
1119: if test -n "$ac_prev"; then
1120: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1121: as_fn_error $? "missing argument to $ac_option"
1122: fi
1123:
1124: if test -n "$ac_unrecognized_opts"; then
1125: case $enable_option_checking in
1126: no) ;;
1127: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1128: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1129: esac
1130: fi
1131:
1132: # Check all directory arguments for consistency.
1133: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134: datadir sysconfdir sharedstatedir localstatedir includedir \
1135: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136: libdir localedir mandir
1137: do
1138: eval ac_val=\$$ac_var
1139: # Remove trailing slashes.
1140: case $ac_val in
1141: */ )
1142: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1143: eval $ac_var=\$ac_val;;
1144: esac
1145: # Be sure to have absolute directory names.
1146: case $ac_val in
1147: [\\/$]* | ?:[\\/]* ) continue;;
1148: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1149: esac
1150: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1151: done
1152:
1153: # There might be people who depend on the old broken behavior: `$host'
1154: # used to hold the argument of --host etc.
1155: # FIXME: To remove some day.
1156: build=$build_alias
1157: host=$host_alias
1158: target=$target_alias
1159:
1160: # FIXME: To remove some day.
1161: if test "x$host_alias" != x; then
1162: if test "x$build_alias" = x; then
1163: cross_compiling=maybe
1164: elif test "x$build_alias" != "x$host_alias"; then
1165: cross_compiling=yes
1166: fi
1167: fi
1168:
1169: ac_tool_prefix=
1170: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1171:
1172: test "$silent" = yes && exec 6>/dev/null
1173:
1174:
1175: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1176: ac_ls_di=`ls -di .` &&
1177: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1178: as_fn_error $? "working directory cannot be determined"
1179: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180: as_fn_error $? "pwd does not report name of working directory"
1181:
1182:
1183: # Find the source files, if location was not specified.
1184: if test -z "$srcdir"; then
1185: ac_srcdir_defaulted=yes
1186: # Try the directory containing this script, then the parent directory.
1187: ac_confdir=`$as_dirname -- "$as_myself" ||
1188: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189: X"$as_myself" : 'X\(//\)[^/]' \| \
1190: X"$as_myself" : 'X\(//\)$' \| \
1191: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1192: $as_echo X"$as_myself" |
1193: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194: s//\1/
1195: q
1196: }
1197: /^X\(\/\/\)[^/].*/{
1198: s//\1/
1199: q
1200: }
1201: /^X\(\/\/\)$/{
1202: s//\1/
1203: q
1204: }
1205: /^X\(\/\).*/{
1206: s//\1/
1207: q
1208: }
1209: s/.*/./; q'`
1210: srcdir=$ac_confdir
1211: if test ! -r "$srcdir/$ac_unique_file"; then
1212: srcdir=..
1213: fi
1214: else
1215: ac_srcdir_defaulted=no
1216: fi
1217: if test ! -r "$srcdir/$ac_unique_file"; then
1218: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1220: fi
1221: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1222: ac_abs_confdir=`(
1223: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1224: pwd)`
1225: # When building in place, set srcdir=.
1226: if test "$ac_abs_confdir" = "$ac_pwd"; then
1227: srcdir=.
1228: fi
1229: # Remove unnecessary trailing slashes from srcdir.
1230: # Double slashes in file names in object file debugging info
1231: # mess up M-x gdb in Emacs.
1232: case $srcdir in
1233: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1234: esac
1235: for ac_var in $ac_precious_vars; do
1236: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1237: eval ac_env_${ac_var}_value=\$${ac_var}
1238: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1239: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1240: done
1241:
1242: #
1243: # Report the --help message.
1244: #
1245: if test "$ac_init_help" = "long"; then
1246: # Omit some internal or obsolete options to make the list less imposing.
1247: # This message is too long to be a string in the A/UX 3.1 sh.
1248: cat <<_ACEOF
1249: \`configure' configures SRogue 9.0 to adapt to many kinds of systems.
1250:
1251: Usage: $0 [OPTION]... [VAR=VALUE]...
1252:
1253: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254: VAR=VALUE. See below for descriptions of some of the useful variables.
1255:
1256: Defaults for the options are specified in brackets.
1257:
1258: Configuration:
1259: -h, --help display this help and exit
1260: --help=short display options specific to this package
1261: --help=recursive display the short help of all the included packages
1262: -V, --version display version information and exit
1263: -q, --quiet, --silent do not print \`checking ...' messages
1264: --cache-file=FILE cache test results in FILE [disabled]
1265: -C, --config-cache alias for \`--cache-file=config.cache'
1266: -n, --no-create do not create output files
1267: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268:
1269: Installation directories:
1270: --prefix=PREFIX install architecture-independent files in PREFIX
1271: @<:@@S|@ac_default_prefix@:>@
1272: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273: @<:@PREFIX@:>@
1274:
1275: By default, \`make install' will install all the files in
1276: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278: for instance \`--prefix=\$HOME'.
1279:
1280: For better control, use the options below.
1281:
1282: Fine tuning of the installation directories:
1283: --bindir=DIR user executables [EPREFIX/bin]
1284: --sbindir=DIR system admin executables [EPREFIX/sbin]
1285: --libexecdir=DIR program executables [EPREFIX/libexec]
1286: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289: --libdir=DIR object code libraries [EPREFIX/lib]
1290: --includedir=DIR C header files [PREFIX/include]
1291: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294: --infodir=DIR info documentation [DATAROOTDIR/info]
1295: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296: --mandir=DIR man documentation [DATAROOTDIR/man]
1297: --docdir=DIR documentation root @<:@DATAROOTDIR/doc/srogue@:>@
1298: --htmldir=DIR html documentation [DOCDIR]
1299: --dvidir=DIR dvi documentation [DOCDIR]
1300: --pdfdir=DIR pdf documentation [DOCDIR]
1301: --psdir=DIR ps documentation [DOCDIR]
1302: _ACEOF
1303:
1304: cat <<\_ACEOF
1305: _ACEOF
1306: fi
1307:
1308: if test -n "$ac_init_help"; then
1309: case $ac_init_help in
1310: short | recursive ) echo "Configuration of SRogue 9.0:";;
1311: esac
1312: cat <<\_ACEOF
1313:
1314: Optional Features:
1315: --disable-option-checking ignore unrecognized --enable/--with options
1316: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1317: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1318: --enable-setgid=NAME install executable as setgid with group ownership of
1319: NAME @<:@default=no@:>@
1320: --enable-scorefile=SCOREFILE
1321: enable scoreboard with given filename
1322: --enable-logfile=LOGFILE
1323: enable logfile with given filename
1324: --enable-savedir=SAVEDIR
1325: enable systemwide location for saved games
1326: --enable-wizardmode enable availability of wizard mode @<:@default=no@:>@
1327:
1328: Optional Packages:
1329: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1330: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1331: --with-ncurses Force the use of ncurses over curses
1332: --with-program-name=NAME
1333: alternate executable name
1334:
1335: Some influential environment variables:
1336: CC C compiler command
1337: CFLAGS C compiler flags
1338: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1339: nonstandard directory <lib dir>
1340: LIBS libraries to pass to the linker, e.g. -l<library>
1341: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1342: you have headers in a nonstandard directory <include dir>
1343: CPP C preprocessor
1344:
1345: Use these variables to override the choices made by `configure' or to help
1346: it to find libraries and programs with nonstandard names/locations.
1347:
1348: Report bugs to <yendor@rogueforge.net>.
1349: _ACEOF
1350: ac_status=$?
1351: fi
1352:
1353: if test "$ac_init_help" = "recursive"; then
1354: # If there are subdirs, report their specific --help.
1355: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1356: test -d "$ac_dir" ||
1357: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1358: continue
1359: ac_builddir=.
1360:
1361: case "$ac_dir" in
1362: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1363: *)
1364: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1365: # A ".." for each directory in $ac_dir_suffix.
1366: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1367: case $ac_top_builddir_sub in
1368: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1370: esac ;;
1371: esac
1372: ac_abs_top_builddir=$ac_pwd
1373: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1374: # for backward compatibility:
1375: ac_top_builddir=$ac_top_build_prefix
1376:
1377: case $srcdir in
1378: .) # We are building in place.
1379: ac_srcdir=.
1380: ac_top_srcdir=$ac_top_builddir_sub
1381: ac_abs_top_srcdir=$ac_pwd ;;
1382: [\\/]* | ?:[\\/]* ) # Absolute name.
1383: ac_srcdir=$srcdir$ac_dir_suffix;
1384: ac_top_srcdir=$srcdir
1385: ac_abs_top_srcdir=$srcdir ;;
1386: *) # Relative name.
1387: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1388: ac_top_srcdir=$ac_top_build_prefix$srcdir
1389: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1390: esac
1391: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1392:
1393: cd "$ac_dir" || { ac_status=$?; continue; }
1394: # Check for guested configure.
1395: if test -f "$ac_srcdir/configure.gnu"; then
1396: echo &&
1397: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1398: elif test -f "$ac_srcdir/configure"; then
1399: echo &&
1400: $SHELL "$ac_srcdir/configure" --help=recursive
1401: else
1402: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1403: fi || ac_status=$?
1404: cd "$ac_pwd" || { ac_status=$?; break; }
1405: done
1406: fi
1407:
1408: test -n "$ac_init_help" && exit $ac_status
1409: if $ac_init_version; then
1410: cat <<\_ACEOF
1411: SRogue configure 9.0
1412: generated by GNU Autoconf 2.69
1413:
1414: Copyright (C) 2012 Free Software Foundation, Inc.
1415: This configure script is free software; the Free Software Foundation
1416: gives unlimited permission to copy, distribute and modify it.
1417: _ACEOF
1418: exit
1419: fi
1420:
1421: ## ------------------------ ##
1422: ## Autoconf initialization. ##
1423: ## ------------------------ ##
1424:
1425: @%:@ ac_fn_c_try_compile LINENO
1426: @%:@ --------------------------
1427: @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1428: ac_fn_c_try_compile ()
1429: {
1430: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1431: rm -f conftest.$ac_objext
1432: if { { ac_try="$ac_compile"
1433: case "(($ac_try" in
1434: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1435: *) ac_try_echo=$ac_try;;
1436: esac
1437: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1438: $as_echo "$ac_try_echo"; } >&5
1439: (eval "$ac_compile") 2>conftest.err
1440: ac_status=$?
1441: if test -s conftest.err; then
1442: grep -v '^ *+' conftest.err >conftest.er1
1443: cat conftest.er1 >&5
1444: mv -f conftest.er1 conftest.err
1445: fi
1446: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1447: test $ac_status = 0; } && {
1448: test -z "$ac_c_werror_flag" ||
1449: test ! -s conftest.err
1450: } && test -s conftest.$ac_objext; then :
1451: ac_retval=0
1452: else
1453: $as_echo "$as_me: failed program was:" >&5
1454: sed 's/^/| /' conftest.$ac_ext >&5
1455:
1456: ac_retval=1
1457: fi
1458: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1459: as_fn_set_status $ac_retval
1460:
1461: } @%:@ ac_fn_c_try_compile
1462:
1463: @%:@ ac_fn_c_try_link LINENO
1464: @%:@ -----------------------
1465: @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1466: ac_fn_c_try_link ()
1467: {
1468: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1469: rm -f conftest.$ac_objext conftest$ac_exeext
1470: if { { ac_try="$ac_link"
1471: case "(($ac_try" in
1472: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1473: *) ac_try_echo=$ac_try;;
1474: esac
1475: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1476: $as_echo "$ac_try_echo"; } >&5
1477: (eval "$ac_link") 2>conftest.err
1478: ac_status=$?
1479: if test -s conftest.err; then
1480: grep -v '^ *+' conftest.err >conftest.er1
1481: cat conftest.er1 >&5
1482: mv -f conftest.er1 conftest.err
1483: fi
1484: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1485: test $ac_status = 0; } && {
1486: test -z "$ac_c_werror_flag" ||
1487: test ! -s conftest.err
1488: } && test -s conftest$ac_exeext && {
1489: test "$cross_compiling" = yes ||
1490: test -x conftest$ac_exeext
1491: }; then :
1492: ac_retval=0
1493: else
1494: $as_echo "$as_me: failed program was:" >&5
1495: sed 's/^/| /' conftest.$ac_ext >&5
1496:
1497: ac_retval=1
1498: fi
1499: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1500: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1501: # interfere with the next link command; also delete a directory that is
1502: # left behind by Apple's compiler. We do this before executing the actions.
1503: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1504: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1505: as_fn_set_status $ac_retval
1506:
1507: } @%:@ ac_fn_c_try_link
1508:
1509: @%:@ ac_fn_c_try_cpp LINENO
1510: @%:@ ----------------------
1511: @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1512: ac_fn_c_try_cpp ()
1513: {
1514: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1515: if { { ac_try="$ac_cpp conftest.$ac_ext"
1516: case "(($ac_try" in
1517: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518: *) ac_try_echo=$ac_try;;
1519: esac
1520: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521: $as_echo "$ac_try_echo"; } >&5
1522: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1523: ac_status=$?
1524: if test -s conftest.err; then
1525: grep -v '^ *+' conftest.err >conftest.er1
1526: cat conftest.er1 >&5
1527: mv -f conftest.er1 conftest.err
1528: fi
1529: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530: test $ac_status = 0; } > conftest.i && {
1531: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1532: test ! -s conftest.err
1533: }; then :
1534: ac_retval=0
1535: else
1536: $as_echo "$as_me: failed program was:" >&5
1537: sed 's/^/| /' conftest.$ac_ext >&5
1538:
1539: ac_retval=1
1540: fi
1541: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542: as_fn_set_status $ac_retval
1543:
1544: } @%:@ ac_fn_c_try_cpp
1545:
1546: @%:@ ac_fn_c_try_run LINENO
1547: @%:@ ----------------------
1548: @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1549: @%:@ that executables *can* be run.
1550: ac_fn_c_try_run ()
1551: {
1552: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553: if { { ac_try="$ac_link"
1554: case "(($ac_try" in
1555: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556: *) ac_try_echo=$ac_try;;
1557: esac
1558: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559: $as_echo "$ac_try_echo"; } >&5
1560: (eval "$ac_link") 2>&5
1561: ac_status=$?
1562: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1564: { { case "(($ac_try" in
1565: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566: *) ac_try_echo=$ac_try;;
1567: esac
1568: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569: $as_echo "$ac_try_echo"; } >&5
1570: (eval "$ac_try") 2>&5
1571: ac_status=$?
1572: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573: test $ac_status = 0; }; }; then :
1574: ac_retval=0
1575: else
1576: $as_echo "$as_me: program exited with status $ac_status" >&5
1577: $as_echo "$as_me: failed program was:" >&5
1578: sed 's/^/| /' conftest.$ac_ext >&5
1579:
1580: ac_retval=$ac_status
1581: fi
1582: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1583: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584: as_fn_set_status $ac_retval
1585:
1586: } @%:@ ac_fn_c_try_run
1587:
1588: @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1589: @%:@ -------------------------------------------------------
1590: @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1591: @%:@ the include files in INCLUDES and setting the cache variable VAR
1592: @%:@ accordingly.
1593: ac_fn_c_check_header_mongrel ()
1594: {
1595: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596: if eval \${$3+:} false; then :
1597: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598: $as_echo_n "checking for $2... " >&6; }
1599: if eval \${$3+:} false; then :
1600: $as_echo_n "(cached) " >&6
1601: fi
1602: eval ac_res=\$$3
1603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604: $as_echo "$ac_res" >&6; }
1605: else
1606: # Is the header compilable?
1607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1608: $as_echo_n "checking $2 usability... " >&6; }
1609: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610: /* end confdefs.h. */
1611: $4
1612: @%:@include <$2>
1613: _ACEOF
1614: if ac_fn_c_try_compile "$LINENO"; then :
1615: ac_header_compiler=yes
1616: else
1617: ac_header_compiler=no
1618: fi
1619: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1620: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1621: $as_echo "$ac_header_compiler" >&6; }
1622:
1623: # Is the header present?
1624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1625: $as_echo_n "checking $2 presence... " >&6; }
1626: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627: /* end confdefs.h. */
1628: @%:@include <$2>
1629: _ACEOF
1630: if ac_fn_c_try_cpp "$LINENO"; then :
1631: ac_header_preproc=yes
1632: else
1633: ac_header_preproc=no
1634: fi
1635: rm -f conftest.err conftest.i conftest.$ac_ext
1636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1637: $as_echo "$ac_header_preproc" >&6; }
1638:
1639: # So? What about this header?
1640: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1641: yes:no: )
1642: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1643: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1644: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1645: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1646: ;;
1647: no:yes:* )
1648: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1649: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1650: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1651: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1652: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1653: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1654: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1655: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1656: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1657: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658: ( $as_echo "## ------------------------------------ ##
1659: ## Report this to yendor@rogueforge.net ##
1660: ## ------------------------------------ ##"
1661: ) | sed "s/^/$as_me: WARNING: /" >&2
1662: ;;
1663: esac
1664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665: $as_echo_n "checking for $2... " >&6; }
1666: if eval \${$3+:} false; then :
1667: $as_echo_n "(cached) " >&6
1668: else
1669: eval "$3=\$ac_header_compiler"
1670: fi
1671: eval ac_res=\$$3
1672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673: $as_echo "$ac_res" >&6; }
1674: fi
1675: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676:
1677: } @%:@ ac_fn_c_check_header_mongrel
1678:
1679: @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1680: @%:@ -------------------------------------------------------
1681: @%:@ Tests whether HEADER exists and can be compiled using the include files in
1682: @%:@ INCLUDES, setting the cache variable VAR accordingly.
1683: ac_fn_c_check_header_compile ()
1684: {
1685: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687: $as_echo_n "checking for $2... " >&6; }
1688: if eval \${$3+:} false; then :
1689: $as_echo_n "(cached) " >&6
1690: else
1691: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692: /* end confdefs.h. */
1693: $4
1694: @%:@include <$2>
1695: _ACEOF
1696: if ac_fn_c_try_compile "$LINENO"; then :
1697: eval "$3=yes"
1698: else
1699: eval "$3=no"
1700: fi
1701: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702: fi
1703: eval ac_res=\$$3
1704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705: $as_echo "$ac_res" >&6; }
1706: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707:
1708: } @%:@ ac_fn_c_check_header_compile
1709:
1710: @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1711: @%:@ -------------------------------------------
1712: @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
1713: @%:@ variable VAR accordingly.
1714: ac_fn_c_check_type ()
1715: {
1716: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718: $as_echo_n "checking for $2... " >&6; }
1719: if eval \${$3+:} false; then :
1720: $as_echo_n "(cached) " >&6
1721: else
1722: eval "$3=no"
1723: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724: /* end confdefs.h. */
1725: $4
1726: int
1727: main ()
1728: {
1729: if (sizeof ($2))
1730: return 0;
1731: ;
1732: return 0;
1733: }
1734: _ACEOF
1735: if ac_fn_c_try_compile "$LINENO"; then :
1736: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737: /* end confdefs.h. */
1738: $4
1739: int
1740: main ()
1741: {
1742: if (sizeof (($2)))
1743: return 0;
1744: ;
1745: return 0;
1746: }
1747: _ACEOF
1748: if ac_fn_c_try_compile "$LINENO"; then :
1749:
1750: else
1751: eval "$3=yes"
1752: fi
1753: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754: fi
1755: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756: fi
1757: eval ac_res=\$$3
1758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759: $as_echo "$ac_res" >&6; }
1760: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761:
1762: } @%:@ ac_fn_c_check_type
1763:
1764: @%:@ ac_fn_c_check_func LINENO FUNC VAR
1765: @%:@ ----------------------------------
1766: @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1767: ac_fn_c_check_func ()
1768: {
1769: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771: $as_echo_n "checking for $2... " >&6; }
1772: if eval \${$3+:} false; then :
1773: $as_echo_n "(cached) " >&6
1774: else
1775: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776: /* end confdefs.h. */
1777: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1778: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1779: #define $2 innocuous_$2
1780:
1781: /* System header to define __stub macros and hopefully few prototypes,
1782: which can conflict with char $2 (); below.
1783: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1784: <limits.h> exists even on freestanding compilers. */
1785:
1786: #ifdef __STDC__
1787: # include <limits.h>
1788: #else
1789: # include <assert.h>
1790: #endif
1791:
1792: #undef $2
1793:
1794: /* Override any GCC internal prototype to avoid an error.
1795: Use char because int might match the return type of a GCC
1796: builtin and then its argument prototype would still apply. */
1797: #ifdef __cplusplus
1798: extern "C"
1799: #endif
1800: char $2 ();
1801: /* The GNU C library defines this for functions which it implements
1802: to always fail with ENOSYS. Some functions are actually named
1803: something starting with __ and the normal name is an alias. */
1804: #if defined __stub_$2 || defined __stub___$2
1805: choke me
1806: #endif
1807:
1808: int
1809: main ()
1810: {
1811: return $2 ();
1812: ;
1813: return 0;
1814: }
1815: _ACEOF
1816: if ac_fn_c_try_link "$LINENO"; then :
1817: eval "$3=yes"
1818: else
1819: eval "$3=no"
1820: fi
1821: rm -f core conftest.err conftest.$ac_objext \
1822: conftest$ac_exeext conftest.$ac_ext
1823: fi
1824: eval ac_res=\$$3
1825: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826: $as_echo "$ac_res" >&6; }
1827: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828:
1829: } @%:@ ac_fn_c_check_func
1830: cat >config.log <<_ACEOF
1831: This file contains any messages produced by compilers while
1832: running configure, to aid debugging if configure makes a mistake.
1833:
1834: It was created by SRogue $as_me 9.0, which was
1835: generated by GNU Autoconf 2.69. Invocation command line was
1836:
1837: $ $0 $@
1838:
1839: _ACEOF
1840: exec 5>>config.log
1841: {
1842: cat <<_ASUNAME
1843: ## --------- ##
1844: ## Platform. ##
1845: ## --------- ##
1846:
1847: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1848: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1849: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1850: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1851: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1852:
1853: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1854: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1855:
1856: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1857: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1858: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1859: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1860: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1861: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1862: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1863:
1864: _ASUNAME
1865:
1866: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867: for as_dir in $PATH
1868: do
1869: IFS=$as_save_IFS
1870: test -z "$as_dir" && as_dir=.
1871: $as_echo "PATH: $as_dir"
1872: done
1873: IFS=$as_save_IFS
1874:
1875: } >&5
1876:
1877: cat >&5 <<_ACEOF
1878:
1879:
1880: ## ----------- ##
1881: ## Core tests. ##
1882: ## ----------- ##
1883:
1884: _ACEOF
1885:
1886:
1887: # Keep a trace of the command line.
1888: # Strip out --no-create and --no-recursion so they do not pile up.
1889: # Strip out --silent because we don't want to record it for future runs.
1890: # Also quote any args containing shell meta-characters.
1891: # Make two passes to allow for proper duplicate-argument suppression.
1892: ac_configure_args=
1893: ac_configure_args0=
1894: ac_configure_args1=
1895: ac_must_keep_next=false
1896: for ac_pass in 1 2
1897: do
1898: for ac_arg
1899: do
1900: case $ac_arg in
1901: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1902: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1903: | -silent | --silent | --silen | --sile | --sil)
1904: continue ;;
1905: *\'*)
1906: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1907: esac
1908: case $ac_pass in
1909: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1910: 2)
1911: as_fn_append ac_configure_args1 " '$ac_arg'"
1912: if test $ac_must_keep_next = true; then
1913: ac_must_keep_next=false # Got value, back to normal.
1914: else
1915: case $ac_arg in
1916: *=* | --config-cache | -C | -disable-* | --disable-* \
1917: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1918: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1919: | -with-* | --with-* | -without-* | --without-* | --x)
1920: case "$ac_configure_args0 " in
1921: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1922: esac
1923: ;;
1924: -* ) ac_must_keep_next=true ;;
1925: esac
1926: fi
1927: as_fn_append ac_configure_args " '$ac_arg'"
1928: ;;
1929: esac
1930: done
1931: done
1932: { ac_configure_args0=; unset ac_configure_args0;}
1933: { ac_configure_args1=; unset ac_configure_args1;}
1934:
1935: # When interrupted or exit'd, cleanup temporary files, and complete
1936: # config.log. We remove comments because anyway the quotes in there
1937: # would cause problems or look ugly.
1938: # WARNING: Use '\'' to represent an apostrophe within the trap.
1939: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1940: trap 'exit_status=$?
1941: # Save into config.log some information that might help in debugging.
1942: {
1943: echo
1944:
1945: $as_echo "## ---------------- ##
1946: ## Cache variables. ##
1947: ## ---------------- ##"
1948: echo
1949: # The following way of writing the cache mishandles newlines in values,
1950: (
1951: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1952: eval ac_val=\$$ac_var
1953: case $ac_val in #(
1954: *${as_nl}*)
1955: case $ac_var in #(
1956: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1957: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1958: esac
1959: case $ac_var in #(
1960: _ | IFS | as_nl) ;; #(
1961: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1962: *) { eval $ac_var=; unset $ac_var;} ;;
1963: esac ;;
1964: esac
1965: done
1966: (set) 2>&1 |
1967: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1968: *${as_nl}ac_space=\ *)
1969: sed -n \
1970: "s/'\''/'\''\\\\'\'''\''/g;
1971: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1972: ;; #(
1973: *)
1974: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1975: ;;
1976: esac |
1977: sort
1978: )
1979: echo
1980:
1981: $as_echo "## ----------------- ##
1982: ## Output variables. ##
1983: ## ----------------- ##"
1984: echo
1985: for ac_var in $ac_subst_vars
1986: do
1987: eval ac_val=\$$ac_var
1988: case $ac_val in
1989: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990: esac
1991: $as_echo "$ac_var='\''$ac_val'\''"
1992: done | sort
1993: echo
1994:
1995: if test -n "$ac_subst_files"; then
1996: $as_echo "## ------------------- ##
1997: ## File substitutions. ##
1998: ## ------------------- ##"
1999: echo
2000: for ac_var in $ac_subst_files
2001: do
2002: eval ac_val=\$$ac_var
2003: case $ac_val in
2004: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005: esac
2006: $as_echo "$ac_var='\''$ac_val'\''"
2007: done | sort
2008: echo
2009: fi
2010:
2011: if test -s confdefs.h; then
2012: $as_echo "## ----------- ##
2013: ## confdefs.h. ##
2014: ## ----------- ##"
2015: echo
2016: cat confdefs.h
2017: echo
2018: fi
2019: test "$ac_signal" != 0 &&
2020: $as_echo "$as_me: caught signal $ac_signal"
2021: $as_echo "$as_me: exit $exit_status"
2022: } >&5
2023: rm -f core *.core core.conftest.* &&
2024: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2025: exit $exit_status
2026: ' 0
2027: for ac_signal in 1 2 13 15; do
2028: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2029: done
2030: ac_signal=0
2031:
2032: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2033: rm -f -r conftest* confdefs.h
2034:
2035: $as_echo "/* confdefs.h */" > confdefs.h
2036:
2037: # Predefined preprocessor variables.
2038:
2039: cat >>confdefs.h <<_ACEOF
2040: @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2041: _ACEOF
2042:
2043: cat >>confdefs.h <<_ACEOF
2044: @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2045: _ACEOF
2046:
2047: cat >>confdefs.h <<_ACEOF
2048: @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2049: _ACEOF
2050:
2051: cat >>confdefs.h <<_ACEOF
2052: @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2053: _ACEOF
2054:
2055: cat >>confdefs.h <<_ACEOF
2056: @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2057: _ACEOF
2058:
2059: cat >>confdefs.h <<_ACEOF
2060: @%:@define PACKAGE_URL "$PACKAGE_URL"
2061: _ACEOF
2062:
2063:
2064: # Let the site file select an alternate cache file if it wants to.
2065: # Prefer an explicitly selected file to automatically selected ones.
2066: ac_site_file1=NONE
2067: ac_site_file2=NONE
2068: if test -n "$CONFIG_SITE"; then
2069: # We do not want a PATH search for config.site.
2070: case $CONFIG_SITE in @%:@((
2071: -*) ac_site_file1=./$CONFIG_SITE;;
2072: */*) ac_site_file1=$CONFIG_SITE;;
2073: *) ac_site_file1=./$CONFIG_SITE;;
2074: esac
2075: elif test "x$prefix" != xNONE; then
2076: ac_site_file1=$prefix/share/config.site
2077: ac_site_file2=$prefix/etc/config.site
2078: else
2079: ac_site_file1=$ac_default_prefix/share/config.site
2080: ac_site_file2=$ac_default_prefix/etc/config.site
2081: fi
2082: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2083: do
2084: test "x$ac_site_file" = xNONE && continue
2085: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2086: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2087: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2088: sed 's/^/| /' "$ac_site_file" >&5
2089: . "$ac_site_file" \
2090: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092: as_fn_error $? "failed to load site script $ac_site_file
2093: See \`config.log' for more details" "$LINENO" 5; }
2094: fi
2095: done
2096:
2097: if test -r "$cache_file"; then
2098: # Some versions of bash will fail to source /dev/null (special files
2099: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2100: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2101: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2102: $as_echo "$as_me: loading cache $cache_file" >&6;}
2103: case $cache_file in
2104: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2105: *) . "./$cache_file";;
2106: esac
2107: fi
2108: else
2109: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2110: $as_echo "$as_me: creating cache $cache_file" >&6;}
2111: >$cache_file
2112: fi
2113:
2114: # Check that the precious variables saved in the cache have kept the same
2115: # value.
2116: ac_cache_corrupted=false
2117: for ac_var in $ac_precious_vars; do
2118: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2119: eval ac_new_set=\$ac_env_${ac_var}_set
2120: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2121: eval ac_new_val=\$ac_env_${ac_var}_value
2122: case $ac_old_set,$ac_new_set in
2123: set,)
2124: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2125: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2126: ac_cache_corrupted=: ;;
2127: ,set)
2128: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2129: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2130: ac_cache_corrupted=: ;;
2131: ,);;
2132: *)
2133: if test "x$ac_old_val" != "x$ac_new_val"; then
2134: # differences in whitespace do not lead to failure.
2135: ac_old_val_w=`echo x $ac_old_val`
2136: ac_new_val_w=`echo x $ac_new_val`
2137: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2138: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2139: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2140: ac_cache_corrupted=:
2141: else
2142: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2143: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2144: eval $ac_var=\$ac_old_val
2145: fi
2146: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2147: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2148: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2149: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2150: fi;;
2151: esac
2152: # Pass precious variables to config.status.
2153: if test "$ac_new_set" = set; then
2154: case $ac_new_val in
2155: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156: *) ac_arg=$ac_var=$ac_new_val ;;
2157: esac
2158: case " $ac_configure_args " in
2159: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2160: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2161: esac
2162: fi
2163: done
2164: if $ac_cache_corrupted; then
2165: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2166: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2167: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2168: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2169: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2170: fi
2171: ## -------------------- ##
2172: ## Main body of script. ##
2173: ## -------------------- ##
2174:
2175: ac_ext=c
2176: ac_cpp='$CPP $CPPFLAGS'
2177: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2180:
2181:
2182: ac_config_headers="$ac_config_headers config.h"
2183:
2184: ac_config_files="$ac_config_files Makefile"
2185:
2186:
2187: # Checks for programs.
2188: ac_ext=c
2189: ac_cpp='$CPP $CPPFLAGS'
2190: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2193: if test -n "$ac_tool_prefix"; then
2194: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2195: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2196: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2197: $as_echo_n "checking for $ac_word... " >&6; }
2198: if ${ac_cv_prog_CC+:} false; then :
2199: $as_echo_n "(cached) " >&6
2200: else
2201: if test -n "$CC"; then
2202: ac_cv_prog_CC="$CC" # Let the user override the test.
2203: else
2204: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205: for as_dir in $PATH
2206: do
2207: IFS=$as_save_IFS
2208: test -z "$as_dir" && as_dir=.
2209: for ac_exec_ext in '' $ac_executable_extensions; do
2210: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2212: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2213: break 2
2214: fi
2215: done
2216: done
2217: IFS=$as_save_IFS
2218:
2219: fi
2220: fi
2221: CC=$ac_cv_prog_CC
2222: if test -n "$CC"; then
2223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2224: $as_echo "$CC" >&6; }
2225: else
2226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2227: $as_echo "no" >&6; }
2228: fi
2229:
2230:
2231: fi
2232: if test -z "$ac_cv_prog_CC"; then
2233: ac_ct_CC=$CC
2234: # Extract the first word of "gcc", so it can be a program name with args.
2235: set dummy gcc; ac_word=$2
2236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2237: $as_echo_n "checking for $ac_word... " >&6; }
2238: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2239: $as_echo_n "(cached) " >&6
2240: else
2241: if test -n "$ac_ct_CC"; then
2242: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2243: else
2244: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245: for as_dir in $PATH
2246: do
2247: IFS=$as_save_IFS
2248: test -z "$as_dir" && as_dir=.
2249: for ac_exec_ext in '' $ac_executable_extensions; do
2250: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251: ac_cv_prog_ac_ct_CC="gcc"
2252: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2253: break 2
2254: fi
2255: done
2256: done
2257: IFS=$as_save_IFS
2258:
2259: fi
2260: fi
2261: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2262: if test -n "$ac_ct_CC"; then
2263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2264: $as_echo "$ac_ct_CC" >&6; }
2265: else
2266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2267: $as_echo "no" >&6; }
2268: fi
2269:
2270: if test "x$ac_ct_CC" = x; then
2271: CC=""
2272: else
2273: case $cross_compiling:$ac_tool_warned in
2274: yes:)
2275: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2276: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2277: ac_tool_warned=yes ;;
2278: esac
2279: CC=$ac_ct_CC
2280: fi
2281: else
2282: CC="$ac_cv_prog_CC"
2283: fi
2284:
2285: if test -z "$CC"; then
2286: if test -n "$ac_tool_prefix"; then
2287: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2288: set dummy ${ac_tool_prefix}cc; ac_word=$2
2289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2290: $as_echo_n "checking for $ac_word... " >&6; }
2291: if ${ac_cv_prog_CC+:} false; then :
2292: $as_echo_n "(cached) " >&6
2293: else
2294: if test -n "$CC"; then
2295: ac_cv_prog_CC="$CC" # Let the user override the test.
2296: else
2297: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298: for as_dir in $PATH
2299: do
2300: IFS=$as_save_IFS
2301: test -z "$as_dir" && as_dir=.
2302: for ac_exec_ext in '' $ac_executable_extensions; do
2303: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304: ac_cv_prog_CC="${ac_tool_prefix}cc"
2305: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2306: break 2
2307: fi
2308: done
2309: done
2310: IFS=$as_save_IFS
2311:
2312: fi
2313: fi
2314: CC=$ac_cv_prog_CC
2315: if test -n "$CC"; then
2316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2317: $as_echo "$CC" >&6; }
2318: else
2319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2320: $as_echo "no" >&6; }
2321: fi
2322:
2323:
2324: fi
2325: fi
2326: if test -z "$CC"; then
2327: # Extract the first word of "cc", so it can be a program name with args.
2328: set dummy cc; ac_word=$2
2329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2330: $as_echo_n "checking for $ac_word... " >&6; }
2331: if ${ac_cv_prog_CC+:} false; then :
2332: $as_echo_n "(cached) " >&6
2333: else
2334: if test -n "$CC"; then
2335: ac_cv_prog_CC="$CC" # Let the user override the test.
2336: else
2337: ac_prog_rejected=no
2338: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339: for as_dir in $PATH
2340: do
2341: IFS=$as_save_IFS
2342: test -z "$as_dir" && as_dir=.
2343: for ac_exec_ext in '' $ac_executable_extensions; do
2344: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2345: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2346: ac_prog_rejected=yes
2347: continue
2348: fi
2349: ac_cv_prog_CC="cc"
2350: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2351: break 2
2352: fi
2353: done
2354: done
2355: IFS=$as_save_IFS
2356:
2357: if test $ac_prog_rejected = yes; then
2358: # We found a bogon in the path, so make sure we never use it.
2359: set dummy $ac_cv_prog_CC
2360: shift
2361: if test $@%:@ != 0; then
2362: # We chose a different compiler from the bogus one.
2363: # However, it has the same basename, so the bogon will be chosen
2364: # first if we set CC to just the basename; use the full file name.
2365: shift
2366: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2367: fi
2368: fi
2369: fi
2370: fi
2371: CC=$ac_cv_prog_CC
2372: if test -n "$CC"; then
2373: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2374: $as_echo "$CC" >&6; }
2375: else
2376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2377: $as_echo "no" >&6; }
2378: fi
2379:
2380:
2381: fi
2382: if test -z "$CC"; then
2383: if test -n "$ac_tool_prefix"; then
2384: for ac_prog in cl.exe
2385: do
2386: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2387: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2389: $as_echo_n "checking for $ac_word... " >&6; }
2390: if ${ac_cv_prog_CC+:} false; then :
2391: $as_echo_n "(cached) " >&6
2392: else
2393: if test -n "$CC"; then
2394: ac_cv_prog_CC="$CC" # Let the user override the test.
2395: else
2396: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397: for as_dir in $PATH
2398: do
2399: IFS=$as_save_IFS
2400: test -z "$as_dir" && as_dir=.
2401: for ac_exec_ext in '' $ac_executable_extensions; do
2402: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2404: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2405: break 2
2406: fi
2407: done
2408: done
2409: IFS=$as_save_IFS
2410:
2411: fi
2412: fi
2413: CC=$ac_cv_prog_CC
2414: if test -n "$CC"; then
2415: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2416: $as_echo "$CC" >&6; }
2417: else
2418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2419: $as_echo "no" >&6; }
2420: fi
2421:
2422:
2423: test -n "$CC" && break
2424: done
2425: fi
2426: if test -z "$CC"; then
2427: ac_ct_CC=$CC
2428: for ac_prog in cl.exe
2429: do
2430: # Extract the first word of "$ac_prog", so it can be a program name with args.
2431: set dummy $ac_prog; ac_word=$2
2432: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433: $as_echo_n "checking for $ac_word... " >&6; }
2434: if ${ac_cv_prog_ac_ct_CC+:} false; then :
2435: $as_echo_n "(cached) " >&6
2436: else
2437: if test -n "$ac_ct_CC"; then
2438: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2439: else
2440: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441: for as_dir in $PATH
2442: do
2443: IFS=$as_save_IFS
2444: test -z "$as_dir" && as_dir=.
2445: for ac_exec_ext in '' $ac_executable_extensions; do
2446: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447: ac_cv_prog_ac_ct_CC="$ac_prog"
2448: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2449: break 2
2450: fi
2451: done
2452: done
2453: IFS=$as_save_IFS
2454:
2455: fi
2456: fi
2457: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2458: if test -n "$ac_ct_CC"; then
2459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2460: $as_echo "$ac_ct_CC" >&6; }
2461: else
2462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463: $as_echo "no" >&6; }
2464: fi
2465:
2466:
2467: test -n "$ac_ct_CC" && break
2468: done
2469:
2470: if test "x$ac_ct_CC" = x; then
2471: CC=""
2472: else
2473: case $cross_compiling:$ac_tool_warned in
2474: yes:)
2475: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2476: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2477: ac_tool_warned=yes ;;
2478: esac
2479: CC=$ac_ct_CC
2480: fi
2481: fi
2482:
2483: fi
2484:
2485:
2486: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2487: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2488: as_fn_error $? "no acceptable C compiler found in \$PATH
2489: See \`config.log' for more details" "$LINENO" 5; }
2490:
2491: # Provide some information about the compiler.
2492: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2493: set X $ac_compile
2494: ac_compiler=$2
2495: for ac_option in --version -v -V -qversion; do
2496: { { ac_try="$ac_compiler $ac_option >&5"
2497: case "(($ac_try" in
2498: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499: *) ac_try_echo=$ac_try;;
2500: esac
2501: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502: $as_echo "$ac_try_echo"; } >&5
2503: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2504: ac_status=$?
2505: if test -s conftest.err; then
2506: sed '10a\
2507: ... rest of stderr output deleted ...
2508: 10q' conftest.err >conftest.er1
2509: cat conftest.er1 >&5
2510: fi
2511: rm -f conftest.er1 conftest.err
2512: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2513: test $ac_status = 0; }
2514: done
2515:
2516: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517: /* end confdefs.h. */
2518:
2519: int
2520: main ()
2521: {
2522:
2523: ;
2524: return 0;
2525: }
2526: _ACEOF
2527: ac_clean_files_save=$ac_clean_files
2528: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2529: # Try to create an executable without -o first, disregard a.out.
2530: # It will help us diagnose broken compilers, and finding out an intuition
2531: # of exeext.
2532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2533: $as_echo_n "checking whether the C compiler works... " >&6; }
2534: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2535:
2536: # The possible output files:
2537: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2538:
2539: ac_rmfiles=
2540: for ac_file in $ac_files
2541: do
2542: case $ac_file in
2543: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2544: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2545: esac
2546: done
2547: rm -f $ac_rmfiles
2548:
2549: if { { ac_try="$ac_link_default"
2550: case "(($ac_try" in
2551: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552: *) ac_try_echo=$ac_try;;
2553: esac
2554: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2555: $as_echo "$ac_try_echo"; } >&5
2556: (eval "$ac_link_default") 2>&5
2557: ac_status=$?
2558: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2559: test $ac_status = 0; }; then :
2560: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2561: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2562: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2563: # so that the user can short-circuit this test for compilers unknown to
2564: # Autoconf.
2565: for ac_file in $ac_files ''
2566: do
2567: test -f "$ac_file" || continue
2568: case $ac_file in
2569: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2570: ;;
2571: [ab].out )
2572: # We found the default executable, but exeext='' is most
2573: # certainly right.
2574: break;;
2575: *.* )
2576: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2577: then :; else
2578: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2579: fi
2580: # We set ac_cv_exeext here because the later test for it is not
2581: # safe: cross compilers may not add the suffix if given an `-o'
2582: # argument, so we may need to know it at that point already.
2583: # Even if this section looks crufty: it has the advantage of
2584: # actually working.
2585: break;;
2586: * )
2587: break;;
2588: esac
2589: done
2590: test "$ac_cv_exeext" = no && ac_cv_exeext=
2591:
2592: else
2593: ac_file=''
2594: fi
2595: if test -z "$ac_file"; then :
2596: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597: $as_echo "no" >&6; }
2598: $as_echo "$as_me: failed program was:" >&5
2599: sed 's/^/| /' conftest.$ac_ext >&5
2600:
2601: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603: as_fn_error 77 "C compiler cannot create executables
2604: See \`config.log' for more details" "$LINENO" 5; }
2605: else
2606: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2607: $as_echo "yes" >&6; }
2608: fi
2609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2610: $as_echo_n "checking for C compiler default output file name... " >&6; }
2611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2612: $as_echo "$ac_file" >&6; }
2613: ac_exeext=$ac_cv_exeext
2614:
2615: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2616: ac_clean_files=$ac_clean_files_save
2617: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2618: $as_echo_n "checking for suffix of executables... " >&6; }
2619: if { { ac_try="$ac_link"
2620: case "(($ac_try" in
2621: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622: *) ac_try_echo=$ac_try;;
2623: esac
2624: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2625: $as_echo "$ac_try_echo"; } >&5
2626: (eval "$ac_link") 2>&5
2627: ac_status=$?
2628: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2629: test $ac_status = 0; }; then :
2630: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2631: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2632: # work properly (i.e., refer to `conftest.exe'), while it won't with
2633: # `rm'.
2634: for ac_file in conftest.exe conftest conftest.*; do
2635: test -f "$ac_file" || continue
2636: case $ac_file in
2637: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2638: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2639: break;;
2640: * ) break;;
2641: esac
2642: done
2643: else
2644: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2645: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2647: See \`config.log' for more details" "$LINENO" 5; }
2648: fi
2649: rm -f conftest conftest$ac_cv_exeext
2650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2651: $as_echo "$ac_cv_exeext" >&6; }
2652:
2653: rm -f conftest.$ac_ext
2654: EXEEXT=$ac_cv_exeext
2655: ac_exeext=$EXEEXT
2656: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2657: /* end confdefs.h. */
2658: @%:@include <stdio.h>
2659: int
2660: main ()
2661: {
2662: FILE *f = fopen ("conftest.out", "w");
2663: return ferror (f) || fclose (f) != 0;
2664:
2665: ;
2666: return 0;
2667: }
2668: _ACEOF
2669: ac_clean_files="$ac_clean_files conftest.out"
2670: # Check that the compiler produces executables we can run. If not, either
2671: # the compiler is broken, or we cross compile.
2672: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2673: $as_echo_n "checking whether we are cross compiling... " >&6; }
2674: if test "$cross_compiling" != yes; then
2675: { { ac_try="$ac_link"
2676: case "(($ac_try" in
2677: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678: *) ac_try_echo=$ac_try;;
2679: esac
2680: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2681: $as_echo "$ac_try_echo"; } >&5
2682: (eval "$ac_link") 2>&5
2683: ac_status=$?
2684: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2685: test $ac_status = 0; }
2686: if { ac_try='./conftest$ac_cv_exeext'
2687: { { case "(($ac_try" in
2688: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689: *) ac_try_echo=$ac_try;;
2690: esac
2691: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692: $as_echo "$ac_try_echo"; } >&5
2693: (eval "$ac_try") 2>&5
2694: ac_status=$?
2695: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2696: test $ac_status = 0; }; }; then
2697: cross_compiling=no
2698: else
2699: if test "$cross_compiling" = maybe; then
2700: cross_compiling=yes
2701: else
2702: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704: as_fn_error $? "cannot run C compiled programs.
2705: If you meant to cross compile, use \`--host'.
2706: See \`config.log' for more details" "$LINENO" 5; }
2707: fi
2708: fi
2709: fi
2710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2711: $as_echo "$cross_compiling" >&6; }
2712:
2713: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2714: ac_clean_files=$ac_clean_files_save
2715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2716: $as_echo_n "checking for suffix of object files... " >&6; }
2717: if ${ac_cv_objext+:} false; then :
2718: $as_echo_n "(cached) " >&6
2719: else
2720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721: /* end confdefs.h. */
2722:
2723: int
2724: main ()
2725: {
2726:
2727: ;
2728: return 0;
2729: }
2730: _ACEOF
2731: rm -f conftest.o conftest.obj
2732: if { { ac_try="$ac_compile"
2733: case "(($ac_try" in
2734: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735: *) ac_try_echo=$ac_try;;
2736: esac
2737: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2738: $as_echo "$ac_try_echo"; } >&5
2739: (eval "$ac_compile") 2>&5
2740: ac_status=$?
2741: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2742: test $ac_status = 0; }; then :
2743: for ac_file in conftest.o conftest.obj conftest.*; do
2744: test -f "$ac_file" || continue;
2745: case $ac_file in
2746: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2747: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2748: break;;
2749: esac
2750: done
2751: else
2752: $as_echo "$as_me: failed program was:" >&5
2753: sed 's/^/| /' conftest.$ac_ext >&5
2754:
2755: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757: as_fn_error $? "cannot compute suffix of object files: cannot compile
2758: See \`config.log' for more details" "$LINENO" 5; }
2759: fi
2760: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2761: fi
2762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2763: $as_echo "$ac_cv_objext" >&6; }
2764: OBJEXT=$ac_cv_objext
2765: ac_objext=$OBJEXT
2766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2767: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2768: if ${ac_cv_c_compiler_gnu+:} false; then :
2769: $as_echo_n "(cached) " >&6
2770: else
2771: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772: /* end confdefs.h. */
2773:
2774: int
2775: main ()
2776: {
2777: #ifndef __GNUC__
2778: choke me
2779: #endif
2780:
2781: ;
2782: return 0;
2783: }
2784: _ACEOF
2785: if ac_fn_c_try_compile "$LINENO"; then :
2786: ac_compiler_gnu=yes
2787: else
2788: ac_compiler_gnu=no
2789: fi
2790: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2792:
2793: fi
2794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2795: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2796: if test $ac_compiler_gnu = yes; then
2797: GCC=yes
2798: else
2799: GCC=
2800: fi
2801: ac_test_CFLAGS=${CFLAGS+set}
2802: ac_save_CFLAGS=$CFLAGS
2803: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2804: $as_echo_n "checking whether $CC accepts -g... " >&6; }
2805: if ${ac_cv_prog_cc_g+:} false; then :
2806: $as_echo_n "(cached) " >&6
2807: else
2808: ac_save_c_werror_flag=$ac_c_werror_flag
2809: ac_c_werror_flag=yes
2810: ac_cv_prog_cc_g=no
2811: CFLAGS="-g"
2812: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813: /* end confdefs.h. */
2814:
2815: int
2816: main ()
2817: {
2818:
2819: ;
2820: return 0;
2821: }
2822: _ACEOF
2823: if ac_fn_c_try_compile "$LINENO"; then :
2824: ac_cv_prog_cc_g=yes
2825: else
2826: CFLAGS=""
2827: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828: /* end confdefs.h. */
2829:
2830: int
2831: main ()
2832: {
2833:
2834: ;
2835: return 0;
2836: }
2837: _ACEOF
2838: if ac_fn_c_try_compile "$LINENO"; then :
2839:
2840: else
2841: ac_c_werror_flag=$ac_save_c_werror_flag
2842: CFLAGS="-g"
2843: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844: /* end confdefs.h. */
2845:
2846: int
2847: main ()
2848: {
2849:
2850: ;
2851: return 0;
2852: }
2853: _ACEOF
2854: if ac_fn_c_try_compile "$LINENO"; then :
2855: ac_cv_prog_cc_g=yes
2856: fi
2857: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858: fi
2859: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2860: fi
2861: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862: ac_c_werror_flag=$ac_save_c_werror_flag
2863: fi
2864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2865: $as_echo "$ac_cv_prog_cc_g" >&6; }
2866: if test "$ac_test_CFLAGS" = set; then
2867: CFLAGS=$ac_save_CFLAGS
2868: elif test $ac_cv_prog_cc_g = yes; then
2869: if test "$GCC" = yes; then
2870: CFLAGS="-g -O2"
2871: else
2872: CFLAGS="-g"
2873: fi
2874: else
2875: if test "$GCC" = yes; then
2876: CFLAGS="-O2"
2877: else
2878: CFLAGS=
2879: fi
2880: fi
2881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2882: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2883: if ${ac_cv_prog_cc_c89+:} false; then :
2884: $as_echo_n "(cached) " >&6
2885: else
2886: ac_cv_prog_cc_c89=no
2887: ac_save_CC=$CC
2888: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889: /* end confdefs.h. */
2890: #include <stdarg.h>
2891: #include <stdio.h>
2892: struct stat;
2893: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2894: struct buf { int x; };
2895: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2896: static char *e (p, i)
2897: char **p;
2898: int i;
2899: {
2900: return p[i];
2901: }
2902: static char *f (char * (*g) (char **, int), char **p, ...)
2903: {
2904: char *s;
2905: va_list v;
2906: va_start (v,p);
2907: s = g (p, va_arg (v,int));
2908: va_end (v);
2909: return s;
2910: }
2911:
2912: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2913: function prototypes and stuff, but not '\xHH' hex character constants.
2914: These don't provoke an error unfortunately, instead are silently treated
2915: as 'x'. The following induces an error, until -std is added to get
2916: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2917: array size at least. It's necessary to write '\x00'==0 to get something
2918: that's true only with -std. */
2919: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2920:
2921: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2922: inside strings and character constants. */
2923: #define FOO(x) 'x'
2924: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2925:
2926: int test (int i, double x);
2927: struct s1 {int (*f) (int a);};
2928: struct s2 {int (*f) (double a);};
2929: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2930: int argc;
2931: char **argv;
2932: int
2933: main ()
2934: {
2935: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2936: ;
2937: return 0;
2938: }
2939: _ACEOF
2940: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2941: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2942: do
2943: CC="$ac_save_CC $ac_arg"
2944: if ac_fn_c_try_compile "$LINENO"; then :
2945: ac_cv_prog_cc_c89=$ac_arg
2946: fi
2947: rm -f core conftest.err conftest.$ac_objext
2948: test "x$ac_cv_prog_cc_c89" != "xno" && break
2949: done
2950: rm -f conftest.$ac_ext
2951: CC=$ac_save_CC
2952:
2953: fi
2954: # AC_CACHE_VAL
2955: case "x$ac_cv_prog_cc_c89" in
2956: x)
2957: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2958: $as_echo "none needed" >&6; } ;;
2959: xno)
2960: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2961: $as_echo "unsupported" >&6; } ;;
2962: *)
2963: CC="$CC $ac_cv_prog_cc_c89"
2964: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2965: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2966: esac
2967: if test "x$ac_cv_prog_cc_c89" != xno; then :
2968:
2969: fi
2970:
2971: ac_ext=c
2972: ac_cpp='$CPP $CPPFLAGS'
2973: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2974: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2975: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2976:
2977: # Checks for libraries.
2978:
2979:
2980: @%:@ Check whether --with-ncurses was given.
2981: if test "${with_ncurses+set}" = set; then :
2982: withval=$with_ncurses;
2983: fi
2984:
2985: mp_save_LIBS="$LIBS"
2986: CURSES_LIB=""
2987: if test "$with_ncurses" != yes
2988: then
2989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working curses" >&5
2990: $as_echo_n "checking for working curses... " >&6; }
2991: if ${mp_cv_curses+:} false; then :
2992: $as_echo_n "(cached) " >&6
2993: else
2994: LIBS="$LIBS -lcurses"
2995: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2996: /* end confdefs.h. */
2997: #include <curses.h>
2998: int
2999: main ()
3000: {
3001: chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr();
3002: ;
3003: return 0;
3004: }
3005: _ACEOF
3006: if ac_fn_c_try_link "$LINENO"; then :
3007: mp_cv_curses=yes
3008: else
3009: mp_cv_curses=no
3010: fi
3011: rm -f core conftest.err conftest.$ac_objext \
3012: conftest$ac_exeext conftest.$ac_ext
3013: fi
3014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mp_cv_curses" >&5
3015: $as_echo "$mp_cv_curses" >&6; }
3016: if test "$mp_cv_curses" = yes
3017: then
3018:
3019: $as_echo "@%:@define HAVE_CURSES_H 1" >>confdefs.h
3020:
3021: #AC_DEFINE(HAVE_CURSES_H)
3022: CURSES_LIB="-lcurses"
3023: fi
3024: fi
3025: if test ! "$CURSES_LIB"
3026: then
3027: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working ncurses" >&5
3028: $as_echo_n "checking for working ncurses... " >&6; }
3029: if ${mp_cv_ncurses+:} false; then :
3030: $as_echo_n "(cached) " >&6
3031: else
3032: LIBS="$mp_save_LIBS -lncurses"
3033: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034: /* end confdefs.h. */
3035: #include <ncurses.h>
3036: int
3037: main ()
3038: {
3039: chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr();
3040: ;
3041: return 0;
3042: }
3043: _ACEOF
3044: if ac_fn_c_try_link "$LINENO"; then :
3045: mp_cv_ncurses=yes
3046: else
3047: mp_cv_ncurses=no
3048: fi
3049: rm -f core conftest.err conftest.$ac_objext \
3050: conftest$ac_exeext conftest.$ac_ext
3051: fi
3052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mp_cv_ncurses" >&5
3053: $as_echo "$mp_cv_ncurses" >&6; }
3054: if test "$mp_cv_ncurses" = yes
3055: then
3056:
3057: $as_echo "@%:@define HAVE_NCURSES_H 1" >>confdefs.h
3058:
3059: CURSES_LIB="-lncurses"
3060: fi
3061: fi
3062: if test ! "$CURSES_LIB"
3063: then
3064: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working pdcurses" >&5
3065: $as_echo_n "checking for working pdcurses... " >&6; }
3066: if ${mp_cv_pdcurses+:} false; then :
3067: $as_echo_n "(cached) " >&6
3068: else
3069: LIBS="$mp_save_LIBS -lpdcurses"
3070: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071: /* end confdefs.h. */
3072: #include <curses.h>
3073: int
3074: main ()
3075: {
3076: chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr();
3077: ;
3078: return 0;
3079: }
3080: _ACEOF
3081: if ac_fn_c_try_link "$LINENO"; then :
3082: mp_cv_pdcurses=yes
3083: else
3084: mp_cv_pdcurses=no
3085: fi
3086: rm -f core conftest.err conftest.$ac_objext \
3087: conftest$ac_exeext conftest.$ac_ext
3088: fi
3089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mp_cv_pdcurses" >&5
3090: $as_echo "$mp_cv_pdcurses" >&6; }
3091: if test "$mp_cv_pdcurses" = yes
3092: then
3093:
3094: $as_echo "@%:@define HAVE_CURSES_H 1" >>confdefs.h
3095:
3096: CURSES_LIB="-lpdcurses"
3097: fi
3098: fi
3099: if test ! "$CURSES_LIB"
3100: then
3101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working pdcur" >&5
3102: $as_echo_n "checking for working pdcur... " >&6; }
3103: if ${mp_cv_pdcur+:} false; then :
3104: $as_echo_n "(cached) " >&6
3105: else
3106: LIBS="$mp_save_LIBS -lpdcur"
3107: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108: /* end confdefs.h. */
3109: #include <curses.h>
3110: int
3111: main ()
3112: {
3113: chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr();
3114: ;
3115: return 0;
3116: }
3117: _ACEOF
3118: if ac_fn_c_try_link "$LINENO"; then :
3119: mp_cv_pdcur=yes
3120: else
3121: mp_cv_pdcur=no
3122: fi
3123: rm -f core conftest.err conftest.$ac_objext \
3124: conftest$ac_exeext conftest.$ac_ext
3125: fi
3126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mp_cv_pdcur" >&5
3127: $as_echo "$mp_cv_pdcur" >&6; }
3128: if test "$mp_cv_pdcur" = yes
3129: then
3130:
3131: $as_echo "@%:@define HAVE_CURSES_H 1" >>confdefs.h
3132:
3133: CURSES_LIB="-lpdcur"
3134: fi
3135: fi
3136: if test ! "$CURSES_LIB"
3137: then
3138: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working peer pdcurses" >&5
3139: $as_echo_n "checking for working peer pdcurses... " >&6; }
3140: if ${mp_cv_lpdcurses+:} false; then :
3141: $as_echo_n "(cached) " >&6
3142: else
3143: LIBS="$mp_save_LIBS ../pdcurses/pdcurses.a"
3144: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145: /* end confdefs.h. */
3146: #include "../pdcurses/curses.h"
3147: int
3148: main ()
3149: {
3150: chtype a; int b=A_STANDOUT, c=KEY_LEFT; initscr();
3151: ;
3152: return 0;
3153: }
3154: _ACEOF
3155: if ac_fn_c_try_link "$LINENO"; then :
3156: mp_cv_lpdcurses=yes
3157: else
3158: mp_cv_lpdcurses=no
3159: fi
3160: rm -f core conftest.err conftest.$ac_objext \
3161: conftest$ac_exeext conftest.$ac_ext
3162: fi
3163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mp_cv_lpdcurses" >&5
3164: $as_echo "$mp_cv_lpdcurses" >&6; }
3165: if test "$mp_cv_lpdcurses" = yes
3166: then
3167:
3168: $as_echo "@%:@define HAVE_CURSES_H 1" >>confdefs.h
3169:
3170: CURSES_LIB="../pdcurses/pdcurses.a"
3171:
3172: if test "x$CPPFLAGS" = "x"; then
3173: test "x$silent" != "xyes" && echo " setting CPPFLAGS to \""-I../pdcurses"\""
3174: CPPFLAGS=""-I../pdcurses""
3175: else
3176: apr_addto_bugger=""-I../pdcurses""
3177: for i in $apr_addto_bugger; do
3178: apr_addto_duplicate="0"
3179: for j in $CPPFLAGS; do
3180: if test "x$i" = "x$j"; then
3181: apr_addto_duplicate="1"
3182: break
3183: fi
3184: done
3185: if test $apr_addto_duplicate = "0"; then
3186: test "x$silent" != "xyes" && echo " adding \"$i\" to CPPFLAGS"
3187: CPPFLAGS="$CPPFLAGS $i"
3188: fi
3189: done
3190: fi
3191:
3192: fi
3193: fi
3194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESCDELAY variable" >&5
3195: $as_echo_n "checking for ESCDELAY variable... " >&6; }
3196: if ${mc_cv_ncurses_escdelay+:} false; then :
3197: $as_echo_n "(cached) " >&6
3198: else
3199: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200: /* end confdefs.h. */
3201:
3202: int
3203: main ()
3204: {
3205:
3206: extern int ESCDELAY;
3207: ESCDELAY = 0;
3208:
3209: ;
3210: return 0;
3211: }
3212: _ACEOF
3213: if ac_fn_c_try_link "$LINENO"; then :
3214: mc_cv_ncurses_escdelay=yes
3215: else
3216: mc_cv_ncurses_escdelay=no
3217: fi
3218: rm -f core conftest.err conftest.$ac_objext \
3219: conftest$ac_exeext conftest.$ac_ext
3220:
3221: fi
3222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mc_cv_ncurses_escdelay" >&5
3223: $as_echo "$mc_cv_ncurses_escdelay" >&6; }
3224: if test "$mc_cv_ncurses_escdelay" = yes; then
3225:
3226: $as_echo "@%:@define HAVE_ESCDELAY 1" >>confdefs.h
3227:
3228: fi
3229: if test ! "$CURSES_LIB" ; then
3230: LIBS="$mp_save_LIBS"
3231: fi
3232:
3233: # Checks for header files.
3234: ac_ext=c
3235: ac_cpp='$CPP $CPPFLAGS'
3236: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3240: $as_echo_n "checking how to run the C preprocessor... " >&6; }
3241: # On Suns, sometimes $CPP names a directory.
3242: if test -n "$CPP" && test -d "$CPP"; then
3243: CPP=
3244: fi
3245: if test -z "$CPP"; then
3246: if ${ac_cv_prog_CPP+:} false; then :
3247: $as_echo_n "(cached) " >&6
3248: else
3249: # Double quotes because CPP needs to be expanded
3250: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3251: do
3252: ac_preproc_ok=false
3253: for ac_c_preproc_warn_flag in '' yes
3254: do
3255: # Use a header file that comes with gcc, so configuring glibc
3256: # with a fresh cross-compiler works.
3257: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258: # <limits.h> exists even on freestanding compilers.
3259: # On the NeXT, cc -E runs the code through the compiler's parser,
3260: # not just through cpp. "Syntax error" is here to catch this case.
3261: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262: /* end confdefs.h. */
3263: @%:@ifdef __STDC__
3264: @%:@ include <limits.h>
3265: @%:@else
3266: @%:@ include <assert.h>
3267: @%:@endif
3268: Syntax error
3269: _ACEOF
3270: if ac_fn_c_try_cpp "$LINENO"; then :
3271:
3272: else
3273: # Broken: fails on valid input.
3274: continue
3275: fi
3276: rm -f conftest.err conftest.i conftest.$ac_ext
3277:
3278: # OK, works on sane cases. Now check whether nonexistent headers
3279: # can be detected and how.
3280: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281: /* end confdefs.h. */
3282: @%:@include <ac_nonexistent.h>
3283: _ACEOF
3284: if ac_fn_c_try_cpp "$LINENO"; then :
3285: # Broken: success on invalid input.
3286: continue
3287: else
3288: # Passes both tests.
3289: ac_preproc_ok=:
3290: break
3291: fi
3292: rm -f conftest.err conftest.i conftest.$ac_ext
3293:
3294: done
3295: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3296: rm -f conftest.i conftest.err conftest.$ac_ext
3297: if $ac_preproc_ok; then :
3298: break
3299: fi
3300:
3301: done
3302: ac_cv_prog_CPP=$CPP
3303:
3304: fi
3305: CPP=$ac_cv_prog_CPP
3306: else
3307: ac_cv_prog_CPP=$CPP
3308: fi
3309: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3310: $as_echo "$CPP" >&6; }
3311: ac_preproc_ok=false
3312: for ac_c_preproc_warn_flag in '' yes
3313: do
3314: # Use a header file that comes with gcc, so configuring glibc
3315: # with a fresh cross-compiler works.
3316: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317: # <limits.h> exists even on freestanding compilers.
3318: # On the NeXT, cc -E runs the code through the compiler's parser,
3319: # not just through cpp. "Syntax error" is here to catch this case.
3320: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321: /* end confdefs.h. */
3322: @%:@ifdef __STDC__
3323: @%:@ include <limits.h>
3324: @%:@else
3325: @%:@ include <assert.h>
3326: @%:@endif
3327: Syntax error
3328: _ACEOF
3329: if ac_fn_c_try_cpp "$LINENO"; then :
3330:
3331: else
3332: # Broken: fails on valid input.
3333: continue
3334: fi
3335: rm -f conftest.err conftest.i conftest.$ac_ext
3336:
3337: # OK, works on sane cases. Now check whether nonexistent headers
3338: # can be detected and how.
3339: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340: /* end confdefs.h. */
3341: @%:@include <ac_nonexistent.h>
3342: _ACEOF
3343: if ac_fn_c_try_cpp "$LINENO"; then :
3344: # Broken: success on invalid input.
3345: continue
3346: else
3347: # Passes both tests.
3348: ac_preproc_ok=:
3349: break
3350: fi
3351: rm -f conftest.err conftest.i conftest.$ac_ext
3352:
3353: done
3354: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3355: rm -f conftest.i conftest.err conftest.$ac_ext
3356: if $ac_preproc_ok; then :
3357:
3358: else
3359: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3362: See \`config.log' for more details" "$LINENO" 5; }
3363: fi
3364:
3365: ac_ext=c
3366: ac_cpp='$CPP $CPPFLAGS'
3367: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370:
3371:
3372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3373: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3374: if ${ac_cv_path_GREP+:} false; then :
3375: $as_echo_n "(cached) " >&6
3376: else
3377: if test -z "$GREP"; then
3378: ac_path_GREP_found=false
3379: # Loop through the user's path and test for each of PROGNAME-LIST
3380: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3382: do
3383: IFS=$as_save_IFS
3384: test -z "$as_dir" && as_dir=.
3385: for ac_prog in grep ggrep; do
3386: for ac_exec_ext in '' $ac_executable_extensions; do
3387: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3388: as_fn_executable_p "$ac_path_GREP" || continue
3389: # Check for GNU ac_path_GREP and select it if it is found.
3390: # Check for GNU $ac_path_GREP
3391: case `"$ac_path_GREP" --version 2>&1` in
3392: *GNU*)
3393: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3394: *)
3395: ac_count=0
3396: $as_echo_n 0123456789 >"conftest.in"
3397: while :
3398: do
3399: cat "conftest.in" "conftest.in" >"conftest.tmp"
3400: mv "conftest.tmp" "conftest.in"
3401: cp "conftest.in" "conftest.nl"
3402: $as_echo 'GREP' >> "conftest.nl"
3403: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3404: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3405: as_fn_arith $ac_count + 1 && ac_count=$as_val
3406: if test $ac_count -gt ${ac_path_GREP_max-0}; then
3407: # Best one so far, save it but keep looking for a better one
3408: ac_cv_path_GREP="$ac_path_GREP"
3409: ac_path_GREP_max=$ac_count
3410: fi
3411: # 10*(2^10) chars as input seems more than enough
3412: test $ac_count -gt 10 && break
3413: done
3414: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3415: esac
3416:
3417: $ac_path_GREP_found && break 3
3418: done
3419: done
3420: done
3421: IFS=$as_save_IFS
3422: if test -z "$ac_cv_path_GREP"; then
3423: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3424: fi
3425: else
3426: ac_cv_path_GREP=$GREP
3427: fi
3428:
3429: fi
3430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3431: $as_echo "$ac_cv_path_GREP" >&6; }
3432: GREP="$ac_cv_path_GREP"
3433:
3434:
3435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3436: $as_echo_n "checking for egrep... " >&6; }
3437: if ${ac_cv_path_EGREP+:} false; then :
3438: $as_echo_n "(cached) " >&6
3439: else
3440: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3441: then ac_cv_path_EGREP="$GREP -E"
3442: else
3443: if test -z "$EGREP"; then
3444: ac_path_EGREP_found=false
3445: # Loop through the user's path and test for each of PROGNAME-LIST
3446: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3448: do
3449: IFS=$as_save_IFS
3450: test -z "$as_dir" && as_dir=.
3451: for ac_prog in egrep; do
3452: for ac_exec_ext in '' $ac_executable_extensions; do
3453: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3454: as_fn_executable_p "$ac_path_EGREP" || continue
3455: # Check for GNU ac_path_EGREP and select it if it is found.
3456: # Check for GNU $ac_path_EGREP
3457: case `"$ac_path_EGREP" --version 2>&1` in
3458: *GNU*)
3459: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3460: *)
3461: ac_count=0
3462: $as_echo_n 0123456789 >"conftest.in"
3463: while :
3464: do
3465: cat "conftest.in" "conftest.in" >"conftest.tmp"
3466: mv "conftest.tmp" "conftest.in"
3467: cp "conftest.in" "conftest.nl"
3468: $as_echo 'EGREP' >> "conftest.nl"
3469: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3470: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3471: as_fn_arith $ac_count + 1 && ac_count=$as_val
3472: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3473: # Best one so far, save it but keep looking for a better one
3474: ac_cv_path_EGREP="$ac_path_EGREP"
3475: ac_path_EGREP_max=$ac_count
3476: fi
3477: # 10*(2^10) chars as input seems more than enough
3478: test $ac_count -gt 10 && break
3479: done
3480: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3481: esac
3482:
3483: $ac_path_EGREP_found && break 3
3484: done
3485: done
3486: done
3487: IFS=$as_save_IFS
3488: if test -z "$ac_cv_path_EGREP"; then
3489: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3490: fi
3491: else
3492: ac_cv_path_EGREP=$EGREP
3493: fi
3494:
3495: fi
3496: fi
3497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3498: $as_echo "$ac_cv_path_EGREP" >&6; }
3499: EGREP="$ac_cv_path_EGREP"
3500:
3501:
3502: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3503: $as_echo_n "checking for ANSI C header files... " >&6; }
3504: if ${ac_cv_header_stdc+:} false; then :
3505: $as_echo_n "(cached) " >&6
3506: else
3507: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508: /* end confdefs.h. */
3509: #include <stdlib.h>
3510: #include <stdarg.h>
3511: #include <string.h>
3512: #include <float.h>
3513:
3514: int
3515: main ()
3516: {
3517:
3518: ;
3519: return 0;
3520: }
3521: _ACEOF
3522: if ac_fn_c_try_compile "$LINENO"; then :
3523: ac_cv_header_stdc=yes
3524: else
3525: ac_cv_header_stdc=no
3526: fi
3527: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528:
3529: if test $ac_cv_header_stdc = yes; then
3530: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3531: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532: /* end confdefs.h. */
3533: #include <string.h>
3534:
3535: _ACEOF
3536: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3537: $EGREP "memchr" >/dev/null 2>&1; then :
3538:
3539: else
3540: ac_cv_header_stdc=no
3541: fi
3542: rm -f conftest*
3543:
3544: fi
3545:
3546: if test $ac_cv_header_stdc = yes; then
3547: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3548: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549: /* end confdefs.h. */
3550: #include <stdlib.h>
3551:
3552: _ACEOF
3553: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3554: $EGREP "free" >/dev/null 2>&1; then :
3555:
3556: else
3557: ac_cv_header_stdc=no
3558: fi
3559: rm -f conftest*
3560:
3561: fi
3562:
3563: if test $ac_cv_header_stdc = yes; then
3564: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3565: if test "$cross_compiling" = yes; then :
3566: :
3567: else
3568: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569: /* end confdefs.h. */
3570: #include <ctype.h>
3571: #include <stdlib.h>
3572: #if ((' ' & 0x0FF) == 0x020)
3573: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3574: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3575: #else
3576: # define ISLOWER(c) \
3577: (('a' <= (c) && (c) <= 'i') \
3578: || ('j' <= (c) && (c) <= 'r') \
3579: || ('s' <= (c) && (c) <= 'z'))
3580: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3581: #endif
3582:
3583: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3584: int
3585: main ()
3586: {
3587: int i;
3588: for (i = 0; i < 256; i++)
3589: if (XOR (islower (i), ISLOWER (i))
3590: || toupper (i) != TOUPPER (i))
3591: return 2;
3592: return 0;
3593: }
3594: _ACEOF
3595: if ac_fn_c_try_run "$LINENO"; then :
3596:
3597: else
3598: ac_cv_header_stdc=no
3599: fi
3600: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3601: conftest.$ac_objext conftest.beam conftest.$ac_ext
3602: fi
3603:
3604: fi
3605: fi
3606: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3607: $as_echo "$ac_cv_header_stdc" >&6; }
3608: if test $ac_cv_header_stdc = yes; then
3609:
3610: $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
3611:
3612: fi
3613:
3614: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3615: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3616: inttypes.h stdint.h unistd.h
3617: do :
3618: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3619: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3620: "
3621: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3622: cat >>confdefs.h <<_ACEOF
3623: @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3624: _ACEOF
3625:
3626: fi
3627:
3628: done
3629:
3630:
3631: for ac_header in arpa/inet.h pwd.h errno.h fcntl.h limits.h nlist.h stdlib.h string.h sys/ioctl.h termios.h unistd.h term.h ncurses/term.h process.h
3632: do :
3633: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3634: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3635: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3636: cat >>confdefs.h <<_ACEOF
3637: @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3638: _ACEOF
3639:
3640: fi
3641:
3642: done
3643:
3644:
3645: # Checks for typedefs, structures, and compiler characteristics.
3646: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
3647: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
3648: if ${ac_cv_type_uid_t+:} false; then :
3649: $as_echo_n "(cached) " >&6
3650: else
3651: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652: /* end confdefs.h. */
3653: #include <sys/types.h>
3654:
3655: _ACEOF
3656: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3657: $EGREP "uid_t" >/dev/null 2>&1; then :
3658: ac_cv_type_uid_t=yes
3659: else
3660: ac_cv_type_uid_t=no
3661: fi
3662: rm -f conftest*
3663:
3664: fi
3665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
3666: $as_echo "$ac_cv_type_uid_t" >&6; }
3667: if test $ac_cv_type_uid_t = no; then
3668:
3669: $as_echo "@%:@define uid_t int" >>confdefs.h
3670:
3671:
3672: $as_echo "@%:@define gid_t int" >>confdefs.h
3673:
3674: fi
3675:
3676: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3677: if test "x$ac_cv_type_size_t" = xyes; then :
3678:
3679: else
3680:
3681: cat >>confdefs.h <<_ACEOF
3682: @%:@define size_t unsigned int
3683: _ACEOF
3684:
3685: fi
3686:
3687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
3688: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
3689: if ${ac_cv_struct_tm+:} false; then :
3690: $as_echo_n "(cached) " >&6
3691: else
3692: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693: /* end confdefs.h. */
3694: #include <sys/types.h>
3695: #include <time.h>
3696:
3697: int
3698: main ()
3699: {
3700: struct tm tm;
3701: int *p = &tm.tm_sec;
3702: return !p;
3703: ;
3704: return 0;
3705: }
3706: _ACEOF
3707: if ac_fn_c_try_compile "$LINENO"; then :
3708: ac_cv_struct_tm=time.h
3709: else
3710: ac_cv_struct_tm=sys/time.h
3711: fi
3712: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713: fi
3714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
3715: $as_echo "$ac_cv_struct_tm" >&6; }
3716: if test $ac_cv_struct_tm = sys/time.h; then
3717:
3718: $as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
3719:
3720: fi
3721:
3722: # Checks for library functions.
3723: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
3724: if test "x$ac_cv_type_pid_t" = xyes; then :
3725:
3726: else
3727:
3728: cat >>confdefs.h <<_ACEOF
3729: @%:@define pid_t int
3730: _ACEOF
3731:
3732: fi
3733:
3734: for ac_header in vfork.h
3735: do :
3736: ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
3737: if test "x$ac_cv_header_vfork_h" = xyes; then :
3738: cat >>confdefs.h <<_ACEOF
3739: @%:@define HAVE_VFORK_H 1
3740: _ACEOF
3741:
3742: fi
3743:
3744: done
3745:
3746: for ac_func in fork vfork
3747: do :
3748: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3749: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3750: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3751: cat >>confdefs.h <<_ACEOF
3752: @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3753: _ACEOF
3754:
3755: fi
3756: done
3757:
3758: if test "x$ac_cv_func_fork" = xyes; then
3759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
3760: $as_echo_n "checking for working fork... " >&6; }
3761: if ${ac_cv_func_fork_works+:} false; then :
3762: $as_echo_n "(cached) " >&6
3763: else
3764: if test "$cross_compiling" = yes; then :
3765: ac_cv_func_fork_works=cross
3766: else
3767: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768: /* end confdefs.h. */
3769: $ac_includes_default
3770: int
3771: main ()
3772: {
3773:
3774: /* By Ruediger Kuhlmann. */
3775: return fork () < 0;
3776:
3777: ;
3778: return 0;
3779: }
3780: _ACEOF
3781: if ac_fn_c_try_run "$LINENO"; then :
3782: ac_cv_func_fork_works=yes
3783: else
3784: ac_cv_func_fork_works=no
3785: fi
3786: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3787: conftest.$ac_objext conftest.beam conftest.$ac_ext
3788: fi
3789:
3790: fi
3791: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
3792: $as_echo "$ac_cv_func_fork_works" >&6; }
3793:
3794: else
3795: ac_cv_func_fork_works=$ac_cv_func_fork
3796: fi
3797: if test "x$ac_cv_func_fork_works" = xcross; then
3798: case $host in
3799: *-*-amigaos* | *-*-msdosdjgpp*)
3800: # Override, as these systems have only a dummy fork() stub
3801: ac_cv_func_fork_works=no
3802: ;;
3803: *)
3804: ac_cv_func_fork_works=yes
3805: ;;
3806: esac
3807: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
3808: $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
3809: fi
3810: ac_cv_func_vfork_works=$ac_cv_func_vfork
3811: if test "x$ac_cv_func_vfork" = xyes; then
3812: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
3813: $as_echo_n "checking for working vfork... " >&6; }
3814: if ${ac_cv_func_vfork_works+:} false; then :
3815: $as_echo_n "(cached) " >&6
3816: else
3817: if test "$cross_compiling" = yes; then :
3818: ac_cv_func_vfork_works=cross
3819: else
3820: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821: /* end confdefs.h. */
3822: /* Thanks to Paul Eggert for this test. */
3823: $ac_includes_default
3824: #include <sys/wait.h>
3825: #ifdef HAVE_VFORK_H
3826: # include <vfork.h>
3827: #endif
3828: /* On some sparc systems, changes by the child to local and incoming
3829: argument registers are propagated back to the parent. The compiler
3830: is told about this with #include <vfork.h>, but some compilers
3831: (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
3832: static variable whose address is put into a register that is
3833: clobbered by the vfork. */
3834: static void
3835: #ifdef __cplusplus
3836: sparc_address_test (int arg)
3837: # else
3838: sparc_address_test (arg) int arg;
3839: #endif
3840: {
3841: static pid_t child;
3842: if (!child) {
3843: child = vfork ();
3844: if (child < 0) {
3845: perror ("vfork");
3846: _exit(2);
3847: }
3848: if (!child) {
3849: arg = getpid();
3850: write(-1, "", 0);
3851: _exit (arg);
3852: }
3853: }
3854: }
3855:
3856: int
3857: main ()
3858: {
3859: pid_t parent = getpid ();
3860: pid_t child;
3861:
3862: sparc_address_test (0);
3863:
3864: child = vfork ();
3865:
3866: if (child == 0) {
3867: /* Here is another test for sparc vfork register problems. This
3868: test uses lots of local variables, at least as many local
3869: variables as main has allocated so far including compiler
3870: temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
3871: 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
3872: reuse the register of parent for one of the local variables,
3873: since it will think that parent can't possibly be used any more
3874: in this routine. Assigning to the local variable will thus
3875: munge parent in the parent process. */
3876: pid_t
3877: p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
3878: p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
3879: /* Convince the compiler that p..p7 are live; otherwise, it might
3880: use the same hardware register for all 8 local variables. */
3881: if (p != p1 || p != p2 || p != p3 || p != p4
3882: || p != p5 || p != p6 || p != p7)
3883: _exit(1);
3884:
3885: /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
3886: from child file descriptors. If the child closes a descriptor
3887: before it execs or exits, this munges the parent's descriptor
3888: as well. Test for this by closing stdout in the child. */
3889: _exit(close(fileno(stdout)) != 0);
3890: } else {
3891: int status;
3892: struct stat st;
3893:
3894: while (wait(&status) != child)
3895: ;
3896: return (
3897: /* Was there some problem with vforking? */
3898: child < 0
3899:
3900: /* Did the child fail? (This shouldn't happen.) */
3901: || status
3902:
3903: /* Did the vfork/compiler bug occur? */
3904: || parent != getpid()
3905:
3906: /* Did the file descriptor bug occur? */
3907: || fstat(fileno(stdout), &st) != 0
3908: );
3909: }
3910: }
3911: _ACEOF
3912: if ac_fn_c_try_run "$LINENO"; then :
3913: ac_cv_func_vfork_works=yes
3914: else
3915: ac_cv_func_vfork_works=no
3916: fi
3917: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3918: conftest.$ac_objext conftest.beam conftest.$ac_ext
3919: fi
3920:
3921: fi
3922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
3923: $as_echo "$ac_cv_func_vfork_works" >&6; }
3924:
3925: fi;
3926: if test "x$ac_cv_func_fork_works" = xcross; then
3927: ac_cv_func_vfork_works=$ac_cv_func_vfork
3928: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
3929: $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
3930: fi
3931:
3932: if test "x$ac_cv_func_vfork_works" = xyes; then
3933:
3934: $as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h
3935:
3936: else
3937:
3938: $as_echo "@%:@define vfork fork" >>confdefs.h
3939:
3940: fi
3941: if test "x$ac_cv_func_fork_works" = xyes; then
3942:
3943: $as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h
3944:
3945: fi
3946:
3947: if test $ac_cv_c_compiler_gnu = yes; then
3948: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3949: $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3950: if ${ac_cv_prog_gcc_traditional+:} false; then :
3951: $as_echo_n "(cached) " >&6
3952: else
3953: ac_pattern="Autoconf.*'x'"
3954: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955: /* end confdefs.h. */
3956: #include <sgtty.h>
3957: Autoconf TIOCGETP
3958: _ACEOF
3959: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3960: $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3961: ac_cv_prog_gcc_traditional=yes
3962: else
3963: ac_cv_prog_gcc_traditional=no
3964: fi
3965: rm -f conftest*
3966:
3967:
3968: if test $ac_cv_prog_gcc_traditional = no; then
3969: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970: /* end confdefs.h. */
3971: #include <termio.h>
3972: Autoconf TCGETA
3973: _ACEOF
3974: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3975: $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3976: ac_cv_prog_gcc_traditional=yes
3977: fi
3978: rm -f conftest*
3979:
3980: fi
3981: fi
3982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3983: $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3984: if test $ac_cv_prog_gcc_traditional = yes; then
3985: CC="$CC -traditional"
3986: fi
3987: fi
3988:
3989: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
3990: $as_echo_n "checking return type of signal handlers... " >&6; }
3991: if ${ac_cv_type_signal+:} false; then :
3992: $as_echo_n "(cached) " >&6
3993: else
3994: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995: /* end confdefs.h. */
3996: #include <sys/types.h>
3997: #include <signal.h>
3998:
3999: int
4000: main ()
4001: {
4002: return *(signal (0, 0)) (0) == 1;
4003: ;
4004: return 0;
4005: }
4006: _ACEOF
4007: if ac_fn_c_try_compile "$LINENO"; then :
4008: ac_cv_type_signal=int
4009: else
4010: ac_cv_type_signal=void
4011: fi
4012: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013: fi
4014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4015: $as_echo "$ac_cv_type_signal" >&6; }
4016:
4017: cat >>confdefs.h <<_ACEOF
4018: @%:@define RETSIGTYPE $ac_cv_type_signal
4019: _ACEOF
4020:
4021:
4022: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
4023: $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
4024: if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
4025: $as_echo_n "(cached) " >&6
4026: else
4027: rm -f conftest.sym conftest.file
4028: echo >conftest.file
4029: if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
4030: if test "$cross_compiling" = yes; then :
4031: ac_cv_func_lstat_dereferences_slashed_symlink=no
4032: else
4033: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034: /* end confdefs.h. */
4035: $ac_includes_default
4036: int
4037: main ()
4038: {
4039: struct stat sbuf;
4040: /* Linux will dereference the symlink and fail, as required by POSIX.
4041: That is better in the sense that it means we will not
4042: have to compile and use the lstat wrapper. */
4043: return lstat ("conftest.sym/", &sbuf) == 0;
4044: ;
4045: return 0;
4046: }
4047: _ACEOF
4048: if ac_fn_c_try_run "$LINENO"; then :
4049: ac_cv_func_lstat_dereferences_slashed_symlink=yes
4050: else
4051: ac_cv_func_lstat_dereferences_slashed_symlink=no
4052: fi
4053: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4054: conftest.$ac_objext conftest.beam conftest.$ac_ext
4055: fi
4056:
4057: else
4058: # If the `ln -s' command failed, then we probably don't even
4059: # have an lstat function.
4060: ac_cv_func_lstat_dereferences_slashed_symlink=no
4061: fi
4062: rm -f conftest.sym conftest.file
4063:
4064: fi
4065: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
4066: $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
4067:
4068: test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
4069:
4070: cat >>confdefs.h <<_ACEOF
4071: @%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
4072: _ACEOF
4073:
4074:
4075: if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
4076: case " $LIB@&t@OBJS " in
4077: *" lstat.$ac_objext "* ) ;;
4078: *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
4079: ;;
4080: esac
4081:
4082: fi
4083:
4084: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
4085: $as_echo_n "checking whether stat accepts an empty string... " >&6; }
4086: if ${ac_cv_func_stat_empty_string_bug+:} false; then :
4087: $as_echo_n "(cached) " >&6
4088: else
4089: if test "$cross_compiling" = yes; then :
4090: ac_cv_func_stat_empty_string_bug=yes
4091: else
4092: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093: /* end confdefs.h. */
4094: $ac_includes_default
4095: int
4096: main ()
4097: {
4098: struct stat sbuf;
4099: return stat ("", &sbuf) == 0;
4100: ;
4101: return 0;
4102: }
4103: _ACEOF
4104: if ac_fn_c_try_run "$LINENO"; then :
4105: ac_cv_func_stat_empty_string_bug=no
4106: else
4107: ac_cv_func_stat_empty_string_bug=yes
4108: fi
4109: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4110: conftest.$ac_objext conftest.beam conftest.$ac_ext
4111: fi
4112:
4113: fi
4114: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
4115: $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
4116: if test $ac_cv_func_stat_empty_string_bug = yes; then
4117: case " $LIB@&t@OBJS " in
4118: *" stat.$ac_objext "* ) ;;
4119: *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
4120: ;;
4121: esac
4122:
4123:
4124: cat >>confdefs.h <<_ACEOF
4125: @%:@define HAVE_STAT_EMPTY_STRING_BUG 1
4126: _ACEOF
4127:
4128: fi
4129:
4130: for ac_func in vprintf
4131: do :
4132: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
4133: if test "x$ac_cv_func_vprintf" = xyes; then :
4134: cat >>confdefs.h <<_ACEOF
4135: @%:@define HAVE_VPRINTF 1
4136: _ACEOF
4137:
4138: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
4139: if test "x$ac_cv_func__doprnt" = xyes; then :
4140:
4141: $as_echo "@%:@define HAVE_DOPRNT 1" >>confdefs.h
4142:
4143: fi
4144:
4145: fi
4146: done
4147:
4148:
4149: for ac_func in erasechar killchar alarm getpass memset setenv strchr nlist _spawnl spawnl getpwuid loadav getloadavg strerror setgid setuid getuid getgid lrand48 random srand48 srandom
4150: do :
4151: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4152: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4153: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4154: cat >>confdefs.h <<_ACEOF
4155: @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4156: _ACEOF
4157:
4158: fi
4159: done
4160:
4161: ac_aux_dir=
4162: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4163: if test -f "$ac_dir/install-sh"; then
4164: ac_aux_dir=$ac_dir
4165: ac_install_sh="$ac_aux_dir/install-sh -c"
4166: break
4167: elif test -f "$ac_dir/install.sh"; then
4168: ac_aux_dir=$ac_dir
4169: ac_install_sh="$ac_aux_dir/install.sh -c"
4170: break
4171: elif test -f "$ac_dir/shtool"; then
4172: ac_aux_dir=$ac_dir
4173: ac_install_sh="$ac_aux_dir/shtool install -c"
4174: break
4175: fi
4176: done
4177: if test -z "$ac_aux_dir"; then
4178: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4179: fi
4180:
4181: # These three variables are undocumented and unsupported,
4182: # and are intended to be withdrawn in a future Autoconf release.
4183: # They can cause serious problems if a builder's source tree is in a directory
4184: # whose full name contains unusual characters.
4185: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4186: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4187: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4188:
4189:
4190: # Find a good install program. We prefer a C program (faster),
4191: # so one script is as good as another. But avoid the broken or
4192: # incompatible versions:
4193: # SysV /etc/install, /usr/sbin/install
4194: # SunOS /usr/etc/install
4195: # IRIX /sbin/install
4196: # AIX /bin/install
4197: # AmigaOS /C/install, which installs bootblocks on floppy discs
4198: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4199: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4200: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4201: # OS/2's system install, which has a completely different semantic
4202: # ./install, which can be erroneously created by make from ./install.sh.
4203: # Reject install programs that cannot install multiple files.
4204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4205: $as_echo_n "checking for a BSD-compatible install... " >&6; }
4206: if test -z "$INSTALL"; then
4207: if ${ac_cv_path_install+:} false; then :
4208: $as_echo_n "(cached) " >&6
4209: else
4210: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211: for as_dir in $PATH
4212: do
4213: IFS=$as_save_IFS
4214: test -z "$as_dir" && as_dir=.
4215: # Account for people who put trailing slashes in PATH elements.
4216: case $as_dir/ in @%:@((
4217: ./ | .// | /[cC]/* | \
4218: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4219: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4220: /usr/ucb/* ) ;;
4221: *)
4222: # OSF1 and SCO ODT 3.0 have their own names for install.
4223: # Don't use installbsd from OSF since it installs stuff as root
4224: # by default.
4225: for ac_prog in ginstall scoinst install; do
4226: for ac_exec_ext in '' $ac_executable_extensions; do
4227: if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4228: if test $ac_prog = install &&
4229: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4230: # AIX install. It has an incompatible calling convention.
4231: :
4232: elif test $ac_prog = install &&
4233: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4234: # program-specific install script used by HP pwplus--don't use.
4235: :
4236: else
4237: rm -rf conftest.one conftest.two conftest.dir
4238: echo one > conftest.one
4239: echo two > conftest.two
4240: mkdir conftest.dir
4241: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4242: test -s conftest.one && test -s conftest.two &&
4243: test -s conftest.dir/conftest.one &&
4244: test -s conftest.dir/conftest.two
4245: then
4246: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4247: break 3
4248: fi
4249: fi
4250: fi
4251: done
4252: done
4253: ;;
4254: esac
4255:
4256: done
4257: IFS=$as_save_IFS
4258:
4259: rm -rf conftest.one conftest.two conftest.dir
4260:
4261: fi
4262: if test "${ac_cv_path_install+set}" = set; then
4263: INSTALL=$ac_cv_path_install
4264: else
4265: # As a last resort, use the slow shell script. Don't cache a
4266: # value for INSTALL within a source directory, because that will
4267: # break other packages using the cache if that directory is
4268: # removed, or if the value is a relative name.
4269: INSTALL=$ac_install_sh
4270: fi
4271: fi
4272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4273: $as_echo "$INSTALL" >&6; }
4274:
4275: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4276: # It thinks the first close brace ends the variable substitution.
4277: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4278:
4279: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4280:
4281: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4282:
4283:
4284: # Extract the first word of "nroff", so it can be a program name with args.
4285: set dummy nroff; ac_word=$2
4286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287: $as_echo_n "checking for $ac_word... " >&6; }
4288: if ${ac_cv_prog_NROFF+:} false; then :
4289: $as_echo_n "(cached) " >&6
4290: else
4291: if test -n "$NROFF"; then
4292: ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
4293: else
4294: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295: for as_dir in $PATH
4296: do
4297: IFS=$as_save_IFS
4298: test -z "$as_dir" && as_dir=.
4299: for ac_exec_ext in '' $ac_executable_extensions; do
4300: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301: ac_cv_prog_NROFF="nroff"
4302: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303: break 2
4304: fi
4305: done
4306: done
4307: IFS=$as_save_IFS
4308:
4309: fi
4310: fi
4311: NROFF=$ac_cv_prog_NROFF
4312: if test -n "$NROFF"; then
4313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
4314: $as_echo "$NROFF" >&6; }
4315: else
4316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317: $as_echo "no" >&6; }
4318: fi
4319:
4320:
4321: # Extract the first word of "groff", so it can be a program name with args.
4322: set dummy groff; ac_word=$2
4323: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324: $as_echo_n "checking for $ac_word... " >&6; }
4325: if ${ac_cv_prog_GROFF+:} false; then :
4326: $as_echo_n "(cached) " >&6
4327: else
4328: if test -n "$GROFF"; then
4329: ac_cv_prog_GROFF="$GROFF" # Let the user override the test.
4330: else
4331: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332: for as_dir in $PATH
4333: do
4334: IFS=$as_save_IFS
4335: test -z "$as_dir" && as_dir=.
4336: for ac_exec_ext in '' $ac_executable_extensions; do
4337: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338: ac_cv_prog_GROFF="groff"
4339: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340: break 2
4341: fi
4342: done
4343: done
4344: IFS=$as_save_IFS
4345:
4346: fi
4347: fi
4348: GROFF=$ac_cv_prog_GROFF
4349: if test -n "$GROFF"; then
4350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
4351: $as_echo "$GROFF" >&6; }
4352: else
4353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354: $as_echo "no" >&6; }
4355: fi
4356:
4357:
4358: # Extract the first word of "colcrt", so it can be a program name with args.
4359: set dummy colcrt; ac_word=$2
4360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361: $as_echo_n "checking for $ac_word... " >&6; }
4362: if ${ac_cv_prog_COLCRT+:} false; then :
4363: $as_echo_n "(cached) " >&6
4364: else
4365: if test -n "$COLCRT"; then
4366: ac_cv_prog_COLCRT="$COLCRT" # Let the user override the test.
4367: else
4368: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369: for as_dir in $PATH
4370: do
4371: IFS=$as_save_IFS
4372: test -z "$as_dir" && as_dir=.
4373: for ac_exec_ext in '' $ac_executable_extensions; do
4374: if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375: ac_cv_prog_COLCRT="colcrt"
4376: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377: break 2
4378: fi
4379: done
4380: done
4381: IFS=$as_save_IFS
4382:
4383: fi
4384: fi
4385: COLCRT=$ac_cv_prog_COLCRT
4386: if test -n "$COLCRT"; then
4387: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COLCRT" >&5
4388: $as_echo "$COLCRT" >&6; }
4389: else
4390: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391: $as_echo "no" >&6; }
4392: fi
4393:
4394:
4395: # Extract the first word of "tbl", so it can be a program name with args.
4396: set dummy tbl; ac_word=$2
4397: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398: $as_echo_n "checking for $ac_word... " >&6; }
4399: if ${ac_cv_prog_TBL+:} false; then :
4400: $as_echo_n "(cached) " >&6
4401: else
4402: if test -n "$TBL"; then
4403: ac_cv_prog_TBL="$TBL" # Let the user override the test.
4404: else
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_prog_TBL="tbl"
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: fi
4421: fi
4422: TBL=$ac_cv_prog_TBL
4423: if test -n "$TBL"; then
4424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
4425: $as_echo "$TBL" >&6; }
4426: else
4427: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428: $as_echo "no" >&6; }
4429: fi
4430:
4431:
4432:
4433: if test "x$GROFF" != "x" ; then
4434: DOCS_GROFF=
4435: DOCS_NROFF=.no-nroff
4436: DOCS_NONE=.none
4437: elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then
4438: DOCS_GROFF=.no-groff
4439: DOCS_NROFF=
4440: DOCS_NONE=.none
4441: else
4442: DOCS_GROFF=.no-groff
4443: DOCS_NROFF=.no-nroff
4444: DOCS_NONE=
4445: fi
4446:
4447:
4448:
4449:
4450:
4451:
4452: @%:@ Check whether --with-program-name was given.
4453: if test "${with_program_name+set}" = set; then :
4454: withval=$with_program_name; progname="$withval"
4455: else
4456: progname="srogue"
4457: fi
4458:
4459: PROGRAM=$progname
4460:
4461:
4462: @%:@ Check whether --enable-setgid was given.
4463: if test "${enable_setgid+set}" = set; then :
4464: enableval=$enable_setgid;
4465: fi
4466:
4467: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if using setgid execute bit" >&5
4468: $as_echo_n "checking if using setgid execute bit... " >&6; }
4469: if test "x$enable_setgid" = "xno" ; then
4470: GROUPOWNER=
4471: elif test "x$enable_setgid" = "xyes" ; then
4472: GROUPOWNER=games
4473: elif test "x$enable_setgid" = "x" ; then
4474: GROUPOWNER=
4475: else
4476: GROUPOWNER=$enable_setgid
4477: fi
4478:
4479: if test "x$GROUPOWNER" != "x" ; then
4480:
4481: cat >>confdefs.h <<_ACEOF
4482: @%:@define GROUPOWNER $GROUPOWNER
4483: _ACEOF
4484:
4485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUPOWNER" >&5
4486: $as_echo "$GROUPOWNER" >&6; }
4487: else
4488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489: $as_echo "no" >&6; }
4490: fi
4491:
4492:
4493:
4494: @%:@ Check whether --enable-scorefile was given.
4495: if test "${enable_scorefile+set}" = set; then :
4496: enableval=$enable_scorefile;
4497: fi
4498:
4499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scoreboard file" >&5
4500: $as_echo_n "checking for scoreboard file... " >&6; }
4501: if test "x$enable_scorefile" = "xno" ; then
4502: SCOREFILE=
4503: elif test "x$enable_scorefile" = "xyes" ; then
4504: SCOREFILE=$progname.scr
4505: elif test "x$enable_scorefile" = "x" ; then
4506: SCOREFILE=$progname.scr
4507: else
4508: SCOREFILE=$enable_scorefile
4509: fi
4510:
4511: if test "x$SCOREFILE" != "x" ; then
4512:
4513: cat >>confdefs.h <<_ACEOF
4514: @%:@define SCOREFILE "$SCOREFILE"
4515: _ACEOF
4516:
4517: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCOREFILE" >&5
4518: $as_echo "$SCOREFILE" >&6; }
4519: else
4520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4521: $as_echo "disabled" >&6; }
4522: fi
4523:
4524:
4525:
4526: @%:@ Check whether --enable-logfile was given.
4527: if test "${enable_logfile+set}" = set; then :
4528: enableval=$enable_logfile;
4529: fi
4530:
4531: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file" >&5
4532: $as_echo_n "checking for log file... " >&6; }
4533: if test "x$enable_logfile" = "xno" ; then
4534: LOGFILE=
4535: elif test "x$enable_logfile" = "xyes" ; then
4536: LOGFILE=$progname.log
4537: elif test "x$enable_logfile" = "x" ; then
4538: LOGFILE=$progname.log
4539: else
4540: LOGFILE=$enable_logfile
4541: fi
4542:
4543: if test "x$LOGFILE" != "x" ; then
4544:
4545: cat >>confdefs.h <<_ACEOF
4546: @%:@define LOGFILE "$LOGFILE"
4547: _ACEOF
4548:
4549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOGFILE" >&5
4550: $as_echo "$LOGFILE" >&6; }
4551: else
4552: { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4553: $as_echo "disabled" >&6; }
4554: fi
4555:
4556:
4557:
4558: @%:@ Check whether --enable-savedir was given.
4559: if test "${enable_savedir+set}" = set; then :
4560: enableval=$enable_savedir;
4561: else
4562: enable_savedir="no"
4563: fi
4564:
4565: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for save directory" >&5
4566: $as_echo_n "checking for save directory... " >&6; }
4567: if test "x$enable_savedir" = "xno" ; then
4568: SAVEDIR=
4569: elif test "x$enable_savedir" = "xyes" -o "x$enable_savedir" = "x"; then
4570: if test "x$GROUPOWNER" != "x"; then
4571: SAVEDIR="/var/local/games/roguelike/${progname}save/"
4572: else
4573: SAVEDIR="$progname/"
4574: fi
4575: else
4576: SAVEDIR="$enable_savedir"
4577: fi
4578:
4579: if test "x$SAVEDIR" != "x" ; then
4580:
4581: cat >>confdefs.h <<_ACEOF
4582: @%:@define SAVEDIR "$SAVEDIR"
4583: _ACEOF
4584:
4585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SAVEDIR" >&5
4586: $as_echo "$SAVEDIR" >&6; }
4587: else
4588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
4589: $as_echo "disabled" >&6; }
4590: fi
4591:
4592:
4593:
4594: @%:@ Check whether --enable-wizardmode was given.
4595: if test "${enable_wizardmode+set}" = set; then :
4596: enableval=$enable_wizardmode;
4597: fi
4598:
4599: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wizard mode is enabled" >&5
4600: $as_echo_n "checking if wizard mode is enabled... " >&6; }
4601: if test "x$enable_wizardmode" = "xno" ; then
4602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603: $as_echo "no" >&6; }
4604: elif test "x$enable_wizardmode" = "x" ; then
4605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606: $as_echo "no" >&6; }
4607: else
4608:
4609: $as_echo "@%:@define WIZARD /**/" >>confdefs.h
4610:
4611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4612: $as_echo "yes" >&6; }
4613: fi
4614:
4615: cat >confcache <<\_ACEOF
4616: # This file is a shell script that caches the results of configure
4617: # tests run on this system so they can be shared between configure
4618: # scripts and configure runs, see configure's option --config-cache.
4619: # It is not useful on other systems. If it contains results you don't
4620: # want to keep, you may remove or edit it.
4621: #
4622: # config.status only pays attention to the cache file if you give it
4623: # the --recheck option to rerun configure.
4624: #
4625: # `ac_cv_env_foo' variables (set or unset) will be overridden when
4626: # loading this file, other *unset* `ac_cv_foo' will be assigned the
4627: # following values.
4628:
4629: _ACEOF
4630:
4631: # The following way of writing the cache mishandles newlines in values,
4632: # but we know of no workaround that is simple, portable, and efficient.
4633: # So, we kill variables containing newlines.
4634: # Ultrix sh set writes to stderr and can't be redirected directly,
4635: # and sets the high bit in the cache file unless we assign to the vars.
4636: (
4637: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4638: eval ac_val=\$$ac_var
4639: case $ac_val in #(
4640: *${as_nl}*)
4641: case $ac_var in #(
4642: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4643: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4644: esac
4645: case $ac_var in #(
4646: _ | IFS | as_nl) ;; #(
4647: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4648: *) { eval $ac_var=; unset $ac_var;} ;;
4649: esac ;;
4650: esac
4651: done
4652:
4653: (set) 2>&1 |
4654: case $as_nl`(ac_space=' '; set) 2>&1` in #(
4655: *${as_nl}ac_space=\ *)
4656: # `set' does not quote correctly, so add quotes: double-quote
4657: # substitution turns \\\\ into \\, and sed turns \\ into \.
4658: sed -n \
4659: "s/'/'\\\\''/g;
4660: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4661: ;; #(
4662: *)
4663: # `set' quotes correctly as required by POSIX, so do not add quotes.
4664: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4665: ;;
4666: esac |
4667: sort
4668: ) |
4669: sed '
4670: /^ac_cv_env_/b end
4671: t clear
4672: :clear
4673: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4674: t end
4675: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4676: :end' >>confcache
4677: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4678: if test -w "$cache_file"; then
4679: if test "x$cache_file" != "x/dev/null"; then
4680: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4681: $as_echo "$as_me: updating cache $cache_file" >&6;}
4682: if test ! -f "$cache_file" || test -h "$cache_file"; then
4683: cat confcache >"$cache_file"
4684: else
4685: case $cache_file in #(
4686: */* | ?:*)
4687: mv -f confcache "$cache_file"$$ &&
4688: mv -f "$cache_file"$$ "$cache_file" ;; #(
4689: *)
4690: mv -f confcache "$cache_file" ;;
4691: esac
4692: fi
4693: fi
4694: else
4695: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4696: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4697: fi
4698: fi
4699: rm -f confcache
4700:
4701: test "x$prefix" = xNONE && prefix=$ac_default_prefix
4702: # Let make expand exec_prefix.
4703: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4704:
4705: DEFS=-DHAVE_CONFIG_H
4706:
4707: ac_libobjs=
4708: ac_ltlibobjs=
4709: U=
4710: for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
4711: # 1. Remove the extension, and $U if already installed.
4712: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4713: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4714: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4715: # will be set to the directory where LIBOBJS objects are built.
4716: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4717: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4718: done
4719: LIB@&t@OBJS=$ac_libobjs
4720:
4721: LTLIBOBJS=$ac_ltlibobjs
4722:
4723:
4724:
4725: : "${CONFIG_STATUS=./config.status}"
4726: ac_write_fail=0
4727: ac_clean_files_save=$ac_clean_files
4728: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4729: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4730: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4731: as_write_fail=0
4732: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4733: #! $SHELL
4734: # Generated by $as_me.
4735: # Run this file to recreate the current configuration.
4736: # Compiler output produced by configure, useful for debugging
4737: # configure, is in config.log if it exists.
4738:
4739: debug=false
4740: ac_cs_recheck=false
4741: ac_cs_silent=false
4742:
4743: SHELL=\${CONFIG_SHELL-$SHELL}
4744: export SHELL
4745: _ASEOF
4746: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4747: ## -------------------- ##
4748: ## M4sh Initialization. ##
4749: ## -------------------- ##
4750:
4751: # Be more Bourne compatible
4752: DUALCASE=1; export DUALCASE # for MKS sh
4753: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4754: emulate sh
4755: NULLCMD=:
4756: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4757: # is contrary to our usage. Disable this feature.
4758: alias -g '${1+"$@"}'='"$@"'
4759: setopt NO_GLOB_SUBST
4760: else
4761: case `(set -o) 2>/dev/null` in @%:@(
4762: *posix*) :
4763: set -o posix ;; @%:@(
4764: *) :
4765: ;;
4766: esac
4767: fi
4768:
4769:
4770: as_nl='
4771: '
4772: export as_nl
4773: # Printing a long string crashes Solaris 7 /usr/bin/printf.
4774: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4775: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4776: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4777: # Prefer a ksh shell builtin over an external printf program on Solaris,
4778: # but without wasting forks for bash or zsh.
4779: if test -z "$BASH_VERSION$ZSH_VERSION" \
4780: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4781: as_echo='print -r --'
4782: as_echo_n='print -rn --'
4783: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4784: as_echo='printf %s\n'
4785: as_echo_n='printf %s'
4786: else
4787: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4788: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4789: as_echo_n='/usr/ucb/echo -n'
4790: else
4791: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4792: as_echo_n_body='eval
4793: arg=$1;
4794: case $arg in @%:@(
4795: *"$as_nl"*)
4796: expr "X$arg" : "X\\(.*\\)$as_nl";
4797: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4798: esac;
4799: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4800: '
4801: export as_echo_n_body
4802: as_echo_n='sh -c $as_echo_n_body as_echo'
4803: fi
4804: export as_echo_body
4805: as_echo='sh -c $as_echo_body as_echo'
4806: fi
4807:
4808: # The user is always right.
4809: if test "${PATH_SEPARATOR+set}" != set; then
4810: PATH_SEPARATOR=:
4811: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4812: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4813: PATH_SEPARATOR=';'
4814: }
4815: fi
4816:
4817:
4818: # IFS
4819: # We need space, tab and new line, in precisely that order. Quoting is
4820: # there to prevent editors from complaining about space-tab.
4821: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4822: # splitting by setting IFS to empty value.)
4823: IFS=" "" $as_nl"
4824:
4825: # Find who we are. Look in the path if we contain no directory separator.
4826: as_myself=
4827: case $0 in @%:@((
4828: *[\\/]* ) as_myself=$0 ;;
4829: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830: for as_dir in $PATH
4831: do
4832: IFS=$as_save_IFS
4833: test -z "$as_dir" && as_dir=.
4834: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4835: done
4836: IFS=$as_save_IFS
4837:
4838: ;;
4839: esac
4840: # We did not find ourselves, most probably we were run as `sh COMMAND'
4841: # in which case we are not to be found in the path.
4842: if test "x$as_myself" = x; then
4843: as_myself=$0
4844: fi
4845: if test ! -f "$as_myself"; then
4846: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4847: exit 1
4848: fi
4849:
4850: # Unset variables that we do not need and which cause bugs (e.g. in
4851: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4852: # suppresses any "Segmentation fault" message there. '((' could
4853: # trigger a bug in pdksh 5.2.14.
4854: for as_var in BASH_ENV ENV MAIL MAILPATH
4855: do eval test x\${$as_var+set} = xset \
4856: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4857: done
4858: PS1='$ '
4859: PS2='> '
4860: PS4='+ '
4861:
4862: # NLS nuisances.
4863: LC_ALL=C
4864: export LC_ALL
4865: LANGUAGE=C
4866: export LANGUAGE
4867:
4868: # CDPATH.
4869: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4870:
4871:
4872: @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
4873: @%:@ ----------------------------------------
4874: @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4875: @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4876: @%:@ script with STATUS, using 1 if that was 0.
4877: as_fn_error ()
4878: {
4879: as_status=$1; test $as_status -eq 0 && as_status=1
4880: if test "$4"; then
4881: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4882: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4883: fi
4884: $as_echo "$as_me: error: $2" >&2
4885: as_fn_exit $as_status
4886: } @%:@ as_fn_error
4887:
4888:
4889: @%:@ as_fn_set_status STATUS
4890: @%:@ -----------------------
4891: @%:@ Set @S|@? to STATUS, without forking.
4892: as_fn_set_status ()
4893: {
4894: return $1
4895: } @%:@ as_fn_set_status
4896:
4897: @%:@ as_fn_exit STATUS
4898: @%:@ -----------------
4899: @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4900: as_fn_exit ()
4901: {
4902: set +e
4903: as_fn_set_status $1
4904: exit $1
4905: } @%:@ as_fn_exit
4906:
4907: @%:@ as_fn_unset VAR
4908: @%:@ ---------------
4909: @%:@ Portably unset VAR.
4910: as_fn_unset ()
4911: {
4912: { eval $1=; unset $1;}
4913: }
4914: as_unset=as_fn_unset
4915: @%:@ as_fn_append VAR VALUE
4916: @%:@ ----------------------
4917: @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
4918: @%:@ advantage of any shell optimizations that allow amortized linear growth over
4919: @%:@ repeated appends, instead of the typical quadratic growth present in naive
4920: @%:@ implementations.
4921: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4922: eval 'as_fn_append ()
4923: {
4924: eval $1+=\$2
4925: }'
4926: else
4927: as_fn_append ()
4928: {
4929: eval $1=\$$1\$2
4930: }
4931: fi # as_fn_append
4932:
4933: @%:@ as_fn_arith ARG...
4934: @%:@ ------------------
4935: @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
4936: @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
4937: @%:@ must be portable across @S|@(()) and expr.
4938: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4939: eval 'as_fn_arith ()
4940: {
4941: as_val=$(( $* ))
4942: }'
4943: else
4944: as_fn_arith ()
4945: {
4946: as_val=`expr "$@" || test $? -eq 1`
4947: }
4948: fi # as_fn_arith
4949:
4950:
4951: if expr a : '\(a\)' >/dev/null 2>&1 &&
4952: test "X`expr 00001 : '.*\(...\)'`" = X001; then
4953: as_expr=expr
4954: else
4955: as_expr=false
4956: fi
4957:
4958: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4959: as_basename=basename
4960: else
4961: as_basename=false
4962: fi
4963:
4964: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4965: as_dirname=dirname
4966: else
4967: as_dirname=false
4968: fi
4969:
4970: as_me=`$as_basename -- "$0" ||
4971: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4972: X"$0" : 'X\(//\)$' \| \
4973: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4974: $as_echo X/"$0" |
4975: sed '/^.*\/\([^/][^/]*\)\/*$/{
4976: s//\1/
4977: q
4978: }
4979: /^X\/\(\/\/\)$/{
4980: s//\1/
4981: q
4982: }
4983: /^X\/\(\/\).*/{
4984: s//\1/
4985: q
4986: }
4987: s/.*/./; q'`
4988:
4989: # Avoid depending upon Character Ranges.
4990: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4991: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4992: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4993: as_cr_digits='0123456789'
4994: as_cr_alnum=$as_cr_Letters$as_cr_digits
4995:
4996: ECHO_C= ECHO_N= ECHO_T=
4997: case `echo -n x` in @%:@(((((
4998: -n*)
4999: case `echo 'xy\c'` in
5000: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5001: xy) ECHO_C='\c';;
5002: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5003: ECHO_T=' ';;
5004: esac;;
5005: *)
5006: ECHO_N='-n';;
5007: esac
5008:
5009: rm -f conf$$ conf$$.exe conf$$.file
5010: if test -d conf$$.dir; then
5011: rm -f conf$$.dir/conf$$.file
5012: else
5013: rm -f conf$$.dir
5014: mkdir conf$$.dir 2>/dev/null
5015: fi
5016: if (echo >conf$$.file) 2>/dev/null; then
5017: if ln -s conf$$.file conf$$ 2>/dev/null; then
5018: as_ln_s='ln -s'
5019: # ... but there are two gotchas:
5020: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5021: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5022: # In both cases, we have to default to `cp -pR'.
5023: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5024: as_ln_s='cp -pR'
5025: elif ln conf$$.file conf$$ 2>/dev/null; then
5026: as_ln_s=ln
5027: else
5028: as_ln_s='cp -pR'
5029: fi
5030: else
5031: as_ln_s='cp -pR'
5032: fi
5033: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5034: rmdir conf$$.dir 2>/dev/null
5035:
5036:
5037: @%:@ as_fn_mkdir_p
5038: @%:@ -------------
5039: @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
5040: as_fn_mkdir_p ()
5041: {
5042:
5043: case $as_dir in #(
5044: -*) as_dir=./$as_dir;;
5045: esac
5046: test -d "$as_dir" || eval $as_mkdir_p || {
5047: as_dirs=
5048: while :; do
5049: case $as_dir in #(
5050: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5051: *) as_qdir=$as_dir;;
5052: esac
5053: as_dirs="'$as_qdir' $as_dirs"
5054: as_dir=`$as_dirname -- "$as_dir" ||
5055: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5056: X"$as_dir" : 'X\(//\)[^/]' \| \
5057: X"$as_dir" : 'X\(//\)$' \| \
5058: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5059: $as_echo X"$as_dir" |
5060: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5061: s//\1/
5062: q
5063: }
5064: /^X\(\/\/\)[^/].*/{
5065: s//\1/
5066: q
5067: }
5068: /^X\(\/\/\)$/{
5069: s//\1/
5070: q
5071: }
5072: /^X\(\/\).*/{
5073: s//\1/
5074: q
5075: }
5076: s/.*/./; q'`
5077: test -d "$as_dir" && break
5078: done
5079: test -z "$as_dirs" || eval "mkdir $as_dirs"
5080: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5081:
5082:
5083: } @%:@ as_fn_mkdir_p
5084: if mkdir -p . 2>/dev/null; then
5085: as_mkdir_p='mkdir -p "$as_dir"'
5086: else
5087: test -d ./-p && rmdir ./-p
5088: as_mkdir_p=false
5089: fi
5090:
5091:
5092: @%:@ as_fn_executable_p FILE
5093: @%:@ -----------------------
5094: @%:@ Test if FILE is an executable regular file.
5095: as_fn_executable_p ()
5096: {
5097: test -f "$1" && test -x "$1"
5098: } @%:@ as_fn_executable_p
5099: as_test_x='test -x'
5100: as_executable_p=as_fn_executable_p
5101:
5102: # Sed expression to map a string onto a valid CPP name.
5103: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5104:
5105: # Sed expression to map a string onto a valid variable name.
5106: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5107:
5108:
5109: exec 6>&1
5110: ## ----------------------------------- ##
5111: ## Main body of $CONFIG_STATUS script. ##
5112: ## ----------------------------------- ##
5113: _ASEOF
5114: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5115:
5116: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5117: # Save the log message, to keep $0 and so on meaningful, and to
5118: # report actual input values of CONFIG_FILES etc. instead of their
5119: # values after options handling.
5120: ac_log="
5121: This file was extended by SRogue $as_me 9.0, which was
5122: generated by GNU Autoconf 2.69. Invocation command line was
5123:
5124: CONFIG_FILES = $CONFIG_FILES
5125: CONFIG_HEADERS = $CONFIG_HEADERS
5126: CONFIG_LINKS = $CONFIG_LINKS
5127: CONFIG_COMMANDS = $CONFIG_COMMANDS
5128: $ $0 $@
5129:
5130: on `(hostname || uname -n) 2>/dev/null | sed 1q`
5131: "
5132:
5133: _ACEOF
5134:
5135: case $ac_config_files in *"
5136: "*) set x $ac_config_files; shift; ac_config_files=$*;;
5137: esac
5138:
5139: case $ac_config_headers in *"
5140: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5141: esac
5142:
5143:
5144: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5145: # Files that config.status was made for.
5146: config_files="$ac_config_files"
5147: config_headers="$ac_config_headers"
5148:
5149: _ACEOF
5150:
5151: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5152: ac_cs_usage="\
5153: \`$as_me' instantiates files and other configuration actions
5154: from templates according to the current configuration. Unless the files
5155: and actions are specified as TAGs, all are instantiated by default.
5156:
5157: Usage: $0 [OPTION]... [TAG]...
5158:
5159: -h, --help print this help, then exit
5160: -V, --version print version number and configuration settings, then exit
5161: --config print configuration, then exit
5162: -q, --quiet, --silent
5163: do not print progress messages
5164: -d, --debug don't remove temporary files
5165: --recheck update $as_me by reconfiguring in the same conditions
5166: --file=FILE[:TEMPLATE]
5167: instantiate the configuration file FILE
5168: --header=FILE[:TEMPLATE]
5169: instantiate the configuration header FILE
5170:
5171: Configuration files:
5172: $config_files
5173:
5174: Configuration headers:
5175: $config_headers
5176:
5177: Report bugs to <yendor@rogueforge.net>."
5178:
5179: _ACEOF
5180: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5181: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5182: ac_cs_version="\\
5183: SRogue config.status 9.0
5184: configured by $0, generated by GNU Autoconf 2.69,
5185: with options \\"\$ac_cs_config\\"
5186:
5187: Copyright (C) 2012 Free Software Foundation, Inc.
5188: This config.status script is free software; the Free Software Foundation
5189: gives unlimited permission to copy, distribute and modify it."
5190:
5191: ac_pwd='$ac_pwd'
5192: srcdir='$srcdir'
5193: INSTALL='$INSTALL'
5194: test -n "\$AWK" || AWK=awk
5195: _ACEOF
5196:
5197: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5198: # The default lists apply if the user does not specify any file.
5199: ac_need_defaults=:
5200: while test $# != 0
5201: do
5202: case $1 in
5203: --*=?*)
5204: ac_option=`expr "X$1" : 'X\([^=]*\)='`
5205: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5206: ac_shift=:
5207: ;;
5208: --*=)
5209: ac_option=`expr "X$1" : 'X\([^=]*\)='`
5210: ac_optarg=
5211: ac_shift=:
5212: ;;
5213: *)
5214: ac_option=$1
5215: ac_optarg=$2
5216: ac_shift=shift
5217: ;;
5218: esac
5219:
5220: case $ac_option in
5221: # Handling of the options.
5222: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5223: ac_cs_recheck=: ;;
5224: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5225: $as_echo "$ac_cs_version"; exit ;;
5226: --config | --confi | --conf | --con | --co | --c )
5227: $as_echo "$ac_cs_config"; exit ;;
5228: --debug | --debu | --deb | --de | --d | -d )
5229: debug=: ;;
5230: --file | --fil | --fi | --f )
5231: $ac_shift
5232: case $ac_optarg in
5233: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5234: '') as_fn_error $? "missing file argument" ;;
5235: esac
5236: as_fn_append CONFIG_FILES " '$ac_optarg'"
5237: ac_need_defaults=false;;
5238: --header | --heade | --head | --hea )
5239: $ac_shift
5240: case $ac_optarg in
5241: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5242: esac
5243: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5244: ac_need_defaults=false;;
5245: --he | --h)
5246: # Conflict between --help and --header
5247: as_fn_error $? "ambiguous option: \`$1'
5248: Try \`$0 --help' for more information.";;
5249: --help | --hel | -h )
5250: $as_echo "$ac_cs_usage"; exit ;;
5251: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5252: | -silent | --silent | --silen | --sile | --sil | --si | --s)
5253: ac_cs_silent=: ;;
5254:
5255: # This is an error.
5256: -*) as_fn_error $? "unrecognized option: \`$1'
5257: Try \`$0 --help' for more information." ;;
5258:
5259: *) as_fn_append ac_config_targets " $1"
5260: ac_need_defaults=false ;;
5261:
5262: esac
5263: shift
5264: done
5265:
5266: ac_configure_extra_args=
5267:
5268: if $ac_cs_silent; then
5269: exec 6>/dev/null
5270: ac_configure_extra_args="$ac_configure_extra_args --silent"
5271: fi
5272:
5273: _ACEOF
5274: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5275: if \$ac_cs_recheck; then
5276: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5277: shift
5278: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5279: CONFIG_SHELL='$SHELL'
5280: export CONFIG_SHELL
5281: exec "\$@"
5282: fi
5283:
5284: _ACEOF
5285: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5286: exec 5>>config.log
5287: {
5288: echo
5289: sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
5290: @%:@@%:@ Running $as_me. @%:@@%:@
5291: _ASBOX
5292: $as_echo "$ac_log"
5293: } >&5
5294:
5295: _ACEOF
5296: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5297: _ACEOF
5298:
5299: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5300:
5301: # Handling of arguments.
5302: for ac_config_target in $ac_config_targets
5303: do
5304: case $ac_config_target in
5305: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5306: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5307:
5308: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5309: esac
5310: done
5311:
5312:
5313: # If the user did not use the arguments to specify the items to instantiate,
5314: # then the envvar interface is used. Set only those that are not.
5315: # We use the long form for the default assignment because of an extremely
5316: # bizarre bug on SunOS 4.1.3.
5317: if $ac_need_defaults; then
5318: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5319: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5320: fi
5321:
5322: # Have a temporary directory for convenience. Make it in the build tree
5323: # simply because there is no reason against having it here, and in addition,
5324: # creating and moving files from /tmp can sometimes cause problems.
5325: # Hook for its removal unless debugging.
5326: # Note that there is a small window in which the directory will not be cleaned:
5327: # after its creation but before its name has been assigned to `$tmp'.
5328: $debug ||
5329: {
5330: tmp= ac_tmp=
5331: trap 'exit_status=$?
5332: : "${ac_tmp:=$tmp}"
5333: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5334: ' 0
5335: trap 'as_fn_exit 1' 1 2 13 15
5336: }
5337: # Create a (secure) tmp directory for tmp files.
5338:
5339: {
5340: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5341: test -d "$tmp"
5342: } ||
5343: {
5344: tmp=./conf$$-$RANDOM
5345: (umask 077 && mkdir "$tmp")
5346: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5347: ac_tmp=$tmp
5348:
5349: # Set up the scripts for CONFIG_FILES section.
5350: # No need to generate them if there are no CONFIG_FILES.
5351: # This happens for instance with `./config.status config.h'.
5352: if test -n "$CONFIG_FILES"; then
5353:
5354:
5355: ac_cr=`echo X | tr X '\015'`
5356: # On cygwin, bash can eat \r inside `` if the user requested igncr.
5357: # But we know of no other shell where ac_cr would be empty at this
5358: # point, so we can use a bashism as a fallback.
5359: if test "x$ac_cr" = x; then
5360: eval ac_cr=\$\'\\r\'
5361: fi
5362: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5363: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5364: ac_cs_awk_cr='\\r'
5365: else
5366: ac_cs_awk_cr=$ac_cr
5367: fi
5368:
5369: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5370: _ACEOF
5371:
5372:
5373: {
5374: echo "cat >conf$$subs.awk <<_ACEOF" &&
5375: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5376: echo "_ACEOF"
5377: } >conf$$subs.sh ||
5378: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5379: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5380: ac_delim='%!_!# '
5381: for ac_last_try in false false false false false :; do
5382: . ./conf$$subs.sh ||
5383: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5384:
5385: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5386: if test $ac_delim_n = $ac_delim_num; then
5387: break
5388: elif $ac_last_try; then
5389: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5390: else
5391: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5392: fi
5393: done
5394: rm -f conf$$subs.sh
5395:
5396: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5397: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5398: _ACEOF
5399: sed -n '
5400: h
5401: s/^/S["/; s/!.*/"]=/
5402: p
5403: g
5404: s/^[^!]*!//
5405: :repl
5406: t repl
5407: s/'"$ac_delim"'$//
5408: t delim
5409: :nl
5410: h
5411: s/\(.\{148\}\)..*/\1/
5412: t more1
5413: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5414: p
5415: n
5416: b repl
5417: :more1
5418: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5419: p
5420: g
5421: s/.\{148\}//
5422: t nl
5423: :delim
5424: h
5425: s/\(.\{148\}\)..*/\1/
5426: t more2
5427: s/["\\]/\\&/g; s/^/"/; s/$/"/
5428: p
5429: b
5430: :more2
5431: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5432: p
5433: g
5434: s/.\{148\}//
5435: t delim
5436: ' <conf$$subs.awk | sed '
5437: /^[^""]/{
5438: N
5439: s/\n//
5440: }
5441: ' >>$CONFIG_STATUS || ac_write_fail=1
5442: rm -f conf$$subs.awk
5443: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5444: _ACAWK
5445: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5446: for (key in S) S_is_set[key] = 1
5447: FS = ""
5448:
5449: }
5450: {
5451: line = $ 0
5452: nfields = split(line, field, "@")
5453: substed = 0
5454: len = length(field[1])
5455: for (i = 2; i < nfields; i++) {
5456: key = field[i]
5457: keylen = length(key)
5458: if (S_is_set[key]) {
5459: value = S[key]
5460: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5461: len += length(value) + length(field[++i])
5462: substed = 1
5463: } else
5464: len += 1 + keylen
5465: }
5466:
5467: print line
5468: }
5469:
5470: _ACAWK
5471: _ACEOF
5472: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5473: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5474: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5475: else
5476: cat
5477: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5478: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5479: _ACEOF
5480:
5481: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5482: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5483: # trailing colons and then remove the whole line if VPATH becomes empty
5484: # (actually we leave an empty line to preserve line numbers).
5485: if test "x$srcdir" = x.; then
5486: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5487: h
5488: s///
5489: s/^/:/
5490: s/[ ]*$/:/
5491: s/:\$(srcdir):/:/g
5492: s/:\${srcdir}:/:/g
5493: s/:@srcdir@:/:/g
5494: s/^:*//
5495: s/:*$//
5496: x
5497: s/\(=[ ]*\).*/\1/
5498: G
5499: s/\n//
5500: s/^[^=]*=[ ]*$//
5501: }'
5502: fi
5503:
5504: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5505: fi # test -n "$CONFIG_FILES"
5506:
5507: # Set up the scripts for CONFIG_HEADERS section.
5508: # No need to generate them if there are no CONFIG_HEADERS.
5509: # This happens for instance with `./config.status Makefile'.
5510: if test -n "$CONFIG_HEADERS"; then
5511: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5512: BEGIN {
5513: _ACEOF
5514:
5515: # Transform confdefs.h into an awk script `defines.awk', embedded as
5516: # here-document in config.status, that substitutes the proper values into
5517: # config.h.in to produce config.h.
5518:
5519: # Create a delimiter string that does not exist in confdefs.h, to ease
5520: # handling of long lines.
5521: ac_delim='%!_!# '
5522: for ac_last_try in false false :; do
5523: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5524: if test -z "$ac_tt"; then
5525: break
5526: elif $ac_last_try; then
5527: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5528: else
5529: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5530: fi
5531: done
5532:
5533: # For the awk script, D is an array of macro values keyed by name,
5534: # likewise P contains macro parameters if any. Preserve backslash
5535: # newline sequences.
5536:
5537: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5538: sed -n '
5539: s/.\{148\}/&'"$ac_delim"'/g
5540: t rset
5541: :rset
5542: s/^[ ]*#[ ]*define[ ][ ]*/ /
5543: t def
5544: d
5545: :def
5546: s/\\$//
5547: t bsnl
5548: s/["\\]/\\&/g
5549: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5550: D["\1"]=" \3"/p
5551: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5552: d
5553: :bsnl
5554: s/["\\]/\\&/g
5555: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5556: D["\1"]=" \3\\\\\\n"\\/p
5557: t cont
5558: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5559: t cont
5560: d
5561: :cont
5562: n
5563: s/.\{148\}/&'"$ac_delim"'/g
5564: t clear
5565: :clear
5566: s/\\$//
5567: t bsnlc
5568: s/["\\]/\\&/g; s/^/"/; s/$/"/p
5569: d
5570: :bsnlc
5571: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5572: b cont
5573: ' <confdefs.h | sed '
5574: s/'"$ac_delim"'/"\\\
5575: "/g' >>$CONFIG_STATUS || ac_write_fail=1
5576:
5577: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5578: for (key in D) D_is_set[key] = 1
5579: FS = ""
5580: }
5581: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5582: line = \$ 0
5583: split(line, arg, " ")
5584: if (arg[1] == "#") {
5585: defundef = arg[2]
5586: mac1 = arg[3]
5587: } else {
5588: defundef = substr(arg[1], 2)
5589: mac1 = arg[2]
5590: }
5591: split(mac1, mac2, "(") #)
5592: macro = mac2[1]
5593: prefix = substr(line, 1, index(line, defundef) - 1)
5594: if (D_is_set[macro]) {
5595: # Preserve the white space surrounding the "#".
5596: print prefix "define", macro P[macro] D[macro]
5597: next
5598: } else {
5599: # Replace #undef with comments. This is necessary, for example,
5600: # in the case of _POSIX_SOURCE, which is predefined and required
5601: # on some systems where configure will not decide to define it.
5602: if (defundef == "undef") {
5603: print "/*", prefix defundef, macro, "*/"
5604: next
5605: }
5606: }
5607: }
5608: { print }
5609: _ACAWK
5610: _ACEOF
5611: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5612: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5613: fi # test -n "$CONFIG_HEADERS"
5614:
5615:
5616: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5617: shift
5618: for ac_tag
5619: do
5620: case $ac_tag in
5621: :[FHLC]) ac_mode=$ac_tag; continue;;
5622: esac
5623: case $ac_mode$ac_tag in
5624: :[FHL]*:*);;
5625: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5626: :[FH]-) ac_tag=-:-;;
5627: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5628: esac
5629: ac_save_IFS=$IFS
5630: IFS=:
5631: set x $ac_tag
5632: IFS=$ac_save_IFS
5633: shift
5634: ac_file=$1
5635: shift
5636:
5637: case $ac_mode in
5638: :L) ac_source=$1;;
5639: :[FH])
5640: ac_file_inputs=
5641: for ac_f
5642: do
5643: case $ac_f in
5644: -) ac_f="$ac_tmp/stdin";;
5645: *) # Look for the file first in the build tree, then in the source tree
5646: # (if the path is not absolute). The absolute path cannot be DOS-style,
5647: # because $ac_f cannot contain `:'.
5648: test -f "$ac_f" ||
5649: case $ac_f in
5650: [\\/$]*) false;;
5651: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5652: esac ||
5653: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5654: esac
5655: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5656: as_fn_append ac_file_inputs " '$ac_f'"
5657: done
5658:
5659: # Let's still pretend it is `configure' which instantiates (i.e., don't
5660: # use $as_me), people would be surprised to read:
5661: # /* config.h. Generated by config.status. */
5662: configure_input='Generated from '`
5663: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5664: `' by configure.'
5665: if test x"$ac_file" != x-; then
5666: configure_input="$ac_file. $configure_input"
5667: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5668: $as_echo "$as_me: creating $ac_file" >&6;}
5669: fi
5670: # Neutralize special characters interpreted by sed in replacement strings.
5671: case $configure_input in #(
5672: *\&* | *\|* | *\\* )
5673: ac_sed_conf_input=`$as_echo "$configure_input" |
5674: sed 's/[\\\\&|]/\\\\&/g'`;; #(
5675: *) ac_sed_conf_input=$configure_input;;
5676: esac
5677:
5678: case $ac_tag in
5679: *:-:* | *:-) cat >"$ac_tmp/stdin" \
5680: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5681: esac
5682: ;;
5683: esac
5684:
5685: ac_dir=`$as_dirname -- "$ac_file" ||
5686: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5687: X"$ac_file" : 'X\(//\)[^/]' \| \
5688: X"$ac_file" : 'X\(//\)$' \| \
5689: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5690: $as_echo X"$ac_file" |
5691: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5692: s//\1/
5693: q
5694: }
5695: /^X\(\/\/\)[^/].*/{
5696: s//\1/
5697: q
5698: }
5699: /^X\(\/\/\)$/{
5700: s//\1/
5701: q
5702: }
5703: /^X\(\/\).*/{
5704: s//\1/
5705: q
5706: }
5707: s/.*/./; q'`
5708: as_dir="$ac_dir"; as_fn_mkdir_p
5709: ac_builddir=.
5710:
5711: case "$ac_dir" in
5712: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5713: *)
5714: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5715: # A ".." for each directory in $ac_dir_suffix.
5716: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5717: case $ac_top_builddir_sub in
5718: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5719: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5720: esac ;;
5721: esac
5722: ac_abs_top_builddir=$ac_pwd
5723: ac_abs_builddir=$ac_pwd$ac_dir_suffix
5724: # for backward compatibility:
5725: ac_top_builddir=$ac_top_build_prefix
5726:
5727: case $srcdir in
5728: .) # We are building in place.
5729: ac_srcdir=.
5730: ac_top_srcdir=$ac_top_builddir_sub
5731: ac_abs_top_srcdir=$ac_pwd ;;
5732: [\\/]* | ?:[\\/]* ) # Absolute name.
5733: ac_srcdir=$srcdir$ac_dir_suffix;
5734: ac_top_srcdir=$srcdir
5735: ac_abs_top_srcdir=$srcdir ;;
5736: *) # Relative name.
5737: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5738: ac_top_srcdir=$ac_top_build_prefix$srcdir
5739: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5740: esac
5741: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5742:
5743:
5744: case $ac_mode in
5745: :F)
5746: #
5747: # CONFIG_FILE
5748: #
5749:
5750: case $INSTALL in
5751: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5752: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5753: esac
5754: _ACEOF
5755:
5756: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5757: # If the template does not know about datarootdir, expand it.
5758: # FIXME: This hack should be removed a few years after 2.60.
5759: ac_datarootdir_hack=; ac_datarootdir_seen=
5760: ac_sed_dataroot='
5761: /datarootdir/ {
5762: p
5763: q
5764: }
5765: /@datadir@/p
5766: /@docdir@/p
5767: /@infodir@/p
5768: /@localedir@/p
5769: /@mandir@/p'
5770: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5771: *datarootdir*) ac_datarootdir_seen=yes;;
5772: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5773: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5774: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5775: _ACEOF
5776: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5777: ac_datarootdir_hack='
5778: s&@datadir@&$datadir&g
5779: s&@docdir@&$docdir&g
5780: s&@infodir@&$infodir&g
5781: s&@localedir@&$localedir&g
5782: s&@mandir@&$mandir&g
5783: s&\\\${datarootdir}&$datarootdir&g' ;;
5784: esac
5785: _ACEOF
5786:
5787: # Neutralize VPATH when `$srcdir' = `.'.
5788: # Shell code in configure.ac might set extrasub.
5789: # FIXME: do we really want to maintain this feature?
5790: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5791: ac_sed_extra="$ac_vpsub
5792: $extrasub
5793: _ACEOF
5794: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5795: :t
5796: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5797: s|@configure_input@|$ac_sed_conf_input|;t t
5798: s&@top_builddir@&$ac_top_builddir_sub&;t t
5799: s&@top_build_prefix@&$ac_top_build_prefix&;t t
5800: s&@srcdir@&$ac_srcdir&;t t
5801: s&@abs_srcdir@&$ac_abs_srcdir&;t t
5802: s&@top_srcdir@&$ac_top_srcdir&;t t
5803: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5804: s&@builddir@&$ac_builddir&;t t
5805: s&@abs_builddir@&$ac_abs_builddir&;t t
5806: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5807: s&@INSTALL@&$ac_INSTALL&;t t
5808: $ac_datarootdir_hack
5809: "
5810: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5811: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5812:
5813: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5814: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5815: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5816: "$ac_tmp/out"`; test -z "$ac_out"; } &&
5817: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5818: which seems to be undefined. Please make sure it is defined" >&5
5819: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5820: which seems to be undefined. Please make sure it is defined" >&2;}
5821:
5822: rm -f "$ac_tmp/stdin"
5823: case $ac_file in
5824: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5825: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5826: esac \
5827: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5828: ;;
5829: :H)
5830: #
5831: # CONFIG_HEADER
5832: #
5833: if test x"$ac_file" != x-; then
5834: {
5835: $as_echo "/* $configure_input */" \
5836: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5837: } >"$ac_tmp/config.h" \
5838: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5839: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5840: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5841: $as_echo "$as_me: $ac_file is unchanged" >&6;}
5842: else
5843: rm -f "$ac_file"
5844: mv "$ac_tmp/config.h" "$ac_file" \
5845: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5846: fi
5847: else
5848: $as_echo "/* $configure_input */" \
5849: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5850: || as_fn_error $? "could not create -" "$LINENO" 5
5851: fi
5852: ;;
5853:
5854:
5855: esac
5856:
5857: done # for ac_tag
5858:
5859:
5860: as_fn_exit 0
5861: _ACEOF
5862: ac_clean_files=$ac_clean_files_save
5863:
5864: test $ac_write_fail = 0 ||
5865: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5866:
5867:
5868: # configure is writing to config.log, and then calls config.status.
5869: # config.status does its own redirection, appending to config.log.
5870: # Unfortunately, on DOS this fails, as config.log is still kept open
5871: # by configure, so config.status won't be able to write to it; its
5872: # output is simply discarded. So we exec the FD to /dev/null,
5873: # effectively closing config.log, so it can be properly (re)opened and
5874: # appended to by config.status. When coming back to configure, we
5875: # need to make the FD available again.
5876: if test "$no_create" != yes; then
5877: ac_cs_success=:
5878: ac_config_status_args=
5879: test "$silent" = yes &&
5880: ac_config_status_args="$ac_config_status_args --quiet"
5881: exec 5>/dev/null
5882: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5883: exec 5>>config.log
5884: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5885: # would make configure fail if this is the last instruction.
5886: $ac_cs_success || as_fn_exit 1
5887: fi
5888: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5889: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5890: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5891: fi
5892:
CVSweb