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