Debian Codegraph @

configure

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