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