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