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