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