|
|
1.1 root 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.15 root 3: # Generated by GNU Autoconf 2.72 for nono 0.0.
1.1 root 4: #
5: #
1.1.1.15 root 6: # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
1.1.1.10 root 7: # Inc.
1.1 root 8: #
9: #
10: # This configure script is free software; the Free Software Foundation
11: # gives unlimited permission to copy, distribute and modify it.
12: ## -------------------- ##
13: ## M4sh Initialization. ##
14: ## -------------------- ##
15:
16: # Be more Bourne compatible
17: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.10 root 18: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19: then :
1.1 root 20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
1.1.1.15 root 26: else case e in #(
27: e) case `(set -o) 2>/dev/null` in #(
1.1 root 28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
1.1.1.15 root 32: esac ;;
1.1 root 33: esac
34: fi
35:
36:
1.1.1.10 root 37:
38: # Reset variables that may have inherited troublesome values from
39: # the environment.
40:
41: # IFS needs to be set, to space, tab, and newline, in precisely that order.
42: # (If _AS_PATH_WALK were called with IFS unset, it would have the
43: # side effect of setting IFS to empty, thus disabling word splitting.)
44: # Quoting is to prevent editors from complaining about space-tab.
1.1 root 45: as_nl='
46: '
47: export as_nl
1.1.1.10 root 48: IFS=" "" $as_nl"
49:
50: PS1='$ '
51: PS2='> '
52: PS4='+ '
53:
54: # Ensure predictable behavior from utilities with locale-dependent output.
55: LC_ALL=C
56: export LC_ALL
57: LANGUAGE=C
58: export LANGUAGE
59:
60: # We cannot yet rely on "unset" to work, but we need these variables
61: # to be unset--not just set to an empty or harmless value--now, to
62: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63: # also avoids known problems related to "unset" and subshell syntax
64: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66: do eval test \${$as_var+y} \
67: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68: done
69:
70: # Ensure that fds 0, 1, and 2 are open.
71: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.1 root 74:
75: # The user is always right.
1.1.1.10 root 76: if ${PATH_SEPARATOR+false} :; then
1.1 root 77: PATH_SEPARATOR=:
78: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80: PATH_SEPARATOR=';'
81: }
82: fi
83:
84:
85: # Find who we are. Look in the path if we contain no directory separator.
86: as_myself=
87: case $0 in #((
88: *[\\/]* ) as_myself=$0 ;;
89: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90: for as_dir in $PATH
91: do
92: IFS=$as_save_IFS
1.1.1.10 root 93: case $as_dir in #(((
94: '') as_dir=./ ;;
95: */) ;;
96: *) as_dir=$as_dir/ ;;
97: esac
98: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.1 root 99: done
100: IFS=$as_save_IFS
101:
102: ;;
103: esac
1.1.1.15 root 104: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.1 root 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
1.1.1.10 root 110: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1 root 111: exit 1
112: fi
113:
114:
115: # Use a proper internal environment variable to ensure we don't fall
116: # into an infinite loop, continuously re-executing ourselves.
117: if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118: _as_can_reexec=no; export _as_can_reexec;
119: # We cannot yet assume a decent shell, so we have to provide a
120: # neutralization value for shells without unset; and this also
121: # works around shells that cannot unset nonexistent variables.
122: # Preserve -v and -x to the replacement shell.
123: BASH_ENV=/dev/null
124: ENV=/dev/null
125: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126: case $- in # ((((
127: *v*x* | *x*v* ) as_opts=-vx ;;
128: *v* ) as_opts=-v ;;
129: *x* ) as_opts=-x ;;
130: * ) as_opts= ;;
131: esac
132: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133: # Admittedly, this is quite paranoid, since all the known shells bail
1.1.1.15 root 134: # out after a failed 'exec'.
1.1.1.10 root 135: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136: exit 255
1.1 root 137: fi
138: # We don't want this to propagate to other subprocesses.
139: { _as_can_reexec=; unset _as_can_reexec;}
140: if test "x$CONFIG_SHELL" = x; then
1.1.1.15 root 141: as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
1.1.1.10 root 142: then :
1.1 root 143: emulate sh
144: NULLCMD=:
145: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146: # is contrary to our usage. Disable this feature.
147: alias -g '\${1+\"\$@\"}'='\"\$@\"'
148: setopt NO_GLOB_SUBST
1.1.1.15 root 149: else case e in #(
150: e) case \`(set -o) 2>/dev/null\` in #(
1.1 root 151: *posix*) :
152: set -o posix ;; #(
153: *) :
154: ;;
1.1.1.15 root 155: esac ;;
1.1 root 156: esac
157: fi
158: "
159: as_required="as_fn_return () { (exit \$1); }
160: as_fn_success () { as_fn_return 0; }
161: as_fn_failure () { as_fn_return 1; }
162: as_fn_ret_success () { return 0; }
163: as_fn_ret_failure () { return 1; }
164:
165: exitcode=0
166: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
1.1.1.10 root 170: if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171: then :
1.1 root 172:
1.1.1.15 root 173: else case e in #(
174: e) exitcode=1; echo positional parameters were not saved. ;;
175: esac
1.1 root 176: fi
177: test x\$exitcode = x0 || exit 1
1.1.1.10 root 178: blah=\$(echo \$(echo blah))
179: test x\"\$blah\" = xblah || exit 1
1.1 root 180: test -x / || exit 1"
181: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
1.1.1.10 root 184: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
185: if (eval "$as_required") 2>/dev/null
186: then :
1.1 root 187: as_have_required=yes
1.1.1.15 root 188: else case e in #(
189: e) as_have_required=no ;;
190: esac
1.1 root 191: fi
1.1.1.10 root 192: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193: then :
1.1 root 194:
1.1.1.15 root 195: else case e in #(
196: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1 root 197: as_found=false
198: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199: do
200: IFS=$as_save_IFS
1.1.1.10 root 201: case $as_dir in #(((
202: '') as_dir=./ ;;
203: */) ;;
204: *) as_dir=$as_dir/ ;;
205: esac
1.1 root 206: as_found=:
207: case $as_dir in #(
208: /*)
209: for as_base in sh bash ksh sh5; do
210: # Try only shells that exist, to save several forks.
1.1.1.10 root 211: as_shell=$as_dir$as_base
1.1 root 212: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
1.1.1.10 root 213: as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214: then :
1.1 root 215: CONFIG_SHELL=$as_shell as_have_required=yes
1.1.1.10 root 216: if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217: then :
1.1 root 218: break 2
219: fi
220: fi
221: done;;
222: esac
223: as_found=false
224: done
225: IFS=$as_save_IFS
1.1.1.10 root 226: if $as_found
227: then :
228:
1.1.1.15 root 229: else case e in #(
230: e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
1.1.1.10 root 231: as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232: then :
233: CONFIG_SHELL=$SHELL as_have_required=yes
1.1.1.15 root 234: fi ;;
235: esac
1.1.1.10 root 236: fi
1.1 root 237:
238:
1.1.1.10 root 239: if test "x$CONFIG_SHELL" != x
240: then :
1.1 root 241: export CONFIG_SHELL
242: # We cannot yet assume a decent shell, so we have to provide a
243: # neutralization value for shells without unset; and this also
244: # works around shells that cannot unset nonexistent variables.
245: # Preserve -v and -x to the replacement shell.
246: BASH_ENV=/dev/null
247: ENV=/dev/null
248: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249: case $- in # ((((
250: *v*x* | *x*v* ) as_opts=-vx ;;
251: *v* ) as_opts=-v ;;
252: *x* ) as_opts=-x ;;
253: * ) as_opts= ;;
254: esac
255: exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256: # Admittedly, this is quite paranoid, since all the known shells bail
1.1.1.15 root 257: # out after a failed 'exec'.
1.1.1.10 root 258: printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
1.1 root 259: exit 255
260: fi
261:
1.1.1.10 root 262: if test x$as_have_required = xno
263: then :
264: printf "%s\n" "$0: This script requires a shell more modern than all"
265: printf "%s\n" "$0: the shells that I found on your system."
266: if test ${ZSH_VERSION+y} ; then
267: printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268: printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
1.1 root 269: else
1.1.1.10 root 270: printf "%s\n" "$0: Please tell [email protected] about your system,
1.1 root 271: $0: including any error possibly output before this
272: $0: message. Then install a modern shell, or manually run
273: $0: the script under such a shell if you do have one."
274: fi
275: exit 1
1.1.1.15 root 276: fi ;;
277: esac
1.1 root 278: fi
279: fi
280: SHELL=${CONFIG_SHELL-/bin/sh}
281: export SHELL
282: # Unset more variables known to interfere with behavior of common tools.
283: CLICOLOR_FORCE= GREP_OPTIONS=
284: unset CLICOLOR_FORCE GREP_OPTIONS
285:
286: ## --------------------- ##
287: ## M4sh Shell Functions. ##
288: ## --------------------- ##
289: # as_fn_unset VAR
290: # ---------------
291: # Portably unset VAR.
292: as_fn_unset ()
293: {
294: { eval $1=; unset $1;}
295: }
296: as_unset=as_fn_unset
297:
1.1.1.10 root 298:
1.1 root 299: # as_fn_set_status STATUS
300: # -----------------------
301: # Set $? to STATUS, without forking.
302: as_fn_set_status ()
303: {
304: return $1
305: } # as_fn_set_status
306:
307: # as_fn_exit STATUS
308: # -----------------
309: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310: as_fn_exit ()
311: {
312: set +e
313: as_fn_set_status $1
314: exit $1
315: } # as_fn_exit
316:
317: # as_fn_mkdir_p
318: # -------------
319: # Create "$as_dir" as a directory, including parents if necessary.
320: as_fn_mkdir_p ()
321: {
322:
323: case $as_dir in #(
324: -*) as_dir=./$as_dir;;
325: esac
326: test -d "$as_dir" || eval $as_mkdir_p || {
327: as_dirs=
328: while :; do
329: case $as_dir in #(
1.1.1.10 root 330: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.1 root 331: *) as_qdir=$as_dir;;
332: esac
333: as_dirs="'$as_qdir' $as_dirs"
334: as_dir=`$as_dirname -- "$as_dir" ||
335: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336: X"$as_dir" : 'X\(//\)[^/]' \| \
337: X"$as_dir" : 'X\(//\)$' \| \
338: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.10 root 339: printf "%s\n" X"$as_dir" |
1.1 root 340: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341: s//\1/
342: q
343: }
344: /^X\(\/\/\)[^/].*/{
345: s//\1/
346: q
347: }
348: /^X\(\/\/\)$/{
349: s//\1/
350: q
351: }
352: /^X\(\/\).*/{
353: s//\1/
354: q
355: }
356: s/.*/./; q'`
357: test -d "$as_dir" && break
358: done
359: test -z "$as_dirs" || eval "mkdir $as_dirs"
360: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361:
362:
363: } # as_fn_mkdir_p
364:
365: # as_fn_executable_p FILE
366: # -----------------------
367: # Test if FILE is an executable regular file.
368: as_fn_executable_p ()
369: {
370: test -f "$1" && test -x "$1"
371: } # as_fn_executable_p
372: # as_fn_append VAR VALUE
373: # ----------------------
374: # Append the text in VALUE to the end of the definition contained in VAR. Take
375: # advantage of any shell optimizations that allow amortized linear growth over
376: # repeated appends, instead of the typical quadratic growth present in naive
377: # implementations.
1.1.1.10 root 378: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
379: then :
1.1 root 380: eval 'as_fn_append ()
381: {
382: eval $1+=\$2
383: }'
1.1.1.15 root 384: else case e in #(
385: e) as_fn_append ()
1.1 root 386: {
387: eval $1=\$$1\$2
1.1.1.15 root 388: } ;;
389: esac
1.1 root 390: fi # as_fn_append
391:
392: # as_fn_arith ARG...
393: # ------------------
394: # Perform arithmetic evaluation on the ARGs, and store the result in the
395: # global $as_val. Take advantage of shells that can avoid forks. The arguments
396: # must be portable across $(()) and expr.
1.1.1.10 root 397: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
398: then :
1.1 root 399: eval 'as_fn_arith ()
400: {
401: as_val=$(( $* ))
402: }'
1.1.1.15 root 403: else case e in #(
404: e) as_fn_arith ()
1.1 root 405: {
406: as_val=`expr "$@" || test $? -eq 1`
1.1.1.15 root 407: } ;;
408: esac
1.1 root 409: fi # as_fn_arith
410:
411:
412: # as_fn_error STATUS ERROR [LINENO LOG_FD]
413: # ----------------------------------------
414: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
415: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
416: # script with STATUS, using 1 if that was 0.
417: as_fn_error ()
418: {
419: as_status=$1; test $as_status -eq 0 && as_status=1
420: if test "$4"; then
421: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.10 root 422: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.1 root 423: fi
1.1.1.10 root 424: printf "%s\n" "$as_me: error: $2" >&2
1.1 root 425: as_fn_exit $as_status
426: } # as_fn_error
427:
428: if expr a : '\(a\)' >/dev/null 2>&1 &&
429: test "X`expr 00001 : '.*\(...\)'`" = X001; then
430: as_expr=expr
431: else
432: as_expr=false
433: fi
434:
435: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436: as_basename=basename
437: else
438: as_basename=false
439: fi
440:
441: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
442: as_dirname=dirname
443: else
444: as_dirname=false
445: fi
446:
447: as_me=`$as_basename -- "$0" ||
448: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
449: X"$0" : 'X\(//\)$' \| \
450: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.10 root 451: printf "%s\n" X/"$0" |
1.1 root 452: sed '/^.*\/\([^/][^/]*\)\/*$/{
453: s//\1/
454: q
455: }
456: /^X\/\(\/\/\)$/{
457: s//\1/
458: q
459: }
460: /^X\/\(\/\).*/{
461: s//\1/
462: q
463: }
464: s/.*/./; q'`
465:
466: # Avoid depending upon Character Ranges.
467: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
468: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
469: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
470: as_cr_digits='0123456789'
471: as_cr_alnum=$as_cr_Letters$as_cr_digits
472:
473:
474: as_lineno_1=$LINENO as_lineno_1a=$LINENO
475: as_lineno_2=$LINENO as_lineno_2a=$LINENO
476: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
477: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
478: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
479: sed -n '
480: p
481: /[$]LINENO/=
482: ' <$as_myself |
483: sed '
1.1.1.15 root 484: t clear
485: :clear
1.1 root 486: s/[$]LINENO.*/&-/
487: t lineno
488: b
489: :lineno
490: N
491: :loop
492: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493: t loop
494: s/-\n.*//
495: ' >$as_me.lineno &&
496: chmod +x "$as_me.lineno" ||
1.1.1.10 root 497: { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 root 498:
499: # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500: # already done that, so ensure we don't try to do so again and fall
501: # in an infinite loop. This has already happened in practice.
502: _as_can_reexec=no; export _as_can_reexec
503: # Don't try to exec as it changes $[0], causing all sort of problems
504: # (the dirname of $[0] is not the place where we might find the
505: # original and so on. Autoconf is especially sensitive to this).
506: . "./$as_me.lineno"
507: # Exit status is that of the last command.
508: exit
509: }
510:
1.1.1.10 root 511:
512: # Determine whether it's possible to make 'echo' print without a newline.
513: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
514: # for compatibility with existing Makefiles.
1.1 root 515: ECHO_C= ECHO_N= ECHO_T=
516: case `echo -n x` in #(((((
517: -n*)
518: case `echo 'xy\c'` in
519: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
520: xy) ECHO_C='\c';;
521: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
522: ECHO_T=' ';;
523: esac;;
524: *)
525: ECHO_N='-n';;
526: esac
527:
1.1.1.10 root 528: # For backward compatibility with old third-party macros, we provide
529: # the shell variables $as_echo and $as_echo_n. New code should use
530: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
531: as_echo='printf %s\n'
532: as_echo_n='printf %s'
533:
1.1 root 534: rm -f conf$$ conf$$.exe conf$$.file
535: if test -d conf$$.dir; then
536: rm -f conf$$.dir/conf$$.file
537: else
538: rm -f conf$$.dir
539: mkdir conf$$.dir 2>/dev/null
540: fi
541: if (echo >conf$$.file) 2>/dev/null; then
542: if ln -s conf$$.file conf$$ 2>/dev/null; then
543: as_ln_s='ln -s'
544: # ... but there are two gotchas:
1.1.1.15 root 545: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
546: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
547: # In both cases, we have to default to 'cp -pR'.
1.1 root 548: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
549: as_ln_s='cp -pR'
550: elif ln conf$$.file conf$$ 2>/dev/null; then
551: as_ln_s=ln
552: else
553: as_ln_s='cp -pR'
554: fi
555: else
556: as_ln_s='cp -pR'
557: fi
558: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
559: rmdir conf$$.dir 2>/dev/null
560:
561: if mkdir -p . 2>/dev/null; then
562: as_mkdir_p='mkdir -p "$as_dir"'
563: else
564: test -d ./-p && rmdir ./-p
565: as_mkdir_p=false
566: fi
567:
568: as_test_x='test -x'
569: as_executable_p=as_fn_executable_p
570:
571: # Sed expression to map a string onto a valid CPP name.
1.1.1.15 root 572: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
573: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.1 root 574:
575: # Sed expression to map a string onto a valid variable name.
1.1.1.15 root 576: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
577: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.1 root 578:
579:
580: test -n "$DJDIR" || exec 7<&0 </dev/null
581: exec 6>&1
582:
583: # Name of the host.
584: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
585: # so uname gets run too.
586: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
587:
588: #
589: # Initializations.
590: #
591: ac_default_prefix=/usr/local
592: ac_clean_files=
593: ac_config_libobj_dir=.
594: LIBOBJS=
595: cross_compiling=no
596: subdirs=
597: MFLAGS=
598: MAKEFLAGS=
599:
600: # Identity of this package.
1.1.1.3 root 601: PACKAGE_NAME='nono'
602: PACKAGE_TARNAME='nono'
1.1 root 603: PACKAGE_VERSION='0.0'
1.1.1.3 root 604: PACKAGE_STRING='nono 0.0'
1.1 root 605: PACKAGE_BUGREPORT=''
606: PACKAGE_URL=''
607:
608: ac_unique_file="wx/wxapp.cpp"
609: # Factoring default headers for most tests.
610: ac_includes_default="\
1.1.1.10 root 611: #include <stddef.h>
612: #ifdef HAVE_STDIO_H
613: # include <stdio.h>
1.1 root 614: #endif
1.1.1.10 root 615: #ifdef HAVE_STDLIB_H
1.1 root 616: # include <stdlib.h>
617: #endif
618: #ifdef HAVE_STRING_H
619: # include <string.h>
620: #endif
621: #ifdef HAVE_INTTYPES_H
622: # include <inttypes.h>
623: #endif
624: #ifdef HAVE_STDINT_H
625: # include <stdint.h>
626: #endif
1.1.1.10 root 627: #ifdef HAVE_STRINGS_H
628: # include <strings.h>
629: #endif
630: #ifdef HAVE_SYS_TYPES_H
631: # include <sys/types.h>
632: #endif
633: #ifdef HAVE_SYS_STAT_H
634: # include <sys/stat.h>
635: #endif
1.1 root 636: #ifdef HAVE_UNISTD_H
637: # include <unistd.h>
638: #endif"
639:
1.1.1.10 root 640: ac_header_cxx_list=
1.1 root 641: ac_subst_vars='LTLIBOBJS
642: LIBOBJS
1.1.1.14 root 643: ICONV_LIBS
644: ICONV_CPPFLAGS
645: NONO_LIBS
646: NONO_CPPFLAGS
1.1.1.5 root 647: MSGFMT
1.1 root 648: WXWIDGETS_LIBS
649: WXWIDGETS_CPPFLAGS
1.1.1.10 root 650: WITH_GUI
1.1.1.14 root 651: WX_MAJORMINOR
1.1.1.16! root 652: HOSTNET_SLIRP
1.1.1.8 root 653: HOSTNET_BPF
654: HOSTNET_TAP
655: HOSTNET_AFPACKET
1.1.1.15 root 656: HOST_HAS_NEON
1.1.1.14 root 657: HOST_HAS_AVX2
1.1.1.3 root 658: WARNFLAGS_CXX
659: WARNFLAGS_C
1.1.1.4 root 660: COMPILER
1.1.1.6 root 661: host_os
662: host_vendor
663: host_cpu
664: host
665: build_os
666: build_vendor
667: build_cpu
668: build
1.1.1.3 root 669: INSTALL_DATA
670: INSTALL_SCRIPT
671: INSTALL_PROGRAM
1.1 root 672: ac_ct_CC
673: CFLAGS
674: CC
675: OBJEXT
676: EXEEXT
677: ac_ct_CXX
678: CPPFLAGS
679: LDFLAGS
680: CXXFLAGS
681: CXX
682: target_alias
683: host_alias
684: build_alias
685: LIBS
686: ECHO_T
687: ECHO_N
688: ECHO_C
689: DEFS
690: mandir
691: localedir
692: libdir
693: psdir
694: pdfdir
695: dvidir
696: htmldir
697: infodir
698: docdir
699: oldincludedir
700: includedir
1.1.1.10 root 701: runstatedir
1.1 root 702: localstatedir
703: sharedstatedir
704: sysconfdir
705: datadir
706: datarootdir
707: libexecdir
708: sbindir
709: bindir
710: program_transform_name
711: prefix
712: exec_prefix
713: PACKAGE_URL
714: PACKAGE_BUGREPORT
715: PACKAGE_STRING
716: PACKAGE_VERSION
717: PACKAGE_TARNAME
718: PACKAGE_NAME
719: PATH_SEPARATOR
720: SHELL'
721: ac_subst_files=''
722: ac_user_opts='
723: enable_option_checking
1.1.1.14 root 724: enable_avx2
1.1.1.15 root 725: enable_neon
1.1.1.16! root 726: with_libslirp
1.1.1.10 root 727: with_gui
1.1 root 728: '
729: ac_precious_vars='build_alias
730: host_alias
731: target_alias
732: CXX
733: CXXFLAGS
734: LDFLAGS
735: LIBS
736: CPPFLAGS
737: CCC
738: CC
1.1.1.10 root 739: CFLAGS'
1.1 root 740:
741:
742: # Initialize some variables set by options.
743: ac_init_help=
744: ac_init_version=false
745: ac_unrecognized_opts=
746: ac_unrecognized_sep=
747: # The variables have the same names as the options, with
748: # dashes changed to underlines.
749: cache_file=/dev/null
750: exec_prefix=NONE
751: no_create=
752: no_recursion=
753: prefix=NONE
754: program_prefix=NONE
755: program_suffix=NONE
756: program_transform_name=s,x,x,
757: silent=
758: site=
759: srcdir=
760: verbose=
761: x_includes=NONE
762: x_libraries=NONE
763:
764: # Installation directory options.
765: # These are left unexpanded so users can "make install exec_prefix=/foo"
766: # and all the variables that are supposed to be based on exec_prefix
767: # by default will actually change.
768: # Use braces instead of parens because sh, perl, etc. also accept them.
769: # (The list follows the same order as the GNU Coding Standards.)
770: bindir='${exec_prefix}/bin'
771: sbindir='${exec_prefix}/sbin'
772: libexecdir='${exec_prefix}/libexec'
773: datarootdir='${prefix}/share'
774: datadir='${datarootdir}'
775: sysconfdir='${prefix}/etc'
776: sharedstatedir='${prefix}/com'
777: localstatedir='${prefix}/var'
1.1.1.10 root 778: runstatedir='${localstatedir}/run'
1.1 root 779: includedir='${prefix}/include'
780: oldincludedir='/usr/include'
781: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
782: infodir='${datarootdir}/info'
783: htmldir='${docdir}'
784: dvidir='${docdir}'
785: pdfdir='${docdir}'
786: psdir='${docdir}'
787: libdir='${exec_prefix}/lib'
788: localedir='${datarootdir}/locale'
789: mandir='${datarootdir}/man'
790:
791: ac_prev=
792: ac_dashdash=
793: for ac_option
794: do
795: # If the previous option needs an argument, assign it.
796: if test -n "$ac_prev"; then
797: eval $ac_prev=\$ac_option
798: ac_prev=
799: continue
800: fi
801:
802: case $ac_option in
803: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804: *=) ac_optarg= ;;
805: *) ac_optarg=yes ;;
806: esac
807:
808: case $ac_dashdash$ac_option in
809: --)
810: ac_dashdash=yes ;;
811:
812: -bindir | --bindir | --bindi | --bind | --bin | --bi)
813: ac_prev=bindir ;;
814: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815: bindir=$ac_optarg ;;
816:
817: -build | --build | --buil | --bui | --bu)
818: ac_prev=build_alias ;;
819: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
820: build_alias=$ac_optarg ;;
821:
822: -cache-file | --cache-file | --cache-fil | --cache-fi \
823: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
824: ac_prev=cache_file ;;
825: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
826: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
827: cache_file=$ac_optarg ;;
828:
829: --config-cache | -C)
830: cache_file=config.cache ;;
831:
832: -datadir | --datadir | --datadi | --datad)
833: ac_prev=datadir ;;
834: -datadir=* | --datadir=* | --datadi=* | --datad=*)
835: datadir=$ac_optarg ;;
836:
837: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
838: | --dataroo | --dataro | --datar)
839: ac_prev=datarootdir ;;
840: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
841: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
842: datarootdir=$ac_optarg ;;
843:
844: -disable-* | --disable-*)
845: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846: # Reject names that are not valid shell variable names.
847: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.15 root 848: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.1 root 849: ac_useropt_orig=$ac_useropt
1.1.1.10 root 850: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 root 851: case $ac_user_opts in
852: *"
853: "enable_$ac_useropt"
854: "*) ;;
855: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
856: ac_unrecognized_sep=', ';;
857: esac
858: eval enable_$ac_useropt=no ;;
859:
860: -docdir | --docdir | --docdi | --doc | --do)
861: ac_prev=docdir ;;
862: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863: docdir=$ac_optarg ;;
864:
865: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866: ac_prev=dvidir ;;
867: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868: dvidir=$ac_optarg ;;
869:
870: -enable-* | --enable-*)
871: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872: # Reject names that are not valid shell variable names.
873: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.15 root 874: as_fn_error $? "invalid feature name: '$ac_useropt'"
1.1 root 875: ac_useropt_orig=$ac_useropt
1.1.1.10 root 876: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 root 877: case $ac_user_opts in
878: *"
879: "enable_$ac_useropt"
880: "*) ;;
881: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
882: ac_unrecognized_sep=', ';;
883: esac
884: eval enable_$ac_useropt=\$ac_optarg ;;
885:
886: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
887: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
888: | --exec | --exe | --ex)
889: ac_prev=exec_prefix ;;
890: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
891: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
892: | --exec=* | --exe=* | --ex=*)
893: exec_prefix=$ac_optarg ;;
894:
895: -gas | --gas | --ga | --g)
896: # Obsolete; use --with-gas.
897: with_gas=yes ;;
898:
899: -help | --help | --hel | --he | -h)
900: ac_init_help=long ;;
901: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
902: ac_init_help=recursive ;;
903: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
904: ac_init_help=short ;;
905:
906: -host | --host | --hos | --ho)
907: ac_prev=host_alias ;;
908: -host=* | --host=* | --hos=* | --ho=*)
909: host_alias=$ac_optarg ;;
910:
911: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
912: ac_prev=htmldir ;;
913: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
914: | --ht=*)
915: htmldir=$ac_optarg ;;
916:
917: -includedir | --includedir | --includedi | --included | --include \
918: | --includ | --inclu | --incl | --inc)
919: ac_prev=includedir ;;
920: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
921: | --includ=* | --inclu=* | --incl=* | --inc=*)
922: includedir=$ac_optarg ;;
923:
924: -infodir | --infodir | --infodi | --infod | --info | --inf)
925: ac_prev=infodir ;;
926: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
927: infodir=$ac_optarg ;;
928:
929: -libdir | --libdir | --libdi | --libd)
930: ac_prev=libdir ;;
931: -libdir=* | --libdir=* | --libdi=* | --libd=*)
932: libdir=$ac_optarg ;;
933:
934: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
935: | --libexe | --libex | --libe)
936: ac_prev=libexecdir ;;
937: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
938: | --libexe=* | --libex=* | --libe=*)
939: libexecdir=$ac_optarg ;;
940:
941: -localedir | --localedir | --localedi | --localed | --locale)
942: ac_prev=localedir ;;
943: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
944: localedir=$ac_optarg ;;
945:
946: -localstatedir | --localstatedir | --localstatedi | --localstated \
947: | --localstate | --localstat | --localsta | --localst | --locals)
948: ac_prev=localstatedir ;;
949: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
950: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
951: localstatedir=$ac_optarg ;;
952:
953: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
954: ac_prev=mandir ;;
955: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
956: mandir=$ac_optarg ;;
957:
958: -nfp | --nfp | --nf)
959: # Obsolete; use --without-fp.
960: with_fp=no ;;
961:
962: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
963: | --no-cr | --no-c | -n)
964: no_create=yes ;;
965:
966: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
967: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
968: no_recursion=yes ;;
969:
970: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
971: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
972: | --oldin | --oldi | --old | --ol | --o)
973: ac_prev=oldincludedir ;;
974: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
975: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
976: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
977: oldincludedir=$ac_optarg ;;
978:
979: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
980: ac_prev=prefix ;;
981: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
982: prefix=$ac_optarg ;;
983:
984: -program-prefix | --program-prefix | --program-prefi | --program-pref \
985: | --program-pre | --program-pr | --program-p)
986: ac_prev=program_prefix ;;
987: -program-prefix=* | --program-prefix=* | --program-prefi=* \
988: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
989: program_prefix=$ac_optarg ;;
990:
991: -program-suffix | --program-suffix | --program-suffi | --program-suff \
992: | --program-suf | --program-su | --program-s)
993: ac_prev=program_suffix ;;
994: -program-suffix=* | --program-suffix=* | --program-suffi=* \
995: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
996: program_suffix=$ac_optarg ;;
997:
998: -program-transform-name | --program-transform-name \
999: | --program-transform-nam | --program-transform-na \
1000: | --program-transform-n | --program-transform- \
1001: | --program-transform | --program-transfor \
1002: | --program-transfo | --program-transf \
1003: | --program-trans | --program-tran \
1004: | --progr-tra | --program-tr | --program-t)
1005: ac_prev=program_transform_name ;;
1006: -program-transform-name=* | --program-transform-name=* \
1007: | --program-transform-nam=* | --program-transform-na=* \
1008: | --program-transform-n=* | --program-transform-=* \
1009: | --program-transform=* | --program-transfor=* \
1010: | --program-transfo=* | --program-transf=* \
1011: | --program-trans=* | --program-tran=* \
1012: | --progr-tra=* | --program-tr=* | --program-t=*)
1013: program_transform_name=$ac_optarg ;;
1014:
1015: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1016: ac_prev=pdfdir ;;
1017: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1018: pdfdir=$ac_optarg ;;
1019:
1020: -psdir | --psdir | --psdi | --psd | --ps)
1021: ac_prev=psdir ;;
1022: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1023: psdir=$ac_optarg ;;
1024:
1025: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1026: | -silent | --silent | --silen | --sile | --sil)
1027: silent=yes ;;
1028:
1.1.1.10 root 1029: -runstatedir | --runstatedir | --runstatedi | --runstated \
1030: | --runstate | --runstat | --runsta | --runst | --runs \
1031: | --run | --ru | --r)
1032: ac_prev=runstatedir ;;
1033: -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1034: | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1035: | --run=* | --ru=* | --r=*)
1036: runstatedir=$ac_optarg ;;
1037:
1.1 root 1038: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039: ac_prev=sbindir ;;
1040: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041: | --sbi=* | --sb=*)
1042: sbindir=$ac_optarg ;;
1043:
1044: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046: | --sharedst | --shareds | --shared | --share | --shar \
1047: | --sha | --sh)
1048: ac_prev=sharedstatedir ;;
1049: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052: | --sha=* | --sh=*)
1053: sharedstatedir=$ac_optarg ;;
1054:
1055: -site | --site | --sit)
1056: ac_prev=site ;;
1057: -site=* | --site=* | --sit=*)
1058: site=$ac_optarg ;;
1059:
1060: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061: ac_prev=srcdir ;;
1062: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063: srcdir=$ac_optarg ;;
1064:
1065: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066: | --syscon | --sysco | --sysc | --sys | --sy)
1067: ac_prev=sysconfdir ;;
1068: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070: sysconfdir=$ac_optarg ;;
1071:
1072: -target | --target | --targe | --targ | --tar | --ta | --t)
1073: ac_prev=target_alias ;;
1074: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075: target_alias=$ac_optarg ;;
1076:
1077: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078: verbose=yes ;;
1079:
1080: -version | --version | --versio | --versi | --vers | -V)
1081: ac_init_version=: ;;
1082:
1083: -with-* | --with-*)
1084: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085: # Reject names that are not valid shell variable names.
1086: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.15 root 1087: as_fn_error $? "invalid package name: '$ac_useropt'"
1.1 root 1088: ac_useropt_orig=$ac_useropt
1.1.1.10 root 1089: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 root 1090: case $ac_user_opts in
1091: *"
1092: "with_$ac_useropt"
1093: "*) ;;
1094: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095: ac_unrecognized_sep=', ';;
1096: esac
1097: eval with_$ac_useropt=\$ac_optarg ;;
1098:
1099: -without-* | --without-*)
1100: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101: # Reject names that are not valid shell variable names.
1102: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.1.1.15 root 1103: as_fn_error $? "invalid package name: '$ac_useropt'"
1.1 root 1104: ac_useropt_orig=$ac_useropt
1.1.1.10 root 1105: ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1.1 root 1106: case $ac_user_opts in
1107: *"
1108: "with_$ac_useropt"
1109: "*) ;;
1110: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111: ac_unrecognized_sep=', ';;
1112: esac
1113: eval with_$ac_useropt=no ;;
1114:
1115: --x)
1116: # Obsolete; use --with-x.
1117: with_x=yes ;;
1118:
1119: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120: | --x-incl | --x-inc | --x-in | --x-i)
1121: ac_prev=x_includes ;;
1122: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124: x_includes=$ac_optarg ;;
1125:
1126: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128: ac_prev=x_libraries ;;
1129: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131: x_libraries=$ac_optarg ;;
1132:
1.1.1.15 root 1133: -*) as_fn_error $? "unrecognized option: '$ac_option'
1134: Try '$0 --help' for more information"
1.1 root 1135: ;;
1136:
1137: *=*)
1138: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139: # Reject names that are not valid shell variable names.
1140: case $ac_envvar in #(
1141: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.1.1.15 root 1142: as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1.1 root 1143: esac
1144: eval $ac_envvar=\$ac_optarg
1145: export $ac_envvar ;;
1146:
1147: *)
1148: # FIXME: should be removed in autoconf 3.0.
1.1.1.10 root 1149: printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 root 1150: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.1.1.10 root 1151: printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1 root 1152: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1153: ;;
1154:
1155: esac
1156: done
1157:
1158: if test -n "$ac_prev"; then
1159: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160: as_fn_error $? "missing argument to $ac_option"
1161: fi
1162:
1163: if test -n "$ac_unrecognized_opts"; then
1164: case $enable_option_checking in
1165: no) ;;
1166: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.1.1.10 root 1167: *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1.1 root 1168: esac
1169: fi
1170:
1171: # Check all directory arguments for consistency.
1172: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173: datadir sysconfdir sharedstatedir localstatedir includedir \
1174: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1.1.1.10 root 1175: libdir localedir mandir runstatedir
1.1 root 1176: do
1177: eval ac_val=\$$ac_var
1178: # Remove trailing slashes.
1179: case $ac_val in
1180: */ )
1181: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182: eval $ac_var=\$ac_val;;
1183: esac
1184: # Be sure to have absolute directory names.
1185: case $ac_val in
1186: [\\/$]* | ?:[\\/]* ) continue;;
1187: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188: esac
1189: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1190: done
1191:
1.1.1.15 root 1192: # There might be people who depend on the old broken behavior: '$host'
1.1 root 1193: # used to hold the argument of --host etc.
1194: # FIXME: To remove some day.
1195: build=$build_alias
1196: host=$host_alias
1197: target=$target_alias
1198:
1199: # FIXME: To remove some day.
1200: if test "x$host_alias" != x; then
1201: if test "x$build_alias" = x; then
1202: cross_compiling=maybe
1203: elif test "x$build_alias" != "x$host_alias"; then
1204: cross_compiling=yes
1205: fi
1206: fi
1207:
1208: ac_tool_prefix=
1209: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210:
1211: test "$silent" = yes && exec 6>/dev/null
1212:
1213:
1214: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215: ac_ls_di=`ls -di .` &&
1216: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217: as_fn_error $? "working directory cannot be determined"
1218: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219: as_fn_error $? "pwd does not report name of working directory"
1220:
1221:
1222: # Find the source files, if location was not specified.
1223: if test -z "$srcdir"; then
1224: ac_srcdir_defaulted=yes
1225: # Try the directory containing this script, then the parent directory.
1226: ac_confdir=`$as_dirname -- "$as_myself" ||
1227: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228: X"$as_myself" : 'X\(//\)[^/]' \| \
1229: X"$as_myself" : 'X\(//\)$' \| \
1230: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.10 root 1231: printf "%s\n" X"$as_myself" |
1.1 root 1232: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233: s//\1/
1234: q
1235: }
1236: /^X\(\/\/\)[^/].*/{
1237: s//\1/
1238: q
1239: }
1240: /^X\(\/\/\)$/{
1241: s//\1/
1242: q
1243: }
1244: /^X\(\/\).*/{
1245: s//\1/
1246: q
1247: }
1248: s/.*/./; q'`
1249: srcdir=$ac_confdir
1250: if test ! -r "$srcdir/$ac_unique_file"; then
1251: srcdir=..
1252: fi
1253: else
1254: ac_srcdir_defaulted=no
1255: fi
1256: if test ! -r "$srcdir/$ac_unique_file"; then
1257: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1259: fi
1.1.1.15 root 1260: ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1.1 root 1261: ac_abs_confdir=`(
1262: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1263: pwd)`
1264: # When building in place, set srcdir=.
1265: if test "$ac_abs_confdir" = "$ac_pwd"; then
1266: srcdir=.
1267: fi
1268: # Remove unnecessary trailing slashes from srcdir.
1269: # Double slashes in file names in object file debugging info
1270: # mess up M-x gdb in Emacs.
1271: case $srcdir in
1272: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273: esac
1274: for ac_var in $ac_precious_vars; do
1275: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276: eval ac_env_${ac_var}_value=\$${ac_var}
1277: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279: done
1280:
1281: #
1282: # Report the --help message.
1283: #
1284: if test "$ac_init_help" = "long"; then
1285: # Omit some internal or obsolete options to make the list less imposing.
1286: # This message is too long to be a string in the A/UX 3.1 sh.
1287: cat <<_ACEOF
1.1.1.15 root 1288: 'configure' configures nono 0.0 to adapt to many kinds of systems.
1.1 root 1289:
1290: Usage: $0 [OPTION]... [VAR=VALUE]...
1291:
1292: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293: VAR=VALUE. See below for descriptions of some of the useful variables.
1294:
1295: Defaults for the options are specified in brackets.
1296:
1297: Configuration:
1298: -h, --help display this help and exit
1299: --help=short display options specific to this package
1300: --help=recursive display the short help of all the included packages
1301: -V, --version display version information and exit
1.1.1.15 root 1302: -q, --quiet, --silent do not print 'checking ...' messages
1.1 root 1303: --cache-file=FILE cache test results in FILE [disabled]
1.1.1.15 root 1304: -C, --config-cache alias for '--cache-file=config.cache'
1.1 root 1305: -n, --no-create do not create output files
1.1.1.15 root 1306: --srcdir=DIR find the sources in DIR [configure dir or '..']
1.1 root 1307:
1308: Installation directories:
1309: --prefix=PREFIX install architecture-independent files in PREFIX
1310: [$ac_default_prefix]
1311: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1312: [PREFIX]
1313:
1.1.1.15 root 1314: By default, 'make install' will install all the files in
1315: '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1316: an installation prefix other than '$ac_default_prefix' using '--prefix',
1317: for instance '--prefix=\$HOME'.
1.1 root 1318:
1319: For better control, use the options below.
1320:
1321: Fine tuning of the installation directories:
1322: --bindir=DIR user executables [EPREFIX/bin]
1323: --sbindir=DIR system admin executables [EPREFIX/sbin]
1324: --libexecdir=DIR program executables [EPREFIX/libexec]
1325: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.1.1.10 root 1328: --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1.1 root 1329: --libdir=DIR object code libraries [EPREFIX/lib]
1330: --includedir=DIR C header files [PREFIX/include]
1331: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334: --infodir=DIR info documentation [DATAROOTDIR/info]
1335: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336: --mandir=DIR man documentation [DATAROOTDIR/man]
1.1.1.3 root 1337: --docdir=DIR documentation root [DATAROOTDIR/doc/nono]
1.1 root 1338: --htmldir=DIR html documentation [DOCDIR]
1339: --dvidir=DIR dvi documentation [DOCDIR]
1340: --pdfdir=DIR pdf documentation [DOCDIR]
1341: --psdir=DIR ps documentation [DOCDIR]
1342: _ACEOF
1343:
1344: cat <<\_ACEOF
1.1.1.6 root 1345:
1346: System types:
1347: --build=BUILD configure for building on BUILD [guessed]
1348: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1.1 root 1349: _ACEOF
1350: fi
1351:
1352: if test -n "$ac_init_help"; then
1353: case $ac_init_help in
1.1.1.3 root 1354: short | recursive ) echo "Configuration of nono 0.0:";;
1.1 root 1355: esac
1356: cat <<\_ACEOF
1357:
1.1.1.14 root 1358: Optional Features:
1359: --disable-option-checking ignore unrecognized --enable/--with options
1360: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1361: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1362: --disable-avx2 disable avx2 support
1.1.1.15 root 1363: --disable-neon disable NEON support
1.1.1.14 root 1364:
1.1.1.10 root 1365: Optional Packages:
1366: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1367: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.1.1.16! root 1368: --without-libslirp disable usermode network (using SLIRP)
1.1.1.10 root 1369: --without-gui disable GUI support
1370:
1.1 root 1371: Some influential environment variables:
1372: CXX C++ compiler command
1373: CXXFLAGS C++ compiler flags
1374: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1375: nonstandard directory <lib dir>
1376: LIBS libraries to pass to the linker, e.g. -l<library>
1377: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1378: you have headers in a nonstandard directory <include dir>
1379: CC C compiler command
1380: CFLAGS C compiler flags
1381:
1.1.1.15 root 1382: Use these variables to override the choices made by 'configure' or to help
1.1 root 1383: it to find libraries and programs with nonstandard names/locations.
1384:
1385: Report bugs to the package provider.
1386: _ACEOF
1387: ac_status=$?
1388: fi
1389:
1390: if test "$ac_init_help" = "recursive"; then
1391: # If there are subdirs, report their specific --help.
1392: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393: test -d "$ac_dir" ||
1394: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1395: continue
1396: ac_builddir=.
1397:
1398: case "$ac_dir" in
1399: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400: *)
1.1.1.10 root 1401: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 root 1402: # A ".." for each directory in $ac_dir_suffix.
1.1.1.10 root 1403: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 root 1404: case $ac_top_builddir_sub in
1405: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407: esac ;;
1408: esac
1409: ac_abs_top_builddir=$ac_pwd
1410: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411: # for backward compatibility:
1412: ac_top_builddir=$ac_top_build_prefix
1413:
1414: case $srcdir in
1415: .) # We are building in place.
1416: ac_srcdir=.
1417: ac_top_srcdir=$ac_top_builddir_sub
1418: ac_abs_top_srcdir=$ac_pwd ;;
1419: [\\/]* | ?:[\\/]* ) # Absolute name.
1420: ac_srcdir=$srcdir$ac_dir_suffix;
1421: ac_top_srcdir=$srcdir
1422: ac_abs_top_srcdir=$srcdir ;;
1423: *) # Relative name.
1424: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425: ac_top_srcdir=$ac_top_build_prefix$srcdir
1426: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1427: esac
1428: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1429:
1430: cd "$ac_dir" || { ac_status=$?; continue; }
1.1.1.10 root 1431: # Check for configure.gnu first; this name is used for a wrapper for
1432: # Metaconfig's "Configure" on case-insensitive file systems.
1.1 root 1433: if test -f "$ac_srcdir/configure.gnu"; then
1434: echo &&
1435: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1436: elif test -f "$ac_srcdir/configure"; then
1437: echo &&
1438: $SHELL "$ac_srcdir/configure" --help=recursive
1439: else
1.1.1.10 root 1440: printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 root 1441: fi || ac_status=$?
1442: cd "$ac_pwd" || { ac_status=$?; break; }
1443: done
1444: fi
1445:
1446: test -n "$ac_init_help" && exit $ac_status
1447: if $ac_init_version; then
1448: cat <<\_ACEOF
1.1.1.3 root 1449: nono configure 0.0
1.1.1.15 root 1450: generated by GNU Autoconf 2.72
1.1 root 1451:
1.1.1.15 root 1452: Copyright (C) 2023 Free Software Foundation, Inc.
1.1 root 1453: This configure script is free software; the Free Software Foundation
1454: gives unlimited permission to copy, distribute and modify it.
1455: _ACEOF
1456: exit
1457: fi
1458:
1459: ## ------------------------ ##
1460: ## Autoconf initialization. ##
1461: ## ------------------------ ##
1462:
1463: # ac_fn_cxx_try_compile LINENO
1464: # ----------------------------
1465: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1466: ac_fn_cxx_try_compile ()
1467: {
1468: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.10 root 1469: rm -f conftest.$ac_objext conftest.beam
1.1 root 1470: if { { ac_try="$ac_compile"
1471: case "(($ac_try" in
1472: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1473: *) ac_try_echo=$ac_try;;
1474: esac
1475: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.10 root 1476: printf "%s\n" "$ac_try_echo"; } >&5
1.1 root 1477: (eval "$ac_compile") 2>conftest.err
1478: ac_status=$?
1479: if test -s conftest.err; then
1480: grep -v '^ *+' conftest.err >conftest.er1
1481: cat conftest.er1 >&5
1482: mv -f conftest.er1 conftest.err
1483: fi
1.1.1.10 root 1484: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 root 1485: test $ac_status = 0; } && {
1486: test -z "$ac_cxx_werror_flag" ||
1487: test ! -s conftest.err
1.1.1.10 root 1488: } && test -s conftest.$ac_objext
1489: then :
1.1 root 1490: ac_retval=0
1.1.1.15 root 1491: else case e in #(
1492: e) printf "%s\n" "$as_me: failed program was:" >&5
1.1 root 1493: sed 's/^/| /' conftest.$ac_ext >&5
1494:
1.1.1.15 root 1495: ac_retval=1 ;;
1496: esac
1.1 root 1497: fi
1498: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1499: as_fn_set_status $ac_retval
1500:
1501: } # ac_fn_cxx_try_compile
1502:
1503: # ac_fn_c_try_compile LINENO
1504: # --------------------------
1505: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1506: ac_fn_c_try_compile ()
1507: {
1508: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.10 root 1509: rm -f conftest.$ac_objext conftest.beam
1.1 root 1510: if { { ac_try="$ac_compile"
1511: case "(($ac_try" in
1512: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513: *) ac_try_echo=$ac_try;;
1514: esac
1515: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.10 root 1516: printf "%s\n" "$ac_try_echo"; } >&5
1.1 root 1517: (eval "$ac_compile") 2>conftest.err
1518: ac_status=$?
1519: if test -s conftest.err; then
1520: grep -v '^ *+' conftest.err >conftest.er1
1521: cat conftest.er1 >&5
1522: mv -f conftest.er1 conftest.err
1523: fi
1.1.1.10 root 1524: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 root 1525: test $ac_status = 0; } && {
1526: test -z "$ac_c_werror_flag" ||
1527: test ! -s conftest.err
1.1.1.10 root 1528: } && test -s conftest.$ac_objext
1529: then :
1.1 root 1530: ac_retval=0
1.1.1.15 root 1531: else case e in #(
1532: e) printf "%s\n" "$as_me: failed program was:" >&5
1.1 root 1533: sed 's/^/| /' conftest.$ac_ext >&5
1534:
1.1.1.15 root 1535: ac_retval=1 ;;
1536: esac
1.1 root 1537: fi
1538: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1539: as_fn_set_status $ac_retval
1540:
1541: } # ac_fn_c_try_compile
1542:
1.1.1.10 root 1543: # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1544: # ---------------------------------------------------------
1.1 root 1545: # Tests whether HEADER exists and can be compiled using the include files in
1546: # INCLUDES, setting the cache variable VAR accordingly.
1.1.1.10 root 1547: ac_fn_cxx_check_header_compile ()
1.1 root 1548: {
1549: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.10 root 1550: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1551: printf %s "checking for $2... " >&6; }
1552: if eval test \${$3+y}
1553: then :
1554: printf %s "(cached) " >&6
1.1.1.15 root 1555: else case e in #(
1556: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 root 1557: /* end confdefs.h. */
1558: $4
1559: #include <$2>
1560: _ACEOF
1.1.1.10 root 1561: if ac_fn_cxx_try_compile "$LINENO"
1562: then :
1.1 root 1563: eval "$3=yes"
1.1.1.15 root 1564: else case e in #(
1565: e) eval "$3=no" ;;
1566: esac
1.1 root 1567: fi
1.1.1.15 root 1568: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1569: esac
1.1 root 1570: fi
1571: eval ac_res=\$$3
1.1.1.10 root 1572: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1573: printf "%s\n" "$ac_res" >&6; }
1.1 root 1574: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575:
1.1.1.10 root 1576: } # ac_fn_cxx_check_header_compile
1.1 root 1577:
1578: # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1579: # ---------------------------------------------
1580: # Tests whether TYPE exists after having included INCLUDES, setting cache
1581: # variable VAR accordingly.
1582: ac_fn_cxx_check_type ()
1583: {
1584: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.10 root 1585: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586: printf %s "checking for $2... " >&6; }
1587: if eval test \${$3+y}
1588: then :
1589: printf %s "(cached) " >&6
1.1.1.15 root 1590: else case e in #(
1591: e) eval "$3=no"
1.1 root 1592: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1593: /* end confdefs.h. */
1594: $4
1595: int
1.1.1.10 root 1596: main (void)
1.1 root 1597: {
1598: if (sizeof ($2))
1599: return 0;
1600: ;
1601: return 0;
1602: }
1603: _ACEOF
1.1.1.10 root 1604: if ac_fn_cxx_try_compile "$LINENO"
1605: then :
1.1 root 1606: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607: /* end confdefs.h. */
1608: $4
1609: int
1.1.1.10 root 1610: main (void)
1.1 root 1611: {
1612: if (sizeof (($2)))
1613: return 0;
1614: ;
1615: return 0;
1616: }
1617: _ACEOF
1.1.1.10 root 1618: if ac_fn_cxx_try_compile "$LINENO"
1619: then :
1.1 root 1620:
1.1.1.15 root 1621: else case e in #(
1622: e) eval "$3=yes" ;;
1623: esac
1.1 root 1624: fi
1.1.1.10 root 1625: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 1626: fi
1.1.1.15 root 1627: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1628: esac
1.1 root 1629: fi
1630: eval ac_res=\$$3
1.1.1.10 root 1631: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632: printf "%s\n" "$ac_res" >&6; }
1.1 root 1633: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634:
1635: } # ac_fn_cxx_check_type
1636:
1.1.1.14 root 1637: # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
1638: # ------------------------------------------------------
1639: # Tries to find if the field MEMBER exists in type AGGR, after including
1640: # INCLUDES, setting cache variable VAR accordingly.
1641: ac_fn_cxx_check_member ()
1642: {
1643: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1645: printf %s "checking for $2.$3... " >&6; }
1646: if eval test \${$4+y}
1647: then :
1648: printf %s "(cached) " >&6
1.1.1.15 root 1649: else case e in #(
1650: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1.14 root 1651: /* end confdefs.h. */
1652: $5
1653: int
1654: main (void)
1655: {
1656: static $2 ac_aggr;
1657: if (ac_aggr.$3)
1658: return 0;
1659: ;
1660: return 0;
1661: }
1662: _ACEOF
1663: if ac_fn_cxx_try_compile "$LINENO"
1664: then :
1665: eval "$4=yes"
1.1.1.15 root 1666: else case e in #(
1667: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1.14 root 1668: /* end confdefs.h. */
1669: $5
1670: int
1671: main (void)
1672: {
1673: static $2 ac_aggr;
1674: if (sizeof ac_aggr.$3)
1675: return 0;
1676: ;
1677: return 0;
1678: }
1679: _ACEOF
1680: if ac_fn_cxx_try_compile "$LINENO"
1681: then :
1682: eval "$4=yes"
1.1.1.15 root 1683: else case e in #(
1684: e) eval "$4=no" ;;
1685: esac
1.1.1.14 root 1686: fi
1.1.1.15 root 1687: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1688: esac
1.1.1.14 root 1689: fi
1.1.1.15 root 1690: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1691: esac
1.1.1.14 root 1692: fi
1693: eval ac_res=\$$4
1694: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695: printf "%s\n" "$ac_res" >&6; }
1696: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697:
1698: } # ac_fn_cxx_check_member
1699:
1.1 root 1700: # ac_fn_cxx_try_link LINENO
1701: # -------------------------
1702: # Try to link conftest.$ac_ext, and return whether this succeeded.
1703: ac_fn_cxx_try_link ()
1704: {
1705: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.10 root 1706: rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1.1 root 1707: if { { ac_try="$ac_link"
1708: case "(($ac_try" in
1709: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710: *) ac_try_echo=$ac_try;;
1711: esac
1712: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.10 root 1713: printf "%s\n" "$ac_try_echo"; } >&5
1.1 root 1714: (eval "$ac_link") 2>conftest.err
1715: ac_status=$?
1716: if test -s conftest.err; then
1717: grep -v '^ *+' conftest.err >conftest.er1
1718: cat conftest.er1 >&5
1719: mv -f conftest.er1 conftest.err
1720: fi
1.1.1.10 root 1721: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 root 1722: test $ac_status = 0; } && {
1723: test -z "$ac_cxx_werror_flag" ||
1724: test ! -s conftest.err
1725: } && test -s conftest$ac_exeext && {
1726: test "$cross_compiling" = yes ||
1727: test -x conftest$ac_exeext
1.1.1.10 root 1728: }
1729: then :
1.1 root 1730: ac_retval=0
1.1.1.15 root 1731: else case e in #(
1732: e) printf "%s\n" "$as_me: failed program was:" >&5
1.1 root 1733: sed 's/^/| /' conftest.$ac_ext >&5
1734:
1.1.1.15 root 1735: ac_retval=1 ;;
1736: esac
1.1 root 1737: fi
1738: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1739: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1740: # interfere with the next link command; also delete a directory that is
1741: # left behind by Apple's compiler. We do this before executing the actions.
1742: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744: as_fn_set_status $ac_retval
1745:
1746: } # ac_fn_cxx_try_link
1.1.1.10 root 1747: ac_configure_args_raw=
1748: for ac_arg
1749: do
1750: case $ac_arg in
1751: *\'*)
1752: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753: esac
1754: as_fn_append ac_configure_args_raw " '$ac_arg'"
1755: done
1756:
1757: case $ac_configure_args_raw in
1758: *$as_nl*)
1759: ac_safe_unquote= ;;
1760: *)
1761: ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1762: ac_unsafe_a="$ac_unsafe_z#~"
1763: ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1764: ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1765: esac
1766:
1.1 root 1767: cat >config.log <<_ACEOF
1768: This file contains any messages produced by compilers while
1769: running configure, to aid debugging if configure makes a mistake.
1770:
1.1.1.3 root 1771: It was created by nono $as_me 0.0, which was
1.1.1.15 root 1772: generated by GNU Autoconf 2.72. Invocation command line was
1.1 root 1773:
1.1.1.10 root 1774: $ $0$ac_configure_args_raw
1.1 root 1775:
1776: _ACEOF
1777: exec 5>>config.log
1778: {
1779: cat <<_ASUNAME
1780: ## --------- ##
1781: ## Platform. ##
1782: ## --------- ##
1783:
1784: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1785: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1786: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1787: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1788: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1789:
1790: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1791: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1792:
1793: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1794: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1795: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1796: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1797: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1798: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1799: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1800:
1801: _ASUNAME
1802:
1803: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804: for as_dir in $PATH
1805: do
1806: IFS=$as_save_IFS
1.1.1.10 root 1807: case $as_dir in #(((
1808: '') as_dir=./ ;;
1809: */) ;;
1810: *) as_dir=$as_dir/ ;;
1811: esac
1812: printf "%s\n" "PATH: $as_dir"
1.1 root 1813: done
1814: IFS=$as_save_IFS
1815:
1816: } >&5
1817:
1818: cat >&5 <<_ACEOF
1819:
1820:
1821: ## ----------- ##
1822: ## Core tests. ##
1823: ## ----------- ##
1824:
1825: _ACEOF
1826:
1827:
1828: # Keep a trace of the command line.
1829: # Strip out --no-create and --no-recursion so they do not pile up.
1830: # Strip out --silent because we don't want to record it for future runs.
1831: # Also quote any args containing shell meta-characters.
1832: # Make two passes to allow for proper duplicate-argument suppression.
1833: ac_configure_args=
1834: ac_configure_args0=
1835: ac_configure_args1=
1836: ac_must_keep_next=false
1837: for ac_pass in 1 2
1838: do
1839: for ac_arg
1840: do
1841: case $ac_arg in
1842: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1843: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1844: | -silent | --silent | --silen | --sile | --sil)
1845: continue ;;
1846: *\'*)
1.1.1.10 root 1847: ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 root 1848: esac
1849: case $ac_pass in
1850: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1851: 2)
1852: as_fn_append ac_configure_args1 " '$ac_arg'"
1853: if test $ac_must_keep_next = true; then
1854: ac_must_keep_next=false # Got value, back to normal.
1855: else
1856: case $ac_arg in
1857: *=* | --config-cache | -C | -disable-* | --disable-* \
1858: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1859: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1860: | -with-* | --with-* | -without-* | --without-* | --x)
1861: case "$ac_configure_args0 " in
1862: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1863: esac
1864: ;;
1865: -* ) ac_must_keep_next=true ;;
1866: esac
1867: fi
1868: as_fn_append ac_configure_args " '$ac_arg'"
1869: ;;
1870: esac
1871: done
1872: done
1873: { ac_configure_args0=; unset ac_configure_args0;}
1874: { ac_configure_args1=; unset ac_configure_args1;}
1875:
1876: # When interrupted or exit'd, cleanup temporary files, and complete
1877: # config.log. We remove comments because anyway the quotes in there
1878: # would cause problems or look ugly.
1879: # WARNING: Use '\'' to represent an apostrophe within the trap.
1880: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1881: trap 'exit_status=$?
1.1.1.10 root 1882: # Sanitize IFS.
1883: IFS=" "" $as_nl"
1.1 root 1884: # Save into config.log some information that might help in debugging.
1885: {
1886: echo
1887:
1.1.1.10 root 1888: printf "%s\n" "## ---------------- ##
1.1 root 1889: ## Cache variables. ##
1890: ## ---------------- ##"
1891: echo
1892: # The following way of writing the cache mishandles newlines in values,
1893: (
1894: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1895: eval ac_val=\$$ac_var
1896: case $ac_val in #(
1897: *${as_nl}*)
1898: case $ac_var in #(
1.1.1.10 root 1899: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1900: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 root 1901: esac
1902: case $ac_var in #(
1903: _ | IFS | as_nl) ;; #(
1904: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1905: *) { eval $ac_var=; unset $ac_var;} ;;
1906: esac ;;
1907: esac
1908: done
1909: (set) 2>&1 |
1910: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1911: *${as_nl}ac_space=\ *)
1912: sed -n \
1913: "s/'\''/'\''\\\\'\'''\''/g;
1914: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1915: ;; #(
1916: *)
1917: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1918: ;;
1919: esac |
1920: sort
1921: )
1922: echo
1923:
1.1.1.10 root 1924: printf "%s\n" "## ----------------- ##
1.1 root 1925: ## Output variables. ##
1926: ## ----------------- ##"
1927: echo
1928: for ac_var in $ac_subst_vars
1929: do
1930: eval ac_val=\$$ac_var
1931: case $ac_val in
1.1.1.10 root 1932: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 root 1933: esac
1.1.1.10 root 1934: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.1 root 1935: done | sort
1936: echo
1937:
1938: if test -n "$ac_subst_files"; then
1.1.1.10 root 1939: printf "%s\n" "## ------------------- ##
1.1 root 1940: ## File substitutions. ##
1941: ## ------------------- ##"
1942: echo
1943: for ac_var in $ac_subst_files
1944: do
1945: eval ac_val=\$$ac_var
1946: case $ac_val in
1.1.1.10 root 1947: *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1.1 root 1948: esac
1.1.1.10 root 1949: printf "%s\n" "$ac_var='\''$ac_val'\''"
1.1 root 1950: done | sort
1951: echo
1952: fi
1953:
1954: if test -s confdefs.h; then
1.1.1.10 root 1955: printf "%s\n" "## ----------- ##
1.1 root 1956: ## confdefs.h. ##
1957: ## ----------- ##"
1958: echo
1959: cat confdefs.h
1960: echo
1961: fi
1962: test "$ac_signal" != 0 &&
1.1.1.10 root 1963: printf "%s\n" "$as_me: caught signal $ac_signal"
1964: printf "%s\n" "$as_me: exit $exit_status"
1.1 root 1965: } >&5
1966: rm -f core *.core core.conftest.* &&
1967: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1968: exit $exit_status
1969: ' 0
1970: for ac_signal in 1 2 13 15; do
1971: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1972: done
1973: ac_signal=0
1974:
1975: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1976: rm -f -r conftest* confdefs.h
1977:
1.1.1.10 root 1978: printf "%s\n" "/* confdefs.h */" > confdefs.h
1.1 root 1979:
1980: # Predefined preprocessor variables.
1981:
1.1.1.10 root 1982: printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1.1 root 1983:
1.1.1.10 root 1984: printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1.1 root 1985:
1.1.1.10 root 1986: printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1.1 root 1987:
1.1.1.10 root 1988: printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1.1 root 1989:
1.1.1.10 root 1990: printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1.1 root 1991:
1.1.1.10 root 1992: printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1.1 root 1993:
1994:
1995: # Let the site file select an alternate cache file if it wants to.
1996: # Prefer an explicitly selected file to automatically selected ones.
1997: if test -n "$CONFIG_SITE"; then
1.1.1.10 root 1998: ac_site_files="$CONFIG_SITE"
1.1 root 1999: elif test "x$prefix" != xNONE; then
1.1.1.10 root 2000: ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1.1 root 2001: else
1.1.1.10 root 2002: ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.1 root 2003: fi
1.1.1.10 root 2004:
2005: for ac_site_file in $ac_site_files
1.1 root 2006: do
1.1.1.10 root 2007: case $ac_site_file in #(
2008: */*) :
2009: ;; #(
2010: *) :
2011: ac_site_file=./$ac_site_file ;;
2012: esac
2013: if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2014: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2015: printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1.1 root 2016: sed 's/^/| /' "$ac_site_file" >&5
2017: . "$ac_site_file" \
1.1.1.15 root 2018: || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2019: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1 root 2020: as_fn_error $? "failed to load site script $ac_site_file
1.1.1.15 root 2021: See 'config.log' for more details" "$LINENO" 5; }
1.1 root 2022: fi
2023: done
2024:
2025: if test -r "$cache_file"; then
2026: # Some versions of bash will fail to source /dev/null (special files
2027: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2028: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1.1.1.10 root 2029: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2030: printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1.1 root 2031: case $cache_file in
2032: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2033: *) . "./$cache_file";;
2034: esac
2035: fi
2036: else
1.1.1.10 root 2037: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2038: printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1.1 root 2039: >$cache_file
2040: fi
2041:
1.1.1.10 root 2042: # Test code for whether the C++ compiler supports C++98 (global declarations)
2043: ac_cxx_conftest_cxx98_globals='
2044: // Does the compiler advertise C++98 conformance?
2045: #if !defined __cplusplus || __cplusplus < 199711L
2046: # error "Compiler does not advertise C++98 conformance"
2047: #endif
1.1 root 2048:
1.1.1.10 root 2049: // These inclusions are to reject old compilers that
2050: // lack the unsuffixed header files.
2051: #include <cstdlib>
2052: #include <exception>
2053:
2054: // <cassert> and <cstring> are *not* freestanding headers in C++98.
2055: extern void assert (int);
2056: namespace std {
2057: extern int strcmp (const char *, const char *);
2058: }
2059:
2060: // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2061: using std::exception;
2062: using std::strcmp;
2063:
2064: namespace {
2065:
2066: void test_exception_syntax()
2067: {
2068: try {
2069: throw "test";
2070: } catch (const char *s) {
2071: // Extra parentheses suppress a warning when building autoconf itself,
2072: // due to lint rules shared with more typical C programs.
2073: assert (!(strcmp) (s, "test"));
2074: }
2075: }
1.1 root 2076:
1.1.1.10 root 2077: template <typename T> struct test_template
2078: {
2079: T const val;
2080: explicit test_template(T t) : val(t) {}
2081: template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2082: };
1.1 root 2083:
1.1.1.10 root 2084: } // anonymous namespace
2085: '
1.1 root 2086:
1.1.1.10 root 2087: # Test code for whether the C++ compiler supports C++98 (body of main)
2088: ac_cxx_conftest_cxx98_main='
2089: assert (argc);
2090: assert (! argv[0]);
2091: {
2092: test_exception_syntax ();
2093: test_template<double> tt (2.0);
2094: assert (tt.add (4) == 6.0);
2095: assert (true && !false);
2096: }
2097: '
2098:
2099: # Test code for whether the C++ compiler supports C++11 (global declarations)
2100: ac_cxx_conftest_cxx11_globals='
2101: // Does the compiler advertise C++ 2011 conformance?
2102: #if !defined __cplusplus || __cplusplus < 201103L
2103: # error "Compiler does not advertise C++11 conformance"
2104: #endif
2105:
2106: namespace cxx11test
2107: {
2108: constexpr int get_val() { return 20; }
2109:
2110: struct testinit
2111: {
2112: int i;
2113: double d;
2114: };
2115:
2116: class delegate
2117: {
2118: public:
2119: delegate(int n) : n(n) {}
2120: delegate(): delegate(2354) {}
2121:
2122: virtual int getval() { return this->n; };
2123: protected:
2124: int n;
2125: };
2126:
2127: class overridden : public delegate
2128: {
2129: public:
2130: overridden(int n): delegate(n) {}
2131: virtual int getval() override final { return this->n * 2; }
2132: };
2133:
2134: class nocopy
2135: {
2136: public:
2137: nocopy(int i): i(i) {}
2138: nocopy() = default;
2139: nocopy(const nocopy&) = delete;
2140: nocopy & operator=(const nocopy&) = delete;
2141: private:
2142: int i;
2143: };
2144:
2145: // for testing lambda expressions
2146: template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2147: {
2148: return f(v);
2149: }
2150:
2151: // for testing variadic templates and trailing return types
2152: template <typename V> auto sum(V first) -> V
2153: {
2154: return first;
2155: }
2156: template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2157: {
2158: return first + sum(rest...);
2159: }
2160: }
2161: '
2162:
2163: # Test code for whether the C++ compiler supports C++11 (body of main)
2164: ac_cxx_conftest_cxx11_main='
2165: {
2166: // Test auto and decltype
2167: auto a1 = 6538;
2168: auto a2 = 48573953.4;
2169: auto a3 = "String literal";
2170:
2171: int total = 0;
2172: for (auto i = a3; *i; ++i) { total += *i; }
2173:
2174: decltype(a2) a4 = 34895.034;
2175: }
2176: {
2177: // Test constexpr
2178: short sa[cxx11test::get_val()] = { 0 };
2179: }
2180: {
2181: // Test initializer lists
2182: cxx11test::testinit il = { 4323, 435234.23544 };
2183: }
2184: {
2185: // Test range-based for
2186: int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2187: 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2188: for (auto &x : array) { x += 23; }
2189: }
2190: {
2191: // Test lambda expressions
2192: using cxx11test::eval;
2193: assert (eval ([](int x) { return x*2; }, 21) == 42);
2194: double d = 2.0;
2195: assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2196: assert (d == 5.0);
2197: assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2198: assert (d == 5.0);
2199: }
2200: {
2201: // Test use of variadic templates
2202: using cxx11test::sum;
2203: auto a = sum(1);
2204: auto b = sum(1, 2);
2205: auto c = sum(1.0, 2.0, 3.0);
2206: }
2207: {
2208: // Test constructor delegation
2209: cxx11test::delegate d1;
2210: cxx11test::delegate d2();
2211: cxx11test::delegate d3(45);
2212: }
2213: {
2214: // Test override and final
2215: cxx11test::overridden o1(55464);
2216: }
2217: {
2218: // Test nullptr
2219: char *c = nullptr;
2220: }
2221: {
2222: // Test template brackets
2223: test_template<::test_template<int>> v(test_template<int>(12));
2224: }
2225: {
2226: // Unicode literals
2227: char const *utf8 = u8"UTF-8 string \u2500";
2228: char16_t const *utf16 = u"UTF-8 string \u2500";
2229: char32_t const *utf32 = U"UTF-32 string \u2500";
2230: }
2231: '
2232:
2233: # Test code for whether the C compiler supports C++11 (complete).
2234: ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2235: ${ac_cxx_conftest_cxx11_globals}
2236:
2237: int
2238: main (int argc, char **argv)
2239: {
2240: int ok = 0;
2241: ${ac_cxx_conftest_cxx98_main}
2242: ${ac_cxx_conftest_cxx11_main}
2243: return ok;
2244: }
2245: "
2246:
2247: # Test code for whether the C compiler supports C++98 (complete).
2248: ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2249: int
2250: main (int argc, char **argv)
2251: {
2252: int ok = 0;
2253: ${ac_cxx_conftest_cxx98_main}
2254: return ok;
2255: }
2256: "
2257:
2258: # Test code for whether the C compiler supports C89 (global declarations)
2259: ac_c_conftest_c89_globals='
2260: /* Does the compiler advertise C89 conformance?
2261: Do not test the value of __STDC__, because some compilers set it to 0
2262: while being otherwise adequately conformant. */
2263: #if !defined __STDC__
2264: # error "Compiler does not advertise C89 conformance"
2265: #endif
2266:
2267: #include <stddef.h>
2268: #include <stdarg.h>
2269: struct stat;
2270: /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2271: struct buf { int x; };
2272: struct buf * (*rcsopen) (struct buf *, struct stat *, int);
1.1.1.15 root 2273: static char *e (char **p, int i)
1.1.1.10 root 2274: {
2275: return p[i];
2276: }
2277: static char *f (char * (*g) (char **, int), char **p, ...)
2278: {
2279: char *s;
2280: va_list v;
2281: va_start (v,p);
2282: s = g (p, va_arg (v,int));
2283: va_end (v);
2284: return s;
2285: }
2286:
1.1.1.15 root 2287: /* C89 style stringification. */
2288: #define noexpand_stringify(a) #a
2289: const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2290:
2291: /* C89 style token pasting. Exercises some of the corner cases that
2292: e.g. old MSVC gets wrong, but not very hard. */
2293: #define noexpand_concat(a,b) a##b
2294: #define expand_concat(a,b) noexpand_concat(a,b)
2295: extern int vA;
2296: extern int vbee;
2297: #define aye A
2298: #define bee B
2299: int *pvA = &expand_concat(v,aye);
2300: int *pvbee = &noexpand_concat(v,bee);
2301:
1.1.1.10 root 2302: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2303: function prototypes and stuff, but not \xHH hex character constants.
2304: These do not provoke an error unfortunately, instead are silently treated
2305: as an "x". The following induces an error, until -std is added to get
2306: proper ANSI mode. Curiously \x00 != x always comes out true, for an
2307: array size at least. It is necessary to write \x00 == 0 to get something
2308: that is true only with -std. */
2309: int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2310:
2311: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2312: inside strings and character constants. */
2313: #define FOO(x) '\''x'\''
2314: int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2315:
2316: int test (int i, double x);
2317: struct s1 {int (*f) (int a);};
2318: struct s2 {int (*f) (double a);};
2319: int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2320: int, int);'
2321:
2322: # Test code for whether the C compiler supports C89 (body of main).
2323: ac_c_conftest_c89_main='
2324: ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2325: '
2326:
2327: # Test code for whether the C compiler supports C99 (global declarations)
2328: ac_c_conftest_c99_globals='
1.1.1.15 root 2329: /* Does the compiler advertise C99 conformance? */
1.1.1.10 root 2330: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2331: # error "Compiler does not advertise C99 conformance"
2332: #endif
2333:
1.1.1.15 root 2334: // See if C++-style comments work.
2335:
1.1.1.10 root 2336: #include <stdbool.h>
2337: extern int puts (const char *);
2338: extern int printf (const char *, ...);
2339: extern int dprintf (int, const char *, ...);
2340: extern void *malloc (size_t);
1.1.1.15 root 2341: extern void free (void *);
1.1.1.10 root 2342:
2343: // Check varargs macros. These examples are taken from C99 6.10.3.5.
2344: // dprintf is used instead of fprintf to avoid needing to declare
2345: // FILE and stderr.
2346: #define debug(...) dprintf (2, __VA_ARGS__)
2347: #define showlist(...) puts (#__VA_ARGS__)
2348: #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2349: static void
2350: test_varargs_macros (void)
2351: {
2352: int x = 1234;
2353: int y = 5678;
2354: debug ("Flag");
2355: debug ("X = %d\n", x);
2356: showlist (The first, second, and third items.);
2357: report (x>y, "x is %d but y is %d", x, y);
2358: }
2359:
2360: // Check long long types.
2361: #define BIG64 18446744073709551615ull
2362: #define BIG32 4294967295ul
2363: #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2364: #if !BIG_OK
2365: #error "your preprocessor is broken"
2366: #endif
2367: #if BIG_OK
2368: #else
2369: #error "your preprocessor is broken"
2370: #endif
2371: static long long int bignum = -9223372036854775807LL;
2372: static unsigned long long int ubignum = BIG64;
2373:
2374: struct incomplete_array
2375: {
2376: int datasize;
2377: double data[];
2378: };
2379:
2380: struct named_init {
2381: int number;
2382: const wchar_t *name;
2383: double average;
2384: };
2385:
2386: typedef const char *ccp;
2387:
2388: static inline int
2389: test_restrict (ccp restrict text)
2390: {
2391: // Iterate through items via the restricted pointer.
2392: // Also check for declarations in for loops.
2393: for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2394: continue;
2395: return 0;
2396: }
2397:
2398: // Check varargs and va_copy.
2399: static bool
2400: test_varargs (const char *format, ...)
2401: {
2402: va_list args;
2403: va_start (args, format);
2404: va_list args_copy;
2405: va_copy (args_copy, args);
2406:
2407: const char *str = "";
2408: int number = 0;
2409: float fnumber = 0;
2410:
2411: while (*format)
2412: {
2413: switch (*format++)
2414: {
2415: case '\''s'\'': // string
2416: str = va_arg (args_copy, const char *);
2417: break;
2418: case '\''d'\'': // int
2419: number = va_arg (args_copy, int);
2420: break;
2421: case '\''f'\'': // float
2422: fnumber = va_arg (args_copy, double);
2423: break;
2424: default:
2425: break;
2426: }
2427: }
2428: va_end (args_copy);
2429: va_end (args);
2430:
2431: return *str && number && fnumber;
2432: }
2433: '
2434:
2435: # Test code for whether the C compiler supports C99 (body of main).
2436: ac_c_conftest_c99_main='
2437: // Check bool.
2438: _Bool success = false;
2439: success |= (argc != 0);
2440:
2441: // Check restrict.
2442: if (test_restrict ("String literal") == 0)
2443: success = true;
2444: char *restrict newvar = "Another string";
2445:
2446: // Check varargs.
2447: success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2448: test_varargs_macros ();
2449:
2450: // Check flexible array members.
2451: struct incomplete_array *ia =
2452: malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2453: ia->datasize = 10;
2454: for (int i = 0; i < ia->datasize; ++i)
2455: ia->data[i] = i * 1.234;
1.1.1.15 root 2456: // Work around memory leak warnings.
2457: free (ia);
1.1.1.10 root 2458:
2459: // Check named initializers.
2460: struct named_init ni = {
2461: .number = 34,
2462: .name = L"Test wide string",
2463: .average = 543.34343,
2464: };
2465:
2466: ni.number = 58;
2467:
2468: int dynamic_array[ni.number];
2469: dynamic_array[0] = argv[0][0];
2470: dynamic_array[ni.number - 1] = 543;
2471:
2472: // work around unused variable warnings
2473: ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2474: || dynamic_array[ni.number - 1] != 543);
2475: '
2476:
2477: # Test code for whether the C compiler supports C11 (global declarations)
2478: ac_c_conftest_c11_globals='
1.1.1.15 root 2479: /* Does the compiler advertise C11 conformance? */
1.1.1.10 root 2480: #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2481: # error "Compiler does not advertise C11 conformance"
2482: #endif
2483:
2484: // Check _Alignas.
2485: char _Alignas (double) aligned_as_double;
2486: char _Alignas (0) no_special_alignment;
2487: extern char aligned_as_int;
2488: char _Alignas (0) _Alignas (int) aligned_as_int;
2489:
2490: // Check _Alignof.
2491: enum
2492: {
2493: int_alignment = _Alignof (int),
2494: int_array_alignment = _Alignof (int[100]),
2495: char_alignment = _Alignof (char)
2496: };
2497: _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2498:
2499: // Check _Noreturn.
2500: int _Noreturn does_not_return (void) { for (;;) continue; }
2501:
2502: // Check _Static_assert.
2503: struct test_static_assert
2504: {
2505: int x;
2506: _Static_assert (sizeof (int) <= sizeof (long int),
2507: "_Static_assert does not work in struct");
2508: long int y;
2509: };
2510:
2511: // Check UTF-8 literals.
2512: #define u8 syntax error!
2513: char const utf8_literal[] = u8"happens to be ASCII" "another string";
2514:
2515: // Check duplicate typedefs.
2516: typedef long *long_ptr;
2517: typedef long int *long_ptr;
2518: typedef long_ptr long_ptr;
2519:
2520: // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2521: struct anonymous
2522: {
2523: union {
2524: struct { int i; int j; };
2525: struct { int k; long int l; } w;
2526: };
2527: int m;
2528: } v1;
2529: '
2530:
2531: # Test code for whether the C compiler supports C11 (body of main).
2532: ac_c_conftest_c11_main='
2533: _Static_assert ((offsetof (struct anonymous, i)
2534: == offsetof (struct anonymous, w.k)),
2535: "Anonymous union alignment botch");
2536: v1.i = 2;
2537: v1.w.k = 5;
2538: ok |= v1.i != 5;
2539: '
2540:
2541: # Test code for whether the C compiler supports C11 (complete).
2542: ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2543: ${ac_c_conftest_c99_globals}
2544: ${ac_c_conftest_c11_globals}
2545:
2546: int
2547: main (int argc, char **argv)
2548: {
2549: int ok = 0;
2550: ${ac_c_conftest_c89_main}
2551: ${ac_c_conftest_c99_main}
2552: ${ac_c_conftest_c11_main}
2553: return ok;
2554: }
2555: "
2556:
2557: # Test code for whether the C compiler supports C99 (complete).
2558: ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2559: ${ac_c_conftest_c99_globals}
2560:
2561: int
2562: main (int argc, char **argv)
2563: {
2564: int ok = 0;
2565: ${ac_c_conftest_c89_main}
2566: ${ac_c_conftest_c99_main}
2567: return ok;
2568: }
2569: "
2570:
2571: # Test code for whether the C compiler supports C89 (complete).
2572: ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2573:
2574: int
2575: main (int argc, char **argv)
2576: {
2577: int ok = 0;
2578: ${ac_c_conftest_c89_main}
2579: return ok;
2580: }
2581: "
2582:
2583: as_fn_append ac_header_cxx_list " stdio.h stdio_h HAVE_STDIO_H"
2584: as_fn_append ac_header_cxx_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2585: as_fn_append ac_header_cxx_list " string.h string_h HAVE_STRING_H"
2586: as_fn_append ac_header_cxx_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2587: as_fn_append ac_header_cxx_list " stdint.h stdint_h HAVE_STDINT_H"
2588: as_fn_append ac_header_cxx_list " strings.h strings_h HAVE_STRINGS_H"
2589: as_fn_append ac_header_cxx_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2590: as_fn_append ac_header_cxx_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2591: as_fn_append ac_header_cxx_list " unistd.h unistd_h HAVE_UNISTD_H"
2592:
2593: # Auxiliary files required by this configure script.
2594: ac_aux_files="config.guess config.sub install-sh"
2595:
2596: # Locations in which to look for auxiliary files.
2597: ac_aux_dir_candidates="${srcdir}/scripts"
2598:
2599: # Search for a directory containing all of the required auxiliary files,
2600: # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2601: # If we don't find one directory that contains all the files we need,
2602: # we report the set of missing files from the *first* directory in
2603: # $ac_aux_dir_candidates and give up.
2604: ac_missing_aux_files=""
2605: ac_first_candidate=:
2606: printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2607: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608: as_found=false
2609: for as_dir in $ac_aux_dir_candidates
2610: do
2611: IFS=$as_save_IFS
2612: case $as_dir in #(((
2613: '') as_dir=./ ;;
2614: */) ;;
2615: *) as_dir=$as_dir/ ;;
2616: esac
2617: as_found=:
2618:
2619: printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2620: ac_aux_dir_found=yes
2621: ac_install_sh=
2622: for ac_aux in $ac_aux_files
2623: do
2624: # As a special case, if "install-sh" is required, that requirement
2625: # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2626: # and $ac_install_sh is set appropriately for whichever one is found.
2627: if test x"$ac_aux" = x"install-sh"
2628: then
2629: if test -f "${as_dir}install-sh"; then
2630: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2631: ac_install_sh="${as_dir}install-sh -c"
2632: elif test -f "${as_dir}install.sh"; then
2633: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2634: ac_install_sh="${as_dir}install.sh -c"
2635: elif test -f "${as_dir}shtool"; then
2636: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2637: ac_install_sh="${as_dir}shtool install -c"
2638: else
2639: ac_aux_dir_found=no
2640: if $ac_first_candidate; then
2641: ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2642: else
2643: break
2644: fi
2645: fi
2646: else
2647: if test -f "${as_dir}${ac_aux}"; then
2648: printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2649: else
2650: ac_aux_dir_found=no
2651: if $ac_first_candidate; then
2652: ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2653: else
2654: break
2655: fi
2656: fi
2657: fi
2658: done
2659: if test "$ac_aux_dir_found" = yes; then
2660: ac_aux_dir="$as_dir"
1.1.1.6 root 2661: break
2662: fi
1.1.1.10 root 2663: ac_first_candidate=false
2664:
2665: as_found=false
1.1.1.6 root 2666: done
1.1.1.10 root 2667: IFS=$as_save_IFS
2668: if $as_found
2669: then :
2670:
1.1.1.15 root 2671: else case e in #(
2672: e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2673: esac
1.1.1.6 root 2674: fi
2675:
1.1.1.10 root 2676:
1.1.1.6 root 2677: # These three variables are undocumented and unsupported,
2678: # and are intended to be withdrawn in a future Autoconf release.
2679: # They can cause serious problems if a builder's source tree is in a directory
2680: # whose full name contains unusual characters.
1.1.1.10 root 2681: if test -f "${ac_aux_dir}config.guess"; then
2682: ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2683: fi
2684: if test -f "${ac_aux_dir}config.sub"; then
2685: ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2686: fi
2687: if test -f "$ac_aux_dir/configure"; then
2688: ac_configure="$SHELL ${ac_aux_dir}configure"
2689: fi
2690:
2691: # Check that the precious variables saved in the cache have kept the same
2692: # value.
2693: ac_cache_corrupted=false
2694: for ac_var in $ac_precious_vars; do
2695: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2696: eval ac_new_set=\$ac_env_${ac_var}_set
2697: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2698: eval ac_new_val=\$ac_env_${ac_var}_value
2699: case $ac_old_set,$ac_new_set in
2700: set,)
1.1.1.15 root 2701: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2702: printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
1.1.1.10 root 2703: ac_cache_corrupted=: ;;
2704: ,set)
1.1.1.15 root 2705: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2706: printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
1.1.1.10 root 2707: ac_cache_corrupted=: ;;
2708: ,);;
2709: *)
2710: if test "x$ac_old_val" != "x$ac_new_val"; then
2711: # differences in whitespace do not lead to failure.
2712: ac_old_val_w=`echo x $ac_old_val`
2713: ac_new_val_w=`echo x $ac_new_val`
2714: if test "$ac_old_val_w" != "$ac_new_val_w"; then
1.1.1.15 root 2715: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2716: printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
1.1.1.10 root 2717: ac_cache_corrupted=:
2718: else
1.1.1.15 root 2719: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2720: printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
1.1.1.10 root 2721: eval $ac_var=\$ac_old_val
2722: fi
1.1.1.15 root 2723: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2724: printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2725: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2726: printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
1.1.1.10 root 2727: fi;;
2728: esac
2729: # Pass precious variables to config.status.
2730: if test "$ac_new_set" = set; then
2731: case $ac_new_val in
2732: *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2733: *) ac_arg=$ac_var=$ac_new_val ;;
2734: esac
2735: case " $ac_configure_args " in
2736: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2737: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2738: esac
2739: fi
2740: done
2741: if $ac_cache_corrupted; then
1.1.1.15 root 2742: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2743: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1.1.10 root 2744: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2745: printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
1.1.1.15 root 2746: as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
1.1.1.10 root 2747: and start over" "$LINENO" 5
2748: fi
2749: ## -------------------- ##
2750: ## Main body of script. ##
2751: ## -------------------- ##
2752:
2753: ac_ext=c
2754: ac_cpp='$CPP $CPPFLAGS'
2755: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758:
2759:
1.1.1.6 root 2760:
2761:
1.1 root 2762:
2763: # Checks for programs.
1.1.1.10 root 2764:
2765:
2766:
2767:
2768:
2769:
1.1 root 2770: ac_ext=cpp
2771: ac_cpp='$CXXCPP $CPPFLAGS'
2772: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2775: if test -z "$CXX"; then
2776: if test -n "$CCC"; then
2777: CXX=$CCC
2778: else
2779: if test -n "$ac_tool_prefix"; then
1.1.1.10 root 2780: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
1.1 root 2781: do
2782: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.10 root 2784: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785: printf %s "checking for $ac_word... " >&6; }
2786: if test ${ac_cv_prog_CXX+y}
2787: then :
2788: printf %s "(cached) " >&6
1.1.1.15 root 2789: else case e in #(
2790: e) if test -n "$CXX"; then
1.1 root 2791: ac_cv_prog_CXX="$CXX" # Let the user override the test.
2792: else
2793: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794: for as_dir in $PATH
2795: do
2796: IFS=$as_save_IFS
1.1.1.10 root 2797: case $as_dir in #(((
2798: '') as_dir=./ ;;
2799: */) ;;
2800: *) as_dir=$as_dir/ ;;
2801: esac
1.1 root 2802: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.10 root 2803: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 root 2804: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.1.1.10 root 2805: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 root 2806: break 2
2807: fi
2808: done
2809: done
2810: IFS=$as_save_IFS
2811:
1.1.1.15 root 2812: fi ;;
2813: esac
1.1 root 2814: fi
2815: CXX=$ac_cv_prog_CXX
2816: if test -n "$CXX"; then
1.1.1.10 root 2817: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2818: printf "%s\n" "$CXX" >&6; }
1.1 root 2819: else
1.1.1.10 root 2820: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821: printf "%s\n" "no" >&6; }
1.1 root 2822: fi
2823:
2824:
2825: test -n "$CXX" && break
2826: done
2827: fi
2828: if test -z "$CXX"; then
2829: ac_ct_CXX=$CXX
1.1.1.10 root 2830: for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
1.1 root 2831: do
2832: # Extract the first word of "$ac_prog", so it can be a program name with args.
2833: set dummy $ac_prog; ac_word=$2
1.1.1.10 root 2834: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835: printf %s "checking for $ac_word... " >&6; }
2836: if test ${ac_cv_prog_ac_ct_CXX+y}
2837: then :
2838: printf %s "(cached) " >&6
1.1.1.15 root 2839: else case e in #(
2840: e) if test -n "$ac_ct_CXX"; then
1.1 root 2841: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2842: else
2843: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844: for as_dir in $PATH
2845: do
2846: IFS=$as_save_IFS
1.1.1.10 root 2847: case $as_dir in #(((
2848: '') as_dir=./ ;;
2849: */) ;;
2850: *) as_dir=$as_dir/ ;;
2851: esac
1.1 root 2852: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.10 root 2853: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 root 2854: ac_cv_prog_ac_ct_CXX="$ac_prog"
1.1.1.10 root 2855: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 root 2856: break 2
2857: fi
2858: done
2859: done
2860: IFS=$as_save_IFS
2861:
1.1.1.15 root 2862: fi ;;
2863: esac
1.1 root 2864: fi
2865: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2866: if test -n "$ac_ct_CXX"; then
1.1.1.10 root 2867: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2868: printf "%s\n" "$ac_ct_CXX" >&6; }
1.1 root 2869: else
1.1.1.10 root 2870: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871: printf "%s\n" "no" >&6; }
1.1 root 2872: fi
2873:
2874:
2875: test -n "$ac_ct_CXX" && break
2876: done
2877:
2878: if test "x$ac_ct_CXX" = x; then
2879: CXX="g++"
2880: else
2881: case $cross_compiling:$ac_tool_warned in
2882: yes:)
1.1.1.10 root 2883: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 root 2885: ac_tool_warned=yes ;;
2886: esac
2887: CXX=$ac_ct_CXX
2888: fi
2889: fi
2890:
2891: fi
2892: fi
2893: # Provide some information about the compiler.
1.1.1.10 root 2894: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
1.1 root 2895: set X $ac_compile
2896: ac_compiler=$2
2897: for ac_option in --version -v -V -qversion; do
2898: { { ac_try="$ac_compiler $ac_option >&5"
2899: case "(($ac_try" in
2900: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901: *) ac_try_echo=$ac_try;;
2902: esac
2903: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.10 root 2904: printf "%s\n" "$ac_try_echo"; } >&5
1.1 root 2905: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2906: ac_status=$?
2907: if test -s conftest.err; then
2908: sed '10a\
2909: ... rest of stderr output deleted ...
2910: 10q' conftest.err >conftest.er1
2911: cat conftest.er1 >&5
2912: fi
2913: rm -f conftest.er1 conftest.err
1.1.1.10 root 2914: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 root 2915: test $ac_status = 0; }
2916: done
2917:
2918: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2919: /* end confdefs.h. */
2920:
2921: int
1.1.1.10 root 2922: main (void)
1.1 root 2923: {
2924:
2925: ;
2926: return 0;
2927: }
2928: _ACEOF
2929: ac_clean_files_save=$ac_clean_files
2930: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2931: # Try to create an executable without -o first, disregard a.out.
2932: # It will help us diagnose broken compilers, and finding out an intuition
2933: # of exeext.
1.1.1.10 root 2934: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2935: printf %s "checking whether the C++ compiler works... " >&6; }
2936: ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.1 root 2937:
2938: # The possible output files:
2939: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2940:
2941: ac_rmfiles=
2942: for ac_file in $ac_files
2943: do
2944: case $ac_file in
2945: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2946: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2947: esac
2948: done
2949: rm -f $ac_rmfiles
2950:
2951: if { { ac_try="$ac_link_default"
2952: case "(($ac_try" in
2953: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954: *) ac_try_echo=$ac_try;;
2955: esac
2956: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.10 root 2957: printf "%s\n" "$ac_try_echo"; } >&5
1.1 root 2958: (eval "$ac_link_default") 2>&5
2959: ac_status=$?
1.1.1.10 root 2960: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961: test $ac_status = 0; }
2962: then :
1.1.1.15 root 2963: # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
2964: # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
1.1 root 2965: # in a Makefile. We should not override ac_cv_exeext if it was cached,
2966: # so that the user can short-circuit this test for compilers unknown to
2967: # Autoconf.
2968: for ac_file in $ac_files ''
2969: do
2970: test -f "$ac_file" || continue
2971: case $ac_file in
2972: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2973: ;;
2974: [ab].out )
2975: # We found the default executable, but exeext='' is most
2976: # certainly right.
2977: break;;
2978: *.* )
1.1.1.10 root 2979: if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
1.1 root 2980: then :; else
2981: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2982: fi
2983: # We set ac_cv_exeext here because the later test for it is not
1.1.1.15 root 2984: # safe: cross compilers may not add the suffix if given an '-o'
1.1 root 2985: # argument, so we may need to know it at that point already.
2986: # Even if this section looks crufty: it has the advantage of
2987: # actually working.
2988: break;;
2989: * )
2990: break;;
2991: esac
2992: done
2993: test "$ac_cv_exeext" = no && ac_cv_exeext=
2994:
1.1.1.15 root 2995: else case e in #(
2996: e) ac_file='' ;;
2997: esac
1.1 root 2998: fi
1.1.1.10 root 2999: if test -z "$ac_file"
3000: then :
3001: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002: printf "%s\n" "no" >&6; }
3003: printf "%s\n" "$as_me: failed program was:" >&5
1.1 root 3004: sed 's/^/| /' conftest.$ac_ext >&5
3005:
1.1.1.15 root 3006: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3007: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1 root 3008: as_fn_error 77 "C++ compiler cannot create executables
1.1.1.15 root 3009: See 'config.log' for more details" "$LINENO" 5; }
3010: else case e in #(
3011: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3012: printf "%s\n" "yes" >&6; } ;;
3013: esac
1.1.1.10 root 3014: fi
3015: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3016: printf %s "checking for C++ compiler default output file name... " >&6; }
3017: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3018: printf "%s\n" "$ac_file" >&6; }
1.1 root 3019: ac_exeext=$ac_cv_exeext
3020:
3021: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3022: ac_clean_files=$ac_clean_files_save
1.1.1.10 root 3023: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3024: printf %s "checking for suffix of executables... " >&6; }
1.1 root 3025: if { { ac_try="$ac_link"
3026: case "(($ac_try" in
3027: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028: *) ac_try_echo=$ac_try;;
3029: esac
3030: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.10 root 3031: printf "%s\n" "$ac_try_echo"; } >&5
1.1 root 3032: (eval "$ac_link") 2>&5
3033: ac_status=$?
1.1.1.10 root 3034: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035: test $ac_status = 0; }
3036: then :
1.1.1.15 root 3037: # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3038: # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3039: # work properly (i.e., refer to 'conftest.exe'), while it won't with
3040: # 'rm'.
1.1 root 3041: for ac_file in conftest.exe conftest conftest.*; do
3042: test -f "$ac_file" || continue
3043: case $ac_file in
3044: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3045: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3046: break;;
3047: * ) break;;
3048: esac
3049: done
1.1.1.15 root 3050: else case e in #(
3051: e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3052: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1 root 3053: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.1.1.15 root 3054: See 'config.log' for more details" "$LINENO" 5; } ;;
3055: esac
1.1 root 3056: fi
3057: rm -f conftest conftest$ac_cv_exeext
1.1.1.10 root 3058: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3059: printf "%s\n" "$ac_cv_exeext" >&6; }
1.1 root 3060:
3061: rm -f conftest.$ac_ext
3062: EXEEXT=$ac_cv_exeext
3063: ac_exeext=$EXEEXT
3064: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065: /* end confdefs.h. */
3066: #include <stdio.h>
3067: int
1.1.1.10 root 3068: main (void)
1.1 root 3069: {
3070: FILE *f = fopen ("conftest.out", "w");
1.1.1.15 root 3071: if (!f)
3072: return 1;
1.1 root 3073: return ferror (f) || fclose (f) != 0;
3074:
3075: ;
3076: return 0;
3077: }
3078: _ACEOF
3079: ac_clean_files="$ac_clean_files conftest.out"
3080: # Check that the compiler produces executables we can run. If not, either
3081: # the compiler is broken, or we cross compile.
1.1.1.10 root 3082: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3083: printf %s "checking whether we are cross compiling... " >&6; }
1.1 root 3084: if test "$cross_compiling" != yes; then
3085: { { ac_try="$ac_link"
3086: case "(($ac_try" in
3087: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088: *) ac_try_echo=$ac_try;;
3089: esac
3090: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.10 root 3091: printf "%s\n" "$ac_try_echo"; } >&5
1.1 root 3092: (eval "$ac_link") 2>&5
3093: ac_status=$?
1.1.1.10 root 3094: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 root 3095: test $ac_status = 0; }
3096: if { ac_try='./conftest$ac_cv_exeext'
3097: { { case "(($ac_try" in
3098: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099: *) ac_try_echo=$ac_try;;
3100: esac
3101: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.10 root 3102: printf "%s\n" "$ac_try_echo"; } >&5
1.1 root 3103: (eval "$ac_try") 2>&5
3104: ac_status=$?
1.1.1.10 root 3105: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 root 3106: test $ac_status = 0; }; }; then
3107: cross_compiling=no
3108: else
3109: if test "$cross_compiling" = maybe; then
3110: cross_compiling=yes
3111: else
1.1.1.15 root 3112: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3113: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1.1.10 root 3114: as_fn_error 77 "cannot run C++ compiled programs.
1.1.1.15 root 3115: If you meant to cross compile, use '--host'.
3116: See 'config.log' for more details" "$LINENO" 5; }
1.1 root 3117: fi
3118: fi
3119: fi
1.1.1.10 root 3120: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3121: printf "%s\n" "$cross_compiling" >&6; }
1.1 root 3122:
1.1.1.15 root 3123: rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3124: conftest.o conftest.obj conftest.out
1.1 root 3125: ac_clean_files=$ac_clean_files_save
1.1.1.10 root 3126: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3127: printf %s "checking for suffix of object files... " >&6; }
3128: if test ${ac_cv_objext+y}
3129: then :
3130: printf %s "(cached) " >&6
1.1.1.15 root 3131: else case e in #(
3132: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 root 3133: /* end confdefs.h. */
3134:
3135: int
1.1.1.10 root 3136: main (void)
1.1 root 3137: {
3138:
3139: ;
3140: return 0;
3141: }
3142: _ACEOF
3143: rm -f conftest.o conftest.obj
3144: if { { ac_try="$ac_compile"
3145: case "(($ac_try" in
3146: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147: *) ac_try_echo=$ac_try;;
3148: esac
3149: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.10 root 3150: printf "%s\n" "$ac_try_echo"; } >&5
1.1 root 3151: (eval "$ac_compile") 2>&5
3152: ac_status=$?
1.1.1.10 root 3153: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154: test $ac_status = 0; }
3155: then :
1.1 root 3156: for ac_file in conftest.o conftest.obj conftest.*; do
3157: test -f "$ac_file" || continue;
3158: case $ac_file in
3159: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3160: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3161: break;;
3162: esac
3163: done
1.1.1.15 root 3164: else case e in #(
3165: e) printf "%s\n" "$as_me: failed program was:" >&5
1.1 root 3166: sed 's/^/| /' conftest.$ac_ext >&5
3167:
1.1.1.15 root 3168: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3169: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1 root 3170: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.1.1.15 root 3171: See 'config.log' for more details" "$LINENO" 5; } ;;
3172: esac
1.1 root 3173: fi
1.1.1.15 root 3174: rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3175: esac
1.1 root 3176: fi
1.1.1.10 root 3177: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3178: printf "%s\n" "$ac_cv_objext" >&6; }
1.1 root 3179: OBJEXT=$ac_cv_objext
3180: ac_objext=$OBJEXT
1.1.1.10 root 3181: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3182: printf %s "checking whether the compiler supports GNU C++... " >&6; }
3183: if test ${ac_cv_cxx_compiler_gnu+y}
3184: then :
3185: printf %s "(cached) " >&6
1.1.1.15 root 3186: else case e in #(
3187: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 root 3188: /* end confdefs.h. */
3189:
3190: int
1.1.1.10 root 3191: main (void)
1.1 root 3192: {
3193: #ifndef __GNUC__
3194: choke me
3195: #endif
3196:
3197: ;
3198: return 0;
3199: }
3200: _ACEOF
1.1.1.10 root 3201: if ac_fn_cxx_try_compile "$LINENO"
3202: then :
1.1 root 3203: ac_compiler_gnu=yes
1.1.1.15 root 3204: else case e in #(
3205: e) ac_compiler_gnu=no ;;
3206: esac
1.1 root 3207: fi
1.1.1.10 root 3208: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 3209: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1.1.15 root 3210: ;;
3211: esac
1.1 root 3212: fi
1.1.1.10 root 3213: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3214: printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3215: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3216:
1.1 root 3217: if test $ac_compiler_gnu = yes; then
3218: GXX=yes
3219: else
3220: GXX=
3221: fi
1.1.1.10 root 3222: ac_test_CXXFLAGS=${CXXFLAGS+y}
1.1 root 3223: ac_save_CXXFLAGS=$CXXFLAGS
1.1.1.10 root 3224: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3225: printf %s "checking whether $CXX accepts -g... " >&6; }
3226: if test ${ac_cv_prog_cxx_g+y}
3227: then :
3228: printf %s "(cached) " >&6
1.1.1.15 root 3229: else case e in #(
3230: e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
1.1 root 3231: ac_cxx_werror_flag=yes
3232: ac_cv_prog_cxx_g=no
3233: CXXFLAGS="-g"
3234: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235: /* end confdefs.h. */
3236:
3237: int
1.1.1.10 root 3238: main (void)
1.1 root 3239: {
3240:
3241: ;
3242: return 0;
3243: }
3244: _ACEOF
1.1.1.10 root 3245: if ac_fn_cxx_try_compile "$LINENO"
3246: then :
1.1 root 3247: ac_cv_prog_cxx_g=yes
1.1.1.15 root 3248: else case e in #(
3249: e) CXXFLAGS=""
1.1 root 3250: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251: /* end confdefs.h. */
3252:
3253: int
1.1.1.10 root 3254: main (void)
1.1 root 3255: {
3256:
3257: ;
3258: return 0;
3259: }
3260: _ACEOF
1.1.1.10 root 3261: if ac_fn_cxx_try_compile "$LINENO"
3262: then :
1.1 root 3263:
1.1.1.15 root 3264: else case e in #(
3265: e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
1.1 root 3266: CXXFLAGS="-g"
3267: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268: /* end confdefs.h. */
3269:
3270: int
1.1.1.10 root 3271: main (void)
1.1 root 3272: {
3273:
3274: ;
3275: return 0;
3276: }
3277: _ACEOF
1.1.1.10 root 3278: if ac_fn_cxx_try_compile "$LINENO"
3279: then :
1.1 root 3280: ac_cv_prog_cxx_g=yes
3281: fi
1.1.1.15 root 3282: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3283: esac
1.1 root 3284: fi
1.1.1.15 root 3285: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3286: esac
1.1 root 3287: fi
1.1.1.10 root 3288: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.15 root 3289: ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
3290: esac
1.1 root 3291: fi
1.1.1.10 root 3292: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3293: printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3294: if test $ac_test_CXXFLAGS; then
1.1 root 3295: CXXFLAGS=$ac_save_CXXFLAGS
3296: elif test $ac_cv_prog_cxx_g = yes; then
3297: if test "$GXX" = yes; then
3298: CXXFLAGS="-g -O2"
3299: else
3300: CXXFLAGS="-g"
3301: fi
3302: else
3303: if test "$GXX" = yes; then
3304: CXXFLAGS="-O2"
3305: else
3306: CXXFLAGS=
3307: fi
3308: fi
1.1.1.10 root 3309: ac_prog_cxx_stdcxx=no
3310: if test x$ac_prog_cxx_stdcxx = xno
3311: then :
3312: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
3313: printf %s "checking for $CXX option to enable C++11 features... " >&6; }
1.1.1.15 root 3314: if test ${ac_cv_prog_cxx_cxx11+y}
1.1.1.10 root 3315: then :
3316: printf %s "(cached) " >&6
1.1.1.15 root 3317: else case e in #(
3318: e) ac_cv_prog_cxx_cxx11=no
1.1.1.10 root 3319: ac_save_CXX=$CXX
3320: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321: /* end confdefs.h. */
3322: $ac_cxx_conftest_cxx11_program
3323: _ACEOF
3324: for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
3325: do
3326: CXX="$ac_save_CXX $ac_arg"
3327: if ac_fn_cxx_try_compile "$LINENO"
3328: then :
3329: ac_cv_prog_cxx_cxx11=$ac_arg
3330: fi
3331: rm -f core conftest.err conftest.$ac_objext conftest.beam
3332: test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
3333: done
3334: rm -f conftest.$ac_ext
1.1.1.15 root 3335: CXX=$ac_save_CXX ;;
3336: esac
1.1.1.10 root 3337: fi
3338:
3339: if test "x$ac_cv_prog_cxx_cxx11" = xno
3340: then :
3341: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3342: printf "%s\n" "unsupported" >&6; }
1.1.1.15 root 3343: else case e in #(
3344: e) if test "x$ac_cv_prog_cxx_cxx11" = x
1.1.1.10 root 3345: then :
3346: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3347: printf "%s\n" "none needed" >&6; }
1.1.1.15 root 3348: else case e in #(
3349: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
1.1.1.10 root 3350: printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
1.1.1.15 root 3351: CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
3352: esac
1.1.1.10 root 3353: fi
3354: ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
1.1.1.15 root 3355: ac_prog_cxx_stdcxx=cxx11 ;;
3356: esac
1.1.1.10 root 3357: fi
3358: fi
3359: if test x$ac_prog_cxx_stdcxx = xno
3360: then :
3361: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
3362: printf %s "checking for $CXX option to enable C++98 features... " >&6; }
1.1.1.15 root 3363: if test ${ac_cv_prog_cxx_cxx98+y}
1.1.1.10 root 3364: then :
3365: printf %s "(cached) " >&6
1.1.1.15 root 3366: else case e in #(
3367: e) ac_cv_prog_cxx_cxx98=no
1.1.1.10 root 3368: ac_save_CXX=$CXX
3369: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370: /* end confdefs.h. */
3371: $ac_cxx_conftest_cxx98_program
3372: _ACEOF
3373: for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
3374: do
3375: CXX="$ac_save_CXX $ac_arg"
3376: if ac_fn_cxx_try_compile "$LINENO"
3377: then :
3378: ac_cv_prog_cxx_cxx98=$ac_arg
3379: fi
3380: rm -f core conftest.err conftest.$ac_objext conftest.beam
3381: test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
3382: done
3383: rm -f conftest.$ac_ext
1.1.1.15 root 3384: CXX=$ac_save_CXX ;;
3385: esac
1.1.1.10 root 3386: fi
3387:
3388: if test "x$ac_cv_prog_cxx_cxx98" = xno
3389: then :
3390: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3391: printf "%s\n" "unsupported" >&6; }
1.1.1.15 root 3392: else case e in #(
3393: e) if test "x$ac_cv_prog_cxx_cxx98" = x
1.1.1.10 root 3394: then :
3395: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3396: printf "%s\n" "none needed" >&6; }
1.1.1.15 root 3397: else case e in #(
3398: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
1.1.1.10 root 3399: printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
1.1.1.15 root 3400: CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
3401: esac
1.1.1.10 root 3402: fi
3403: ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
1.1.1.15 root 3404: ac_prog_cxx_stdcxx=cxx98 ;;
3405: esac
1.1.1.10 root 3406: fi
3407: fi
3408:
3409: ac_ext=c
3410: ac_cpp='$CPP $CPPFLAGS'
3411: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3414:
3415:
3416:
3417:
3418:
3419:
3420:
3421:
3422:
3423:
1.1 root 3424: ac_ext=c
3425: ac_cpp='$CPP $CPPFLAGS'
3426: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429: if test -n "$ac_tool_prefix"; then
3430: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3431: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.1.1.10 root 3432: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433: printf %s "checking for $ac_word... " >&6; }
3434: if test ${ac_cv_prog_CC+y}
3435: then :
3436: printf %s "(cached) " >&6
1.1.1.15 root 3437: else case e in #(
3438: e) if test -n "$CC"; then
1.1 root 3439: ac_cv_prog_CC="$CC" # Let the user override the test.
3440: else
3441: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442: for as_dir in $PATH
3443: do
3444: IFS=$as_save_IFS
1.1.1.10 root 3445: case $as_dir in #(((
3446: '') as_dir=./ ;;
3447: */) ;;
3448: *) as_dir=$as_dir/ ;;
3449: esac
1.1 root 3450: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.10 root 3451: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 root 3452: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.1.1.10 root 3453: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 root 3454: break 2
3455: fi
3456: done
3457: done
3458: IFS=$as_save_IFS
3459:
1.1.1.15 root 3460: fi ;;
3461: esac
1.1 root 3462: fi
3463: CC=$ac_cv_prog_CC
3464: if test -n "$CC"; then
1.1.1.10 root 3465: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3466: printf "%s\n" "$CC" >&6; }
1.1 root 3467: else
1.1.1.10 root 3468: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469: printf "%s\n" "no" >&6; }
1.1 root 3470: fi
3471:
3472:
3473: fi
3474: if test -z "$ac_cv_prog_CC"; then
3475: ac_ct_CC=$CC
3476: # Extract the first word of "gcc", so it can be a program name with args.
3477: set dummy gcc; ac_word=$2
1.1.1.10 root 3478: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479: printf %s "checking for $ac_word... " >&6; }
3480: if test ${ac_cv_prog_ac_ct_CC+y}
3481: then :
3482: printf %s "(cached) " >&6
1.1.1.15 root 3483: else case e in #(
3484: e) if test -n "$ac_ct_CC"; then
1.1 root 3485: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3486: else
3487: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488: for as_dir in $PATH
3489: do
3490: IFS=$as_save_IFS
1.1.1.10 root 3491: case $as_dir in #(((
3492: '') as_dir=./ ;;
3493: */) ;;
3494: *) as_dir=$as_dir/ ;;
3495: esac
1.1 root 3496: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.10 root 3497: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 root 3498: ac_cv_prog_ac_ct_CC="gcc"
1.1.1.10 root 3499: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 root 3500: break 2
3501: fi
3502: done
3503: done
3504: IFS=$as_save_IFS
3505:
1.1.1.15 root 3506: fi ;;
3507: esac
1.1 root 3508: fi
3509: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3510: if test -n "$ac_ct_CC"; then
1.1.1.10 root 3511: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3512: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 root 3513: else
1.1.1.10 root 3514: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515: printf "%s\n" "no" >&6; }
1.1 root 3516: fi
3517:
3518: if test "x$ac_ct_CC" = x; then
3519: CC=""
3520: else
3521: case $cross_compiling:$ac_tool_warned in
3522: yes:)
1.1.1.10 root 3523: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3524: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 root 3525: ac_tool_warned=yes ;;
3526: esac
3527: CC=$ac_ct_CC
3528: fi
3529: else
3530: CC="$ac_cv_prog_CC"
3531: fi
3532:
3533: if test -z "$CC"; then
3534: if test -n "$ac_tool_prefix"; then
3535: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3536: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.1.1.10 root 3537: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538: printf %s "checking for $ac_word... " >&6; }
3539: if test ${ac_cv_prog_CC+y}
3540: then :
3541: printf %s "(cached) " >&6
1.1.1.15 root 3542: else case e in #(
3543: e) if test -n "$CC"; then
1.1 root 3544: ac_cv_prog_CC="$CC" # Let the user override the test.
3545: else
3546: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547: for as_dir in $PATH
3548: do
3549: IFS=$as_save_IFS
1.1.1.10 root 3550: case $as_dir in #(((
3551: '') as_dir=./ ;;
3552: */) ;;
3553: *) as_dir=$as_dir/ ;;
3554: esac
1.1 root 3555: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.10 root 3556: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 root 3557: ac_cv_prog_CC="${ac_tool_prefix}cc"
1.1.1.10 root 3558: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 root 3559: break 2
3560: fi
3561: done
3562: done
3563: IFS=$as_save_IFS
3564:
1.1.1.15 root 3565: fi ;;
3566: esac
1.1 root 3567: fi
3568: CC=$ac_cv_prog_CC
3569: if test -n "$CC"; then
1.1.1.10 root 3570: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571: printf "%s\n" "$CC" >&6; }
1.1 root 3572: else
1.1.1.10 root 3573: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574: printf "%s\n" "no" >&6; }
1.1 root 3575: fi
3576:
3577:
3578: fi
3579: fi
3580: if test -z "$CC"; then
3581: # Extract the first word of "cc", so it can be a program name with args.
3582: set dummy cc; ac_word=$2
1.1.1.10 root 3583: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584: printf %s "checking for $ac_word... " >&6; }
3585: if test ${ac_cv_prog_CC+y}
3586: then :
3587: printf %s "(cached) " >&6
1.1.1.15 root 3588: else case e in #(
3589: e) if test -n "$CC"; then
1.1 root 3590: ac_cv_prog_CC="$CC" # Let the user override the test.
3591: else
3592: ac_prog_rejected=no
3593: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594: for as_dir in $PATH
3595: do
3596: IFS=$as_save_IFS
1.1.1.10 root 3597: case $as_dir in #(((
3598: '') as_dir=./ ;;
3599: */) ;;
3600: *) as_dir=$as_dir/ ;;
3601: esac
1.1 root 3602: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.10 root 3603: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3604: if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.1 root 3605: ac_prog_rejected=yes
3606: continue
3607: fi
3608: ac_cv_prog_CC="cc"
1.1.1.10 root 3609: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 root 3610: break 2
3611: fi
3612: done
3613: done
3614: IFS=$as_save_IFS
3615:
3616: if test $ac_prog_rejected = yes; then
3617: # We found a bogon in the path, so make sure we never use it.
3618: set dummy $ac_cv_prog_CC
3619: shift
3620: if test $# != 0; then
3621: # We chose a different compiler from the bogus one.
3622: # However, it has the same basename, so the bogon will be chosen
3623: # first if we set CC to just the basename; use the full file name.
3624: shift
1.1.1.10 root 3625: ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
1.1 root 3626: fi
3627: fi
1.1.1.15 root 3628: fi ;;
3629: esac
1.1 root 3630: fi
3631: CC=$ac_cv_prog_CC
3632: if test -n "$CC"; then
1.1.1.10 root 3633: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634: printf "%s\n" "$CC" >&6; }
1.1 root 3635: else
1.1.1.10 root 3636: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637: printf "%s\n" "no" >&6; }
1.1 root 3638: fi
3639:
3640:
3641: fi
3642: if test -z "$CC"; then
3643: if test -n "$ac_tool_prefix"; then
3644: for ac_prog in cl.exe
3645: do
3646: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3647: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.1.1.10 root 3648: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649: printf %s "checking for $ac_word... " >&6; }
3650: if test ${ac_cv_prog_CC+y}
3651: then :
3652: printf %s "(cached) " >&6
1.1.1.15 root 3653: else case e in #(
3654: e) if test -n "$CC"; then
1.1 root 3655: ac_cv_prog_CC="$CC" # Let the user override the test.
3656: else
3657: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658: for as_dir in $PATH
3659: do
3660: IFS=$as_save_IFS
1.1.1.10 root 3661: case $as_dir in #(((
3662: '') as_dir=./ ;;
3663: */) ;;
3664: *) as_dir=$as_dir/ ;;
3665: esac
1.1 root 3666: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.10 root 3667: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 root 3668: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.1.1.10 root 3669: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 root 3670: break 2
3671: fi
3672: done
3673: done
3674: IFS=$as_save_IFS
3675:
1.1.1.15 root 3676: fi ;;
3677: esac
1.1 root 3678: fi
3679: CC=$ac_cv_prog_CC
3680: if test -n "$CC"; then
1.1.1.10 root 3681: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682: printf "%s\n" "$CC" >&6; }
1.1 root 3683: else
1.1.1.10 root 3684: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685: printf "%s\n" "no" >&6; }
1.1 root 3686: fi
3687:
3688:
3689: test -n "$CC" && break
3690: done
3691: fi
3692: if test -z "$CC"; then
3693: ac_ct_CC=$CC
3694: for ac_prog in cl.exe
3695: do
3696: # Extract the first word of "$ac_prog", so it can be a program name with args.
3697: set dummy $ac_prog; ac_word=$2
1.1.1.10 root 3698: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699: printf %s "checking for $ac_word... " >&6; }
3700: if test ${ac_cv_prog_ac_ct_CC+y}
3701: then :
3702: printf %s "(cached) " >&6
1.1.1.15 root 3703: else case e in #(
3704: e) if test -n "$ac_ct_CC"; then
1.1 root 3705: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3706: else
3707: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708: for as_dir in $PATH
3709: do
3710: IFS=$as_save_IFS
1.1.1.10 root 3711: case $as_dir in #(((
3712: '') as_dir=./ ;;
3713: */) ;;
3714: *) as_dir=$as_dir/ ;;
3715: esac
1.1 root 3716: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.10 root 3717: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1 root 3718: ac_cv_prog_ac_ct_CC="$ac_prog"
1.1.1.10 root 3719: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1 root 3720: break 2
3721: fi
3722: done
3723: done
3724: IFS=$as_save_IFS
3725:
1.1.1.15 root 3726: fi ;;
3727: esac
1.1 root 3728: fi
3729: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3730: if test -n "$ac_ct_CC"; then
1.1.1.10 root 3731: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3732: printf "%s\n" "$ac_ct_CC" >&6; }
1.1 root 3733: else
1.1.1.10 root 3734: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735: printf "%s\n" "no" >&6; }
1.1 root 3736: fi
3737:
3738:
3739: test -n "$ac_ct_CC" && break
3740: done
3741:
3742: if test "x$ac_ct_CC" = x; then
3743: CC=""
3744: else
3745: case $cross_compiling:$ac_tool_warned in
3746: yes:)
1.1.1.10 root 3747: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3748: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3749: ac_tool_warned=yes ;;
3750: esac
3751: CC=$ac_ct_CC
3752: fi
3753: fi
3754:
3755: fi
3756: if test -z "$CC"; then
3757: if test -n "$ac_tool_prefix"; then
3758: # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3759: set dummy ${ac_tool_prefix}clang; ac_word=$2
3760: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761: printf %s "checking for $ac_word... " >&6; }
3762: if test ${ac_cv_prog_CC+y}
3763: then :
3764: printf %s "(cached) " >&6
1.1.1.15 root 3765: else case e in #(
3766: e) if test -n "$CC"; then
1.1.1.10 root 3767: ac_cv_prog_CC="$CC" # Let the user override the test.
3768: else
3769: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770: for as_dir in $PATH
3771: do
3772: IFS=$as_save_IFS
3773: case $as_dir in #(((
3774: '') as_dir=./ ;;
3775: */) ;;
3776: *) as_dir=$as_dir/ ;;
3777: esac
3778: for ac_exec_ext in '' $ac_executable_extensions; do
3779: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3780: ac_cv_prog_CC="${ac_tool_prefix}clang"
3781: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3782: break 2
3783: fi
3784: done
3785: done
3786: IFS=$as_save_IFS
3787:
1.1.1.15 root 3788: fi ;;
3789: esac
1.1.1.10 root 3790: fi
3791: CC=$ac_cv_prog_CC
3792: if test -n "$CC"; then
3793: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3794: printf "%s\n" "$CC" >&6; }
3795: else
3796: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797: printf "%s\n" "no" >&6; }
3798: fi
3799:
3800:
3801: fi
3802: if test -z "$ac_cv_prog_CC"; then
3803: ac_ct_CC=$CC
3804: # Extract the first word of "clang", so it can be a program name with args.
3805: set dummy clang; ac_word=$2
3806: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807: printf %s "checking for $ac_word... " >&6; }
3808: if test ${ac_cv_prog_ac_ct_CC+y}
3809: then :
3810: printf %s "(cached) " >&6
1.1.1.15 root 3811: else case e in #(
3812: e) if test -n "$ac_ct_CC"; then
1.1.1.10 root 3813: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3814: else
3815: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816: for as_dir in $PATH
3817: do
3818: IFS=$as_save_IFS
3819: case $as_dir in #(((
3820: '') as_dir=./ ;;
3821: */) ;;
3822: *) as_dir=$as_dir/ ;;
3823: esac
3824: for ac_exec_ext in '' $ac_executable_extensions; do
3825: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3826: ac_cv_prog_ac_ct_CC="clang"
3827: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3828: break 2
3829: fi
3830: done
3831: done
3832: IFS=$as_save_IFS
3833:
1.1.1.15 root 3834: fi ;;
3835: esac
1.1.1.10 root 3836: fi
3837: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838: if test -n "$ac_ct_CC"; then
3839: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840: printf "%s\n" "$ac_ct_CC" >&6; }
3841: else
3842: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843: printf "%s\n" "no" >&6; }
3844: fi
3845:
3846: if test "x$ac_ct_CC" = x; then
3847: CC=""
3848: else
3849: case $cross_compiling:$ac_tool_warned in
3850: yes:)
3851: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1 root 3853: ac_tool_warned=yes ;;
3854: esac
3855: CC=$ac_ct_CC
3856: fi
1.1.1.10 root 3857: else
3858: CC="$ac_cv_prog_CC"
1.1 root 3859: fi
3860:
3861: fi
3862:
3863:
1.1.1.15 root 3864: test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3865: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1 root 3866: as_fn_error $? "no acceptable C compiler found in \$PATH
1.1.1.15 root 3867: See 'config.log' for more details" "$LINENO" 5; }
1.1 root 3868:
3869: # Provide some information about the compiler.
1.1.1.10 root 3870: printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1.1 root 3871: set X $ac_compile
3872: ac_compiler=$2
1.1.1.10 root 3873: for ac_option in --version -v -V -qversion -version; do
1.1 root 3874: { { ac_try="$ac_compiler $ac_option >&5"
3875: case "(($ac_try" in
3876: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877: *) ac_try_echo=$ac_try;;
3878: esac
3879: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1.1.1.10 root 3880: printf "%s\n" "$ac_try_echo"; } >&5
1.1 root 3881: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3882: ac_status=$?
3883: if test -s conftest.err; then
3884: sed '10a\
3885: ... rest of stderr output deleted ...
3886: 10q' conftest.err >conftest.er1
3887: cat conftest.er1 >&5
3888: fi
3889: rm -f conftest.er1 conftest.err
1.1.1.10 root 3890: printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.1 root 3891: test $ac_status = 0; }
3892: done
3893:
1.1.1.10 root 3894: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3895: printf %s "checking whether the compiler supports GNU C... " >&6; }
3896: if test ${ac_cv_c_compiler_gnu+y}
3897: then :
3898: printf %s "(cached) " >&6
1.1.1.15 root 3899: else case e in #(
3900: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 root 3901: /* end confdefs.h. */
3902:
3903: int
1.1.1.10 root 3904: main (void)
1.1 root 3905: {
3906: #ifndef __GNUC__
3907: choke me
3908: #endif
3909:
3910: ;
3911: return 0;
3912: }
3913: _ACEOF
1.1.1.10 root 3914: if ac_fn_c_try_compile "$LINENO"
3915: then :
1.1 root 3916: ac_compiler_gnu=yes
1.1.1.15 root 3917: else case e in #(
3918: e) ac_compiler_gnu=no ;;
3919: esac
1.1 root 3920: fi
1.1.1.10 root 3921: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 3922: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.1.1.15 root 3923: ;;
3924: esac
1.1 root 3925: fi
1.1.1.10 root 3926: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3927: printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3928: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929:
1.1 root 3930: if test $ac_compiler_gnu = yes; then
3931: GCC=yes
3932: else
3933: GCC=
3934: fi
1.1.1.10 root 3935: ac_test_CFLAGS=${CFLAGS+y}
1.1 root 3936: ac_save_CFLAGS=$CFLAGS
1.1.1.10 root 3937: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3938: printf %s "checking whether $CC accepts -g... " >&6; }
3939: if test ${ac_cv_prog_cc_g+y}
3940: then :
3941: printf %s "(cached) " >&6
1.1.1.15 root 3942: else case e in #(
3943: e) ac_save_c_werror_flag=$ac_c_werror_flag
1.1 root 3944: ac_c_werror_flag=yes
3945: ac_cv_prog_cc_g=no
3946: CFLAGS="-g"
3947: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948: /* end confdefs.h. */
3949:
3950: int
1.1.1.10 root 3951: main (void)
1.1 root 3952: {
3953:
3954: ;
3955: return 0;
3956: }
3957: _ACEOF
1.1.1.10 root 3958: if ac_fn_c_try_compile "$LINENO"
3959: then :
1.1 root 3960: ac_cv_prog_cc_g=yes
1.1.1.15 root 3961: else case e in #(
3962: e) CFLAGS=""
1.1 root 3963: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964: /* end confdefs.h. */
3965:
3966: int
1.1.1.10 root 3967: main (void)
1.1 root 3968: {
3969:
3970: ;
3971: return 0;
3972: }
3973: _ACEOF
1.1.1.10 root 3974: if ac_fn_c_try_compile "$LINENO"
3975: then :
1.1 root 3976:
1.1.1.15 root 3977: else case e in #(
3978: e) ac_c_werror_flag=$ac_save_c_werror_flag
1.1 root 3979: CFLAGS="-g"
3980: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981: /* end confdefs.h. */
3982:
3983: int
1.1.1.10 root 3984: main (void)
1.1 root 3985: {
3986:
3987: ;
3988: return 0;
3989: }
3990: _ACEOF
1.1.1.10 root 3991: if ac_fn_c_try_compile "$LINENO"
3992: then :
1.1 root 3993: ac_cv_prog_cc_g=yes
3994: fi
1.1.1.15 root 3995: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3996: esac
1.1 root 3997: fi
1.1.1.15 root 3998: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3999: esac
1.1 root 4000: fi
1.1.1.10 root 4001: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.15 root 4002: ac_c_werror_flag=$ac_save_c_werror_flag ;;
4003: esac
1.1 root 4004: fi
1.1.1.10 root 4005: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4006: printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4007: if test $ac_test_CFLAGS; then
1.1 root 4008: CFLAGS=$ac_save_CFLAGS
4009: elif test $ac_cv_prog_cc_g = yes; then
4010: if test "$GCC" = yes; then
4011: CFLAGS="-g -O2"
4012: else
4013: CFLAGS="-g"
4014: fi
4015: else
4016: if test "$GCC" = yes; then
4017: CFLAGS="-O2"
4018: else
4019: CFLAGS=
4020: fi
4021: fi
1.1.1.10 root 4022: ac_prog_cc_stdc=no
4023: if test x$ac_prog_cc_stdc = xno
4024: then :
4025: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4026: printf %s "checking for $CC option to enable C11 features... " >&6; }
4027: if test ${ac_cv_prog_cc_c11+y}
4028: then :
4029: printf %s "(cached) " >&6
1.1.1.15 root 4030: else case e in #(
4031: e) ac_cv_prog_cc_c11=no
1.1 root 4032: ac_save_CC=$CC
4033: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034: /* end confdefs.h. */
1.1.1.10 root 4035: $ac_c_conftest_c11_program
4036: _ACEOF
4037: for ac_arg in '' -std=gnu11
4038: do
4039: CC="$ac_save_CC $ac_arg"
4040: if ac_fn_c_try_compile "$LINENO"
4041: then :
4042: ac_cv_prog_cc_c11=$ac_arg
4043: fi
4044: rm -f core conftest.err conftest.$ac_objext conftest.beam
4045: test "x$ac_cv_prog_cc_c11" != "xno" && break
4046: done
4047: rm -f conftest.$ac_ext
1.1.1.15 root 4048: CC=$ac_save_CC ;;
4049: esac
1.1.1.10 root 4050: fi
1.1 root 4051:
1.1.1.10 root 4052: if test "x$ac_cv_prog_cc_c11" = xno
4053: then :
4054: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4055: printf "%s\n" "unsupported" >&6; }
1.1.1.15 root 4056: else case e in #(
4057: e) if test "x$ac_cv_prog_cc_c11" = x
1.1.1.10 root 4058: then :
4059: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4060: printf "%s\n" "none needed" >&6; }
1.1.1.15 root 4061: else case e in #(
4062: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
1.1.1.10 root 4063: printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
1.1.1.15 root 4064: CC="$CC $ac_cv_prog_cc_c11" ;;
4065: esac
1.1.1.10 root 4066: fi
4067: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
1.1.1.15 root 4068: ac_prog_cc_stdc=c11 ;;
4069: esac
1.1.1.10 root 4070: fi
4071: fi
4072: if test x$ac_prog_cc_stdc = xno
4073: then :
4074: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4075: printf %s "checking for $CC option to enable C99 features... " >&6; }
4076: if test ${ac_cv_prog_cc_c99+y}
4077: then :
4078: printf %s "(cached) " >&6
1.1.1.15 root 4079: else case e in #(
4080: e) ac_cv_prog_cc_c99=no
1.1.1.10 root 4081: ac_save_CC=$CC
4082: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083: /* end confdefs.h. */
4084: $ac_c_conftest_c99_program
4085: _ACEOF
4086: for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4087: do
4088: CC="$ac_save_CC $ac_arg"
4089: if ac_fn_c_try_compile "$LINENO"
4090: then :
4091: ac_cv_prog_cc_c99=$ac_arg
4092: fi
4093: rm -f core conftest.err conftest.$ac_objext conftest.beam
4094: test "x$ac_cv_prog_cc_c99" != "xno" && break
4095: done
4096: rm -f conftest.$ac_ext
1.1.1.15 root 4097: CC=$ac_save_CC ;;
4098: esac
1.1.1.10 root 4099: fi
1.1 root 4100:
1.1.1.10 root 4101: if test "x$ac_cv_prog_cc_c99" = xno
4102: then :
4103: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4104: printf "%s\n" "unsupported" >&6; }
1.1.1.15 root 4105: else case e in #(
4106: e) if test "x$ac_cv_prog_cc_c99" = x
1.1.1.10 root 4107: then :
4108: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4109: printf "%s\n" "none needed" >&6; }
1.1.1.15 root 4110: else case e in #(
4111: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
1.1.1.10 root 4112: printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
1.1.1.15 root 4113: CC="$CC $ac_cv_prog_cc_c99" ;;
4114: esac
1.1.1.10 root 4115: fi
4116: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
1.1.1.15 root 4117: ac_prog_cc_stdc=c99 ;;
4118: esac
1.1.1.10 root 4119: fi
4120: fi
4121: if test x$ac_prog_cc_stdc = xno
4122: then :
4123: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4124: printf %s "checking for $CC option to enable C89 features... " >&6; }
4125: if test ${ac_cv_prog_cc_c89+y}
4126: then :
4127: printf %s "(cached) " >&6
1.1.1.15 root 4128: else case e in #(
4129: e) ac_cv_prog_cc_c89=no
1.1.1.10 root 4130: ac_save_CC=$CC
4131: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132: /* end confdefs.h. */
4133: $ac_c_conftest_c89_program
1.1 root 4134: _ACEOF
1.1.1.10 root 4135: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 root 4136: do
4137: CC="$ac_save_CC $ac_arg"
1.1.1.10 root 4138: if ac_fn_c_try_compile "$LINENO"
4139: then :
1.1 root 4140: ac_cv_prog_cc_c89=$ac_arg
4141: fi
1.1.1.10 root 4142: rm -f core conftest.err conftest.$ac_objext conftest.beam
1.1 root 4143: test "x$ac_cv_prog_cc_c89" != "xno" && break
4144: done
4145: rm -f conftest.$ac_ext
1.1.1.15 root 4146: CC=$ac_save_CC ;;
4147: esac
1.1 root 4148: fi
4149:
1.1.1.10 root 4150: if test "x$ac_cv_prog_cc_c89" = xno
4151: then :
4152: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4153: printf "%s\n" "unsupported" >&6; }
1.1.1.15 root 4154: else case e in #(
4155: e) if test "x$ac_cv_prog_cc_c89" = x
1.1.1.10 root 4156: then :
4157: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4158: printf "%s\n" "none needed" >&6; }
1.1.1.15 root 4159: else case e in #(
4160: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
1.1.1.10 root 4161: printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
1.1.1.15 root 4162: CC="$CC $ac_cv_prog_cc_c89" ;;
4163: esac
1.1.1.10 root 4164: fi
4165: ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
1.1.1.15 root 4166: ac_prog_cc_stdc=c89 ;;
4167: esac
1.1.1.10 root 4168: fi
1.1 root 4169: fi
4170:
4171: ac_ext=c
4172: ac_cpp='$CPP $CPPFLAGS'
4173: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4176:
1.1.1.10 root 4177:
4178:
4179: # Find a good install program. We prefer a C program (faster),
1.1.1.3 root 4180: # so one script is as good as another. But avoid the broken or
4181: # incompatible versions:
4182: # SysV /etc/install, /usr/sbin/install
4183: # SunOS /usr/etc/install
4184: # IRIX /sbin/install
4185: # AIX /bin/install
4186: # AmigaOS /C/install, which installs bootblocks on floppy discs
4187: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4188: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4189: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4190: # OS/2's system install, which has a completely different semantic
4191: # ./install, which can be erroneously created by make from ./install.sh.
4192: # Reject install programs that cannot install multiple files.
1.1.1.10 root 4193: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4194: printf %s "checking for a BSD-compatible install... " >&6; }
1.1.1.3 root 4195: if test -z "$INSTALL"; then
1.1.1.10 root 4196: if test ${ac_cv_path_install+y}
4197: then :
4198: printf %s "(cached) " >&6
1.1.1.15 root 4199: else case e in #(
4200: e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1.1.3 root 4201: for as_dir in $PATH
4202: do
4203: IFS=$as_save_IFS
1.1.1.10 root 4204: case $as_dir in #(((
4205: '') as_dir=./ ;;
4206: */) ;;
4207: *) as_dir=$as_dir/ ;;
4208: esac
4209: # Account for fact that we put trailing slashes in our PATH walk.
4210: case $as_dir in #((
4211: ./ | /[cC]/* | \
1.1.1.3 root 4212: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4213: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4214: /usr/ucb/* ) ;;
4215: *)
4216: # OSF1 and SCO ODT 3.0 have their own names for install.
4217: # Don't use installbsd from OSF since it installs stuff as root
4218: # by default.
4219: for ac_prog in ginstall scoinst install; do
4220: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.10 root 4221: if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
1.1.1.3 root 4222: if test $ac_prog = install &&
1.1.1.10 root 4223: grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.1.1.3 root 4224: # AIX install. It has an incompatible calling convention.
4225: :
4226: elif test $ac_prog = install &&
1.1.1.10 root 4227: grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.1.1.3 root 4228: # program-specific install script used by HP pwplus--don't use.
4229: :
4230: else
4231: rm -rf conftest.one conftest.two conftest.dir
4232: echo one > conftest.one
4233: echo two > conftest.two
4234: mkdir conftest.dir
1.1.1.10 root 4235: if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
1.1.1.3 root 4236: test -s conftest.one && test -s conftest.two &&
4237: test -s conftest.dir/conftest.one &&
4238: test -s conftest.dir/conftest.two
4239: then
1.1.1.10 root 4240: ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
1.1.1.3 root 4241: break 3
4242: fi
4243: fi
4244: fi
4245: done
4246: done
4247: ;;
4248: esac
1.1 root 4249:
1.1.1.3 root 4250: done
4251: IFS=$as_save_IFS
1.1 root 4252:
1.1.1.3 root 4253: rm -rf conftest.one conftest.two conftest.dir
1.1.1.15 root 4254: ;;
4255: esac
1.1.1.3 root 4256: fi
1.1.1.10 root 4257: if test ${ac_cv_path_install+y}; then
1.1.1.3 root 4258: INSTALL=$ac_cv_path_install
4259: else
4260: # As a last resort, use the slow shell script. Don't cache a
4261: # value for INSTALL within a source directory, because that will
4262: # break other packages using the cache if that directory is
4263: # removed, or if the value is a relative name.
4264: INSTALL=$ac_install_sh
4265: fi
4266: fi
1.1.1.10 root 4267: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4268: printf "%s\n" "$INSTALL" >&6; }
1.1.1.3 root 4269:
4270: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4271: # It thinks the first close brace ends the variable substitution.
4272: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4273:
4274: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4275:
4276: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4277:
4278:
1.1.1.10 root 4279: # OS
1.1 root 4280:
4281:
1.1.1.10 root 4282: # Make sure we can run config.sub.
4283: $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4284: as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4285:
4286: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4287: printf %s "checking build system type... " >&6; }
4288: if test ${ac_cv_build+y}
4289: then :
4290: printf %s "(cached) " >&6
1.1.1.15 root 4291: else case e in #(
4292: e) ac_build_alias=$build_alias
1.1.1.10 root 4293: test "x$ac_build_alias" = x &&
4294: ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4295: test "x$ac_build_alias" = x &&
4296: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4297: ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4298: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
1.1.1.15 root 4299: ;;
4300: esac
1.1 root 4301: fi
1.1.1.10 root 4302: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4303: printf "%s\n" "$ac_cv_build" >&6; }
4304: case $ac_cv_build in
4305: *-*-*) ;;
4306: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4307: esac
4308: build=$ac_cv_build
4309: ac_save_IFS=$IFS; IFS='-'
4310: set x $ac_cv_build
4311: shift
4312: build_cpu=$1
4313: build_vendor=$2
4314: shift; shift
4315: # Remember, the first character of IFS is used to create $*,
4316: # except with old shells:
4317: build_os=$*
4318: IFS=$ac_save_IFS
4319: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.1 root 4320:
4321:
1.1.1.10 root 4322: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4323: printf %s "checking host system type... " >&6; }
4324: if test ${ac_cv_host+y}
4325: then :
4326: printf %s "(cached) " >&6
1.1.1.15 root 4327: else case e in #(
4328: e) if test "x$host_alias" = x; then
1.1.1.10 root 4329: ac_cv_host=$ac_cv_build
1.1 root 4330: else
1.1.1.10 root 4331: ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4332: as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
1.1 root 4333: fi
1.1.1.15 root 4334: ;;
4335: esac
1.1 root 4336: fi
1.1.1.10 root 4337: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4338: printf "%s\n" "$ac_cv_host" >&6; }
4339: case $ac_cv_host in
4340: *-*-*) ;;
4341: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4342: esac
4343: host=$ac_cv_host
4344: ac_save_IFS=$IFS; IFS='-'
4345: set x $ac_cv_host
4346: shift
4347: host_cpu=$1
4348: host_vendor=$2
4349: shift; shift
4350: # Remember, the first character of IFS is used to create $*,
4351: # except with old shells:
4352: host_os=$*
4353: IFS=$ac_save_IFS
4354: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1 root 4355:
4356:
4357:
4358:
1.1.1.10 root 4359: # コンパイラをチェック。今のところ clang/gcc のみ。
4360: # (autoconf がやってる gcc かどうかのチェックは clang を検出できず使えない)
4361: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler" >&5
4362: printf %s "checking for compiler... " >&6; }
4363: if test -n "`${CC} -v 2>&1 | grep clang`" ; then
4364: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: clang" >&5
4365: printf "%s\n" "clang" >&6; }
4366: COMPILER=CLANG
4367: elif test -n "`${CC} -v 2>&1 | grep GCC`"; then
4368: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: gcc" >&5
4369: printf "%s\n" "gcc" >&6; }
4370: COMPILER=GCC
1.1 root 4371: else
1.1.1.10 root 4372: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
4373: printf "%s\n" "unknown" >&6; }
4374: COMPILER=
1.1 root 4375: fi
4376:
4377:
1.1.1.10 root 4378: # C++ のバージョンをチェック
4379: CXX_STD=-std=c++14
4380: ac_ext=cpp
4381: ac_cpp='$CXXCPP $CPPFLAGS'
4382: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1 root 4385:
1.1.1.10 root 4386: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${CXX_STD}" >&5
4387: printf %s "checking for ${CXX_STD}... " >&6; }
4388: old_CXXFLAGS="${CXXFLAGS}"
4389: CXXFLAGS="${CXX_STD} ${CXXFLAGS}"
1.1 root 4390:
1.1.1.10 root 4391: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 root 4392: /* end confdefs.h. */
4393:
4394: int
1.1.1.10 root 4395: main (void)
1.1 root 4396: {
4397:
4398: ;
4399: return 0;
4400: }
4401: _ACEOF
1.1.1.10 root 4402: if ac_fn_cxx_try_compile "$LINENO"
4403: then :
4404: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4405: printf "%s\n" "yes" >&6; }
1.1.1.15 root 4406: else case e in #(
4407: e) as_fn_error $? "\"*** C++ compiler '${CXX}' doesn't support ${CXX_STD}.\"" "$LINENO" 5 ;;
4408: esac
1.1 root 4409: fi
1.1.1.10 root 4410: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4411: CXXFLAGS="${old_CXXFLAGS}"
4412: CXX="${CXX} ${CXX_STD}"
4413: ac_ext=c
4414: ac_cpp='$CPP $CPPFLAGS'
4415: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 root 4418:
4419:
1.1.1.10 root 4420: # C コンパイラのワーニングオプション
4421: ac_ext=c
4422: ac_cpp='$CPP $CPPFLAGS'
4423: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 root 4426:
4427:
4428:
4429:
1.1.1.10 root 4430: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wcast-qual" >&5
4431: printf %s "checking whether cc accepts -Wcast-qual... " >&6; }
4432: old_CFLAGS="${CFLAGS}"
4433: CFLAGS="${CFLAGS} -Werror -Wcast-qual"
4434: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 root 4435: /* end confdefs.h. */
4436:
4437: int
1.1.1.10 root 4438: main (void)
1.1 root 4439: {
1.1.1.10 root 4440:
4441: ;
1.1 root 4442: return 0;
4443: }
4444: _ACEOF
1.1.1.10 root 4445: if ac_fn_c_try_compile "$LINENO"
4446: then :
4447: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4448: printf "%s\n" "yes" >&6; }
1.1.1.11 root 4449: eval `echo cc_has-Wcast-qual=yes | sed -e 's/-/_/g'`
1.1.1.10 root 4450: WARNFLAGS_C="${WARNFLAGS_C} -Wcast-qual"
1.1.1.15 root 4451: else case e in #(
4452: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453: printf "%s\n" "no" >&6; } ;;
4454: esac
1.1 root 4455: fi
1.1.1.10 root 4456: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4457: CFLAGS="${old_CFLAGS}"
1.1 root 4458:
4459:
1.1.1.10 root 4460: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wextra-semi" >&5
4461: printf %s "checking whether cc accepts -Wextra-semi... " >&6; }
4462: old_CFLAGS="${CFLAGS}"
4463: CFLAGS="${CFLAGS} -Werror -Wextra-semi"
4464: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 root 4465: /* end confdefs.h. */
4466:
4467: int
1.1.1.10 root 4468: main (void)
1.1 root 4469: {
4470:
4471: ;
4472: return 0;
4473: }
4474: _ACEOF
1.1.1.10 root 4475: if ac_fn_c_try_compile "$LINENO"
4476: then :
4477: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4478: printf "%s\n" "yes" >&6; }
1.1.1.11 root 4479: eval `echo cc_has-Wextra-semi=yes | sed -e 's/-/_/g'`
1.1.1.10 root 4480: WARNFLAGS_C="${WARNFLAGS_C} -Wextra-semi"
1.1.1.15 root 4481: else case e in #(
4482: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4483: printf "%s\n" "no" >&6; } ;;
4484: esac
1.1.1.10 root 4485: fi
4486: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4487: CFLAGS="${old_CFLAGS}"
4488:
4489:
4490: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wlogical-op" >&5
4491: printf %s "checking whether cc accepts -Wlogical-op... " >&6; }
4492: old_CFLAGS="${CFLAGS}"
4493: CFLAGS="${CFLAGS} -Werror -Wlogical-op"
4494: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 root 4495: /* end confdefs.h. */
4496:
4497: int
1.1.1.10 root 4498: main (void)
1.1 root 4499: {
4500:
4501: ;
4502: return 0;
4503: }
4504: _ACEOF
1.1.1.10 root 4505: if ac_fn_c_try_compile "$LINENO"
4506: then :
4507: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4508: printf "%s\n" "yes" >&6; }
1.1.1.11 root 4509: eval `echo cc_has-Wlogical-op=yes | sed -e 's/-/_/g'`
1.1.1.10 root 4510: WARNFLAGS_C="${WARNFLAGS_C} -Wlogical-op"
1.1.1.15 root 4511: else case e in #(
4512: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513: printf "%s\n" "no" >&6; } ;;
4514: esac
1.1 root 4515: fi
1.1.1.10 root 4516: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4517: CFLAGS="${old_CFLAGS}"
1.1 root 4518:
4519:
1.1.1.10 root 4520: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wmissing-prototypes" >&5
4521: printf %s "checking whether cc accepts -Wmissing-prototypes... " >&6; }
4522: old_CFLAGS="${CFLAGS}"
4523: CFLAGS="${CFLAGS} -Werror -Wmissing-prototypes"
4524: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 root 4525: /* end confdefs.h. */
4526:
4527: int
1.1.1.10 root 4528: main (void)
1.1 root 4529: {
4530:
4531: ;
4532: return 0;
4533: }
4534: _ACEOF
1.1.1.10 root 4535: if ac_fn_c_try_compile "$LINENO"
4536: then :
4537: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4538: printf "%s\n" "yes" >&6; }
1.1.1.11 root 4539: eval `echo cc_has-Wmissing-prototypes=yes | sed -e 's/-/_/g'`
1.1.1.10 root 4540: WARNFLAGS_C="${WARNFLAGS_C} -Wmissing-prototypes"
1.1.1.15 root 4541: else case e in #(
4542: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543: printf "%s\n" "no" >&6; } ;;
4544: esac
1.1 root 4545: fi
1.1.1.10 root 4546: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4547: CFLAGS="${old_CFLAGS}"
1.1 root 4548:
1.1.1.10 root 4549:
4550: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wmissing-variable-declarations" >&5
4551: printf %s "checking whether cc accepts -Wmissing-variable-declarations... " >&6; }
4552: old_CFLAGS="${CFLAGS}"
4553: CFLAGS="${CFLAGS} -Werror -Wmissing-variable-declarations"
4554: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 root 4555: /* end confdefs.h. */
1.1.1.10 root 4556:
1.1 root 4557: int
1.1.1.10 root 4558: main (void)
1.1 root 4559: {
4560:
4561: ;
4562: return 0;
4563: }
4564: _ACEOF
1.1.1.10 root 4565: if ac_fn_c_try_compile "$LINENO"
4566: then :
4567: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4568: printf "%s\n" "yes" >&6; }
1.1.1.11 root 4569: eval `echo cc_has-Wmissing-variable-declarations=yes | sed -e 's/-/_/g'`
1.1.1.10 root 4570: WARNFLAGS_C="${WARNFLAGS_C} -Wmissing-variable-declarations"
1.1.1.15 root 4571: else case e in #(
4572: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573: printf "%s\n" "no" >&6; } ;;
4574: esac
1.1.1.6 root 4575: fi
1.1.1.10 root 4576: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4577: CFLAGS="${old_CFLAGS}"
1.1.1.6 root 4578:
1.1.1.11 root 4579: # -Wshadow-local があればそっちを使う(gcc>=7)、なければ -Wshadow (clang)
4580:
4581: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wshadow-local" >&5
4582: printf %s "checking whether cc accepts -Wshadow-local... " >&6; }
4583: old_CFLAGS="${CFLAGS}"
4584: CFLAGS="${CFLAGS} -Werror -Wshadow-local"
4585: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586: /* end confdefs.h. */
4587:
4588: int
4589: main (void)
4590: {
4591:
4592: ;
4593: return 0;
4594: }
4595: _ACEOF
4596: if ac_fn_c_try_compile "$LINENO"
4597: then :
4598: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4599: printf "%s\n" "yes" >&6; }
4600: eval `echo cc_has-Wshadow-local=yes | sed -e 's/-/_/g'`
4601: WARNFLAGS_C="${WARNFLAGS_C} -Wshadow-local"
1.1.1.15 root 4602: else case e in #(
4603: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604: printf "%s\n" "no" >&6; } ;;
4605: esac
1.1.1.11 root 4606: fi
4607: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4608: CFLAGS="${old_CFLAGS}"
4609:
4610: if test x"${cc_has_Wshadow_local}" != xyes; then
4611:
4612: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wshadow" >&5
4613: printf %s "checking whether cc accepts -Wshadow... " >&6; }
4614: old_CFLAGS="${CFLAGS}"
4615: CFLAGS="${CFLAGS} -Werror -Wshadow"
4616: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617: /* end confdefs.h. */
4618:
4619: int
4620: main (void)
4621: {
4622:
4623: ;
4624: return 0;
4625: }
4626: _ACEOF
4627: if ac_fn_c_try_compile "$LINENO"
4628: then :
4629: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4630: printf "%s\n" "yes" >&6; }
4631: eval `echo cc_has-Wshadow=yes | sed -e 's/-/_/g'`
4632: WARNFLAGS_C="${WARNFLAGS_C} -Wshadow"
1.1.1.15 root 4633: else case e in #(
4634: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635: printf "%s\n" "no" >&6; } ;;
4636: esac
4637: fi
4638: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4639: CFLAGS="${old_CFLAGS}"
4640:
4641: fi
4642:
4643: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wstring-conversion" >&5
4644: printf %s "checking whether cc accepts -Wstring-conversion... " >&6; }
4645: old_CFLAGS="${CFLAGS}"
4646: CFLAGS="${CFLAGS} -Werror -Wstring-conversion"
4647: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648: /* end confdefs.h. */
4649:
4650: int
4651: main (void)
4652: {
4653:
4654: ;
4655: return 0;
4656: }
4657: _ACEOF
4658: if ac_fn_c_try_compile "$LINENO"
4659: then :
4660: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4661: printf "%s\n" "yes" >&6; }
4662: eval `echo cc_has-Wstring-conversion=yes | sed -e 's/-/_/g'`
4663: WARNFLAGS_C="${WARNFLAGS_C} -Wstring-conversion"
4664: else case e in #(
4665: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666: printf "%s\n" "no" >&6; } ;;
4667: esac
1.1.1.11 root 4668: fi
4669: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4670: CFLAGS="${old_CFLAGS}"
4671:
1.1.1.15 root 4672:
4673: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -Wtype-limits" >&5
4674: printf %s "checking whether cc accepts -Wtype-limits... " >&6; }
4675: old_CFLAGS="${CFLAGS}"
4676: CFLAGS="${CFLAGS} -Werror -Wtype-limits"
4677: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678: /* end confdefs.h. */
4679:
4680: int
4681: main (void)
4682: {
4683:
4684: ;
4685: return 0;
4686: }
4687: _ACEOF
4688: if ac_fn_c_try_compile "$LINENO"
4689: then :
4690: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4691: printf "%s\n" "yes" >&6; }
4692: eval `echo cc_has-Wtype-limits=yes | sed -e 's/-/_/g'`
4693: WARNFLAGS_C="${WARNFLAGS_C} -Wtype-limits"
4694: else case e in #(
4695: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696: printf "%s\n" "no" >&6; } ;;
4697: esac
1.1.1.11 root 4698: fi
1.1.1.15 root 4699: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4700: CFLAGS="${old_CFLAGS}"
4701:
1.1.1.10 root 4702: ac_ext=c
4703: ac_cpp='$CPP $CPPFLAGS'
4704: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1.1.6 root 4707:
1.1.1.4 root 4708:
4709:
1.1.1.10 root 4710: # C++ コンパイラのワーニングオプション
4711: # (AC_LANG は C++ のまま継続する)
1.1.1.3 root 4712: ac_ext=cpp
4713: ac_cpp='$CXXCPP $CPPFLAGS'
4714: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4715: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4716: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4717:
4718:
1.1.1.10 root 4719:
4720: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wcast-qual" >&5
4721: printf %s "checking whether c++ accepts -Wcast-qual... " >&6; }
4722: old_CXXFLAGS="${CXXFLAGS}"
4723: CXXFLAGS="${CXXFLAGS} -Werror -Wcast-qual"
4724: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 root 4725: /* end confdefs.h. */
4726:
4727: int
1.1.1.10 root 4728: main (void)
1.1 root 4729: {
4730:
4731: ;
4732: return 0;
4733: }
4734: _ACEOF
1.1.1.10 root 4735: if ac_fn_cxx_try_compile "$LINENO"
4736: then :
4737: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4738: printf "%s\n" "yes" >&6; }
1.1.1.11 root 4739: eval `echo cxx_has-Wcast-qual=yes | sed -e 's/-/_/g'`
1.1.1.10 root 4740: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wcast-qual"
1.1.1.15 root 4741: else case e in #(
4742: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743: printf "%s\n" "no" >&6; } ;;
4744: esac
1.1 root 4745: fi
1.1.1.10 root 4746: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4747: CXXFLAGS="${old_CXXFLAGS}"
1.1 root 4748:
4749:
1.1.1.10 root 4750: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wextra-semi" >&5
4751: printf %s "checking whether c++ accepts -Wextra-semi... " >&6; }
4752: old_CXXFLAGS="${CXXFLAGS}"
4753: CXXFLAGS="${CXXFLAGS} -Werror -Wextra-semi"
1.1.1.3 root 4754: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755: /* end confdefs.h. */
1.1 root 4756:
1.1.1.3 root 4757: int
1.1.1.10 root 4758: main (void)
1.1.1.3 root 4759: {
1.1 root 4760:
1.1.1.3 root 4761: ;
4762: return 0;
4763: }
1.1.1.2 root 4764: _ACEOF
1.1.1.10 root 4765: if ac_fn_cxx_try_compile "$LINENO"
4766: then :
4767: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4768: printf "%s\n" "yes" >&6; }
1.1.1.11 root 4769: eval `echo cxx_has-Wextra-semi=yes | sed -e 's/-/_/g'`
1.1.1.10 root 4770: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wextra-semi"
1.1.1.15 root 4771: else case e in #(
4772: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773: printf "%s\n" "no" >&6; } ;;
4774: esac
1.1.1.2 root 4775: fi
1.1.1.10 root 4776: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4777: CXXFLAGS="${old_CXXFLAGS}"
1.1.1.2 root 4778:
1.1 root 4779:
1.1.1.15 root 4780: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Winconsistent-missing-destructor-override" >&5
4781: printf %s "checking whether c++ accepts -Winconsistent-missing-destructor-override... " >&6; }
1.1.1.10 root 4782: old_CXXFLAGS="${CXXFLAGS}"
1.1.1.15 root 4783: CXXFLAGS="${CXXFLAGS} -Werror -Winconsistent-missing-destructor-override"
1.1.1.3 root 4784: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785: /* end confdefs.h. */
1.1 root 4786:
1.1.1.3 root 4787: int
1.1.1.10 root 4788: main (void)
1.1.1.3 root 4789: {
1.1 root 4790:
1.1.1.3 root 4791: ;
4792: return 0;
4793: }
4794: _ACEOF
1.1.1.10 root 4795: if ac_fn_cxx_try_compile "$LINENO"
4796: then :
4797: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4798: printf "%s\n" "yes" >&6; }
1.1.1.15 root 4799: eval `echo cxx_has-Winconsistent-missing-destructor-override=yes | sed -e 's/-/_/g'`
4800: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Winconsistent-missing-destructor-override"
4801: else case e in #(
4802: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803: printf "%s\n" "no" >&6; } ;;
4804: esac
1.1.1.3 root 4805: fi
1.1.1.10 root 4806: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4807: CXXFLAGS="${old_CXXFLAGS}"
1.1.1.3 root 4808:
4809:
1.1.1.15 root 4810: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Winconsistent-missing-override" >&5
4811: printf %s "checking whether c++ accepts -Winconsistent-missing-override... " >&6; }
1.1.1.10 root 4812: old_CXXFLAGS="${CXXFLAGS}"
1.1.1.15 root 4813: CXXFLAGS="${CXXFLAGS} -Werror -Winconsistent-missing-override"
1.1.1.3 root 4814: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815: /* end confdefs.h. */
4816:
4817: int
1.1.1.10 root 4818: main (void)
1.1.1.3 root 4819: {
4820:
4821: ;
4822: return 0;
4823: }
4824: _ACEOF
1.1.1.10 root 4825: if ac_fn_cxx_try_compile "$LINENO"
4826: then :
4827: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4828: printf "%s\n" "yes" >&6; }
1.1.1.15 root 4829: eval `echo cxx_has-Winconsistent-missing-override=yes | sed -e 's/-/_/g'`
4830: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Winconsistent-missing-override"
4831: else case e in #(
4832: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833: printf "%s\n" "no" >&6; } ;;
4834: esac
1.1.1.3 root 4835: fi
1.1.1.10 root 4836: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4837: CXXFLAGS="${old_CXXFLAGS}"
1.1.1.3 root 4838:
4839:
1.1.1.10 root 4840: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wlogical-op" >&5
4841: printf %s "checking whether c++ accepts -Wlogical-op... " >&6; }
4842: old_CXXFLAGS="${CXXFLAGS}"
4843: CXXFLAGS="${CXXFLAGS} -Werror -Wlogical-op"
1.1.1.3 root 4844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845: /* end confdefs.h. */
4846:
4847: int
1.1.1.10 root 4848: main (void)
1.1.1.3 root 4849: {
4850:
4851: ;
4852: return 0;
4853: }
4854: _ACEOF
1.1.1.10 root 4855: if ac_fn_cxx_try_compile "$LINENO"
4856: then :
4857: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4858: printf "%s\n" "yes" >&6; }
1.1.1.11 root 4859: eval `echo cxx_has-Wlogical-op=yes | sed -e 's/-/_/g'`
1.1.1.10 root 4860: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wlogical-op"
1.1.1.15 root 4861: else case e in #(
4862: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863: printf "%s\n" "no" >&6; } ;;
4864: esac
1.1.1.3 root 4865: fi
1.1.1.10 root 4866: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4867: CXXFLAGS="${old_CXXFLAGS}"
1.1.1.3 root 4868:
4869:
1.1.1.10 root 4870: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wmissing-prototypes" >&5
4871: printf %s "checking whether c++ accepts -Wmissing-prototypes... " >&6; }
4872: old_CXXFLAGS="${CXXFLAGS}"
4873: CXXFLAGS="${CXXFLAGS} -Werror -Wmissing-prototypes"
1.1.1.3 root 4874: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875: /* end confdefs.h. */
4876:
4877: int
1.1.1.10 root 4878: main (void)
1.1.1.3 root 4879: {
4880:
4881: ;
4882: return 0;
4883: }
4884: _ACEOF
1.1.1.10 root 4885: if ac_fn_cxx_try_compile "$LINENO"
4886: then :
4887: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4888: printf "%s\n" "yes" >&6; }
1.1.1.11 root 4889: eval `echo cxx_has-Wmissing-prototypes=yes | sed -e 's/-/_/g'`
1.1.1.10 root 4890: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wmissing-prototypes"
1.1.1.15 root 4891: else case e in #(
4892: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893: printf "%s\n" "no" >&6; } ;;
4894: esac
1.1.1.3 root 4895: fi
1.1.1.10 root 4896: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4897: CXXFLAGS="${old_CXXFLAGS}"
1.1.1.3 root 4898:
4899:
1.1.1.10 root 4900: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wmissing-variable-declarations" >&5
4901: printf %s "checking whether c++ accepts -Wmissing-variable-declarations... " >&6; }
4902: old_CXXFLAGS="${CXXFLAGS}"
4903: CXXFLAGS="${CXXFLAGS} -Werror -Wmissing-variable-declarations"
4904: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905: /* end confdefs.h. */
1.1.1.3 root 4906:
1.1.1.10 root 4907: int
4908: main (void)
4909: {
1.1.1.3 root 4910:
1.1.1.10 root 4911: ;
4912: return 0;
4913: }
4914: _ACEOF
4915: if ac_fn_cxx_try_compile "$LINENO"
4916: then :
4917: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4918: printf "%s\n" "yes" >&6; }
1.1.1.11 root 4919: eval `echo cxx_has-Wmissing-variable-declarations=yes | sed -e 's/-/_/g'`
1.1.1.10 root 4920: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wmissing-variable-declarations"
1.1.1.15 root 4921: else case e in #(
4922: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923: printf "%s\n" "no" >&6; } ;;
4924: esac
1.1.1.10 root 4925: fi
4926: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4927: CXXFLAGS="${old_CXXFLAGS}"
1.1.1.3 root 4928:
1.1.1.11 root 4929: # -Wshadow-local があればそっちを使う(gcc>=7)、なければ -Wshadow (clang)
4930:
4931: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wshadow-local" >&5
4932: printf %s "checking whether c++ accepts -Wshadow-local... " >&6; }
4933: old_CXXFLAGS="${CXXFLAGS}"
4934: CXXFLAGS="${CXXFLAGS} -Werror -Wshadow-local"
4935: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936: /* end confdefs.h. */
4937:
4938: int
4939: main (void)
4940: {
4941:
4942: ;
4943: return 0;
4944: }
4945: _ACEOF
4946: if ac_fn_cxx_try_compile "$LINENO"
4947: then :
4948: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4949: printf "%s\n" "yes" >&6; }
4950: eval `echo cxx_has-Wshadow-local=yes | sed -e 's/-/_/g'`
4951: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wshadow-local"
1.1.1.15 root 4952: else case e in #(
4953: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954: printf "%s\n" "no" >&6; } ;;
4955: esac
1.1.1.11 root 4956: fi
4957: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4958: CXXFLAGS="${old_CXXFLAGS}"
4959:
4960: if test x"${cxx_has_Wshadow_local}" != xyes; then
4961:
4962: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wshadow" >&5
4963: printf %s "checking whether c++ accepts -Wshadow... " >&6; }
4964: old_CXXFLAGS="${CXXFLAGS}"
4965: CXXFLAGS="${CXXFLAGS} -Werror -Wshadow"
4966: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967: /* end confdefs.h. */
4968:
4969: int
4970: main (void)
4971: {
4972:
4973: ;
4974: return 0;
4975: }
4976: _ACEOF
4977: if ac_fn_cxx_try_compile "$LINENO"
4978: then :
4979: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4980: printf "%s\n" "yes" >&6; }
4981: eval `echo cxx_has-Wshadow=yes | sed -e 's/-/_/g'`
4982: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wshadow"
1.1.1.15 root 4983: else case e in #(
4984: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985: printf "%s\n" "no" >&6; } ;;
4986: esac
1.1.1.11 root 4987: fi
4988: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4989: CXXFLAGS="${old_CXXFLAGS}"
4990:
4991: fi
1.1.1.3 root 4992:
1.1.1.15 root 4993: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wstring-conversion" >&5
4994: printf %s "checking whether c++ accepts -Wstring-conversion... " >&6; }
1.1.1.12 root 4995: old_CXXFLAGS="${CXXFLAGS}"
1.1.1.15 root 4996: CXXFLAGS="${CXXFLAGS} -Werror -Wstring-conversion"
1.1.1.12 root 4997: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998: /* end confdefs.h. */
4999:
5000: int
5001: main (void)
5002: {
5003:
5004: ;
5005: return 0;
5006: }
5007: _ACEOF
5008: if ac_fn_cxx_try_compile "$LINENO"
5009: then :
5010: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5011: printf "%s\n" "yes" >&6; }
1.1.1.15 root 5012: eval `echo cxx_has-Wstring-conversion=yes | sed -e 's/-/_/g'`
5013: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wstring-conversion"
5014: else case e in #(
5015: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016: printf "%s\n" "no" >&6; } ;;
5017: esac
1.1.1.12 root 5018: fi
5019: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5020: CXXFLAGS="${old_CXXFLAGS}"
5021:
5022:
1.1.1.15 root 5023: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wsuggest-destructor-override" >&5
5024: printf %s "checking whether c++ accepts -Wsuggest-destructor-override... " >&6; }
1.1.1.3 root 5025: old_CXXFLAGS="${CXXFLAGS}"
1.1.1.15 root 5026: CXXFLAGS="${CXXFLAGS} -Werror -Wsuggest-destructor-override"
1.1.1.3 root 5027: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028: /* end confdefs.h. */
5029:
5030: int
1.1.1.10 root 5031: main (void)
1.1.1.3 root 5032: {
5033:
5034: ;
5035: return 0;
5036: }
5037: _ACEOF
1.1.1.10 root 5038: if ac_fn_cxx_try_compile "$LINENO"
5039: then :
5040: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5041: printf "%s\n" "yes" >&6; }
1.1.1.15 root 5042: eval `echo cxx_has-Wsuggest-destructor-override=yes | sed -e 's/-/_/g'`
5043: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wsuggest-destructor-override"
5044: else case e in #(
5045: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046: printf "%s\n" "no" >&6; } ;;
5047: esac
1.1.1.3 root 5048: fi
1.1.1.10 root 5049: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.3 root 5050: CXXFLAGS="${old_CXXFLAGS}"
5051:
5052:
1.1.1.15 root 5053: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wsuggest-override" >&5
5054: printf %s "checking whether c++ accepts -Wsuggest-override... " >&6; }
5055: old_CXXFLAGS="${CXXFLAGS}"
5056: CXXFLAGS="${CXXFLAGS} -Werror -Wsuggest-override"
5057: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058: /* end confdefs.h. */
1.1.1.10 root 5059:
1.1.1.15 root 5060: int
5061: main (void)
5062: {
1.1.1.14 root 5063:
1.1.1.15 root 5064: ;
5065: return 0;
5066: }
5067: _ACEOF
5068: if ac_fn_cxx_try_compile "$LINENO"
5069: then :
5070: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5071: printf "%s\n" "yes" >&6; }
5072: eval `echo cxx_has-Wsuggest-override=yes | sed -e 's/-/_/g'`
5073: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wsuggest-override"
5074: else case e in #(
5075: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076: printf "%s\n" "no" >&6; } ;;
5077: esac
5078: fi
5079: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5080: CXXFLAGS="${old_CXXFLAGS}"
5081:
5082:
5083: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wtype-limits" >&5
5084: printf %s "checking whether c++ accepts -Wtype-limits... " >&6; }
5085: old_CXXFLAGS="${CXXFLAGS}"
5086: CXXFLAGS="${CXXFLAGS} -Werror -Wtype-limits"
5087: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088: /* end confdefs.h. */
5089:
5090: int
5091: main (void)
5092: {
5093:
5094: ;
5095: return 0;
5096: }
5097: _ACEOF
5098: if ac_fn_cxx_try_compile "$LINENO"
5099: then :
5100: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5101: printf "%s\n" "yes" >&6; }
5102: eval `echo cxx_has-Wtype-limits=yes | sed -e 's/-/_/g'`
5103: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wtype-limits"
5104: else case e in #(
5105: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106: printf "%s\n" "no" >&6; } ;;
5107: esac
5108: fi
5109: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5110: CXXFLAGS="${old_CXXFLAGS}"
5111:
5112:
5113: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wvla-extension" >&5
5114: printf %s "checking whether c++ accepts -Wvla-extension... " >&6; }
5115: old_CXXFLAGS="${CXXFLAGS}"
5116: CXXFLAGS="${CXXFLAGS} -Werror -Wvla-extension"
5117: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118: /* end confdefs.h. */
5119:
5120: int
5121: main (void)
5122: {
5123:
5124: ;
5125: return 0;
5126: }
5127: _ACEOF
5128: if ac_fn_cxx_try_compile "$LINENO"
5129: then :
5130: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5131: printf "%s\n" "yes" >&6; }
5132: eval `echo cxx_has-Wvla-extension=yes | sed -e 's/-/_/g'`
5133: WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wvla-extension"
5134: else case e in #(
5135: e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136: printf "%s\n" "no" >&6; } ;;
5137: esac
5138: fi
5139: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5140: CXXFLAGS="${old_CXXFLAGS}"
5141:
5142:
5143:
5144: # コンパイラが AVX2 をサポートしているか。
5145: # Check whether --enable-avx2 was given.
5146: if test ${enable_avx2+y}
5147: then :
5148: enableval=$enable_avx2;
5149: else case e in #(
5150: e) enable_avx2=yes ;;
5151: esac
5152: fi
5153:
5154:
5155: if test x"${enable_avx2}" != x"no"
5156: then :
5157:
5158: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports AVX2" >&5
5159: printf %s "checking whether the compiler supports AVX2... " >&6; }
5160: if test x"${host_cpu}" = x"x86_64"; then
1.1.1.14 root 5161: if test x"${host_cpu}" = x"${build_cpu}"; then
5162: old_CXXFLAGS="${CXXFLAGS}"
5163: CXXFLAGS="${CXXFLAGS} -mavx2"
5164: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165: /* end confdefs.h. */
5166:
5167: #include <x86intrin.h>
5168:
5169: int
5170: main (void)
5171: {
5172:
5173: #if !defined(__AVX2__)
5174: #error __AVX2__ is not defined by the compiler.
5175: #endif
5176: __m256i v;
5177:
5178: ;
5179: return 0;
5180: }
5181: _ACEOF
5182: if ac_fn_cxx_try_compile "$LINENO"
5183: then :
5184:
5185: have_avx2=yes
5186:
5187: fi
5188: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5189: CXXFLAGS="${old_CXXFLAGS}"
5190: fi
5191: fi
5192: if test x"${have_avx2}" = x"yes"; then
5193: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5194: printf "%s\n" "yes" >&6; }
5195: printf "%s\n" "#define HAVE_AVX2 1" >>confdefs.h
5196:
5197: HOST_HAS_AVX2=yes
5198:
5199: else
5200: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201: printf "%s\n" "no" >&6; }
5202: fi
5203:
5204: fi
5205:
1.1.1.15 root 5206: # コンパイラが NEON をサポートしているか。
5207: # Check whether --enable-neon was given.
5208: if test ${enable_neon+y}
5209: then :
5210: enableval=$enable_neon;
5211: else case e in #(
5212: e) enable_neon=yes ;;
5213: esac
5214: fi
5215:
5216:
5217: if test x"${enable_neon}" != x"no"
5218: then :
5219:
5220: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports NEON" >&5
5221: printf %s "checking whether the compiler supports NEON... " >&6; }
5222: if test x"${host_cpu}" = x"aarch64"; then
5223: if test x"${host_cpu}" = x"${build_cpu}"; then
5224: old_CXXFLAGS="${CXXFLAGS}"
5225: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226: /* end confdefs.h. */
5227:
5228: #include <arm_neon.h>
5229:
5230: int
5231: main (void)
5232: {
5233:
5234: uint8x16_t v;
5235:
5236: ;
5237: return 0;
5238: }
5239: _ACEOF
5240: if ac_fn_cxx_try_compile "$LINENO"
5241: then :
5242:
5243: have_neon=yes
5244:
5245: fi
5246: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5247: CXXFLAGS="${old_CXXFLAGS}"
5248: fi
5249: fi
5250: if test x"${have_neon}" = x"yes"; then
5251: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5252: printf "%s\n" "yes" >&6; }
5253: printf "%s\n" "#define HAVE_NEON 1" >>confdefs.h
5254:
5255: HOST_HAS_NEON=yes
5256:
5257: else
5258: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5259: printf "%s\n" "no" >&6; }
5260: fi
5261:
5262: fi
5263:
1.1.1.10 root 5264: # Checks for libraries.
5265:
5266: # Checks for header files.
5267: ac_header= ac_cache=
5268: for ac_item in $ac_header_cxx_list
5269: do
5270: if test $ac_cache; then
5271: ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5272: if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5273: printf "%s\n" "#define $ac_item 1" >> confdefs.h
5274: fi
5275: ac_header= ac_cache=
5276: elif test $ac_header; then
5277: ac_cache=$ac_item
5278: else
5279: ac_header=$ac_item
5280: fi
5281: done
5282:
5283:
5284:
5285:
5286:
5287:
5288:
5289:
5290: if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5291: then :
5292:
5293: printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5294:
5295: fi
5296: ac_fn_cxx_check_header_compile "$LINENO" "bsd/bsd.h" "ac_cv_header_bsd_bsd_h" "$ac_includes_default"
5297: if test "x$ac_cv_header_bsd_bsd_h" = xyes
5298: then :
5299: printf "%s\n" "#define HAVE_BSD_BSD_H 1" >>confdefs.h
5300:
5301: fi
5302:
5303: ac_fn_cxx_check_header_compile "$LINENO" "bsd/stdio.h" "ac_cv_header_bsd_stdio_h" "$ac_includes_default"
5304: if test "x$ac_cv_header_bsd_stdio_h" = xyes
5305: then :
5306: printf "%s\n" "#define HAVE_BSD_STDIO_H 1" >>confdefs.h
5307:
5308: fi
5309:
5310: ac_fn_cxx_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
5311: if test "x$ac_cv_header_byteswap_h" = xyes
5312: then :
5313: printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
5314:
5315: fi
5316:
5317: ac_fn_cxx_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
5318: if test "x$ac_cv_header_endian_h" = xyes
5319: then :
5320: printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
5321:
5322: fi
5323:
5324: ac_fn_cxx_check_header_compile "$LINENO" "kqueue/sys/event.h" "ac_cv_header_kqueue_sys_event_h" "$ac_includes_default"
5325: if test "x$ac_cv_header_kqueue_sys_event_h" = xyes
5326: then :
5327: printf "%s\n" "#define HAVE_KQUEUE_SYS_EVENT_H 1" >>confdefs.h
5328:
5329: fi
5330:
5331: ac_fn_cxx_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "$ac_includes_default"
5332: if test "x$ac_cv_header_pthread_np_h" = xyes
5333: then :
5334: printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
5335:
5336: fi
5337:
1.1.1.15 root 5338: ac_fn_cxx_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
5339: if test "x$ac_cv_header_sched_h" = xyes
5340: then :
5341: printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
5342:
5343: fi
5344:
5345: ac_fn_cxx_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default"
5346: if test "x$ac_cv_header_sys_cpuset_h" = xyes
5347: then :
5348: printf "%s\n" "#define HAVE_SYS_CPUSET_H 1" >>confdefs.h
5349:
5350: fi
5351:
1.1.1.10 root 5352: ac_fn_cxx_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
5353: if test "x$ac_cv_header_sys_endian_h" = xyes
5354: then :
5355: printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
5356:
5357: fi
5358:
5359: ac_fn_cxx_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
5360: if test "x$ac_cv_header_sys_event_h" = xyes
5361: then :
5362: printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
5363:
5364: fi
5365:
5366: ac_fn_cxx_check_header_compile "$LINENO" "net/bpf.h" "ac_cv_header_net_bpf_h" "$ac_includes_default"
5367: if test "x$ac_cv_header_net_bpf_h" = xyes
5368: then :
5369: printf "%s\n" "#define HAVE_NET_BPF_H 1" >>confdefs.h
5370:
5371: fi
5372:
5373: ac_fn_cxx_check_header_compile "$LINENO" "net/if_tap.h" "ac_cv_header_net_if_tap_h" "$ac_includes_default"
5374: if test "x$ac_cv_header_net_if_tap_h" = xyes
5375: then :
5376: printf "%s\n" "#define HAVE_NET_IF_TAP_H 1" >>confdefs.h
5377:
5378: fi
5379:
5380: ac_fn_cxx_check_header_compile "$LINENO" "linux/if_tun.h" "ac_cv_header_linux_if_tun_h" "$ac_includes_default"
5381: if test "x$ac_cv_header_linux_if_tun_h" = xyes
5382: then :
5383: printf "%s\n" "#define HAVE_LINUX_IF_TUN_H 1" >>confdefs.h
5384:
5385: fi
5386:
5387: ac_fn_cxx_check_header_compile "$LINENO" "libkern/OSByteOrder.h" "ac_cv_header_libkern_OSByteOrder_h" "$ac_includes_default"
5388: if test "x$ac_cv_header_libkern_OSByteOrder_h" = xyes
5389: then :
5390: printf "%s\n" "#define HAVE_LIBKERN_OSBYTEORDER_H 1" >>confdefs.h
5391:
5392: fi
5393:
5394: ac_fn_cxx_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
5395: if test "x$ac_cv_header_machine_endian_h" = xyes
5396: then :
5397: printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
5398:
5399: fi
5400:
5401:
5402: # Linux で <kqueue/sys/event.h> がなければここで停止したほうがいい
5403: case "${host_os}" in
5404: linux*)
5405: if test "$ac_cv_header_kqueue_sys_event_h" != "yes"; then
5406: as_fn_error $? "*** kqueue is not found.
5407: *** If you use Ubuntu, sudo apt install libkqueue-dev" "$LINENO" 5
5408: fi
5409: ;;
5410: esac
5411:
5412: # Checks for typedefs, structures, and compiler characteristics.
5413: ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5414: if test "x$ac_cv_type__Bool" = xyes
5415: then :
5416:
5417: printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
5418:
5419:
5420: fi
5421:
1.1.1.15 root 5422: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
5423: printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
1.1.1.10 root 5424: if test ${ac_cv_header_stdbool_h+y}
5425: then :
5426: printf %s "(cached) " >&6
1.1.1.15 root 5427: else case e in #(
5428: e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1.3 root 5429: /* end confdefs.h. */
1.1.1.10 root 5430: #include <stdbool.h>
5431:
1.1.1.15 root 5432: /* "true" and "false" should be usable in #if expressions and
5433: integer constant expressions, and "bool" should be a valid
5434: type name.
5435:
5436: Although C99 requires bool, true, and false to be macros,
5437: C23 and C++11 overrule that, so do not test for that.
5438: Although C99 requires __bool_true_false_are_defined and
5439: _Bool, C23 says they are obsolescent, so do not require
5440: them. */
1.1.1.10 root 5441:
5442: #if !true
5443: #error "'true' is not true"
5444: #endif
5445: #if true != 1
5446: #error "'true' is not equal to 1"
5447: #endif
5448: char b[true == 1 ? 1 : -1];
5449: char c[true];
5450:
5451: #if false
5452: #error "'false' is not false"
5453: #endif
5454: #if false != 0
5455: #error "'false' is not equal to 0"
5456: #endif
5457: char d[false == 0 ? 1 : -1];
5458:
5459: enum { e = false, f = true, g = false * true, h = true * 256 };
5460:
5461: char i[(bool) 0.5 == true ? 1 : -1];
5462: char j[(bool) 0.0 == false ? 1 : -1];
5463: char k[sizeof (bool) > 0 ? 1 : -1];
5464:
5465: struct sb { bool s: 1; bool t; } s;
5466: char l[sizeof s.t > 0 ? 1 : -1];
5467:
5468: /* The following fails for
5469: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5470: bool m[h];
5471: char n[sizeof m == h * sizeof m[0] ? 1 : -1];
5472: char o[-1 - (bool) 0 < 0 ? 1 : -1];
5473: /* Catch a bug in an HP-UX C compiler. See
1.1.1.15 root 5474: https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5475: https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
1.1.1.10 root 5476: */
5477: bool p = true;
5478: bool *pp = &p;
5479:
1.1.1.3 root 5480: int
1.1.1.10 root 5481: main (void)
1.1.1.3 root 5482: {
5483:
1.1.1.10 root 5484: bool ps = &s;
5485: *pp |= p;
5486: *pp |= ! p;
5487:
5488: /* Refer to every declared value, so they cannot be
5489: discarded as unused. */
1.1.1.15 root 5490: return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
5491: + !l + !m + !n + !o + !p + !pp + !ps);
1.1.1.10 root 5492:
1.1.1.3 root 5493: ;
5494: return 0;
5495: }
5496: _ACEOF
1.1.1.10 root 5497: if ac_fn_cxx_try_compile "$LINENO"
5498: then :
5499: ac_cv_header_stdbool_h=yes
1.1.1.15 root 5500: else case e in #(
5501: e) ac_cv_header_stdbool_h=no ;;
5502: esac
1.1.1.3 root 5503: fi
1.1.1.15 root 5504: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5505: esac
1.1.1.10 root 5506: fi
5507: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5508: printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
1.1.1.3 root 5509:
1.1.1.10 root 5510: #AC_C_INLINE
5511: #AC_TYPE_INT16_T
5512: #AC_TYPE_INT32_T
5513: #AC_TYPE_INT64_T
5514: #AC_TYPE_INT8_T
5515: #AC_TYPE_SIZE_T
5516: #AC_TYPE_UINT16_T
5517: #AC_TYPE_UINT32_T
5518: #AC_TYPE_UINT64_T
5519: #AC_TYPE_UINT8_T
1.1.1.3 root 5520:
1.1.1.15 root 5521: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpuset_t" >&5
5522: printf %s "checking for cpuset_t... " >&6; }
1.1.1.10 root 5523: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1.3 root 5524: /* end confdefs.h. */
5525:
1.1.1.15 root 5526: #if defined(HAVE_SCHED_H)
5527: #include <sched.h>
5528: #endif
5529: #if defined(HAVE_SYS_CPUSET_H)
5530: #include <sys/cpuset.h>
5531: #endif
5532:
1.1.1.3 root 5533: int
1.1.1.10 root 5534: main (void)
1.1.1.3 root 5535: {
5536:
1.1.1.15 root 5537: cpuset_t set;
1.1.1.10 root 5538:
1.1.1.3 root 5539: ;
5540: return 0;
5541: }
5542: _ACEOF
1.1.1.10 root 5543: if ac_fn_cxx_try_compile "$LINENO"
5544: then :
1.1.1.3 root 5545:
1.1.1.10 root 5546: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547: printf "%s\n" "yes" >&6; }
1.1.1.15 root 5548: printf "%s\n" "#define HAVE_CPUSET_T 1" >>confdefs.h
1.1.1.10 root 5549:
5550:
1.1.1.15 root 5551: else case e in #(
5552: e)
1.1.1.10 root 5553: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554: printf "%s\n" "no" >&6; }
1.1.1.15 root 5555: ;;
5556: esac
1.1.1.10 root 5557: fi
5558: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5559:
1.1.1.15 root 5560: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpuset_t *" >&5
5561: printf %s "checking for cpuset_t *... " >&6; }
1.1.1.10 root 5562: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1.3 root 5563: /* end confdefs.h. */
5564:
1.1.1.15 root 5565: #if defined(HAVE_SCHED_H)
5566: #include <sched.h>
5567: #endif
5568: #if defined(HAVE_SYS_CPUSET_H)
5569: #include <sys/cpuset.h>
5570: #endif
5571:
1.1.1.3 root 5572: int
1.1.1.10 root 5573: main (void)
1.1.1.3 root 5574: {
5575:
1.1.1.15 root 5576: cpuset_t *set;
1.1.1.10 root 5577:
1.1.1.3 root 5578: ;
5579: return 0;
5580: }
5581: _ACEOF
1.1.1.10 root 5582: if ac_fn_cxx_try_compile "$LINENO"
5583: then :
1.1.1.3 root 5584:
1.1.1.10 root 5585: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5586: printf "%s\n" "yes" >&6; }
1.1.1.15 root 5587: printf "%s\n" "#define HAVE_CPUSET_T_P 1" >>confdefs.h
1.1.1.10 root 5588:
5589:
1.1.1.15 root 5590: else case e in #(
5591: e)
1.1.1.10 root 5592: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593: printf "%s\n" "no" >&6; }
1.1.1.15 root 5594: ;;
5595: esac
1.1.1.10 root 5596: fi
5597: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5598:
1.1.1.15 root 5599: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpu_set_t" >&5
5600: printf %s "checking for cpu_set_t... " >&6; }
1.1.1.10 root 5601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1.3 root 5602: /* end confdefs.h. */
5603:
1.1.1.15 root 5604: #include <sched.h>
5605:
1.1.1.3 root 5606: int
1.1.1.10 root 5607: main (void)
1.1.1.3 root 5608: {
5609:
1.1.1.15 root 5610: cpu_set_t set;
1.1.1.10 root 5611:
1.1.1.3 root 5612: ;
5613: return 0;
5614: }
5615: _ACEOF
1.1.1.10 root 5616: if ac_fn_cxx_try_compile "$LINENO"
5617: then :
1.1.1.3 root 5618:
1.1.1.10 root 5619: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620: printf "%s\n" "yes" >&6; }
1.1.1.15 root 5621: printf "%s\n" "#define HAVE_CPU_SET_T 1" >>confdefs.h
1.1.1.10 root 5622:
5623:
1.1.1.15 root 5624: else case e in #(
5625: e)
1.1.1.10 root 5626: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627: printf "%s\n" "no" >&6; }
1.1.1.15 root 5628: ;;
5629: esac
1.1.1.10 root 5630: fi
5631: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5632:
1.1.1.15 root 5633:
5634: # __builtin
5635:
5636: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_assume" >&5
5637: printf %s "checking for __builtin_assume... " >&6; }
1.1.1.10 root 5638: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1.3 root 5639: /* end confdefs.h. */
5640:
5641: int
1.1.1.10 root 5642: main (void)
1.1.1.3 root 5643: {
5644:
1.1.1.15 root 5645: __builtin_assume(1);
1.1.1.10 root 5646:
1.1.1.3 root 5647: ;
5648: return 0;
5649: }
5650: _ACEOF
1.1.1.10 root 5651: if ac_fn_cxx_try_compile "$LINENO"
5652: then :
1.1.1.3 root 5653:
1.1.1.10 root 5654: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5655: printf "%s\n" "yes" >&6; }
1.1.1.15 root 5656: printf "%s\n" "#define HAVE___BUILTIN_ASSUME 1" >>confdefs.h
1.1.1.10 root 5657:
5658:
1.1.1.15 root 5659: else case e in #(
5660: e)
1.1.1.10 root 5661: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662: printf "%s\n" "no" >&6; }
1.1.1.15 root 5663: ;;
5664: esac
1.1.1.10 root 5665: fi
5666: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5667:
1.1.1.15 root 5668: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bitreverse8" >&5
5669: printf %s "checking for __builtin_bitreverse8... " >&6; }
1.1.1.10 root 5670: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1.3 root 5671: /* end confdefs.h. */
5672:
5673: int
1.1.1.10 root 5674: main (void)
1.1.1.3 root 5675: {
5676:
1.1.1.15 root 5677: return __builtin_bitreverse8(1);
1.1.1.10 root 5678:
1.1.1.3 root 5679: ;
5680: return 0;
5681: }
5682: _ACEOF
1.1.1.10 root 5683: if ac_fn_cxx_try_compile "$LINENO"
5684: then :
1.1.1.3 root 5685:
1.1.1.10 root 5686: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687: printf "%s\n" "yes" >&6; }
1.1.1.15 root 5688: printf "%s\n" "#define HAVE___BUILTIN_BITREVERSE8 1" >>confdefs.h
1.1.1.10 root 5689:
5690:
1.1.1.15 root 5691: else case e in #(
5692: e)
1.1.1.10 root 5693: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694: printf "%s\n" "no" >&6; }
1.1.1.15 root 5695: ;;
5696: esac
1.1.1.10 root 5697: fi
5698: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5699:
1.1.1.16! root 5700: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bitreverse16" >&5
! 5701: printf %s "checking for __builtin_bitreverse16... " >&6; }
! 5702: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 5703: /* end confdefs.h. */
! 5704:
! 5705: int
! 5706: main (void)
! 5707: {
! 5708:
! 5709: return __builtin_bitreverse16(1);
! 5710:
! 5711: ;
! 5712: return 0;
! 5713: }
! 5714: _ACEOF
! 5715: if ac_fn_cxx_try_compile "$LINENO"
! 5716: then :
! 5717:
! 5718: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 5719: printf "%s\n" "yes" >&6; }
! 5720: printf "%s\n" "#define HAVE___BUILTIN_BITREVERSE16 1" >>confdefs.h
! 5721:
! 5722:
! 5723: else case e in #(
! 5724: e)
! 5725: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5726: printf "%s\n" "no" >&6; }
! 5727: ;;
! 5728: esac
! 5729: fi
! 5730: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 5731:
! 5732: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bitreverse32" >&5
! 5733: printf %s "checking for __builtin_bitreverse32... " >&6; }
! 5734: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 5735: /* end confdefs.h. */
! 5736:
! 5737: int
! 5738: main (void)
! 5739: {
! 5740:
! 5741: return __builtin_bitreverse32(1);
! 5742:
! 5743: ;
! 5744: return 0;
! 5745: }
! 5746: _ACEOF
! 5747: if ac_fn_cxx_try_compile "$LINENO"
! 5748: then :
! 5749:
! 5750: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 5751: printf "%s\n" "yes" >&6; }
! 5752: printf "%s\n" "#define HAVE___BUILTIN_BITREVERSE32 1" >>confdefs.h
! 5753:
! 5754:
! 5755: else case e in #(
! 5756: e)
! 5757: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 5758: printf "%s\n" "no" >&6; }
! 5759: ;;
! 5760: esac
! 5761: fi
! 5762: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
! 5763:
1.1.1.15 root 5764: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
5765: printf %s "checking for __builtin_bswap16... " >&6; }
1.1.1.10 root 5766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1.3 root 5767: /* end confdefs.h. */
5768:
5769: int
1.1.1.10 root 5770: main (void)
1.1.1.3 root 5771: {
5772:
1.1.1.15 root 5773: return __builtin_bswap16(0);
1.1.1.10 root 5774:
1.1.1.3 root 5775: ;
5776: return 0;
5777: }
5778: _ACEOF
1.1.1.10 root 5779: if ac_fn_cxx_try_compile "$LINENO"
5780: then :
1.1.1.3 root 5781:
1.1.1.10 root 5782: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5783: printf "%s\n" "yes" >&6; }
1.1.1.15 root 5784: printf "%s\n" "#define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h
1.1.1.3 root 5785:
5786:
1.1.1.15 root 5787: else case e in #(
5788: e)
1.1.1.10 root 5789: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5790: printf "%s\n" "no" >&6; }
1.1.1.15 root 5791: ;;
5792: esac
1.1.1.3 root 5793: fi
1.1.1.10 root 5794: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.3 root 5795:
1.1.1.15 root 5796: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
5797: printf %s "checking for __builtin_bswap32... " >&6; }
1.1.1.10 root 5798: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1.3 root 5799: /* end confdefs.h. */
5800:
1.1.1.10 root 5801: int
5802: main (void)
5803: {
1.1.1.3 root 5804:
1.1.1.15 root 5805: return __builtin_bswap32(0);
1.1.1.3 root 5806:
1.1.1.10 root 5807: ;
5808: return 0;
5809: }
1.1.1.3 root 5810: _ACEOF
1.1.1.10 root 5811: if ac_fn_cxx_try_compile "$LINENO"
5812: then :
1.1.1.3 root 5813:
1.1.1.10 root 5814: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5815: printf "%s\n" "yes" >&6; }
1.1.1.15 root 5816: printf "%s\n" "#define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h
1.1.1.3 root 5817:
1.1.1.10 root 5818:
1.1.1.15 root 5819: else case e in #(
5820: e)
1.1.1.10 root 5821: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822: printf "%s\n" "no" >&6; }
1.1.1.15 root 5823: ;;
5824: esac
1.1.1.3 root 5825: fi
1.1.1.10 root 5826: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.3 root 5827:
1.1.1.15 root 5828: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
5829: printf %s "checking for __builtin_bswap64... " >&6; }
1.1.1.10 root 5830: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831: /* end confdefs.h. */
5832:
5833: int
5834: main (void)
5835: {
1.1.1.3 root 5836:
1.1.1.15 root 5837: return __builtin_bswap64(0);
5838:
1.1.1.10 root 5839: ;
5840: return 0;
5841: }
1.1.1.3 root 5842: _ACEOF
1.1.1.10 root 5843: if ac_fn_cxx_try_compile "$LINENO"
5844: then :
1.1.1.3 root 5845:
1.1.1.10 root 5846: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5847: printf "%s\n" "yes" >&6; }
1.1.1.15 root 5848: printf "%s\n" "#define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h
1.1.1.3 root 5849:
5850:
1.1.1.15 root 5851: else case e in #(
5852: e)
1.1.1.10 root 5853: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854: printf "%s\n" "no" >&6; }
1.1.1.15 root 5855: ;;
5856: esac
1.1.1.10 root 5857: fi
5858: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.3 root 5859:
1.1.1.15 root 5860: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
5861: printf %s "checking for __builtin_expect... " >&6; }
1.1.1.10 root 5862: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863: /* end confdefs.h. */
1.1.1.3 root 5864:
1.1.1.10 root 5865: int
5866: main (void)
5867: {
1.1.1.3 root 5868:
1.1.1.15 root 5869: if (__builtin_expect(1, 1)) return 0;
5870:
1.1.1.10 root 5871: ;
5872: return 0;
5873: }
1.1.1.3 root 5874: _ACEOF
1.1.1.10 root 5875: if ac_fn_cxx_try_compile "$LINENO"
5876: then :
1.1.1.3 root 5877:
1.1.1.10 root 5878: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5879: printf "%s\n" "yes" >&6; }
1.1.1.15 root 5880: printf "%s\n" "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
5881:
5882:
5883: else case e in #(
5884: e)
5885: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5886: printf "%s\n" "no" >&6; }
5887: ;;
5888: esac
5889: fi
5890: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.3 root 5891:
1.1.1.15 root 5892: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_rotateleft32" >&5
5893: printf %s "checking for __builtin_rotateleft32... " >&6; }
5894: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895: /* end confdefs.h. */
5896:
5897: int
5898: main (void)
5899: {
5900:
5901: return __builtin_rotateleft32(1, 1);
5902:
5903: ;
5904: return 0;
5905: }
5906: _ACEOF
5907: if ac_fn_cxx_try_compile "$LINENO"
5908: then :
5909:
5910: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5911: printf "%s\n" "yes" >&6; }
5912: printf "%s\n" "#define HAVE___BUILTIN_ROTATELEFT32 1" >>confdefs.h
5913:
5914:
5915: else case e in #(
5916: e)
5917: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918: printf "%s\n" "no" >&6; }
5919: ;;
5920: esac
5921: fi
5922: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5923:
5924: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_rotateright32" >&5
5925: printf %s "checking for __builtin_rotateright32... " >&6; }
5926: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927: /* end confdefs.h. */
5928:
5929: int
5930: main (void)
5931: {
5932:
5933: return __builtin_rotateright32(1, 1);
5934:
5935: ;
5936: return 0;
5937: }
5938: _ACEOF
5939: if ac_fn_cxx_try_compile "$LINENO"
5940: then :
5941:
5942: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5943: printf "%s\n" "yes" >&6; }
5944: printf "%s\n" "#define HAVE___BUILTIN_ROTATERIGHT32 1" >>confdefs.h
5945:
5946:
5947: else case e in #(
5948: e)
5949: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950: printf "%s\n" "no" >&6; }
5951: ;;
5952: esac
5953: fi
5954: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5955:
5956: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5
5957: printf %s "checking for __builtin_unreachable... " >&6; }
5958: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959: /* end confdefs.h. */
5960:
5961: int
5962: main (void)
5963: {
5964:
5965: __builtin_unreachable();
5966:
5967: ;
5968: return 0;
5969: }
5970: _ACEOF
5971: if ac_fn_cxx_try_compile "$LINENO"
5972: then :
5973:
5974: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5975: printf "%s\n" "yes" >&6; }
5976: printf "%s\n" "#define HAVE___BUILTIN_UNREACHABLE 1" >>confdefs.h
5977:
5978:
5979: else case e in #(
5980: e)
5981: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982: printf "%s\n" "no" >&6; }
5983: ;;
5984: esac
5985: fi
5986: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5987:
5988: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__fallthrough__))" >&5
5989: printf %s "checking for __attribute__((__fallthrough__))... " >&6; }
5990: old_CXXFLAGS="${CXXFLAGS}"
5991: CXXFLAGS="${CXXFLAGS} -Wall -Werror"
5992: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993: /* end confdefs.h. */
5994:
5995: int
5996: main (void)
5997: {
5998:
5999: extern int x;
6000: switch (x) {
6001: case 0:
6002: __attribute__((__fallthrough__));
6003: case 1:
6004: break;
6005: }
6006:
6007: ;
6008: return 0;
6009: }
6010: _ACEOF
6011: if ac_fn_cxx_try_compile "$LINENO"
6012: then :
6013:
6014: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6015: printf "%s\n" "yes" >&6; }
6016: printf "%s\n" "#define HAVE___ATTRIBUTE_FALLTHROUGH 1" >>confdefs.h
6017:
6018:
6019: else case e in #(
6020: e)
6021: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022: printf "%s\n" "no" >&6; }
6023: ;;
6024: esac
6025: fi
6026: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6027: CXXFLAGS="${old_CXXFLAGS}"
6028:
6029: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__format__))" >&5
6030: printf %s "checking for __attribute__((__format__))... " >&6; }
6031: old_CXXFLAGS="${CXXFLAGS}"
6032: CXXFLAGS="${CXXFLAGS} -Wall -Werror"
6033: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034: /* end confdefs.h. */
6035:
6036: extern int f(const char *f, ...)
6037: __attribute__((__format__(__printf__, 1, 2)));
6038:
6039: int
6040: main (void)
6041: {
6042:
6043: ;
6044: return 0;
6045: }
6046: _ACEOF
6047: if ac_fn_cxx_try_compile "$LINENO"
6048: then :
6049:
6050: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6051: printf "%s\n" "yes" >&6; }
6052: printf "%s\n" "#define HAVE___ATTRIBUTE_FORMAT 1" >>confdefs.h
6053:
6054:
6055: else case e in #(
6056: e)
6057: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058: printf "%s\n" "no" >&6; }
6059: ;;
6060: esac
6061: fi
6062: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6063: CXXFLAGS="${old_CXXFLAGS}"
6064:
6065: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((no_sanitize))" >&5
6066: printf %s "checking for __attribute__((no_sanitize))... " >&6; }
6067: old_CXXFLAGS="${CXXFLAGS}"
6068: CXXFLAGS="${CXXFLAGS} -Werror"
6069: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070: /* end confdefs.h. */
6071:
6072: __attribute__((no_sanitize("undefined")))
6073: int func() { return 0; }
6074:
6075: int
6076: main (void)
6077: {
6078:
6079: ;
6080: return 0;
6081: }
6082: _ACEOF
6083: if ac_fn_cxx_try_compile "$LINENO"
6084: then :
6085:
6086: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6087: printf "%s\n" "yes" >&6; }
6088: printf "%s\n" "#define HAVE___ATTRIBUTE_NO_SANITIZE 1" >>confdefs.h
6089:
6090:
6091: else case e in #(
6092: e)
6093: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6094: printf "%s\n" "no" >&6; }
6095: ;;
6096: esac
6097: fi
6098: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6099: CXXFLAGS="${old_CXXFLAGS}"
6100:
6101:
6102: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__packed__))" >&5
6103: printf %s "checking for __attribute__((__packed__))... " >&6; }
6104: old_CXXFLAGS="${CXXFLAGS}"
6105: CXXFLAGS="${CXXFLAGS} -Werror"
6106: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107: /* end confdefs.h. */
6108:
6109: int
6110: main (void)
6111: {
6112:
6113: struct x { char a; int b; } __attribute__((__packed__));
6114:
6115: ;
6116: return 0;
6117: }
6118: _ACEOF
6119: if ac_fn_cxx_try_compile "$LINENO"
6120: then :
6121:
6122: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6123: printf "%s\n" "yes" >&6; }
6124: printf "%s\n" "#define HAVE___ATTRIBUTE_PACKED 1" >>confdefs.h
6125:
6126:
6127: else case e in #(
6128: e)
6129: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130: printf "%s\n" "no" >&6; }
6131: ;;
6132: esac
6133: fi
6134: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6135: CXXFLAGS="${old_CXXFLAGS}"
6136:
6137: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__unused__))" >&5
6138: printf %s "checking for __attribute__((__unused__))... " >&6; }
6139: old_CXXFLAGS="${CXXFLAGS}"
6140: CXXFLAGS="${CXXFLAGS} -Wunused-variable -Werror"
6141: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142: /* end confdefs.h. */
6143:
6144: int
6145: main (void)
6146: {
6147:
6148: int a __attribute__((__unused__));
6149:
6150: ;
6151: return 0;
6152: }
6153: _ACEOF
6154: if ac_fn_cxx_try_compile "$LINENO"
6155: then :
6156:
6157: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6158: printf "%s\n" "yes" >&6; }
6159: printf "%s\n" "#define HAVE___ATTRIBUTE_UNUSED 1" >>confdefs.h
6160:
6161:
6162: else case e in #(
6163: e)
6164: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165: printf "%s\n" "no" >&6; }
6166: ;;
6167: esac
6168: fi
6169: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6170: CXXFLAGS="${old_CXXFLAGS}"
6171:
6172: # Checks for library functions.
6173: #AC_FUNC_MALLOC
6174: #AC_FUNC_MMAP
6175:
6176: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap16" >&5
6177: printf %s "checking for bswap16... " >&6; }
6178: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179: /* end confdefs.h. */
6180:
6181: #if defined(HAVE_SYS_ENDIAN_H)
6182: #include <sys/endian.h>
6183: #endif
6184:
6185: int
6186: main (void)
6187: {
6188:
6189: bswap16(0);
6190:
6191: ;
6192: return 0;
6193: }
6194: _ACEOF
6195: if ac_fn_cxx_try_compile "$LINENO"
6196: then :
6197:
6198: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6199: printf "%s\n" "yes" >&6; }
6200: printf "%s\n" "#define HAVE_BSWAP16 1" >>confdefs.h
6201:
6202:
6203: else case e in #(
6204: e)
6205: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206: printf "%s\n" "no" >&6; }
6207: ;;
6208: esac
6209: fi
6210: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6211:
6212: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap32" >&5
6213: printf %s "checking for bswap32... " >&6; }
6214: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215: /* end confdefs.h. */
6216:
6217: #if defined(HAVE_SYS_ENDIAN_H)
6218: #include <sys/endian.h>
6219: #endif
6220:
6221: int
6222: main (void)
6223: {
6224:
6225: bswap32(0);
6226:
6227: ;
6228: return 0;
6229: }
6230: _ACEOF
6231: if ac_fn_cxx_try_compile "$LINENO"
6232: then :
6233:
6234: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6235: printf "%s\n" "yes" >&6; }
6236: printf "%s\n" "#define HAVE_BSWAP32 1" >>confdefs.h
6237:
6238:
6239: else case e in #(
6240: e)
6241: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242: printf "%s\n" "no" >&6; }
6243: ;;
6244: esac
6245: fi
6246: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6247:
6248: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap64" >&5
6249: printf %s "checking for bswap64... " >&6; }
6250: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251: /* end confdefs.h. */
6252:
6253: #if defined(HAVE_SYS_ENDIAN_H)
6254: #include <sys/endian.h>
6255: #endif
6256:
6257: int
6258: main (void)
6259: {
6260:
6261: bswap64(0);
6262:
6263: ;
6264: return 0;
6265: }
6266: _ACEOF
6267: if ac_fn_cxx_try_compile "$LINENO"
6268: then :
6269:
6270: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6271: printf "%s\n" "yes" >&6; }
6272: printf "%s\n" "#define HAVE_BSWAP64 1" >>confdefs.h
6273:
6274:
6275: else case e in #(
6276: e)
6277: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278: printf "%s\n" "no" >&6; }
6279: ;;
6280: esac
6281: fi
6282: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6283:
6284: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_16" >&5
6285: printf %s "checking for bswap_16... " >&6; }
6286: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287: /* end confdefs.h. */
6288:
6289: #if defined(HAVE_BYTESWAP_H)
6290: #include <byteswap.h>
6291: #endif
6292:
6293: int
6294: main (void)
6295: {
6296:
6297: bswap_16(0);
6298:
6299: ;
6300: return 0;
6301: }
6302: _ACEOF
6303: if ac_fn_cxx_try_compile "$LINENO"
6304: then :
6305:
6306: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6307: printf "%s\n" "yes" >&6; }
6308: printf "%s\n" "#define HAVE_BSWAP_16 1" >>confdefs.h
6309:
6310:
6311: else case e in #(
6312: e)
6313: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6314: printf "%s\n" "no" >&6; }
6315: ;;
6316: esac
6317: fi
6318: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6319:
6320: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_32" >&5
6321: printf %s "checking for bswap_32... " >&6; }
6322: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323: /* end confdefs.h. */
6324:
6325: #if defined(HAVE_BYTESWAP_H)
6326: #include <byteswap.h>
6327: #endif
6328:
6329: int
6330: main (void)
6331: {
6332:
6333: bswap_32(0);
6334:
6335: ;
6336: return 0;
6337: }
6338: _ACEOF
6339: if ac_fn_cxx_try_compile "$LINENO"
6340: then :
6341:
6342: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6343: printf "%s\n" "yes" >&6; }
6344: printf "%s\n" "#define HAVE_BSWAP_32 1" >>confdefs.h
6345:
6346:
6347: else case e in #(
6348: e)
6349: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350: printf "%s\n" "no" >&6; }
6351: ;;
6352: esac
6353: fi
6354: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6355:
6356: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bswap_64" >&5
6357: printf %s "checking for bswap_64... " >&6; }
6358: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359: /* end confdefs.h. */
6360:
6361: #if defined(HAVE_BYTESWAP_H)
6362: #include <byteswap.h>
6363: #endif
6364:
6365: int
6366: main (void)
6367: {
6368:
6369: bswap_64(0);
6370:
6371: ;
6372: return 0;
6373: }
6374: _ACEOF
6375: if ac_fn_cxx_try_compile "$LINENO"
6376: then :
6377:
6378: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6379: printf "%s\n" "yes" >&6; }
6380: printf "%s\n" "#define HAVE_BSWAP_64 1" >>confdefs.h
1.1.1.3 root 6381:
1.1.1.10 root 6382:
1.1.1.15 root 6383: else case e in #(
6384: e)
1.1.1.10 root 6385: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386: printf "%s\n" "no" >&6; }
1.1.1.15 root 6387: ;;
6388: esac
1.1.1.3 root 6389: fi
1.1.1.10 root 6390: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.3 root 6391:
1.1.1.15 root 6392: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for swap16" >&5
6393: printf %s "checking for swap16... " >&6; }
1.1.1.10 root 6394: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395: /* end confdefs.h. */
1.1.1.3 root 6396:
1.1.1.15 root 6397: #if defined(HAVE_SYS_ENDIAN_H)
6398: #include <sys/endian.h>
6399: #endif
6400:
1.1.1.10 root 6401: int
6402: main (void)
6403: {
1.1.1.3 root 6404:
1.1.1.15 root 6405: swap16(0);
1.1.1.3 root 6406:
1.1.1.10 root 6407: ;
6408: return 0;
6409: }
1.1.1.3 root 6410: _ACEOF
1.1.1.10 root 6411: if ac_fn_cxx_try_compile "$LINENO"
6412: then :
1.1.1.3 root 6413:
1.1.1.10 root 6414: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6415: printf "%s\n" "yes" >&6; }
1.1.1.15 root 6416: printf "%s\n" "#define HAVE_SWAP16 1" >>confdefs.h
1.1.1.3 root 6417:
1.1 root 6418:
1.1.1.15 root 6419: else case e in #(
6420: e)
1.1.1.10 root 6421: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422: printf "%s\n" "no" >&6; }
1.1.1.15 root 6423: ;;
6424: esac
1.1.1.10 root 6425: fi
6426: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 6427:
1.1.1.15 root 6428: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for swap32" >&5
6429: printf %s "checking for swap32... " >&6; }
1.1.1.10 root 6430: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431: /* end confdefs.h. */
1.1 root 6432:
1.1.1.15 root 6433: #if defined(HAVE_SYS_ENDIAN_H)
6434: #include <sys/endian.h>
6435: #endif
6436:
1.1.1.10 root 6437: int
6438: main (void)
6439: {
1.1 root 6440:
1.1.1.15 root 6441: swap32(0);
1.1 root 6442:
1.1.1.10 root 6443: ;
6444: return 0;
6445: }
1.1 root 6446: _ACEOF
1.1.1.10 root 6447: if ac_fn_cxx_try_compile "$LINENO"
6448: then :
1.1 root 6449:
1.1.1.10 root 6450: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6451: printf "%s\n" "yes" >&6; }
1.1.1.15 root 6452: printf "%s\n" "#define HAVE_SWAP32 1" >>confdefs.h
1.1 root 6453:
6454:
1.1.1.15 root 6455: else case e in #(
6456: e)
1.1.1.10 root 6457: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458: printf "%s\n" "no" >&6; }
1.1.1.15 root 6459: ;;
6460: esac
1.1.1.10 root 6461: fi
6462: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 6463:
1.1.1.15 root 6464: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for swap64" >&5
6465: printf %s "checking for swap64... " >&6; }
1.1.1.10 root 6466: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467: /* end confdefs.h. */
1.1 root 6468:
1.1.1.10 root 6469: #if defined(HAVE_SYS_ENDIAN_H)
6470: #include <sys/endian.h>
6471: #endif
1.1 root 6472:
6473: int
1.1.1.10 root 6474: main (void)
1.1 root 6475: {
6476:
1.1.1.15 root 6477: swap64(0);
1.1 root 6478:
6479: ;
6480: return 0;
6481: }
6482: _ACEOF
1.1.1.10 root 6483: if ac_fn_cxx_try_compile "$LINENO"
6484: then :
1.1 root 6485:
1.1.1.10 root 6486: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6487: printf "%s\n" "yes" >&6; }
1.1.1.15 root 6488: printf "%s\n" "#define HAVE_SWAP64 1" >>confdefs.h
1.1 root 6489:
6490:
1.1.1.15 root 6491: else case e in #(
6492: e)
1.1.1.10 root 6493: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6494: printf "%s\n" "no" >&6; }
1.1.1.15 root 6495: ;;
6496: esac
1.1.1.10 root 6497: fi
6498: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 6499:
1.1.1.15 root 6500: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for htobe16" >&5
6501: printf %s "checking for htobe16... " >&6; }
1.1 root 6502: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503: /* end confdefs.h. */
6504:
1.1.1.15 root 6505: #if defined(HAVE_ENDIAN_H)
6506: #include <endian.h>
6507: #endif
1.1.1.10 root 6508: #if defined(HAVE_SYS_ENDIAN_H)
6509: #include <sys/endian.h>
6510: #endif
1.1.1.15 root 6511: #if defined(HAVE_MACHINE_ENDIAN_H)
6512: #include <machine/endian.h>
6513: #endif
1.1.1.10 root 6514:
1.1 root 6515: int
1.1.1.10 root 6516: main (void)
1.1 root 6517: {
6518:
1.1.1.15 root 6519: htobe16(0);
1.1 root 6520:
6521: ;
6522: return 0;
6523: }
6524: _ACEOF
1.1.1.10 root 6525: if ac_fn_cxx_try_compile "$LINENO"
6526: then :
6527:
6528: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6529: printf "%s\n" "yes" >&6; }
1.1.1.15 root 6530: printf "%s\n" "#define HAVE_HTOBE16 1" >>confdefs.h
1.1.1.10 root 6531:
6532:
1.1.1.15 root 6533: else case e in #(
6534: e)
1.1.1.10 root 6535: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536: printf "%s\n" "no" >&6; }
1.1.1.15 root 6537: ;;
6538: esac
1.1 root 6539: fi
1.1.1.10 root 6540: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 6541:
1.1.1.15 root 6542: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CPU_COUNT" >&5
6543: printf %s "checking for CPU_COUNT... " >&6; }
1.1 root 6544: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545: /* end confdefs.h. */
6546:
1.1.1.15 root 6547: #if defined(HAVE_SCHED_H)
6548: #include <sched.h>
6549: #endif
6550: #if defined(HAVE_SYS_CPUSET_H)
6551: #include <sys/cpuset.h>
1.1.1.10 root 6552: #endif
6553:
1.1 root 6554: int
1.1.1.10 root 6555: main (void)
1.1 root 6556: {
6557:
1.1.1.15 root 6558: #if defined(HAVE_CPUSET_T)
6559: cpuset_t set;
6560: #elif defined(HAVE_CPU_SET_T)
6561: cpu_set_t set;
6562: #endif
6563: CPU_COUNT(&set);
1.1 root 6564:
6565: ;
6566: return 0;
6567: }
6568: _ACEOF
1.1.1.10 root 6569: if ac_fn_cxx_try_compile "$LINENO"
6570: then :
6571:
6572: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6573: printf "%s\n" "yes" >&6; }
1.1.1.15 root 6574: printf "%s\n" "#define HAVE_CPU_COUNT 1" >>confdefs.h
1.1.1.10 root 6575:
6576:
1.1.1.15 root 6577: else case e in #(
6578: e)
1.1.1.10 root 6579: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580: printf "%s\n" "no" >&6; }
1.1.1.15 root 6581: ;;
6582: esac
1.1 root 6583: fi
1.1.1.10 root 6584: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 6585:
1.1.1.15 root 6586: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CPU_ISSET" >&5
6587: printf %s "checking for CPU_ISSET... " >&6; }
1.1 root 6588: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589: /* end confdefs.h. */
6590:
1.1.1.15 root 6591: #if defined(HAVE_SCHED_H)
6592: #include <sched.h>
6593: #endif
6594: #if defined(HAVE_SYS_CPUSET_H)
6595: #include <sys/cpuset.h>
1.1.1.10 root 6596: #endif
6597:
1.1 root 6598: int
1.1.1.10 root 6599: main (void)
1.1 root 6600: {
6601:
1.1.1.15 root 6602: #if defined(HAVE_CPUSET_T)
6603: cpuset_t set;
6604: #elif defined(HAVE_CPU_SET_T)
6605: cpu_set_t set;
6606: #endif
6607: CPU_ISSET(0, &set);
1.1 root 6608:
6609: ;
6610: return 0;
6611: }
6612: _ACEOF
1.1.1.10 root 6613: if ac_fn_cxx_try_compile "$LINENO"
6614: then :
6615:
6616: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6617: printf "%s\n" "yes" >&6; }
1.1.1.15 root 6618: printf "%s\n" "#define HAVE_CPU_ISSET 1" >>confdefs.h
1.1.1.10 root 6619:
6620:
1.1.1.15 root 6621: else case e in #(
6622: e)
1.1.1.10 root 6623: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624: printf "%s\n" "no" >&6; }
1.1.1.15 root 6625: ;;
6626: esac
1.1 root 6627: fi
1.1.1.10 root 6628: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 6629:
1.1.1.15 root 6630: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CPU_SET" >&5
6631: printf %s "checking for CPU_SET... " >&6; }
1.1.1.2 root 6632: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633: /* end confdefs.h. */
6634:
1.1.1.15 root 6635: #if defined(HAVE_SCHED_H)
6636: #include <sched.h>
6637: #endif
6638: #if defined(HAVE_SYS_CPUSET_H)
6639: #include <sys/cpuset.h>
1.1.1.10 root 6640: #endif
6641:
1.1.1.2 root 6642: int
1.1.1.10 root 6643: main (void)
1.1.1.2 root 6644: {
6645:
1.1.1.15 root 6646: #if defined(HAVE_CPUSET_T)
6647: cpuset_t set;
6648: #elif defined(HAVE_CPU_SET_T)
6649: cpu_set_t set;
6650: #endif
6651: CPU_SET(0, &set);
1.1.1.2 root 6652:
6653: ;
6654: return 0;
6655: }
6656: _ACEOF
1.1.1.10 root 6657: if ac_fn_cxx_try_compile "$LINENO"
6658: then :
6659:
6660: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6661: printf "%s\n" "yes" >&6; }
1.1.1.15 root 6662: printf "%s\n" "#define HAVE_CPU_SET 1" >>confdefs.h
1.1.1.10 root 6663:
6664:
1.1.1.15 root 6665: else case e in #(
6666: e)
1.1.1.10 root 6667: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668: printf "%s\n" "no" >&6; }
1.1.1.15 root 6669: ;;
6670: esac
1.1.1.2 root 6671: fi
1.1.1.10 root 6672: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.2 root 6673:
1.1.1.15 root 6674: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CPU_ZERO" >&5
6675: printf %s "checking for CPU_ZERO... " >&6; }
1.1 root 6676: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677: /* end confdefs.h. */
6678:
1.1.1.15 root 6679: #if defined(HAVE_SCHED_H)
6680: #include <sched.h>
6681: #endif
6682: #if defined(HAVE_SYS_CPUSET_H)
6683: #include <sys/cpuset.h>
1.1.1.10 root 6684: #endif
6685:
1.1 root 6686: int
1.1.1.10 root 6687: main (void)
1.1 root 6688: {
6689:
1.1.1.15 root 6690: #if defined(HAVE_CPUSET_T)
6691: cpuset_t set;
6692: #elif defined(HAVE_CPU_SET_T)
6693: cpu_set_t set;
6694: #endif
6695: CPU_ZERO(&set);
1.1 root 6696:
6697: ;
6698: return 0;
6699: }
6700: _ACEOF
1.1.1.10 root 6701: if ac_fn_cxx_try_compile "$LINENO"
6702: then :
6703:
6704: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6705: printf "%s\n" "yes" >&6; }
1.1.1.15 root 6706: printf "%s\n" "#define HAVE_CPU_ZERO 1" >>confdefs.h
1.1.1.10 root 6707:
6708:
1.1.1.15 root 6709: else case e in #(
6710: e)
1.1.1.10 root 6711: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6712: printf "%s\n" "no" >&6; }
1.1.1.15 root 6713: ;;
6714: esac
1.1 root 6715: fi
1.1.1.10 root 6716: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 6717:
1.1.1.15 root 6718: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpuset_create" >&5
6719: printf %s "checking for cpuset_create... " >&6; }
1.1 root 6720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721: /* end confdefs.h. */
6722:
1.1.1.15 root 6723: #include <sched.h>
1.1.1.10 root 6724:
1.1 root 6725: int
1.1.1.10 root 6726: main (void)
1.1 root 6727: {
6728:
1.1.1.15 root 6729: cpuset_create();
1.1 root 6730:
6731: ;
6732: return 0;
6733: }
6734: _ACEOF
1.1.1.10 root 6735: if ac_fn_cxx_try_compile "$LINENO"
6736: then :
6737:
6738: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6739: printf "%s\n" "yes" >&6; }
1.1.1.15 root 6740: printf "%s\n" "#define HAVE_CPUSET_CREATE 1" >>confdefs.h
1.1.1.10 root 6741:
6742:
1.1.1.15 root 6743: else case e in #(
6744: e)
1.1.1.10 root 6745: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746: printf "%s\n" "no" >&6; }
1.1.1.15 root 6747: ;;
6748: esac
1.1 root 6749: fi
1.1.1.10 root 6750: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 6751:
1.1.1.15 root 6752: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpuset_isset" >&5
6753: printf %s "checking for cpuset_isset... " >&6; }
1.1 root 6754: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755: /* end confdefs.h. */
6756:
1.1.1.15 root 6757: #include <sched.h>
1.1.1.10 root 6758:
1.1 root 6759: int
1.1.1.10 root 6760: main (void)
1.1 root 6761: {
6762:
1.1.1.15 root 6763: cpuset_isset(0, NULL);
1.1 root 6764:
6765: ;
6766: return 0;
6767: }
6768: _ACEOF
1.1.1.10 root 6769: if ac_fn_cxx_try_compile "$LINENO"
6770: then :
6771:
6772: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6773: printf "%s\n" "yes" >&6; }
1.1.1.15 root 6774: printf "%s\n" "#define HAVE_CPUSET_ISSET 1" >>confdefs.h
1.1.1.10 root 6775:
6776:
1.1.1.15 root 6777: else case e in #(
6778: e)
1.1.1.10 root 6779: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780: printf "%s\n" "no" >&6; }
1.1.1.15 root 6781: ;;
6782: esac
1.1 root 6783: fi
1.1.1.10 root 6784: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 6785:
1.1.1.15 root 6786: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpuset_set" >&5
6787: printf %s "checking for cpuset_set... " >&6; }
1.1 root 6788: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789: /* end confdefs.h. */
6790:
1.1.1.15 root 6791: #include <sched.h>
1.1 root 6792:
6793: int
1.1.1.10 root 6794: main (void)
1.1 root 6795: {
6796:
1.1.1.15 root 6797: cpuset_set(0, NULL);
1.1 root 6798:
6799: ;
6800: return 0;
6801: }
6802: _ACEOF
1.1.1.10 root 6803: if ac_fn_cxx_try_compile "$LINENO"
6804: then :
6805:
6806: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6807: printf "%s\n" "yes" >&6; }
1.1.1.15 root 6808: printf "%s\n" "#define HAVE_CPUSET_SET 1" >>confdefs.h
1.1.1.10 root 6809:
6810:
1.1.1.15 root 6811: else case e in #(
6812: e)
1.1.1.10 root 6813: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814: printf "%s\n" "no" >&6; }
1.1.1.15 root 6815: ;;
6816: esac
1.1 root 6817: fi
1.1.1.10 root 6818: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 6819:
1.1.1.15 root 6820: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cpuset_size" >&5
6821: printf %s "checking for cpuset_size... " >&6; }
1.1 root 6822: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823: /* end confdefs.h. */
6824:
1.1.1.15 root 6825: #include <sched.h>
1.1 root 6826:
6827: int
1.1.1.10 root 6828: main (void)
1.1 root 6829: {
6830:
1.1.1.15 root 6831: cpuset_size(NULL);
1.1 root 6832:
6833: ;
6834: return 0;
6835: }
6836: _ACEOF
1.1.1.10 root 6837: if ac_fn_cxx_try_compile "$LINENO"
6838: then :
1.1 root 6839:
1.1.1.10 root 6840: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6841: printf "%s\n" "yes" >&6; }
1.1.1.15 root 6842: printf "%s\n" "#define HAVE_CPUSET_SIZE 1" >>confdefs.h
1.1 root 6843:
1.1.1.10 root 6844:
1.1.1.15 root 6845: else case e in #(
6846: e)
1.1.1.10 root 6847: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848: printf "%s\n" "no" >&6; }
1.1.1.15 root 6849: ;;
6850: esac
1.1.1.10 root 6851: fi
6852: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6853:
1.1.1.14 root 6854: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statfs" >&5
6855: printf %s "checking for statfs... " >&6; }
6856: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857: /* end confdefs.h. */
6858:
6859: #include <sys/statfs.h>
6860:
6861: int
6862: main (void)
6863: {
6864:
6865: struct statfs buf;
6866: statfs("", &buf);
6867:
6868: ;
6869: return 0;
6870: }
6871: _ACEOF
6872: if ac_fn_cxx_try_compile "$LINENO"
6873: then :
6874:
6875: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6876: printf "%s\n" "yes" >&6; }
6877: printf "%s\n" "#define HAVE_STATFS 1" >>confdefs.h
6878:
6879: have_statxxfs=statfs
6880:
1.1.1.15 root 6881: else case e in #(
6882: e)
1.1.1.14 root 6883: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884: printf "%s\n" "no" >&6; }
1.1.1.15 root 6885: ;;
6886: esac
1.1.1.14 root 6887: fi
6888: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6889:
6890: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statvfs" >&5
6891: printf %s "checking for statvfs... " >&6; }
6892: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893: /* end confdefs.h. */
6894:
6895: #include <sys/statvfs.h>
6896:
6897: int
6898: main (void)
6899: {
6900:
6901: struct statvfs buf;
6902: statvfs("", &buf);
6903:
6904: ;
6905: return 0;
6906: }
6907: _ACEOF
6908: if ac_fn_cxx_try_compile "$LINENO"
6909: then :
6910:
6911: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6912: printf "%s\n" "yes" >&6; }
6913: printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
6914:
6915: have_statxxfs=statvfs
6916:
1.1.1.15 root 6917: else case e in #(
6918: e)
1.1.1.14 root 6919: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920: printf "%s\n" "no" >&6; }
1.1.1.15 root 6921: ;;
6922: esac
1.1.1.14 root 6923: fi
6924: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6925:
6926: if test -z "${have_statxxfs}"; then
1.1.1.15 root 6927: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6928: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1.1.14 root 6929: as_fn_error $? "*** No statfs() nor statvfs() found
1.1.1.15 root 6930: See 'config.log' for more details" "$LINENO" 5; }
1.1.1.14 root 6931: fi
6932:
6933: ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "
6934: #include <sys/stat.h>
6935:
6936: "
6937: if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes
6938: then :
6939:
6940: printf "%s\n" "#define HAVE_STAT_ST_TIMESPEC 1" >>confdefs.h
6941:
6942:
6943: fi
6944:
6945:
6946: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timegm" >&5
6947: printf %s "checking for timegm... " >&6; }
6948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949: /* end confdefs.h. */
6950:
6951: #include <time.h>
6952:
6953: int
6954: main (void)
6955: {
6956:
6957: timegm(NULL);
6958:
6959: ;
6960: return 0;
6961: }
6962: _ACEOF
6963: if ac_fn_cxx_try_compile "$LINENO"
6964: then :
6965:
6966: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6967: printf "%s\n" "yes" >&6; }
6968:
1.1.1.15 root 6969: else case e in #(
6970: e)
1.1.1.14 root 6971: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972: printf "%s\n" "no" >&6; }
1.1.1.15 root 6973: { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6974: printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1.1.1.14 root 6975: as_fn_error $? "*** No timegm() found
1.1.1.15 root 6976: See 'config.log' for more details" "$LINENO" 5; }
6977: ;;
6978: esac
1.1.1.14 root 6979: fi
6980: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6981:
1.1.1.10 root 6982: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_getname_np" >&5
6983: printf %s "checking for pthread_getname_np... " >&6; }
1.1 root 6984: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985: /* end confdefs.h. */
6986:
1.1.1.10 root 6987: #include <pthread.h>
6988: #if defined(HAVE_PTHREAD_NP_H)
6989: #include <pthread_np.h>
6990: #endif
6991:
1.1 root 6992: int
1.1.1.10 root 6993: main (void)
1.1 root 6994: {
6995:
1.1.1.10 root 6996: char name[32];
6997: pthread_getname_np(pthread_self(), name, sizeof(name));
1.1 root 6998:
6999: ;
7000: return 0;
7001: }
7002: _ACEOF
1.1.1.10 root 7003: if ac_fn_cxx_try_compile "$LINENO"
7004: then :
7005:
7006: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7007: printf "%s\n" "yes" >&6; }
7008: printf "%s\n" "#define HAVE_PTHREAD_GETNAME_NP 1" >>confdefs.h
7009:
7010:
1.1.1.15 root 7011: else case e in #(
7012: e)
1.1.1.10 root 7013: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014: printf "%s\n" "no" >&6; }
1.1.1.15 root 7015: ;;
7016: esac
1.1 root 7017: fi
1.1.1.10 root 7018: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 7019:
1.1.1.10 root 7020: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_get_name_np" >&5
7021: printf %s "checking for pthread_get_name_np... " >&6; }
1.1 root 7022: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023: /* end confdefs.h. */
7024:
1.1.1.10 root 7025: #include <pthread.h>
7026: #if defined(HAVE_PTHREAD_NP_H)
7027: #include <pthread_np.h>
7028: #endif
7029:
1.1 root 7030: int
1.1.1.10 root 7031: main (void)
1.1 root 7032: {
7033:
1.1.1.10 root 7034: char name[32];
7035: pthread_get_name_np(pthread_self(), name, sizeof(name));
1.1 root 7036:
7037: ;
7038: return 0;
7039: }
7040: _ACEOF
1.1.1.10 root 7041: if ac_fn_cxx_try_compile "$LINENO"
7042: then :
1.1 root 7043:
1.1.1.10 root 7044: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7045: printf "%s\n" "yes" >&6; }
7046: printf "%s\n" "#define HAVE_PTHREAD_GET_NAME_NP 1" >>confdefs.h
1.1 root 7047:
7048:
1.1.1.15 root 7049: else case e in #(
7050: e)
1.1.1.10 root 7051: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052: printf "%s\n" "no" >&6; }
1.1.1.15 root 7053: ;;
7054: esac
1.1.1.10 root 7055: fi
7056: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7057:
7058: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(name)" >&5
7059: printf %s "checking for pthread_setname_np(name)... " >&6; }
1.1 root 7060: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061: /* end confdefs.h. */
1.1.1.3 root 7062:
7063: #include <pthread.h>
7064: #if defined(HAVE_PTHREAD_NP_H)
7065: #include <pthread_np.h>
7066: #endif
7067:
1.1 root 7068: int
1.1.1.10 root 7069: main (void)
1.1 root 7070: {
7071:
7072: pthread_setname_np("");
7073:
7074: ;
7075: return 0;
7076: }
7077: _ACEOF
1.1.1.10 root 7078: if ac_fn_cxx_try_compile "$LINENO"
7079: then :
7080:
7081: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7082: printf "%s\n" "yes" >&6; }
7083: printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_name 1" >>confdefs.h
7084:
7085:
1.1.1.15 root 7086: else case e in #(
7087: e)
1.1.1.10 root 7088: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089: printf "%s\n" "no" >&6; }
1.1.1.15 root 7090: ;;
7091: esac
1.1 root 7092: fi
1.1.1.10 root 7093: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 7094:
1.1.1.10 root 7095: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(thread, name)" >&5
7096: printf %s "checking for pthread_setname_np(thread, name)... " >&6; }
1.1 root 7097: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098: /* end confdefs.h. */
1.1.1.3 root 7099:
7100: #include <pthread.h>
7101: #if defined(HAVE_PTHREAD_NP_H)
7102: #include <pthread_np.h>
7103: #endif
7104:
1.1 root 7105: int
1.1.1.10 root 7106: main (void)
1.1 root 7107: {
7108:
7109: pthread_setname_np(pthread_self(), "");
7110:
7111: ;
7112: return 0;
7113: }
7114: _ACEOF
1.1.1.10 root 7115: if ac_fn_cxx_try_compile "$LINENO"
7116: then :
7117:
7118: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7119: printf "%s\n" "yes" >&6; }
7120: printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_th_name 1" >>confdefs.h
7121:
7122:
1.1.1.15 root 7123: else case e in #(
7124: e)
1.1.1.10 root 7125: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126: printf "%s\n" "no" >&6; }
1.1.1.15 root 7127: ;;
7128: esac
1.1 root 7129: fi
1.1.1.10 root 7130: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 7131:
1.1.1.10 root 7132: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(thread, name, arg)" >&5
7133: printf %s "checking for pthread_setname_np(thread, name, arg)... " >&6; }
1.1 root 7134: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135: /* end confdefs.h. */
1.1.1.3 root 7136:
7137: #include <pthread.h>
7138: #if defined(HAVE_PTHREAD_NP_H)
7139: #include <pthread_np.h>
7140: #endif
7141:
1.1 root 7142: int
1.1.1.10 root 7143: main (void)
1.1 root 7144: {
7145:
7146: pthread_setname_np(pthread_self(), "", (void*)0);
7147:
7148: ;
7149: return 0;
7150: }
7151: _ACEOF
1.1.1.10 root 7152: if ac_fn_cxx_try_compile "$LINENO"
7153: then :
7154:
7155: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7156: printf "%s\n" "yes" >&6; }
7157: printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_th_name_arg 1" >>confdefs.h
7158:
7159:
1.1.1.15 root 7160: else case e in #(
7161: e)
1.1.1.10 root 7162: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163: printf "%s\n" "no" >&6; }
1.1.1.15 root 7164: ;;
7165: esac
1.1.1.3 root 7166: fi
1.1.1.10 root 7167: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.3 root 7168:
1.1.1.10 root 7169: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np(thread, name)" >&5
7170: printf %s "checking for pthread_set_name_np(thread, name)... " >&6; }
1.1.1.3 root 7171: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172: /* end confdefs.h. */
7173:
7174: #include <pthread.h>
7175: #if defined(HAVE_PTHREAD_NP_H)
7176: #include <pthread_np.h>
7177: #endif
7178:
7179: int
1.1.1.10 root 7180: main (void)
1.1.1.3 root 7181: {
7182:
7183: pthread_set_name_np(pthread_self(), "");
7184:
7185: ;
7186: return 0;
7187: }
7188: _ACEOF
1.1.1.10 root 7189: if ac_fn_cxx_try_compile "$LINENO"
7190: then :
7191:
7192: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7193: printf "%s\n" "yes" >&6; }
7194: printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP_th_name 1" >>confdefs.h
7195:
7196:
1.1.1.15 root 7197: else case e in #(
7198: e)
1.1.1.10 root 7199: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200: printf "%s\n" "no" >&6; }
1.1.1.15 root 7201: ;;
7202: esac
7203: fi
7204: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7205:
7206: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setaffinity_np" >&5
7207: printf %s "checking for pthread_setaffinity_np... " >&6; }
7208: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209: /* end confdefs.h. */
7210:
7211: #include <pthread.h>
7212: #if defined(HAVE_PTHREAD_NP_H)
7213: #include <pthread_np.h>
7214: #endif
7215:
7216: int
7217: main (void)
7218: {
7219:
7220: pthread_setaffinity_np(pthread_self(), 0, NULL);
7221:
7222: ;
7223: return 0;
7224: }
7225: _ACEOF
7226: if ac_fn_cxx_try_compile "$LINENO"
7227: then :
7228:
7229: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7230: printf "%s\n" "yes" >&6; }
7231: printf "%s\n" "#define HAVE_PTHREAD_SETAFFINITY_NP 1" >>confdefs.h
7232:
1.1 root 7233:
1.1.1.15 root 7234: else case e in #(
7235: e)
7236: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237: printf "%s\n" "no" >&6; }
7238: ;;
7239: esac
1.1 root 7240: fi
1.1.1.10 root 7241: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 7242:
1.1.1.15 root 7243:
1.1.1.8 root 7244: #
7245: # Network
7246: #
1.1.1.10 root 7247: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AF_PACKET" >&5
7248: printf %s "checking for AF_PACKET... " >&6; }
1.1.1.8 root 7249: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250: /* end confdefs.h. */
7251:
7252: #include <sys/socket.h>
7253:
7254: int
1.1.1.10 root 7255: main (void)
1.1.1.8 root 7256: {
7257:
7258: AF_PACKET;
7259:
7260: ;
7261: return 0;
7262: }
7263: _ACEOF
1.1.1.10 root 7264: if ac_fn_cxx_try_compile "$LINENO"
7265: then :
7266:
7267: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7268: printf "%s\n" "yes" >&6; }
7269: printf "%s\n" "#define HAVE_HOSTNET_AFPACKET 1" >>confdefs.h
1.1.1.8 root 7270:
7271: HOSTNET_AFPACKET=yes
7272:
1.1.1.10 root 7273:
1.1.1.15 root 7274: else case e in #(
7275: e)
1.1.1.10 root 7276: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277: printf "%s\n" "no" >&6; }
1.1.1.15 root 7278: ;;
7279: esac
1.1.1.8 root 7280: fi
1.1.1.10 root 7281: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1.1.8 root 7282:
1.1.1.10 root 7283: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tap(4)" >&5
7284: printf %s "checking for tap(4)... " >&6; }
1.1.1.6 root 7285: case "${host_os}" in
7286: linux*)
7287: if test x"$ac_cv_header_linux_if_tun_h" = xyes; then
1.1.1.8 root 7288: netdriver_tap=yes
1.1.1.6 root 7289: fi
7290: ;;
7291: openbsd*)
7292: # OpenBSD has no <net/if_tap.h> but supports tap(4).
1.1.1.8 root 7293: netdriver_tap=yes
1.1.1.6 root 7294: ;;
1.1.1.8 root 7295: *)
1.1.1.6 root 7296: if test x"$ac_cv_header_net_if_tap_h" = xyes; then
1.1.1.8 root 7297: netdriver_tap=yes
1.1.1.6 root 7298: fi
1.1.1.8 root 7299: ;;
7300: esac
7301: if test x"$netdriver_tap" = xyes; then
1.1.1.10 root 7302: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7303: printf "%s\n" "yes" >&6; }
7304: printf "%s\n" "#define HAVE_HOSTNET_TAP 1" >>confdefs.h
1.1.1.8 root 7305:
7306: HOSTNET_TAP=yes
7307:
7308: else
1.1.1.10 root 7309: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310: printf "%s\n" "no" >&6; }
1.1 root 7311: fi
7312:
1.1.1.10 root 7313: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bpf(4)" >&5
7314: printf %s "checking for bpf(4)... " >&6; }
1.1.1.8 root 7315: if test x"$ac_cv_header_net_bpf_h" = xyes; then
1.1.1.10 root 7316: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7317: printf "%s\n" "yes" >&6; }
7318: printf "%s\n" "#define HAVE_HOSTNET_BPF 1" >>confdefs.h
1.1.1.8 root 7319:
7320: HOSTNET_BPF=yes
7321:
7322: else
1.1.1.10 root 7323: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324: printf "%s\n" "no" >&6; }
1.1.1.8 root 7325: fi
1.1 root 7326:
1.1.1.14 root 7327: #
7328: # Other libraries
7329: #
7330:
7331: # CHECK_LIB($1=name, $2=libs, $3=include, $4=src)
7332:
7333:
7334: PATHS="none /usr/pkg /usr/local"
7335:
1.1 root 7336: # libbsd on Linux
1.1.1.10 root 7337: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprogname in -lc" >&5
7338: printf %s "checking for getprogname in -lc... " >&6; }
7339: if test ${ac_cv_lib_c_getprogname+y}
7340: then :
7341: printf %s "(cached) " >&6
1.1.1.15 root 7342: else case e in #(
7343: e) ac_check_lib_save_LIBS=$LIBS
1.1.1.5 root 7344: LIBS="-lc $LIBS"
7345: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346: /* end confdefs.h. */
7347:
1.1.1.10 root 7348: namespace conftest {
7349: extern "C" int getprogname ();
7350: }
1.1.1.5 root 7351: int
1.1.1.10 root 7352: main (void)
1.1.1.5 root 7353: {
1.1.1.10 root 7354: return conftest::getprogname ();
1.1.1.5 root 7355: ;
7356: return 0;
7357: }
7358: _ACEOF
1.1.1.10 root 7359: if ac_fn_cxx_try_link "$LINENO"
7360: then :
1.1.1.5 root 7361: ac_cv_lib_c_getprogname=yes
1.1.1.15 root 7362: else case e in #(
7363: e) ac_cv_lib_c_getprogname=no ;;
7364: esac
1.1.1.5 root 7365: fi
1.1.1.10 root 7366: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1.1.5 root 7367: conftest$ac_exeext conftest.$ac_ext
1.1.1.15 root 7368: LIBS=$ac_check_lib_save_LIBS ;;
7369: esac
1.1.1.5 root 7370: fi
1.1.1.10 root 7371: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getprogname" >&5
7372: printf "%s\n" "$ac_cv_lib_c_getprogname" >&6; }
7373: if test "x$ac_cv_lib_c_getprogname" = xyes
7374: then :
7375: printf "%s\n" "#define HAVE_LIBC 1" >>confdefs.h
1.1.1.5 root 7376:
7377: LIBS="-lc $LIBS"
7378:
7379: fi
7380:
1.1.1.10 root 7381: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprogname in -lbsd" >&5
7382: printf %s "checking for getprogname in -lbsd... " >&6; }
7383: if test ${ac_cv_lib_bsd_getprogname+y}
7384: then :
7385: printf %s "(cached) " >&6
1.1.1.15 root 7386: else case e in #(
7387: e) ac_check_lib_save_LIBS=$LIBS
1.1 root 7388: LIBS="-lbsd $LIBS"
7389: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390: /* end confdefs.h. */
7391:
1.1.1.10 root 7392: namespace conftest {
7393: extern "C" int getprogname ();
7394: }
1.1 root 7395: int
1.1.1.10 root 7396: main (void)
1.1 root 7397: {
1.1.1.10 root 7398: return conftest::getprogname ();
1.1 root 7399: ;
7400: return 0;
7401: }
7402: _ACEOF
1.1.1.10 root 7403: if ac_fn_cxx_try_link "$LINENO"
7404: then :
1.1 root 7405: ac_cv_lib_bsd_getprogname=yes
1.1.1.15 root 7406: else case e in #(
7407: e) ac_cv_lib_bsd_getprogname=no ;;
7408: esac
1.1 root 7409: fi
1.1.1.10 root 7410: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 root 7411: conftest$ac_exeext conftest.$ac_ext
1.1.1.15 root 7412: LIBS=$ac_check_lib_save_LIBS ;;
7413: esac
1.1 root 7414: fi
1.1.1.10 root 7415: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getprogname" >&5
7416: printf "%s\n" "$ac_cv_lib_bsd_getprogname" >&6; }
7417: if test "x$ac_cv_lib_bsd_getprogname" = xyes
7418: then :
1.1.1.6 root 7419: LIBS="${LIBS} -lbsd"
1.1 root 7420:
7421: fi
7422:
1.1.1.5 root 7423: # なければ停止する
7424: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425: /* end confdefs.h. */
7426:
7427: #include <stdlib.h>
7428: #include "confdefs.h"
7429: #if defined(HAVE_BSD_BSD_H)
7430: #include <bsd/bsd.h>
7431: #endif
7432:
7433: int
1.1.1.10 root 7434: main (void)
1.1.1.5 root 7435: {
7436:
7437: getprogname()
7438:
7439: ;
7440: return 0;
7441: }
7442: _ACEOF
1.1.1.10 root 7443: if ac_fn_cxx_try_compile "$LINENO"
7444: then :
1.1.1.5 root 7445:
1.1.1.10 root 7446: # nothing to do on success
7447:
1.1.1.15 root 7448: else case e in #(
7449: e)
1.1.1.10 root 7450: as_fn_error $? "*** getprogname is not found.
1.1.1.7 root 7451: *** If you use Ubuntu, sudo apt install libbsd-dev" "$LINENO" 5
1.1.1.5 root 7452:
1.1.1.15 root 7453: ;;
7454: esac
1.1.1.5 root 7455: fi
1.1.1.10 root 7456: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1.1 root 7457:
7458: # libkqueue on Linux
1.1.1.10 root 7459: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue in -lkqueue" >&5
7460: printf %s "checking for kqueue in -lkqueue... " >&6; }
7461: if test ${ac_cv_lib_kqueue_kqueue+y}
7462: then :
7463: printf %s "(cached) " >&6
1.1.1.15 root 7464: else case e in #(
7465: e) ac_check_lib_save_LIBS=$LIBS
1.1 root 7466: LIBS="-lkqueue $LIBS"
7467: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468: /* end confdefs.h. */
7469:
1.1.1.10 root 7470: namespace conftest {
7471: extern "C" int kqueue ();
7472: }
1.1 root 7473: int
1.1.1.10 root 7474: main (void)
1.1 root 7475: {
1.1.1.10 root 7476: return conftest::kqueue ();
1.1 root 7477: ;
7478: return 0;
7479: }
7480: _ACEOF
1.1.1.10 root 7481: if ac_fn_cxx_try_link "$LINENO"
7482: then :
1.1 root 7483: ac_cv_lib_kqueue_kqueue=yes
1.1.1.15 root 7484: else case e in #(
7485: e) ac_cv_lib_kqueue_kqueue=no ;;
7486: esac
1.1 root 7487: fi
1.1.1.10 root 7488: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1 root 7489: conftest$ac_exeext conftest.$ac_ext
1.1.1.15 root 7490: LIBS=$ac_check_lib_save_LIBS ;;
7491: esac
1.1 root 7492: fi
1.1.1.10 root 7493: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kqueue_kqueue" >&5
7494: printf "%s\n" "$ac_cv_lib_kqueue_kqueue" >&6; }
7495: if test "x$ac_cv_lib_kqueue_kqueue" = xyes
7496: then :
1.1.1.6 root 7497: LIBS="${LIBS} -lkqueue"
1.1 root 7498:
7499: fi
7500:
7501:
1.1.1.10 root 7502: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5
7503: printf %s "checking for gzclose in -lz... " >&6; }
7504: if test ${ac_cv_lib_z_gzclose+y}
7505: then :
7506: printf %s "(cached) " >&6
1.1.1.15 root 7507: else case e in #(
7508: e) ac_check_lib_save_LIBS=$LIBS
1.1.1.5 root 7509: LIBS="-lz $LIBS"
7510: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511: /* end confdefs.h. */
7512:
1.1.1.10 root 7513: namespace conftest {
7514: extern "C" int gzclose ();
7515: }
1.1.1.5 root 7516: int
1.1.1.10 root 7517: main (void)
1.1.1.5 root 7518: {
1.1.1.10 root 7519: return conftest::gzclose ();
1.1.1.5 root 7520: ;
7521: return 0;
7522: }
7523: _ACEOF
1.1.1.10 root 7524: if ac_fn_cxx_try_link "$LINENO"
7525: then :
1.1.1.5 root 7526: ac_cv_lib_z_gzclose=yes
1.1.1.15 root 7527: else case e in #(
7528: e) ac_cv_lib_z_gzclose=no ;;
7529: esac
1.1.1.5 root 7530: fi
1.1.1.10 root 7531: rm -f core conftest.err conftest.$ac_objext conftest.beam \
1.1.1.5 root 7532: conftest$ac_exeext conftest.$ac_ext
1.1.1.15 root 7533: LIBS=$ac_check_lib_save_LIBS ;;
7534: esac
1.1.1.5 root 7535: fi
1.1.1.10 root 7536: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5
7537: printf "%s\n" "$ac_cv_lib_z_gzclose" >&6; }
7538: if test "x$ac_cv_lib_z_gzclose" = xyes
7539: then :
1.1.1.6 root 7540: LIBS="${LIBS} -lz"
1.1.1.15 root 7541: else case e in #(
7542: e) as_fn_error $? "*** zlib is not found.
1.1.1.7 root 7543: *** If use use Ubuntu, sudo apt install zlib1g-dev" "$LINENO" 5
1.1.1.15 root 7544: ;;
7545: esac
1.1.1.5 root 7546: fi
7547:
7548:
1.1.1.16! root 7549: # libslirp
! 7550:
! 7551: # Check whether --with-libslirp was given.
! 7552: if test ${with_libslirp+y}
! 7553: then :
! 7554: withval=$with_libslirp;
! 7555: else case e in #(
! 7556: e) with_libslirp=yes ;;
! 7557: esac
! 7558: fi
! 7559:
! 7560:
! 7561: if test "x$with_libslirp" != "xno"
! 7562: then :
! 7563:
! 7564:
! 7565: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libslirp" >&5
! 7566: printf %s "checking for libslirp... " >&6; }
! 7567: for path in ${PATHS}; do
! 7568: old_CPPFLAGS=${CPPFLAGS}
! 7569: old_LIBS=${LIBS}
! 7570: case ${path} in
! 7571: none)
! 7572: LIBS="${LIBS} -lslirp"
! 7573: ;;
! 7574: *)
! 7575: CPPFLAGS="${CPPFLAGS} -I${path}/include"
! 7576: LIBS="${LIBS} -L${path}/lib -lslirp"
! 7577: ;;
! 7578: esac
! 7579: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 7580: /* end confdefs.h. */
! 7581:
! 7582: #include <slirp/libslirp.h>
! 7583:
! 7584: int
! 7585: main (void)
! 7586: {
! 7587:
! 7588: slirp_version_string();
! 7589:
! 7590: ;
! 7591: return 0;
! 7592: }
! 7593: _ACEOF
! 7594: if ac_fn_cxx_try_link "$LINENO"
! 7595: then :
! 7596:
! 7597: has_libslirp=yes
! 7598: break
! 7599:
! 7600: else case e in #(
! 7601: e)
! 7602: has_libslirp=no
! 7603: ;;
! 7604: esac
! 7605: fi
! 7606: rm -f core conftest.err conftest.$ac_objext conftest.beam \
! 7607: conftest$ac_exeext conftest.$ac_ext
! 7608: CPPFLAGS=${old_CPPFLAGS}
! 7609: LIBS=${old_LIBS}
! 7610: done
! 7611: if test x"${has_libslirp}" = x"yes"; then
! 7612: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 7613: printf "%s\n" "yes" >&6; }
! 7614: else
! 7615: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 7616: printf "%s\n" "no" >&6; }
! 7617: fi
! 7618:
! 7619: if test x"${has_libslirp}" = x"yes"; then
! 7620: printf "%s\n" "#define HAVE_HOSTNET_SLIRP 1" >>confdefs.h
! 7621:
! 7622: HOSTNET_SLIRP=yes
! 7623:
! 7624: else
! 7625: as_fn_error $? "*** libslirp is not found.
! 7626: *** If use use pkgsrc, install net/libslirp.
! 7627: *** If you use Ubuntu, sudo apt install libslirp-dev.
! 7628: *** Or specify --without-libslirp (it disables hostnet-driver=usermode)." "$LINENO" 5
! 7629: fi
! 7630:
! 7631: else case e in #(
! 7632: e)
! 7633: HOSTNET_SLIRP=no
! 7634:
! 7635: ;;
! 7636: esac
! 7637: fi
! 7638:
1.1 root 7639: # wxWidgets
1.1.1.10 root 7640:
7641: # Check whether --with-gui was given.
7642: if test ${with_gui+y}
7643: then :
7644: withval=$with_gui;
1.1.1.15 root 7645: else case e in #(
7646: e) with_gui=yes ;;
7647: esac
1.1.1.10 root 7648: fi
7649:
7650:
7651: if test "x$with_gui" != xno
7652: then :
7653:
7654: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wx-config" >&5
7655: printf %s "checking for wx-config... " >&6; }
1.1.1.14 root 7656: wxconfig_paths="${WX_CONFIG} wx-config-3.2 wx-config-3.0 wx-config"
1.1.1.10 root 7657: wxconfig=""
7658: for c in ${wxconfig_paths}; do
7659: ver=`$c --version 2>&1 | cut -f 1 -d .`
7660: if test "$ver" = "3"; then
7661: wxconfig=$c
7662: break
7663: fi
7664: done
7665: if test -z "$wxconfig"; then
1.1.1.14 root 7666: as_fn_error $? "*** wxWidgets-3.2 nor -3.0 not found in ${wxconfig_paths}
7667: *** If you use pkgsrc, install x11/wxGTK32.
1.1.1.7 root 7668: *** If you use Ubuntu, sudo apt install libwxgtk3.0-gtk3-dev" "$LINENO" 5
1.1.1.10 root 7669: else
7670: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $wxconfig" >&5
7671: printf "%s\n" "$wxconfig" >&6; }
1.1 root 7672:
1.1.1.10 root 7673: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wxWidgets version" >&5
7674: printf %s "checking for wxWidgets version... " >&6; }
7675: wxversion=`$wxconfig --version`
7676: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $wxversion" >&5
7677: printf "%s\n" "$wxversion" >&6; }
1.1.1.14 root 7678: wxmajorminor=`echo $wxversion | awk -F . '{print $1 $2}'`
7679: WX_MAJORMINOR=${wxmajorminor}
7680:
1.1.1.10 root 7681:
7682: wxcppflags=`$wxconfig --cppflags`
7683: wxlibs=`$wxconfig --libs`
7684:
7685: case "${host_os}" in
7686: netbsd*)
7687: # rpath。どうしたもんだかこれ
7688: wxlibs=`echo $wxlibs | sed -e 's/-L\([^ ]*\) /-L\1 -Wl,-R,\1 /'`
7689: ;;
7690:
7691: darwin*)
7692: # XXX -framework AudioToolbox が指定されているとリンカがこけるorz
7693: wxlibs=`echo $wxlibs | sed -e 's/-framework AudioToolbox//'`
7694: ;;
7695: esac
1.1 root 7696:
1.1.1.10 root 7697: WITH_GUI=yes
1.1 root 7698:
1.1.1.10 root 7699: WXWIDGETS_CPPFLAGS=$wxcppflags
1.1 root 7700:
1.1.1.10 root 7701: WXWIDGETS_LIBS=$wxlibs
1.1 root 7702:
1.1.1.10 root 7703: fi
7704:
7705: # gettext
7706: if test -n "$ac_tool_prefix"; then
1.1.1.5 root 7707: # Extract the first word of "${ac_tool_prefix}msgfmt", so it can be a program name with args.
7708: set dummy ${ac_tool_prefix}msgfmt; ac_word=$2
1.1.1.10 root 7709: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710: printf %s "checking for $ac_word... " >&6; }
7711: if test ${ac_cv_prog_MSGFMT+y}
7712: then :
7713: printf %s "(cached) " >&6
1.1.1.15 root 7714: else case e in #(
7715: e) if test -n "$MSGFMT"; then
1.1.1.5 root 7716: ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
7717: else
7718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719: for as_dir in $PATH
7720: do
7721: IFS=$as_save_IFS
1.1.1.10 root 7722: case $as_dir in #(((
7723: '') as_dir=./ ;;
7724: */) ;;
7725: *) as_dir=$as_dir/ ;;
7726: esac
1.1.1.5 root 7727: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.10 root 7728: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1.1.5 root 7729: ac_cv_prog_MSGFMT="${ac_tool_prefix}msgfmt"
1.1.1.10 root 7730: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1.1.5 root 7731: break 2
7732: fi
7733: done
7734: done
7735: IFS=$as_save_IFS
7736:
1.1.1.15 root 7737: fi ;;
7738: esac
1.1.1.5 root 7739: fi
7740: MSGFMT=$ac_cv_prog_MSGFMT
7741: if test -n "$MSGFMT"; then
1.1.1.10 root 7742: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7743: printf "%s\n" "$MSGFMT" >&6; }
1.1.1.5 root 7744: else
1.1.1.10 root 7745: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746: printf "%s\n" "no" >&6; }
1.1.1.5 root 7747: fi
7748:
7749:
7750: fi
7751: if test -z "$ac_cv_prog_MSGFMT"; then
7752: ac_ct_MSGFMT=$MSGFMT
7753: # Extract the first word of "msgfmt", so it can be a program name with args.
7754: set dummy msgfmt; ac_word=$2
1.1.1.10 root 7755: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756: printf %s "checking for $ac_word... " >&6; }
7757: if test ${ac_cv_prog_ac_ct_MSGFMT+y}
7758: then :
7759: printf %s "(cached) " >&6
1.1.1.15 root 7760: else case e in #(
7761: e) if test -n "$ac_ct_MSGFMT"; then
1.1.1.5 root 7762: ac_cv_prog_ac_ct_MSGFMT="$ac_ct_MSGFMT" # Let the user override the test.
7763: else
7764: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765: for as_dir in $PATH
7766: do
7767: IFS=$as_save_IFS
1.1.1.10 root 7768: case $as_dir in #(((
7769: '') as_dir=./ ;;
7770: */) ;;
7771: *) as_dir=$as_dir/ ;;
7772: esac
1.1.1.5 root 7773: for ac_exec_ext in '' $ac_executable_extensions; do
1.1.1.10 root 7774: if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1.1.1.5 root 7775: ac_cv_prog_ac_ct_MSGFMT="msgfmt"
1.1.1.10 root 7776: printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1.1.1.5 root 7777: break 2
7778: fi
7779: done
7780: done
7781: IFS=$as_save_IFS
7782:
1.1.1.15 root 7783: fi ;;
7784: esac
1.1.1.5 root 7785: fi
7786: ac_ct_MSGFMT=$ac_cv_prog_ac_ct_MSGFMT
7787: if test -n "$ac_ct_MSGFMT"; then
1.1.1.10 root 7788: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MSGFMT" >&5
7789: printf "%s\n" "$ac_ct_MSGFMT" >&6; }
1.1.1.5 root 7790: else
1.1.1.10 root 7791: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7792: printf "%s\n" "no" >&6; }
1.1.1.5 root 7793: fi
7794:
7795: if test "x$ac_ct_MSGFMT" = x; then
7796: MSGFMT=":"
7797: else
7798: case $cross_compiling:$ac_tool_warned in
7799: yes:)
1.1.1.10 root 7800: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7801: printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.1.1.5 root 7802: ac_tool_warned=yes ;;
7803: esac
7804: MSGFMT=$ac_ct_MSGFMT
7805: fi
7806: else
7807: MSGFMT="$ac_cv_prog_MSGFMT"
7808: fi
7809:
1.1.1.10 root 7810: if test $MSGFMT = :; then
7811: as_fn_error $? "*** msgfmt not found.
1.1.1.7 root 7812: *** If you use pkgsrc, install devel/gettext-tools.
7813: *** If you use Ubuntu, sudo apt install gettext" "$LINENO" 5
1.1.1.10 root 7814: fi
7815:
1.1.1.15 root 7816: else case e in #(
7817: e)
1.1.1.10 root 7818: WITH_GUI=no
7819:
1.1.1.15 root 7820: ;;
7821: esac
1.1.1.5 root 7822: fi
7823:
1.1.1.14 root 7824: # nono 本体のチェックはここまで。
7825: nono_CPPFLAGS=${CPPFLAGS}
1.1.1.16! root 7826: case "${host_os}" in
! 7827: netbsd*)
! 7828: # どうしたもんかこれ。
! 7829: nono_LIBS=`echo ${LIBS} | sed -e 's/-L\([^ ]*\) /-L\1 -Wl,-R,\1 /'`
! 7830: ;;
! 7831: *)
! 7832: nono_LIBS=${LIBS}
! 7833: ;;
! 7834: esac
1.1.1.14 root 7835: NONO_CPPFLAGS=${nono_CPPFLAGS}
7836:
7837: NONO_LIBS=${nono_LIBS}
7838:
7839:
7840: # iconv は util/ でのみ必要。
7841: CPPFLAGS=
7842: LIBS=
7843:
1.1.1.15 root 7844: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libiconv" >&5
7845: printf %s "checking for libiconv... " >&6; }
1.1.1.14 root 7846: for path in ${PATHS}; do
7847: old_CPPFLAGS=${CPPFLAGS}
7848: old_LIBS=${LIBS}
7849: case ${path} in
7850: none)
7851: LIBS="${LIBS} -liconv"
7852: ;;
7853: *)
7854: CPPFLAGS="${CPPFLAGS} -I${path}/include"
7855: LIBS="${LIBS} -L${path}/lib -liconv"
7856: ;;
7857: esac
7858: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859: /* end confdefs.h. */
7860:
7861: #include <iconv.h>
7862:
7863: int
7864: main (void)
7865: {
7866:
7867: iconv_open("", "");
7868:
7869: ;
7870: return 0;
7871: }
7872: _ACEOF
7873: if ac_fn_cxx_try_link "$LINENO"
7874: then :
7875:
1.1.1.15 root 7876: has_libiconv=yes
1.1.1.14 root 7877: break
7878:
1.1.1.15 root 7879: else case e in #(
7880: e)
7881: has_libiconv=no
7882: ;;
7883: esac
1.1.1.14 root 7884: fi
7885: rm -f core conftest.err conftest.$ac_objext conftest.beam \
7886: conftest$ac_exeext conftest.$ac_ext
7887: CPPFLAGS=${old_CPPFLAGS}
7888: LIBS=${old_LIBS}
7889: done
1.1.1.15 root 7890: if test x"${has_libiconv}" = x"yes"; then
1.1.1.14 root 7891: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7892: printf "%s\n" "yes" >&6; }
7893: else
7894: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895: printf "%s\n" "no" >&6; }
7896: fi
7897:
7898:
1.1.1.15 root 7899: if test x"${has_libiconv}" = x"yes"; then
1.1.1.14 root 7900: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether iconv needs const" >&5
7901: printf %s "checking whether iconv needs const... " >&6; }
7902: old_CPPFLAGS="${CPPFLAGS}"
7903: CPPFLAGS="${CPPFLAGS} -Werror"
7904: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905: /* end confdefs.h. */
7906:
7907: #include <iconv.h>
7908:
7909: int
7910: main (void)
7911: {
7912:
7913: const char **a;
7914: iconv(0, a, 0, 0, 0);
7915:
7916: ;
7917: return 0;
7918: }
7919: _ACEOF
7920: if ac_fn_cxx_try_compile "$LINENO"
7921: then :
7922:
7923: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7924: printf "%s\n" "yes" >&6; }
7925: printf "%s\n" "#define HAVE_ICONV_CONST 1" >>confdefs.h
7926:
7927:
1.1.1.15 root 7928: else case e in #(
7929: e)
1.1.1.14 root 7930: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931: printf "%s\n" "no" >&6; }
1.1.1.15 root 7932: ;;
7933: esac
1.1.1.14 root 7934: fi
7935: rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7936: CPPFLAGS="${old_CPPFLAGS}"
7937: fi
7938:
7939: iconv_CPPFLAGS=${CPPFLAGS}
7940: iconv_LIBS=${LIBS}
7941: ICONV_CPPFLAGS=${iconv_CPPFLAGS}
7942:
7943: ICONV_LIBS=${iconv_LIBS}
7944:
7945:
1.1.1.15 root 7946: ac_config_files="$ac_config_files Makefile.cfg host/Makefile wx/Makefile util/mkcgrom/Makefile util/ttfext/Makefile util/viewcgrom/Makefile"
1.1 root 7947:
1.1.1.2 root 7948: ac_config_headers="$ac_config_headers config-nono.h"
1.1 root 7949:
7950: cat >confcache <<\_ACEOF
7951: # This file is a shell script that caches the results of configure
7952: # tests run on this system so they can be shared between configure
7953: # scripts and configure runs, see configure's option --config-cache.
7954: # It is not useful on other systems. If it contains results you don't
7955: # want to keep, you may remove or edit it.
7956: #
7957: # config.status only pays attention to the cache file if you give it
7958: # the --recheck option to rerun configure.
7959: #
1.1.1.15 root 7960: # 'ac_cv_env_foo' variables (set or unset) will be overridden when
7961: # loading this file, other *unset* 'ac_cv_foo' will be assigned the
1.1 root 7962: # following values.
7963:
7964: _ACEOF
7965:
7966: # The following way of writing the cache mishandles newlines in values,
7967: # but we know of no workaround that is simple, portable, and efficient.
7968: # So, we kill variables containing newlines.
7969: # Ultrix sh set writes to stderr and can't be redirected directly,
7970: # and sets the high bit in the cache file unless we assign to the vars.
7971: (
7972: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7973: eval ac_val=\$$ac_var
7974: case $ac_val in #(
7975: *${as_nl}*)
7976: case $ac_var in #(
1.1.1.10 root 7977: *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7978: printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 root 7979: esac
7980: case $ac_var in #(
7981: _ | IFS | as_nl) ;; #(
7982: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7983: *) { eval $ac_var=; unset $ac_var;} ;;
7984: esac ;;
7985: esac
7986: done
7987:
7988: (set) 2>&1 |
7989: case $as_nl`(ac_space=' '; set) 2>&1` in #(
7990: *${as_nl}ac_space=\ *)
1.1.1.15 root 7991: # 'set' does not quote correctly, so add quotes: double-quote
1.1 root 7992: # substitution turns \\\\ into \\, and sed turns \\ into \.
7993: sed -n \
7994: "s/'/'\\\\''/g;
7995: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7996: ;; #(
7997: *)
1.1.1.15 root 7998: # 'set' quotes correctly as required by POSIX, so do not add quotes.
1.1 root 7999: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8000: ;;
8001: esac |
8002: sort
8003: ) |
8004: sed '
8005: /^ac_cv_env_/b end
8006: t clear
8007: :clear
1.1.1.10 root 8008: s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
1.1 root 8009: t end
8010: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8011: :end' >>confcache
8012: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8013: if test -w "$cache_file"; then
8014: if test "x$cache_file" != "x/dev/null"; then
1.1.1.10 root 8015: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8016: printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
1.1 root 8017: if test ! -f "$cache_file" || test -h "$cache_file"; then
8018: cat confcache >"$cache_file"
8019: else
8020: case $cache_file in #(
8021: */* | ?:*)
8022: mv -f confcache "$cache_file"$$ &&
8023: mv -f "$cache_file"$$ "$cache_file" ;; #(
8024: *)
8025: mv -f confcache "$cache_file" ;;
8026: esac
8027: fi
8028: fi
8029: else
1.1.1.10 root 8030: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8031: printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 root 8032: fi
8033: fi
8034: rm -f confcache
8035:
8036: test "x$prefix" = xNONE && prefix=$ac_default_prefix
8037: # Let make expand exec_prefix.
8038: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8039:
8040: DEFS=-DHAVE_CONFIG_H
8041:
8042: ac_libobjs=
8043: ac_ltlibobjs=
8044: U=
8045: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8046: # 1. Remove the extension, and $U if already installed.
8047: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.1.1.10 root 8048: ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
1.1 root 8049: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8050: # will be set to the directory where LIBOBJS objects are built.
8051: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8052: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8053: done
8054: LIBOBJS=$ac_libobjs
8055:
8056: LTLIBOBJS=$ac_ltlibobjs
8057:
8058:
8059:
8060: : "${CONFIG_STATUS=./config.status}"
8061: ac_write_fail=0
8062: ac_clean_files_save=$ac_clean_files
8063: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.1.1.10 root 8064: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8065: printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
1.1 root 8066: as_write_fail=0
8067: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8068: #! $SHELL
8069: # Generated by $as_me.
8070: # Run this file to recreate the current configuration.
8071: # Compiler output produced by configure, useful for debugging
8072: # configure, is in config.log if it exists.
8073:
8074: debug=false
8075: ac_cs_recheck=false
8076: ac_cs_silent=false
8077:
8078: SHELL=\${CONFIG_SHELL-$SHELL}
8079: export SHELL
8080: _ASEOF
8081: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8082: ## -------------------- ##
8083: ## M4sh Initialization. ##
8084: ## -------------------- ##
8085:
8086: # Be more Bourne compatible
8087: DUALCASE=1; export DUALCASE # for MKS sh
1.1.1.10 root 8088: if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8089: then :
1.1 root 8090: emulate sh
8091: NULLCMD=:
8092: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8093: # is contrary to our usage. Disable this feature.
8094: alias -g '${1+"$@"}'='"$@"'
8095: setopt NO_GLOB_SUBST
1.1.1.15 root 8096: else case e in #(
8097: e) case `(set -o) 2>/dev/null` in #(
1.1 root 8098: *posix*) :
8099: set -o posix ;; #(
8100: *) :
8101: ;;
1.1.1.15 root 8102: esac ;;
1.1 root 8103: esac
8104: fi
8105:
8106:
1.1.1.10 root 8107:
8108: # Reset variables that may have inherited troublesome values from
8109: # the environment.
8110:
8111: # IFS needs to be set, to space, tab, and newline, in precisely that order.
8112: # (If _AS_PATH_WALK were called with IFS unset, it would have the
8113: # side effect of setting IFS to empty, thus disabling word splitting.)
8114: # Quoting is to prevent editors from complaining about space-tab.
1.1 root 8115: as_nl='
8116: '
8117: export as_nl
1.1.1.10 root 8118: IFS=" "" $as_nl"
8119:
8120: PS1='$ '
8121: PS2='> '
8122: PS4='+ '
8123:
8124: # Ensure predictable behavior from utilities with locale-dependent output.
8125: LC_ALL=C
8126: export LC_ALL
8127: LANGUAGE=C
8128: export LANGUAGE
8129:
8130: # We cannot yet rely on "unset" to work, but we need these variables
8131: # to be unset--not just set to an empty or harmless value--now, to
8132: # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8133: # also avoids known problems related to "unset" and subshell syntax
8134: # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8135: for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8136: do eval test \${$as_var+y} \
8137: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8138: done
8139:
8140: # Ensure that fds 0, 1, and 2 are open.
8141: if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8142: if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8143: if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
1.1 root 8144:
8145: # The user is always right.
1.1.1.10 root 8146: if ${PATH_SEPARATOR+false} :; then
1.1 root 8147: PATH_SEPARATOR=:
8148: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8149: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8150: PATH_SEPARATOR=';'
8151: }
8152: fi
8153:
8154:
8155: # Find who we are. Look in the path if we contain no directory separator.
8156: as_myself=
8157: case $0 in #((
8158: *[\\/]* ) as_myself=$0 ;;
8159: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160: for as_dir in $PATH
8161: do
8162: IFS=$as_save_IFS
1.1.1.10 root 8163: case $as_dir in #(((
8164: '') as_dir=./ ;;
8165: */) ;;
8166: *) as_dir=$as_dir/ ;;
8167: esac
8168: test -r "$as_dir$0" && as_myself=$as_dir$0 && break
1.1 root 8169: done
8170: IFS=$as_save_IFS
8171:
8172: ;;
8173: esac
1.1.1.15 root 8174: # We did not find ourselves, most probably we were run as 'sh COMMAND'
1.1 root 8175: # in which case we are not to be found in the path.
8176: if test "x$as_myself" = x; then
8177: as_myself=$0
8178: fi
8179: if test ! -f "$as_myself"; then
1.1.1.10 root 8180: printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
1.1 root 8181: exit 1
8182: fi
8183:
8184:
8185:
8186: # as_fn_error STATUS ERROR [LINENO LOG_FD]
8187: # ----------------------------------------
8188: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8189: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8190: # script with STATUS, using 1 if that was 0.
8191: as_fn_error ()
8192: {
8193: as_status=$1; test $as_status -eq 0 && as_status=1
8194: if test "$4"; then
8195: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.10 root 8196: printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.1 root 8197: fi
1.1.1.10 root 8198: printf "%s\n" "$as_me: error: $2" >&2
1.1 root 8199: as_fn_exit $as_status
8200: } # as_fn_error
8201:
8202:
8203: # as_fn_set_status STATUS
8204: # -----------------------
8205: # Set $? to STATUS, without forking.
8206: as_fn_set_status ()
8207: {
8208: return $1
8209: } # as_fn_set_status
8210:
8211: # as_fn_exit STATUS
8212: # -----------------
8213: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8214: as_fn_exit ()
8215: {
8216: set +e
8217: as_fn_set_status $1
8218: exit $1
8219: } # as_fn_exit
8220:
8221: # as_fn_unset VAR
8222: # ---------------
8223: # Portably unset VAR.
8224: as_fn_unset ()
8225: {
8226: { eval $1=; unset $1;}
8227: }
8228: as_unset=as_fn_unset
1.1.1.10 root 8229:
1.1 root 8230: # as_fn_append VAR VALUE
8231: # ----------------------
8232: # Append the text in VALUE to the end of the definition contained in VAR. Take
8233: # advantage of any shell optimizations that allow amortized linear growth over
8234: # repeated appends, instead of the typical quadratic growth present in naive
8235: # implementations.
1.1.1.10 root 8236: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8237: then :
1.1 root 8238: eval 'as_fn_append ()
8239: {
8240: eval $1+=\$2
8241: }'
1.1.1.15 root 8242: else case e in #(
8243: e) as_fn_append ()
1.1 root 8244: {
8245: eval $1=\$$1\$2
1.1.1.15 root 8246: } ;;
8247: esac
1.1 root 8248: fi # as_fn_append
8249:
8250: # as_fn_arith ARG...
8251: # ------------------
8252: # Perform arithmetic evaluation on the ARGs, and store the result in the
8253: # global $as_val. Take advantage of shells that can avoid forks. The arguments
8254: # must be portable across $(()) and expr.
1.1.1.10 root 8255: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8256: then :
1.1 root 8257: eval 'as_fn_arith ()
8258: {
8259: as_val=$(( $* ))
8260: }'
1.1.1.15 root 8261: else case e in #(
8262: e) as_fn_arith ()
1.1 root 8263: {
8264: as_val=`expr "$@" || test $? -eq 1`
1.1.1.15 root 8265: } ;;
8266: esac
1.1 root 8267: fi # as_fn_arith
8268:
8269:
8270: if expr a : '\(a\)' >/dev/null 2>&1 &&
8271: test "X`expr 00001 : '.*\(...\)'`" = X001; then
8272: as_expr=expr
8273: else
8274: as_expr=false
8275: fi
8276:
8277: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8278: as_basename=basename
8279: else
8280: as_basename=false
8281: fi
8282:
8283: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8284: as_dirname=dirname
8285: else
8286: as_dirname=false
8287: fi
8288:
8289: as_me=`$as_basename -- "$0" ||
8290: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8291: X"$0" : 'X\(//\)$' \| \
8292: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.10 root 8293: printf "%s\n" X/"$0" |
1.1 root 8294: sed '/^.*\/\([^/][^/]*\)\/*$/{
8295: s//\1/
8296: q
8297: }
8298: /^X\/\(\/\/\)$/{
8299: s//\1/
8300: q
8301: }
8302: /^X\/\(\/\).*/{
8303: s//\1/
8304: q
8305: }
8306: s/.*/./; q'`
8307:
8308: # Avoid depending upon Character Ranges.
8309: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8310: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8311: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8312: as_cr_digits='0123456789'
8313: as_cr_alnum=$as_cr_Letters$as_cr_digits
8314:
1.1.1.10 root 8315:
8316: # Determine whether it's possible to make 'echo' print without a newline.
8317: # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8318: # for compatibility with existing Makefiles.
1.1 root 8319: ECHO_C= ECHO_N= ECHO_T=
8320: case `echo -n x` in #(((((
8321: -n*)
8322: case `echo 'xy\c'` in
8323: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8324: xy) ECHO_C='\c';;
8325: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8326: ECHO_T=' ';;
8327: esac;;
8328: *)
8329: ECHO_N='-n';;
8330: esac
8331:
1.1.1.10 root 8332: # For backward compatibility with old third-party macros, we provide
8333: # the shell variables $as_echo and $as_echo_n. New code should use
8334: # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8335: as_echo='printf %s\n'
8336: as_echo_n='printf %s'
8337:
1.1 root 8338: rm -f conf$$ conf$$.exe conf$$.file
8339: if test -d conf$$.dir; then
8340: rm -f conf$$.dir/conf$$.file
8341: else
8342: rm -f conf$$.dir
8343: mkdir conf$$.dir 2>/dev/null
8344: fi
8345: if (echo >conf$$.file) 2>/dev/null; then
8346: if ln -s conf$$.file conf$$ 2>/dev/null; then
8347: as_ln_s='ln -s'
8348: # ... but there are two gotchas:
1.1.1.15 root 8349: # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
8350: # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
8351: # In both cases, we have to default to 'cp -pR'.
1.1 root 8352: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8353: as_ln_s='cp -pR'
8354: elif ln conf$$.file conf$$ 2>/dev/null; then
8355: as_ln_s=ln
8356: else
8357: as_ln_s='cp -pR'
8358: fi
8359: else
8360: as_ln_s='cp -pR'
8361: fi
8362: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8363: rmdir conf$$.dir 2>/dev/null
8364:
8365:
8366: # as_fn_mkdir_p
8367: # -------------
8368: # Create "$as_dir" as a directory, including parents if necessary.
8369: as_fn_mkdir_p ()
8370: {
8371:
8372: case $as_dir in #(
8373: -*) as_dir=./$as_dir;;
8374: esac
8375: test -d "$as_dir" || eval $as_mkdir_p || {
8376: as_dirs=
8377: while :; do
8378: case $as_dir in #(
1.1.1.10 root 8379: *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
1.1 root 8380: *) as_qdir=$as_dir;;
8381: esac
8382: as_dirs="'$as_qdir' $as_dirs"
8383: as_dir=`$as_dirname -- "$as_dir" ||
8384: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8385: X"$as_dir" : 'X\(//\)[^/]' \| \
8386: X"$as_dir" : 'X\(//\)$' \| \
8387: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.10 root 8388: printf "%s\n" X"$as_dir" |
1.1 root 8389: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8390: s//\1/
8391: q
8392: }
8393: /^X\(\/\/\)[^/].*/{
8394: s//\1/
8395: q
8396: }
8397: /^X\(\/\/\)$/{
8398: s//\1/
8399: q
8400: }
8401: /^X\(\/\).*/{
8402: s//\1/
8403: q
8404: }
8405: s/.*/./; q'`
8406: test -d "$as_dir" && break
8407: done
8408: test -z "$as_dirs" || eval "mkdir $as_dirs"
8409: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8410:
8411:
8412: } # as_fn_mkdir_p
8413: if mkdir -p . 2>/dev/null; then
8414: as_mkdir_p='mkdir -p "$as_dir"'
8415: else
8416: test -d ./-p && rmdir ./-p
8417: as_mkdir_p=false
8418: fi
8419:
8420:
8421: # as_fn_executable_p FILE
8422: # -----------------------
8423: # Test if FILE is an executable regular file.
8424: as_fn_executable_p ()
8425: {
8426: test -f "$1" && test -x "$1"
8427: } # as_fn_executable_p
8428: as_test_x='test -x'
8429: as_executable_p=as_fn_executable_p
8430:
8431: # Sed expression to map a string onto a valid CPP name.
1.1.1.15 root 8432: as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8433: as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
1.1 root 8434:
8435: # Sed expression to map a string onto a valid variable name.
1.1.1.15 root 8436: as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8437: as_tr_sh="eval sed '$as_sed_sh'" # deprecated
1.1 root 8438:
8439:
8440: exec 6>&1
8441: ## ----------------------------------- ##
8442: ## Main body of $CONFIG_STATUS script. ##
8443: ## ----------------------------------- ##
8444: _ASEOF
8445: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8446:
8447: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8448: # Save the log message, to keep $0 and so on meaningful, and to
8449: # report actual input values of CONFIG_FILES etc. instead of their
8450: # values after options handling.
8451: ac_log="
1.1.1.3 root 8452: This file was extended by nono $as_me 0.0, which was
1.1.1.15 root 8453: generated by GNU Autoconf 2.72. Invocation command line was
1.1 root 8454:
8455: CONFIG_FILES = $CONFIG_FILES
8456: CONFIG_HEADERS = $CONFIG_HEADERS
8457: CONFIG_LINKS = $CONFIG_LINKS
8458: CONFIG_COMMANDS = $CONFIG_COMMANDS
8459: $ $0 $@
8460:
8461: on `(hostname || uname -n) 2>/dev/null | sed 1q`
8462: "
8463:
8464: _ACEOF
8465:
8466: case $ac_config_files in *"
8467: "*) set x $ac_config_files; shift; ac_config_files=$*;;
8468: esac
8469:
8470: case $ac_config_headers in *"
8471: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8472: esac
8473:
8474:
8475: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8476: # Files that config.status was made for.
8477: config_files="$ac_config_files"
8478: config_headers="$ac_config_headers"
8479:
8480: _ACEOF
8481:
8482: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8483: ac_cs_usage="\
1.1.1.15 root 8484: '$as_me' instantiates files and other configuration actions
1.1 root 8485: from templates according to the current configuration. Unless the files
8486: and actions are specified as TAGs, all are instantiated by default.
8487:
8488: Usage: $0 [OPTION]... [TAG]...
8489:
8490: -h, --help print this help, then exit
8491: -V, --version print version number and configuration settings, then exit
8492: --config print configuration, then exit
8493: -q, --quiet, --silent
8494: do not print progress messages
8495: -d, --debug don't remove temporary files
8496: --recheck update $as_me by reconfiguring in the same conditions
8497: --file=FILE[:TEMPLATE]
8498: instantiate the configuration file FILE
8499: --header=FILE[:TEMPLATE]
8500: instantiate the configuration header FILE
8501:
8502: Configuration files:
8503: $config_files
8504:
8505: Configuration headers:
8506: $config_headers
8507:
8508: Report bugs to the package provider."
8509:
8510: _ACEOF
1.1.1.10 root 8511: ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8512: ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
1.1 root 8513: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1.1.10 root 8514: ac_cs_config='$ac_cs_config_escaped'
1.1 root 8515: ac_cs_version="\\
1.1.1.3 root 8516: nono config.status 0.0
1.1.1.15 root 8517: configured by $0, generated by GNU Autoconf 2.72,
1.1 root 8518: with options \\"\$ac_cs_config\\"
8519:
1.1.1.15 root 8520: Copyright (C) 2023 Free Software Foundation, Inc.
1.1 root 8521: This config.status script is free software; the Free Software Foundation
8522: gives unlimited permission to copy, distribute and modify it."
8523:
8524: ac_pwd='$ac_pwd'
8525: srcdir='$srcdir'
1.1.1.3 root 8526: INSTALL='$INSTALL'
1.1 root 8527: test -n "\$AWK" || AWK=awk
8528: _ACEOF
8529:
8530: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8531: # The default lists apply if the user does not specify any file.
8532: ac_need_defaults=:
8533: while test $# != 0
8534: do
8535: case $1 in
8536: --*=?*)
8537: ac_option=`expr "X$1" : 'X\([^=]*\)='`
8538: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8539: ac_shift=:
8540: ;;
8541: --*=)
8542: ac_option=`expr "X$1" : 'X\([^=]*\)='`
8543: ac_optarg=
8544: ac_shift=:
8545: ;;
8546: *)
8547: ac_option=$1
8548: ac_optarg=$2
8549: ac_shift=shift
8550: ;;
8551: esac
8552:
8553: case $ac_option in
8554: # Handling of the options.
8555: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8556: ac_cs_recheck=: ;;
8557: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.1.1.10 root 8558: printf "%s\n" "$ac_cs_version"; exit ;;
1.1 root 8559: --config | --confi | --conf | --con | --co | --c )
1.1.1.10 root 8560: printf "%s\n" "$ac_cs_config"; exit ;;
1.1 root 8561: --debug | --debu | --deb | --de | --d | -d )
8562: debug=: ;;
8563: --file | --fil | --fi | --f )
8564: $ac_shift
8565: case $ac_optarg in
1.1.1.10 root 8566: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 root 8567: '') as_fn_error $? "missing file argument" ;;
8568: esac
8569: as_fn_append CONFIG_FILES " '$ac_optarg'"
8570: ac_need_defaults=false;;
8571: --header | --heade | --head | --hea )
8572: $ac_shift
8573: case $ac_optarg in
1.1.1.10 root 8574: *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 root 8575: esac
8576: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8577: ac_need_defaults=false;;
8578: --he | --h)
8579: # Conflict between --help and --header
1.1.1.15 root 8580: as_fn_error $? "ambiguous option: '$1'
8581: Try '$0 --help' for more information.";;
1.1 root 8582: --help | --hel | -h )
1.1.1.10 root 8583: printf "%s\n" "$ac_cs_usage"; exit ;;
1.1 root 8584: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8585: | -silent | --silent | --silen | --sile | --sil | --si | --s)
8586: ac_cs_silent=: ;;
8587:
8588: # This is an error.
1.1.1.15 root 8589: -*) as_fn_error $? "unrecognized option: '$1'
8590: Try '$0 --help' for more information." ;;
1.1 root 8591:
8592: *) as_fn_append ac_config_targets " $1"
8593: ac_need_defaults=false ;;
8594:
8595: esac
8596: shift
8597: done
8598:
8599: ac_configure_extra_args=
8600:
8601: if $ac_cs_silent; then
8602: exec 6>/dev/null
8603: ac_configure_extra_args="$ac_configure_extra_args --silent"
8604: fi
8605:
8606: _ACEOF
8607: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8608: if \$ac_cs_recheck; then
8609: set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8610: shift
1.1.1.10 root 8611: \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
1.1 root 8612: CONFIG_SHELL='$SHELL'
8613: export CONFIG_SHELL
8614: exec "\$@"
8615: fi
8616:
8617: _ACEOF
8618: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8619: exec 5>>config.log
8620: {
8621: echo
8622: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8623: ## Running $as_me. ##
8624: _ASBOX
1.1.1.10 root 8625: printf "%s\n" "$ac_log"
1.1 root 8626: } >&5
8627:
8628: _ACEOF
8629: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8630: _ACEOF
8631:
8632: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8633:
8634: # Handling of arguments.
8635: for ac_config_target in $ac_config_targets
8636: do
8637: case $ac_config_target in
8638: "Makefile.cfg") CONFIG_FILES="$CONFIG_FILES Makefile.cfg" ;;
8639: "host/Makefile") CONFIG_FILES="$CONFIG_FILES host/Makefile" ;;
8640: "wx/Makefile") CONFIG_FILES="$CONFIG_FILES wx/Makefile" ;;
1.1.1.14 root 8641: "util/mkcgrom/Makefile") CONFIG_FILES="$CONFIG_FILES util/mkcgrom/Makefile" ;;
1.1.1.15 root 8642: "util/ttfext/Makefile") CONFIG_FILES="$CONFIG_FILES util/ttfext/Makefile" ;;
1.1 root 8643: "util/viewcgrom/Makefile") CONFIG_FILES="$CONFIG_FILES util/viewcgrom/Makefile" ;;
1.1.1.2 root 8644: "config-nono.h") CONFIG_HEADERS="$CONFIG_HEADERS config-nono.h" ;;
1.1 root 8645:
1.1.1.15 root 8646: *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
1.1 root 8647: esac
8648: done
8649:
8650:
8651: # If the user did not use the arguments to specify the items to instantiate,
8652: # then the envvar interface is used. Set only those that are not.
8653: # We use the long form for the default assignment because of an extremely
8654: # bizarre bug on SunOS 4.1.3.
8655: if $ac_need_defaults; then
1.1.1.10 root 8656: test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8657: test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
1.1 root 8658: fi
8659:
8660: # Have a temporary directory for convenience. Make it in the build tree
8661: # simply because there is no reason against having it here, and in addition,
8662: # creating and moving files from /tmp can sometimes cause problems.
8663: # Hook for its removal unless debugging.
8664: # Note that there is a small window in which the directory will not be cleaned:
1.1.1.15 root 8665: # after its creation but before its name has been assigned to '$tmp'.
1.1 root 8666: $debug ||
8667: {
8668: tmp= ac_tmp=
8669: trap 'exit_status=$?
8670: : "${ac_tmp:=$tmp}"
8671: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8672: ' 0
8673: trap 'as_fn_exit 1' 1 2 13 15
8674: }
8675: # Create a (secure) tmp directory for tmp files.
8676:
8677: {
8678: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8679: test -d "$tmp"
8680: } ||
8681: {
8682: tmp=./conf$$-$RANDOM
8683: (umask 077 && mkdir "$tmp")
8684: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8685: ac_tmp=$tmp
8686:
8687: # Set up the scripts for CONFIG_FILES section.
8688: # No need to generate them if there are no CONFIG_FILES.
1.1.1.15 root 8689: # This happens for instance with './config.status config.h'.
1.1 root 8690: if test -n "$CONFIG_FILES"; then
8691:
8692:
8693: ac_cr=`echo X | tr X '\015'`
8694: # On cygwin, bash can eat \r inside `` if the user requested igncr.
8695: # But we know of no other shell where ac_cr would be empty at this
8696: # point, so we can use a bashism as a fallback.
8697: if test "x$ac_cr" = x; then
8698: eval ac_cr=\$\'\\r\'
8699: fi
8700: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8701: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8702: ac_cs_awk_cr='\\r'
8703: else
8704: ac_cs_awk_cr=$ac_cr
8705: fi
8706:
8707: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8708: _ACEOF
8709:
8710:
8711: {
8712: echo "cat >conf$$subs.awk <<_ACEOF" &&
8713: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8714: echo "_ACEOF"
8715: } >conf$$subs.sh ||
8716: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8717: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8718: ac_delim='%!_!# '
8719: for ac_last_try in false false false false false :; do
8720: . ./conf$$subs.sh ||
8721: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8722:
8723: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8724: if test $ac_delim_n = $ac_delim_num; then
8725: break
8726: elif $ac_last_try; then
8727: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8728: else
8729: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8730: fi
8731: done
8732: rm -f conf$$subs.sh
8733:
8734: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8735: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8736: _ACEOF
8737: sed -n '
8738: h
8739: s/^/S["/; s/!.*/"]=/
8740: p
8741: g
8742: s/^[^!]*!//
8743: :repl
8744: t repl
8745: s/'"$ac_delim"'$//
8746: t delim
8747: :nl
8748: h
8749: s/\(.\{148\}\)..*/\1/
8750: t more1
8751: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8752: p
8753: n
8754: b repl
8755: :more1
8756: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8757: p
8758: g
8759: s/.\{148\}//
8760: t nl
8761: :delim
8762: h
8763: s/\(.\{148\}\)..*/\1/
8764: t more2
8765: s/["\\]/\\&/g; s/^/"/; s/$/"/
8766: p
8767: b
8768: :more2
8769: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8770: p
8771: g
8772: s/.\{148\}//
8773: t delim
8774: ' <conf$$subs.awk | sed '
8775: /^[^""]/{
8776: N
8777: s/\n//
8778: }
8779: ' >>$CONFIG_STATUS || ac_write_fail=1
8780: rm -f conf$$subs.awk
8781: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8782: _ACAWK
8783: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8784: for (key in S) S_is_set[key] = 1
8785: FS = ""
8786:
8787: }
8788: {
8789: line = $ 0
8790: nfields = split(line, field, "@")
8791: substed = 0
8792: len = length(field[1])
8793: for (i = 2; i < nfields; i++) {
8794: key = field[i]
8795: keylen = length(key)
8796: if (S_is_set[key]) {
8797: value = S[key]
8798: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8799: len += length(value) + length(field[++i])
8800: substed = 1
8801: } else
8802: len += 1 + keylen
8803: }
8804:
8805: print line
8806: }
8807:
8808: _ACAWK
8809: _ACEOF
8810: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8811: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8812: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8813: else
8814: cat
8815: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8816: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8817: _ACEOF
8818:
8819: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8820: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8821: # trailing colons and then remove the whole line if VPATH becomes empty
8822: # (actually we leave an empty line to preserve line numbers).
8823: if test "x$srcdir" = x.; then
8824: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8825: h
8826: s///
8827: s/^/:/
8828: s/[ ]*$/:/
8829: s/:\$(srcdir):/:/g
8830: s/:\${srcdir}:/:/g
8831: s/:@srcdir@:/:/g
8832: s/^:*//
8833: s/:*$//
8834: x
8835: s/\(=[ ]*\).*/\1/
8836: G
8837: s/\n//
8838: s/^[^=]*=[ ]*$//
8839: }'
8840: fi
8841:
8842: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8843: fi # test -n "$CONFIG_FILES"
8844:
8845: # Set up the scripts for CONFIG_HEADERS section.
8846: # No need to generate them if there are no CONFIG_HEADERS.
1.1.1.15 root 8847: # This happens for instance with './config.status Makefile'.
1.1 root 8848: if test -n "$CONFIG_HEADERS"; then
8849: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8850: BEGIN {
8851: _ACEOF
8852:
1.1.1.15 root 8853: # Transform confdefs.h into an awk script 'defines.awk', embedded as
1.1 root 8854: # here-document in config.status, that substitutes the proper values into
8855: # config.h.in to produce config.h.
8856:
8857: # Create a delimiter string that does not exist in confdefs.h, to ease
8858: # handling of long lines.
8859: ac_delim='%!_!# '
8860: for ac_last_try in false false :; do
8861: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8862: if test -z "$ac_tt"; then
8863: break
8864: elif $ac_last_try; then
8865: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8866: else
8867: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8868: fi
8869: done
8870:
8871: # For the awk script, D is an array of macro values keyed by name,
8872: # likewise P contains macro parameters if any. Preserve backslash
8873: # newline sequences.
8874:
8875: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8876: sed -n '
8877: s/.\{148\}/&'"$ac_delim"'/g
8878: t rset
8879: :rset
8880: s/^[ ]*#[ ]*define[ ][ ]*/ /
8881: t def
8882: d
8883: :def
8884: s/\\$//
8885: t bsnl
8886: s/["\\]/\\&/g
8887: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8888: D["\1"]=" \3"/p
8889: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8890: d
8891: :bsnl
8892: s/["\\]/\\&/g
8893: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8894: D["\1"]=" \3\\\\\\n"\\/p
8895: t cont
8896: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8897: t cont
8898: d
8899: :cont
8900: n
8901: s/.\{148\}/&'"$ac_delim"'/g
8902: t clear
8903: :clear
8904: s/\\$//
8905: t bsnlc
8906: s/["\\]/\\&/g; s/^/"/; s/$/"/p
8907: d
8908: :bsnlc
8909: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8910: b cont
8911: ' <confdefs.h | sed '
8912: s/'"$ac_delim"'/"\\\
8913: "/g' >>$CONFIG_STATUS || ac_write_fail=1
8914:
8915: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8916: for (key in D) D_is_set[key] = 1
8917: FS = ""
8918: }
8919: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8920: line = \$ 0
8921: split(line, arg, " ")
8922: if (arg[1] == "#") {
8923: defundef = arg[2]
8924: mac1 = arg[3]
8925: } else {
8926: defundef = substr(arg[1], 2)
8927: mac1 = arg[2]
8928: }
8929: split(mac1, mac2, "(") #)
8930: macro = mac2[1]
8931: prefix = substr(line, 1, index(line, defundef) - 1)
8932: if (D_is_set[macro]) {
8933: # Preserve the white space surrounding the "#".
8934: print prefix "define", macro P[macro] D[macro]
8935: next
8936: } else {
8937: # Replace #undef with comments. This is necessary, for example,
8938: # in the case of _POSIX_SOURCE, which is predefined and required
8939: # on some systems where configure will not decide to define it.
8940: if (defundef == "undef") {
8941: print "/*", prefix defundef, macro, "*/"
8942: next
8943: }
8944: }
8945: }
8946: { print }
8947: _ACAWK
8948: _ACEOF
8949: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8950: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8951: fi # test -n "$CONFIG_HEADERS"
8952:
8953:
8954: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8955: shift
8956: for ac_tag
8957: do
8958: case $ac_tag in
8959: :[FHLC]) ac_mode=$ac_tag; continue;;
8960: esac
8961: case $ac_mode$ac_tag in
8962: :[FHL]*:*);;
1.1.1.15 root 8963: :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
1.1 root 8964: :[FH]-) ac_tag=-:-;;
8965: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8966: esac
8967: ac_save_IFS=$IFS
8968: IFS=:
8969: set x $ac_tag
8970: IFS=$ac_save_IFS
8971: shift
8972: ac_file=$1
8973: shift
8974:
8975: case $ac_mode in
8976: :L) ac_source=$1;;
8977: :[FH])
8978: ac_file_inputs=
8979: for ac_f
8980: do
8981: case $ac_f in
8982: -) ac_f="$ac_tmp/stdin";;
8983: *) # Look for the file first in the build tree, then in the source tree
8984: # (if the path is not absolute). The absolute path cannot be DOS-style,
1.1.1.15 root 8985: # because $ac_f cannot contain ':'.
1.1 root 8986: test -f "$ac_f" ||
8987: case $ac_f in
8988: [\\/$]*) false;;
8989: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8990: esac ||
1.1.1.15 root 8991: as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
1.1 root 8992: esac
1.1.1.10 root 8993: case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
1.1 root 8994: as_fn_append ac_file_inputs " '$ac_f'"
8995: done
8996:
1.1.1.15 root 8997: # Let's still pretend it is 'configure' which instantiates (i.e., don't
1.1 root 8998: # use $as_me), people would be surprised to read:
8999: # /* config.h. Generated by config.status. */
9000: configure_input='Generated from '`
1.1.1.10 root 9001: printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
1.1 root 9002: `' by configure.'
9003: if test x"$ac_file" != x-; then
9004: configure_input="$ac_file. $configure_input"
1.1.1.10 root 9005: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9006: printf "%s\n" "$as_me: creating $ac_file" >&6;}
1.1 root 9007: fi
9008: # Neutralize special characters interpreted by sed in replacement strings.
9009: case $configure_input in #(
9010: *\&* | *\|* | *\\* )
1.1.1.10 root 9011: ac_sed_conf_input=`printf "%s\n" "$configure_input" |
1.1 root 9012: sed 's/[\\\\&|]/\\\\&/g'`;; #(
9013: *) ac_sed_conf_input=$configure_input;;
9014: esac
9015:
9016: case $ac_tag in
9017: *:-:* | *:-) cat >"$ac_tmp/stdin" \
9018: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9019: esac
9020: ;;
9021: esac
9022:
9023: ac_dir=`$as_dirname -- "$ac_file" ||
9024: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9025: X"$ac_file" : 'X\(//\)[^/]' \| \
9026: X"$ac_file" : 'X\(//\)$' \| \
9027: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.1.1.10 root 9028: printf "%s\n" X"$ac_file" |
1.1 root 9029: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9030: s//\1/
9031: q
9032: }
9033: /^X\(\/\/\)[^/].*/{
9034: s//\1/
9035: q
9036: }
9037: /^X\(\/\/\)$/{
9038: s//\1/
9039: q
9040: }
9041: /^X\(\/\).*/{
9042: s//\1/
9043: q
9044: }
9045: s/.*/./; q'`
9046: as_dir="$ac_dir"; as_fn_mkdir_p
9047: ac_builddir=.
9048:
9049: case "$ac_dir" in
9050: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9051: *)
1.1.1.10 root 9052: ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 root 9053: # A ".." for each directory in $ac_dir_suffix.
1.1.1.10 root 9054: ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 root 9055: case $ac_top_builddir_sub in
9056: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9057: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9058: esac ;;
9059: esac
9060: ac_abs_top_builddir=$ac_pwd
9061: ac_abs_builddir=$ac_pwd$ac_dir_suffix
9062: # for backward compatibility:
9063: ac_top_builddir=$ac_top_build_prefix
9064:
9065: case $srcdir in
9066: .) # We are building in place.
9067: ac_srcdir=.
9068: ac_top_srcdir=$ac_top_builddir_sub
9069: ac_abs_top_srcdir=$ac_pwd ;;
9070: [\\/]* | ?:[\\/]* ) # Absolute name.
9071: ac_srcdir=$srcdir$ac_dir_suffix;
9072: ac_top_srcdir=$srcdir
9073: ac_abs_top_srcdir=$srcdir ;;
9074: *) # Relative name.
9075: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9076: ac_top_srcdir=$ac_top_build_prefix$srcdir
9077: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9078: esac
9079: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9080:
9081:
9082: case $ac_mode in
9083: :F)
9084: #
9085: # CONFIG_FILE
9086: #
9087:
1.1.1.3 root 9088: case $INSTALL in
9089: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9090: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9091: esac
1.1 root 9092: _ACEOF
9093:
9094: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9095: # If the template does not know about datarootdir, expand it.
9096: # FIXME: This hack should be removed a few years after 2.60.
9097: ac_datarootdir_hack=; ac_datarootdir_seen=
9098: ac_sed_dataroot='
9099: /datarootdir/ {
9100: p
9101: q
9102: }
9103: /@datadir@/p
9104: /@docdir@/p
9105: /@infodir@/p
9106: /@localedir@/p
9107: /@mandir@/p'
9108: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9109: *datarootdir*) ac_datarootdir_seen=yes;;
9110: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.1.1.10 root 9111: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9112: printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 root 9113: _ACEOF
9114: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9115: ac_datarootdir_hack='
9116: s&@datadir@&$datadir&g
9117: s&@docdir@&$docdir&g
9118: s&@infodir@&$infodir&g
9119: s&@localedir@&$localedir&g
9120: s&@mandir@&$mandir&g
9121: s&\\\${datarootdir}&$datarootdir&g' ;;
9122: esac
9123: _ACEOF
9124:
1.1.1.15 root 9125: # Neutralize VPATH when '$srcdir' = '.'.
1.1 root 9126: # Shell code in configure.ac might set extrasub.
9127: # FIXME: do we really want to maintain this feature?
9128: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9129: ac_sed_extra="$ac_vpsub
9130: $extrasub
9131: _ACEOF
9132: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9133: :t
9134: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9135: s|@configure_input@|$ac_sed_conf_input|;t t
9136: s&@top_builddir@&$ac_top_builddir_sub&;t t
9137: s&@top_build_prefix@&$ac_top_build_prefix&;t t
9138: s&@srcdir@&$ac_srcdir&;t t
9139: s&@abs_srcdir@&$ac_abs_srcdir&;t t
9140: s&@top_srcdir@&$ac_top_srcdir&;t t
9141: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9142: s&@builddir@&$ac_builddir&;t t
9143: s&@abs_builddir@&$ac_abs_builddir&;t t
9144: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
1.1.1.3 root 9145: s&@INSTALL@&$ac_INSTALL&;t t
1.1 root 9146: $ac_datarootdir_hack
9147: "
9148: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9149: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9150:
9151: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9152: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9153: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9154: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.1.1.15 root 9155: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.1 root 9156: which seems to be undefined. Please make sure it is defined" >&5
1.1.1.15 root 9157: printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
1.1 root 9158: which seems to be undefined. Please make sure it is defined" >&2;}
9159:
9160: rm -f "$ac_tmp/stdin"
9161: case $ac_file in
9162: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9163: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9164: esac \
9165: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9166: ;;
9167: :H)
9168: #
9169: # CONFIG_HEADER
9170: #
9171: if test x"$ac_file" != x-; then
9172: {
1.1.1.10 root 9173: printf "%s\n" "/* $configure_input */" >&1 \
1.1 root 9174: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9175: } >"$ac_tmp/config.h" \
9176: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9177: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.1.1.10 root 9178: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9179: printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
1.1 root 9180: else
9181: rm -f "$ac_file"
9182: mv "$ac_tmp/config.h" "$ac_file" \
9183: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9184: fi
9185: else
1.1.1.10 root 9186: printf "%s\n" "/* $configure_input */" >&1 \
1.1 root 9187: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9188: || as_fn_error $? "could not create -" "$LINENO" 5
9189: fi
9190: ;;
9191:
9192:
9193: esac
9194:
9195: done # for ac_tag
9196:
9197:
9198: as_fn_exit 0
9199: _ACEOF
9200: ac_clean_files=$ac_clean_files_save
9201:
9202: test $ac_write_fail = 0 ||
9203: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9204:
9205:
9206: # configure is writing to config.log, and then calls config.status.
9207: # config.status does its own redirection, appending to config.log.
9208: # Unfortunately, on DOS this fails, as config.log is still kept open
9209: # by configure, so config.status won't be able to write to it; its
9210: # output is simply discarded. So we exec the FD to /dev/null,
9211: # effectively closing config.log, so it can be properly (re)opened and
9212: # appended to by config.status. When coming back to configure, we
9213: # need to make the FD available again.
9214: if test "$no_create" != yes; then
9215: ac_cs_success=:
9216: ac_config_status_args=
9217: test "$silent" = yes &&
9218: ac_config_status_args="$ac_config_status_args --quiet"
9219: exec 5>/dev/null
9220: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9221: exec 5>>config.log
9222: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9223: # would make configure fail if this is the last instruction.
9224: $ac_cs_success || as_fn_exit 1
9225: fi
9226: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
1.1.1.10 root 9227: { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9228: printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1.1 root 9229: fi
9230:
1.1.1.10 root 9231:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.