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