Debian Codegraph @

configure

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