Debian Codegraph @

configure

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