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