Debian Codegraph @

configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for units 1.0-1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else case e in #(
191 e) as_have_required=no ;;
192 esac
193 fi
194 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 then :
196
197 else case e in #(
198 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
199 as_found=false
200 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
201 do
202 IFS=$as_save_IFS
203 case $as_dir in #(((
204 '') as_dir=./ ;;
205 */) ;;
206 *) as_dir=$as_dir/ ;;
207 esac
208 as_found=:
209 case $as_dir in #(
210 /*)
211 for as_base in sh bash ksh sh5; do
212 # Try only shells that exist, to save several forks.
213 as_shell=$as_dir$as_base
214 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
215 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
216 then :
217 CONFIG_SHELL=$as_shell as_have_required=yes
218 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
219 then :
220 break 2
221 fi
222 fi
223 done;;
224 esac
225 as_found=false
226 done
227 IFS=$as_save_IFS
228 if $as_found
229 then :
230
231 else case e in #(
232 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
234 then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi ;;
237 esac
238 fi
239
240
241 if test "x$CONFIG_SHELL" != x
242 then :
243 export CONFIG_SHELL
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
248 BASH_ENV=/dev/null
249 ENV=/dev/null
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256 esac
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed 'exec'.
260 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
261 exit 255
262 fi
263
264 if test x$as_have_required = xno
265 then :
266 printf "%s\n" "$0: This script requires a shell more modern than all"
267 printf "%s\n" "$0: the shells that I found on your system."
268 if test ${ZSH_VERSION+y} ; then
269 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
271 else
272 printf "%s\n" "$0: Please tell [email protected] and
273 $0: [email protected] about your system,
274 $0: including any error possibly output before this
275 $0: message. Then install a modern shell, or manually run
276 $0: the script under such a shell if you do have one."
277 fi
278 exit 1
279 fi ;;
280 esac
281 fi
282 fi
283 SHELL=${CONFIG_SHELL-/bin/sh}
284 export SHELL
285 # Unset more variables known to interfere with behavior of common tools.
286 CLICOLOR_FORCE= GREP_OPTIONS=
287 unset CLICOLOR_FORCE GREP_OPTIONS
288
289 ## --------------------- ##
290 ## M4sh Shell Functions. ##
291 ## --------------------- ##
292 # as_fn_unset VAR
293 # ---------------
294 # Portably unset VAR.
295 as_fn_unset ()
296 {
297 { eval $1=; unset $1;}
298 }
299 as_unset=as_fn_unset
300
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 printf "%s\n" X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
382 then :
383 eval 'as_fn_append ()
384 {
385 eval $1+=\$2
386 }'
387 else case e in #(
388 e) as_fn_append ()
389 {
390 eval $1=\$$1\$2
391 } ;;
392 esac
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else case e in #(
407 e) as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 } ;;
411 esac
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 printf "%s\n" "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 printf "%s\n" X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 t clear
488 :clear
489 s/[$]LINENO.*/&-/
490 t lineno
491 b
492 :lineno
493 N
494 :loop
495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 t loop
497 s/-\n.*//
498 ' >$as_me.lineno &&
499 chmod +x "$as_me.lineno" ||
500 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
501
502 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
503 # already done that, so ensure we don't try to do so again and fall
504 # in an infinite loop. This has already happened in practice.
505 _as_can_reexec=no; export _as_can_reexec
506 # Don't try to exec as it changes $[0], causing all sort of problems
507 # (the dirname of $[0] is not the place where we might find the
508 # original and so on. Autoconf is especially sensitive to this).
509 . "./$as_me.lineno"
510 # Exit status is that of the last command.
511 exit
512 }
513
514
515 # Determine whether it's possible to make 'echo' print without a newline.
516 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
517 # for compatibility with existing Makefiles.
518 ECHO_C= ECHO_N= ECHO_T=
519 case `echo -n x` in #(((((
520 -n*)
521 case `echo 'xy\c'` in
522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
523 xy) ECHO_C='\c';;
524 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 ECHO_T=' ';;
526 esac;;
527 *)
528 ECHO_N='-n';;
529 esac
530
531 # For backward compatibility with old third-party macros, we provide
532 # the shell variables $as_echo and $as_echo_n. New code should use
533 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
534 as_echo='printf %s\n'
535 as_echo_n='printf %s'
536
537 rm -f conf$$ conf$$.exe conf$$.file
538 if test -d conf$$.dir; then
539 rm -f conf$$.dir/conf$$.file
540 else
541 rm -f conf$$.dir
542 mkdir conf$$.dir 2>/dev/null
543 fi
544 if (echo >conf$$.file) 2>/dev/null; then
545 if ln -s conf$$.file conf$$ 2>/dev/null; then
546 as_ln_s='ln -s'
547 # ... but there are two gotchas:
548 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
549 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
550 # In both cases, we have to default to 'cp -pR'.
551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
552 as_ln_s='cp -pR'
553 elif ln conf$$.file conf$$ 2>/dev/null; then
554 as_ln_s=ln
555 else
556 as_ln_s='cp -pR'
557 fi
558 else
559 as_ln_s='cp -pR'
560 fi
561 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
562 rmdir conf$$.dir 2>/dev/null
563
564 if mkdir -p . 2>/dev/null; then
565 as_mkdir_p='mkdir -p "$as_dir"'
566 else
567 test -d ./-p && rmdir ./-p
568 as_mkdir_p=false
569 fi
570
571 as_test_x='test -x'
572 as_executable_p=as_fn_executable_p
573
574 # Sed expression to map a string onto a valid CPP name.
575 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
576 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
577
578 # Sed expression to map a string onto a valid variable name.
579 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
580 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
581
582
583 test -n "$DJDIR" || exec 7<&0 </dev/null
584 exec 6>&1
585
586 # Name of the host.
587 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
588 # so uname gets run too.
589 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
590
591 #
592 # Initializations.
593 #
594 ac_default_prefix=/usr/local
595 ac_clean_files=
596 ac_config_libobj_dir=.
597 LIBOBJS=
598 cross_compiling=no
599 subdirs=
600 MFLAGS=
601 MAKEFLAGS=
602
603 # Identity of this package.
604 PACKAGE_NAME='units'
605 PACKAGE_TARNAME='units'
606 PACKAGE_VERSION='1.0-1'
607 PACKAGE_STRING='units 1.0-1'
608 PACKAGE_BUGREPORT='[email protected]'
609 PACKAGE_URL=''
610
611 # Factoring default headers for most tests.
612 ac_includes_default="\
613 #include <stddef.h>
614 #ifdef HAVE_STDIO_H
615 # include <stdio.h>
616 #endif
617 #ifdef HAVE_STDLIB_H
618 # include <stdlib.h>
619 #endif
620 #ifdef HAVE_STRING_H
621 # include <string.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_STRINGS_H
630 # include <strings.h>
631 #endif
632 #ifdef HAVE_SYS_TYPES_H
633 # include <sys/types.h>
634 #endif
635 #ifdef HAVE_SYS_STAT_H
636 # include <sys/stat.h>
637 #endif
638 #ifdef HAVE_UNISTD_H
639 # include <unistd.h>
640 #endif"
641
642 ac_header_cxx_list=
643 ac_subst_vars='LTLIBOBJS
644 UDUNITS2_DIR
645 UD_CPPFLAGS
646 CXX_STD
647 BREW
648 ac_ct_CC
649 CFLAGS
650 CC
651 LIBOBJS
652 OBJEXT
653 EXEEXT
654 ac_ct_CXX
655 CPPFLAGS
656 LDFLAGS
657 CXXFLAGS
658 CXX
659 target_alias
660 host_alias
661 build_alias
662 LIBS
663 ECHO_T
664 ECHO_N
665 ECHO_C
666 DEFS
667 mandir
668 localedir
669 libdir
670 psdir
671 pdfdir
672 dvidir
673 htmldir
674 infodir
675 docdir
676 oldincludedir
677 includedir
678 runstatedir
679 localstatedir
680 sharedstatedir
681 sysconfdir
682 datadir
683 datarootdir
684 libexecdir
685 sbindir
686 bindir
687 program_transform_name
688 prefix
689 exec_prefix
690 PACKAGE_URL
691 PACKAGE_BUGREPORT
692 PACKAGE_STRING
693 PACKAGE_VERSION
694 PACKAGE_TARNAME
695 PACKAGE_NAME
696 PATH_SEPARATOR
697 SHELL'
698 ac_subst_files=''
699 ac_user_opts='
700 enable_option_checking
701 with_udunits2_include
702 with_udunits2_lib
703 '
704 ac_precious_vars='build_alias
705 host_alias
706 target_alias
707 CXX
708 CXXFLAGS
709 LDFLAGS
710 LIBS
711 CPPFLAGS
712 CCC
713 CC
714 CFLAGS'
715
716
717 # Initialize some variables set by options.
718 ac_init_help=
719 ac_init_version=false
720 ac_unrecognized_opts=
721 ac_unrecognized_sep=
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
724 cache_file=/dev/null
725 exec_prefix=NONE
726 no_create=
727 no_recursion=
728 prefix=NONE
729 program_prefix=NONE
730 program_suffix=NONE
731 program_transform_name=s,x,x,
732 silent=
733 site=
734 srcdir=
735 verbose=
736 x_includes=NONE
737 x_libraries=NONE
738
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir='${exec_prefix}/bin'
746 sbindir='${exec_prefix}/sbin'
747 libexecdir='${exec_prefix}/libexec'
748 datarootdir='${prefix}/share'
749 datadir='${datarootdir}'
750 sysconfdir='${prefix}/etc'
751 sharedstatedir='${prefix}/com'
752 localstatedir='${prefix}/var'
753 runstatedir='${localstatedir}/run'
754 includedir='${prefix}/include'
755 oldincludedir='/usr/include'
756 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
757 infodir='${datarootdir}/info'
758 htmldir='${docdir}'
759 dvidir='${docdir}'
760 pdfdir='${docdir}'
761 psdir='${docdir}'
762 libdir='${exec_prefix}/lib'
763 localedir='${datarootdir}/locale'
764 mandir='${datarootdir}/man'
765
766 ac_prev=
767 ac_dashdash=
768 for ac_option
769 do
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\$ac_option
773 ac_prev=
774 continue
775 fi
776
777 case $ac_option in
778 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *=) ac_optarg= ;;
780 *) ac_optarg=yes ;;
781 esac
782
783 case $ac_dashdash$ac_option in
784 --)
785 ac_dashdash=yes ;;
786
787 -bindir | --bindir | --bindi | --bind | --bin | --bi)
788 ac_prev=bindir ;;
789 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
790 bindir=$ac_optarg ;;
791
792 -build | --build | --buil | --bui | --bu)
793 ac_prev=build_alias ;;
794 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795 build_alias=$ac_optarg ;;
796
797 -cache-file | --cache-file | --cache-fil | --cache-fi \
798 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799 ac_prev=cache_file ;;
800 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802 cache_file=$ac_optarg ;;
803
804 --config-cache | -C)
805 cache_file=config.cache ;;
806
807 -datadir | --datadir | --datadi | --datad)
808 ac_prev=datadir ;;
809 -datadir=* | --datadir=* | --datadi=* | --datad=*)
810 datadir=$ac_optarg ;;
811
812 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813 | --dataroo | --dataro | --datar)
814 ac_prev=datarootdir ;;
815 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817 datarootdir=$ac_optarg ;;
818
819 -disable-* | --disable-*)
820 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
823 as_fn_error $? "invalid feature name: '$ac_useropt'"
824 ac_useropt_orig=$ac_useropt
825 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
826 case $ac_user_opts in
827 *"
828 "enable_$ac_useropt"
829 "*) ;;
830 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
831 ac_unrecognized_sep=', ';;
832 esac
833 eval enable_$ac_useropt=no ;;
834
835 -docdir | --docdir | --docdi | --doc | --do)
836 ac_prev=docdir ;;
837 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838 docdir=$ac_optarg ;;
839
840 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841 ac_prev=dvidir ;;
842 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843 dvidir=$ac_optarg ;;
844
845 -enable-* | --enable-*)
846 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849 as_fn_error $? "invalid feature name: '$ac_useropt'"
850 ac_useropt_orig=$ac_useropt
851 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
853 *"
854 "enable_$ac_useropt"
855 "*) ;;
856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
857 ac_unrecognized_sep=', ';;
858 esac
859 eval enable_$ac_useropt=\$ac_optarg ;;
860
861 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
862 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
863 | --exec | --exe | --ex)
864 ac_prev=exec_prefix ;;
865 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
866 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
867 | --exec=* | --exe=* | --ex=*)
868 exec_prefix=$ac_optarg ;;
869
870 -gas | --gas | --ga | --g)
871 # Obsolete; use --with-gas.
872 with_gas=yes ;;
873
874 -help | --help | --hel | --he | -h)
875 ac_init_help=long ;;
876 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
877 ac_init_help=recursive ;;
878 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
879 ac_init_help=short ;;
880
881 -host | --host | --hos | --ho)
882 ac_prev=host_alias ;;
883 -host=* | --host=* | --hos=* | --ho=*)
884 host_alias=$ac_optarg ;;
885
886 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
887 ac_prev=htmldir ;;
888 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
889 | --ht=*)
890 htmldir=$ac_optarg ;;
891
892 -includedir | --includedir | --includedi | --included | --include \
893 | --includ | --inclu | --incl | --inc)
894 ac_prev=includedir ;;
895 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
896 | --includ=* | --inclu=* | --incl=* | --inc=*)
897 includedir=$ac_optarg ;;
898
899 -infodir | --infodir | --infodi | --infod | --info | --inf)
900 ac_prev=infodir ;;
901 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
902 infodir=$ac_optarg ;;
903
904 -libdir | --libdir | --libdi | --libd)
905 ac_prev=libdir ;;
906 -libdir=* | --libdir=* | --libdi=* | --libd=*)
907 libdir=$ac_optarg ;;
908
909 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
910 | --libexe | --libex | --libe)
911 ac_prev=libexecdir ;;
912 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
913 | --libexe=* | --libex=* | --libe=*)
914 libexecdir=$ac_optarg ;;
915
916 -localedir | --localedir | --localedi | --localed | --locale)
917 ac_prev=localedir ;;
918 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
919 localedir=$ac_optarg ;;
920
921 -localstatedir | --localstatedir | --localstatedi | --localstated \
922 | --localstate | --localstat | --localsta | --localst | --locals)
923 ac_prev=localstatedir ;;
924 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
925 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
926 localstatedir=$ac_optarg ;;
927
928 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
929 ac_prev=mandir ;;
930 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
931 mandir=$ac_optarg ;;
932
933 -nfp | --nfp | --nf)
934 # Obsolete; use --without-fp.
935 with_fp=no ;;
936
937 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
938 | --no-cr | --no-c | -n)
939 no_create=yes ;;
940
941 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
943 no_recursion=yes ;;
944
945 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
946 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
947 | --oldin | --oldi | --old | --ol | --o)
948 ac_prev=oldincludedir ;;
949 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
950 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
951 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
952 oldincludedir=$ac_optarg ;;
953
954 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
955 ac_prev=prefix ;;
956 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
957 prefix=$ac_optarg ;;
958
959 -program-prefix | --program-prefix | --program-prefi | --program-pref \
960 | --program-pre | --program-pr | --program-p)
961 ac_prev=program_prefix ;;
962 -program-prefix=* | --program-prefix=* | --program-prefi=* \
963 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
964 program_prefix=$ac_optarg ;;
965
966 -program-suffix | --program-suffix | --program-suffi | --program-suff \
967 | --program-suf | --program-su | --program-s)
968 ac_prev=program_suffix ;;
969 -program-suffix=* | --program-suffix=* | --program-suffi=* \
970 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
971 program_suffix=$ac_optarg ;;
972
973 -program-transform-name | --program-transform-name \
974 | --program-transform-nam | --program-transform-na \
975 | --program-transform-n | --program-transform- \
976 | --program-transform | --program-transfor \
977 | --program-transfo | --program-transf \
978 | --program-trans | --program-tran \
979 | --progr-tra | --program-tr | --program-t)
980 ac_prev=program_transform_name ;;
981 -program-transform-name=* | --program-transform-name=* \
982 | --program-transform-nam=* | --program-transform-na=* \
983 | --program-transform-n=* | --program-transform-=* \
984 | --program-transform=* | --program-transfor=* \
985 | --program-transfo=* | --program-transf=* \
986 | --program-trans=* | --program-tran=* \
987 | --progr-tra=* | --program-tr=* | --program-t=*)
988 program_transform_name=$ac_optarg ;;
989
990 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
991 ac_prev=pdfdir ;;
992 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
993 pdfdir=$ac_optarg ;;
994
995 -psdir | --psdir | --psdi | --psd | --ps)
996 ac_prev=psdir ;;
997 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
998 psdir=$ac_optarg ;;
999
1000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1001 | -silent | --silent | --silen | --sile | --sil)
1002 silent=yes ;;
1003
1004 -runstatedir | --runstatedir | --runstatedi | --runstated \
1005 | --runstate | --runstat | --runsta | --runst | --runs \
1006 | --run | --ru | --r)
1007 ac_prev=runstatedir ;;
1008 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1009 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1010 | --run=* | --ru=* | --r=*)
1011 runstatedir=$ac_optarg ;;
1012
1013 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014 ac_prev=sbindir ;;
1015 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016 | --sbi=* | --sb=*)
1017 sbindir=$ac_optarg ;;
1018
1019 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021 | --sharedst | --shareds | --shared | --share | --shar \
1022 | --sha | --sh)
1023 ac_prev=sharedstatedir ;;
1024 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027 | --sha=* | --sh=*)
1028 sharedstatedir=$ac_optarg ;;
1029
1030 -site | --site | --sit)
1031 ac_prev=site ;;
1032 -site=* | --site=* | --sit=*)
1033 site=$ac_optarg ;;
1034
1035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036 ac_prev=srcdir ;;
1037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038 srcdir=$ac_optarg ;;
1039
1040 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041 | --syscon | --sysco | --sysc | --sys | --sy)
1042 ac_prev=sysconfdir ;;
1043 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045 sysconfdir=$ac_optarg ;;
1046
1047 -target | --target | --targe | --targ | --tar | --ta | --t)
1048 ac_prev=target_alias ;;
1049 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050 target_alias=$ac_optarg ;;
1051
1052 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 verbose=yes ;;
1054
1055 -version | --version | --versio | --versi | --vers | -V)
1056 ac_init_version=: ;;
1057
1058 -with-* | --with-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error $? "invalid package name: '$ac_useropt'"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1066 *"
1067 "with_$ac_useropt"
1068 "*) ;;
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1071 esac
1072 eval with_$ac_useropt=\$ac_optarg ;;
1073
1074 -without-* | --without-*)
1075 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 as_fn_error $? "invalid package name: '$ac_useropt'"
1079 ac_useropt_orig=$ac_useropt
1080 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1082 *"
1083 "with_$ac_useropt"
1084 "*) ;;
1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1086 ac_unrecognized_sep=', ';;
1087 esac
1088 eval with_$ac_useropt=no ;;
1089
1090 --x)
1091 # Obsolete; use --with-x.
1092 with_x=yes ;;
1093
1094 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1095 | --x-incl | --x-inc | --x-in | --x-i)
1096 ac_prev=x_includes ;;
1097 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1098 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1099 x_includes=$ac_optarg ;;
1100
1101 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1102 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1103 ac_prev=x_libraries ;;
1104 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1105 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1106 x_libraries=$ac_optarg ;;
1107
1108 -*) as_fn_error $? "unrecognized option: '$ac_option'
1109 Try '$0 --help' for more information"
1110 ;;
1111
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 case $ac_envvar in #(
1116 '' | [0-9]* | *[!_$as_cr_alnum]* )
1117 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1118 esac
1119 eval $ac_envvar=\$ac_optarg
1120 export $ac_envvar ;;
1121
1122 *)
1123 # FIXME: should be removed in autoconf 3.0.
1124 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1125 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1126 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1127 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1128 ;;
1129
1130 esac
1131 done
1132
1133 if test -n "$ac_prev"; then
1134 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1135 as_fn_error $? "missing argument to $ac_option"
1136 fi
1137
1138 if test -n "$ac_unrecognized_opts"; then
1139 case $enable_option_checking in
1140 no) ;;
1141 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1142 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1143 esac
1144 fi
1145
1146 # Check all directory arguments for consistency.
1147 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148 datadir sysconfdir sharedstatedir localstatedir includedir \
1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150 libdir localedir mandir runstatedir
1151 do
1152 eval ac_val=\$$ac_var
1153 # Remove trailing slashes.
1154 case $ac_val in
1155 */ )
1156 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1157 eval $ac_var=\$ac_val;;
1158 esac
1159 # Be sure to have absolute directory names.
1160 case $ac_val in
1161 [\\/$]* | ?:[\\/]* ) continue;;
1162 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1163 esac
1164 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1165 done
1166
1167 # There might be people who depend on the old broken behavior: '$host'
1168 # used to hold the argument of --host etc.
1169 # FIXME: To remove some day.
1170 build=$build_alias
1171 host=$host_alias
1172 target=$target_alias
1173
1174 # FIXME: To remove some day.
1175 if test "x$host_alias" != x; then
1176 if test "x$build_alias" = x; then
1177 cross_compiling=maybe
1178 elif test "x$build_alias" != "x$host_alias"; then
1179 cross_compiling=yes
1180 fi
1181 fi
1182
1183 ac_tool_prefix=
1184 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1185
1186 test "$silent" = yes && exec 6>/dev/null
1187
1188
1189 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1190 ac_ls_di=`ls -di .` &&
1191 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1192 as_fn_error $? "working directory cannot be determined"
1193 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1194 as_fn_error $? "pwd does not report name of working directory"
1195
1196
1197 # Find the source files, if location was not specified.
1198 if test -z "$srcdir"; then
1199 ac_srcdir_defaulted=yes
1200 # Try the directory containing this script, then the parent directory.
1201 ac_confdir=`$as_dirname -- "$as_myself" ||
1202 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1203 X"$as_myself" : 'X\(//\)[^/]' \| \
1204 X"$as_myself" : 'X\(//\)$' \| \
1205 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1206 printf "%s\n" X"$as_myself" |
1207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208 s//\1/
1209 q
1210 }
1211 /^X\(\/\/\)[^/].*/{
1212 s//\1/
1213 q
1214 }
1215 /^X\(\/\/\)$/{
1216 s//\1/
1217 q
1218 }
1219 /^X\(\/\).*/{
1220 s//\1/
1221 q
1222 }
1223 s/.*/./; q'`
1224 srcdir=$ac_confdir
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 srcdir=..
1227 fi
1228 else
1229 ac_srcdir_defaulted=no
1230 fi
1231 if test ! -r "$srcdir/$ac_unique_file"; then
1232 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1233 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1234 fi
1235 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1236 ac_abs_confdir=`(
1237 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1238 pwd)`
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1241 srcdir=.
1242 fi
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1246 case $srcdir in
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1248 esac
1249 for ac_var in $ac_precious_vars; do
1250 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_env_${ac_var}_value=\$${ac_var}
1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1254 done
1255
1256 #
1257 # Report the --help message.
1258 #
1259 if test "$ac_init_help" = "long"; then
1260 # Omit some internal or obsolete options to make the list less imposing.
1261 # This message is too long to be a string in the A/UX 3.1 sh.
1262 cat <<_ACEOF
1263 'configure' configures units 1.0-1 to adapt to many kinds of systems.
1264
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1266
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE. See below for descriptions of some of the useful variables.
1269
1270 Defaults for the options are specified in brackets.
1271
1272 Configuration:
1273 -h, --help display this help and exit
1274 --help=short display options specific to this package
1275 --help=recursive display the short help of all the included packages
1276 -V, --version display version information and exit
1277 -q, --quiet, --silent do not print 'checking ...' messages
1278 --cache-file=FILE cache test results in FILE [disabled]
1279 -C, --config-cache alias for '--cache-file=config.cache'
1280 -n, --no-create do not create output files
1281 --srcdir=DIR find the sources in DIR [configure dir or '..']
1282
1283 Installation directories:
1284 --prefix=PREFIX install architecture-independent files in PREFIX
1285 [$ac_default_prefix]
1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1287 [PREFIX]
1288
1289 By default, 'make install' will install all the files in
1290 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1291 an installation prefix other than '$ac_default_prefix' using '--prefix',
1292 for instance '--prefix=\$HOME'.
1293
1294 For better control, use the options below.
1295
1296 Fine tuning of the installation directories:
1297 --bindir=DIR user executables [EPREFIX/bin]
1298 --sbindir=DIR system admin executables [EPREFIX/sbin]
1299 --libexecdir=DIR program executables [EPREFIX/libexec]
1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1304 --libdir=DIR object code libraries [EPREFIX/lib]
1305 --includedir=DIR C header files [PREFIX/include]
1306 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1307 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1308 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1309 --infodir=DIR info documentation [DATAROOTDIR/info]
1310 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1311 --mandir=DIR man documentation [DATAROOTDIR/man]
1312 --docdir=DIR documentation root [DATAROOTDIR/doc/units]
1313 --htmldir=DIR html documentation [DOCDIR]
1314 --dvidir=DIR dvi documentation [DOCDIR]
1315 --pdfdir=DIR pdf documentation [DOCDIR]
1316 --psdir=DIR ps documentation [DOCDIR]
1317 _ACEOF
1318
1319 cat <<\_ACEOF
1320 _ACEOF
1321 fi
1322
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of units 1.0-1:";;
1326 esac
1327 cat <<\_ACEOF
1328
1329 Optional Packages:
1330 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1331 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1332 --with-udunits2-include=DIR
1333 location of the udunits2 header files
1334 --with-udunits2-lib=DIR location of the udunits2 libraries
1335
1336 Some influential environment variables:
1337 CXX C++ compiler command
1338 CXXFLAGS C++ compiler flags
1339 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1340 nonstandard directory <lib dir>
1341 LIBS libraries to pass to the linker, e.g. -l<library>
1342 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1343 you have headers in a nonstandard directory <include dir>
1344 CC C compiler command
1345 CFLAGS C compiler flags
1346
1347 Use these variables to override the choices made by 'configure' or to help
1348 it to find libraries and programs with nonstandard names/locations.
1349
1350 Report bugs to <[email protected]>.
1351 _ACEOF
1352 ac_status=$?
1353 fi
1354
1355 if test "$ac_init_help" = "recursive"; then
1356 # If there are subdirs, report their specific --help.
1357 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1358 test -d "$ac_dir" ||
1359 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1360 continue
1361 ac_builddir=.
1362
1363 case "$ac_dir" in
1364 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1365 *)
1366 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1367 # A ".." for each directory in $ac_dir_suffix.
1368 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1369 case $ac_top_builddir_sub in
1370 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1371 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1372 esac ;;
1373 esac
1374 ac_abs_top_builddir=$ac_pwd
1375 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1376 # for backward compatibility:
1377 ac_top_builddir=$ac_top_build_prefix
1378
1379 case $srcdir in
1380 .) # We are building in place.
1381 ac_srcdir=.
1382 ac_top_srcdir=$ac_top_builddir_sub
1383 ac_abs_top_srcdir=$ac_pwd ;;
1384 [\\/]* | ?:[\\/]* ) # Absolute name.
1385 ac_srcdir=$srcdir$ac_dir_suffix;
1386 ac_top_srcdir=$srcdir
1387 ac_abs_top_srcdir=$srcdir ;;
1388 *) # Relative name.
1389 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1390 ac_top_srcdir=$ac_top_build_prefix$srcdir
1391 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1392 esac
1393 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1394
1395 cd "$ac_dir" || { ac_status=$?; continue; }
1396 # Check for configure.gnu first; this name is used for a wrapper for
1397 # Metaconfig's "Configure" on case-insensitive file systems.
1398 if test -f "$ac_srcdir/configure.gnu"; then
1399 echo &&
1400 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1401 elif test -f "$ac_srcdir/configure"; then
1402 echo &&
1403 $SHELL "$ac_srcdir/configure" --help=recursive
1404 else
1405 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1406 fi || ac_status=$?
1407 cd "$ac_pwd" || { ac_status=$?; break; }
1408 done
1409 fi
1410
1411 test -n "$ac_init_help" && exit $ac_status
1412 if $ac_init_version; then
1413 cat <<\_ACEOF
1414 units configure 1.0-1
1415 generated by GNU Autoconf 2.72
1416
1417 Copyright (C) 2023 Free Software Foundation, Inc.
1418 This configure script is free software; the Free Software Foundation
1419 gives unlimited permission to copy, distribute and modify it.
1420 _ACEOF
1421 exit
1422 fi
1423
1424 ## ------------------------ ##
1425 ## Autoconf initialization. ##
1426 ## ------------------------ ##
1427
1428 # ac_fn_cxx_try_compile LINENO
1429 # ----------------------------
1430 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1431 ac_fn_cxx_try_compile ()
1432 {
1433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434 rm -f conftest.$ac_objext conftest.beam
1435 if { { ac_try="$ac_compile"
1436 case "(($ac_try" in
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1439 esac
1440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441 printf "%s\n" "$ac_try_echo"; } >&5
1442 (eval "$ac_compile") 2>conftest.err
1443 ac_status=$?
1444 if test -s conftest.err; then
1445 grep -v '^ *+' conftest.err >conftest.er1
1446 cat conftest.er1 >&5
1447 mv -f conftest.er1 conftest.err
1448 fi
1449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450 test $ac_status = 0; } && {
1451 test -z "$ac_cxx_werror_flag" ||
1452 test ! -s conftest.err
1453 } && test -s conftest.$ac_objext
1454 then :
1455 ac_retval=0
1456 else case e in #(
1457 e) printf "%s\n" "$as_me: failed program was:" >&5
1458 sed 's/^/| /' conftest.$ac_ext >&5
1459
1460 ac_retval=1 ;;
1461 esac
1462 fi
1463 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1464 as_fn_set_status $ac_retval
1465
1466 } # ac_fn_cxx_try_compile
1467
1468 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1469 # ---------------------------------------------
1470 # Tests whether TYPE exists after having included INCLUDES, setting cache
1471 # variable VAR accordingly.
1472 ac_fn_cxx_check_type ()
1473 {
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1476 printf %s "checking for $2... " >&6; }
1477 if eval test \${$3+y}
1478 then :
1479 printf %s "(cached) " >&6
1480 else case e in #(
1481 e) eval "$3=no"
1482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1483 /* end confdefs.h. */
1484 $4
1485 int
1486 main (void)
1487 {
1488 if (sizeof ($2))
1489 return 0;
1490 ;
1491 return 0;
1492 }
1493 _ACEOF
1494 if ac_fn_cxx_try_compile "$LINENO"
1495 then :
1496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1497 /* end confdefs.h. */
1498 $4
1499 int
1500 main (void)
1501 {
1502 if (sizeof (($2)))
1503 return 0;
1504 ;
1505 return 0;
1506 }
1507 _ACEOF
1508 if ac_fn_cxx_try_compile "$LINENO"
1509 then :
1510
1511 else case e in #(
1512 e) eval "$3=yes" ;;
1513 esac
1514 fi
1515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1516 fi
1517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1518 esac
1519 fi
1520 eval ac_res=\$$3
1521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1522 printf "%s\n" "$ac_res" >&6; }
1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1524
1525 } # ac_fn_cxx_check_type
1526
1527 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1528 # ---------------------------------------------------------
1529 # Tests whether HEADER exists and can be compiled using the include files in
1530 # INCLUDES, setting the cache variable VAR accordingly.
1531 ac_fn_cxx_check_header_compile ()
1532 {
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1535 printf %s "checking for $2... " >&6; }
1536 if eval test \${$3+y}
1537 then :
1538 printf %s "(cached) " >&6
1539 else case e in #(
1540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1541 /* end confdefs.h. */
1542 $4
1543 #include <$2>
1544 _ACEOF
1545 if ac_fn_cxx_try_compile "$LINENO"
1546 then :
1547 eval "$3=yes"
1548 else case e in #(
1549 e) eval "$3=no" ;;
1550 esac
1551 fi
1552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1553 esac
1554 fi
1555 eval ac_res=\$$3
1556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1557 printf "%s\n" "$ac_res" >&6; }
1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559
1560 } # ac_fn_cxx_check_header_compile
1561
1562 # ac_fn_cxx_try_link LINENO
1563 # -------------------------
1564 # Try to link conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_cxx_try_link ()
1566 {
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1569 if { { ac_try="$ac_link"
1570 case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573 esac
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 printf "%s\n" "$ac_try_echo"; } >&5
1576 (eval "$ac_link") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_cxx_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest$ac_exeext && {
1588 test "$cross_compiling" = yes ||
1589 test -x conftest$ac_exeext
1590 }
1591 then :
1592 ac_retval=0
1593 else case e in #(
1594 e) printf "%s\n" "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1 ;;
1598 esac
1599 fi
1600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1602 # interfere with the next link command; also delete a directory that is
1603 # left behind by Apple's compiler. We do this before executing the actions.
1604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608 } # ac_fn_cxx_try_link
1609
1610 # ac_fn_c_try_compile LINENO
1611 # --------------------------
1612 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_compile ()
1614 {
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 rm -f conftest.$ac_objext conftest.beam
1617 if { { ac_try="$ac_compile"
1618 case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621 esac
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 printf "%s\n" "$ac_try_echo"; } >&5
1624 (eval "$ac_compile") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && {
1633 test -z "$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 } && test -s conftest.$ac_objext
1636 then :
1637 ac_retval=0
1638 else case e in #(
1639 e) printf "%s\n" "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1 ;;
1643 esac
1644 fi
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_compile
1649
1650 # ac_fn_cxx_try_run LINENO
1651 # ------------------------
1652 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1653 # executables *can* be run.
1654 ac_fn_cxx_try_run ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_link"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 printf "%s\n" "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>&5
1665 ac_status=$?
1666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1668 { { case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 printf "%s\n" "$ac_try_echo"; } >&5
1674 (eval "$ac_try") 2>&5
1675 ac_status=$?
1676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; }; }
1678 then :
1679 ac_retval=0
1680 else case e in #(
1681 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1682 printf "%s\n" "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=$ac_status ;;
1686 esac
1687 fi
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1691
1692 } # ac_fn_cxx_try_run
1693 ac_configure_args_raw=
1694 for ac_arg
1695 do
1696 case $ac_arg in
1697 *\'*)
1698 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1699 esac
1700 as_fn_append ac_configure_args_raw " '$ac_arg'"
1701 done
1702
1703 case $ac_configure_args_raw in
1704 *$as_nl*)
1705 ac_safe_unquote= ;;
1706 *)
1707 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1708 ac_unsafe_a="$ac_unsafe_z#~"
1709 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1710 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1711 esac
1712
1713 cat >config.log <<_ACEOF
1714 This file contains any messages produced by compilers while
1715 running configure, to aid debugging if configure makes a mistake.
1716
1717 It was created by units $as_me 1.0-1, which was
1718 generated by GNU Autoconf 2.72. Invocation command line was
1719
1720 $ $0$ac_configure_args_raw
1721
1722 _ACEOF
1723 exec 5>>config.log
1724 {
1725 cat <<_ASUNAME
1726 ## --------- ##
1727 ## Platform. ##
1728 ## --------- ##
1729
1730 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1731 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1732 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1733 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1734 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1735
1736 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1737 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1738
1739 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1740 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1741 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1742 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1743 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1744 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1745 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1746
1747 _ASUNAME
1748
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 for as_dir in $PATH
1751 do
1752 IFS=$as_save_IFS
1753 case $as_dir in #(((
1754 '') as_dir=./ ;;
1755 */) ;;
1756 *) as_dir=$as_dir/ ;;
1757 esac
1758 printf "%s\n" "PATH: $as_dir"
1759 done
1760 IFS=$as_save_IFS
1761
1762 } >&5
1763
1764 cat >&5 <<_ACEOF
1765
1766
1767 ## ----------- ##
1768 ## Core tests. ##
1769 ## ----------- ##
1770
1771 _ACEOF
1772
1773
1774 # Keep a trace of the command line.
1775 # Strip out --no-create and --no-recursion so they do not pile up.
1776 # Strip out --silent because we don't want to record it for future runs.
1777 # Also quote any args containing shell meta-characters.
1778 # Make two passes to allow for proper duplicate-argument suppression.
1779 ac_configure_args=
1780 ac_configure_args0=
1781 ac_configure_args1=
1782 ac_must_keep_next=false
1783 for ac_pass in 1 2
1784 do
1785 for ac_arg
1786 do
1787 case $ac_arg in
1788 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1790 | -silent | --silent | --silen | --sile | --sil)
1791 continue ;;
1792 *\'*)
1793 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1794 esac
1795 case $ac_pass in
1796 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1797 2)
1798 as_fn_append ac_configure_args1 " '$ac_arg'"
1799 if test $ac_must_keep_next = true; then
1800 ac_must_keep_next=false # Got value, back to normal.
1801 else
1802 case $ac_arg in
1803 *=* | --config-cache | -C | -disable-* | --disable-* \
1804 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1805 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1806 | -with-* | --with-* | -without-* | --without-* | --x)
1807 case "$ac_configure_args0 " in
1808 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1809 esac
1810 ;;
1811 -* ) ac_must_keep_next=true ;;
1812 esac
1813 fi
1814 as_fn_append ac_configure_args " '$ac_arg'"
1815 ;;
1816 esac
1817 done
1818 done
1819 { ac_configure_args0=; unset ac_configure_args0;}
1820 { ac_configure_args1=; unset ac_configure_args1;}
1821
1822 # When interrupted or exit'd, cleanup temporary files, and complete
1823 # config.log. We remove comments because anyway the quotes in there
1824 # would cause problems or look ugly.
1825 # WARNING: Use '\'' to represent an apostrophe within the trap.
1826 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1827 trap 'exit_status=$?
1828 # Sanitize IFS.
1829 IFS=" "" $as_nl"
1830 # Save into config.log some information that might help in debugging.
1831 {
1832 echo
1833
1834 printf "%s\n" "## ---------------- ##
1835 ## Cache variables. ##
1836 ## ---------------- ##"
1837 echo
1838 # The following way of writing the cache mishandles newlines in values,
1839 (
1840 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1841 eval ac_val=\$$ac_var
1842 case $ac_val in #(
1843 *${as_nl}*)
1844 case $ac_var in #(
1845 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1846 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1847 esac
1848 case $ac_var in #(
1849 _ | IFS | as_nl) ;; #(
1850 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1851 *) { eval $ac_var=; unset $ac_var;} ;;
1852 esac ;;
1853 esac
1854 done
1855 (set) 2>&1 |
1856 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1857 *${as_nl}ac_space=\ *)
1858 sed -n \
1859 "s/'\''/'\''\\\\'\'''\''/g;
1860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1861 ;; #(
1862 *)
1863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1864 ;;
1865 esac |
1866 sort
1867 )
1868 echo
1869
1870 printf "%s\n" "## ----------------- ##
1871 ## Output variables. ##
1872 ## ----------------- ##"
1873 echo
1874 for ac_var in $ac_subst_vars
1875 do
1876 eval ac_val=\$$ac_var
1877 case $ac_val in
1878 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1879 esac
1880 printf "%s\n" "$ac_var='\''$ac_val'\''"
1881 done | sort
1882 echo
1883
1884 if test -n "$ac_subst_files"; then
1885 printf "%s\n" "## ------------------- ##
1886 ## File substitutions. ##
1887 ## ------------------- ##"
1888 echo
1889 for ac_var in $ac_subst_files
1890 do
1891 eval ac_val=\$$ac_var
1892 case $ac_val in
1893 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894 esac
1895 printf "%s\n" "$ac_var='\''$ac_val'\''"
1896 done | sort
1897 echo
1898 fi
1899
1900 if test -s confdefs.h; then
1901 printf "%s\n" "## ----------- ##
1902 ## confdefs.h. ##
1903 ## ----------- ##"
1904 echo
1905 cat confdefs.h
1906 echo
1907 fi
1908 test "$ac_signal" != 0 &&
1909 printf "%s\n" "$as_me: caught signal $ac_signal"
1910 printf "%s\n" "$as_me: exit $exit_status"
1911 } >&5
1912 rm -f core *.core core.conftest.* &&
1913 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1914 exit $exit_status
1915 ' 0
1916 for ac_signal in 1 2 13 15; do
1917 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1918 done
1919 ac_signal=0
1920
1921 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1922 rm -f -r conftest* confdefs.h
1923
1924 printf "%s\n" "/* confdefs.h */" > confdefs.h
1925
1926 # Predefined preprocessor variables.
1927
1928 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1929
1930 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1931
1932 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1933
1934 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1935
1936 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1937
1938 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1939
1940
1941 # Let the site file select an alternate cache file if it wants to.
1942 # Prefer an explicitly selected file to automatically selected ones.
1943 if test -n "$CONFIG_SITE"; then
1944 ac_site_files="$CONFIG_SITE"
1945 elif test "x$prefix" != xNONE; then
1946 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1947 else
1948 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1949 fi
1950
1951 for ac_site_file in $ac_site_files
1952 do
1953 case $ac_site_file in #(
1954 */*) :
1955 ;; #(
1956 *) :
1957 ac_site_file=./$ac_site_file ;;
1958 esac
1959 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1961 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1962 sed 's/^/| /' "$ac_site_file" >&5
1963 . "$ac_site_file" \
1964 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1965 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1966 as_fn_error $? "failed to load site script $ac_site_file
1967 See 'config.log' for more details" "$LINENO" 5; }
1968 fi
1969 done
1970
1971 if test -r "$cache_file"; then
1972 # Some versions of bash will fail to source /dev/null (special files
1973 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1974 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1976 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1977 case $cache_file in
1978 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1979 *) . "./$cache_file";;
1980 esac
1981 fi
1982 else
1983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1984 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1985 >$cache_file
1986 fi
1987
1988 # Test code for whether the C++ compiler supports C++98 (global declarations)
1989 ac_cxx_conftest_cxx98_globals='
1990 // Does the compiler advertise C++98 conformance?
1991 #if !defined __cplusplus || __cplusplus < 199711L
1992 # error "Compiler does not advertise C++98 conformance"
1993 #endif
1994
1995 // These inclusions are to reject old compilers that
1996 // lack the unsuffixed header files.
1997 #include <cstdlib>
1998 #include <exception>
1999
2000 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2001 extern void assert (int);
2002 namespace std {
2003 extern int strcmp (const char *, const char *);
2004 }
2005
2006 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2007 using std::exception;
2008 using std::strcmp;
2009
2010 namespace {
2011
2012 void test_exception_syntax()
2013 {
2014 try {
2015 throw "test";
2016 } catch (const char *s) {
2017 // Extra parentheses suppress a warning when building autoconf itself,
2018 // due to lint rules shared with more typical C programs.
2019 assert (!(strcmp) (s, "test"));
2020 }
2021 }
2022
2023 template <typename T> struct test_template
2024 {
2025 T const val;
2026 explicit test_template(T t) : val(t) {}
2027 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2028 };
2029
2030 } // anonymous namespace
2031 '
2032
2033 # Test code for whether the C++ compiler supports C++98 (body of main)
2034 ac_cxx_conftest_cxx98_main='
2035 assert (argc);
2036 assert (! argv[0]);
2037 {
2038 test_exception_syntax ();
2039 test_template<double> tt (2.0);
2040 assert (tt.add (4) == 6.0);
2041 assert (true && !false);
2042 }
2043 '
2044
2045 # Test code for whether the C++ compiler supports C++11 (global declarations)
2046 ac_cxx_conftest_cxx11_globals='
2047 // Does the compiler advertise C++ 2011 conformance?
2048 #if !defined __cplusplus || __cplusplus < 201103L
2049 # error "Compiler does not advertise C++11 conformance"
2050 #endif
2051
2052 namespace cxx11test
2053 {
2054 constexpr int get_val() { return 20; }
2055
2056 struct testinit
2057 {
2058 int i;
2059 double d;
2060 };
2061
2062 class delegate
2063 {
2064 public:
2065 delegate(int n) : n(n) {}
2066 delegate(): delegate(2354) {}
2067
2068 virtual int getval() { return this->n; };
2069 protected:
2070 int n;
2071 };
2072
2073 class overridden : public delegate
2074 {
2075 public:
2076 overridden(int n): delegate(n) {}
2077 virtual int getval() override final { return this->n * 2; }
2078 };
2079
2080 class nocopy
2081 {
2082 public:
2083 nocopy(int i): i(i) {}
2084 nocopy() = default;
2085 nocopy(const nocopy&) = delete;
2086 nocopy & operator=(const nocopy&) = delete;
2087 private:
2088 int i;
2089 };
2090
2091 // for testing lambda expressions
2092 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2093 {
2094 return f(v);
2095 }
2096
2097 // for testing variadic templates and trailing return types
2098 template <typename V> auto sum(V first) -> V
2099 {
2100 return first;
2101 }
2102 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2103 {
2104 return first + sum(rest...);
2105 }
2106 }
2107 '
2108
2109 # Test code for whether the C++ compiler supports C++11 (body of main)
2110 ac_cxx_conftest_cxx11_main='
2111 {
2112 // Test auto and decltype
2113 auto a1 = 6538;
2114 auto a2 = 48573953.4;
2115 auto a3 = "String literal";
2116
2117 int total = 0;
2118 for (auto i = a3; *i; ++i) { total += *i; }
2119
2120 decltype(a2) a4 = 34895.034;
2121 }
2122 {
2123 // Test constexpr
2124 short sa[cxx11test::get_val()] = { 0 };
2125 }
2126 {
2127 // Test initializer lists
2128 cxx11test::testinit il = { 4323, 435234.23544 };
2129 }
2130 {
2131 // Test range-based for
2132 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2133 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2134 for (auto &x : array) { x += 23; }
2135 }
2136 {
2137 // Test lambda expressions
2138 using cxx11test::eval;
2139 assert (eval ([](int x) { return x*2; }, 21) == 42);
2140 double d = 2.0;
2141 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2142 assert (d == 5.0);
2143 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2144 assert (d == 5.0);
2145 }
2146 {
2147 // Test use of variadic templates
2148 using cxx11test::sum;
2149 auto a = sum(1);
2150 auto b = sum(1, 2);
2151 auto c = sum(1.0, 2.0, 3.0);
2152 }
2153 {
2154 // Test constructor delegation
2155 cxx11test::delegate d1;
2156 cxx11test::delegate d2();
2157 cxx11test::delegate d3(45);
2158 }
2159 {
2160 // Test override and final
2161 cxx11test::overridden o1(55464);
2162 }
2163 {
2164 // Test nullptr
2165 char *c = nullptr;
2166 }
2167 {
2168 // Test template brackets
2169 test_template<::test_template<int>> v(test_template<int>(12));
2170 }
2171 {
2172 // Unicode literals
2173 char const *utf8 = u8"UTF-8 string \u2500";
2174 char16_t const *utf16 = u"UTF-8 string \u2500";
2175 char32_t const *utf32 = U"UTF-32 string \u2500";
2176 }
2177 '
2178
2179 # Test code for whether the C compiler supports C++11 (complete).
2180 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2181 ${ac_cxx_conftest_cxx11_globals}
2182
2183 int
2184 main (int argc, char **argv)
2185 {
2186 int ok = 0;
2187 ${ac_cxx_conftest_cxx98_main}
2188 ${ac_cxx_conftest_cxx11_main}
2189 return ok;
2190 }
2191 "
2192
2193 # Test code for whether the C compiler supports C++98 (complete).
2194 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2195 int
2196 main (int argc, char **argv)
2197 {
2198 int ok = 0;
2199 ${ac_cxx_conftest_cxx98_main}
2200 return ok;
2201 }
2202 "
2203
2204 as_fn_append ac_header_cxx_list " stdio.h stdio_h HAVE_STDIO_H"
2205 as_fn_append ac_header_cxx_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2206 as_fn_append ac_header_cxx_list " string.h string_h HAVE_STRING_H"
2207 as_fn_append ac_header_cxx_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2208 as_fn_append ac_header_cxx_list " stdint.h stdint_h HAVE_STDINT_H"
2209 as_fn_append ac_header_cxx_list " strings.h strings_h HAVE_STRINGS_H"
2210 as_fn_append ac_header_cxx_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2211 as_fn_append ac_header_cxx_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2212 as_fn_append ac_header_cxx_list " unistd.h unistd_h HAVE_UNISTD_H"
2213 # Test code for whether the C compiler supports C89 (global declarations)
2214 ac_c_conftest_c89_globals='
2215 /* Does the compiler advertise C89 conformance?
2216 Do not test the value of __STDC__, because some compilers set it to 0
2217 while being otherwise adequately conformant. */
2218 #if !defined __STDC__
2219 # error "Compiler does not advertise C89 conformance"
2220 #endif
2221
2222 #include <stddef.h>
2223 #include <stdarg.h>
2224 struct stat;
2225 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2226 struct buf { int x; };
2227 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2228 static char *e (char **p, int i)
2229 {
2230 return p[i];
2231 }
2232 static char *f (char * (*g) (char **, int), char **p, ...)
2233 {
2234 char *s;
2235 va_list v;
2236 va_start (v,p);
2237 s = g (p, va_arg (v,int));
2238 va_end (v);
2239 return s;
2240 }
2241
2242 /* C89 style stringification. */
2243 #define noexpand_stringify(a) #a
2244 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2245
2246 /* C89 style token pasting. Exercises some of the corner cases that
2247 e.g. old MSVC gets wrong, but not very hard. */
2248 #define noexpand_concat(a,b) a##b
2249 #define expand_concat(a,b) noexpand_concat(a,b)
2250 extern int vA;
2251 extern int vbee;
2252 #define aye A
2253 #define bee B
2254 int *pvA = &expand_concat(v,aye);
2255 int *pvbee = &noexpand_concat(v,bee);
2256
2257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2258 function prototypes and stuff, but not \xHH hex character constants.
2259 These do not provoke an error unfortunately, instead are silently treated
2260 as an "x". The following induces an error, until -std is added to get
2261 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2262 array size at least. It is necessary to write \x00 == 0 to get something
2263 that is true only with -std. */
2264 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2265
2266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2267 inside strings and character constants. */
2268 #define FOO(x) '\''x'\''
2269 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2270
2271 int test (int i, double x);
2272 struct s1 {int (*f) (int a);};
2273 struct s2 {int (*f) (double a);};
2274 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2275 int, int);'
2276
2277 # Test code for whether the C compiler supports C89 (body of main).
2278 ac_c_conftest_c89_main='
2279 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2280 '
2281
2282 # Test code for whether the C compiler supports C99 (global declarations)
2283 ac_c_conftest_c99_globals='
2284 /* Does the compiler advertise C99 conformance? */
2285 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2286 # error "Compiler does not advertise C99 conformance"
2287 #endif
2288
2289 // See if C++-style comments work.
2290
2291 #include <stdbool.h>
2292 extern int puts (const char *);
2293 extern int printf (const char *, ...);
2294 extern int dprintf (int, const char *, ...);
2295 extern void *malloc (size_t);
2296 extern void free (void *);
2297
2298 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2299 // dprintf is used instead of fprintf to avoid needing to declare
2300 // FILE and stderr.
2301 #define debug(...) dprintf (2, __VA_ARGS__)
2302 #define showlist(...) puts (#__VA_ARGS__)
2303 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2304 static void
2305 test_varargs_macros (void)
2306 {
2307 int x = 1234;
2308 int y = 5678;
2309 debug ("Flag");
2310 debug ("X = %d\n", x);
2311 showlist (The first, second, and third items.);
2312 report (x>y, "x is %d but y is %d", x, y);
2313 }
2314
2315 // Check long long types.
2316 #define BIG64 18446744073709551615ull
2317 #define BIG32 4294967295ul
2318 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2319 #if !BIG_OK
2320 #error "your preprocessor is broken"
2321 #endif
2322 #if BIG_OK
2323 #else
2324 #error "your preprocessor is broken"
2325 #endif
2326 static long long int bignum = -9223372036854775807LL;
2327 static unsigned long long int ubignum = BIG64;
2328
2329 struct incomplete_array
2330 {
2331 int datasize;
2332 double data[];
2333 };
2334
2335 struct named_init {
2336 int number;
2337 const wchar_t *name;
2338 double average;
2339 };
2340
2341 typedef const char *ccp;
2342
2343 static inline int
2344 test_restrict (ccp restrict text)
2345 {
2346 // Iterate through items via the restricted pointer.
2347 // Also check for declarations in for loops.
2348 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2349 continue;
2350 return 0;
2351 }
2352
2353 // Check varargs and va_copy.
2354 static bool
2355 test_varargs (const char *format, ...)
2356 {
2357 va_list args;
2358 va_start (args, format);
2359 va_list args_copy;
2360 va_copy (args_copy, args);
2361
2362 const char *str = "";
2363 int number = 0;
2364 float fnumber = 0;
2365
2366 while (*format)
2367 {
2368 switch (*format++)
2369 {
2370 case '\''s'\'': // string
2371 str = va_arg (args_copy, const char *);
2372 break;
2373 case '\''d'\'': // int
2374 number = va_arg (args_copy, int);
2375 break;
2376 case '\''f'\'': // float
2377 fnumber = va_arg (args_copy, double);
2378 break;
2379 default:
2380 break;
2381 }
2382 }
2383 va_end (args_copy);
2384 va_end (args);
2385
2386 return *str && number && fnumber;
2387 }
2388 '
2389
2390 # Test code for whether the C compiler supports C99 (body of main).
2391 ac_c_conftest_c99_main='
2392 // Check bool.
2393 _Bool success = false;
2394 success |= (argc != 0);
2395
2396 // Check restrict.
2397 if (test_restrict ("String literal") == 0)
2398 success = true;
2399 char *restrict newvar = "Another string";
2400
2401 // Check varargs.
2402 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2403 test_varargs_macros ();
2404
2405 // Check flexible array members.
2406 struct incomplete_array *ia =
2407 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2408 ia->datasize = 10;
2409 for (int i = 0; i < ia->datasize; ++i)
2410 ia->data[i] = i * 1.234;
2411 // Work around memory leak warnings.
2412 free (ia);
2413
2414 // Check named initializers.
2415 struct named_init ni = {
2416 .number = 34,
2417 .name = L"Test wide string",
2418 .average = 543.34343,
2419 };
2420
2421 ni.number = 58;
2422
2423 int dynamic_array[ni.number];
2424 dynamic_array[0] = argv[0][0];
2425 dynamic_array[ni.number - 1] = 543;
2426
2427 // work around unused variable warnings
2428 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2429 || dynamic_array[ni.number - 1] != 543);
2430 '
2431
2432 # Test code for whether the C compiler supports C11 (global declarations)
2433 ac_c_conftest_c11_globals='
2434 /* Does the compiler advertise C11 conformance? */
2435 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2436 # error "Compiler does not advertise C11 conformance"
2437 #endif
2438
2439 // Check _Alignas.
2440 char _Alignas (double) aligned_as_double;
2441 char _Alignas (0) no_special_alignment;
2442 extern char aligned_as_int;
2443 char _Alignas (0) _Alignas (int) aligned_as_int;
2444
2445 // Check _Alignof.
2446 enum
2447 {
2448 int_alignment = _Alignof (int),
2449 int_array_alignment = _Alignof (int[100]),
2450 char_alignment = _Alignof (char)
2451 };
2452 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2453
2454 // Check _Noreturn.
2455 int _Noreturn does_not_return (void) { for (;;) continue; }
2456
2457 // Check _Static_assert.
2458 struct test_static_assert
2459 {
2460 int x;
2461 _Static_assert (sizeof (int) <= sizeof (long int),
2462 "_Static_assert does not work in struct");
2463 long int y;
2464 };
2465
2466 // Check UTF-8 literals.
2467 #define u8 syntax error!
2468 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2469
2470 // Check duplicate typedefs.
2471 typedef long *long_ptr;
2472 typedef long int *long_ptr;
2473 typedef long_ptr long_ptr;
2474
2475 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2476 struct anonymous
2477 {
2478 union {
2479 struct { int i; int j; };
2480 struct { int k; long int l; } w;
2481 };
2482 int m;
2483 } v1;
2484 '
2485
2486 # Test code for whether the C compiler supports C11 (body of main).
2487 ac_c_conftest_c11_main='
2488 _Static_assert ((offsetof (struct anonymous, i)
2489 == offsetof (struct anonymous, w.k)),
2490 "Anonymous union alignment botch");
2491 v1.i = 2;
2492 v1.w.k = 5;
2493 ok |= v1.i != 5;
2494 '
2495
2496 # Test code for whether the C compiler supports C11 (complete).
2497 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2498 ${ac_c_conftest_c99_globals}
2499 ${ac_c_conftest_c11_globals}
2500
2501 int
2502 main (int argc, char **argv)
2503 {
2504 int ok = 0;
2505 ${ac_c_conftest_c89_main}
2506 ${ac_c_conftest_c99_main}
2507 ${ac_c_conftest_c11_main}
2508 return ok;
2509 }
2510 "
2511
2512 # Test code for whether the C compiler supports C99 (complete).
2513 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2514 ${ac_c_conftest_c99_globals}
2515
2516 int
2517 main (int argc, char **argv)
2518 {
2519 int ok = 0;
2520 ${ac_c_conftest_c89_main}
2521 ${ac_c_conftest_c99_main}
2522 return ok;
2523 }
2524 "
2525
2526 # Test code for whether the C compiler supports C89 (complete).
2527 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2528
2529 int
2530 main (int argc, char **argv)
2531 {
2532 int ok = 0;
2533 ${ac_c_conftest_c89_main}
2534 return ok;
2535 }
2536 "
2537
2538 # Check that the precious variables saved in the cache have kept the same
2539 # value.
2540 ac_cache_corrupted=false
2541 for ac_var in $ac_precious_vars; do
2542 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2543 eval ac_new_set=\$ac_env_${ac_var}_set
2544 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2545 eval ac_new_val=\$ac_env_${ac_var}_value
2546 case $ac_old_set,$ac_new_set in
2547 set,)
2548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2549 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2550 ac_cache_corrupted=: ;;
2551 ,set)
2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2553 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2554 ac_cache_corrupted=: ;;
2555 ,);;
2556 *)
2557 if test "x$ac_old_val" != "x$ac_new_val"; then
2558 # differences in whitespace do not lead to failure.
2559 ac_old_val_w=`echo x $ac_old_val`
2560 ac_new_val_w=`echo x $ac_new_val`
2561 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2563 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2564 ac_cache_corrupted=:
2565 else
2566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2567 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2568 eval $ac_var=\$ac_old_val
2569 fi
2570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2571 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2573 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2574 fi;;
2575 esac
2576 # Pass precious variables to config.status.
2577 if test "$ac_new_set" = set; then
2578 case $ac_new_val in
2579 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2580 *) ac_arg=$ac_var=$ac_new_val ;;
2581 esac
2582 case " $ac_configure_args " in
2583 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2584 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2585 esac
2586 fi
2587 done
2588 if $ac_cache_corrupted; then
2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2590 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2592 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2593 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2594 and start over" "$LINENO" 5
2595 fi
2596 ## -------------------- ##
2597 ## Main body of script. ##
2598 ## -------------------- ##
2599
2600 ac_ext=c
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605
2606
2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${PACKAGE_NAME}: ${PACKAGE_VERSION}" >&5
2608 printf "%s\n" "$as_me: ${PACKAGE_NAME}: ${PACKAGE_VERSION}" >&6;}
2609
2610 : ${R_HOME=`R RHOME`}
2611 if test -z "${R_HOME}"; then
2612 echo "could not determine R_HOME"
2613 exit 1
2614 fi
2615 CC=`"${R_HOME}/bin/R" CMD config CC`
2616 CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
2617 CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
2618 LDFLAGS=`"${R_HOME}/bin/R" CMD config LDFLAGS`
2619 CXX=`"${R_HOME}/bin/R" CMD config CXX`
2620 CXXFLAGS=`"${R_HOME}/bin/R" CMD config CXXFLAGS`
2621 ac_ext=cpp
2622 ac_cpp='$CXXCPP $CPPFLAGS'
2623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2626
2627
2628 STD_VER=`$CXX -dM -E -x c++ /dev/null | grep -F __cplusplus | sed 's/.* //' | sed 's/L//'`
2629 printf %s "checking for default C++ standard... $STD_VER" >&6
2630 if test $STD_VER -lt 201703 ; then
2631 printf %s ", setting 201703" >&6
2632 CXX_STD="CXX_STD = CXX17"
2633 fi; echo ""
2634
2635
2636
2637
2638
2639
2640
2641 ac_ext=cpp
2642 ac_cpp='$CXXCPP $CPPFLAGS'
2643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2646 if test -z "$CXX"; then
2647 if test -n "$CCC"; then
2648 CXX=$CCC
2649 else
2650 if test -n "$ac_tool_prefix"; then
2651 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
2652 do
2653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 printf %s "checking for $ac_word... " >&6; }
2657 if test ${ac_cv_prog_CXX+y}
2658 then :
2659 printf %s "(cached) " >&6
2660 else case e in #(
2661 e) if test -n "$CXX"; then
2662 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 case $as_dir in #(((
2669 '') as_dir=./ ;;
2670 */) ;;
2671 *) as_dir=$as_dir/ ;;
2672 esac
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2675 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679 done
2680 done
2681 IFS=$as_save_IFS
2682
2683 fi ;;
2684 esac
2685 fi
2686 CXX=$ac_cv_prog_CXX
2687 if test -n "$CXX"; then
2688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2689 printf "%s\n" "$CXX" >&6; }
2690 else
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 printf "%s\n" "no" >&6; }
2693 fi
2694
2695
2696 test -n "$CXX" && break
2697 done
2698 fi
2699 if test -z "$CXX"; then
2700 ac_ct_CXX=$CXX
2701 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
2702 do
2703 # Extract the first word of "$ac_prog", so it can be a program name with args.
2704 set dummy $ac_prog; ac_word=$2
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 printf %s "checking for $ac_word... " >&6; }
2707 if test ${ac_cv_prog_ac_ct_CXX+y}
2708 then :
2709 printf %s "(cached) " >&6
2710 else case e in #(
2711 e) if test -n "$ac_ct_CXX"; then
2712 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717 IFS=$as_save_IFS
2718 case $as_dir in #(((
2719 '') as_dir=./ ;;
2720 */) ;;
2721 *) as_dir=$as_dir/ ;;
2722 esac
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2725 ac_cv_prog_ac_ct_CXX="$ac_prog"
2726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2727 break 2
2728 fi
2729 done
2730 done
2731 IFS=$as_save_IFS
2732
2733 fi ;;
2734 esac
2735 fi
2736 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2737 if test -n "$ac_ct_CXX"; then
2738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2739 printf "%s\n" "$ac_ct_CXX" >&6; }
2740 else
2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 printf "%s\n" "no" >&6; }
2743 fi
2744
2745
2746 test -n "$ac_ct_CXX" && break
2747 done
2748
2749 if test "x$ac_ct_CXX" = x; then
2750 CXX="g++"
2751 else
2752 case $cross_compiling:$ac_tool_warned in
2753 yes:)
2754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2755 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2756 ac_tool_warned=yes ;;
2757 esac
2758 CXX=$ac_ct_CXX
2759 fi
2760 fi
2761
2762 fi
2763 fi
2764 # Provide some information about the compiler.
2765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2766 set X $ac_compile
2767 ac_compiler=$2
2768 for ac_option in --version -v -V -qversion; do
2769 { { ac_try="$ac_compiler $ac_option >&5"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775 printf "%s\n" "$ac_try_echo"; } >&5
2776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2777 ac_status=$?
2778 if test -s conftest.err; then
2779 sed '10a\
2780 ... rest of stderr output deleted ...
2781 10q' conftest.err >conftest.er1
2782 cat conftest.er1 >&5
2783 fi
2784 rm -f conftest.er1 conftest.err
2785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2786 test $ac_status = 0; }
2787 done
2788
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h. */
2791
2792 int
2793 main (void)
2794 {
2795
2796 ;
2797 return 0;
2798 }
2799 _ACEOF
2800 ac_clean_files_save=$ac_clean_files
2801 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2802 # Try to create an executable without -o first, disregard a.out.
2803 # It will help us diagnose broken compilers, and finding out an intuition
2804 # of exeext.
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2806 printf %s "checking whether the C++ compiler works... " >&6; }
2807 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2808
2809 # The possible output files:
2810 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2811
2812 ac_rmfiles=
2813 for ac_file in $ac_files
2814 do
2815 case $ac_file in
2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2817 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818 esac
2819 done
2820 rm -f $ac_rmfiles
2821
2822 if { { ac_try="$ac_link_default"
2823 case "(($ac_try" in
2824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2825 *) ac_try_echo=$ac_try;;
2826 esac
2827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2828 printf "%s\n" "$ac_try_echo"; } >&5
2829 (eval "$ac_link_default") 2>&5
2830 ac_status=$?
2831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2832 test $ac_status = 0; }
2833 then :
2834 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
2835 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
2836 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2837 # so that the user can short-circuit this test for compilers unknown to
2838 # Autoconf.
2839 for ac_file in $ac_files ''
2840 do
2841 test -f "$ac_file" || continue
2842 case $ac_file in
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2844 ;;
2845 [ab].out )
2846 # We found the default executable, but exeext='' is most
2847 # certainly right.
2848 break;;
2849 *.* )
2850 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2851 then :; else
2852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2853 fi
2854 # We set ac_cv_exeext here because the later test for it is not
2855 # safe: cross compilers may not add the suffix if given an '-o'
2856 # argument, so we may need to know it at that point already.
2857 # Even if this section looks crufty: it has the advantage of
2858 # actually working.
2859 break;;
2860 * )
2861 break;;
2862 esac
2863 done
2864 test "$ac_cv_exeext" = no && ac_cv_exeext=
2865
2866 else case e in #(
2867 e) ac_file='' ;;
2868 esac
2869 fi
2870 if test -z "$ac_file"
2871 then :
2872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 printf "%s\n" "no" >&6; }
2874 printf "%s\n" "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2876
2877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2878 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2879 as_fn_error 77 "C++ compiler cannot create executables
2880 See 'config.log' for more details" "$LINENO" 5; }
2881 else case e in #(
2882 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2883 printf "%s\n" "yes" >&6; } ;;
2884 esac
2885 fi
2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2887 printf %s "checking for C++ compiler default output file name... " >&6; }
2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2889 printf "%s\n" "$ac_file" >&6; }
2890 ac_exeext=$ac_cv_exeext
2891
2892 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2893 ac_clean_files=$ac_clean_files_save
2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2895 printf %s "checking for suffix of executables... " >&6; }
2896 if { { ac_try="$ac_link"
2897 case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900 esac
2901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2902 printf "%s\n" "$ac_try_echo"; } >&5
2903 (eval "$ac_link") 2>&5
2904 ac_status=$?
2905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2906 test $ac_status = 0; }
2907 then :
2908 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
2909 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
2910 # work properly (i.e., refer to 'conftest.exe'), while it won't with
2911 # 'rm'.
2912 for ac_file in conftest.exe conftest conftest.*; do
2913 test -f "$ac_file" || continue
2914 case $ac_file in
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2917 break;;
2918 * ) break;;
2919 esac
2920 done
2921 else case e in #(
2922 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2923 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2924 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2925 See 'config.log' for more details" "$LINENO" 5; } ;;
2926 esac
2927 fi
2928 rm -f conftest conftest$ac_cv_exeext
2929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2930 printf "%s\n" "$ac_cv_exeext" >&6; }
2931
2932 rm -f conftest.$ac_ext
2933 EXEEXT=$ac_cv_exeext
2934 ac_exeext=$EXEEXT
2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h. */
2937 #include <stdio.h>
2938 int
2939 main (void)
2940 {
2941 FILE *f = fopen ("conftest.out", "w");
2942 if (!f)
2943 return 1;
2944 return ferror (f) || fclose (f) != 0;
2945
2946 ;
2947 return 0;
2948 }
2949 _ACEOF
2950 ac_clean_files="$ac_clean_files conftest.out"
2951 # Check that the compiler produces executables we can run. If not, either
2952 # the compiler is broken, or we cross compile.
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2954 printf %s "checking whether we are cross compiling... " >&6; }
2955 if test "$cross_compiling" != yes; then
2956 { { ac_try="$ac_link"
2957 case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2960 esac
2961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962 printf "%s\n" "$ac_try_echo"; } >&5
2963 (eval "$ac_link") 2>&5
2964 ac_status=$?
2965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2966 test $ac_status = 0; }
2967 if { ac_try='./conftest$ac_cv_exeext'
2968 { { case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971 esac
2972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2973 printf "%s\n" "$ac_try_echo"; } >&5
2974 (eval "$ac_try") 2>&5
2975 ac_status=$?
2976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2977 test $ac_status = 0; }; }; then
2978 cross_compiling=no
2979 else
2980 if test "$cross_compiling" = maybe; then
2981 cross_compiling=yes
2982 else
2983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2984 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2985 as_fn_error 77 "cannot run C++ compiled programs.
2986 If you meant to cross compile, use '--host'.
2987 See 'config.log' for more details" "$LINENO" 5; }
2988 fi
2989 fi
2990 fi
2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2992 printf "%s\n" "$cross_compiling" >&6; }
2993
2994 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
2995 conftest.o conftest.obj conftest.out
2996 ac_clean_files=$ac_clean_files_save
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2998 printf %s "checking for suffix of object files... " >&6; }
2999 if test ${ac_cv_objext+y}
3000 then :
3001 printf %s "(cached) " >&6
3002 else case e in #(
3003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004 /* end confdefs.h. */
3005
3006 int
3007 main (void)
3008 {
3009
3010 ;
3011 return 0;
3012 }
3013 _ACEOF
3014 rm -f conftest.o conftest.obj
3015 if { { ac_try="$ac_compile"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021 printf "%s\n" "$ac_try_echo"; } >&5
3022 (eval "$ac_compile") 2>&5
3023 ac_status=$?
3024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3025 test $ac_status = 0; }
3026 then :
3027 for ac_file in conftest.o conftest.obj conftest.*; do
3028 test -f "$ac_file" || continue;
3029 case $ac_file in
3030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3032 break;;
3033 esac
3034 done
3035 else case e in #(
3036 e) printf "%s\n" "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3038
3039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3040 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3041 as_fn_error $? "cannot compute suffix of object files: cannot compile
3042 See 'config.log' for more details" "$LINENO" 5; } ;;
3043 esac
3044 fi
3045 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3046 esac
3047 fi
3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3049 printf "%s\n" "$ac_cv_objext" >&6; }
3050 OBJEXT=$ac_cv_objext
3051 ac_objext=$OBJEXT
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
3053 printf %s "checking whether the compiler supports GNU C++... " >&6; }
3054 if test ${ac_cv_cxx_compiler_gnu+y}
3055 then :
3056 printf %s "(cached) " >&6
3057 else case e in #(
3058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3060
3061 int
3062 main (void)
3063 {
3064 #ifndef __GNUC__
3065 choke me
3066 #endif
3067
3068 ;
3069 return 0;
3070 }
3071 _ACEOF
3072 if ac_fn_cxx_try_compile "$LINENO"
3073 then :
3074 ac_compiler_gnu=yes
3075 else case e in #(
3076 e) ac_compiler_gnu=no ;;
3077 esac
3078 fi
3079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3080 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3081 ;;
3082 esac
3083 fi
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3085 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
3086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3087
3088 if test $ac_compiler_gnu = yes; then
3089 GXX=yes
3090 else
3091 GXX=
3092 fi
3093 ac_test_CXXFLAGS=${CXXFLAGS+y}
3094 ac_save_CXXFLAGS=$CXXFLAGS
3095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3096 printf %s "checking whether $CXX accepts -g... " >&6; }
3097 if test ${ac_cv_prog_cxx_g+y}
3098 then :
3099 printf %s "(cached) " >&6
3100 else case e in #(
3101 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3102 ac_cxx_werror_flag=yes
3103 ac_cv_prog_cxx_g=no
3104 CXXFLAGS="-g"
3105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106 /* end confdefs.h. */
3107
3108 int
3109 main (void)
3110 {
3111
3112 ;
3113 return 0;
3114 }
3115 _ACEOF
3116 if ac_fn_cxx_try_compile "$LINENO"
3117 then :
3118 ac_cv_prog_cxx_g=yes
3119 else case e in #(
3120 e) CXXFLAGS=""
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3123
3124 int
3125 main (void)
3126 {
3127
3128 ;
3129 return 0;
3130 }
3131 _ACEOF
3132 if ac_fn_cxx_try_compile "$LINENO"
3133 then :
3134
3135 else case e in #(
3136 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3137 CXXFLAGS="-g"
3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h. */
3140
3141 int
3142 main (void)
3143 {
3144
3145 ;
3146 return 0;
3147 }
3148 _ACEOF
3149 if ac_fn_cxx_try_compile "$LINENO"
3150 then :
3151 ac_cv_prog_cxx_g=yes
3152 fi
3153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3154 esac
3155 fi
3156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3157 esac
3158 fi
3159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3160 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
3161 esac
3162 fi
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3164 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
3165 if test $ac_test_CXXFLAGS; then
3166 CXXFLAGS=$ac_save_CXXFLAGS
3167 elif test $ac_cv_prog_cxx_g = yes; then
3168 if test "$GXX" = yes; then
3169 CXXFLAGS="-g -O2"
3170 else
3171 CXXFLAGS="-g"
3172 fi
3173 else
3174 if test "$GXX" = yes; then
3175 CXXFLAGS="-O2"
3176 else
3177 CXXFLAGS=
3178 fi
3179 fi
3180 ac_prog_cxx_stdcxx=no
3181 if test x$ac_prog_cxx_stdcxx = xno
3182 then :
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
3184 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
3185 if test ${ac_cv_prog_cxx_cxx11+y}
3186 then :
3187 printf %s "(cached) " >&6
3188 else case e in #(
3189 e) ac_cv_prog_cxx_cxx11=no
3190 ac_save_CXX=$CXX
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193 $ac_cxx_conftest_cxx11_program
3194 _ACEOF
3195 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
3196 do
3197 CXX="$ac_save_CXX $ac_arg"
3198 if ac_fn_cxx_try_compile "$LINENO"
3199 then :
3200 ac_cv_prog_cxx_cxx11=$ac_arg
3201 fi
3202 rm -f core conftest.err conftest.$ac_objext conftest.beam
3203 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
3204 done
3205 rm -f conftest.$ac_ext
3206 CXX=$ac_save_CXX ;;
3207 esac
3208 fi
3209
3210 if test "x$ac_cv_prog_cxx_cxx11" = xno
3211 then :
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3213 printf "%s\n" "unsupported" >&6; }
3214 else case e in #(
3215 e) if test "x$ac_cv_prog_cxx_cxx11" = x
3216 then :
3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3218 printf "%s\n" "none needed" >&6; }
3219 else case e in #(
3220 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
3221 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
3222 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
3223 esac
3224 fi
3225 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
3226 ac_prog_cxx_stdcxx=cxx11 ;;
3227 esac
3228 fi
3229 fi
3230 if test x$ac_prog_cxx_stdcxx = xno
3231 then :
3232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
3233 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
3234 if test ${ac_cv_prog_cxx_cxx98+y}
3235 then :
3236 printf %s "(cached) " >&6
3237 else case e in #(
3238 e) ac_cv_prog_cxx_cxx98=no
3239 ac_save_CXX=$CXX
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3242 $ac_cxx_conftest_cxx98_program
3243 _ACEOF
3244 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
3245 do
3246 CXX="$ac_save_CXX $ac_arg"
3247 if ac_fn_cxx_try_compile "$LINENO"
3248 then :
3249 ac_cv_prog_cxx_cxx98=$ac_arg
3250 fi
3251 rm -f core conftest.err conftest.$ac_objext conftest.beam
3252 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
3253 done
3254 rm -f conftest.$ac_ext
3255 CXX=$ac_save_CXX ;;
3256 esac
3257 fi
3258
3259 if test "x$ac_cv_prog_cxx_cxx98" = xno
3260 then :
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3262 printf "%s\n" "unsupported" >&6; }
3263 else case e in #(
3264 e) if test "x$ac_cv_prog_cxx_cxx98" = x
3265 then :
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3267 printf "%s\n" "none needed" >&6; }
3268 else case e in #(
3269 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
3270 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
3271 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
3272 esac
3273 fi
3274 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
3275 ac_prog_cxx_stdcxx=cxx98 ;;
3276 esac
3277 fi
3278 fi
3279
3280 ac_ext=cpp
3281 ac_cpp='$CXXCPP $CPPFLAGS'
3282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3285
3286
3287 ac_header= ac_cache=
3288 for ac_item in $ac_header_cxx_list
3289 do
3290 if test $ac_cache; then
3291 ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3292 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3293 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3294 fi
3295 ac_header= ac_cache=
3296 elif test $ac_header; then
3297 ac_cache=$ac_item
3298 else
3299 ac_header=$ac_item
3300 fi
3301 done
3302
3303
3304
3305
3306
3307
3308
3309
3310 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3311 then :
3312
3313 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3314
3315 fi
3316 ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
3317 if test "x$ac_cv_type__Bool" = xyes
3318 then :
3319
3320 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
3321
3322
3323 fi
3324
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
3326 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
3327 if test ${ac_cv_header_stdbool_h+y}
3328 then :
3329 printf %s "(cached) " >&6
3330 else case e in #(
3331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3333 #include <stdbool.h>
3334
3335 /* "true" and "false" should be usable in #if expressions and
3336 integer constant expressions, and "bool" should be a valid
3337 type name.
3338
3339 Although C99 requires bool, true, and false to be macros,
3340 C23 and C++11 overrule that, so do not test for that.
3341 Although C99 requires __bool_true_false_are_defined and
3342 _Bool, C23 says they are obsolescent, so do not require
3343 them. */
3344
3345 #if !true
3346 #error "'true' is not true"
3347 #endif
3348 #if true != 1
3349 #error "'true' is not equal to 1"
3350 #endif
3351 char b[true == 1 ? 1 : -1];
3352 char c[true];
3353
3354 #if false
3355 #error "'false' is not false"
3356 #endif
3357 #if false != 0
3358 #error "'false' is not equal to 0"
3359 #endif
3360 char d[false == 0 ? 1 : -1];
3361
3362 enum { e = false, f = true, g = false * true, h = true * 256 };
3363
3364 char i[(bool) 0.5 == true ? 1 : -1];
3365 char j[(bool) 0.0 == false ? 1 : -1];
3366 char k[sizeof (bool) > 0 ? 1 : -1];
3367
3368 struct sb { bool s: 1; bool t; } s;
3369 char l[sizeof s.t > 0 ? 1 : -1];
3370
3371 /* The following fails for
3372 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
3373 bool m[h];
3374 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
3375 char o[-1 - (bool) 0 < 0 ? 1 : -1];
3376 /* Catch a bug in an HP-UX C compiler. See
3377 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
3378 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
3379 */
3380 bool p = true;
3381 bool *pp = &p;
3382
3383 int
3384 main (void)
3385 {
3386
3387 bool ps = &s;
3388 *pp |= p;
3389 *pp |= ! p;
3390
3391 /* Refer to every declared value, so they cannot be
3392 discarded as unused. */
3393 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
3394 + !l + !m + !n + !o + !p + !pp + !ps);
3395
3396 ;
3397 return 0;
3398 }
3399 _ACEOF
3400 if ac_fn_cxx_try_compile "$LINENO"
3401 then :
3402 ac_cv_header_stdbool_h=yes
3403 else case e in #(
3404 e) ac_cv_header_stdbool_h=no ;;
3405 esac
3406 fi
3407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3408 esac
3409 fi
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
3411 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
3412
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
3414 printf %s "checking for error_at_line... " >&6; }
3415 if test ${ac_cv_lib_error_at_line+y}
3416 then :
3417 printf %s "(cached) " >&6
3418 else case e in #(
3419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3421 #include <error.h>
3422 int
3423 main (void)
3424 {
3425 error_at_line (0, 0, "", 0, "an error occurred");
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_cxx_try_link "$LINENO"
3431 then :
3432 ac_cv_lib_error_at_line=yes
3433 else case e in #(
3434 e) ac_cv_lib_error_at_line=no ;;
3435 esac
3436 fi
3437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
3438 conftest$ac_exeext conftest.$ac_ext ;;
3439 esac
3440 fi
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
3442 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
3443 if test $ac_cv_lib_error_at_line = no; then
3444 case " $LIBOBJS " in
3445 *" error.$ac_objext "* ) ;;
3446 *) LIBOBJS="$LIBOBJS error.$ac_objext"
3447 ;;
3448 esac
3449
3450 fi
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462 ac_ext=c
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 if test -n "$ac_tool_prefix"; then
3468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 printf %s "checking for $ac_word... " >&6; }
3472 if test ${ac_cv_prog_CC+y}
3473 then :
3474 printf %s "(cached) " >&6
3475 else case e in #(
3476 e) if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3481 do
3482 IFS=$as_save_IFS
3483 case $as_dir in #(((
3484 '') as_dir=./ ;;
3485 */) ;;
3486 *) as_dir=$as_dir/ ;;
3487 esac
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3490 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494 done
3495 done
3496 IFS=$as_save_IFS
3497
3498 fi ;;
3499 esac
3500 fi
3501 CC=$ac_cv_prog_CC
3502 if test -n "$CC"; then
3503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504 printf "%s\n" "$CC" >&6; }
3505 else
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 printf "%s\n" "no" >&6; }
3508 fi
3509
3510
3511 fi
3512 if test -z "$ac_cv_prog_CC"; then
3513 ac_ct_CC=$CC
3514 # Extract the first word of "gcc", so it can be a program name with args.
3515 set dummy gcc; ac_word=$2
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 printf %s "checking for $ac_word... " >&6; }
3518 if test ${ac_cv_prog_ac_ct_CC+y}
3519 then :
3520 printf %s "(cached) " >&6
3521 else case e in #(
3522 e) if test -n "$ac_ct_CC"; then
3523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528 IFS=$as_save_IFS
3529 case $as_dir in #(((
3530 '') as_dir=./ ;;
3531 */) ;;
3532 *) as_dir=$as_dir/ ;;
3533 esac
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_ac_ct_CC="gcc"
3537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540 done
3541 done
3542 IFS=$as_save_IFS
3543
3544 fi ;;
3545 esac
3546 fi
3547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3548 if test -n "$ac_ct_CC"; then
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3550 printf "%s\n" "$ac_ct_CC" >&6; }
3551 else
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 printf "%s\n" "no" >&6; }
3554 fi
3555
3556 if test "x$ac_ct_CC" = x; then
3557 CC=""
3558 else
3559 case $cross_compiling:$ac_tool_warned in
3560 yes:)
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3562 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3563 ac_tool_warned=yes ;;
3564 esac
3565 CC=$ac_ct_CC
3566 fi
3567 else
3568 CC="$ac_cv_prog_CC"
3569 fi
3570
3571 if test -z "$CC"; then
3572 if test -n "$ac_tool_prefix"; then
3573 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3574 set dummy ${ac_tool_prefix}cc; ac_word=$2
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 printf %s "checking for $ac_word... " >&6; }
3577 if test ${ac_cv_prog_CC+y}
3578 then :
3579 printf %s "(cached) " >&6
3580 else case e in #(
3581 e) if test -n "$CC"; then
3582 ac_cv_prog_CC="$CC" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587 IFS=$as_save_IFS
3588 case $as_dir in #(((
3589 '') as_dir=./ ;;
3590 */) ;;
3591 *) as_dir=$as_dir/ ;;
3592 esac
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3595 ac_cv_prog_CC="${ac_tool_prefix}cc"
3596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3597 break 2
3598 fi
3599 done
3600 done
3601 IFS=$as_save_IFS
3602
3603 fi ;;
3604 esac
3605 fi
3606 CC=$ac_cv_prog_CC
3607 if test -n "$CC"; then
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3609 printf "%s\n" "$CC" >&6; }
3610 else
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3612 printf "%s\n" "no" >&6; }
3613 fi
3614
3615
3616 fi
3617 fi
3618 if test -z "$CC"; then
3619 # Extract the first word of "cc", so it can be a program name with args.
3620 set dummy cc; ac_word=$2
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3622 printf %s "checking for $ac_word... " >&6; }
3623 if test ${ac_cv_prog_CC+y}
3624 then :
3625 printf %s "(cached) " >&6
3626 else case e in #(
3627 e) if test -n "$CC"; then
3628 ac_cv_prog_CC="$CC" # Let the user override the test.
3629 else
3630 ac_prog_rejected=no
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3633 do
3634 IFS=$as_save_IFS
3635 case $as_dir in #(((
3636 '') as_dir=./ ;;
3637 */) ;;
3638 *) as_dir=$as_dir/ ;;
3639 esac
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3642 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3643 ac_prog_rejected=yes
3644 continue
3645 fi
3646 ac_cv_prog_CC="cc"
3647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650 done
3651 done
3652 IFS=$as_save_IFS
3653
3654 if test $ac_prog_rejected = yes; then
3655 # We found a bogon in the path, so make sure we never use it.
3656 set dummy $ac_cv_prog_CC
3657 shift
3658 if test $# != 0; then
3659 # We chose a different compiler from the bogus one.
3660 # However, it has the same basename, so the bogon will be chosen
3661 # first if we set CC to just the basename; use the full file name.
3662 shift
3663 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3664 fi
3665 fi
3666 fi ;;
3667 esac
3668 fi
3669 CC=$ac_cv_prog_CC
3670 if test -n "$CC"; then
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3672 printf "%s\n" "$CC" >&6; }
3673 else
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 printf "%s\n" "no" >&6; }
3676 fi
3677
3678
3679 fi
3680 if test -z "$CC"; then
3681 if test -n "$ac_tool_prefix"; then
3682 for ac_prog in cl.exe
3683 do
3684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 printf %s "checking for $ac_word... " >&6; }
3688 if test ${ac_cv_prog_CC+y}
3689 then :
3690 printf %s "(cached) " >&6
3691 else case e in #(
3692 e) if test -n "$CC"; then
3693 ac_cv_prog_CC="$CC" # Let the user override the test.
3694 else
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698 IFS=$as_save_IFS
3699 case $as_dir in #(((
3700 '') as_dir=./ ;;
3701 */) ;;
3702 *) as_dir=$as_dir/ ;;
3703 esac
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710 done
3711 done
3712 IFS=$as_save_IFS
3713
3714 fi ;;
3715 esac
3716 fi
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 printf "%s\n" "$CC" >&6; }
3721 else
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 printf "%s\n" "no" >&6; }
3724 fi
3725
3726
3727 test -n "$CC" && break
3728 done
3729 fi
3730 if test -z "$CC"; then
3731 ac_ct_CC=$CC
3732 for ac_prog in cl.exe
3733 do
3734 # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 printf %s "checking for $ac_word... " >&6; }
3738 if test ${ac_cv_prog_ac_ct_CC+y}
3739 then :
3740 printf %s "(cached) " >&6
3741 else case e in #(
3742 e) if test -n "$ac_ct_CC"; then
3743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748 IFS=$as_save_IFS
3749 case $as_dir in #(((
3750 '') as_dir=./ ;;
3751 */) ;;
3752 *) as_dir=$as_dir/ ;;
3753 esac
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_ac_ct_CC="$ac_prog"
3757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
3760 done
3761 done
3762 IFS=$as_save_IFS
3763
3764 fi ;;
3765 esac
3766 fi
3767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3768 if test -n "$ac_ct_CC"; then
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3770 printf "%s\n" "$ac_ct_CC" >&6; }
3771 else
3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 printf "%s\n" "no" >&6; }
3774 fi
3775
3776
3777 test -n "$ac_ct_CC" && break
3778 done
3779
3780 if test "x$ac_ct_CC" = x; then
3781 CC=""
3782 else
3783 case $cross_compiling:$ac_tool_warned in
3784 yes:)
3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3786 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3787 ac_tool_warned=yes ;;
3788 esac
3789 CC=$ac_ct_CC
3790 fi
3791 fi
3792
3793 fi
3794 if test -z "$CC"; then
3795 if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3797 set dummy ${ac_tool_prefix}clang; ac_word=$2
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 printf %s "checking for $ac_word... " >&6; }
3800 if test ${ac_cv_prog_CC+y}
3801 then :
3802 printf %s "(cached) " >&6
3803 else case e in #(
3804 e) if test -n "$CC"; then
3805 ac_cv_prog_CC="$CC" # Let the user override the test.
3806 else
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810 IFS=$as_save_IFS
3811 case $as_dir in #(((
3812 '') as_dir=./ ;;
3813 */) ;;
3814 *) as_dir=$as_dir/ ;;
3815 esac
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3818 ac_cv_prog_CC="${ac_tool_prefix}clang"
3819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3820 break 2
3821 fi
3822 done
3823 done
3824 IFS=$as_save_IFS
3825
3826 fi ;;
3827 esac
3828 fi
3829 CC=$ac_cv_prog_CC
3830 if test -n "$CC"; then
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3832 printf "%s\n" "$CC" >&6; }
3833 else
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 printf "%s\n" "no" >&6; }
3836 fi
3837
3838
3839 fi
3840 if test -z "$ac_cv_prog_CC"; then
3841 ac_ct_CC=$CC
3842 # Extract the first word of "clang", so it can be a program name with args.
3843 set dummy clang; ac_word=$2
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 printf %s "checking for $ac_word... " >&6; }
3846 if test ${ac_cv_prog_ac_ct_CC+y}
3847 then :
3848 printf %s "(cached) " >&6
3849 else case e in #(
3850 e) if test -n "$ac_ct_CC"; then
3851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856 IFS=$as_save_IFS
3857 case $as_dir in #(((
3858 '') as_dir=./ ;;
3859 */) ;;
3860 *) as_dir=$as_dir/ ;;
3861 esac
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3864 ac_cv_prog_ac_ct_CC="clang"
3865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3866 break 2
3867 fi
3868 done
3869 done
3870 IFS=$as_save_IFS
3871
3872 fi ;;
3873 esac
3874 fi
3875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3876 if test -n "$ac_ct_CC"; then
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3878 printf "%s\n" "$ac_ct_CC" >&6; }
3879 else
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 printf "%s\n" "no" >&6; }
3882 fi
3883
3884 if test "x$ac_ct_CC" = x; then
3885 CC=""
3886 else
3887 case $cross_compiling:$ac_tool_warned in
3888 yes:)
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891 ac_tool_warned=yes ;;
3892 esac
3893 CC=$ac_ct_CC
3894 fi
3895 else
3896 CC="$ac_cv_prog_CC"
3897 fi
3898
3899 fi
3900
3901
3902 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3903 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3904 as_fn_error $? "no acceptable C compiler found in \$PATH
3905 See 'config.log' for more details" "$LINENO" 5; }
3906
3907 # Provide some information about the compiler.
3908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3909 set X $ac_compile
3910 ac_compiler=$2
3911 for ac_option in --version -v -V -qversion -version; do
3912 { { ac_try="$ac_compiler $ac_option >&5"
3913 case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3918 printf "%s\n" "$ac_try_echo"; } >&5
3919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3920 ac_status=$?
3921 if test -s conftest.err; then
3922 sed '10a\
3923 ... rest of stderr output deleted ...
3924 10q' conftest.err >conftest.er1
3925 cat conftest.er1 >&5
3926 fi
3927 rm -f conftest.er1 conftest.err
3928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }
3930 done
3931
3932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3933 printf %s "checking whether the compiler supports GNU C... " >&6; }
3934 if test ${ac_cv_c_compiler_gnu+y}
3935 then :
3936 printf %s "(cached) " >&6
3937 else case e in #(
3938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940
3941 int
3942 main (void)
3943 {
3944 #ifndef __GNUC__
3945 choke me
3946 #endif
3947
3948 ;
3949 return 0;
3950 }
3951 _ACEOF
3952 if ac_fn_c_try_compile "$LINENO"
3953 then :
3954 ac_compiler_gnu=yes
3955 else case e in #(
3956 e) ac_compiler_gnu=no ;;
3957 esac
3958 fi
3959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3960 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3961 ;;
3962 esac
3963 fi
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3965 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967
3968 if test $ac_compiler_gnu = yes; then
3969 GCC=yes
3970 else
3971 GCC=
3972 fi
3973 ac_test_CFLAGS=${CFLAGS+y}
3974 ac_save_CFLAGS=$CFLAGS
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3976 printf %s "checking whether $CC accepts -g... " >&6; }
3977 if test ${ac_cv_prog_cc_g+y}
3978 then :
3979 printf %s "(cached) " >&6
3980 else case e in #(
3981 e) ac_save_c_werror_flag=$ac_c_werror_flag
3982 ac_c_werror_flag=yes
3983 ac_cv_prog_cc_g=no
3984 CFLAGS="-g"
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987
3988 int
3989 main (void)
3990 {
3991
3992 ;
3993 return 0;
3994 }
3995 _ACEOF
3996 if ac_fn_c_try_compile "$LINENO"
3997 then :
3998 ac_cv_prog_cc_g=yes
3999 else case e in #(
4000 e) CFLAGS=""
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003
4004 int
4005 main (void)
4006 {
4007
4008 ;
4009 return 0;
4010 }
4011 _ACEOF
4012 if ac_fn_c_try_compile "$LINENO"
4013 then :
4014
4015 else case e in #(
4016 e) ac_c_werror_flag=$ac_save_c_werror_flag
4017 CFLAGS="-g"
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020
4021 int
4022 main (void)
4023 {
4024
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"
4030 then :
4031 ac_cv_prog_cc_g=yes
4032 fi
4033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4034 esac
4035 fi
4036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4037 esac
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4040 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4041 esac
4042 fi
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4044 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4045 if test $ac_test_CFLAGS; then
4046 CFLAGS=$ac_save_CFLAGS
4047 elif test $ac_cv_prog_cc_g = yes; then
4048 if test "$GCC" = yes; then
4049 CFLAGS="-g -O2"
4050 else
4051 CFLAGS="-g"
4052 fi
4053 else
4054 if test "$GCC" = yes; then
4055 CFLAGS="-O2"
4056 else
4057 CFLAGS=
4058 fi
4059 fi
4060 ac_prog_cc_stdc=no
4061 if test x$ac_prog_cc_stdc = xno
4062 then :
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4064 printf %s "checking for $CC option to enable C11 features... " >&6; }
4065 if test ${ac_cv_prog_cc_c11+y}
4066 then :
4067 printf %s "(cached) " >&6
4068 else case e in #(
4069 e) ac_cv_prog_cc_c11=no
4070 ac_save_CC=$CC
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073 $ac_c_conftest_c11_program
4074 _ACEOF
4075 for ac_arg in '' -std=gnu11
4076 do
4077 CC="$ac_save_CC $ac_arg"
4078 if ac_fn_c_try_compile "$LINENO"
4079 then :
4080 ac_cv_prog_cc_c11=$ac_arg
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext conftest.beam
4083 test "x$ac_cv_prog_cc_c11" != "xno" && break
4084 done
4085 rm -f conftest.$ac_ext
4086 CC=$ac_save_CC ;;
4087 esac
4088 fi
4089
4090 if test "x$ac_cv_prog_cc_c11" = xno
4091 then :
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4093 printf "%s\n" "unsupported" >&6; }
4094 else case e in #(
4095 e) if test "x$ac_cv_prog_cc_c11" = x
4096 then :
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4098 printf "%s\n" "none needed" >&6; }
4099 else case e in #(
4100 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4101 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4102 CC="$CC $ac_cv_prog_cc_c11" ;;
4103 esac
4104 fi
4105 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4106 ac_prog_cc_stdc=c11 ;;
4107 esac
4108 fi
4109 fi
4110 if test x$ac_prog_cc_stdc = xno
4111 then :
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4113 printf %s "checking for $CC option to enable C99 features... " >&6; }
4114 if test ${ac_cv_prog_cc_c99+y}
4115 then :
4116 printf %s "(cached) " >&6
4117 else case e in #(
4118 e) ac_cv_prog_cc_c99=no
4119 ac_save_CC=$CC
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 $ac_c_conftest_c99_program
4123 _ACEOF
4124 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4125 do
4126 CC="$ac_save_CC $ac_arg"
4127 if ac_fn_c_try_compile "$LINENO"
4128 then :
4129 ac_cv_prog_cc_c99=$ac_arg
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.beam
4132 test "x$ac_cv_prog_cc_c99" != "xno" && break
4133 done
4134 rm -f conftest.$ac_ext
4135 CC=$ac_save_CC ;;
4136 esac
4137 fi
4138
4139 if test "x$ac_cv_prog_cc_c99" = xno
4140 then :
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4142 printf "%s\n" "unsupported" >&6; }
4143 else case e in #(
4144 e) if test "x$ac_cv_prog_cc_c99" = x
4145 then :
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4147 printf "%s\n" "none needed" >&6; }
4148 else case e in #(
4149 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4150 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4151 CC="$CC $ac_cv_prog_cc_c99" ;;
4152 esac
4153 fi
4154 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4155 ac_prog_cc_stdc=c99 ;;
4156 esac
4157 fi
4158 fi
4159 if test x$ac_prog_cc_stdc = xno
4160 then :
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4162 printf %s "checking for $CC option to enable C89 features... " >&6; }
4163 if test ${ac_cv_prog_cc_c89+y}
4164 then :
4165 printf %s "(cached) " >&6
4166 else case e in #(
4167 e) ac_cv_prog_cc_c89=no
4168 ac_save_CC=$CC
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4171 $ac_c_conftest_c89_program
4172 _ACEOF
4173 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4174 do
4175 CC="$ac_save_CC $ac_arg"
4176 if ac_fn_c_try_compile "$LINENO"
4177 then :
4178 ac_cv_prog_cc_c89=$ac_arg
4179 fi
4180 rm -f core conftest.err conftest.$ac_objext conftest.beam
4181 test "x$ac_cv_prog_cc_c89" != "xno" && break
4182 done
4183 rm -f conftest.$ac_ext
4184 CC=$ac_save_CC ;;
4185 esac
4186 fi
4187
4188 if test "x$ac_cv_prog_cc_c89" = xno
4189 then :
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4191 printf "%s\n" "unsupported" >&6; }
4192 else case e in #(
4193 e) if test "x$ac_cv_prog_cc_c89" = x
4194 then :
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4196 printf "%s\n" "none needed" >&6; }
4197 else case e in #(
4198 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4199 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4200 CC="$CC $ac_cv_prog_cc_c89" ;;
4201 esac
4202 fi
4203 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4204 ac_prog_cc_stdc=c89 ;;
4205 esac
4206 fi
4207 fi
4208
4209 ac_ext=cpp
4210 ac_cpp='$CXXCPP $CPPFLAGS'
4211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4214
4215
4216 # Extract the first word of "brew", so it can be a program name with args.
4217 set dummy brew; ac_word=$2
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 printf %s "checking for $ac_word... " >&6; }
4220 if test ${ac_cv_path_BREW+y}
4221 then :
4222 printf %s "(cached) " >&6
4223 else case e in #(
4224 e) case $BREW in
4225 [\\/]* | ?:[\\/]*)
4226 ac_cv_path_BREW="$BREW" # Let the user override the test with a path.
4227 ;;
4228 *)
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232 IFS=$as_save_IFS
4233 case $as_dir in #(((
4234 '') as_dir=./ ;;
4235 */) ;;
4236 *) as_dir=$as_dir/ ;;
4237 esac
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4240 ac_cv_path_BREW="$as_dir$ac_word$ac_exec_ext"
4241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4242 break 2
4243 fi
4244 done
4245 done
4246 IFS=$as_save_IFS
4247
4248 ;;
4249 esac ;;
4250 esac
4251 fi
4252 BREW=$ac_cv_path_BREW
4253 if test -n "$BREW"; then
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BREW" >&5
4255 printf "%s\n" "$BREW" >&6; }
4256 else
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 printf "%s\n" "no" >&6; }
4259 fi
4260
4261
4262 if test -n "${BREW}" ; then
4263 UD_CPPFLAGS="-I`${BREW} --prefix`/include"
4264 LIBS="-L`${BREW} --prefix`/lib ${LIBS}"
4265 fi
4266
4267
4268 # Check whether --with-udunits2-include was given.
4269 if test ${with_udunits2_include+y}
4270 then :
4271 withval=$with_udunits2_include; udunits2_include_path=$withval
4272 fi
4273
4274 if test -n "$udunits2_include_path" ; then
4275 UD_CPPFLAGS="-I${udunits2_include_path} ${UD_CPPFLAGS}"
4276 elif test -n "${UDUNITS2_INCLUDE}" ; then
4277 UD_CPPFLAGS="-I${UDUNITS2_INCLUDE} ${UD_CPPFLAGS}"
4278 fi
4279 CPPFLAGS="${UD_CPPFLAGS} ${CPPFLAGS}"
4280
4281
4282 # Check whether --with-udunits2-lib was given.
4283 if test ${with_udunits2_lib+y}
4284 then :
4285 withval=$with_udunits2_lib; udunits2_lib_path=$withval
4286 fi
4287
4288 if test -n "$udunits2_lib_path" ; then
4289 LIBS="-L${udunits2_lib_path} ${LIBS}"
4290 elif test -n "${UDUNITS2_LIBS}" ; then
4291 LIBS="-L${UDUNITS2_LIBS} ${LIBS}"
4292 fi
4293
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
4295 printf %s "checking for XML_ParserCreate in -lexpat... " >&6; }
4296 if test ${ac_cv_lib_expat_XML_ParserCreate+y}
4297 then :
4298 printf %s "(cached) " >&6
4299 else case e in #(
4300 e) ac_check_lib_save_LIBS=$LIBS
4301 LIBS="-lexpat ${LIBS} $LIBS"
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303 /* end confdefs.h. */
4304
4305 namespace conftest {
4306 extern "C" int XML_ParserCreate ();
4307 }
4308 int
4309 main (void)
4310 {
4311 return conftest::XML_ParserCreate ();
4312 ;
4313 return 0;
4314 }
4315 _ACEOF
4316 if ac_fn_cxx_try_link "$LINENO"
4317 then :
4318 ac_cv_lib_expat_XML_ParserCreate=yes
4319 else case e in #(
4320 e) ac_cv_lib_expat_XML_ParserCreate=no ;;
4321 esac
4322 fi
4323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4324 conftest$ac_exeext conftest.$ac_ext
4325 LIBS=$ac_check_lib_save_LIBS ;;
4326 esac
4327 fi
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
4329 printf "%s\n" "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
4330 if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes
4331 then :
4332 printf "%s\n" "#define HAVE_LIBEXPAT 1" >>confdefs.h
4333
4334 LIBS="-lexpat $LIBS"
4335
4336 fi
4337
4338 if test "${ac_cv_lib_expat_XML_ParserCreate}" = yes; then
4339 LIBS="${LIBS} -lexpat"
4340 fi
4341
4342 for ac_header in udunits2.h
4343 do :
4344 ac_fn_cxx_check_header_compile "$LINENO" "udunits2.h" "ac_cv_header_udunits2_h" "$ac_includes_default"
4345 if test "x$ac_cv_header_udunits2_h" = xyes
4346 then :
4347 printf "%s\n" "#define HAVE_UDUNITS2_H 1" >>confdefs.h
4348 UDUNITS2_DIR=0
4349 else case e in #(
4350 e)
4351 for ac_header in udunits2/udunits2.h
4352 do :
4353 ac_fn_cxx_check_header_compile "$LINENO" "udunits2/udunits2.h" "ac_cv_header_udunits2_udunits2_h" "$ac_includes_default"
4354 if test "x$ac_cv_header_udunits2_udunits2_h" = xyes
4355 then :
4356 printf "%s\n" "#define HAVE_UDUNITS2_UDUNITS2_H 1" >>confdefs.h
4357 UDUNITS2_DIR=1
4358 else case e in #(
4359 e) UD_ERROR="udunits2.h was not found" ;;
4360 esac
4361 fi
4362
4363 done ;;
4364 esac
4365 fi
4366
4367 done
4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ut_read_xml in -ludunits2" >&5
4369 printf %s "checking for ut_read_xml in -ludunits2... " >&6; }
4370 if test ${ac_cv_lib_udunits2_ut_read_xml+y}
4371 then :
4372 printf %s "(cached) " >&6
4373 else case e in #(
4374 e) ac_check_lib_save_LIBS=$LIBS
4375 LIBS="-ludunits2 $LIBS"
4376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h. */
4378
4379 namespace conftest {
4380 extern "C" int ut_read_xml ();
4381 }
4382 int
4383 main (void)
4384 {
4385 return conftest::ut_read_xml ();
4386 ;
4387 return 0;
4388 }
4389 _ACEOF
4390 if ac_fn_cxx_try_link "$LINENO"
4391 then :
4392 ac_cv_lib_udunits2_ut_read_xml=yes
4393 else case e in #(
4394 e) ac_cv_lib_udunits2_ut_read_xml=no ;;
4395 esac
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4398 conftest$ac_exeext conftest.$ac_ext
4399 LIBS=$ac_check_lib_save_LIBS ;;
4400 esac
4401 fi
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udunits2_ut_read_xml" >&5
4403 printf "%s\n" "$ac_cv_lib_udunits2_ut_read_xml" >&6; }
4404 if test "x$ac_cv_lib_udunits2_ut_read_xml" = xyes
4405 then :
4406 LIBS="${LIBS} -ludunits2"
4407 else case e in #(
4408 e) UD_ERROR="libudunits2.so was not found" ;;
4409 esac
4410 fi
4411
4412
4413 if test "${UD_ERROR}" != "" ; then { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4414 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4415 as_fn_error $? "
4416 --------------------------------------------------------------------------------
4417 Configuration failed because ${UD_ERROR}. Try installing:
4418 * deb: libudunits2-dev (Debian, Ubuntu, ...)
4419 * rpm: udunits2-devel (Fedora, EPEL, ...)
4420 * brew: udunits (OSX)
4421 If udunits2 is already installed in a non-standard location, use:
4422 --configure-args='--with-udunits2-lib=/usr/local/lib'
4423 if the library was not found, and/or:
4424 --configure-args='--with-udunits2-include=/usr/include/udunits2'
4425 if the header was not found, replacing paths with appropriate values.
4426 You can alternatively set UDUNITS2_INCLUDE and UDUNITS2_LIBS manually.
4427 --------------------------------------------------------------------------------
4428
4429 See 'config.log' for more details" "$LINENO" 5; } fi
4430
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exception propagation in -ludunits2" >&5
4432 printf %s "checking for exception propagation in -ludunits2... " >&6; }
4433 if test "$cross_compiling" = yes
4434 then :
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown (cross-compiling)" >&5
4436 printf "%s\n" "unknown (cross-compiling)" >&6; }
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cross-compiling: cannot verify exception propagation in udunits2. Assuming it works." >&5
4438 printf "%s\n" "$as_me: WARNING: Cross-compiling: cannot verify exception propagation in udunits2. Assuming it works." >&2;}
4439
4440 else case e in #(
4441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443
4444 #include <stdexcept>
4445 #include <cstdarg>
4446 #ifdef HAVE_UDUNITS2_UDUNITS2_H
4447 # include <udunits2/udunits2.h>
4448 #else
4449 # include <udunits2.h>
4450 #endif
4451 extern "C" {
4452 int ud_handler(const char* fmt, va_list args) {
4453 throw std::runtime_error("udunits error");
4454 return 0;
4455 }
4456 }
4457
4458 int
4459 main (void)
4460 {
4461
4462 ut_set_error_message_handler(ud_handler);
4463 try { ut_read_xml("nonexistent.xml"); }
4464 catch (...) { return 0; }
4465 return 1;
4466
4467 ;
4468 return 0;
4469 }
4470 _ACEOF
4471 if ac_fn_cxx_try_run "$LINENO"
4472 then :
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4474 printf "%s\n" "yes" >&6; }
4475 else case e in #(
4476 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 printf "%s\n" "no" >&6; }
4478 as_fn_error $? "The udunits2 library does not support exception propagation. Please reinstall it with -fexceptions enabled." "$LINENO" 5 ;;
4479 esac
4480 fi
4481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4482 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4483 esac
4484 fi
4485
4486
4487
4488
4489
4490
4491 ac_config_files="$ac_config_files src/Makevars"
4492
4493 cat >confcache <<\_ACEOF
4494 # This file is a shell script that caches the results of configure
4495 # tests run on this system so they can be shared between configure
4496 # scripts and configure runs, see configure's option --config-cache.
4497 # It is not useful on other systems. If it contains results you don't
4498 # want to keep, you may remove or edit it.
4499 #
4500 # config.status only pays attention to the cache file if you give it
4501 # the --recheck option to rerun configure.
4502 #
4503 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
4504 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
4505 # following values.
4506
4507 _ACEOF
4508
4509 # The following way of writing the cache mishandles newlines in values,
4510 # but we know of no workaround that is simple, portable, and efficient.
4511 # So, we kill variables containing newlines.
4512 # Ultrix sh set writes to stderr and can't be redirected directly,
4513 # and sets the high bit in the cache file unless we assign to the vars.
4514 (
4515 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4516 eval ac_val=\$$ac_var
4517 case $ac_val in #(
4518 *${as_nl}*)
4519 case $ac_var in #(
4520 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4521 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4522 esac
4523 case $ac_var in #(
4524 _ | IFS | as_nl) ;; #(
4525 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4526 *) { eval $ac_var=; unset $ac_var;} ;;
4527 esac ;;
4528 esac
4529 done
4530
4531 (set) 2>&1 |
4532 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4533 *${as_nl}ac_space=\ *)
4534 # 'set' does not quote correctly, so add quotes: double-quote
4535 # substitution turns \\\\ into \\, and sed turns \\ into \.
4536 sed -n \
4537 "s/'/'\\\\''/g;
4538 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4539 ;; #(
4540 *)
4541 # 'set' quotes correctly as required by POSIX, so do not add quotes.
4542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4543 ;;
4544 esac |
4545 sort
4546 ) |
4547 sed '
4548 /^ac_cv_env_/b end
4549 t clear
4550 :clear
4551 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
4552 t end
4553 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4554 :end' >>confcache
4555 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4556 if test -w "$cache_file"; then
4557 if test "x$cache_file" != "x/dev/null"; then
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4559 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
4560 if test ! -f "$cache_file" || test -h "$cache_file"; then
4561 cat confcache >"$cache_file"
4562 else
4563 case $cache_file in #(
4564 */* | ?:*)
4565 mv -f confcache "$cache_file"$$ &&
4566 mv -f "$cache_file"$$ "$cache_file" ;; #(
4567 *)
4568 mv -f confcache "$cache_file" ;;
4569 esac
4570 fi
4571 fi
4572 else
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4574 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
4575 fi
4576 fi
4577 rm -f confcache
4578
4579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4580 # Let make expand exec_prefix.
4581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4582
4583 # Transform confdefs.h into DEFS.
4584 # Protect against shell expansion while executing Makefile rules.
4585 # Protect against Makefile macro expansion.
4586 #
4587 # If the first sed substitution is executed (which looks for macros that
4588 # take arguments), then branch to the quote section. Otherwise,
4589 # look for a macro that doesn't take arguments.
4590 ac_script='
4591 :mline
4592 /\\$/{
4593 N
4594 s,\\\n,,
4595 b mline
4596 }
4597 t clear
4598 :clear
4599 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4600 t quote
4601 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4602 t quote
4603 b any
4604 :quote
4605 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4606 s/\$/$$/g
4607 H
4608 :any
4609 ${
4610 g
4611 s/^\n//
4612 s/\n/ /g
4613 p
4614 }
4615 '
4616 DEFS=`sed -n "$ac_script" confdefs.h`
4617
4618
4619 ac_libobjs=
4620 ac_ltlibobjs=
4621 U=
4622 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4623 # 1. Remove the extension, and $U if already installed.
4624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4625 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
4626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4627 # will be set to the directory where LIBOBJS objects are built.
4628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4630 done
4631 LIBOBJS=$ac_libobjs
4632
4633 LTLIBOBJS=$ac_ltlibobjs
4634
4635
4636
4637 : "${CONFIG_STATUS=./config.status}"
4638 ac_write_fail=0
4639 ac_clean_files_save=$ac_clean_files
4640 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4642 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
4643 as_write_fail=0
4644 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4645 #! $SHELL
4646 # Generated by $as_me.
4647 # Run this file to recreate the current configuration.
4648 # Compiler output produced by configure, useful for debugging
4649 # configure, is in config.log if it exists.
4650
4651 debug=false
4652 ac_cs_recheck=false
4653 ac_cs_silent=false
4654
4655 SHELL=\${CONFIG_SHELL-$SHELL}
4656 export SHELL
4657 _ASEOF
4658 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4659 ## -------------------- ##
4660 ## M4sh Initialization. ##
4661 ## -------------------- ##
4662
4663 # Be more Bourne compatible
4664 DUALCASE=1; export DUALCASE # for MKS sh
4665 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
4666 then :
4667 emulate sh
4668 NULLCMD=:
4669 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4670 # is contrary to our usage. Disable this feature.
4671 alias -g '${1+"$@"}'='"$@"'
4672 setopt NO_GLOB_SUBST
4673 else case e in #(
4674 e) case `(set -o) 2>/dev/null` in #(
4675 *posix*) :
4676 set -o posix ;; #(
4677 *) :
4678 ;;
4679 esac ;;
4680 esac
4681 fi
4682
4683
4684
4685 # Reset variables that may have inherited troublesome values from
4686 # the environment.
4687
4688 # IFS needs to be set, to space, tab, and newline, in precisely that order.
4689 # (If _AS_PATH_WALK were called with IFS unset, it would have the
4690 # side effect of setting IFS to empty, thus disabling word splitting.)
4691 # Quoting is to prevent editors from complaining about space-tab.
4692 as_nl='
4693 '
4694 export as_nl
4695 IFS=" "" $as_nl"
4696
4697 PS1='$ '
4698 PS2='> '
4699 PS4='+ '
4700
4701 # Ensure predictable behavior from utilities with locale-dependent output.
4702 LC_ALL=C
4703 export LC_ALL
4704 LANGUAGE=C
4705 export LANGUAGE
4706
4707 # We cannot yet rely on "unset" to work, but we need these variables
4708 # to be unset--not just set to an empty or harmless value--now, to
4709 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
4710 # also avoids known problems related to "unset" and subshell syntax
4711 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
4712 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
4713 do eval test \${$as_var+y} \
4714 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4715 done
4716
4717 # Ensure that fds 0, 1, and 2 are open.
4718 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
4719 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
4720 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
4721
4722 # The user is always right.
4723 if ${PATH_SEPARATOR+false} :; then
4724 PATH_SEPARATOR=:
4725 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4726 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4727 PATH_SEPARATOR=';'
4728 }
4729 fi
4730
4731
4732 # Find who we are. Look in the path if we contain no directory separator.
4733 as_myself=
4734 case $0 in #((
4735 *[\\/]* ) as_myself=$0 ;;
4736 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4738 do
4739 IFS=$as_save_IFS
4740 case $as_dir in #(((
4741 '') as_dir=./ ;;
4742 */) ;;
4743 *) as_dir=$as_dir/ ;;
4744 esac
4745 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
4746 done
4747 IFS=$as_save_IFS
4748
4749 ;;
4750 esac
4751 # We did not find ourselves, most probably we were run as 'sh COMMAND'
4752 # in which case we are not to be found in the path.
4753 if test "x$as_myself" = x; then
4754 as_myself=$0
4755 fi
4756 if test ! -f "$as_myself"; then
4757 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4758 exit 1
4759 fi
4760
4761
4762
4763 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4764 # ----------------------------------------
4765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4767 # script with STATUS, using 1 if that was 0.
4768 as_fn_error ()
4769 {
4770 as_status=$1; test $as_status -eq 0 && as_status=1
4771 if test "$4"; then
4772 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4774 fi
4775 printf "%s\n" "$as_me: error: $2" >&2
4776 as_fn_exit $as_status
4777 } # as_fn_error
4778
4779
4780 # as_fn_set_status STATUS
4781 # -----------------------
4782 # Set $? to STATUS, without forking.
4783 as_fn_set_status ()
4784 {
4785 return $1
4786 } # as_fn_set_status
4787
4788 # as_fn_exit STATUS
4789 # -----------------
4790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4791 as_fn_exit ()
4792 {
4793 set +e
4794 as_fn_set_status $1
4795 exit $1
4796 } # as_fn_exit
4797
4798 # as_fn_unset VAR
4799 # ---------------
4800 # Portably unset VAR.
4801 as_fn_unset ()
4802 {
4803 { eval $1=; unset $1;}
4804 }
4805 as_unset=as_fn_unset
4806
4807 # as_fn_append VAR VALUE
4808 # ----------------------
4809 # Append the text in VALUE to the end of the definition contained in VAR. Take
4810 # advantage of any shell optimizations that allow amortized linear growth over
4811 # repeated appends, instead of the typical quadratic growth present in naive
4812 # implementations.
4813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
4814 then :
4815 eval 'as_fn_append ()
4816 {
4817 eval $1+=\$2
4818 }'
4819 else case e in #(
4820 e) as_fn_append ()
4821 {
4822 eval $1=\$$1\$2
4823 } ;;
4824 esac
4825 fi # as_fn_append
4826
4827 # as_fn_arith ARG...
4828 # ------------------
4829 # Perform arithmetic evaluation on the ARGs, and store the result in the
4830 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4831 # must be portable across $(()) and expr.
4832 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4833 then :
4834 eval 'as_fn_arith ()
4835 {
4836 as_val=$(( $* ))
4837 }'
4838 else case e in #(
4839 e) as_fn_arith ()
4840 {
4841 as_val=`expr "$@" || test $? -eq 1`
4842 } ;;
4843 esac
4844 fi # as_fn_arith
4845
4846
4847 if expr a : '\(a\)' >/dev/null 2>&1 &&
4848 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4849 as_expr=expr
4850 else
4851 as_expr=false
4852 fi
4853
4854 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4855 as_basename=basename
4856 else
4857 as_basename=false
4858 fi
4859
4860 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4861 as_dirname=dirname
4862 else
4863 as_dirname=false
4864 fi
4865
4866 as_me=`$as_basename -- "$0" ||
4867 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4868 X"$0" : 'X\(//\)$' \| \
4869 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4870 printf "%s\n" X/"$0" |
4871 sed '/^.*\/\([^/][^/]*\)\/*$/{
4872 s//\1/
4873 q
4874 }
4875 /^X\/\(\/\/\)$/{
4876 s//\1/
4877 q
4878 }
4879 /^X\/\(\/\).*/{
4880 s//\1/
4881 q
4882 }
4883 s/.*/./; q'`
4884
4885 # Avoid depending upon Character Ranges.
4886 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4887 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4888 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4889 as_cr_digits='0123456789'
4890 as_cr_alnum=$as_cr_Letters$as_cr_digits
4891
4892
4893 # Determine whether it's possible to make 'echo' print without a newline.
4894 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
4895 # for compatibility with existing Makefiles.
4896 ECHO_C= ECHO_N= ECHO_T=
4897 case `echo -n x` in #(((((
4898 -n*)
4899 case `echo 'xy\c'` in
4900 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4901 xy) ECHO_C='\c';;
4902 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4903 ECHO_T=' ';;
4904 esac;;
4905 *)
4906 ECHO_N='-n';;
4907 esac
4908
4909 # For backward compatibility with old third-party macros, we provide
4910 # the shell variables $as_echo and $as_echo_n. New code should use
4911 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
4912 as_echo='printf %s\n'
4913 as_echo_n='printf %s'
4914
4915 rm -f conf$$ conf$$.exe conf$$.file
4916 if test -d conf$$.dir; then
4917 rm -f conf$$.dir/conf$$.file
4918 else
4919 rm -f conf$$.dir
4920 mkdir conf$$.dir 2>/dev/null
4921 fi
4922 if (echo >conf$$.file) 2>/dev/null; then
4923 if ln -s conf$$.file conf$$ 2>/dev/null; then
4924 as_ln_s='ln -s'
4925 # ... but there are two gotchas:
4926 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
4927 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
4928 # In both cases, we have to default to 'cp -pR'.
4929 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4930 as_ln_s='cp -pR'
4931 elif ln conf$$.file conf$$ 2>/dev/null; then
4932 as_ln_s=ln
4933 else
4934 as_ln_s='cp -pR'
4935 fi
4936 else
4937 as_ln_s='cp -pR'
4938 fi
4939 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4940 rmdir conf$$.dir 2>/dev/null
4941
4942
4943 # as_fn_mkdir_p
4944 # -------------
4945 # Create "$as_dir" as a directory, including parents if necessary.
4946 as_fn_mkdir_p ()
4947 {
4948
4949 case $as_dir in #(
4950 -*) as_dir=./$as_dir;;
4951 esac
4952 test -d "$as_dir" || eval $as_mkdir_p || {
4953 as_dirs=
4954 while :; do
4955 case $as_dir in #(
4956 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4957 *) as_qdir=$as_dir;;
4958 esac
4959 as_dirs="'$as_qdir' $as_dirs"
4960 as_dir=`$as_dirname -- "$as_dir" ||
4961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4962 X"$as_dir" : 'X\(//\)[^/]' \| \
4963 X"$as_dir" : 'X\(//\)$' \| \
4964 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4965 printf "%s\n" X"$as_dir" |
4966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4967 s//\1/
4968 q
4969 }
4970 /^X\(\/\/\)[^/].*/{
4971 s//\1/
4972 q
4973 }
4974 /^X\(\/\/\)$/{
4975 s//\1/
4976 q
4977 }
4978 /^X\(\/\).*/{
4979 s//\1/
4980 q
4981 }
4982 s/.*/./; q'`
4983 test -d "$as_dir" && break
4984 done
4985 test -z "$as_dirs" || eval "mkdir $as_dirs"
4986 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4987
4988
4989 } # as_fn_mkdir_p
4990 if mkdir -p . 2>/dev/null; then
4991 as_mkdir_p='mkdir -p "$as_dir"'
4992 else
4993 test -d ./-p && rmdir ./-p
4994 as_mkdir_p=false
4995 fi
4996
4997
4998 # as_fn_executable_p FILE
4999 # -----------------------
5000 # Test if FILE is an executable regular file.
5001 as_fn_executable_p ()
5002 {
5003 test -f "$1" && test -x "$1"
5004 } # as_fn_executable_p
5005 as_test_x='test -x'
5006 as_executable_p=as_fn_executable_p
5007
5008 # Sed expression to map a string onto a valid CPP name.
5009 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5010 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
5011
5012 # Sed expression to map a string onto a valid variable name.
5013 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5014 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
5015
5016
5017 exec 6>&1
5018 ## ----------------------------------- ##
5019 ## Main body of $CONFIG_STATUS script. ##
5020 ## ----------------------------------- ##
5021 _ASEOF
5022 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5023
5024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5025 # Save the log message, to keep $0 and so on meaningful, and to
5026 # report actual input values of CONFIG_FILES etc. instead of their
5027 # values after options handling.
5028 ac_log="
5029 This file was extended by units $as_me 1.0-1, which was
5030 generated by GNU Autoconf 2.72. Invocation command line was
5031
5032 CONFIG_FILES = $CONFIG_FILES
5033 CONFIG_HEADERS = $CONFIG_HEADERS
5034 CONFIG_LINKS = $CONFIG_LINKS
5035 CONFIG_COMMANDS = $CONFIG_COMMANDS
5036 $ $0 $@
5037
5038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5039 "
5040
5041 _ACEOF
5042
5043 case $ac_config_files in *"
5044 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5045 esac
5046
5047
5048
5049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5050 # Files that config.status was made for.
5051 config_files="$ac_config_files"
5052
5053 _ACEOF
5054
5055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5056 ac_cs_usage="\
5057 '$as_me' instantiates files and other configuration actions
5058 from templates according to the current configuration. Unless the files
5059 and actions are specified as TAGs, all are instantiated by default.
5060
5061 Usage: $0 [OPTION]... [TAG]...
5062
5063 -h, --help print this help, then exit
5064 -V, --version print version number and configuration settings, then exit
5065 --config print configuration, then exit
5066 -q, --quiet, --silent
5067 do not print progress messages
5068 -d, --debug don't remove temporary files
5069 --recheck update $as_me by reconfiguring in the same conditions
5070 --file=FILE[:TEMPLATE]
5071 instantiate the configuration file FILE
5072
5073 Configuration files:
5074 $config_files
5075
5076 Report bugs to <[email protected]>."
5077
5078 _ACEOF
5079 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
5080 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
5081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5082 ac_cs_config='$ac_cs_config_escaped'
5083 ac_cs_version="\\
5084 units config.status 1.0-1
5085 configured by $0, generated by GNU Autoconf 2.72,
5086 with options \\"\$ac_cs_config\\"
5087
5088 Copyright (C) 2023 Free Software Foundation, Inc.
5089 This config.status script is free software; the Free Software Foundation
5090 gives unlimited permission to copy, distribute and modify it."
5091
5092 ac_pwd='$ac_pwd'
5093 srcdir='$srcdir'
5094 test -n "\$AWK" || AWK=awk
5095 _ACEOF
5096
5097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5098 # The default lists apply if the user does not specify any file.
5099 ac_need_defaults=:
5100 while test $# != 0
5101 do
5102 case $1 in
5103 --*=?*)
5104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5105 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5106 ac_shift=:
5107 ;;
5108 --*=)
5109 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5110 ac_optarg=
5111 ac_shift=:
5112 ;;
5113 *)
5114 ac_option=$1
5115 ac_optarg=$2
5116 ac_shift=shift
5117 ;;
5118 esac
5119
5120 case $ac_option in
5121 # Handling of the options.
5122 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5123 ac_cs_recheck=: ;;
5124 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5125 printf "%s\n" "$ac_cs_version"; exit ;;
5126 --config | --confi | --conf | --con | --co | --c )
5127 printf "%s\n" "$ac_cs_config"; exit ;;
5128 --debug | --debu | --deb | --de | --d | -d )
5129 debug=: ;;
5130 --file | --fil | --fi | --f )
5131 $ac_shift
5132 case $ac_optarg in
5133 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5134 '') as_fn_error $? "missing file argument" ;;
5135 esac
5136 as_fn_append CONFIG_FILES " '$ac_optarg'"
5137 ac_need_defaults=false;;
5138 --he | --h | --help | --hel | -h )
5139 printf "%s\n" "$ac_cs_usage"; exit ;;
5140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5141 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5142 ac_cs_silent=: ;;
5143
5144 # This is an error.
5145 -*) as_fn_error $? "unrecognized option: '$1'
5146 Try '$0 --help' for more information." ;;
5147
5148 *) as_fn_append ac_config_targets " $1"
5149 ac_need_defaults=false ;;
5150
5151 esac
5152 shift
5153 done
5154
5155 ac_configure_extra_args=
5156
5157 if $ac_cs_silent; then
5158 exec 6>/dev/null
5159 ac_configure_extra_args="$ac_configure_extra_args --silent"
5160 fi
5161
5162 _ACEOF
5163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5164 if \$ac_cs_recheck; then
5165 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5166 shift
5167 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
5168 CONFIG_SHELL='$SHELL'
5169 export CONFIG_SHELL
5170 exec "\$@"
5171 fi
5172
5173 _ACEOF
5174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5175 exec 5>>config.log
5176 {
5177 echo
5178 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5179 ## Running $as_me. ##
5180 _ASBOX
5181 printf "%s\n" "$ac_log"
5182 } >&5
5183
5184 _ACEOF
5185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5186 _ACEOF
5187
5188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5189
5190 # Handling of arguments.
5191 for ac_config_target in $ac_config_targets
5192 do
5193 case $ac_config_target in
5194 "src/Makevars") CONFIG_FILES="$CONFIG_FILES src/Makevars" ;;
5195
5196 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
5197 esac
5198 done
5199
5200
5201 # If the user did not use the arguments to specify the items to instantiate,
5202 # then the envvar interface is used. Set only those that are not.
5203 # We use the long form for the default assignment because of an extremely
5204 # bizarre bug on SunOS 4.1.3.
5205 if $ac_need_defaults; then
5206 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
5207 fi
5208
5209 # Have a temporary directory for convenience. Make it in the build tree
5210 # simply because there is no reason against having it here, and in addition,
5211 # creating and moving files from /tmp can sometimes cause problems.
5212 # Hook for its removal unless debugging.
5213 # Note that there is a small window in which the directory will not be cleaned:
5214 # after its creation but before its name has been assigned to '$tmp'.
5215 $debug ||
5216 {
5217 tmp= ac_tmp=
5218 trap 'exit_status=$?
5219 : "${ac_tmp:=$tmp}"
5220 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5221 ' 0
5222 trap 'as_fn_exit 1' 1 2 13 15
5223 }
5224 # Create a (secure) tmp directory for tmp files.
5225
5226 {
5227 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5228 test -d "$tmp"
5229 } ||
5230 {
5231 tmp=./conf$$-$RANDOM
5232 (umask 077 && mkdir "$tmp")
5233 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5234 ac_tmp=$tmp
5235
5236 # Set up the scripts for CONFIG_FILES section.
5237 # No need to generate them if there are no CONFIG_FILES.
5238 # This happens for instance with './config.status config.h'.
5239 if test -n "$CONFIG_FILES"; then
5240
5241
5242 ac_cr=`echo X | tr X '\015'`
5243 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5244 # But we know of no other shell where ac_cr would be empty at this
5245 # point, so we can use a bashism as a fallback.
5246 if test "x$ac_cr" = x; then
5247 eval ac_cr=\$\'\\r\'
5248 fi
5249 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5250 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5251 ac_cs_awk_cr='\\r'
5252 else
5253 ac_cs_awk_cr=$ac_cr
5254 fi
5255
5256 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5257 _ACEOF
5258
5259
5260 {
5261 echo "cat >conf$$subs.awk <<_ACEOF" &&
5262 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5263 echo "_ACEOF"
5264 } >conf$$subs.sh ||
5265 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5266 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5267 ac_delim='%!_!# '
5268 for ac_last_try in false false false false false :; do
5269 . ./conf$$subs.sh ||
5270 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5271
5272 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5273 if test $ac_delim_n = $ac_delim_num; then
5274 break
5275 elif $ac_last_try; then
5276 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5277 else
5278 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5279 fi
5280 done
5281 rm -f conf$$subs.sh
5282
5283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5284 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5285 _ACEOF
5286 sed -n '
5287 h
5288 s/^/S["/; s/!.*/"]=/
5289 p
5290 g
5291 s/^[^!]*!//
5292 :repl
5293 t repl
5294 s/'"$ac_delim"'$//
5295 t delim
5296 :nl
5297 h
5298 s/\(.\{148\}\)..*/\1/
5299 t more1
5300 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5301 p
5302 n
5303 b repl
5304 :more1
5305 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5306 p
5307 g
5308 s/.\{148\}//
5309 t nl
5310 :delim
5311 h
5312 s/\(.\{148\}\)..*/\1/
5313 t more2
5314 s/["\\]/\\&/g; s/^/"/; s/$/"/
5315 p
5316 b
5317 :more2
5318 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5319 p
5320 g
5321 s/.\{148\}//
5322 t delim
5323 ' <conf$$subs.awk | sed '
5324 /^[^""]/{
5325 N
5326 s/\n//
5327 }
5328 ' >>$CONFIG_STATUS || ac_write_fail=1
5329 rm -f conf$$subs.awk
5330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5331 _ACAWK
5332 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5333 for (key in S) S_is_set[key] = 1
5334 FS = ""
5335
5336 }
5337 {
5338 line = $ 0
5339 nfields = split(line, field, "@")
5340 substed = 0
5341 len = length(field[1])
5342 for (i = 2; i < nfields; i++) {
5343 key = field[i]
5344 keylen = length(key)
5345 if (S_is_set[key]) {
5346 value = S[key]
5347 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5348 len += length(value) + length(field[++i])
5349 substed = 1
5350 } else
5351 len += 1 + keylen
5352 }
5353
5354 print line
5355 }
5356
5357 _ACAWK
5358 _ACEOF
5359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5360 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5361 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5362 else
5363 cat
5364 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5365 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5366 _ACEOF
5367
5368 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5369 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5370 # trailing colons and then remove the whole line if VPATH becomes empty
5371 # (actually we leave an empty line to preserve line numbers).
5372 if test "x$srcdir" = x.; then
5373 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5374 h
5375 s///
5376 s/^/:/
5377 s/[ ]*$/:/
5378 s/:\$(srcdir):/:/g
5379 s/:\${srcdir}:/:/g
5380 s/:@srcdir@:/:/g
5381 s/^:*//
5382 s/:*$//
5383 x
5384 s/\(=[ ]*\).*/\1/
5385 G
5386 s/\n//
5387 s/^[^=]*=[ ]*$//
5388 }'
5389 fi
5390
5391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5392 fi # test -n "$CONFIG_FILES"
5393
5394
5395 eval set X " :F $CONFIG_FILES "
5396 shift
5397 for ac_tag
5398 do
5399 case $ac_tag in
5400 :[FHLC]) ac_mode=$ac_tag; continue;;
5401 esac
5402 case $ac_mode$ac_tag in
5403 :[FHL]*:*);;
5404 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
5405 :[FH]-) ac_tag=-:-;;
5406 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5407 esac
5408 ac_save_IFS=$IFS
5409 IFS=:
5410 set x $ac_tag
5411 IFS=$ac_save_IFS
5412 shift
5413 ac_file=$1
5414 shift
5415
5416 case $ac_mode in
5417 :L) ac_source=$1;;
5418 :[FH])
5419 ac_file_inputs=
5420 for ac_f
5421 do
5422 case $ac_f in
5423 -) ac_f="$ac_tmp/stdin";;
5424 *) # Look for the file first in the build tree, then in the source tree
5425 # (if the path is not absolute). The absolute path cannot be DOS-style,
5426 # because $ac_f cannot contain ':'.
5427 test -f "$ac_f" ||
5428 case $ac_f in
5429 [\\/$]*) false;;
5430 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5431 esac ||
5432 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
5433 esac
5434 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5435 as_fn_append ac_file_inputs " '$ac_f'"
5436 done
5437
5438 # Let's still pretend it is 'configure' which instantiates (i.e., don't
5439 # use $as_me), people would be surprised to read:
5440 # /* config.h. Generated by config.status. */
5441 configure_input='Generated from '`
5442 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5443 `' by configure.'
5444 if test x"$ac_file" != x-; then
5445 configure_input="$ac_file. $configure_input"
5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5447 printf "%s\n" "$as_me: creating $ac_file" >&6;}
5448 fi
5449 # Neutralize special characters interpreted by sed in replacement strings.
5450 case $configure_input in #(
5451 *\&* | *\|* | *\\* )
5452 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
5453 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5454 *) ac_sed_conf_input=$configure_input;;
5455 esac
5456
5457 case $ac_tag in
5458 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5460 esac
5461 ;;
5462 esac
5463
5464 ac_dir=`$as_dirname -- "$ac_file" ||
5465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5466 X"$ac_file" : 'X\(//\)[^/]' \| \
5467 X"$ac_file" : 'X\(//\)$' \| \
5468 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5469 printf "%s\n" X"$ac_file" |
5470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5471 s//\1/
5472 q
5473 }
5474 /^X\(\/\/\)[^/].*/{
5475 s//\1/
5476 q
5477 }
5478 /^X\(\/\/\)$/{
5479 s//\1/
5480 q
5481 }
5482 /^X\(\/\).*/{
5483 s//\1/
5484 q
5485 }
5486 s/.*/./; q'`
5487 as_dir="$ac_dir"; as_fn_mkdir_p
5488 ac_builddir=.
5489
5490 case "$ac_dir" in
5491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5492 *)
5493 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
5494 # A ".." for each directory in $ac_dir_suffix.
5495 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5496 case $ac_top_builddir_sub in
5497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5499 esac ;;
5500 esac
5501 ac_abs_top_builddir=$ac_pwd
5502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5503 # for backward compatibility:
5504 ac_top_builddir=$ac_top_build_prefix
5505
5506 case $srcdir in
5507 .) # We are building in place.
5508 ac_srcdir=.
5509 ac_top_srcdir=$ac_top_builddir_sub
5510 ac_abs_top_srcdir=$ac_pwd ;;
5511 [\\/]* | ?:[\\/]* ) # Absolute name.
5512 ac_srcdir=$srcdir$ac_dir_suffix;
5513 ac_top_srcdir=$srcdir
5514 ac_abs_top_srcdir=$srcdir ;;
5515 *) # Relative name.
5516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5517 ac_top_srcdir=$ac_top_build_prefix$srcdir
5518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5519 esac
5520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5521
5522
5523 case $ac_mode in
5524 :F)
5525 #
5526 # CONFIG_FILE
5527 #
5528
5529 _ACEOF
5530
5531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5532 # If the template does not know about datarootdir, expand it.
5533 # FIXME: This hack should be removed a few years after 2.60.
5534 ac_datarootdir_hack=; ac_datarootdir_seen=
5535 ac_sed_dataroot='
5536 /datarootdir/ {
5537 p
5538 q
5539 }
5540 /@datadir@/p
5541 /@docdir@/p
5542 /@infodir@/p
5543 /@localedir@/p
5544 /@mandir@/p'
5545 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5546 *datarootdir*) ac_datarootdir_seen=yes;;
5547 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5549 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5550 _ACEOF
5551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5552 ac_datarootdir_hack='
5553 s&@datadir@&$datadir&g
5554 s&@docdir@&$docdir&g
5555 s&@infodir@&$infodir&g
5556 s&@localedir@&$localedir&g
5557 s&@mandir@&$mandir&g
5558 s&\\\${datarootdir}&$datarootdir&g' ;;
5559 esac
5560 _ACEOF
5561
5562 # Neutralize VPATH when '$srcdir' = '.'.
5563 # Shell code in configure.ac might set extrasub.
5564 # FIXME: do we really want to maintain this feature?
5565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5566 ac_sed_extra="$ac_vpsub
5567 $extrasub
5568 _ACEOF
5569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5570 :t
5571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5572 s|@configure_input@|$ac_sed_conf_input|;t t
5573 s&@top_builddir@&$ac_top_builddir_sub&;t t
5574 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5575 s&@srcdir@&$ac_srcdir&;t t
5576 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5577 s&@top_srcdir@&$ac_top_srcdir&;t t
5578 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5579 s&@builddir@&$ac_builddir&;t t
5580 s&@abs_builddir@&$ac_abs_builddir&;t t
5581 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5582 $ac_datarootdir_hack
5583 "
5584 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5585 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5586
5587 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5588 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5589 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5590 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
5592 which seems to be undefined. Please make sure it is defined" >&5
5593 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
5594 which seems to be undefined. Please make sure it is defined" >&2;}
5595
5596 rm -f "$ac_tmp/stdin"
5597 case $ac_file in
5598 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5599 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5600 esac \
5601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5602 ;;
5603
5604
5605
5606 esac
5607
5608 done # for ac_tag
5609
5610
5611 as_fn_exit 0
5612 _ACEOF
5613 ac_clean_files=$ac_clean_files_save
5614
5615 test $ac_write_fail = 0 ||
5616 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5617
5618
5619 # configure is writing to config.log, and then calls config.status.
5620 # config.status does its own redirection, appending to config.log.
5621 # Unfortunately, on DOS this fails, as config.log is still kept open
5622 # by configure, so config.status won't be able to write to it; its
5623 # output is simply discarded. So we exec the FD to /dev/null,
5624 # effectively closing config.log, so it can be properly (re)opened and
5625 # appended to by config.status. When coming back to configure, we
5626 # need to make the FD available again.
5627 if test "$no_create" != yes; then
5628 ac_cs_success=:
5629 ac_config_status_args=
5630 test "$silent" = yes &&
5631 ac_config_status_args="$ac_config_status_args --quiet"
5632 exec 5>/dev/null
5633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5634 exec 5>>config.log
5635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5636 # would make configure fail if this is the last instruction.
5637 $ac_cs_success || as_fn_exit 1
5638 fi
5639 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5641 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5642 fi
5643
5644