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