2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for git 1.7.10.4.
5 # Report bugs to <git@vger.kernel.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
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+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: git@vger.kernel.org about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
363 # ----------------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with STATUS, using 1 if that was 0.
369 as_status=$1; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374 $as_echo "$as_me: error: $2" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
554 PACKAGE_TARNAME='git'
555 PACKAGE_VERSION='1.7.10.4'
556 PACKAGE_STRING='git 1.7.10.4'
557 PACKAGE_BUGREPORT='git@vger.kernel.org'
560 ac_unique_file="git.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
597 ac_subst_vars='LTLIBOBJS
619 SNPRINTF_RETURNS_BOGUS
620 FREAD_READS_DIRECTORIES
635 LIBC_CONTAINS_LIBINTL
649 NEEDS_SSL_WITH_CRYPTO
693 program_transform_name
706 enable_option_checking
727 ac_precious_vars='build_alias
738 # Initialize some variables set by options.
740 ac_init_version=false
741 ac_unrecognized_opts=
743 # The variables have the same names as the options, with
744 # dashes changed to underlines.
752 program_transform_name=s,x,x,
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 includedir='${prefix}/include'
775 oldincludedir='/usr/include'
776 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
777 infodir='${datarootdir}/info'
782 libdir='${exec_prefix}/lib'
783 localedir='${datarootdir}/locale'
784 mandir='${datarootdir}/man'
790 # If the previous option needs an argument, assign it.
791 if test -n "$ac_prev"; then
792 eval $ac_prev=\$ac_option
798 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 # Accept the important Cygnus configure options, so we can diagnose typos.
805 case $ac_dashdash$ac_option in
809 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814 -build | --build | --buil | --bui | --bu)
815 ac_prev=build_alias ;;
816 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817 build_alias=$ac_optarg ;;
819 -cache-file | --cache-file | --cache-fil | --cache-fi \
820 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
821 ac_prev=cache_file ;;
822 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
823 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
824 cache_file=$ac_optarg ;;
827 cache_file=config.cache ;;
829 -datadir | --datadir | --datadi | --datad)
831 -datadir=* | --datadir=* | --datadi=* | --datad=*)
832 datadir=$ac_optarg ;;
834 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
835 | --dataroo | --dataro | --datar)
836 ac_prev=datarootdir ;;
837 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
838 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
839 datarootdir=$ac_optarg ;;
841 -disable-* | --disable-*)
842 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
845 as_fn_error $? "invalid feature name: $ac_useropt"
846 ac_useropt_orig=$ac_useropt
847 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
848 case $ac_user_opts in
852 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
853 ac_unrecognized_sep=', ';;
855 eval enable_$ac_useropt=no ;;
857 -docdir | --docdir | --docdi | --doc | --do)
859 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867 -enable-* | --enable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error $? "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
881 eval enable_$ac_useropt=\$ac_optarg ;;
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
896 -help | --help | --hel | --he | -h)
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
912 htmldir=$ac_optarg ;;
914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
926 -libdir | --libdir | --libdi | --libd)
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
938 -localedir | --localedir | --localedi | --localed | --locale)
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
943 -localstatedir | --localstatedir | --localstatedi | --localstated \
944 | --localstate | --localstat | --localsta | --localst | --locals)
945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948 localstatedir=$ac_optarg ;;
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
956 # Obsolete; use --without-fp.
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960 | --no-cr | --no-c | -n)
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1017 -psdir | --psdir | --psdi | --psd | --ps)
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030 sbindir=$ac_optarg ;;
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041 sharedstatedir=$ac_optarg ;;
1043 -site | --site | --sit)
1045 -site=* | --site=* | --sit=*)
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1072 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid package name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1085 eval with_$ac_useropt=\$ac_optarg ;;
1087 -without-* | --without-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid package name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1101 eval with_$ac_useropt=no ;;
1104 # Obsolete; use --with-x.
1107 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1108 | --x-incl | --x-inc | --x-in | --x-i)
1109 ac_prev=x_includes ;;
1110 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1111 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1112 x_includes=$ac_optarg ;;
1114 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1115 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1116 ac_prev=x_libraries ;;
1117 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1118 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1119 x_libraries=$ac_optarg ;;
1121 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1122 Try \`$0 --help' for more information"
1126 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1127 # Reject names that are not valid shell variable names.
1128 case $ac_envvar in #(
1129 '' | [0-9]* | *[!_$as_cr_alnum]* )
1130 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1132 eval $ac_envvar=\$ac_optarg
1133 export $ac_envvar ;;
1136 # FIXME: should be removed in autoconf 3.0.
1137 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1138 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1140 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1146 if test -n "$ac_prev"; then
1147 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1148 as_fn_error $? "missing argument to $ac_option"
1151 if test -n "$ac_unrecognized_opts"; then
1152 case $enable_option_checking in
1154 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1155 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1159 # Check all directory arguments for consistency.
1160 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1161 datadir sysconfdir sharedstatedir localstatedir includedir \
1162 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1163 libdir localedir mandir
1165 eval ac_val=\$$ac_var
1166 # Remove trailing slashes.
1169 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1170 eval $ac_var=\$ac_val;;
1172 # Be sure to have absolute directory names.
1174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1180 # There might be people who depend on the old broken behavior: `$host'
1181 # used to hold the argument of --host etc.
1182 # FIXME: To remove some day.
1185 target=$target_alias
1187 # FIXME: To remove some day.
1188 if test "x$host_alias" != x; then
1189 if test "x$build_alias" = x; then
1190 cross_compiling=maybe
1191 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1192 If a cross compiler is detected then cross compile mode will be used" >&2
1193 elif test "x$build_alias" != "x$host_alias"; then
1199 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201 test "$silent" = yes && exec 6>/dev/null
1204 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1205 ac_ls_di=`ls -di .` &&
1206 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1207 as_fn_error $? "working directory cannot be determined"
1208 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209 as_fn_error $? "pwd does not report name of working directory"
1212 # Find the source files, if location was not specified.
1213 if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
1215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir=`$as_dirname -- "$as_myself" ||
1217 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1218 X"$as_myself" : 'X\(//\)[^/]' \| \
1219 X"$as_myself" : 'X\(//\)$' \| \
1220 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1221 $as_echo X"$as_myself" |
1222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1240 if test ! -r "$srcdir/$ac_unique_file"; then
1244 ac_srcdir_defaulted=no
1246 if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1250 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1254 # When building in place, set srcdir=.
1255 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258 # Remove unnecessary trailing slashes from srcdir.
1259 # Double slashes in file names in object file debugging info
1260 # mess up M-x gdb in Emacs.
1262 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264 for ac_var in $ac_precious_vars; do
1265 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_env_${ac_var}_value=\$${ac_var}
1267 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272 # Report the --help message.
1274 if test "$ac_init_help" = "long"; then
1275 # Omit some internal or obsolete options to make the list less imposing.
1276 # This message is too long to be a string in the A/UX 3.1 sh.
1278 \`configure' configures git 1.7.10.4 to adapt to many kinds of systems.
1280 Usage: $0 [OPTION]... [VAR=VALUE]...
1282 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1283 VAR=VALUE. See below for descriptions of some of the useful variables.
1285 Defaults for the options are specified in brackets.
1288 -h, --help display this help and exit
1289 --help=short display options specific to this package
1290 --help=recursive display the short help of all the included packages
1291 -V, --version display version information and exit
1292 -q, --quiet, --silent do not print \`checking ...' messages
1293 --cache-file=FILE cache test results in FILE [disabled]
1294 -C, --config-cache alias for \`--cache-file=config.cache'
1295 -n, --no-create do not create output files
1296 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1298 Installation directories:
1299 --prefix=PREFIX install architecture-independent files in PREFIX
1300 [$ac_default_prefix]
1301 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1304 By default, \`make install' will install all the files in
1305 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1306 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1307 for instance \`--prefix=\$HOME'.
1309 For better control, use the options below.
1311 Fine tuning of the installation directories:
1312 --bindir=DIR user executables [EPREFIX/bin]
1313 --sbindir=DIR system admin executables [EPREFIX/sbin]
1314 --libexecdir=DIR program executables [EPREFIX/libexec]
1315 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1316 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1317 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1318 --libdir=DIR object code libraries [EPREFIX/lib]
1319 --includedir=DIR C header files [PREFIX/include]
1320 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1321 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1322 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1323 --infodir=DIR info documentation [DATAROOTDIR/info]
1324 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1325 --mandir=DIR man documentation [DATAROOTDIR/man]
1326 --docdir=DIR documentation root [DATAROOTDIR/doc/git]
1327 --htmldir=DIR html documentation [DOCDIR]
1328 --dvidir=DIR dvi documentation [DOCDIR]
1329 --pdfdir=DIR pdf documentation [DOCDIR]
1330 --psdir=DIR ps documentation [DOCDIR]
1337 if test -n "$ac_init_help"; then
1338 case $ac_init_help in
1339 short | recursive ) echo "Configuration of git 1.7.10.4:";;
1344 --disable-option-checking ignore unrecognized --enable/--with options
1345 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1346 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1347 --enable-pthreads=FLAGS FLAGS is the value to pass to the compiler to enable
1348 POSIX Threads. The default if FLAGS is not specified
1349 is to try first -pthread and then -lpthread.
1350 --without-pthreads will disable threading.
1351 --enable-jsmin=PATH PATH is the name of a JavaScript minifier or the
1352 absolute path to one.
1353 --enable-cssmin=PATH PATH is the name of a CSS minifier or the absolute
1357 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1358 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1359 --with-sane-tool-path=DIR-1[:DIR-2...:DIR-n]
1360 Directories to prepend to PATH in build system and
1362 --with-lib=ARG ARG specifies alternative name for lib directory
1363 --with-openssl use OpenSSL library (default is YES)
1364 ARG can be prefix for openssl library and headers
1365 --with-libpcre support Perl-compatible regexes (default is NO)
1366 ARG can be also prefix for libpcre library and
1368 --with-curl support http(s):// transports (default is YES)
1369 ARG can be also prefix for curl library and headers
1370 --with-expat support git-push using http:// and https://
1371 transports via WebDAV (default is YES)
1372 ARG can be also prefix for expat library and headers
1373 --without-iconv if your architecture doesn't properly support iconv
1374 --with-iconv=PATH PATH is prefix for libiconv library and headers
1375 used only if you need linking with libiconv
1376 --with-gitconfig=VALUE Use VALUE instead of /etc/gitconfig as the global
1377 git configuration file. If VALUE is not fully
1378 qualified it will be interpreted as a path relative
1379 to the computed prefix at runtime.
1380 --with-gitattributes=VALUE
1381 Use VALUE instead of /etc/gitattributes as the
1382 global git attributes file. If VALUE is not fully
1383 qualified it will be interpreted as a path relative
1384 to the computed prefix at runtime.
1385 --with-pager=VALUE Use VALUE as the fall-back pager instead of 'less'.
1386 This is used by things like 'git log' when the user
1387 does not specify a pager to use through alternate
1388 methods. eg: /usr/bin/pager
1389 --with-editor=VALUE Use VALUE as the fall-back editor instead of 'vi'.
1390 This is used by things like 'git commit' when the
1391 user does not specify a preferred editor through
1392 other methods. eg: /usr/bin/editor
1393 --with-shell=PATH provide PATH to shell
1394 --with-perl=PATH provide PATH to perl
1395 --with-python=PATH provide PATH to python
1396 --with-zlib=PATH provide PATH to zlib
1397 --with-tcltk use Tcl/Tk GUI (default is YES)
1398 ARG is the full path to the Tcl/Tk interpreter.
1399 Bare --with-tcltk will make the GUI part only if
1400 Tcl/Tk interpreter will be found in a system.
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1415 Report bugs to <git@vger.kernel.org>.
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1445 .) # We are building in place.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1478 git configure 1.7.10.4
1479 generated by GNU Autoconf 2.67
1481 Copyright (C) 2010 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext; then :
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1525 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1526 as_fn_set_status $ac_retval
1528 } # ac_fn_c_try_compile
1530 # ac_fn_c_try_link LINENO
1531 # -----------------------
1532 # Try to link conftest.$ac_ext, and return whether this succeeded.
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext conftest$ac_exeext
1537 if { { ac_try="$ac_link"
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_link") 2>conftest.err
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_c_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest$ac_exeext && {
1556 test "$cross_compiling" = yes ||
1557 $as_test_x conftest$ac_exeext
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1566 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1567 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1568 # interfere with the next link command; also delete a directory that is
1569 # left behind by Apple's compiler. We do this before executing the actions.
1570 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1571 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1572 as_fn_set_status $ac_retval
1574 } # ac_fn_c_try_link
1576 # ac_fn_c_check_func LINENO FUNC VAR
1577 # ----------------------------------
1578 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1579 ac_fn_c_check_func ()
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583 $as_echo_n "checking for $2... " >&6; }
1584 if eval "test \"\${$3+set}\"" = set; then :
1585 $as_echo_n "(cached) " >&6
1587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1588 /* end confdefs.h. */
1589 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1591 #define $2 innocuous_$2
1593 /* System header to define __stub macros and hopefully few prototypes,
1594 which can conflict with char $2 (); below.
1595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1596 <limits.h> exists even on freestanding compilers. */
1599 # include <limits.h>
1601 # include <assert.h>
1606 /* Override any GCC internal prototype to avoid an error.
1607 Use char because int might match the return type of a GCC
1608 builtin and then its argument prototype would still apply. */
1613 /* The GNU C library defines this for functions which it implements
1614 to always fail with ENOSYS. Some functions are actually named
1615 something starting with __ and the normal name is an alias. */
1616 #if defined __stub_$2 || defined __stub___$2
1628 if ac_fn_c_try_link "$LINENO"; then :
1633 rm -f core conftest.err conftest.$ac_objext \
1634 conftest$ac_exeext conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1641 } # ac_fn_c_check_func
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } > conftest.i && {
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676 as_fn_set_status $ac_retval
1680 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1683 # the include files in INCLUDES and setting the cache variable VAR
1685 ac_fn_c_check_header_mongrel ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 if eval "test \"\${$3+set}\"" = set; then :
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1690 $as_echo_n "checking for $2... " >&6; }
1691 if eval "test \"\${$3+set}\"" = set; then :
1692 $as_echo_n "(cached) " >&6
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 $as_echo "$ac_res" >&6; }
1698 # Is the header compilable?
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1700 $as_echo_n "checking $2 usability... " >&6; }
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702 /* end confdefs.h. */
1706 if ac_fn_c_try_compile "$LINENO"; then :
1707 ac_header_compiler=yes
1709 ac_header_compiler=no
1711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1713 $as_echo "$ac_header_compiler" >&6; }
1715 # Is the header present?
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1717 $as_echo_n "checking $2 presence... " >&6; }
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1722 if ac_fn_c_try_cpp "$LINENO"; then :
1723 ac_header_preproc=yes
1725 ac_header_preproc=no
1727 rm -f conftest.err conftest.i conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1729 $as_echo "$ac_header_preproc" >&6; }
1731 # So? What about this header?
1732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1735 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1737 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1741 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1743 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1745 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1747 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1749 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1750 ( $as_echo "## ---------------------------------- ##
1751 ## Report this to git@vger.kernel.org ##
1752 ## ---------------------------------- ##"
1753 ) | sed "s/^/$as_me: WARNING: /" >&2
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval "test \"\${$3+set}\"" = set; then :
1759 $as_echo_n "(cached) " >&6
1761 eval "$3=\$ac_header_compiler"
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 $as_echo "$ac_res" >&6; }
1767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 } # ac_fn_c_check_header_mongrel
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=$ac_status
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 as_fn_set_status $ac_retval
1813 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1814 # -------------------------------------------------------
1815 # Tests whether HEADER exists and can be compiled using the include files in
1816 # INCLUDES, setting the cache variable VAR accordingly.
1817 ac_fn_c_check_header_compile ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval "test \"\${$3+set}\"" = set; then :
1823 $as_echo_n "(cached) " >&6
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1830 if ac_fn_c_try_compile "$LINENO"; then :
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 } # ac_fn_c_check_header_compile
1844 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1845 # -------------------------------------------
1846 # Tests whether TYPE exists after having included INCLUDES, setting cache
1847 # variable VAR accordingly.
1848 ac_fn_c_check_type ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval "test \"\${$3+set}\"" = set; then :
1854 $as_echo_n "(cached) " >&6
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1882 if ac_fn_c_try_compile "$LINENO"; then :
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896 } # ac_fn_c_check_type
1898 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1899 # ----------------------------------------------------
1900 # Tries to find if the field MEMBER exists in type AGGR, after including
1901 # INCLUDES, setting cache variable VAR accordingly.
1902 ac_fn_c_check_member ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1906 $as_echo_n "checking for $2.$3... " >&6; }
1907 if eval "test \"\${$4+set}\"" = set; then :
1908 $as_echo_n "(cached) " >&6
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1923 if ac_fn_c_try_compile "$LINENO"; then :
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1933 if (sizeof ac_aggr.$3)
1939 if ac_fn_c_try_compile "$LINENO"; then :
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 } # ac_fn_c_check_member
1954 cat >config.log <<_ACEOF
1955 This file contains any messages produced by compilers while
1956 running configure, to aid debugging if configure makes a mistake.
1958 It was created by git $as_me 1.7.10.4, which was
1959 generated by GNU Autoconf 2.67. Invocation command line was
1971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1978 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1980 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1981 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1983 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1984 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1985 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1986 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 test -z "$as_dir" && as_dir=.
1995 $as_echo "PATH: $as_dir"
2011 # Keep a trace of the command line.
2012 # Strip out --no-create and --no-recursion so they do not pile up.
2013 # Strip out --silent because we don't want to record it for future runs.
2014 # Also quote any args containing shell meta-characters.
2015 # Make two passes to allow for proper duplicate-argument suppression.
2019 ac_must_keep_next=false
2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027 | -silent | --silent | --silen | --sile | --sil)
2030 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2035 as_fn_append ac_configure_args1 " '$ac_arg'"
2036 if test $ac_must_keep_next = true; then
2037 ac_must_keep_next=false # Got value, back to normal.
2040 *=* | --config-cache | -C | -disable-* | --disable-* \
2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2043 | -with-* | --with-* | -without-* | --without-* | --x)
2044 case "$ac_configure_args0 " in
2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2048 -* ) ac_must_keep_next=true ;;
2051 as_fn_append ac_configure_args " '$ac_arg'"
2056 { ac_configure_args0=; unset ac_configure_args0;}
2057 { ac_configure_args1=; unset ac_configure_args1;}
2059 # When interrupted or exit'd, cleanup temporary files, and complete
2060 # config.log. We remove comments because anyway the quotes in there
2061 # would cause problems or look ugly.
2062 # WARNING: Use '\'' to represent an apostrophe within the trap.
2063 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2064 trap 'exit_status=$?
2065 # Save into config.log some information that might help in debugging.
2069 $as_echo "## ---------------- ##
2070 ## Cache variables. ##
2071 ## ---------------- ##"
2073 # The following way of writing the cache mishandles newlines in values,
2075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2076 eval ac_val=\$$ac_var
2080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2081 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2084 _ | IFS | as_nl) ;; #(
2085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2086 *) { eval $ac_var=; unset $ac_var;} ;;
2091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2092 *${as_nl}ac_space=\ *)
2094 "s/'\''/'\''\\\\'\'''\''/g;
2095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2105 $as_echo "## ----------------- ##
2106 ## Output variables. ##
2107 ## ----------------- ##"
2109 for ac_var in $ac_subst_vars
2111 eval ac_val=\$$ac_var
2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 $as_echo "$ac_var='\''$ac_val'\''"
2119 if test -n "$ac_subst_files"; then
2120 $as_echo "## ------------------- ##
2121 ## File substitutions. ##
2122 ## ------------------- ##"
2124 for ac_var in $ac_subst_files
2126 eval ac_val=\$$ac_var
2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130 $as_echo "$ac_var='\''$ac_val'\''"
2135 if test -s confdefs.h; then
2136 $as_echo "## ----------- ##
2143 test "$ac_signal" != 0 &&
2144 $as_echo "$as_me: caught signal $ac_signal"
2145 $as_echo "$as_me: exit $exit_status"
2147 rm -f core *.core core.conftest.* &&
2148 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2151 for ac_signal in 1 2 13 15; do
2152 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2157 rm -f -r conftest* confdefs.h
2159 $as_echo "/* confdefs.h */" > confdefs.h
2161 # Predefined preprocessor variables.
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_NAME "$PACKAGE_NAME"
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_STRING "$PACKAGE_STRING"
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_URL "$PACKAGE_URL"
2188 # Let the site file select an alternate cache file if it wants to.
2189 # Prefer an explicitly selected file to automatically selected ones.
2192 if test -n "$CONFIG_SITE"; then
2193 # We do not want a PATH search for config.site.
2194 case $CONFIG_SITE in #((
2195 -*) ac_site_file1=./$CONFIG_SITE;;
2196 */*) ac_site_file1=$CONFIG_SITE;;
2197 *) ac_site_file1=./$CONFIG_SITE;;
2199 elif test "x$prefix" != xNONE; then
2200 ac_site_file1=$prefix/share/config.site
2201 ac_site_file2=$prefix/etc/config.site
2203 ac_site_file1=$ac_default_prefix/share/config.site
2204 ac_site_file2=$ac_default_prefix/etc/config.site
2206 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2208 test "x$ac_site_file" = xNONE && continue
2209 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2211 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2212 sed 's/^/| /' "$ac_site_file" >&5
2214 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 as_fn_error $? "failed to load site script $ac_site_file
2217 See \`config.log' for more details" "$LINENO" 5 ; }
2221 if test -r "$cache_file"; then
2222 # Some versions of bash will fail to source /dev/null (special files
2223 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2224 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2226 $as_echo "$as_me: loading cache $cache_file" >&6;}
2228 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2229 *) . "./$cache_file";;
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2234 $as_echo "$as_me: creating cache $cache_file" >&6;}
2238 # Check that the precious variables saved in the cache have kept the same
2240 ac_cache_corrupted=false
2241 for ac_var in $ac_precious_vars; do
2242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2243 eval ac_new_set=\$ac_env_${ac_var}_set
2244 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2245 eval ac_new_val=\$ac_env_${ac_var}_value
2246 case $ac_old_set,$ac_new_set in
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2249 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2250 ac_cache_corrupted=: ;;
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2254 ac_cache_corrupted=: ;;
2257 if test "x$ac_old_val" != "x$ac_new_val"; then
2258 # differences in whitespace do not lead to failure.
2259 ac_old_val_w=`echo x $ac_old_val`
2260 ac_new_val_w=`echo x $ac_new_val`
2261 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2263 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2264 ac_cache_corrupted=:
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2267 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2268 eval $ac_var=\$ac_old_val
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2271 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2273 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2276 # Pass precious variables to config.status.
2277 if test "$ac_new_set" = set; then
2279 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 *) ac_arg=$ac_var=$ac_new_val ;;
2282 case " $ac_configure_args " in
2283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2284 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2288 if $ac_cache_corrupted; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2292 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2293 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2295 ## -------------------- ##
2296 ## Main body of script. ##
2297 ## -------------------- ##
2300 ac_cpp='$CPP $CPPFLAGS'
2301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309 config_file=config.mak.autogen
2310 config_append=config.mak.append
2311 config_in=config.mak.in
2313 echo "# ${config_append}. Generated by configure." > "${config_append}"
2316 ## Definitions of macros
2317 # GIT_CONF_APPEND_LINE(LINE)
2318 # --------------------------
2319 # Append LINE to file ${config_append}
2320 # GIT_CONF_APPEND_LINE
2322 # GIT_ARG_SET_PATH(PROGRAM)
2323 # -------------------------
2324 # Provide --with-PROGRAM=PATH option to set PATH to PROGRAM
2325 # Optional second argument allows setting NO_PROGRAM=YesPlease if
2326 # --without-PROGRAM version used.
2329 # GIT_CONF_APPEND_PATH(PROGRAM)
2330 # ------------------------------
2331 # Parse --with-PROGRAM=PATH option to set PROGRAM_PATH=PATH
2332 # Used by GIT_ARG_SET_PATH(PROGRAM)
2333 # Optional second argument allows setting NO_PROGRAM=YesPlease if
2334 # --without-PROGRAM is used.
2335 # GIT_CONF_APPEND_PATH
2337 # GIT_PARSE_WITH(PACKAGE)
2338 # -----------------------
2339 # For use in AC_ARG_WITH action-if-found, for packages default ON.
2340 # * Set NO_PACKAGE=YesPlease for --without-PACKAGE
2341 # * Set PACKAGEDIR=PATH for --with-PACKAGE=PATH
2342 # * Unset NO_PACKAGE for --with-PACKAGE without ARG
2345 # GIT_PARSE_WITH_SET_MAKE_VAR(WITHNAME, VAR, HELP_TEXT)
2346 # ---------------------
2347 # Set VAR to the value specied by --with-WITHNAME.
2348 # No verification of arguments is performed, but warnings are issued
2349 # if either 'yes' or 'no' is specified.
2350 # HELP_TEXT is presented when --help is called.
2351 # This is a direct way to allow setting variables in the Makefile.
2352 # GIT_PARSE_WITH_SET_MAKE_VAR
2360 # Directories holding "saner" versions of common or POSIX binaries.
2362 # Check whether --with-sane-tool-path was given.
2363 if test "${with_sane_tool_path+set}" = set; then :
2364 withval=$with_sane_tool_path; if test "$withval" = "no"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting SANE_TOOL_PATH to '$withval'" >&5
2368 $as_echo "$as_me: Setting SANE_TOOL_PATH to '$withval'" >&6;}
2370 echo "SANE_TOOL_PATH=$withval" >> "${config_append}"
2372 # If the "--with-sane-tool-path" option was not given, don't touch
2373 # SANE_TOOL_PATH here, but let defaults in Makefile take care of it.
2374 # This should minimize spurious differences in the behaviour of the
2375 # Git build system when configure is used w.r.t. when it is not.
2380 ## Site configuration related to programs (before tests)
2381 ## --with-PACKAGE[=ARG] and --without-PACKAGE
2383 # Set lib to alternative name of lib directory (e.g. lib64)
2385 # Check whether --with-lib was given.
2386 if test "${with_lib+set}" = set; then :
2387 withval=$with_lib; if test "$withval" = "no" || test "$withval" = "yes"; then \
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide name for --with-lib=ARG" >&5
2389 $as_echo "$as_me: WARNING: You should provide name for --with-lib=ARG" >&2;}; \
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting lib to '$lib'" >&5
2393 $as_echo "$as_me: Setting lib to '$lib'" >&6;}; \
2394 echo "lib=$withval" >> "${config_append}"; \
2400 if test -z "$lib"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting lib to 'lib' (the default)" >&5
2402 $as_echo "$as_me: Setting lib to 'lib' (the default)" >&6;}
2406 # Check whether --enable-pthreads was given.
2407 if test "${enable_pthreads+set}" = set; then :
2408 enableval=$enable_pthreads;
2409 if test "x$enableval" = "xyes"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: Will try -pthread then -lpthread to enable POSIX Threads" >&5
2411 $as_echo "$as_me: Will try -pthread then -lpthread to enable POSIX Threads" >&6;}
2412 elif test "x$enableval" != "xno"; then
2413 PTHREAD_CFLAGS=$enableval
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting '$PTHREAD_CFLAGS' as the FLAGS to enable POSIX Threads" >&5
2415 $as_echo "$as_me: Setting '$PTHREAD_CFLAGS' as the FLAGS to enable POSIX Threads" >&6;}
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: POSIX Threads will be disabled." >&5
2418 $as_echo "$as_me: POSIX Threads will be disabled." >&6;}
2419 NO_PTHREADS=YesPlease
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: Will try -pthread then -lpthread to enable POSIX Threads." >&5
2425 $as_echo "$as_me: Will try -pthread then -lpthread to enable POSIX Threads." >&6;}
2430 # Define option to enable JavaScript minification
2431 # Check whether --enable-jsmin was given.
2432 if test "${enable_jsmin+set}" = set; then :
2433 enableval=$enable_jsmin;
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting JSMIN to '$JSMIN' to enable JavaScript minifying" >&5
2436 $as_echo "$as_me: Setting JSMIN to '$JSMIN' to enable JavaScript minifying" >&6;}
2437 echo "JSMIN=$enableval" >> "${config_append}";
2442 # Define option to enable CSS minification
2443 # Check whether --enable-cssmin was given.
2444 if test "${enable_cssmin+set}" = set; then :
2445 enableval=$enable_cssmin;
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting CSSMIN to '$CSSMIN' to enable CSS minifying" >&5
2448 $as_echo "$as_me: Setting CSSMIN to '$CSSMIN' to enable CSS minifying" >&6;}
2449 echo "CSSMIN=$enableval" >> "${config_append}";
2454 ## Site configuration (override autodetection)
2455 ## --with-PACKAGE[=ARG] and --without-PACKAGE
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for site configuration" >&5
2457 $as_echo "$as_me: CHECKS for site configuration" >&6;}
2459 # Define NO_SVN_TESTS if you want to skip time-consuming SVN interoperability
2460 # tests. These tests take up a significant amount of the total test time
2461 # but are not needed unless you plan to talk to SVN repos.
2463 # Define PPC_SHA1 environment variable when running make to make use of
2464 # a bundled SHA1 routine optimized for PowerPC.
2466 # Define NO_OPENSSL environment variable if you do not have OpenSSL.
2467 # This also implies BLK_SHA1.
2469 # Define OPENSSLDIR=/foo/bar if your openssl header and library files are in
2470 # /foo/bar/include and /foo/bar/lib directories.
2472 # Check whether --with-openssl was given.
2473 if test "${with_openssl+set}" = set; then :
2474 withval=$with_openssl; \
2476 if test "$withval" = "no"; then \
2477 NO_OPENSSL=YesPlease; \
2478 elif test "$withval" = "yes"; then \
2482 OPENSSLDIR=$withval; \
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting OPENSSLDIR to $withval" >&5
2484 $as_echo "$as_me: Setting OPENSSLDIR to $withval" >&6;}; \
2485 echo "${PACKAGE}DIR=$withval" >> "${config_append}"; \
2491 # Define USE_LIBPCRE if you have and want to use libpcre. git-grep will be
2492 # able to use Perl-compatible regular expressions.
2494 # Define LIBPCREDIR=/foo/bar if your libpcre header and library files are in
2495 # /foo/bar/include and /foo/bar/lib directories.
2498 # Check whether --with-libpcre was given.
2499 if test "${with_libpcre+set}" = set; then :
2500 withval=$with_libpcre; if test "$withval" = "no"; then \
2502 elif test "$withval" = "yes"; then \
2503 USE_LIBPCRE=YesPlease; \
2505 USE_LIBPCRE=YesPlease; \
2506 LIBPCREDIR=$withval; \
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting LIBPCREDIR to $withval" >&5
2508 $as_echo "$as_me: Setting LIBPCREDIR to $withval" >&6;}; \
2509 echo "LIBPCREDIR=$withval" >> "${config_append}"; \
2515 # Define NO_CURL if you do not have curl installed. git-http-pull and
2516 # git-http-push are not built, and you cannot use http:// and https://
2519 # Define CURLDIR=/foo/bar if your curl header and library files are in
2520 # /foo/bar/include and /foo/bar/lib directories.
2522 # Check whether --with-curl was given.
2523 if test "${with_curl+set}" = set; then :
2524 withval=$with_curl; PACKAGE=CURL; \
2525 if test "$withval" = "no"; then \
2526 NO_CURL=YesPlease; \
2527 elif test "$withval" = "yes"; then \
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting CURLDIR to $withval" >&5
2533 $as_echo "$as_me: Setting CURLDIR to $withval" >&6;}; \
2534 echo "${PACKAGE}DIR=$withval" >> "${config_append}"; \
2540 # Define NO_EXPAT if you do not have expat installed. git-http-push is
2541 # not built, and you cannot push using http:// and https:// transports.
2543 # Define EXPATDIR=/foo/bar if your expat header and library files are in
2544 # /foo/bar/include and /foo/bar/lib directories.
2546 # Check whether --with-expat was given.
2547 if test "${with_expat+set}" = set; then :
2548 withval=$with_expat; PACKAGE=EXPAT; \
2549 if test "$withval" = "no"; then \
2550 NO_EXPAT=YesPlease; \
2551 elif test "$withval" = "yes"; then \
2555 EXPATDIR=$withval; \
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting EXPATDIR to $withval" >&5
2557 $as_echo "$as_me: Setting EXPATDIR to $withval" >&6;}; \
2558 echo "${PACKAGE}DIR=$withval" >> "${config_append}"; \
2564 # Define NO_FINK if you are building on Darwin/Mac OS X, have Fink
2565 # installed in /sw, but don't want GIT to link against any libraries
2566 # installed there. If defined you may specify your own (or Fink's)
2567 # include directories and library directories by defining CFLAGS
2568 # and LDFLAGS appropriately.
2570 # Define NO_DARWIN_PORTS if you are building on Darwin/Mac OS X,
2571 # have DarwinPorts installed in /opt/local, but don't want GIT to
2572 # link against any libraries installed there. If defined you may
2573 # specify your own (or DarwinPort's) include directories and
2574 # library directories by defining CFLAGS and LDFLAGS appropriately.
2576 # Define NO_MMAP if you want to avoid mmap.
2578 # Define NO_ICONV if your libc does not properly support iconv.
2580 # Check whether --with-iconv was given.
2581 if test "${with_iconv+set}" = set; then :
2582 withval=$with_iconv; PACKAGE=ICONV; \
2583 if test "$withval" = "no"; then \
2584 NO_ICONV=YesPlease; \
2585 elif test "$withval" = "yes"; then \
2589 ICONVDIR=$withval; \
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ICONVDIR to $withval" >&5
2591 $as_echo "$as_me: Setting ICONVDIR to $withval" >&6;}; \
2592 echo "${PACKAGE}DIR=$withval" >> "${config_append}"; \
2598 ## --enable-FEATURE[=ARG] and --disable-FEATURE
2600 # Define USE_NSEC below if you want git to care about sub-second file mtimes
2601 # and ctimes. Note that you need recent glibc (at least 2.2.4) for this, and
2602 # it will BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely
2603 # randomly break unless your underlying filesystem supports those sub-second
2604 # times (my ext3 doesn't).
2606 # Define USE_STDEV below if you want git to care about the underlying device
2607 # change being considered an inode change from the update-index perspective.
2610 # Allow user to set ETC_GITCONFIG variable
2612 # Check whether --with-gitconfig was given.
2613 if test "${with_gitconfig+set}" = set; then :
2614 withval=$with_gitconfig; if test -n "$withval"; then \
2615 if test "$withval" = "yes" -o "$withval" = "no"; then \
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
2617 a value for gitconfig (ETC_GITCONFIG). Maybe you do...?" >&5
2618 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
2619 a value for gitconfig (ETC_GITCONFIG). Maybe you do...?" >&2;}; \
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ETC_GITCONFIG to $withval" >&5
2623 $as_echo "$as_me: Setting ETC_GITCONFIG to $withval" >&6;}; \
2624 echo "ETC_GITCONFIG=$withval" >> "${config_append}"; \
2630 # Allow user to set ETC_GITATTRIBUTES variable
2632 # Check whether --with-gitattributes was given.
2633 if test "${with_gitattributes+set}" = set; then :
2634 withval=$with_gitattributes; if test -n "$withval"; then \
2635 if test "$withval" = "yes" -o "$withval" = "no"; then \
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
2637 a value for gitattributes (ETC_GITATTRIBUTES). Maybe you do...?" >&5
2638 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
2639 a value for gitattributes (ETC_GITATTRIBUTES). Maybe you do...?" >&2;}; \
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ETC_GITATTRIBUTES to $withval" >&5
2643 $as_echo "$as_me: Setting ETC_GITATTRIBUTES to $withval" >&6;}; \
2644 echo "ETC_GITATTRIBUTES=$withval" >> "${config_append}"; \
2650 # Allow user to set the default pager
2652 # Check whether --with-pager was given.
2653 if test "${with_pager+set}" = set; then :
2654 withval=$with_pager; if test -n "$withval"; then \
2655 if test "$withval" = "yes" -o "$withval" = "no"; then \
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
2657 a value for pager (DEFAULT_PAGER). Maybe you do...?" >&5
2658 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
2659 a value for pager (DEFAULT_PAGER). Maybe you do...?" >&2;}; \
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting DEFAULT_PAGER to $withval" >&5
2663 $as_echo "$as_me: Setting DEFAULT_PAGER to $withval" >&6;}; \
2664 echo "DEFAULT_PAGER=$withval" >> "${config_append}"; \
2669 # Allow user to set the default editor
2671 # Check whether --with-editor was given.
2672 if test "${with_editor+set}" = set; then :
2673 withval=$with_editor; if test -n "$withval"; then \
2674 if test "$withval" = "yes" -o "$withval" = "no"; then \
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
2676 a value for editor (DEFAULT_EDITOR). Maybe you do...?" >&5
2677 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
2678 a value for editor (DEFAULT_EDITOR). Maybe you do...?" >&2;}; \
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting DEFAULT_EDITOR to $withval" >&5
2682 $as_echo "$as_me: Setting DEFAULT_EDITOR to $withval" >&6;}; \
2683 echo "DEFAULT_EDITOR=$withval" >> "${config_append}"; \
2689 # Define SHELL_PATH to provide path to shell.
2691 # Check whether --with-shell was given.
2692 if test "${with_shell+set}" = set; then :
2693 withval=$with_shell; PROGRAM=SHELL; \
2694 if test "$withval" = "no"; then \
2695 if test -n ""; then \
2696 SHELL_PATH=$withval; \
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of ${PROGRAM}" >&5
2698 $as_echo "$as_me: Disabling use of ${PROGRAM}" >&6;}; \
2699 echo "NO_${PROGRAM}=YesPlease" >> "${config_append}"; \
2700 echo "${PROGRAM}_PATH=" >> "${config_append}"; \
2702 as_fn_error $? "You cannot use git without shell" "$LINENO" 5 ; \
2705 if test "$withval" = "yes"; then \
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-shell=PATH" >&5
2707 $as_echo "$as_me: WARNING: You should provide path for --with-shell=PATH" >&2;}; \
2709 SHELL_PATH=$withval; \
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting SHELL_PATH to $withval" >&5
2711 $as_echo "$as_me: Setting SHELL_PATH to $withval" >&6;}; \
2712 echo "${PROGRAM}_PATH=$withval" >> "${config_append}"; \
2720 # Define PERL_PATH to provide path to Perl.
2722 # Check whether --with-perl was given.
2723 if test "${with_perl+set}" = set; then :
2724 withval=$with_perl; PROGRAM=PERL; \
2725 if test "$withval" = "no"; then \
2726 if test -n ""; then \
2727 PERL_PATH=$withval; \
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of ${PROGRAM}" >&5
2729 $as_echo "$as_me: Disabling use of ${PROGRAM}" >&6;}; \
2730 echo "NO_${PROGRAM}=YesPlease" >> "${config_append}"; \
2731 echo "${PROGRAM}_PATH=" >> "${config_append}"; \
2733 as_fn_error $? "You cannot use git without perl" "$LINENO" 5 ; \
2736 if test "$withval" = "yes"; then \
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-perl=PATH" >&5
2738 $as_echo "$as_me: WARNING: You should provide path for --with-perl=PATH" >&2;}; \
2740 PERL_PATH=$withval; \
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting PERL_PATH to $withval" >&5
2742 $as_echo "$as_me: Setting PERL_PATH to $withval" >&6;}; \
2743 echo "${PROGRAM}_PATH=$withval" >> "${config_append}"; \
2751 # Define PYTHON_PATH to provide path to Python.
2753 # Check whether --with-python was given.
2754 if test "${with_python+set}" = set; then :
2755 withval=$with_python; PROGRAM=PYTHON; \
2756 if test "$withval" = "no"; then \
2757 if test -n "allow-without"; then \
2758 PYTHON_PATH=$withval; \
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of ${PROGRAM}" >&5
2760 $as_echo "$as_me: Disabling use of ${PROGRAM}" >&6;}; \
2761 echo "NO_${PROGRAM}=YesPlease" >> "${config_append}"; \
2762 echo "${PROGRAM}_PATH=" >> "${config_append}"; \
2764 as_fn_error $? "You cannot use git without python" "$LINENO" 5 ; \
2767 if test "$withval" = "yes"; then \
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-python=PATH" >&5
2769 $as_echo "$as_me: WARNING: You should provide path for --with-python=PATH" >&2;}; \
2771 PYTHON_PATH=$withval; \
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting PYTHON_PATH to $withval" >&5
2773 $as_echo "$as_me: Setting PYTHON_PATH to $withval" >&6;}; \
2774 echo "${PROGRAM}_PATH=$withval" >> "${config_append}"; \
2782 # Define ZLIB_PATH to provide path to zlib.
2784 # Check whether --with-zlib was given.
2785 if test "${with_zlib+set}" = set; then :
2786 withval=$with_zlib; PROGRAM=ZLIB; \
2787 if test "$withval" = "no"; then \
2788 if test -n ""; then \
2789 ZLIB_PATH=$withval; \
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of ${PROGRAM}" >&5
2791 $as_echo "$as_me: Disabling use of ${PROGRAM}" >&6;}; \
2792 echo "NO_${PROGRAM}=YesPlease" >> "${config_append}"; \
2793 echo "${PROGRAM}_PATH=" >> "${config_append}"; \
2795 as_fn_error $? "You cannot use git without zlib" "$LINENO" 5 ; \
2798 if test "$withval" = "yes"; then \
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-zlib=PATH" >&5
2800 $as_echo "$as_me: WARNING: You should provide path for --with-zlib=PATH" >&2;}; \
2802 ZLIB_PATH=$withval; \
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ZLIB_PATH to $withval" >&5
2804 $as_echo "$as_me: Setting ZLIB_PATH to $withval" >&6;}; \
2805 echo "${PROGRAM}_PATH=$withval" >> "${config_append}"; \
2813 # Declare the with-tcltk/without-tcltk options.
2815 # Check whether --with-tcltk was given.
2816 if test "${with_tcltk+set}" = set; then :
2817 withval=$with_tcltk; \
2819 if test "$withval" = "no"; then \
2820 NO_TCLTK=YesPlease; \
2821 elif test "$withval" = "yes"; then \
2825 TCLTKDIR=$withval; \
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting TCLTKDIR to $withval" >&5
2827 $as_echo "$as_me: Setting TCLTKDIR to $withval" >&6;}; \
2828 echo "${PACKAGE}DIR=$withval" >> "${config_append}"; \
2836 ## Checks for programs.
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for programs" >&5
2838 $as_echo "$as_me: CHECKS for programs" >&6;}
2841 ac_cpp='$CPP $CPPFLAGS'
2842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845 if test -n "$ac_tool_prefix"; then
2846 for ac_prog in cc gcc
2848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2849 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if test "${ac_cv_prog_CC+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test -n "$CC"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878 $as_echo "$CC" >&6; }
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2885 test -n "$CC" && break
2888 if test -z "$CC"; then
2890 for ac_prog in cc gcc
2892 # Extract the first word of "$ac_prog", so it can be a program name with args.
2893 set dummy $ac_prog; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2897 $as_echo_n "(cached) " >&6
2899 if test -n "$ac_ct_CC"; then
2900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_ac_ct_CC="$ac_prog"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920 if test -n "$ac_ct_CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2922 $as_echo "$ac_ct_CC" >&6; }
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2929 test -n "$ac_ct_CC" && break
2932 if test "x$ac_ct_CC" = x; then
2935 case $cross_compiling:$ac_tool_warned in
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2939 ac_tool_warned=yes ;;
2946 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 as_fn_error $? "no acceptable C compiler found in \$PATH
2949 See \`config.log' for more details" "$LINENO" 5 ; }
2951 # Provide some information about the compiler.
2952 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2955 for ac_option in --version -v -V -qversion; do
2956 { { ac_try="$ac_compiler $ac_option >&5"
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2962 $as_echo "$ac_try_echo"; } >&5
2963 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2965 if test -s conftest.err; then
2967 ... rest of stderr output deleted ...
2968 10q' conftest.err >conftest.er1
2969 cat conftest.er1 >&5
2971 rm -f conftest.er1 conftest.err
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2987 ac_clean_files_save=$ac_clean_files
2988 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2989 # Try to create an executable without -o first, disregard a.out.
2990 # It will help us diagnose broken compilers, and finding out an intuition
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2993 $as_echo_n "checking whether the C compiler works... " >&6; }
2994 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2996 # The possible output files:
2997 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3000 for ac_file in $ac_files
3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3004 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3009 if { { ac_try="$ac_link_default"
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3015 $as_echo "$ac_try_echo"; } >&5
3016 (eval "$ac_link_default") 2>&5
3018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3019 test $ac_status = 0; }; then :
3020 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3021 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3022 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3023 # so that the user can short-circuit this test for compilers unknown to
3025 for ac_file in $ac_files ''
3027 test -f "$ac_file" || continue
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3032 # We found the default executable, but exeext='' is most
3036 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3038 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3040 # We set ac_cv_exeext here because the later test for it is not
3041 # safe: cross compilers may not add the suffix if given an `-o'
3042 # argument, so we may need to know it at that point already.
3043 # Even if this section looks crufty: it has the advantage of
3050 test "$ac_cv_exeext" = no && ac_cv_exeext=
3055 if test -z "$ac_file"; then :
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058 $as_echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3061 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3063 as_fn_error 77 "C compiler cannot create executables
3064 See \`config.log' for more details" "$LINENO" 5 ; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3067 $as_echo "yes" >&6; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3070 $as_echo_n "checking for C compiler default output file name... " >&6; }
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3072 $as_echo "$ac_file" >&6; }
3073 ac_exeext=$ac_cv_exeext
3075 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3076 ac_clean_files=$ac_clean_files_save
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3078 $as_echo_n "checking for suffix of executables... " >&6; }
3079 if { { ac_try="$ac_link"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085 $as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_link") 2>&5
3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089 test $ac_status = 0; }; then :
3090 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3091 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3092 # work properly (i.e., refer to `conftest.exe'), while it won't with
3094 for ac_file in conftest.exe conftest conftest.*; do
3095 test -f "$ac_file" || continue
3097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3098 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3107 See \`config.log' for more details" "$LINENO" 5 ; }
3109 rm -f conftest conftest$ac_cv_exeext
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3111 $as_echo "$ac_cv_exeext" >&6; }
3113 rm -f conftest.$ac_ext
3114 EXEEXT=$ac_cv_exeext
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h. */
3122 FILE *f = fopen ("conftest.out", "w");
3123 return ferror (f) || fclose (f) != 0;
3129 ac_clean_files="$ac_clean_files conftest.out"
3130 # Check that the compiler produces executables we can run. If not, either
3131 # the compiler is broken, or we cross compile.
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3133 $as_echo_n "checking whether we are cross compiling... " >&6; }
3134 if test "$cross_compiling" != yes; then
3135 { { ac_try="$ac_link"
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 $as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_link") 2>&5
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }
3146 if { ac_try='./conftest$ac_cv_exeext'
3147 { { case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153 (eval "$ac_try") 2>&5
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }; }; then
3159 if test "$cross_compiling" = maybe; then
3162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 as_fn_error $? "cannot run C compiled programs.
3165 If you meant to cross compile, use \`--host'.
3166 See \`config.log' for more details" "$LINENO" 5 ; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3171 $as_echo "$cross_compiling" >&6; }
3173 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3174 ac_clean_files=$ac_clean_files_save
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3176 $as_echo_n "checking for suffix of object files... " >&6; }
3177 if test "${ac_cv_objext+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3191 rm -f conftest.o conftest.obj
3192 if { { ac_try="$ac_compile"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_compile") 2>&5
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; then :
3203 for ac_file in conftest.o conftest.obj conftest.*; do
3204 test -f "$ac_file" || continue;
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3207 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3212 $as_echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error $? "cannot compute suffix of object files: cannot compile
3218 See \`config.log' for more details" "$LINENO" 5 ; }
3220 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3223 $as_echo "$ac_cv_objext" >&6; }
3224 OBJEXT=$ac_cv_objext
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3227 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3228 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3245 if ac_fn_c_try_compile "$LINENO"; then :
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3255 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3256 if test $ac_compiler_gnu = yes; then
3261 ac_test_CFLAGS=${CFLAGS+set}
3262 ac_save_CFLAGS=$CFLAGS
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3264 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3265 if test "${ac_cv_prog_cc_g+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3268 ac_save_c_werror_flag=$ac_c_werror_flag
3269 ac_c_werror_flag=yes
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3283 if ac_fn_c_try_compile "$LINENO"; then :
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3298 if ac_fn_c_try_compile "$LINENO"; then :
3301 ac_c_werror_flag=$ac_save_c_werror_flag
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3314 if ac_fn_c_try_compile "$LINENO"; then :
3317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 ac_c_werror_flag=$ac_save_c_werror_flag
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3325 $as_echo "$ac_cv_prog_cc_g" >&6; }
3326 if test "$ac_test_CFLAGS" = set; then
3327 CFLAGS=$ac_save_CFLAGS
3328 elif test $ac_cv_prog_cc_g = yes; then
3329 if test "$GCC" = yes; then
3335 if test "$GCC" = yes; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3342 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3343 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
3346 ac_cv_prog_cc_c89=no
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3352 #include <sys/types.h>
3353 #include <sys/stat.h>
3354 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3355 struct buf { int x; };
3356 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3357 static char *e (p, i)
3363 static char *f (char * (*g) (char **, int), char **p, ...)
3368 s = g (p, va_arg (v,int));
3373 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3374 function prototypes and stuff, but not '\xHH' hex character constants.
3375 These don't provoke an error unfortunately, instead are silently treated
3376 as 'x'. The following induces an error, until -std is added to get
3377 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3378 array size at least. It's necessary to write '\x00'==0 to get something
3379 that's true only with -std. */
3380 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3382 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3383 inside strings and character constants. */
3385 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3387 int test (int i, double x);
3388 struct s1 {int (*f) (int a);};
3389 struct s2 {int (*f) (double a);};
3390 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3396 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3401 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3402 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3404 CC="$ac_save_CC $ac_arg"
3405 if ac_fn_c_try_compile "$LINENO"; then :
3406 ac_cv_prog_cc_c89=$ac_arg
3408 rm -f core conftest.err conftest.$ac_objext
3409 test "x$ac_cv_prog_cc_c89" != "xno" && break
3411 rm -f conftest.$ac_ext
3416 case "x$ac_cv_prog_cc_c89" in
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3419 $as_echo "none needed" >&6; } ;;
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3422 $as_echo "unsupported" >&6; } ;;
3424 CC="$CC $ac_cv_prog_cc_c89"
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3426 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3428 if test "x$ac_cv_prog_cc_c89" != xno; then :
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3440 $as_echo_n "checking for inline... " >&6; }
3441 if test "${ac_cv_c_inline+set}" = set; then :
3442 $as_echo_n "(cached) " >&6
3445 for ac_kw in inline __inline__ __inline; do
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3450 static $ac_kw foo_t static_foo () {return 0; }
3451 $ac_kw foo_t foo () {return 0; }
3455 if ac_fn_c_try_compile "$LINENO"; then :
3456 ac_cv_c_inline=$ac_kw
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 test "$ac_cv_c_inline" != no && break
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3464 $as_echo "$ac_cv_c_inline" >&6; }
3466 case $ac_cv_c_inline in
3469 case $ac_cv_c_inline in
3471 *) ac_val=$ac_cv_c_inline;;
3473 cat >>confdefs.h <<_ACEOF
3475 #define inline $ac_val
3481 case $ac_cv_c_inline in
3482 inline | yes | no) ;;
3483 *) INLINE=$ac_cv_c_inline
3487 # which switch to pass runtime path to dynamic libraries to the linker
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -R" >&5
3489 $as_echo_n "checking if linker supports -R... " >&6; }
3490 if test "${git_cv_ld_dashr+set}" = set; then :
3491 $as_echo_n "(cached) " >&6
3494 SAVE_LDFLAGS="${LDFLAGS}"
3495 LDFLAGS="${SAVE_LDFLAGS} -R /"
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3507 if ac_fn_c_try_link "$LINENO"; then :
3512 rm -f core conftest.err conftest.$ac_objext \
3513 conftest$ac_exeext conftest.$ac_ext
3514 LDFLAGS="${SAVE_LDFLAGS}"
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_ld_dashr" >&5
3518 $as_echo "$git_cv_ld_dashr" >&6; }
3519 if test "$git_cv_ld_dashr" = "yes"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -Wl,-rpath," >&5
3524 $as_echo_n "checking if linker supports -Wl,-rpath,... " >&6; }
3525 if test "${git_cv_ld_wl_rpath+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
3529 SAVE_LDFLAGS="${LDFLAGS}"
3530 LDFLAGS="${SAVE_LDFLAGS} -Wl,-rpath,/"
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3542 if ac_fn_c_try_link "$LINENO"; then :
3543 git_cv_ld_wl_rpath=yes
3545 git_cv_ld_wl_rpath=no
3547 rm -f core conftest.err conftest.$ac_objext \
3548 conftest$ac_exeext conftest.$ac_ext
3549 LDFLAGS="${SAVE_LDFLAGS}"
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_ld_wl_rpath" >&5
3553 $as_echo "$git_cv_ld_wl_rpath" >&6; }
3554 if test "$git_cv_ld_wl_rpath" = "yes"; then
3555 CC_LD_DYNPATH=-Wl,-rpath,
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rpath" >&5
3559 $as_echo_n "checking if linker supports -rpath... " >&6; }
3560 if test "${git_cv_ld_rpath+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3564 SAVE_LDFLAGS="${LDFLAGS}"
3565 LDFLAGS="${SAVE_LDFLAGS} -rpath /"
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3577 if ac_fn_c_try_link "$LINENO"; then :
3582 rm -f core conftest.err conftest.$ac_objext \
3583 conftest$ac_exeext conftest.$ac_ext
3584 LDFLAGS="${SAVE_LDFLAGS}"
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_ld_rpath" >&5
3588 $as_echo "$git_cv_ld_rpath" >&6; }
3589 if test "$git_cv_ld_rpath" = "yes"; then
3590 CC_LD_DYNPATH=-rpath
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linker does not support runtime path to dynamic libraries" >&5
3594 $as_echo "$as_me: WARNING: linker does not support runtime path to dynamic libraries" >&2;}
3598 #AC_PROG_INSTALL # needs install-sh or install.sh in sources
3599 if test -n "$ac_tool_prefix"; then
3600 for ac_prog in gar ar
3602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if test "${ac_cv_prog_AR+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -n "$AR"; then
3610 ac_cv_prog_AR="$AR" # Let the user override the test.
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 if test -n "$AR"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3632 $as_echo "$AR" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3639 test -n "$AR" && break
3642 if test -z "$AR"; then
3644 for ac_prog in gar ar
3646 # Extract the first word of "$ac_prog", so it can be a program name with args.
3647 set dummy $ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
3653 if test -n "$ac_ct_AR"; then
3654 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663 ac_cv_prog_ac_ct_AR="$ac_prog"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3674 if test -n "$ac_ct_AR"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3676 $as_echo "$ac_ct_AR" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3683 test -n "$ac_ct_AR" && break
3686 if test "x$ac_ct_AR" = x; then
3689 case $cross_compiling:$ac_tool_warned in
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693 ac_tool_warned=yes ;;
3699 for ac_prog in gtar tar
3701 # Extract the first word of "$ac_prog", so it can be a program name with args.
3702 set dummy $ac_prog; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if test "${ac_cv_prog_TAR+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3708 if test -n "$TAR"; then
3709 ac_cv_prog_TAR="$TAR" # Let the user override the test.
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3718 ac_cv_prog_TAR="$ac_prog"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 if test -n "$TAR"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
3731 $as_echo "$TAR" >&6; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3738 test -n "$TAR" && break
3741 for ac_prog in gnudiff gdiff diff
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_DIFF+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3750 if test -n "$DIFF"; then
3751 ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_DIFF="$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 DIFF=$ac_cv_prog_DIFF
3771 if test -n "$DIFF"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
3773 $as_echo "$DIFF" >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$DIFF" && break
3783 # TCLTK_PATH will be set to some value if we want Tcl/Tk
3784 # or will be empty otherwise.
3785 if test -z "$NO_TCLTK"; then
3786 if test "$with_tcltk" = ""; then
3787 # No Tcl/Tk switches given. Do not check for Tcl/Tk, use bare 'wish'.
3790 elif test "$with_tcltk" = "yes"; then
3791 # Tcl/Tk check requested.
3794 # Extract the first word of "$ac_prog", so it can be a program name with args.
3795 set dummy $ac_prog; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if test "${ac_cv_prog_TCLTK_PATH+set}" = set; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -n "$TCLTK_PATH"; then
3802 ac_cv_prog_TCLTK_PATH="$TCLTK_PATH" # Let the user override the test.
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_TCLTK_PATH="$ac_prog"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 TCLTK_PATH=$ac_cv_prog_TCLTK_PATH
3822 if test -n "$TCLTK_PATH"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLTK_PATH" >&5
3824 $as_echo "$TCLTK_PATH" >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3831 test -n "$TCLTK_PATH" && break
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Tcl/Tk interpreter $with_tcltk" >&5
3836 $as_echo "Using Tcl/Tk interpreter $with_tcltk" >&6; }
3837 TCLTK_PATH="$with_tcltk"
3841 for ac_prog in asciidoc
3843 # Extract the first word of "$ac_prog", so it can be a program name with args.
3844 set dummy $ac_prog; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if test "${ac_cv_prog_ASCIIDOC+set}" = set; then :
3848 $as_echo_n "(cached) " >&6
3850 if test -n "$ASCIIDOC"; then
3851 ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3860 ac_cv_prog_ASCIIDOC="$ac_prog"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 ASCIIDOC=$ac_cv_prog_ASCIIDOC
3871 if test -n "$ASCIIDOC"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
3873 $as_echo "$ASCIIDOC" >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3880 test -n "$ASCIIDOC" && break
3883 if test -n "$ASCIIDOC"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asciidoc version" >&5
3885 $as_echo_n "checking for asciidoc version... " >&6; }
3886 asciidoc_version=`$ASCIIDOC --version 2>/dev/null`
3887 case "${asciidoc_version}" in
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version} > 7" >&5
3891 $as_echo "${asciidoc_version} > 7" >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version}" >&5
3896 $as_echo "${asciidoc_version}" >&6; }
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version} (unknown)" >&5
3901 $as_echo "${asciidoc_version} (unknown)" >&6; }
3908 ## Checks for libraries.
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for libraries" >&5
3910 $as_echo "$as_me: CHECKS for libraries" >&6;}
3912 # Define NO_OPENSSL environment variable if you do not have OpenSSL.
3913 # Define NEEDS_SSL_WITH_CRYPTO if you need -lcrypto with -lssl (Darwin).
3916 if test -n "$OPENSSLDIR"; then
3917 old_CPPFLAGS="$CPPFLAGS"
3918 old_LDFLAGS="$LDFLAGS"
3919 CPPFLAGS="-I$OPENSSLDIR/include $CPPFLAGS"
3920 LDFLAGS="-L$OPENSSLDIR/$lib $LDFLAGS"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
3925 $as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
3926 if test "${ac_cv_lib_crypto_SHA1_Init+set}" = set; then :
3927 $as_echo_n "(cached) " >&6
3929 ac_check_lib_save_LIBS=$LIBS
3930 LIBS="-lcrypto $LIBS"
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3934 /* Override any GCC internal prototype to avoid an error.
3935 Use char because int might match the return type of a GCC
3936 builtin and then its argument prototype would still apply. */
3944 return SHA1_Init ();
3949 if ac_fn_c_try_link "$LINENO"; then :
3950 ac_cv_lib_crypto_SHA1_Init=yes
3952 ac_cv_lib_crypto_SHA1_Init=no
3954 rm -f core conftest.err conftest.$ac_objext \
3955 conftest$ac_exeext conftest.$ac_ext
3956 LIBS=$ac_check_lib_save_LIBS
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
3959 $as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
3960 if test "x$ac_cv_lib_crypto_SHA1_Init" = x""yes; then :
3961 NEEDS_SSL_WITH_CRYPTO=
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lssl" >&5
3964 $as_echo_n "checking for SHA1_Init in -lssl... " >&6; }
3965 if test "${ac_cv_lib_ssl_SHA1_Init+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3968 ac_check_lib_save_LIBS=$LIBS
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3973 /* Override any GCC internal prototype to avoid an error.
3974 Use char because int might match the return type of a GCC
3975 builtin and then its argument prototype would still apply. */
3983 return SHA1_Init ();
3988 if ac_fn_c_try_link "$LINENO"; then :
3989 ac_cv_lib_ssl_SHA1_Init=yes
3991 ac_cv_lib_ssl_SHA1_Init=no
3993 rm -f core conftest.err conftest.$ac_objext \
3994 conftest$ac_exeext conftest.$ac_ext
3995 LIBS=$ac_check_lib_save_LIBS
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SHA1_Init" >&5
3998 $as_echo "$ac_cv_lib_ssl_SHA1_Init" >&6; }
3999 if test "x$ac_cv_lib_ssl_SHA1_Init" = x""yes; then :
4000 NEEDS_SSL_WITH_CRYPTO=YesPlease
4002 NEEDS_SSL_WITH_CRYPTO= NO_OPENSSL=YesPlease
4009 if test -n "$OPENSSLDIR"; then
4010 CPPFLAGS="$old_CPPFLAGS"
4011 LDFLAGS="$old_LDFLAGS"
4019 # Define USE_LIBPCRE if you have and want to use libpcre. git-grep will be
4020 # able to use Perl-compatible regular expressions.
4023 if test -n "$USE_LIBPCRE"; then
4026 if test -n "$LIBPCREDIR"; then
4027 old_CPPFLAGS="$CPPFLAGS"
4028 old_LDFLAGS="$LDFLAGS"
4029 CPPFLAGS="-I$LIBPCREDIR/include $CPPFLAGS"
4030 LDFLAGS="-L$LIBPCREDIR/$lib $LDFLAGS"
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_version in -lpcre" >&5
4035 $as_echo_n "checking for pcre_version in -lpcre... " >&6; }
4036 if test "${ac_cv_lib_pcre_pcre_version+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4039 ac_check_lib_save_LIBS=$LIBS
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4044 /* Override any GCC internal prototype to avoid an error.
4045 Use char because int might match the return type of a GCC
4046 builtin and then its argument prototype would still apply. */
4050 char pcre_version ();
4054 return pcre_version ();
4059 if ac_fn_c_try_link "$LINENO"; then :
4060 ac_cv_lib_pcre_pcre_version=yes
4062 ac_cv_lib_pcre_pcre_version=no
4064 rm -f core conftest.err conftest.$ac_objext \
4065 conftest$ac_exeext conftest.$ac_ext
4066 LIBS=$ac_check_lib_save_LIBS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_version" >&5
4069 $as_echo "$ac_cv_lib_pcre_pcre_version" >&6; }
4070 if test "x$ac_cv_lib_pcre_pcre_version" = x""yes; then :
4071 USE_LIBPCRE=YesPlease
4078 if test -n "$LIBPCREDIR"; then
4079 CPPFLAGS="$old_CPPFLAGS"
4080 LDFLAGS="$old_LDFLAGS"
4089 # Define NO_CURL if you do not have libcurl installed. git-http-pull and
4090 # git-http-push are not built, and you cannot use http:// and https://
4094 if test -n "$CURLDIR"; then
4095 old_CPPFLAGS="$CPPFLAGS"
4096 old_LDFLAGS="$LDFLAGS"
4097 CPPFLAGS="-I$CURLDIR/include $CPPFLAGS"
4098 LDFLAGS="-L$CURLDIR/$lib $LDFLAGS"
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
4103 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
4104 if test "${ac_cv_lib_curl_curl_global_init+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4107 ac_check_lib_save_LIBS=$LIBS
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4112 /* Override any GCC internal prototype to avoid an error.
4113 Use char because int might match the return type of a GCC
4114 builtin and then its argument prototype would still apply. */
4118 char curl_global_init ();
4122 return curl_global_init ();
4127 if ac_fn_c_try_link "$LINENO"; then :
4128 ac_cv_lib_curl_curl_global_init=yes
4130 ac_cv_lib_curl_curl_global_init=no
4132 rm -f core conftest.err conftest.$ac_objext \
4133 conftest$ac_exeext conftest.$ac_ext
4134 LIBS=$ac_check_lib_save_LIBS
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
4137 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
4138 if test "x$ac_cv_lib_curl_curl_global_init" = x""yes; then :
4146 if test -n "$CURLDIR"; then
4147 CPPFLAGS="$old_CPPFLAGS"
4148 LDFLAGS="$old_LDFLAGS"
4155 # Define NO_EXPAT if you do not have expat installed. git-http-push is
4156 # not built, and you cannot push using http:// and https:// transports.
4159 if test -n "$EXPATDIR"; then
4160 old_CPPFLAGS="$CPPFLAGS"
4161 old_LDFLAGS="$LDFLAGS"
4162 CPPFLAGS="-I$EXPATDIR/include $CPPFLAGS"
4163 LDFLAGS="-L$EXPATDIR/$lib $LDFLAGS"
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
4168 $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
4169 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
4170 $as_echo_n "(cached) " >&6
4172 ac_check_lib_save_LIBS=$LIBS
4173 LIBS="-lexpat $LIBS"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4177 /* Override any GCC internal prototype to avoid an error.
4178 Use char because int might match the return type of a GCC
4179 builtin and then its argument prototype would still apply. */
4183 char XML_ParserCreate ();
4187 return XML_ParserCreate ();
4192 if ac_fn_c_try_link "$LINENO"; then :
4193 ac_cv_lib_expat_XML_ParserCreate=yes
4195 ac_cv_lib_expat_XML_ParserCreate=no
4197 rm -f core conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
4199 LIBS=$ac_check_lib_save_LIBS
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
4202 $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
4203 if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
4211 if test -n "$EXPATDIR"; then
4212 CPPFLAGS="$old_CPPFLAGS"
4213 LDFLAGS="$old_LDFLAGS"
4220 # Define NEEDS_LIBICONV if linking with libc is not enough (Darwin and
4221 # some Solaris installations).
4222 # Define NO_ICONV if neither libc nor libiconv support iconv.
4224 if test -z "$NO_ICONV"; then
4227 if test -n "$ICONVDIR"; then
4228 old_CPPFLAGS="$CPPFLAGS"
4229 old_LDFLAGS="$LDFLAGS"
4230 CPPFLAGS="-I$ICONVDIR/include $CPPFLAGS"
4231 LDFLAGS="-L$ICONVDIR/$lib $LDFLAGS"
4237 if test -n "$ICONVDIR"; then
4238 lib_order="-liconv -lc"
4240 lib_order="-lc -liconv"
4245 for l in $lib_order; do
4246 if test "$l" = "-liconv"; then
4247 NEEDS_LIBICONV=YesPlease
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in $l" >&5
4255 $as_echo_n "checking for iconv in $l... " >&6; }
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4267 if ac_fn_c_try_link "$LINENO"; then :
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4269 $as_echo "yes" >&6; }
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4276 rm -f core conftest.err conftest.$ac_objext \
4277 conftest$ac_exeext conftest.$ac_ext
4285 if test -n "$ICONVDIR"; then
4286 CPPFLAGS="$old_CPPFLAGS"
4287 LDFLAGS="$old_LDFLAGS"
4294 if test -n "$NO_ICONV"; then
4301 # Define NO_DEFLATE_BOUND if deflateBound is missing from zlib.
4304 if test -n "$ZLIB_PATH"; then
4305 old_CPPFLAGS="$CPPFLAGS"
4306 old_LDFLAGS="$LDFLAGS"
4307 CPPFLAGS="-I$ZLIB_PATH/include $CPPFLAGS"
4308 LDFLAGS="-L$ZLIB_PATH/$lib $LDFLAGS"
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateBound in -lz" >&5
4314 $as_echo_n "checking for deflateBound in -lz... " >&6; }
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4329 if ac_fn_c_try_link "$LINENO"; then :
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4331 $as_echo "yes" >&6; }
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 NO_DEFLATE_BOUND=yes
4337 rm -f core conftest.err conftest.$ac_objext \
4338 conftest$ac_exeext conftest.$ac_ext
4342 if test -n "$ZLIB_PATH"; then
4343 CPPFLAGS="$old_CPPFLAGS"
4344 LDFLAGS="$old_LDFLAGS"
4351 # Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lc" >&5
4354 $as_echo_n "checking for socket in -lc... " >&6; }
4355 if test "${ac_cv_lib_c_socket+set}" = set; then :
4356 $as_echo_n "(cached) " >&6
4358 ac_check_lib_save_LIBS=$LIBS
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4363 /* Override any GCC internal prototype to avoid an error.
4364 Use char because int might match the return type of a GCC
4365 builtin and then its argument prototype would still apply. */
4378 if ac_fn_c_try_link "$LINENO"; then :
4379 ac_cv_lib_c_socket=yes
4381 ac_cv_lib_c_socket=no
4383 rm -f core conftest.err conftest.$ac_objext \
4384 conftest$ac_exeext conftest.$ac_ext
4385 LIBS=$ac_check_lib_save_LIBS
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_socket" >&5
4388 $as_echo "$ac_cv_lib_c_socket" >&6; }
4389 if test "x$ac_cv_lib_c_socket" = x""yes; then :
4392 NEEDS_SOCKET=YesPlease
4396 test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket"
4399 # The next few tests will define NEEDS_RESOLV if linking with
4400 # libresolv provides some of the functions we would normally get
4405 # Define NO_INET_NTOP if linking with -lresolv is not enough.
4406 # Solaris 2.7 in particular hos inet_ntop in -lresolv.
4409 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
4410 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lresolv" >&5
4414 $as_echo_n "checking for inet_ntop in -lresolv... " >&6; }
4415 if test "${ac_cv_lib_resolv_inet_ntop+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4418 ac_check_lib_save_LIBS=$LIBS
4419 LIBS="-lresolv $LIBS"
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h. */
4423 /* Override any GCC internal prototype to avoid an error.
4424 Use char because int might match the return type of a GCC
4425 builtin and then its argument prototype would still apply. */
4433 return inet_ntop ();
4438 if ac_fn_c_try_link "$LINENO"; then :
4439 ac_cv_lib_resolv_inet_ntop=yes
4441 ac_cv_lib_resolv_inet_ntop=no
4443 rm -f core conftest.err conftest.$ac_objext \
4444 conftest$ac_exeext conftest.$ac_ext
4445 LIBS=$ac_check_lib_save_LIBS
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_ntop" >&5
4448 $as_echo "$ac_cv_lib_resolv_inet_ntop" >&6; }
4449 if test "x$ac_cv_lib_resolv_inet_ntop" = x""yes; then :
4450 NEEDS_RESOLV=YesPlease
4452 NO_INET_NTOP=YesPlease
4459 # Define NO_INET_PTON if linking with -lresolv is not enough.
4460 # Solaris 2.7 in particular hos inet_pton in -lresolv.
4463 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
4464 if test "x$ac_cv_func_inet_pton" = x""yes; then :
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lresolv" >&5
4468 $as_echo_n "checking for inet_pton in -lresolv... " >&6; }
4469 if test "${ac_cv_lib_resolv_inet_pton+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4472 ac_check_lib_save_LIBS=$LIBS
4473 LIBS="-lresolv $LIBS"
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4477 /* Override any GCC internal prototype to avoid an error.
4478 Use char because int might match the return type of a GCC
4479 builtin and then its argument prototype would still apply. */
4487 return inet_pton ();
4492 if ac_fn_c_try_link "$LINENO"; then :
4493 ac_cv_lib_resolv_inet_pton=yes
4495 ac_cv_lib_resolv_inet_pton=no
4497 rm -f core conftest.err conftest.$ac_objext \
4498 conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_check_lib_save_LIBS
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_pton" >&5
4502 $as_echo "$ac_cv_lib_resolv_inet_pton" >&6; }
4503 if test "x$ac_cv_lib_resolv_inet_pton" = x""yes; then :
4504 NEEDS_RESOLV=YesPlease
4506 NO_INET_PTON=YesPlease
4513 # Define NO_HSTRERROR if linking with -lresolv is not enough.
4514 # Solaris 2.6 in particular has no hstrerror, even in -lresolv.
4516 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
4517 if test "x$ac_cv_func_hstrerror" = x""yes; then :
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lresolv" >&5
4521 $as_echo_n "checking for hstrerror in -lresolv... " >&6; }
4522 if test "${ac_cv_lib_resolv_hstrerror+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4525 ac_check_lib_save_LIBS=$LIBS
4526 LIBS="-lresolv $LIBS"
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4530 /* Override any GCC internal prototype to avoid an error.
4531 Use char because int might match the return type of a GCC
4532 builtin and then its argument prototype would still apply. */
4540 return hstrerror ();
4545 if ac_fn_c_try_link "$LINENO"; then :
4546 ac_cv_lib_resolv_hstrerror=yes
4548 ac_cv_lib_resolv_hstrerror=no
4550 rm -f core conftest.err conftest.$ac_objext \
4551 conftest$ac_exeext conftest.$ac_ext
4552 LIBS=$ac_check_lib_save_LIBS
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_hstrerror" >&5
4555 $as_echo "$ac_cv_lib_resolv_hstrerror" >&6; }
4556 if test "x$ac_cv_lib_resolv_hstrerror" = x""yes; then :
4557 NEEDS_RESOLV=YesPlease
4559 NO_HSTRERROR=YesPlease
4567 # If any of the above tests determined that -lresolv is needed at
4568 # build-time, also set it here for remaining configure-time checks.
4569 test -n "$NEEDS_RESOLV" && LIBS="$LIBS -lresolv"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lc" >&5
4572 $as_echo_n "checking for basename in -lc... " >&6; }
4573 if test "${ac_cv_lib_c_basename+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4576 ac_check_lib_save_LIBS=$LIBS
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4581 /* Override any GCC internal prototype to avoid an error.
4582 Use char because int might match the return type of a GCC
4583 builtin and then its argument prototype would still apply. */
4596 if ac_fn_c_try_link "$LINENO"; then :
4597 ac_cv_lib_c_basename=yes
4599 ac_cv_lib_c_basename=no
4601 rm -f core conftest.err conftest.$ac_objext \
4602 conftest$ac_exeext conftest.$ac_ext
4603 LIBS=$ac_check_lib_save_LIBS
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_basename" >&5
4606 $as_echo "$ac_cv_lib_c_basename" >&6; }
4607 if test "x$ac_cv_lib_c_basename" = x""yes; then :
4610 NEEDS_LIBGEN=YesPlease
4614 test -n "$NEEDS_LIBGEN" && LIBS="$LIBS -lgen"
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lc" >&5
4617 $as_echo_n "checking for gettext in -lc... " >&6; }
4618 if test "${ac_cv_lib_c_gettext+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4621 ac_check_lib_save_LIBS=$LIBS
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4626 /* Override any GCC internal prototype to avoid an error.
4627 Use char because int might match the return type of a GCC
4628 builtin and then its argument prototype would still apply. */
4641 if ac_fn_c_try_link "$LINENO"; then :
4642 ac_cv_lib_c_gettext=yes
4644 ac_cv_lib_c_gettext=no
4646 rm -f core conftest.err conftest.$ac_objext \
4647 conftest$ac_exeext conftest.$ac_ext
4648 LIBS=$ac_check_lib_save_LIBS
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettext" >&5
4651 $as_echo "$ac_cv_lib_c_gettext" >&6; }
4652 if test "x$ac_cv_lib_c_gettext" = x""yes; then :
4653 LIBC_CONTAINS_LIBINTL=YesPlease
4655 LIBC_CONTAINS_LIBINTL=
4661 # Define NO_GETTEXT if you don't want Git output to be translated.
4662 # A translated Git requires GNU libintl or another gettext implementation
4664 ac_cpp='$CPP $CPPFLAGS'
4665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4669 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4670 # On Suns, sometimes $CPP names a directory.
4671 if test -n "$CPP" && test -d "$CPP"; then
4674 if test -z "$CPP"; then
4675 if test "${ac_cv_prog_CPP+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4678 # Double quotes because CPP needs to be expanded
4679 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4682 for ac_c_preproc_warn_flag in '' yes
4684 # Use a header file that comes with gcc, so configuring glibc
4685 # with a fresh cross-compiler works.
4686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4687 # <limits.h> exists even on freestanding compilers.
4688 # On the NeXT, cc -E runs the code through the compiler's parser,
4689 # not just through cpp. "Syntax error" is here to catch this case.
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4693 # include <limits.h>
4695 # include <assert.h>
4699 if ac_fn_c_try_cpp "$LINENO"; then :
4702 # Broken: fails on valid input.
4705 rm -f conftest.err conftest.i conftest.$ac_ext
4707 # OK, works on sane cases. Now check whether nonexistent headers
4708 # can be detected and how.
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711 #include <ac_nonexistent.h>
4713 if ac_fn_c_try_cpp "$LINENO"; then :
4714 # Broken: success on invalid input.
4717 # Passes both tests.
4721 rm -f conftest.err conftest.i conftest.$ac_ext
4724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4725 rm -f conftest.i conftest.err conftest.$ac_ext
4726 if $ac_preproc_ok; then :
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4739 $as_echo "$CPP" >&6; }
4741 for ac_c_preproc_warn_flag in '' yes
4743 # Use a header file that comes with gcc, so configuring glibc
4744 # with a fresh cross-compiler works.
4745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4746 # <limits.h> exists even on freestanding compilers.
4747 # On the NeXT, cc -E runs the code through the compiler's parser,
4748 # not just through cpp. "Syntax error" is here to catch this case.
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4752 # include <limits.h>
4754 # include <assert.h>
4758 if ac_fn_c_try_cpp "$LINENO"; then :
4761 # Broken: fails on valid input.
4764 rm -f conftest.err conftest.i conftest.$ac_ext
4766 # OK, works on sane cases. Now check whether nonexistent headers
4767 # can be detected and how.
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4770 #include <ac_nonexistent.h>
4772 if ac_fn_c_try_cpp "$LINENO"; then :
4773 # Broken: success on invalid input.
4776 # Passes both tests.
4780 rm -f conftest.err conftest.i conftest.$ac_ext
4783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4784 rm -f conftest.i conftest.err conftest.$ac_ext
4785 if $ac_preproc_ok; then :
4788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4790 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4791 See \`config.log' for more details" "$LINENO" 5 ; }
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
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4802 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4803 if test "${ac_cv_path_GREP+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4806 if test -z "$GREP"; then
4807 ac_path_GREP_found=false
4808 # Loop through the user's path and test for each of PROGNAME-LIST
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4813 test -z "$as_dir" && as_dir=.
4814 for ac_prog in grep ggrep; do
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4817 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4818 # Check for GNU ac_path_GREP and select it if it is found.
4819 # Check for GNU $ac_path_GREP
4820 case `"$ac_path_GREP" --version 2>&1` in
4822 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4825 $as_echo_n 0123456789 >"conftest.in"
4828 cat "conftest.in" "conftest.in" >"conftest.tmp"
4829 mv "conftest.tmp" "conftest.in"
4830 cp "conftest.in" "conftest.nl"
4831 $as_echo 'GREP' >> "conftest.nl"
4832 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4834 as_fn_arith $ac_count + 1 && ac_count=$as_val
4835 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4836 # Best one so far, save it but keep looking for a better one
4837 ac_cv_path_GREP="$ac_path_GREP"
4838 ac_path_GREP_max=$ac_count
4840 # 10*(2^10) chars as input seems more than enough
4841 test $ac_count -gt 10 && break
4843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4846 $ac_path_GREP_found && break 3
4851 if test -z "$ac_cv_path_GREP"; then
4852 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4855 ac_cv_path_GREP=$GREP
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4860 $as_echo "$ac_cv_path_GREP" >&6; }
4861 GREP="$ac_cv_path_GREP"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4865 $as_echo_n "checking for egrep... " >&6; }
4866 if test "${ac_cv_path_EGREP+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4869 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4870 then ac_cv_path_EGREP="$GREP -E"
4872 if test -z "$EGREP"; then
4873 ac_path_EGREP_found=false
4874 # Loop through the user's path and test for each of PROGNAME-LIST
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4879 test -z "$as_dir" && as_dir=.
4880 for ac_prog in egrep; do
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4883 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4884 # Check for GNU ac_path_EGREP and select it if it is found.
4885 # Check for GNU $ac_path_EGREP
4886 case `"$ac_path_EGREP" --version 2>&1` in
4888 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4891 $as_echo_n 0123456789 >"conftest.in"
4894 cat "conftest.in" "conftest.in" >"conftest.tmp"
4895 mv "conftest.tmp" "conftest.in"
4896 cp "conftest.in" "conftest.nl"
4897 $as_echo 'EGREP' >> "conftest.nl"
4898 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4900 as_fn_arith $ac_count + 1 && ac_count=$as_val
4901 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4902 # Best one so far, save it but keep looking for a better one
4903 ac_cv_path_EGREP="$ac_path_EGREP"
4904 ac_path_EGREP_max=$ac_count
4906 # 10*(2^10) chars as input seems more than enough
4907 test $ac_count -gt 10 && break
4909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4912 $ac_path_EGREP_found && break 3
4917 if test -z "$ac_cv_path_EGREP"; then
4918 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4921 ac_cv_path_EGREP=$EGREP
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4927 $as_echo "$ac_cv_path_EGREP" >&6; }
4928 EGREP="$ac_cv_path_EGREP"
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4932 $as_echo_n "checking for ANSI C header files... " >&6; }
4933 if test "${ac_cv_header_stdc+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_cv_header_stdc=yes
4954 ac_cv_header_stdc=no
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 if test $ac_cv_header_stdc = yes; then
4959 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966 $EGREP "memchr" >/dev/null 2>&1; then :
4969 ac_cv_header_stdc=no
4975 if test $ac_cv_header_stdc = yes; then
4976 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4983 $EGREP "free" >/dev/null 2>&1; then :
4986 ac_cv_header_stdc=no
4992 if test $ac_cv_header_stdc = yes; then
4993 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4994 if test "$cross_compiling" = yes; then :
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5001 #if ((' ' & 0x0FF) == 0x020)
5002 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5003 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5005 # define ISLOWER(c) \
5006 (('a' <= (c) && (c) <= 'i') \
5007 || ('j' <= (c) && (c) <= 'r') \
5008 || ('s' <= (c) && (c) <= 'z'))
5009 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5012 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5017 for (i = 0; i < 256; i++)
5018 if (XOR (islower (i), ISLOWER (i))
5019 || toupper (i) != TOUPPER (i))
5024 if ac_fn_c_try_run "$LINENO"; then :
5027 ac_cv_header_stdc=no
5029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5030 conftest.$ac_objext conftest.beam conftest.$ac_ext
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5036 $as_echo "$ac_cv_header_stdc" >&6; }
5037 if test $ac_cv_header_stdc = yes; then
5039 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5043 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5044 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5045 inttypes.h stdint.h unistd.h
5047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5048 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5050 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5051 cat >>confdefs.h <<_ACEOF
5052 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5060 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
5061 if test "x$ac_cv_header_libintl_h" = x""yes; then :
5064 NO_GETTEXT=YesPlease
5070 if test -z "$NO_GETTEXT"; then
5071 test -n "$LIBC_CONTAINS_LIBINTL" || LIBS="$LIBS -lintl"
5074 ## Checks for header files.
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for header files" >&5
5076 $as_echo "$as_me: CHECKS for header files" >&6;}
5078 # Define NO_SYS_SELECT_H if you don't have sys/select.h.
5079 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5080 if test "x$ac_cv_header_sys_select_h" = x""yes; then :
5083 NO_SYS_SELECT_H=UnfortunatelyYes
5089 # Define NO_SYS_POLL_H if you don't have sys/poll.h
5090 ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
5091 if test "x$ac_cv_header_sys_poll_h" = x""yes; then :
5094 NO_SYS_POLL_H=UnfortunatelyYes
5100 # Define NO_INTTYPES_H if you don't have inttypes.h
5101 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5102 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
5105 NO_INTTYPES_H=UnfortunatelyYes
5111 # Define OLD_ICONV if your library has an old iconv(), where the second
5112 # (input buffer pointer) parameter is declared with type (const char **).
5116 if test -n "$ICONVDIR"; then
5117 old_CPPFLAGS="$CPPFLAGS"
5118 old_LDFLAGS="$LDFLAGS"
5119 CPPFLAGS="-I$ICONVDIR/include $CPPFLAGS"
5120 LDFLAGS="-L$ICONVDIR/$lib $LDFLAGS"
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old iconv()" >&5
5125 $as_echo_n "checking for old iconv()... " >&6; }
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5132 extern size_t iconv(iconv_t cd,
5133 char **inbuf, size_t *inbytesleft,
5134 char **outbuf, size_t *outbytesleft);
5144 if ac_fn_c_try_compile "$LINENO"; then :
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5149 $as_echo "yes" >&6; }
5150 OLD_ICONV=UnfortunatelyYes
5152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155 if test -n "$ICONVDIR"; then
5156 CPPFLAGS="$old_CPPFLAGS"
5157 LDFLAGS="$old_LDFLAGS"
5163 ## Checks for typedefs, structures, and compiler characteristics.
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for typedefs, structures, and compiler characteristics" >&5
5165 $as_echo "$as_me: CHECKS for typedefs, structures, and compiler characteristics" >&6;}
5168 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5169 #include <sys/socket.h>
5171 if test "x$ac_cv_type_socklen_t" = x""yes; then :
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5176 $as_echo_n "checking for socklen_t equivalent... " >&6; }
5177 if test "${git_cv_socklen_t_equiv+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5181 # Systems have either "struct sockaddr *" or
5182 # "void *" as the second argument to getpeername
5183 git_cv_socklen_t_equiv=
5184 for arg2 in "struct sockaddr" void; do
5185 for t in int size_t unsigned long "unsigned long"; do
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5189 #include <sys/types.h>
5190 #include <sys/socket.h>
5192 int getpeername (int, $arg2 *, $t *);
5199 getpeername(0,0,&len);
5205 if ac_fn_c_try_compile "$LINENO"; then :
5207 git_cv_socklen_t_equiv="$t"
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5215 if test "x$git_cv_socklen_t_equiv" = x; then
5216 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_socklen_t_equiv" >&5
5222 $as_echo "$git_cv_socklen_t_equiv" >&6; }
5224 cat >>confdefs.h <<_ACEOF
5225 #define socklen_t $git_cv_socklen_t_equiv
5231 case $ac_cv_type_socklen_t in
5233 *) SOCKLEN_T=$git_cv_socklen_t_equiv
5237 # Define NO_D_INO_IN_DIRENT if you don't have d_ino in your struct dirent.
5238 ac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "#include <dirent.h>
5240 if test "x$ac_cv_member_struct_dirent_d_ino" = x""yes; then :
5243 NO_D_INO_IN_DIRENT=YesPlease
5248 # Define NO_D_TYPE_IN_DIRENT if your platform defines DT_UNKNOWN but lacks
5249 # d_type in struct dirent (latest Cygwin -- will be fixed soonish).
5250 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
5252 if test "x$ac_cv_member_struct_dirent_d_type" = x""yes; then :
5253 NO_D_TYPE_IN_DIRENT=
5255 NO_D_TYPE_IN_DIRENT=YesPlease
5260 # Define NO_SOCKADDR_STORAGE if your platform does not have struct
5262 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
5263 #include <sys/types.h>
5264 #include <sys/socket.h>
5267 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
5268 NO_SOCKADDR_STORAGE=
5270 NO_SOCKADDR_STORAGE=YesPlease
5275 # Define NO_IPV6 if you lack IPv6 support and getaddrinfo().
5276 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
5277 #include <sys/types.h>
5278 #include <sys/socket.h>
5282 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
5284 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5285 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
5288 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
5289 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5292 ac_func_search_save_LIBS=$LIBS
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5296 /* Override any GCC internal prototype to avoid an error.
5297 Use char because int might match the return type of a GCC
5298 builtin and then its argument prototype would still apply. */
5302 char getaddrinfo ();
5306 return getaddrinfo ();
5311 for ac_lib in '' ; do
5312 if test -z "$ac_lib"; then
5313 ac_res="none required"
5316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5318 if ac_fn_c_try_link "$LINENO"; then :
5319 ac_cv_search_getaddrinfo=$ac_res
5321 rm -f core conftest.err conftest.$ac_objext \
5323 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
5327 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
5330 ac_cv_search_getaddrinfo=no
5333 LIBS=$ac_func_search_save_LIBS
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
5336 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
5337 ac_res=$ac_cv_search_getaddrinfo
5338 if test "$ac_res" != no; then :
5339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5357 # Define NO_REGEX if you have no or inferior regex support in your C library.
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform regex can handle null bytes" >&5
5359 $as_echo_n "checking whether the platform regex can handle null bytes... " >&6; }
5360 if test "${ac_cv_c_excellent_regex+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 $ac_includes_default
5380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5381 $EGREP "yippeeyeswehaveit" >/dev/null 2>&1; then :
5382 ac_cv_c_excellent_regex=yes
5384 ac_cv_c_excellent_regex=no
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_excellent_regex" >&5
5391 $as_echo "$ac_cv_c_excellent_regex" >&6; }
5392 if test $ac_cv_c_excellent_regex = yes; then
5399 # Define FREAD_READS_DIRECTORIES if your are on a system which succeeds
5400 # when attempting to read from an fopen'ed directory.
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system succeeds to read fopen'ed directory" >&5
5402 $as_echo_n "checking whether system succeeds to read fopen'ed directory... " >&6; }
5403 if test "${ac_cv_fread_reads_directories+set}" = set; then :
5404 $as_echo_n "(cached) " >&6
5407 if test "$cross_compiling" = yes; then :
5408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5410 as_fn_error $? "cannot run test program while cross compiling
5411 See \`config.log' for more details" "$LINENO" 5 ; }
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415 $ac_includes_default
5420 FILE *f = fopen(".", "r");
5421 return f && fread(&c, 1, 1, f)
5426 if ac_fn_c_try_run "$LINENO"; then :
5427 ac_cv_fread_reads_directories=no
5429 ac_cv_fread_reads_directories=yes
5431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5432 conftest.$ac_objext conftest.beam conftest.$ac_ext
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fread_reads_directories" >&5
5438 $as_echo "$ac_cv_fread_reads_directories" >&6; }
5439 if test $ac_cv_fread_reads_directories = yes; then
5440 FREAD_READS_DIRECTORIES=UnfortunatelyYes
5442 FREAD_READS_DIRECTORIES=
5446 # Define SNPRINTF_RETURNS_BOGUS if your are on a system which snprintf()
5447 # or vsnprintf() return -1 instead of number of characters which would
5448 # have been written to the final string if enough space had been available.
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf() and/or vsnprintf() return bogus value" >&5
5450 $as_echo_n "checking whether snprintf() and/or vsnprintf() return bogus value... " >&6; }
5451 if test "${ac_cv_snprintf_returns_bogus+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5455 if test "$cross_compiling" = yes; then :
5456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5458 as_fn_error $? "cannot run test program while cross compiling
5459 See \`config.log' for more details" "$LINENO" 5 ; }
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h. */
5463 $ac_includes_default
5466 int test_vsnprintf(char *str, size_t maxsize, const char *format, ...)
5470 va_start(ap, format);
5471 ret = vsnprintf(str, maxsize, format, ap);
5479 if (test_vsnprintf(buf, 3, "%s", "12345") != 5
5480 || strcmp(buf, "12")) return 1;
5481 if (snprintf(buf, 3, "%s", "12345") != 5
5482 || strcmp(buf, "12")) return 1
5487 if ac_fn_c_try_run "$LINENO"; then :
5488 ac_cv_snprintf_returns_bogus=no
5490 ac_cv_snprintf_returns_bogus=yes
5492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5493 conftest.$ac_objext conftest.beam conftest.$ac_ext
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_snprintf_returns_bogus" >&5
5499 $as_echo "$ac_cv_snprintf_returns_bogus" >&6; }
5500 if test $ac_cv_snprintf_returns_bogus = yes; then
5501 SNPRINTF_RETURNS_BOGUS=UnfortunatelyYes
5503 SNPRINTF_RETURNS_BOGUS=
5508 ## Checks for library functions.
5509 ## (in default C library and libraries checked by AC_CHECK_LIB)
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for library functions" >&5
5511 $as_echo "$as_me: CHECKS for library functions" >&6;}
5513 # Define NO_LIBGEN_H if you don't have libgen.h.
5514 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
5515 if test "x$ac_cv_header_libgen_h" = x""yes; then :
5518 NO_LIBGEN_H=YesPlease
5524 # Define HAVE_PATHS_H if you have paths.h.
5525 ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
5526 if test "x$ac_cv_header_paths_h" = x""yes; then :
5527 HAVE_PATHS_H=YesPlease
5535 # Define HAVE_LIBCHARSET_H if have libcharset.h
5536 ac_fn_c_check_header_mongrel "$LINENO" "libcharset.h" "ac_cv_header_libcharset_h" "$ac_includes_default"
5537 if test "x$ac_cv_header_libcharset_h" = x""yes; then :
5538 HAVE_LIBCHARSET_H=YesPlease
5545 # Define CHARSET_LIB if libiconv does not export the locale_charset symbol
5546 # and libcharset does
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -liconv" >&5
5549 $as_echo_n "checking for locale_charset in -liconv... " >&6; }
5550 if test "${ac_cv_lib_iconv_locale_charset+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5553 ac_check_lib_save_LIBS=$LIBS
5554 LIBS="-liconv $LIBS"
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5558 /* Override any GCC internal prototype to avoid an error.
5559 Use char because int might match the return type of a GCC
5560 builtin and then its argument prototype would still apply. */
5564 char locale_charset ();
5568 return locale_charset ();
5573 if ac_fn_c_try_link "$LINENO"; then :
5574 ac_cv_lib_iconv_locale_charset=yes
5576 ac_cv_lib_iconv_locale_charset=no
5578 rm -f core conftest.err conftest.$ac_objext \
5579 conftest$ac_exeext conftest.$ac_ext
5580 LIBS=$ac_check_lib_save_LIBS
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_locale_charset" >&5
5583 $as_echo "$ac_cv_lib_iconv_locale_charset" >&6; }
5584 if test "x$ac_cv_lib_iconv_locale_charset" = x""yes; then :
5585 cat >>confdefs.h <<_ACEOF
5586 #define HAVE_LIBICONV 1
5589 LIBS="-liconv $LIBS"
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -lcharset" >&5
5593 $as_echo_n "checking for locale_charset in -lcharset... " >&6; }
5594 if test "${ac_cv_lib_charset_locale_charset+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5597 ac_check_lib_save_LIBS=$LIBS
5598 LIBS="-lcharset $LIBS"
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5602 /* Override any GCC internal prototype to avoid an error.
5603 Use char because int might match the return type of a GCC
5604 builtin and then its argument prototype would still apply. */
5608 char locale_charset ();
5612 return locale_charset ();
5617 if ac_fn_c_try_link "$LINENO"; then :
5618 ac_cv_lib_charset_locale_charset=yes
5620 ac_cv_lib_charset_locale_charset=no
5622 rm -f core conftest.err conftest.$ac_objext \
5623 conftest$ac_exeext conftest.$ac_ext
5624 LIBS=$ac_check_lib_save_LIBS
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_charset_locale_charset" >&5
5627 $as_echo "$ac_cv_lib_charset_locale_charset" >&6; }
5628 if test "x$ac_cv_lib_charset_locale_charset" = x""yes; then :
5629 CHARSET_LIB=-lcharset
5638 # Define NO_STRCASESTR if you don't have strcasestr.
5639 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
5640 if test "x$ac_cv_func_strcasestr" = x""yes; then :
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strcasestr" >&5
5643 $as_echo_n "checking for library containing strcasestr... " >&6; }
5644 if test "${ac_cv_search_strcasestr+set}" = set; then :
5645 $as_echo_n "(cached) " >&6
5647 ac_func_search_save_LIBS=$LIBS
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5651 /* Override any GCC internal prototype to avoid an error.
5652 Use char because int might match the return type of a GCC
5653 builtin and then its argument prototype would still apply. */
5661 return strcasestr ();
5666 for ac_lib in '' ; do
5667 if test -z "$ac_lib"; then
5668 ac_res="none required"
5671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5673 if ac_fn_c_try_link "$LINENO"; then :
5674 ac_cv_search_strcasestr=$ac_res
5676 rm -f core conftest.err conftest.$ac_objext \
5678 if test "${ac_cv_search_strcasestr+set}" = set; then :
5682 if test "${ac_cv_search_strcasestr+set}" = set; then :
5685 ac_cv_search_strcasestr=no
5688 LIBS=$ac_func_search_save_LIBS
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strcasestr" >&5
5691 $as_echo "$ac_cv_search_strcasestr" >&6; }
5692 ac_res=$ac_cv_search_strcasestr
5693 if test "$ac_res" != no; then :
5694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5697 NO_STRCASESTR=YesPlease
5702 NO_STRCASESTR=YesPlease
5707 # Define NO_STRTOK_R if you don't have strtok_r
5708 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
5709 if test "x$ac_cv_func_strtok_r" = x""yes; then :
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strtok_r" >&5
5712 $as_echo_n "checking for library containing strtok_r... " >&6; }
5713 if test "${ac_cv_search_strtok_r+set}" = set; then :
5714 $as_echo_n "(cached) " >&6
5716 ac_func_search_save_LIBS=$LIBS
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5720 /* Override any GCC internal prototype to avoid an error.
5721 Use char because int might match the return type of a GCC
5722 builtin and then its argument prototype would still apply. */
5735 for ac_lib in '' ; do
5736 if test -z "$ac_lib"; then
5737 ac_res="none required"
5740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5742 if ac_fn_c_try_link "$LINENO"; then :
5743 ac_cv_search_strtok_r=$ac_res
5745 rm -f core conftest.err conftest.$ac_objext \
5747 if test "${ac_cv_search_strtok_r+set}" = set; then :
5751 if test "${ac_cv_search_strtok_r+set}" = set; then :
5754 ac_cv_search_strtok_r=no
5757 LIBS=$ac_func_search_save_LIBS
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strtok_r" >&5
5760 $as_echo "$ac_cv_search_strtok_r" >&6; }
5761 ac_res=$ac_cv_search_strtok_r
5762 if test "$ac_res" != no; then :
5763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5766 NO_STRTOK_R=YesPlease
5771 NO_STRTOK_R=YesPlease
5776 # Define NO_FNMATCH if you don't have fnmatch
5777 ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
5778 if test "x$ac_cv_func_fnmatch" = x""yes; then :
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fnmatch" >&5
5781 $as_echo_n "checking for library containing fnmatch... " >&6; }
5782 if test "${ac_cv_search_fnmatch+set}" = set; then :
5783 $as_echo_n "(cached) " >&6
5785 ac_func_search_save_LIBS=$LIBS
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5789 /* Override any GCC internal prototype to avoid an error.
5790 Use char because int might match the return type of a GCC
5791 builtin and then its argument prototype would still apply. */
5804 for ac_lib in '' ; do
5805 if test -z "$ac_lib"; then
5806 ac_res="none required"
5809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5811 if ac_fn_c_try_link "$LINENO"; then :
5812 ac_cv_search_fnmatch=$ac_res
5814 rm -f core conftest.err conftest.$ac_objext \
5816 if test "${ac_cv_search_fnmatch+set}" = set; then :
5820 if test "${ac_cv_search_fnmatch+set}" = set; then :
5823 ac_cv_search_fnmatch=no
5826 LIBS=$ac_func_search_save_LIBS
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fnmatch" >&5
5829 $as_echo "$ac_cv_search_fnmatch" >&6; }
5830 ac_res=$ac_cv_search_fnmatch
5831 if test "$ac_res" != no; then :
5832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5835 NO_FNMATCH=YesPlease
5840 NO_FNMATCH=YesPlease
5845 # Define NO_FNMATCH_CASEFOLD if your fnmatch function doesn't have the
5846 # FNM_CASEFOLD GNU extension.
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the fnmatch function supports the FNMATCH_CASEFOLD GNU extension" >&5
5848 $as_echo_n "checking whether the fnmatch function supports the FNMATCH_CASEFOLD GNU extension... " >&6; }
5849 if test "${ac_cv_c_excellent_fnmatch+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5856 #include <fnmatch.h>
5869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5870 $EGREP "yippeeyeswehaveit" >/dev/null 2>&1; then :
5871 ac_cv_c_excellent_fnmatch=yes
5873 ac_cv_c_excellent_fnmatch=no
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_excellent_fnmatch" >&5
5880 $as_echo "$ac_cv_c_excellent_fnmatch" >&6; }
5881 if test $ac_cv_c_excellent_fnmatch = yes; then
5882 NO_FNMATCH_CASEFOLD=
5884 NO_FNMATCH_CASEFOLD=YesPlease
5888 # Define NO_MEMMEM if you don't have memmem.
5889 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5890 if test "x$ac_cv_func_memmem" = x""yes; then :
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing memmem" >&5
5893 $as_echo_n "checking for library containing memmem... " >&6; }
5894 if test "${ac_cv_search_memmem+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5897 ac_func_search_save_LIBS=$LIBS
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h. */
5901 /* Override any GCC internal prototype to avoid an error.
5902 Use char because int might match the return type of a GCC
5903 builtin and then its argument prototype would still apply. */
5916 for ac_lib in '' ; do
5917 if test -z "$ac_lib"; then
5918 ac_res="none required"
5921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5923 if ac_fn_c_try_link "$LINENO"; then :
5924 ac_cv_search_memmem=$ac_res
5926 rm -f core conftest.err conftest.$ac_objext \
5928 if test "${ac_cv_search_memmem+set}" = set; then :
5932 if test "${ac_cv_search_memmem+set}" = set; then :
5935 ac_cv_search_memmem=no
5938 LIBS=$ac_func_search_save_LIBS
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memmem" >&5
5941 $as_echo "$ac_cv_search_memmem" >&6; }
5942 ac_res=$ac_cv_search_memmem
5943 if test "$ac_res" != no; then :
5944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5957 # Define NO_STRLCPY if you don't have strlcpy.
5958 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5959 if test "x$ac_cv_func_strlcpy" = x""yes; then :
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcpy" >&5
5962 $as_echo_n "checking for library containing strlcpy... " >&6; }
5963 if test "${ac_cv_search_strlcpy+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5966 ac_func_search_save_LIBS=$LIBS
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h. */
5970 /* Override any GCC internal prototype to avoid an error.
5971 Use char because int might match the return type of a GCC
5972 builtin and then its argument prototype would still apply. */
5985 for ac_lib in '' ; do
5986 if test -z "$ac_lib"; then
5987 ac_res="none required"
5990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5992 if ac_fn_c_try_link "$LINENO"; then :
5993 ac_cv_search_strlcpy=$ac_res
5995 rm -f core conftest.err conftest.$ac_objext \
5997 if test "${ac_cv_search_strlcpy+set}" = set; then :
6001 if test "${ac_cv_search_strlcpy+set}" = set; then :
6004 ac_cv_search_strlcpy=no
6007 LIBS=$ac_func_search_save_LIBS
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcpy" >&5
6010 $as_echo "$ac_cv_search_strlcpy" >&6; }
6011 ac_res=$ac_cv_search_strlcpy
6012 if test "$ac_res" != no; then :
6013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6016 NO_STRLCPY=YesPlease
6021 NO_STRLCPY=YesPlease
6026 # Define NO_UINTMAX_T if your platform does not have uintmax_t
6027 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
6028 #include <inttypes.h>
6031 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6034 NO_UINTMAX_T=YesPlease
6039 # Define NO_STRTOUMAX if you don't have strtoumax in the C library.
6040 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
6041 if test "x$ac_cv_func_strtoumax" = x""yes; then :
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strtoumax" >&5
6044 $as_echo_n "checking for library containing strtoumax... " >&6; }
6045 if test "${ac_cv_search_strtoumax+set}" = set; then :
6046 $as_echo_n "(cached) " >&6
6048 ac_func_search_save_LIBS=$LIBS
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6052 /* Override any GCC internal prototype to avoid an error.
6053 Use char because int might match the return type of a GCC
6054 builtin and then its argument prototype would still apply. */
6062 return strtoumax ();
6067 for ac_lib in '' ; do
6068 if test -z "$ac_lib"; then
6069 ac_res="none required"
6072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6074 if ac_fn_c_try_link "$LINENO"; then :
6075 ac_cv_search_strtoumax=$ac_res
6077 rm -f core conftest.err conftest.$ac_objext \
6079 if test "${ac_cv_search_strtoumax+set}" = set; then :
6083 if test "${ac_cv_search_strtoumax+set}" = set; then :
6086 ac_cv_search_strtoumax=no
6089 LIBS=$ac_func_search_save_LIBS
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strtoumax" >&5
6092 $as_echo "$ac_cv_search_strtoumax" >&6; }
6093 ac_res=$ac_cv_search_strtoumax
6094 if test "$ac_res" != no; then :
6095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6098 NO_STRTOUMAX=YesPlease
6103 NO_STRTOUMAX=YesPlease
6108 # Define NO_SETENV if you don't have setenv in the C library.
6109 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
6110 if test "x$ac_cv_func_setenv" = x""yes; then :
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setenv" >&5
6113 $as_echo_n "checking for library containing setenv... " >&6; }
6114 if test "${ac_cv_search_setenv+set}" = set; then :
6115 $as_echo_n "(cached) " >&6
6117 ac_func_search_save_LIBS=$LIBS
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6121 /* Override any GCC internal prototype to avoid an error.
6122 Use char because int might match the return type of a GCC
6123 builtin and then its argument prototype would still apply. */
6136 for ac_lib in '' ; do
6137 if test -z "$ac_lib"; then
6138 ac_res="none required"
6141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6143 if ac_fn_c_try_link "$LINENO"; then :
6144 ac_cv_search_setenv=$ac_res
6146 rm -f core conftest.err conftest.$ac_objext \
6148 if test "${ac_cv_search_setenv+set}" = set; then :
6152 if test "${ac_cv_search_setenv+set}" = set; then :
6155 ac_cv_search_setenv=no
6158 LIBS=$ac_func_search_save_LIBS
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setenv" >&5
6161 $as_echo "$ac_cv_search_setenv" >&6; }
6162 ac_res=$ac_cv_search_setenv
6163 if test "$ac_res" != no; then :
6164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6177 # Define NO_UNSETENV if you don't have unsetenv in the C library.
6178 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6179 if test "x$ac_cv_func_unsetenv" = x""yes; then :
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing unsetenv" >&5
6182 $as_echo_n "checking for library containing unsetenv... " >&6; }
6183 if test "${ac_cv_search_unsetenv+set}" = set; then :
6184 $as_echo_n "(cached) " >&6
6186 ac_func_search_save_LIBS=$LIBS
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h. */
6190 /* Override any GCC internal prototype to avoid an error.
6191 Use char because int might match the return type of a GCC
6192 builtin and then its argument prototype would still apply. */
6205 for ac_lib in '' ; do
6206 if test -z "$ac_lib"; then
6207 ac_res="none required"
6210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6212 if ac_fn_c_try_link "$LINENO"; then :
6213 ac_cv_search_unsetenv=$ac_res
6215 rm -f core conftest.err conftest.$ac_objext \
6217 if test "${ac_cv_search_unsetenv+set}" = set; then :
6221 if test "${ac_cv_search_unsetenv+set}" = set; then :
6224 ac_cv_search_unsetenv=no
6227 LIBS=$ac_func_search_save_LIBS
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_unsetenv" >&5
6230 $as_echo "$ac_cv_search_unsetenv" >&6; }
6231 ac_res=$ac_cv_search_unsetenv
6232 if test "$ac_res" != no; then :
6233 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6236 NO_UNSETENV=YesPlease
6241 NO_UNSETENV=YesPlease
6246 # Define NO_MKDTEMP if you don't have mkdtemp in the C library.
6247 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
6248 if test "x$ac_cv_func_mkdtemp" = x""yes; then :
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mkdtemp" >&5
6251 $as_echo_n "checking for library containing mkdtemp... " >&6; }
6252 if test "${ac_cv_search_mkdtemp+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6255 ac_func_search_save_LIBS=$LIBS
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6259 /* Override any GCC internal prototype to avoid an error.
6260 Use char because int might match the return type of a GCC
6261 builtin and then its argument prototype would still apply. */
6274 for ac_lib in '' ; do
6275 if test -z "$ac_lib"; then
6276 ac_res="none required"
6279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6281 if ac_fn_c_try_link "$LINENO"; then :
6282 ac_cv_search_mkdtemp=$ac_res
6284 rm -f core conftest.err conftest.$ac_objext \
6286 if test "${ac_cv_search_mkdtemp+set}" = set; then :
6290 if test "${ac_cv_search_mkdtemp+set}" = set; then :
6293 ac_cv_search_mkdtemp=no
6296 LIBS=$ac_func_search_save_LIBS
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mkdtemp" >&5
6299 $as_echo "$ac_cv_search_mkdtemp" >&6; }
6300 ac_res=$ac_cv_search_mkdtemp
6301 if test "$ac_res" != no; then :
6302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6305 NO_MKDTEMP=YesPlease
6310 NO_MKDTEMP=YesPlease
6315 # Define NO_MKSTEMPS if you don't have mkstemps in the C library.
6316 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
6317 if test "x$ac_cv_func_mkstemps" = x""yes; then :
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mkstemps" >&5
6320 $as_echo_n "checking for library containing mkstemps... " >&6; }
6321 if test "${ac_cv_search_mkstemps+set}" = set; then :
6322 $as_echo_n "(cached) " >&6
6324 ac_func_search_save_LIBS=$LIBS
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h. */
6328 /* Override any GCC internal prototype to avoid an error.
6329 Use char because int might match the return type of a GCC
6330 builtin and then its argument prototype would still apply. */
6343 for ac_lib in '' ; do
6344 if test -z "$ac_lib"; then
6345 ac_res="none required"
6348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6350 if ac_fn_c_try_link "$LINENO"; then :
6351 ac_cv_search_mkstemps=$ac_res
6353 rm -f core conftest.err conftest.$ac_objext \
6355 if test "${ac_cv_search_mkstemps+set}" = set; then :
6359 if test "${ac_cv_search_mkstemps+set}" = set; then :
6362 ac_cv_search_mkstemps=no
6365 LIBS=$ac_func_search_save_LIBS
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mkstemps" >&5
6368 $as_echo "$ac_cv_search_mkstemps" >&6; }
6369 ac_res=$ac_cv_search_mkstemps
6370 if test "$ac_res" != no; then :
6371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6374 NO_MKSTEMPS=YesPlease
6379 NO_MKSTEMPS=YesPlease
6384 # Define NO_INITGROUPS if you don't have initgroups in the C library.
6385 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
6386 if test "x$ac_cv_func_initgroups" = x""yes; then :
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing initgroups" >&5
6389 $as_echo_n "checking for library containing initgroups... " >&6; }
6390 if test "${ac_cv_search_initgroups+set}" = set; then :
6391 $as_echo_n "(cached) " >&6
6393 ac_func_search_save_LIBS=$LIBS
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6397 /* Override any GCC internal prototype to avoid an error.
6398 Use char because int might match the return type of a GCC
6399 builtin and then its argument prototype would still apply. */
6407 return initgroups ();
6412 for ac_lib in '' ; do
6413 if test -z "$ac_lib"; then
6414 ac_res="none required"
6417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6419 if ac_fn_c_try_link "$LINENO"; then :
6420 ac_cv_search_initgroups=$ac_res
6422 rm -f core conftest.err conftest.$ac_objext \
6424 if test "${ac_cv_search_initgroups+set}" = set; then :
6428 if test "${ac_cv_search_initgroups+set}" = set; then :
6431 ac_cv_search_initgroups=no
6434 LIBS=$ac_func_search_save_LIBS
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initgroups" >&5
6437 $as_echo "$ac_cv_search_initgroups" >&6; }
6438 ac_res=$ac_cv_search_initgroups
6439 if test "$ac_res" != no; then :
6440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6443 NO_INITGROUPS=YesPlease
6448 NO_INITGROUPS=YesPlease
6454 # Define NO_MMAP if you want to avoid mmap.
6456 # Define NO_ICONV if your libc does not properly support iconv.
6460 # Define USE_PIC if you need the main git objects to be built with -fPIC
6461 # in order to build and link perl/Git.so. x86-64 seems to need this.
6463 # Define NO_SYMLINK_HEAD if you never want .git/HEAD to be a symbolic link.
6464 # Enable it on Windows. By default, symrefs are still used.
6466 # Define NO_PTHREADS if we do not have pthreads.
6468 # Define PTHREAD_LIBS to the linker flag used for Pthread support.
6472 NO_PTHREADS=UnfortunatelyYes
6475 if test -n "$USER_NOPTHREAD"; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping POSIX Threads at user request." >&5
6477 $as_echo "$as_me: Skipping POSIX Threads at user request." >&6;}
6478 # handle these separately since PTHREAD_CFLAGS could be '-lpthreads
6479 # -D_REENTRANT' or some such.
6480 elif test -z "$PTHREAD_CFLAGS"; then
6482 for opt in -mt -pthread -lpthread; do
6483 old_CFLAGS="$CFLAGS"
6484 CFLAGS="$opt $CFLAGS"
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for POSIX Threads with '$opt'" >&5
6486 $as_echo_n "checking Checking for POSIX Threads with '$opt'... " >&6; }
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6491 #include <pthread.h>
6497 pthread_mutex_t test_mutex;
6498 pthread_key_t test_key;
6500 retcode |= pthread_key_create(&test_key, (void *)0);
6501 retcode |= pthread_mutex_init(&test_mutex,(void *)0);
6502 retcode |= pthread_mutex_lock(&test_mutex);
6503 retcode |= pthread_mutex_unlock(&test_mutex);
6510 if ac_fn_c_try_link "$LINENO"; then :
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6512 $as_echo "yes" >&6; }
6515 PTHREAD_CFLAGS="$opt"
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6523 rm -f core conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext conftest.$ac_ext
6525 CFLAGS="$old_CFLAGS"
6527 if test $threads_found != yes; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6529 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6530 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6533 ac_check_lib_save_LIBS=$LIBS
6534 LIBS="-lpthread $LIBS"
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6538 /* Override any GCC internal prototype to avoid an error.
6539 Use char because int might match the return type of a GCC
6540 builtin and then its argument prototype would still apply. */
6544 char pthread_create ();
6548 return pthread_create ();
6553 if ac_fn_c_try_link "$LINENO"; then :
6554 ac_cv_lib_pthread_pthread_create=yes
6556 ac_cv_lib_pthread_pthread_create=no
6558 rm -f core conftest.err conftest.$ac_objext \
6559 conftest$ac_exeext conftest.$ac_ext
6560 LIBS=$ac_check_lib_save_LIBS
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6563 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6564 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
6565 PTHREAD_LIBS="-lpthread"
6567 NO_PTHREADS=UnfortunatelyYes
6572 old_CFLAGS="$CFLAGS"
6573 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for POSIX Threads with '$PTHREAD_CFLAGS'" >&5
6575 $as_echo_n "checking Checking for POSIX Threads with '$PTHREAD_CFLAGS'... " >&6; }
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6580 #include <pthread.h>
6586 pthread_mutex_t test_mutex;
6587 pthread_key_t test_key;
6589 retcode |= pthread_key_create(&test_key, (void *)0);
6590 retcode |= pthread_mutex_init(&test_mutex,(void *)0);
6591 retcode |= pthread_mutex_lock(&test_mutex);
6592 retcode |= pthread_mutex_unlock(&test_mutex);
6599 if ac_fn_c_try_link "$LINENO"; then :
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6601 $as_echo "yes" >&6; }
6603 PTHREAD_LIBS="$PTHREAD_CFLAGS"
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6609 rm -f core conftest.err conftest.$ac_objext \
6610 conftest$ac_exeext conftest.$ac_ext
6612 CFLAGS="$old_CFLAGS"
6615 CFLAGS="$old_CFLAGS"
6622 ac_config_files="$ac_config_files "${config_file}":"${config_in}":"${config_append}""
6624 cat >confcache <<\_ACEOF
6625 # This file is a shell script that caches the results of configure
6626 # tests run on this system so they can be shared between configure
6627 # scripts and configure runs, see configure's option --config-cache.
6628 # It is not useful on other systems. If it contains results you don't
6629 # want to keep, you may remove or edit it.
6631 # config.status only pays attention to the cache file if you give it
6632 # the --recheck option to rerun configure.
6634 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6635 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6640 # The following way of writing the cache mishandles newlines in values,
6641 # but we know of no workaround that is simple, portable, and efficient.
6642 # So, we kill variables containing newlines.
6643 # Ultrix sh set writes to stderr and can't be redirected directly,
6644 # and sets the high bit in the cache file unless we assign to the vars.
6646 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6647 eval ac_val=\$$ac_var
6651 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6652 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6655 _ | IFS | as_nl) ;; #(
6656 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6657 *) { eval $ac_var=; unset $ac_var;} ;;
6663 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6664 *${as_nl}ac_space=\ *)
6665 # `set' does not quote correctly, so add quotes: double-quote
6666 # substitution turns \\\\ into \\, and sed turns \\ into \.
6669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6672 # `set' quotes correctly as required by POSIX, so do not add quotes.
6673 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6682 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6684 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6686 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6687 if test -w "$cache_file"; then
6688 test "x$cache_file" != "x/dev/null" &&
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6690 $as_echo "$as_me: updating cache $cache_file" >&6;}
6691 cat confcache >$cache_file
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6694 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6700 # Let make expand exec_prefix.
6701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6703 # Transform confdefs.h into DEFS.
6704 # Protect against shell expansion while executing Makefile rules.
6705 # Protect against Makefile macro expansion.
6707 # If the first sed substitution is executed (which looks for macros that
6708 # take arguments), then branch to the quote section. Otherwise,
6709 # look for a macro that doesn't take arguments.
6719 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
6721 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
6725 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6738 DEFS=`sed -n "$ac_script" confdefs.h`
6744 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6745 # 1. Remove the extension, and $U if already installed.
6746 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6747 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6748 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6749 # will be set to the directory where LIBOBJS objects are built.
6750 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6751 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6755 LTLIBOBJS=$ac_ltlibobjs
6759 : ${CONFIG_STATUS=./config.status}
6761 ac_clean_files_save=$ac_clean_files
6762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6764 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6766 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6768 # Generated by $as_me.
6769 # Run this file to recreate the current configuration.
6770 # Compiler output produced by configure, useful for debugging
6771 # configure, is in config.log if it exists.
6777 SHELL=\${CONFIG_SHELL-$SHELL}
6780 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6781 ## -------------------- ##
6782 ## M4sh Initialization. ##
6783 ## -------------------- ##
6785 # Be more Bourne compatible
6786 DUALCASE=1; export DUALCASE # for MKS sh
6787 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6790 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6791 # is contrary to our usage. Disable this feature.
6792 alias -g '${1+"$@"}'='"$@"'
6793 setopt NO_GLOB_SUBST
6795 case `(set -o) 2>/dev/null` in #(
6807 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6808 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6809 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6810 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6811 # Prefer a ksh shell builtin over an external printf program on Solaris,
6812 # but without wasting forks for bash or zsh.
6813 if test -z "$BASH_VERSION$ZSH_VERSION" \
6814 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6815 as_echo='print -r --'
6816 as_echo_n='print -rn --'
6817 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6818 as_echo='printf %s\n'
6819 as_echo_n='printf %s'
6821 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6822 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6823 as_echo_n='/usr/ucb/echo -n'
6825 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6826 as_echo_n_body='eval
6830 expr "X$arg" : "X\\(.*\\)$as_nl";
6831 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6833 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6835 export as_echo_n_body
6836 as_echo_n='sh -c $as_echo_n_body as_echo'
6839 as_echo='sh -c $as_echo_body as_echo'
6842 # The user is always right.
6843 if test "${PATH_SEPARATOR+set}" != set; then
6845 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6846 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6853 # We need space, tab and new line, in precisely that order. Quoting is
6854 # there to prevent editors from complaining about space-tab.
6855 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6856 # splitting by setting IFS to empty value.)
6859 # Find who we are. Look in the path if we contain no directory separator.
6861 *[\\/]* ) as_myself=$0 ;;
6862 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 test -z "$as_dir" && as_dir=.
6867 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6873 # We did not find ourselves, most probably we were run as `sh COMMAND'
6874 # in which case we are not to be found in the path.
6875 if test "x$as_myself" = x; then
6878 if test ! -f "$as_myself"; then
6879 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6883 # Unset variables that we do not need and which cause bugs (e.g. in
6884 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6885 # suppresses any "Segmentation fault" message there. '((' could
6886 # trigger a bug in pdksh 5.2.14.
6887 for as_var in BASH_ENV ENV MAIL MAILPATH
6888 do eval test x\${$as_var+set} = xset \
6889 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6902 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6905 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6906 # ----------------------------------------
6907 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6908 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6909 # script with STATUS, using 1 if that was 0.
6912 as_status=$1; test $as_status -eq 0 && as_status=1
6914 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6915 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6917 $as_echo "$as_me: error: $2" >&2
6918 as_fn_exit $as_status
6922 # as_fn_set_status STATUS
6923 # -----------------------
6924 # Set $? to STATUS, without forking.
6928 } # as_fn_set_status
6932 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6942 # Portably unset VAR.
6945 { eval $1=; unset $1;}
6947 as_unset=as_fn_unset
6948 # as_fn_append VAR VALUE
6949 # ----------------------
6950 # Append the text in VALUE to the end of the definition contained in VAR. Take
6951 # advantage of any shell optimizations that allow amortized linear growth over
6952 # repeated appends, instead of the typical quadratic growth present in naive
6954 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6955 eval 'as_fn_append ()
6966 # as_fn_arith ARG...
6967 # ------------------
6968 # Perform arithmetic evaluation on the ARGs, and store the result in the
6969 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6970 # must be portable across $(()) and expr.
6971 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6972 eval 'as_fn_arith ()
6979 as_val=`expr "$@" || test $? -eq 1`
6984 if expr a : '\(a\)' >/dev/null 2>&1 &&
6985 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6991 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6992 as_basename=basename
6997 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7003 as_me=`$as_basename -- "$0" ||
7004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7005 X"$0" : 'X\(//\)$' \| \
7006 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7008 sed '/^.*\/\([^/][^/]*\)\/*$/{
7022 # Avoid depending upon Character Ranges.
7023 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7024 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7025 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7026 as_cr_digits='0123456789'
7027 as_cr_alnum=$as_cr_Letters$as_cr_digits
7029 ECHO_C= ECHO_N= ECHO_T=
7030 case `echo -n x` in #(((((
7032 case `echo 'xy\c'` in
7033 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7035 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7042 rm -f conf$$ conf$$.exe conf$$.file
7043 if test -d conf$$.dir; then
7044 rm -f conf$$.dir/conf$$.file
7047 mkdir conf$$.dir 2>/dev/null
7049 if (echo >conf$$.file) 2>/dev/null; then
7050 if ln -s conf$$.file conf$$ 2>/dev/null; then
7052 # ... but there are two gotchas:
7053 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7054 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7055 # In both cases, we have to default to `cp -p'.
7056 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7058 elif ln conf$$.file conf$$ 2>/dev/null; then
7066 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7067 rmdir conf$$.dir 2>/dev/null
7072 # Create "$as_dir" as a directory, including parents if necessary.
7077 -*) as_dir=./$as_dir;;
7079 test -d "$as_dir" || eval $as_mkdir_p || {
7083 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7084 *) as_qdir=$as_dir;;
7086 as_dirs="'$as_qdir' $as_dirs"
7087 as_dir=`$as_dirname -- "$as_dir" ||
7088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7089 X"$as_dir" : 'X\(//\)[^/]' \| \
7090 X"$as_dir" : 'X\(//\)$' \| \
7091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7092 $as_echo X"$as_dir" |
7093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7110 test -d "$as_dir" && break
7112 test -z "$as_dirs" || eval "mkdir $as_dirs"
7113 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7117 if mkdir -p . 2>/dev/null; then
7118 as_mkdir_p='mkdir -p "$as_dir"'
7120 test -d ./-p && rmdir ./-p
7124 if test -x / >/dev/null 2>&1; then
7127 if ls -dL / >/dev/null 2>&1; then
7134 if test -d "$1"; then
7140 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7141 ???[sx]*):;;*)false;;esac;fi
7145 as_executable_p=$as_test_x
7147 # Sed expression to map a string onto a valid CPP name.
7148 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7150 # Sed expression to map a string onto a valid variable name.
7151 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7155 ## ----------------------------------- ##
7156 ## Main body of $CONFIG_STATUS script. ##
7157 ## ----------------------------------- ##
7159 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7162 # Save the log message, to keep $0 and so on meaningful, and to
7163 # report actual input values of CONFIG_FILES etc. instead of their
7164 # values after options handling.
7166 This file was extended by git $as_me 1.7.10.4, which was
7167 generated by GNU Autoconf 2.67. Invocation command line was
7169 CONFIG_FILES = $CONFIG_FILES
7170 CONFIG_HEADERS = $CONFIG_HEADERS
7171 CONFIG_LINKS = $CONFIG_LINKS
7172 CONFIG_COMMANDS = $CONFIG_COMMANDS
7175 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7180 case $ac_config_files in *"
7181 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7187 # Files that config.status was made for.
7188 config_files="$ac_config_files"
7192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7194 \`$as_me' instantiates files and other configuration actions
7195 from templates according to the current configuration. Unless the files
7196 and actions are specified as TAGs, all are instantiated by default.
7198 Usage: $0 [OPTION]... [TAG]...
7200 -h, --help print this help, then exit
7201 -V, --version print version number and configuration settings, then exit
7202 --config print configuration, then exit
7203 -q, --quiet, --silent
7204 do not print progress messages
7205 -d, --debug don't remove temporary files
7206 --recheck update $as_me by reconfiguring in the same conditions
7207 --file=FILE[:TEMPLATE]
7208 instantiate the configuration file FILE
7210 Configuration files:
7213 Report bugs to <git@vger.kernel.org>."
7216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7217 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7219 git config.status 1.7.10.4
7220 configured by $0, generated by GNU Autoconf 2.67,
7221 with options \\"\$ac_cs_config\\"
7223 Copyright (C) 2010 Free Software Foundation, Inc.
7224 This config.status script is free software; the Free Software Foundation
7225 gives unlimited permission to copy, distribute and modify it."
7229 test -n "\$AWK" || AWK=awk
7232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7233 # The default lists apply if the user does not specify any file.
7239 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7240 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7244 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7256 # Handling of the options.
7257 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7259 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7260 $as_echo "$ac_cs_version"; exit ;;
7261 --config | --confi | --conf | --con | --co | --c )
7262 $as_echo "$ac_cs_config"; exit ;;
7263 --debug | --debu | --deb | --de | --d | -d )
7265 --file | --fil | --fi | --f )
7268 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7269 '') as_fn_error $? "missing file argument" ;;
7271 as_fn_append CONFIG_FILES " '$ac_optarg'"
7272 ac_need_defaults=false;;
7273 --he | --h | --help | --hel | -h )
7274 $as_echo "$ac_cs_usage"; exit ;;
7275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7276 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7280 -*) as_fn_error $? "unrecognized option: \`$1'
7281 Try \`$0 --help' for more information." ;;
7283 *) as_fn_append ac_config_targets " $1"
7284 ac_need_defaults=false ;;
7290 ac_configure_extra_args=
7292 if $ac_cs_silent; then
7294 ac_configure_extra_args="$ac_configure_extra_args --silent"
7298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7299 if \$ac_cs_recheck; then
7300 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7302 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7303 CONFIG_SHELL='$SHELL'
7309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7313 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7314 ## Running $as_me. ##
7320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7325 # Handling of arguments.
7326 for ac_config_target in $ac_config_targets
7328 case $ac_config_target in
7329 ""${config_file}"") CONFIG_FILES="$CONFIG_FILES "${config_file}":"${config_in}":"${config_append}"" ;;
7331 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
7336 # If the user did not use the arguments to specify the items to instantiate,
7337 # then the envvar interface is used. Set only those that are not.
7338 # We use the long form for the default assignment because of an extremely
7339 # bizarre bug on SunOS 4.1.3.
7340 if $ac_need_defaults; then
7341 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7344 # Have a temporary directory for convenience. Make it in the build tree
7345 # simply because there is no reason against having it here, and in addition,
7346 # creating and moving files from /tmp can sometimes cause problems.
7347 # Hook for its removal unless debugging.
7348 # Note that there is a small window in which the directory will not be cleaned:
7349 # after its creation but before its name has been assigned to `$tmp'.
7353 trap 'exit_status=$?
7354 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7356 trap 'as_fn_exit 1' 1 2 13 15
7358 # Create a (secure) tmp directory for tmp files.
7361 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7362 test -n "$tmp" && test -d "$tmp"
7365 tmp=./conf$$-$RANDOM
7366 (umask 077 && mkdir "$tmp")
7367 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7369 # Set up the scripts for CONFIG_FILES section.
7370 # No need to generate them if there are no CONFIG_FILES.
7371 # This happens for instance with `./config.status config.h'.
7372 if test -n "$CONFIG_FILES"; then
7375 ac_cr=`echo X | tr X '\015'`
7376 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7377 # But we know of no other shell where ac_cr would be empty at this
7378 # point, so we can use a bashism as a fallback.
7379 if test "x$ac_cr" = x; then
7380 eval ac_cr=\$\'\\r\'
7382 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7383 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7389 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7394 echo "cat >conf$$subs.awk <<_ACEOF" &&
7395 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7399 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7401 for ac_last_try in false false false false false :; do
7402 . ./conf$$subs.sh ||
7403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7405 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7406 if test $ac_delim_n = $ac_delim_num; then
7408 elif $ac_last_try; then
7409 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7417 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7421 s/^/S["/; s/!.*/"]=/
7431 s/\(.\{148\}\)..*/\1/
7433 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7438 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7445 s/\(.\{148\}\)..*/\1/
7447 s/["\\]/\\&/g; s/^/"/; s/$/"/
7451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7456 ' <conf$$subs.awk | sed '
7461 ' >>$CONFIG_STATUS || ac_write_fail=1
7462 rm -f conf$$subs.awk
7463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7465 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7466 for (key in S) S_is_set[key] = 1
7472 nfields = split(line, field, "@")
7474 len = length(field[1])
7475 for (i = 2; i < nfields; i++) {
7477 keylen = length(key)
7478 if (S_is_set[key]) {
7480 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7481 len += length(value) + length(field[++i])
7492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7493 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7494 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7497 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7498 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7501 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7502 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7503 # trailing colons and then remove the whole line if VPATH becomes empty
7504 # (actually we leave an empty line to preserve line numbers).
7505 if test "x$srcdir" = x.; then
7506 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7525 fi # test -n "$CONFIG_FILES"
7528 eval set X " :F $CONFIG_FILES "
7533 :[FHLC]) ac_mode=$ac_tag; continue;;
7535 case $ac_mode$ac_tag in
7537 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
7538 :[FH]-) ac_tag=-:-;;
7539 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7556 -) ac_f="$tmp/stdin";;
7557 *) # Look for the file first in the build tree, then in the source tree
7558 # (if the path is not absolute). The absolute path cannot be DOS-style,
7559 # because $ac_f cannot contain `:'.
7563 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7565 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
7567 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7568 as_fn_append ac_file_inputs " '$ac_f'"
7571 # Let's still pretend it is `configure' which instantiates (i.e., don't
7572 # use $as_me), people would be surprised to read:
7573 # /* config.h. Generated by config.status. */
7574 configure_input='Generated from '`
7575 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7577 if test x"$ac_file" != x-; then
7578 configure_input="$ac_file. $configure_input"
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7580 $as_echo "$as_me: creating $ac_file" >&6;}
7582 # Neutralize special characters interpreted by sed in replacement strings.
7583 case $configure_input in #(
7584 *\&* | *\|* | *\\* )
7585 ac_sed_conf_input=`$as_echo "$configure_input" |
7586 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7587 *) ac_sed_conf_input=$configure_input;;
7591 *:-:* | *:-) cat >"$tmp/stdin" \
7592 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7597 ac_dir=`$as_dirname -- "$ac_file" ||
7598 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7599 X"$ac_file" : 'X\(//\)[^/]' \| \
7600 X"$ac_file" : 'X\(//\)$' \| \
7601 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7602 $as_echo X"$ac_file" |
7603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7620 as_dir="$ac_dir"; as_fn_mkdir_p
7624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7627 # A ".." for each directory in $ac_dir_suffix.
7628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7629 case $ac_top_builddir_sub in
7630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7634 ac_abs_top_builddir=$ac_pwd
7635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7636 # for backward compatibility:
7637 ac_top_builddir=$ac_top_build_prefix
7640 .) # We are building in place.
7642 ac_top_srcdir=$ac_top_builddir_sub
7643 ac_abs_top_srcdir=$ac_pwd ;;
7644 [\\/]* | ?:[\\/]* ) # Absolute name.
7645 ac_srcdir=$srcdir$ac_dir_suffix;
7646 ac_top_srcdir=$srcdir
7647 ac_abs_top_srcdir=$srcdir ;;
7649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7650 ac_top_srcdir=$ac_top_build_prefix$srcdir
7651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7665 # If the template does not know about datarootdir, expand it.
7666 # FIXME: This hack should be removed a few years after 2.60.
7667 ac_datarootdir_hack=; ac_datarootdir_seen=
7678 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7679 *datarootdir*) ac_datarootdir_seen=yes;;
7680 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7682 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7685 ac_datarootdir_hack='
7686 s&@datadir@&$datadir&g
7687 s&@docdir@&$docdir&g
7688 s&@infodir@&$infodir&g
7689 s&@localedir@&$localedir&g
7690 s&@mandir@&$mandir&g
7691 s&\\\${datarootdir}&$datarootdir&g' ;;
7695 # Neutralize VPATH when `$srcdir' = `.'.
7696 # Shell code in configure.ac might set extrasub.
7697 # FIXME: do we really want to maintain this feature?
7698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7699 ac_sed_extra="$ac_vpsub
7702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7704 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7705 s|@configure_input@|$ac_sed_conf_input|;t t
7706 s&@top_builddir@&$ac_top_builddir_sub&;t t
7707 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7708 s&@srcdir@&$ac_srcdir&;t t
7709 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7710 s&@top_srcdir@&$ac_top_srcdir&;t t
7711 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7712 s&@builddir@&$ac_builddir&;t t
7713 s&@abs_builddir@&$ac_abs_builddir&;t t
7714 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7715 $ac_datarootdir_hack
7717 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7718 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7720 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7721 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7722 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7724 which seems to be undefined. Please make sure it is defined" >&5
7725 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7726 which seems to be undefined. Please make sure it is defined" >&2;}
7730 -) cat "$tmp/out" && rm -f "$tmp/out";;
7731 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7745 ac_clean_files=$ac_clean_files_save
7747 test $ac_write_fail = 0 ||
7748 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7751 # configure is writing to config.log, and then calls config.status.
7752 # config.status does its own redirection, appending to config.log.
7753 # Unfortunately, on DOS this fails, as config.log is still kept open
7754 # by configure, so config.status won't be able to write to it; its
7755 # output is simply discarded. So we exec the FD to /dev/null,
7756 # effectively closing config.log, so it can be properly (re)opened and
7757 # appended to by config.status. When coming back to configure, we
7758 # need to make the FD available again.
7759 if test "$no_create" != yes; then
7761 ac_config_status_args=
7762 test "$silent" = yes &&
7763 ac_config_status_args="$ac_config_status_args --quiet"
7765 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7767 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7768 # would make configure fail if this is the last instruction.
7769 $ac_cs_success || as_fn_exit 1
7771 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7773 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7779 rm -f "${config_append}"