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