Imported Upstream version 1.7.10.4
[platform/upstream/git.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for git 1.7.10.4.
4 #
5 # Report bugs to <git@vger.kernel.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
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 ## -------------------- ##
18
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 :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
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
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
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'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
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.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
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
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
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 || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
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 :
140   emulate sh
141   NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
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; }
160
161 exitcode=0
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 :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
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 :
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184 else
185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 do
189   IFS=$as_save_IFS
190   test -z "$as_dir" && as_dir=.
191   as_found=:
192   case $as_dir in #(
193          /*)
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 :
201   break 2
202 fi
203 fi
204            done;;
205        esac
206   as_found=false
207 done
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
211 fi; }
212 IFS=$as_save_IFS
213
214
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.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 fi
225
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."
232   else
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."
238   fi
239   exit 1
240 fi
241 fi
242 fi
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
248
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
256 {
257   { eval $1=; unset $1;}
258 }
259 as_unset=as_fn_unset
260
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
265 {
266   return $1
267 } # as_fn_set_status
268
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
273 {
274   set +e
275   as_fn_set_status $1
276   exit $1
277 } # as_fn_exit
278
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
283 {
284
285   case $as_dir in #(
286   -*) as_dir=./$as_dir;;
287   esac
288   test -d "$as_dir" || eval $as_mkdir_p || {
289     as_dirs=
290     while :; do
291       case $as_dir in #(
292       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293       *) as_qdir=$as_dir;;
294       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303             s//\1/
304             q
305           }
306           /^X\(\/\/\)[^/].*/{
307             s//\1/
308             q
309           }
310           /^X\(\/\/\)$/{
311             s//\1/
312             q
313           }
314           /^X\(\/\).*/{
315             s//\1/
316             q
317           }
318           s/.*/./; q'`
319       test -d "$as_dir" && break
320     done
321     test -z "$as_dirs" || eval "mkdir $as_dirs"
322   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325 } # as_fn_mkdir_p
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
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333   eval 'as_fn_append ()
334   {
335     eval $1+=\$2
336   }'
337 else
338   as_fn_append ()
339   {
340     eval $1=\$$1\$2
341   }
342 fi # as_fn_append
343
344 # as_fn_arith ARG...
345 # ------------------
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 :
350   eval 'as_fn_arith ()
351   {
352     as_val=$(( $* ))
353   }'
354 else
355   as_fn_arith ()
356   {
357     as_val=`expr "$@" || test $? -eq 1`
358   }
359 fi # as_fn_arith
360
361
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.
367 as_fn_error ()
368 {
369   as_status=$1; test $as_status -eq 0 && as_status=1
370   if test "$4"; then
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
373   fi
374   $as_echo "$as_me: error: $2" >&2
375   as_fn_exit $as_status
376 } # as_fn_error
377
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379    test "X`expr 00001 : '.*\(...\)'`" = X001; then
380   as_expr=expr
381 else
382   as_expr=false
383 fi
384
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386   as_basename=basename
387 else
388   as_basename=false
389 fi
390
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392   as_dirname=dirname
393 else
394   as_dirname=false
395 fi
396
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399          X"$0" : 'X\(//\)$' \| \
400          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402     sed '/^.*\/\([^/][^/]*\)\/*$/{
403             s//\1/
404             q
405           }
406           /^X\/\(\/\/\)$/{
407             s//\1/
408             q
409           }
410           /^X\/\(\/\).*/{
411             s//\1/
412             q
413           }
414           s/.*/./; q'`
415
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
422
423
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.  :-)
429   sed -n '
430     p
431     /[$]LINENO/=
432   ' <$as_myself |
433     sed '
434       s/[$]LINENO.*/&-/
435       t lineno
436       b
437       :lineno
438       N
439       :loop
440       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441       t loop
442       s/-\n.*//
443     ' >$as_me.lineno &&
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; }
446
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).
450   . "./$as_me.lineno"
451   # Exit status is that of the last command.
452   exit
453 }
454
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458   case `echo 'xy\c'` in
459   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
460   xy)  ECHO_C='\c';;
461   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462        ECHO_T=' ';;
463   esac;;
464 *)
465   ECHO_N='-n';;
466 esac
467
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470   rm -f conf$$.dir/conf$$.file
471 else
472   rm -f conf$$.dir
473   mkdir conf$$.dir 2>/dev/null
474 fi
475 if (echo >conf$$.file) 2>/dev/null; then
476   if ln -s conf$$.file conf$$ 2>/dev/null; then
477     as_ln_s='ln -s'
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 ||
483       as_ln_s='cp -p'
484   elif ln conf$$.file conf$$ 2>/dev/null; then
485     as_ln_s=ln
486   else
487     as_ln_s='cp -p'
488   fi
489 else
490   as_ln_s='cp -p'
491 fi
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
494
495 if mkdir -p . 2>/dev/null; then
496   as_mkdir_p='mkdir -p "$as_dir"'
497 else
498   test -d ./-p && rmdir ./-p
499   as_mkdir_p=false
500 fi
501
502 if test -x / >/dev/null 2>&1; then
503   as_test_x='test -x'
504 else
505   if ls -dL / >/dev/null 2>&1; then
506     as_ls_L_option=L
507   else
508     as_ls_L_option=
509   fi
510   as_test_x='
511     eval sh -c '\''
512       if test -d "$1"; then
513         test -d "$1/.";
514       else
515         case $1 in #(
516         -*)set "./$1";;
517         esac;
518         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519         ???[sx]*):;;*)false;;esac;fi
520     '\'' sh
521   '
522 fi
523 as_executable_p=$as_test_x
524
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'"
527
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'"
530
531
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
534
535 # Name of the host.
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`
539
540 #
541 # Initializations.
542 #
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
551
552 # Identity of this package.
553 PACKAGE_NAME='git'
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'
558 PACKAGE_URL=''
559
560 ac_unique_file="git.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
563 #include <stdio.h>
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
566 #endif
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
569 #endif
570 #ifdef STDC_HEADERS
571 # include <stdlib.h>
572 # include <stddef.h>
573 #else
574 # ifdef HAVE_STDLIB_H
575 #  include <stdlib.h>
576 # endif
577 #endif
578 #ifdef HAVE_STRING_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580 #  include <memory.h>
581 # endif
582 # include <string.h>
583 #endif
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
586 #endif
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
589 #endif
590 #ifdef HAVE_STDINT_H
591 # include <stdint.h>
592 #endif
593 #ifdef HAVE_UNISTD_H
594 # include <unistd.h>
595 #endif"
596
597 ac_subst_vars='LTLIBOBJS
598 LIBOBJS
599 NO_PTHREADS
600 PTHREAD_LIBS
601 PTHREAD_CFLAGS
602 NO_INITGROUPS
603 NO_MKSTEMPS
604 NO_MKDTEMP
605 NO_UNSETENV
606 NO_SETENV
607 NO_STRTOUMAX
608 NO_UINTMAX_T
609 NO_STRLCPY
610 NO_MEMMEM
611 NO_FNMATCH_CASEFOLD
612 NO_FNMATCH
613 NO_STRTOK_R
614 NO_STRCASESTR
615 CHARSET_LIB
616 HAVE_LIBCHARSET_H
617 HAVE_PATHS_H
618 NO_LIBGEN_H
619 SNPRINTF_RETURNS_BOGUS
620 FREAD_READS_DIRECTORIES
621 NO_REGEX
622 NO_IPV6
623 NO_SOCKADDR_STORAGE
624 NO_D_TYPE_IN_DIRENT
625 NO_D_INO_IN_DIRENT
626 SOCKLEN_T
627 OLD_ICONV
628 NO_INTTYPES_H
629 NO_SYS_POLL_H
630 NO_SYS_SELECT_H
631 NO_GETTEXT
632 EGREP
633 GREP
634 CPP
635 LIBC_CONTAINS_LIBINTL
636 NEEDS_LIBGEN
637 NO_HSTRERROR
638 NO_INET_PTON
639 NO_INET_NTOP
640 NEEDS_RESOLV
641 NEEDS_SOCKET
642 NO_DEFLATE_BOUND
643 NO_ICONV
644 NEEDS_LIBICONV
645 NO_EXPAT
646 NO_CURL
647 USE_LIBPCRE
648 NO_OPENSSL
649 NEEDS_SSL_WITH_CRYPTO
650 ASCIIDOC7
651 ASCIIDOC
652 TCLTK_PATH
653 DIFF
654 TAR
655 ac_ct_AR
656 AR
657 CC_LD_DYNPATH
658 INLINE
659 OBJEXT
660 EXEEXT
661 ac_ct_CC
662 CPPFLAGS
663 LDFLAGS
664 CFLAGS
665 CC
666 target_alias
667 host_alias
668 build_alias
669 LIBS
670 ECHO_T
671 ECHO_N
672 ECHO_C
673 DEFS
674 mandir
675 localedir
676 libdir
677 psdir
678 pdfdir
679 dvidir
680 htmldir
681 infodir
682 docdir
683 oldincludedir
684 includedir
685 localstatedir
686 sharedstatedir
687 sysconfdir
688 datadir
689 datarootdir
690 libexecdir
691 sbindir
692 bindir
693 program_transform_name
694 prefix
695 exec_prefix
696 PACKAGE_URL
697 PACKAGE_BUGREPORT
698 PACKAGE_STRING
699 PACKAGE_VERSION
700 PACKAGE_TARNAME
701 PACKAGE_NAME
702 PATH_SEPARATOR
703 SHELL'
704 ac_subst_files=''
705 ac_user_opts='
706 enable_option_checking
707 with_sane_tool_path
708 with_lib
709 enable_pthreads
710 enable_jsmin
711 enable_cssmin
712 with_openssl
713 with_libpcre
714 with_curl
715 with_expat
716 with_iconv
717 with_gitconfig
718 with_gitattributes
719 with_pager
720 with_editor
721 with_shell
722 with_perl
723 with_python
724 with_zlib
725 with_tcltk
726 '
727       ac_precious_vars='build_alias
728 host_alias
729 target_alias
730 CC
731 CFLAGS
732 LDFLAGS
733 LIBS
734 CPPFLAGS
735 CPP'
736
737
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 ac_unrecognized_opts=
742 ac_unrecognized_sep=
743 # The variables have the same names as the options, with
744 # dashes changed to underlines.
745 cache_file=/dev/null
746 exec_prefix=NONE
747 no_create=
748 no_recursion=
749 prefix=NONE
750 program_prefix=NONE
751 program_suffix=NONE
752 program_transform_name=s,x,x,
753 silent=
754 site=
755 srcdir=
756 verbose=
757 x_includes=NONE
758 x_libraries=NONE
759
760 # Installation directory options.
761 # These are left unexpanded so users can "make install exec_prefix=/foo"
762 # and all the variables that are supposed to be based on exec_prefix
763 # by default will actually change.
764 # Use braces instead of parens because sh, perl, etc. also accept them.
765 # (The list follows the same order as the GNU Coding Standards.)
766 bindir='${exec_prefix}/bin'
767 sbindir='${exec_prefix}/sbin'
768 libexecdir='${exec_prefix}/libexec'
769 datarootdir='${prefix}/share'
770 datadir='${datarootdir}'
771 sysconfdir='${prefix}/etc'
772 sharedstatedir='${prefix}/com'
773 localstatedir='${prefix}/var'
774 includedir='${prefix}/include'
775 oldincludedir='/usr/include'
776 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
777 infodir='${datarootdir}/info'
778 htmldir='${docdir}'
779 dvidir='${docdir}'
780 pdfdir='${docdir}'
781 psdir='${docdir}'
782 libdir='${exec_prefix}/lib'
783 localedir='${datarootdir}/locale'
784 mandir='${datarootdir}/man'
785
786 ac_prev=
787 ac_dashdash=
788 for ac_option
789 do
790   # If the previous option needs an argument, assign it.
791   if test -n "$ac_prev"; then
792     eval $ac_prev=\$ac_option
793     ac_prev=
794     continue
795   fi
796
797   case $ac_option in
798   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
799   *=)   ac_optarg= ;;
800   *)    ac_optarg=yes ;;
801   esac
802
803   # Accept the important Cygnus configure options, so we can diagnose typos.
804
805   case $ac_dashdash$ac_option in
806   --)
807     ac_dashdash=yes ;;
808
809   -bindir | --bindir | --bindi | --bind | --bin | --bi)
810     ac_prev=bindir ;;
811   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
812     bindir=$ac_optarg ;;
813
814   -build | --build | --buil | --bui | --bu)
815     ac_prev=build_alias ;;
816   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
817     build_alias=$ac_optarg ;;
818
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 ;;
825
826   --config-cache | -C)
827     cache_file=config.cache ;;
828
829   -datadir | --datadir | --datadi | --datad)
830     ac_prev=datadir ;;
831   -datadir=* | --datadir=* | --datadi=* | --datad=*)
832     datadir=$ac_optarg ;;
833
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 ;;
840
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
849       *"
850 "enable_$ac_useropt"
851 "*) ;;
852       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
853          ac_unrecognized_sep=', ';;
854     esac
855     eval enable_$ac_useropt=no ;;
856
857   -docdir | --docdir | --docdi | --doc | --do)
858     ac_prev=docdir ;;
859   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
860     docdir=$ac_optarg ;;
861
862   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
863     ac_prev=dvidir ;;
864   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
865     dvidir=$ac_optarg ;;
866
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
875       *"
876 "enable_$ac_useropt"
877 "*) ;;
878       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
879          ac_unrecognized_sep=', ';;
880     esac
881     eval enable_$ac_useropt=\$ac_optarg ;;
882
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 ;;
891
892   -gas | --gas | --ga | --g)
893     # Obsolete; use --with-gas.
894     with_gas=yes ;;
895
896   -help | --help | --hel | --he | -h)
897     ac_init_help=long ;;
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 ;;
902
903   -host | --host | --hos | --ho)
904     ac_prev=host_alias ;;
905   -host=* | --host=* | --hos=* | --ho=*)
906     host_alias=$ac_optarg ;;
907
908   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909     ac_prev=htmldir ;;
910   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911   | --ht=*)
912     htmldir=$ac_optarg ;;
913
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 ;;
920
921   -infodir | --infodir | --infodi | --infod | --info | --inf)
922     ac_prev=infodir ;;
923   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924     infodir=$ac_optarg ;;
925
926   -libdir | --libdir | --libdi | --libd)
927     ac_prev=libdir ;;
928   -libdir=* | --libdir=* | --libdi=* | --libd=*)
929     libdir=$ac_optarg ;;
930
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 ;;
937
938   -localedir | --localedir | --localedi | --localed | --locale)
939     ac_prev=localedir ;;
940   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941     localedir=$ac_optarg ;;
942
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 ;;
949
950   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951     ac_prev=mandir ;;
952   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953     mandir=$ac_optarg ;;
954
955   -nfp | --nfp | --nf)
956     # Obsolete; use --without-fp.
957     with_fp=no ;;
958
959   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960   | --no-cr | --no-c | -n)
961     no_create=yes ;;
962
963   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965     no_recursion=yes ;;
966
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 ;;
975
976   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977     ac_prev=prefix ;;
978   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979     prefix=$ac_optarg ;;
980
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 ;;
987
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 ;;
994
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 ;;
1011
1012   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013     ac_prev=pdfdir ;;
1014   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015     pdfdir=$ac_optarg ;;
1016
1017   -psdir | --psdir | --psdi | --psd | --ps)
1018     ac_prev=psdir ;;
1019   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020     psdir=$ac_optarg ;;
1021
1022   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023   | -silent | --silent | --silen | --sile | --sil)
1024     silent=yes ;;
1025
1026   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027     ac_prev=sbindir ;;
1028   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029   | --sbi=* | --sb=*)
1030     sbindir=$ac_optarg ;;
1031
1032   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034   | --sharedst | --shareds | --shared | --share | --shar \
1035   | --sha | --sh)
1036     ac_prev=sharedstatedir ;;
1037   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040   | --sha=* | --sh=*)
1041     sharedstatedir=$ac_optarg ;;
1042
1043   -site | --site | --sit)
1044     ac_prev=site ;;
1045   -site=* | --site=* | --sit=*)
1046     site=$ac_optarg ;;
1047
1048   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049     ac_prev=srcdir ;;
1050   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051     srcdir=$ac_optarg ;;
1052
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 ;;
1059
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 ;;
1064
1065   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066     verbose=yes ;;
1067
1068   -version | --version | --versio | --versi | --vers | -V)
1069     ac_init_version=: ;;
1070
1071   -with-* | --with-*)
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
1079       *"
1080 "with_$ac_useropt"
1081 "*) ;;
1082       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1083          ac_unrecognized_sep=', ';;
1084     esac
1085     eval with_$ac_useropt=\$ac_optarg ;;
1086
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
1095       *"
1096 "with_$ac_useropt"
1097 "*) ;;
1098       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1099          ac_unrecognized_sep=', ';;
1100     esac
1101     eval with_$ac_useropt=no ;;
1102
1103   --x)
1104     # Obsolete; use --with-x.
1105     with_x=yes ;;
1106
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 ;;
1113
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 ;;
1120
1121   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1122 Try \`$0 --help' for more information"
1123     ;;
1124
1125   *=*)
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'" ;;
1131     esac
1132     eval $ac_envvar=\$ac_optarg
1133     export $ac_envvar ;;
1134
1135   *)
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}
1141     ;;
1142
1143   esac
1144 done
1145
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"
1149 fi
1150
1151 if test -n "$ac_unrecognized_opts"; then
1152   case $enable_option_checking in
1153     no) ;;
1154     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1155     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1156   esac
1157 fi
1158
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
1164 do
1165   eval ac_val=\$$ac_var
1166   # Remove trailing slashes.
1167   case $ac_val in
1168     */ )
1169       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1170       eval $ac_var=\$ac_val;;
1171   esac
1172   # Be sure to have absolute directory names.
1173   case $ac_val in
1174     [\\/$]* | ?:[\\/]* )  continue;;
1175     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1176   esac
1177   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1178 done
1179
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.
1183 build=$build_alias
1184 host=$host_alias
1185 target=$target_alias
1186
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
1194     cross_compiling=yes
1195   fi
1196 fi
1197
1198 ac_tool_prefix=
1199 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1200
1201 test "$silent" = yes && exec 6>/dev/null
1202
1203
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"
1210
1211
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223             s//\1/
1224             q
1225           }
1226           /^X\(\/\/\)[^/].*/{
1227             s//\1/
1228             q
1229           }
1230           /^X\(\/\/\)$/{
1231             s//\1/
1232             q
1233           }
1234           /^X\(\/\).*/{
1235             s//\1/
1236             q
1237           }
1238           s/.*/./; q'`
1239   srcdir=$ac_confdir
1240   if test ! -r "$srcdir/$ac_unique_file"; then
1241     srcdir=..
1242   fi
1243 else
1244   ac_srcdir_defaulted=no
1245 fi
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"
1249 fi
1250 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1251 ac_abs_confdir=`(
1252         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1253         pwd)`
1254 # When building in place, set srcdir=.
1255 if test "$ac_abs_confdir" = "$ac_pwd"; then
1256   srcdir=.
1257 fi
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.
1261 case $srcdir in
1262 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1263 esac
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}
1269 done
1270
1271 #
1272 # Report the --help message.
1273 #
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.
1277   cat <<_ACEOF
1278 \`configure' configures git 1.7.10.4 to adapt to many kinds of systems.
1279
1280 Usage: $0 [OPTION]... [VAR=VALUE]...
1281
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.
1284
1285 Defaults for the options are specified in brackets.
1286
1287 Configuration:
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 \`..']
1297
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
1302                           [PREFIX]
1303
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'.
1308
1309 For better control, use the options below.
1310
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]
1331 _ACEOF
1332
1333   cat <<\_ACEOF
1334 _ACEOF
1335 fi
1336
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:";;
1340    esac
1341   cat <<\_ACEOF
1342
1343 Optional Features:
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
1354                           path to one.
1355
1356 Optional Packages:
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
1361                           generated scripts
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
1367                           headers
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.
1401
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>
1410   CPP         C preprocessor
1411
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.
1414
1415 Report bugs to <git@vger.kernel.org>.
1416 _ACEOF
1417 ac_status=$?
1418 fi
1419
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"; } ||
1425       continue
1426     ac_builddir=.
1427
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *)
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/ ;;
1437   esac ;;
1438 esac
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
1443
1444 case $srcdir in
1445   .)  # We are building in place.
1446     ac_srcdir=.
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 ;;
1453   *) # Relative name.
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 ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460     cd "$ac_dir" || { ac_status=$?; continue; }
1461     # Check for guested configure.
1462     if test -f "$ac_srcdir/configure.gnu"; then
1463       echo &&
1464       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465     elif test -f "$ac_srcdir/configure"; then
1466       echo &&
1467       $SHELL "$ac_srcdir/configure" --help=recursive
1468     else
1469       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470     fi || ac_status=$?
1471     cd "$ac_pwd" || { ac_status=$?; break; }
1472   done
1473 fi
1474
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477   cat <<\_ACEOF
1478 git configure 1.7.10.4
1479 generated by GNU Autoconf 2.67
1480
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.
1484 _ACEOF
1485   exit
1486 fi
1487
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1491
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 ()
1496 {
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"
1500 case "(($ac_try" in
1501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502   *) ac_try_echo=$ac_try;;
1503 esac
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
1507   ac_status=$?
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
1512   fi
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 :
1518   ac_retval=0
1519 else
1520   $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1522
1523         ac_retval=1
1524 fi
1525   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1526   as_fn_set_status $ac_retval
1527
1528 } # ac_fn_c_try_compile
1529
1530 # ac_fn_c_try_link LINENO
1531 # -----------------------
1532 # Try to link conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_link ()
1534 {
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"
1538 case "(($ac_try" in
1539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540   *) ac_try_echo=$ac_try;;
1541 esac
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
1545   ac_status=$?
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
1550   fi
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
1558        }; then :
1559   ac_retval=0
1560 else
1561   $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564         ac_retval=1
1565 fi
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
1573
1574 } # ac_fn_c_try_link
1575
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 ()
1580 {
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
1586 else
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
1592
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.  */
1597
1598 #ifdef __STDC__
1599 # include <limits.h>
1600 #else
1601 # include <assert.h>
1602 #endif
1603
1604 #undef $2
1605
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.  */
1609 #ifdef __cplusplus
1610 extern "C"
1611 #endif
1612 char $2 ();
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
1617 choke me
1618 #endif
1619
1620 int
1621 main ()
1622 {
1623 return $2 ();
1624   ;
1625   return 0;
1626 }
1627 _ACEOF
1628 if ac_fn_c_try_link "$LINENO"; then :
1629   eval "$3=yes"
1630 else
1631   eval "$3=no"
1632 fi
1633 rm -f core conftest.err conftest.$ac_objext \
1634     conftest$ac_exeext conftest.$ac_ext
1635 fi
1636 eval ac_res=\$$3
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;}
1640
1641 } # ac_fn_c_check_func
1642
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_cpp ()
1647 {
1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649   if { { ac_try="$ac_cpp conftest.$ac_ext"
1650 case "(($ac_try" in
1651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652   *) ac_try_echo=$ac_try;;
1653 esac
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
1657   ac_status=$?
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
1662   fi
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
1667        }; then :
1668   ac_retval=0
1669 else
1670   $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673     ac_retval=1
1674 fi
1675   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676   as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_cpp
1679
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
1684 # accordingly.
1685 ac_fn_c_check_header_mongrel ()
1686 {
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
1693 fi
1694 eval ac_res=\$$3
1695                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 $as_echo "$ac_res" >&6; }
1697 else
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.  */
1703 $4
1704 #include <$2>
1705 _ACEOF
1706 if ac_fn_c_try_compile "$LINENO"; then :
1707   ac_header_compiler=yes
1708 else
1709   ac_header_compiler=no
1710 fi
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; }
1714
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.  */
1720 #include <$2>
1721 _ACEOF
1722 if ac_fn_c_try_cpp "$LINENO"; then :
1723   ac_header_preproc=yes
1724 else
1725   ac_header_preproc=no
1726 fi
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; }
1730
1731 # So?  What about this header?
1732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1733   yes:no: )
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;}
1738     ;;
1739   no:yes:* )
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
1754     ;;
1755 esac
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
1760 else
1761   eval "$3=\$ac_header_compiler"
1762 fi
1763 eval ac_res=\$$3
1764                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1765 $as_echo "$ac_res" >&6; }
1766 fi
1767   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768
1769 } # ac_fn_c_check_header_mongrel
1770
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.
1775 ac_fn_c_try_run ()
1776 {
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
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
1786   ac_status=$?
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;;
1792 esac
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
1796   ac_status=$?
1797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798   test $ac_status = 0; }; }; then :
1799   ac_retval=0
1800 else
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
1804
1805        ac_retval=$ac_status
1806 fi
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
1810
1811 } # ac_fn_c_try_run
1812
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 ()
1818 {
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
1824 else
1825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h.  */
1827 $4
1828 #include <$2>
1829 _ACEOF
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831   eval "$3=yes"
1832 else
1833   eval "$3=no"
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 fi
1837 eval ac_res=\$$3
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;}
1841
1842 } # ac_fn_c_check_header_compile
1843
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 ()
1849 {
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
1855 else
1856   eval "$3=no"
1857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h.  */
1859 $4
1860 int
1861 main ()
1862 {
1863 if (sizeof ($2))
1864          return 0;
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h.  */
1872 $4
1873 int
1874 main ()
1875 {
1876 if (sizeof (($2)))
1877             return 0;
1878   ;
1879   return 0;
1880 }
1881 _ACEOF
1882 if ac_fn_c_try_compile "$LINENO"; then :
1883
1884 else
1885   eval "$3=yes"
1886 fi
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
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;}
1895
1896 } # ac_fn_c_check_type
1897
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 ()
1903 {
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
1909 else
1910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h.  */
1912 $5
1913 int
1914 main ()
1915 {
1916 static $2 ac_aggr;
1917 if (ac_aggr.$3)
1918 return 0;
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924   eval "$4=yes"
1925 else
1926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h.  */
1928 $5
1929 int
1930 main ()
1931 {
1932 static $2 ac_aggr;
1933 if (sizeof ac_aggr.$3)
1934 return 0;
1935   ;
1936   return 0;
1937 }
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940   eval "$4=yes"
1941 else
1942   eval "$4=no"
1943 fi
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 fi
1948 eval ac_res=\$$4
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;}
1952
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.
1957
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
1960
1961   $ $0 $@
1962
1963 _ACEOF
1964 exec 5>>config.log
1965 {
1966 cat <<_ASUNAME
1967 ## --------- ##
1968 ## Platform. ##
1969 ## --------- ##
1970
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`
1976
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`
1979
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`
1987
1988 _ASUNAME
1989
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1992 do
1993   IFS=$as_save_IFS
1994   test -z "$as_dir" && as_dir=.
1995     $as_echo "PATH: $as_dir"
1996   done
1997 IFS=$as_save_IFS
1998
1999 } >&5
2000
2001 cat >&5 <<_ACEOF
2002
2003
2004 ## ----------- ##
2005 ## Core tests. ##
2006 ## ----------- ##
2007
2008 _ACEOF
2009
2010
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.
2016 ac_configure_args=
2017 ac_configure_args0=
2018 ac_configure_args1=
2019 ac_must_keep_next=false
2020 for ac_pass in 1 2
2021 do
2022   for ac_arg
2023   do
2024     case $ac_arg in
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)
2028       continue ;;
2029     *\'*)
2030       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2031     esac
2032     case $ac_pass in
2033     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2034     2)
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.
2038       else
2039         case $ac_arg in
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 ;;
2046             esac
2047             ;;
2048           -* ) ac_must_keep_next=true ;;
2049         esac
2050       fi
2051       as_fn_append ac_configure_args " '$ac_arg'"
2052       ;;
2053     esac
2054   done
2055 done
2056 { ac_configure_args0=; unset ac_configure_args0;}
2057 { ac_configure_args1=; unset ac_configure_args1;}
2058
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.
2066   {
2067     echo
2068
2069     $as_echo "## ---------------- ##
2070 ## Cache variables. ##
2071 ## ---------------- ##"
2072     echo
2073     # The following way of writing the cache mishandles newlines in values,
2074 (
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
2077     case $ac_val in #(
2078     *${as_nl}*)
2079       case $ac_var in #(
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;} ;;
2082       esac
2083       case $ac_var in #(
2084       _ | IFS | as_nl) ;; #(
2085       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2086       *) { eval $ac_var=; unset $ac_var;} ;;
2087       esac ;;
2088     esac
2089   done
2090   (set) 2>&1 |
2091     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2092     *${as_nl}ac_space=\ *)
2093       sed -n \
2094         "s/'\''/'\''\\\\'\'''\''/g;
2095           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2096       ;; #(
2097     *)
2098       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2099       ;;
2100     esac |
2101     sort
2102 )
2103     echo
2104
2105     $as_echo "## ----------------- ##
2106 ## Output variables. ##
2107 ## ----------------- ##"
2108     echo
2109     for ac_var in $ac_subst_vars
2110     do
2111       eval ac_val=\$$ac_var
2112       case $ac_val in
2113       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114       esac
2115       $as_echo "$ac_var='\''$ac_val'\''"
2116     done | sort
2117     echo
2118
2119     if test -n "$ac_subst_files"; then
2120       $as_echo "## ------------------- ##
2121 ## File substitutions. ##
2122 ## ------------------- ##"
2123       echo
2124       for ac_var in $ac_subst_files
2125       do
2126         eval ac_val=\$$ac_var
2127         case $ac_val in
2128         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129         esac
2130         $as_echo "$ac_var='\''$ac_val'\''"
2131       done | sort
2132       echo
2133     fi
2134
2135     if test -s confdefs.h; then
2136       $as_echo "## ----------- ##
2137 ## confdefs.h. ##
2138 ## ----------- ##"
2139       echo
2140       cat confdefs.h
2141       echo
2142     fi
2143     test "$ac_signal" != 0 &&
2144       $as_echo "$as_me: caught signal $ac_signal"
2145     $as_echo "$as_me: exit $exit_status"
2146   } >&5
2147   rm -f core *.core core.conftest.* &&
2148     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2149     exit $exit_status
2150 ' 0
2151 for ac_signal in 1 2 13 15; do
2152   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2153 done
2154 ac_signal=0
2155
2156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2157 rm -f -r conftest* confdefs.h
2158
2159 $as_echo "/* confdefs.h */" > confdefs.h
2160
2161 # Predefined preprocessor variables.
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_NAME "$PACKAGE_NAME"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_STRING "$PACKAGE_STRING"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2181 _ACEOF
2182
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_URL "$PACKAGE_URL"
2185 _ACEOF
2186
2187
2188 # Let the site file select an alternate cache file if it wants to.
2189 # Prefer an explicitly selected file to automatically selected ones.
2190 ac_site_file1=NONE
2191 ac_site_file2=NONE
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;;
2198   esac
2199 elif test "x$prefix" != xNONE; then
2200   ac_site_file1=$prefix/share/config.site
2201   ac_site_file2=$prefix/etc/config.site
2202 else
2203   ac_site_file1=$ac_default_prefix/share/config.site
2204   ac_site_file2=$ac_default_prefix/etc/config.site
2205 fi
2206 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2207 do
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
2213     . "$ac_site_file" \
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 ; }
2218   fi
2219 done
2220
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;}
2227     case $cache_file in
2228       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2229       *)                      . "./$cache_file";;
2230     esac
2231   fi
2232 else
2233   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2234 $as_echo "$as_me: creating cache $cache_file" >&6;}
2235   >$cache_file
2236 fi
2237
2238 # Check that the precious variables saved in the cache have kept the same
2239 # value.
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
2247     set,)
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=: ;;
2251     ,set)
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=: ;;
2255     ,);;
2256     *)
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=:
2265         else
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
2269         fi
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;}
2274       fi;;
2275   esac
2276   # Pass precious variables to config.status.
2277   if test "$ac_new_set" = set; then
2278     case $ac_new_val in
2279     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2280     *) ac_arg=$ac_var=$ac_new_val ;;
2281     esac
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'" ;;
2285     esac
2286   fi
2287 done
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
2294 fi
2295 ## -------------------- ##
2296 ## Main body of script. ##
2297 ## -------------------- ##
2298
2299 ac_ext=c
2300 ac_cpp='$CPP $CPPFLAGS'
2301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304
2305
2306
2307
2308
2309 config_file=config.mak.autogen
2310 config_append=config.mak.append
2311 config_in=config.mak.in
2312
2313 echo "# ${config_append}.  Generated by configure." > "${config_append}"
2314
2315
2316 ## Definitions of macros
2317 # GIT_CONF_APPEND_LINE(LINE)
2318 # --------------------------
2319 # Append LINE to file ${config_append}
2320 # GIT_CONF_APPEND_LINE
2321 #
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.
2327 # GIT_ARG_SET_PATH
2328 #
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
2336 #
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
2343 # GIT_PARSE_WITH
2344 #
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
2353
2354
2355
2356
2357
2358
2359
2360 # Directories holding "saner" versions of common or POSIX binaries.
2361
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
2365     withval=''
2366   else
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;}
2369   fi
2370   echo "SANE_TOOL_PATH=$withval" >> "${config_append}"
2371 else
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.
2376    :
2377 fi
2378
2379
2380 ## Site configuration related to programs (before tests)
2381 ## --with-PACKAGE[=ARG] and --without-PACKAGE
2382 #
2383 # Set lib to alternative name of lib directory (e.g. lib64)
2384
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;}; \
2390 else \
2391         lib=$withval; \
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}"; \
2395 fi; \
2396
2397 fi
2398
2399
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;}
2403    lib=lib
2404 fi
2405
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;}
2416 else
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
2420    USER_NOPTHREAD=1
2421 fi
2422 else
2423
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;}
2426
2427 fi
2428
2429
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;
2434   JSMIN=$enableval;
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}";
2438
2439 fi
2440
2441
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;
2446   CSSMIN=$enableval;
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}";
2450
2451 fi
2452
2453
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;}
2458 #
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.
2462 #
2463 # Define PPC_SHA1 environment variable when running make to make use of
2464 # a bundled SHA1 routine optimized for PowerPC.
2465 #
2466 # Define NO_OPENSSL environment variable if you do not have OpenSSL.
2467 # This also implies BLK_SHA1.
2468 #
2469 # Define OPENSSLDIR=/foo/bar if your openssl header and library files are in
2470 # /foo/bar/include and /foo/bar/lib directories.
2471
2472 # Check whether --with-openssl was given.
2473 if test "${with_openssl+set}" = set; then :
2474   withval=$with_openssl; \
2475 PACKAGE=OPENSSL; \
2476 if test "$withval" = "no"; then \
2477         NO_OPENSSL=YesPlease; \
2478 elif test "$withval" = "yes"; then \
2479         NO_OPENSSL=; \
2480 else \
2481         NO_OPENSSL=; \
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}"; \
2486 fi \
2487
2488 fi
2489
2490 #
2491 # Define USE_LIBPCRE if you have and want to use libpcre. git-grep will be
2492 # able to use Perl-compatible regular expressions.
2493 #
2494 # Define LIBPCREDIR=/foo/bar if your libpcre header and library files are in
2495 # /foo/bar/include and /foo/bar/lib directories.
2496 #
2497
2498 # Check whether --with-libpcre was given.
2499 if test "${with_libpcre+set}" = set; then :
2500   withval=$with_libpcre; if test "$withval" = "no"; then \
2501         USE_LIBPCRE=; \
2502 elif test "$withval" = "yes"; then \
2503         USE_LIBPCRE=YesPlease; \
2504 else
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}"; \
2510 fi \
2511
2512 fi
2513
2514 #
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://
2517 # transports.
2518 #
2519 # Define CURLDIR=/foo/bar if your curl header and library files are in
2520 # /foo/bar/include and /foo/bar/lib directories.
2521
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 \
2528         NO_CURL=; \
2529 else \
2530         NO_CURL=; \
2531         CURLDIR=$withval; \
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}"; \
2535 fi \
2536
2537 fi
2538
2539 #
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.
2542 #
2543 # Define EXPATDIR=/foo/bar if your expat header and library files are in
2544 # /foo/bar/include and /foo/bar/lib directories.
2545
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 \
2552         NO_EXPAT=; \
2553 else \
2554         NO_EXPAT=; \
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}"; \
2559 fi \
2560
2561 fi
2562
2563 #
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.
2569 #
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.
2575 #
2576 # Define NO_MMAP if you want to avoid mmap.
2577 #
2578 # Define NO_ICONV if your libc does not properly support iconv.
2579
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 \
2586         NO_ICONV=; \
2587 else \
2588         NO_ICONV=; \
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}"; \
2593 fi \
2594
2595 fi
2596
2597
2598 ## --enable-FEATURE[=ARG] and --disable-FEATURE
2599 #
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).
2605 #
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.
2608
2609 #
2610 # Allow user to set ETC_GITCONFIG variable
2611
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;}; \
2620   fi; \
2621   \
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}"; \
2625  fi
2626 fi
2627
2628
2629 #
2630 # Allow user to set ETC_GITATTRIBUTES variable
2631
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;}; \
2640   fi; \
2641   \
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}"; \
2645  fi
2646 fi
2647
2648
2649 #
2650 # Allow user to set the default pager
2651
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;}; \
2660   fi; \
2661   \
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}"; \
2665  fi
2666 fi
2667
2668 #
2669 # Allow user to set the default editor
2670
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;}; \
2679   fi; \
2680   \
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}"; \
2684  fi
2685 fi
2686
2687
2688 #
2689 # Define SHELL_PATH to provide path to shell.
2690
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}"; \
2701         else \
2702                 as_fn_error $? "You cannot use git without shell" "$LINENO" 5 ; \
2703         fi; \
2704 else \
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;}; \
2708         else \
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}"; \
2713         fi; \
2714 fi; \
2715
2716 fi
2717
2718
2719 #
2720 # Define PERL_PATH to provide path to Perl.
2721
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}"; \
2732         else \
2733                 as_fn_error $? "You cannot use git without perl" "$LINENO" 5 ; \
2734         fi; \
2735 else \
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;}; \
2739         else \
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}"; \
2744         fi; \
2745 fi; \
2746
2747 fi
2748
2749
2750 #
2751 # Define PYTHON_PATH to provide path to Python.
2752
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}"; \
2763         else \
2764                 as_fn_error $? "You cannot use git without python" "$LINENO" 5 ; \
2765         fi; \
2766 else \
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;}; \
2770         else \
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}"; \
2775         fi; \
2776 fi; \
2777
2778 fi
2779
2780
2781 #
2782 # Define ZLIB_PATH to provide path to zlib.
2783
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}"; \
2794         else \
2795                 as_fn_error $? "You cannot use git without zlib" "$LINENO" 5 ; \
2796         fi; \
2797 else \
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;}; \
2801         else \
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}"; \
2806         fi; \
2807 fi; \
2808
2809 fi
2810
2811
2812 #
2813 # Declare the with-tcltk/without-tcltk options.
2814
2815 # Check whether --with-tcltk was given.
2816 if test "${with_tcltk+set}" = set; then :
2817   withval=$with_tcltk; \
2818 PACKAGE=TCLTK; \
2819 if test "$withval" = "no"; then \
2820         NO_TCLTK=YesPlease; \
2821 elif test "$withval" = "yes"; then \
2822         NO_TCLTK=; \
2823 else \
2824         NO_TCLTK=; \
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}"; \
2829 fi \
2830
2831 fi
2832
2833 #
2834
2835
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;}
2839 #
2840 ac_ext=c
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
2847   do
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
2854 else
2855   if test -n "$CC"; then
2856   ac_cv_prog_CC="$CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
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
2867     break 2
2868   fi
2869 done
2870   done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 CC=$ac_cv_prog_CC
2876 if test -n "$CC"; then
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878 $as_echo "$CC" >&6; }
2879 else
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884
2885     test -n "$CC" && break
2886   done
2887 fi
2888 if test -z "$CC"; then
2889   ac_ct_CC=$CC
2890   for ac_prog in cc gcc
2891 do
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
2898 else
2899   if test -n "$ac_ct_CC"; then
2900   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905   IFS=$as_save_IFS
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
2911     break 2
2912   fi
2913 done
2914   done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
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; }
2923 else
2924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928
2929   test -n "$ac_ct_CC" && break
2930 done
2931
2932   if test "x$ac_ct_CC" = x; then
2933     CC=""
2934   else
2935     case $cross_compiling:$ac_tool_warned in
2936 yes:)
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 ;;
2940 esac
2941     CC=$ac_ct_CC
2942   fi
2943 fi
2944
2945
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 ; }
2950
2951 # Provide some information about the compiler.
2952 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2953 set X $ac_compile
2954 ac_compiler=$2
2955 for ac_option in --version -v -V -qversion; do
2956   { { ac_try="$ac_compiler $ac_option >&5"
2957 case "(($ac_try" in
2958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959   *) ac_try_echo=$ac_try;;
2960 esac
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
2964   ac_status=$?
2965   if test -s conftest.err; then
2966     sed '10a\
2967 ... rest of stderr output deleted ...
2968          10q' conftest.err >conftest.er1
2969     cat conftest.er1 >&5
2970   fi
2971   rm -f conftest.er1 conftest.err
2972   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973   test $ac_status = 0; }
2974 done
2975
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h.  */
2978
2979 int
2980 main ()
2981 {
2982
2983   ;
2984   return 0;
2985 }
2986 _ACEOF
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
2991 # of exeext.
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[^ ]*//'`
2995
2996 # The possible output files:
2997 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2998
2999 ac_rmfiles=
3000 for ac_file in $ac_files
3001 do
3002   case $ac_file in
3003     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3004     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3005   esac
3006 done
3007 rm -f $ac_rmfiles
3008
3009 if { { ac_try="$ac_link_default"
3010 case "(($ac_try" in
3011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012   *) ac_try_echo=$ac_try;;
3013 esac
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
3017   ac_status=$?
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
3024 # Autoconf.
3025 for ac_file in $ac_files ''
3026 do
3027   test -f "$ac_file" || continue
3028   case $ac_file in
3029     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3030         ;;
3031     [ab].out )
3032         # We found the default executable, but exeext='' is most
3033         # certainly right.
3034         break;;
3035     *.* )
3036         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3037         then :; else
3038            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3039         fi
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
3044         # actually working.
3045         break;;
3046     * )
3047         break;;
3048   esac
3049 done
3050 test "$ac_cv_exeext" = no && ac_cv_exeext=
3051
3052 else
3053   ac_file=''
3054 fi
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
3060
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 ; }
3065 else
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3067 $as_echo "yes" >&6; }
3068 fi
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
3074
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"
3080 case "(($ac_try" in
3081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082   *) ac_try_echo=$ac_try;;
3083 esac
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
3087   ac_status=$?
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
3093 # `rm'.
3094 for ac_file in conftest.exe conftest conftest.*; do
3095   test -f "$ac_file" || continue
3096   case $ac_file in
3097     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3098     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3099           break;;
3100     * ) break;;
3101   esac
3102 done
3103 else
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 ; }
3108 fi
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; }
3112
3113 rm -f conftest.$ac_ext
3114 EXEEXT=$ac_cv_exeext
3115 ac_exeext=$EXEEXT
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h.  */
3118 #include <stdio.h>
3119 int
3120 main ()
3121 {
3122 FILE *f = fopen ("conftest.out", "w");
3123  return ferror (f) || fclose (f) != 0;
3124
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
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"
3136 case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
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
3143   ac_status=$?
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;;
3150 esac
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
3154   ac_status=$?
3155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156   test $ac_status = 0; }; }; then
3157     cross_compiling=no
3158   else
3159     if test "$cross_compiling" = maybe; then
3160         cross_compiling=yes
3161     else
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 ; }
3167     fi
3168   fi
3169 fi
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3171 $as_echo "$cross_compiling" >&6; }
3172
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
3179 else
3180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.o conftest.obj
3192 if { { ac_try="$ac_compile"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
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
3200   ac_status=$?
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;
3205   case $ac_file in
3206     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3207     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3208        break;;
3209   esac
3210 done
3211 else
3212   $as_echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3214
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 ; }
3219 fi
3220 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3221 fi
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
3225 ac_objext=$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
3230 else
3231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h.  */
3233
3234 int
3235 main ()
3236 {
3237 #ifndef __GNUC__
3238        choke me
3239 #endif
3240
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 if ac_fn_c_try_compile "$LINENO"; then :
3246   ac_compiler_gnu=yes
3247 else
3248   ac_compiler_gnu=no
3249 fi
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3252
3253 fi
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
3257   GCC=yes
3258 else
3259   GCC=
3260 fi
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
3267 else
3268   ac_save_c_werror_flag=$ac_c_werror_flag
3269    ac_c_werror_flag=yes
3270    ac_cv_prog_cc_g=no
3271    CFLAGS="-g"
3272    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h.  */
3274
3275 int
3276 main ()
3277 {
3278
3279   ;
3280   return 0;
3281 }
3282 _ACEOF
3283 if ac_fn_c_try_compile "$LINENO"; then :
3284   ac_cv_prog_cc_g=yes
3285 else
3286   CFLAGS=""
3287       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h.  */
3289
3290 int
3291 main ()
3292 {
3293
3294   ;
3295   return 0;
3296 }
3297 _ACEOF
3298 if ac_fn_c_try_compile "$LINENO"; then :
3299
3300 else
3301   ac_c_werror_flag=$ac_save_c_werror_flag
3302          CFLAGS="-g"
3303          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h.  */
3305
3306 int
3307 main ()
3308 {
3309
3310   ;
3311   return 0;
3312 }
3313 _ACEOF
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315   ac_cv_prog_cc_g=yes
3316 fi
3317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 fi
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3320 fi
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322    ac_c_werror_flag=$ac_save_c_werror_flag
3323 fi
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
3330     CFLAGS="-g -O2"
3331   else
3332     CFLAGS="-g"
3333   fi
3334 else
3335   if test "$GCC" = yes; then
3336     CFLAGS="-O2"
3337   else
3338     CFLAGS=
3339   fi
3340 fi
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
3345 else
3346   ac_cv_prog_cc_c89=no
3347 ac_save_CC=$CC
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h.  */
3350 #include <stdarg.h>
3351 #include <stdio.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)
3358      char **p;
3359      int i;
3360 {
3361   return p[i];
3362 }
3363 static char *f (char * (*g) (char **, int), char **p, ...)
3364 {
3365   char *s;
3366   va_list v;
3367   va_start (v,p);
3368   s = g (p, va_arg (v,int));
3369   va_end (v);
3370   return s;
3371 }
3372
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];
3381
3382 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3383    inside strings and character constants.  */
3384 #define FOO(x) 'x'
3385 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3386
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);
3391 int argc;
3392 char **argv;
3393 int
3394 main ()
3395 {
3396 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3397   ;
3398   return 0;
3399 }
3400 _ACEOF
3401 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3402         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3403 do
3404   CC="$ac_save_CC $ac_arg"
3405   if ac_fn_c_try_compile "$LINENO"; then :
3406   ac_cv_prog_cc_c89=$ac_arg
3407 fi
3408 rm -f core conftest.err conftest.$ac_objext
3409   test "x$ac_cv_prog_cc_c89" != "xno" && break
3410 done
3411 rm -f conftest.$ac_ext
3412 CC=$ac_save_CC
3413
3414 fi
3415 # AC_CACHE_VAL
3416 case "x$ac_cv_prog_cc_c89" in
3417   x)
3418     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3419 $as_echo "none needed" >&6; } ;;
3420   xno)
3421     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3422 $as_echo "unsupported" >&6; } ;;
3423   *)
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; } ;;
3427 esac
3428 if test "x$ac_cv_prog_cc_c89" != xno; then :
3429
3430 fi
3431
3432 ac_ext=c
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
3437
3438
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
3443 else
3444   ac_cv_c_inline=no
3445 for ac_kw in inline __inline__ __inline; do
3446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h.  */
3448 #ifndef __cplusplus
3449 typedef int foo_t;
3450 static $ac_kw foo_t static_foo () {return 0; }
3451 $ac_kw foo_t foo () {return 0; }
3452 #endif
3453
3454 _ACEOF
3455 if ac_fn_c_try_compile "$LINENO"; then :
3456   ac_cv_c_inline=$ac_kw
3457 fi
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459   test "$ac_cv_c_inline" != no && break
3460 done
3461
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3464 $as_echo "$ac_cv_c_inline" >&6; }
3465
3466 case $ac_cv_c_inline in
3467   inline | yes) ;;
3468   *)
3469     case $ac_cv_c_inline in
3470       no) ac_val=;;
3471       *) ac_val=$ac_cv_c_inline;;
3472     esac
3473     cat >>confdefs.h <<_ACEOF
3474 #ifndef __cplusplus
3475 #define inline $ac_val
3476 #endif
3477 _ACEOF
3478     ;;
3479 esac
3480
3481 case $ac_cv_c_inline in
3482   inline | yes | no)    ;;
3483   *)                    INLINE=$ac_cv_c_inline
3484  ;;
3485 esac
3486
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
3492 else
3493
3494    SAVE_LDFLAGS="${LDFLAGS}"
3495    LDFLAGS="${SAVE_LDFLAGS} -R /"
3496    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h.  */
3498
3499 int
3500 main ()
3501 {
3502
3503   ;
3504   return 0;
3505 }
3506 _ACEOF
3507 if ac_fn_c_try_link "$LINENO"; then :
3508   git_cv_ld_dashr=yes
3509 else
3510   git_cv_ld_dashr=no
3511 fi
3512 rm -f core conftest.err conftest.$ac_objext \
3513     conftest$ac_exeext conftest.$ac_ext
3514    LDFLAGS="${SAVE_LDFLAGS}"
3515
3516 fi
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
3520    CC_LD_DYNPATH=-R
3521
3522 else
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
3527 else
3528
3529       SAVE_LDFLAGS="${LDFLAGS}"
3530       LDFLAGS="${SAVE_LDFLAGS} -Wl,-rpath,/"
3531       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h.  */
3533
3534 int
3535 main ()
3536 {
3537
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 if ac_fn_c_try_link "$LINENO"; then :
3543   git_cv_ld_wl_rpath=yes
3544 else
3545   git_cv_ld_wl_rpath=no
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext \
3548     conftest$ac_exeext conftest.$ac_ext
3549       LDFLAGS="${SAVE_LDFLAGS}"
3550
3551 fi
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,
3556
3557    else
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
3562 else
3563
3564          SAVE_LDFLAGS="${LDFLAGS}"
3565          LDFLAGS="${SAVE_LDFLAGS} -rpath /"
3566          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h.  */
3568
3569 int
3570 main ()
3571 {
3572
3573   ;
3574   return 0;
3575 }
3576 _ACEOF
3577 if ac_fn_c_try_link "$LINENO"; then :
3578   git_cv_ld_rpath=yes
3579 else
3580   git_cv_ld_rpath=no
3581 fi
3582 rm -f core conftest.err conftest.$ac_objext \
3583     conftest$ac_exeext conftest.$ac_ext
3584          LDFLAGS="${SAVE_LDFLAGS}"
3585
3586 fi
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
3591
3592       else
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;}
3595       fi
3596    fi
3597 fi
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
3601   do
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
3608 else
3609   if test -n "$AR"; then
3610   ac_cv_prog_AR="$AR" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615   IFS=$as_save_IFS
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
3621     break 2
3622   fi
3623 done
3624   done
3625 IFS=$as_save_IFS
3626
3627 fi
3628 fi
3629 AR=$ac_cv_prog_AR
3630 if test -n "$AR"; then
3631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3632 $as_echo "$AR" >&6; }
3633 else
3634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3636 fi
3637
3638
3639     test -n "$AR" && break
3640   done
3641 fi
3642 if test -z "$AR"; then
3643   ac_ct_AR=$AR
3644   for ac_prog in gar ar
3645 do
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
3652 else
3653   if test -n "$ac_ct_AR"; then
3654   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
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
3665     break 2
3666   fi
3667 done
3668   done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
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; }
3677 else
3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3680 fi
3681
3682
3683   test -n "$ac_ct_AR" && break
3684 done
3685
3686   if test "x$ac_ct_AR" = x; then
3687     AR=":"
3688   else
3689     case $cross_compiling:$ac_tool_warned in
3690 yes:)
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 ;;
3694 esac
3695     AR=$ac_ct_AR
3696   fi
3697 fi
3698
3699 for ac_prog in gtar tar
3700 do
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
3707 else
3708   if test -n "$TAR"; then
3709   ac_cv_prog_TAR="$TAR" # Let the user override the test.
3710 else
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH
3713 do
3714   IFS=$as_save_IFS
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
3720     break 2
3721   fi
3722 done
3723   done
3724 IFS=$as_save_IFS
3725
3726 fi
3727 fi
3728 TAR=$ac_cv_prog_TAR
3729 if test -n "$TAR"; then
3730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
3731 $as_echo "$TAR" >&6; }
3732 else
3733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3735 fi
3736
3737
3738   test -n "$TAR" && break
3739 done
3740
3741 for ac_prog in gnudiff gdiff diff
3742 do
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
3749 else
3750   if test -n "$DIFF"; then
3751   ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756   IFS=$as_save_IFS
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
3762     break 2
3763   fi
3764 done
3765   done
3766 IFS=$as_save_IFS
3767
3768 fi
3769 fi
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; }
3774 else
3775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3777 fi
3778
3779
3780   test -n "$DIFF" && break
3781 done
3782
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'.
3788     TCLTK_PATH=wish
3789
3790   elif test "$with_tcltk" = "yes"; then
3791   # Tcl/Tk check requested.
3792     for ac_prog in wish
3793 do
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
3800 else
3801   if test -n "$TCLTK_PATH"; then
3802   ac_cv_prog_TCLTK_PATH="$TCLTK_PATH" # Let the user override the test.
3803 else
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 for as_dir in $PATH
3806 do
3807   IFS=$as_save_IFS
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
3813     break 2
3814   fi
3815 done
3816   done
3817 IFS=$as_save_IFS
3818
3819 fi
3820 fi
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; }
3825 else
3826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3828 fi
3829
3830
3831   test -n "$TCLTK_PATH" && break
3832 done
3833
3834   else
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"
3838
3839   fi
3840 fi
3841 for ac_prog in asciidoc
3842 do
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
3849 else
3850   if test -n "$ASCIIDOC"; then
3851   ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3855 do
3856   IFS=$as_save_IFS
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
3862     break 2
3863   fi
3864 done
3865   done
3866 IFS=$as_save_IFS
3867
3868 fi
3869 fi
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; }
3874 else
3875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3877 fi
3878
3879
3880   test -n "$ASCIIDOC" && break
3881 done
3882
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
3888         asciidoc' '7*)
3889                 ASCIIDOC7=YesPlease
3890                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version} > 7" >&5
3891 $as_echo "${asciidoc_version} > 7" >&6; }
3892                 ;;
3893         asciidoc' '8*)
3894                 ASCIIDOC7=
3895                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version}" >&5
3896 $as_echo "${asciidoc_version}" >&6; }
3897                 ;;
3898         *)
3899                 ASCIIDOC7=
3900                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version} (unknown)" >&5
3901 $as_echo "${asciidoc_version} (unknown)" >&6; }
3902                 ;;
3903         esac
3904 fi
3905
3906
3907
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;}
3911 #
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).
3914
3915
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"
3921 fi
3922
3923
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
3928 else
3929   ac_check_lib_save_LIBS=$LIBS
3930 LIBS="-lcrypto  $LIBS"
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h.  */
3933
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.  */
3937 #ifdef __cplusplus
3938 extern "C"
3939 #endif
3940 char SHA1_Init ();
3941 int
3942 main ()
3943 {
3944 return SHA1_Init ();
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 if ac_fn_c_try_link "$LINENO"; then :
3950   ac_cv_lib_crypto_SHA1_Init=yes
3951 else
3952   ac_cv_lib_crypto_SHA1_Init=no
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext \
3955     conftest$ac_exeext conftest.$ac_ext
3956 LIBS=$ac_check_lib_save_LIBS
3957 fi
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=
3962 else
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
3967 else
3968   ac_check_lib_save_LIBS=$LIBS
3969 LIBS="-lssl  $LIBS"
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h.  */
3972
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.  */
3976 #ifdef __cplusplus
3977 extern "C"
3978 #endif
3979 char SHA1_Init ();
3980 int
3981 main ()
3982 {
3983 return SHA1_Init ();
3984   ;
3985   return 0;
3986 }
3987 _ACEOF
3988 if ac_fn_c_try_link "$LINENO"; then :
3989   ac_cv_lib_ssl_SHA1_Init=yes
3990 else
3991   ac_cv_lib_ssl_SHA1_Init=no
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext \
3994     conftest$ac_exeext conftest.$ac_ext
3995 LIBS=$ac_check_lib_save_LIBS
3996 fi
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
4001 else
4002   NEEDS_SSL_WITH_CRYPTO= NO_OPENSSL=YesPlease
4003 fi
4004
4005 fi
4006
4007
4008
4009 if test -n "$OPENSSLDIR"; then
4010    CPPFLAGS="$old_CPPFLAGS"
4011    LDFLAGS="$old_LDFLAGS"
4012 fi
4013
4014
4015
4016
4017
4018 #
4019 # Define USE_LIBPCRE if you have and want to use libpcre. git-grep will be
4020 # able to use Perl-compatible regular expressions.
4021 #
4022
4023 if test -n "$USE_LIBPCRE"; then
4024
4025
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"
4031 fi
4032
4033
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
4038 else
4039   ac_check_lib_save_LIBS=$LIBS
4040 LIBS="-lpcre  $LIBS"
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h.  */
4043
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.  */
4047 #ifdef __cplusplus
4048 extern "C"
4049 #endif
4050 char pcre_version ();
4051 int
4052 main ()
4053 {
4054 return pcre_version ();
4055   ;
4056   return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_c_try_link "$LINENO"; then :
4060   ac_cv_lib_pcre_pcre_version=yes
4061 else
4062   ac_cv_lib_pcre_pcre_version=no
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext \
4065     conftest$ac_exeext conftest.$ac_ext
4066 LIBS=$ac_check_lib_save_LIBS
4067 fi
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
4072 else
4073   USE_LIBPCRE=
4074 fi
4075
4076
4077
4078 if test -n "$LIBPCREDIR"; then
4079    CPPFLAGS="$old_CPPFLAGS"
4080    LDFLAGS="$old_LDFLAGS"
4081 fi
4082
4083
4084
4085
4086 fi
4087
4088 #
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://
4091 # transports.
4092
4093
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"
4099 fi
4100
4101
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
4106 else
4107   ac_check_lib_save_LIBS=$LIBS
4108 LIBS="-lcurl  $LIBS"
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h.  */
4111
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.  */
4115 #ifdef __cplusplus
4116 extern "C"
4117 #endif
4118 char curl_global_init ();
4119 int
4120 main ()
4121 {
4122 return curl_global_init ();
4123   ;
4124   return 0;
4125 }
4126 _ACEOF
4127 if ac_fn_c_try_link "$LINENO"; then :
4128   ac_cv_lib_curl_curl_global_init=yes
4129 else
4130   ac_cv_lib_curl_curl_global_init=no
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext \
4133     conftest$ac_exeext conftest.$ac_ext
4134 LIBS=$ac_check_lib_save_LIBS
4135 fi
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 :
4139   NO_CURL=
4140 else
4141   NO_CURL=YesPlease
4142 fi
4143
4144
4145
4146 if test -n "$CURLDIR"; then
4147    CPPFLAGS="$old_CPPFLAGS"
4148    LDFLAGS="$old_LDFLAGS"
4149 fi
4150
4151
4152
4153
4154 #
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.
4157
4158
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"
4164 fi
4165
4166
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
4171 else
4172   ac_check_lib_save_LIBS=$LIBS
4173 LIBS="-lexpat  $LIBS"
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h.  */
4176
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.  */
4180 #ifdef __cplusplus
4181 extern "C"
4182 #endif
4183 char XML_ParserCreate ();
4184 int
4185 main ()
4186 {
4187 return XML_ParserCreate ();
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 if ac_fn_c_try_link "$LINENO"; then :
4193   ac_cv_lib_expat_XML_ParserCreate=yes
4194 else
4195   ac_cv_lib_expat_XML_ParserCreate=no
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext \
4198     conftest$ac_exeext conftest.$ac_ext
4199 LIBS=$ac_check_lib_save_LIBS
4200 fi
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 :
4204   NO_EXPAT=
4205 else
4206   NO_EXPAT=YesPlease
4207 fi
4208
4209
4210
4211 if test -n "$EXPATDIR"; then
4212    CPPFLAGS="$old_CPPFLAGS"
4213    LDFLAGS="$old_LDFLAGS"
4214 fi
4215
4216
4217
4218
4219 #
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.
4223
4224 if test -z "$NO_ICONV"; then
4225
4226
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"
4232 fi
4233
4234
4235
4236
4237 if test -n "$ICONVDIR"; then
4238    lib_order="-liconv -lc"
4239 else
4240    lib_order="-lc -liconv"
4241 fi
4242
4243 NO_ICONV=YesPlease
4244
4245 for l in $lib_order; do
4246     if test "$l" = "-liconv"; then
4247        NEEDS_LIBICONV=YesPlease
4248     else
4249        NEEDS_LIBICONV=
4250     fi
4251
4252     old_LIBS="$LIBS"
4253     LIBS="$LIBS $l"
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.  */
4258 #include <iconv.h>
4259 int
4260 main ()
4261 {
4262 iconv_open("", "");
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
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; }
4270         NO_ICONV=
4271         break
4272 else
4273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4275 fi
4276 rm -f core conftest.err conftest.$ac_objext \
4277     conftest$ac_exeext conftest.$ac_ext
4278     LIBS="$old_LIBS"
4279 done
4280
4281 #in case of break
4282 LIBS="$old_LIBS"
4283
4284
4285 if test -n "$ICONVDIR"; then
4286    CPPFLAGS="$old_CPPFLAGS"
4287    LDFLAGS="$old_LDFLAGS"
4288 fi
4289
4290
4291
4292
4293
4294 if test -n "$NO_ICONV"; then
4295     NEEDS_LIBICONV=
4296 fi
4297
4298 fi
4299
4300 #
4301 # Define NO_DEFLATE_BOUND if deflateBound is missing from zlib.
4302
4303
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"
4309 fi
4310
4311
4312
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateBound in -lz" >&5
4314 $as_echo_n "checking for deflateBound in -lz... " >&6; }
4315 old_LIBS="$LIBS"
4316 LIBS="$LIBS -lz"
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h.  */
4319
4320 #include <zlib.h>
4321 int
4322 main ()
4323 {
4324 deflateBound(0, 0);
4325   ;
4326   return 0;
4327 }
4328 _ACEOF
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; }
4332 else
4333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335         NO_DEFLATE_BOUND=yes
4336 fi
4337 rm -f core conftest.err conftest.$ac_objext \
4338     conftest$ac_exeext conftest.$ac_ext
4339 LIBS="$old_LIBS"
4340
4341
4342 if test -n "$ZLIB_PATH"; then
4343    CPPFLAGS="$old_CPPFLAGS"
4344    LDFLAGS="$old_LDFLAGS"
4345 fi
4346
4347
4348
4349
4350 #
4351 # Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
4352 # Patrick Mauritz).
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
4357 else
4358   ac_check_lib_save_LIBS=$LIBS
4359 LIBS="-lc  $LIBS"
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h.  */
4362
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.  */
4366 #ifdef __cplusplus
4367 extern "C"
4368 #endif
4369 char socket ();
4370 int
4371 main ()
4372 {
4373 return socket ();
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 if ac_fn_c_try_link "$LINENO"; then :
4379   ac_cv_lib_c_socket=yes
4380 else
4381   ac_cv_lib_c_socket=no
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext \
4384     conftest$ac_exeext conftest.$ac_ext
4385 LIBS=$ac_check_lib_save_LIBS
4386 fi
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 :
4390   NEEDS_SOCKET=
4391 else
4392   NEEDS_SOCKET=YesPlease
4393 fi
4394
4395
4396 test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket"
4397
4398 #
4399 # The next few tests will define NEEDS_RESOLV if linking with
4400 # libresolv provides some of the functions we would normally get
4401 # from libc.
4402 NEEDS_RESOLV=
4403
4404 #
4405 # Define NO_INET_NTOP if linking with -lresolv is not enough.
4406 # Solaris 2.7 in particular hos inet_ntop in -lresolv.
4407 NO_INET_NTOP=
4408
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 :
4411
4412 else
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
4417 else
4418   ac_check_lib_save_LIBS=$LIBS
4419 LIBS="-lresolv  $LIBS"
4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4421 /* end confdefs.h.  */
4422
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.  */
4426 #ifdef __cplusplus
4427 extern "C"
4428 #endif
4429 char inet_ntop ();
4430 int
4431 main ()
4432 {
4433 return inet_ntop ();
4434   ;
4435   return 0;
4436 }
4437 _ACEOF
4438 if ac_fn_c_try_link "$LINENO"; then :
4439   ac_cv_lib_resolv_inet_ntop=yes
4440 else
4441   ac_cv_lib_resolv_inet_ntop=no
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext \
4444     conftest$ac_exeext conftest.$ac_ext
4445 LIBS=$ac_check_lib_save_LIBS
4446 fi
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
4451 else
4452   NO_INET_NTOP=YesPlease
4453 fi
4454
4455
4456 fi
4457
4458 #
4459 # Define NO_INET_PTON if linking with -lresolv is not enough.
4460 # Solaris 2.7 in particular hos inet_pton in -lresolv.
4461 NO_INET_PTON=
4462
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 :
4465
4466 else
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
4471 else
4472   ac_check_lib_save_LIBS=$LIBS
4473 LIBS="-lresolv  $LIBS"
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h.  */
4476
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.  */
4480 #ifdef __cplusplus
4481 extern "C"
4482 #endif
4483 char inet_pton ();
4484 int
4485 main ()
4486 {
4487 return inet_pton ();
4488   ;
4489   return 0;
4490 }
4491 _ACEOF
4492 if ac_fn_c_try_link "$LINENO"; then :
4493   ac_cv_lib_resolv_inet_pton=yes
4494 else
4495   ac_cv_lib_resolv_inet_pton=no
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext \
4498     conftest$ac_exeext conftest.$ac_ext
4499 LIBS=$ac_check_lib_save_LIBS
4500 fi
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
4505 else
4506   NO_INET_PTON=YesPlease
4507 fi
4508
4509
4510 fi
4511
4512 #
4513 # Define NO_HSTRERROR if linking with -lresolv is not enough.
4514 # Solaris 2.6 in particular has no hstrerror, even in -lresolv.
4515 NO_HSTRERROR=
4516 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
4517 if test "x$ac_cv_func_hstrerror" = x""yes; then :
4518
4519 else
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
4524 else
4525   ac_check_lib_save_LIBS=$LIBS
4526 LIBS="-lresolv  $LIBS"
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h.  */
4529
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.  */
4533 #ifdef __cplusplus
4534 extern "C"
4535 #endif
4536 char hstrerror ();
4537 int
4538 main ()
4539 {
4540 return hstrerror ();
4541   ;
4542   return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_link "$LINENO"; then :
4546   ac_cv_lib_resolv_hstrerror=yes
4547 else
4548   ac_cv_lib_resolv_hstrerror=no
4549 fi
4550 rm -f core conftest.err conftest.$ac_objext \
4551     conftest$ac_exeext conftest.$ac_ext
4552 LIBS=$ac_check_lib_save_LIBS
4553 fi
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
4558 else
4559   NO_HSTRERROR=YesPlease
4560 fi
4561
4562
4563 fi
4564
4565
4566 #
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"
4570
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
4575 else
4576   ac_check_lib_save_LIBS=$LIBS
4577 LIBS="-lc  $LIBS"
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h.  */
4580
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.  */
4584 #ifdef __cplusplus
4585 extern "C"
4586 #endif
4587 char basename ();
4588 int
4589 main ()
4590 {
4591 return basename ();
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 if ac_fn_c_try_link "$LINENO"; then :
4597   ac_cv_lib_c_basename=yes
4598 else
4599   ac_cv_lib_c_basename=no
4600 fi
4601 rm -f core conftest.err conftest.$ac_objext \
4602     conftest$ac_exeext conftest.$ac_ext
4603 LIBS=$ac_check_lib_save_LIBS
4604 fi
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 :
4608   NEEDS_LIBGEN=
4609 else
4610   NEEDS_LIBGEN=YesPlease
4611 fi
4612
4613
4614 test -n "$NEEDS_LIBGEN" && LIBS="$LIBS -lgen"
4615
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
4620 else
4621   ac_check_lib_save_LIBS=$LIBS
4622 LIBS="-lc  $LIBS"
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h.  */
4625
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.  */
4629 #ifdef __cplusplus
4630 extern "C"
4631 #endif
4632 char gettext ();
4633 int
4634 main ()
4635 {
4636 return gettext ();
4637   ;
4638   return 0;
4639 }
4640 _ACEOF
4641 if ac_fn_c_try_link "$LINENO"; then :
4642   ac_cv_lib_c_gettext=yes
4643 else
4644   ac_cv_lib_c_gettext=no
4645 fi
4646 rm -f core conftest.err conftest.$ac_objext \
4647     conftest$ac_exeext conftest.$ac_ext
4648 LIBS=$ac_check_lib_save_LIBS
4649 fi
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
4654 else
4655   LIBC_CONTAINS_LIBINTL=
4656 fi
4657
4658
4659
4660 #
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
4663 ac_ext=c
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
4672   CPP=
4673 fi
4674 if test -z "$CPP"; then
4675   if test "${ac_cv_prog_CPP+set}" = set; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678       # Double quotes because CPP needs to be expanded
4679     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4680     do
4681       ac_preproc_ok=false
4682 for ac_c_preproc_warn_flag in '' yes
4683 do
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.  */
4692 #ifdef __STDC__
4693 # include <limits.h>
4694 #else
4695 # include <assert.h>
4696 #endif
4697                      Syntax error
4698 _ACEOF
4699 if ac_fn_c_try_cpp "$LINENO"; then :
4700
4701 else
4702   # Broken: fails on valid input.
4703 continue
4704 fi
4705 rm -f conftest.err conftest.i conftest.$ac_ext
4706
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>
4712 _ACEOF
4713 if ac_fn_c_try_cpp "$LINENO"; then :
4714   # Broken: success on invalid input.
4715 continue
4716 else
4717   # Passes both tests.
4718 ac_preproc_ok=:
4719 break
4720 fi
4721 rm -f conftest.err conftest.i conftest.$ac_ext
4722
4723 done
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 :
4727   break
4728 fi
4729
4730     done
4731     ac_cv_prog_CPP=$CPP
4732
4733 fi
4734   CPP=$ac_cv_prog_CPP
4735 else
4736   ac_cv_prog_CPP=$CPP
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4739 $as_echo "$CPP" >&6; }
4740 ac_preproc_ok=false
4741 for ac_c_preproc_warn_flag in '' yes
4742 do
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.  */
4751 #ifdef __STDC__
4752 # include <limits.h>
4753 #else
4754 # include <assert.h>
4755 #endif
4756                      Syntax error
4757 _ACEOF
4758 if ac_fn_c_try_cpp "$LINENO"; then :
4759
4760 else
4761   # Broken: fails on valid input.
4762 continue
4763 fi
4764 rm -f conftest.err conftest.i conftest.$ac_ext
4765
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>
4771 _ACEOF
4772 if ac_fn_c_try_cpp "$LINENO"; then :
4773   # Broken: success on invalid input.
4774 continue
4775 else
4776   # Passes both tests.
4777 ac_preproc_ok=:
4778 break
4779 fi
4780 rm -f conftest.err conftest.i conftest.$ac_ext
4781
4782 done
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 :
4786
4787 else
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 ; }
4792 fi
4793
4794 ac_ext=c
4795 ac_cpp='$CPP $CPPFLAGS'
4796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799
4800
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
4805 else
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
4811 do
4812   IFS=$as_save_IFS
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
4821 *GNU*)
4822   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4823 *)
4824   ac_count=0
4825   $as_echo_n 0123456789 >"conftest.in"
4826   while :
4827   do
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
4839     fi
4840     # 10*(2^10) chars as input seems more than enough
4841     test $ac_count -gt 10 && break
4842   done
4843   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4844 esac
4845
4846       $ac_path_GREP_found && break 3
4847     done
4848   done
4849   done
4850 IFS=$as_save_IFS
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
4853   fi
4854 else
4855   ac_cv_path_GREP=$GREP
4856 fi
4857
4858 fi
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"
4862
4863
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
4868 else
4869   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4870    then ac_cv_path_EGREP="$GREP -E"
4871    else
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
4877 do
4878   IFS=$as_save_IFS
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
4887 *GNU*)
4888   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4889 *)
4890   ac_count=0
4891   $as_echo_n 0123456789 >"conftest.in"
4892   while :
4893   do
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
4905     fi
4906     # 10*(2^10) chars as input seems more than enough
4907     test $ac_count -gt 10 && break
4908   done
4909   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4910 esac
4911
4912       $ac_path_EGREP_found && break 3
4913     done
4914   done
4915   done
4916 IFS=$as_save_IFS
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
4919   fi
4920 else
4921   ac_cv_path_EGREP=$EGREP
4922 fi
4923
4924    fi
4925 fi
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"
4929
4930
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
4935 else
4936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h.  */
4938 #include <stdlib.h>
4939 #include <stdarg.h>
4940 #include <string.h>
4941 #include <float.h>
4942
4943 int
4944 main ()
4945 {
4946
4947   ;
4948   return 0;
4949 }
4950 _ACEOF
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952   ac_cv_header_stdc=yes
4953 else
4954   ac_cv_header_stdc=no
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957
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.  */
4962 #include <string.h>
4963
4964 _ACEOF
4965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4966   $EGREP "memchr" >/dev/null 2>&1; then :
4967
4968 else
4969   ac_cv_header_stdc=no
4970 fi
4971 rm -f conftest*
4972
4973 fi
4974
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.  */
4979 #include <stdlib.h>
4980
4981 _ACEOF
4982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4983   $EGREP "free" >/dev/null 2>&1; then :
4984
4985 else
4986   ac_cv_header_stdc=no
4987 fi
4988 rm -f conftest*
4989
4990 fi
4991
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 :
4995   :
4996 else
4997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h.  */
4999 #include <ctype.h>
5000 #include <stdlib.h>
5001 #if ((' ' & 0x0FF) == 0x020)
5002 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5003 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5004 #else
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))
5010 #endif
5011
5012 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5013 int
5014 main ()
5015 {
5016   int i;
5017   for (i = 0; i < 256; i++)
5018     if (XOR (islower (i), ISLOWER (i))
5019         || toupper (i) != TOUPPER (i))
5020       return 2;
5021   return 0;
5022 }
5023 _ACEOF
5024 if ac_fn_c_try_run "$LINENO"; then :
5025
5026 else
5027   ac_cv_header_stdc=no
5028 fi
5029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5030   conftest.$ac_objext conftest.beam conftest.$ac_ext
5031 fi
5032
5033 fi
5034 fi
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
5038
5039 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5040
5041 fi
5042
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
5046 do :
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
5049 "
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
5053 _ACEOF
5054
5055 fi
5056
5057 done
5058
5059
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 :
5062   NO_GETTEXT=
5063 else
5064   NO_GETTEXT=YesPlease
5065 fi
5066
5067
5068
5069
5070 if test -z "$NO_GETTEXT"; then
5071     test -n "$LIBC_CONTAINS_LIBINTL" || LIBS="$LIBS -lintl"
5072 fi
5073
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;}
5077 #
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 :
5081   NO_SYS_SELECT_H=
5082 else
5083   NO_SYS_SELECT_H=UnfortunatelyYes
5084 fi
5085
5086
5087
5088 #
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 :
5092   NO_SYS_POLL_H=
5093 else
5094   NO_SYS_POLL_H=UnfortunatelyYes
5095 fi
5096
5097
5098
5099 #
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 :
5103   NO_INTTYPES_H=
5104 else
5105   NO_INTTYPES_H=UnfortunatelyYes
5106 fi
5107
5108
5109
5110 #
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 **).
5113
5114
5115
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"
5121 fi
5122
5123
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.  */
5128
5129
5130 #include <iconv.h>
5131
5132 extern size_t iconv(iconv_t cd,
5133                     char **inbuf, size_t *inbytesleft,
5134                     char **outbuf, size_t *outbytesleft);
5135
5136 int
5137 main ()
5138 {
5139
5140   ;
5141   return 0;
5142 }
5143 _ACEOF
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; }
5147 else
5148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5149 $as_echo "yes" >&6; }
5150         OLD_ICONV=UnfortunatelyYes
5151 fi
5152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5153
5154
5155 if test -n "$ICONVDIR"; then
5156    CPPFLAGS="$old_CPPFLAGS"
5157    LDFLAGS="$old_LDFLAGS"
5158 fi
5159
5160
5161
5162
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;}
5166 #
5167
5168    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5169 #include <sys/socket.h>
5170 "
5171 if test "x$ac_cv_type_socklen_t" = x""yes; then :
5172
5173 else
5174
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
5179 else
5180
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.  */
5188
5189                   #include <sys/types.h>
5190                   #include <sys/socket.h>
5191
5192                   int getpeername (int, $arg2 *, $t *);
5193
5194 int
5195 main ()
5196 {
5197
5198                   $t len;
5199                   getpeername(0,0,&len);
5200
5201   ;
5202   return 0;
5203 }
5204 _ACEOF
5205 if ac_fn_c_try_compile "$LINENO"; then :
5206
5207                   git_cv_socklen_t_equiv="$t"
5208                   break 2
5209
5210 fi
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212             done
5213          done
5214
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
5217          fi
5218
5219 fi
5220
5221       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_socklen_t_equiv" >&5
5222 $as_echo "$git_cv_socklen_t_equiv" >&6; }
5223
5224 cat >>confdefs.h <<_ACEOF
5225 #define socklen_t $git_cv_socklen_t_equiv
5226 _ACEOF
5227
5228 fi
5229
5230
5231 case $ac_cv_type_socklen_t in
5232   yes)  ;;
5233   *)    SOCKLEN_T=$git_cv_socklen_t_equiv
5234  ;;
5235 esac
5236
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>
5239 "
5240 if test "x$ac_cv_member_struct_dirent_d_ino" = x""yes; then :
5241   NO_D_INO_IN_DIRENT=
5242 else
5243   NO_D_INO_IN_DIRENT=YesPlease
5244 fi
5245
5246
5247 #
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>
5251 "
5252 if test "x$ac_cv_member_struct_dirent_d_type" = x""yes; then :
5253   NO_D_TYPE_IN_DIRENT=
5254 else
5255   NO_D_TYPE_IN_DIRENT=YesPlease
5256 fi
5257
5258
5259 #
5260 # Define NO_SOCKADDR_STORAGE if your platform does not have struct
5261 # sockaddr_storage.
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>
5265
5266 "
5267 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
5268   NO_SOCKADDR_STORAGE=
5269 else
5270   NO_SOCKADDR_STORAGE=YesPlease
5271 fi
5272
5273
5274 #
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>
5279 #include <netdb.h>
5280
5281 "
5282 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
5283
5284  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5285 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
5286
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
5291 else
5292   ac_func_search_save_LIBS=$LIBS
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h.  */
5295
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.  */
5299 #ifdef __cplusplus
5300 extern "C"
5301 #endif
5302 char getaddrinfo ();
5303 int
5304 main ()
5305 {
5306 return getaddrinfo ();
5307   ;
5308   return 0;
5309 }
5310 _ACEOF
5311 for ac_lib in '' ; do
5312   if test -z "$ac_lib"; then
5313     ac_res="none required"
5314   else
5315     ac_res=-l$ac_lib
5316     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5317   fi
5318   if ac_fn_c_try_link "$LINENO"; then :
5319   ac_cv_search_getaddrinfo=$ac_res
5320 fi
5321 rm -f core conftest.err conftest.$ac_objext \
5322     conftest$ac_exeext
5323   if test "${ac_cv_search_getaddrinfo+set}" = set; then :
5324   break
5325 fi
5326 done
5327 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
5328
5329 else
5330   ac_cv_search_getaddrinfo=no
5331 fi
5332 rm conftest.$ac_ext
5333 LIBS=$ac_func_search_save_LIBS
5334 fi
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"
5340   NO_IPV6=
5341 else
5342   NO_IPV6=YesPlease
5343 fi
5344
5345
5346 else
5347   NO_IPV6=YesPlease
5348 fi
5349
5350
5351 else
5352   NO_IPV6=YesPlease
5353 fi
5354
5355
5356 #
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
5362 else
5363
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h.  */
5366 $ac_includes_default
5367 #include <regex.h>
5368
5369 int
5370 main ()
5371 {
5372 #ifdef REG_STARTEND
5373 yippeeyeswehaveit
5374 #endif
5375
5376   ;
5377   return 0;
5378 }
5379 _ACEOF
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
5383 else
5384   ac_cv_c_excellent_regex=no
5385 fi
5386 rm -f conftest*
5387
5388
5389 fi
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
5393         NO_REGEX=
5394 else
5395         NO_REGEX=YesPlease
5396 fi
5397
5398 #
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
5405 else
5406
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 ; }
5412 else
5413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h.  */
5415 $ac_includes_default
5416 int
5417 main ()
5418 {
5419 char c;
5420                 FILE *f = fopen(".", "r");
5421                 return f && fread(&c, 1, 1, f)
5422   ;
5423   return 0;
5424 }
5425 _ACEOF
5426 if ac_fn_c_try_run "$LINENO"; then :
5427   ac_cv_fread_reads_directories=no
5428 else
5429   ac_cv_fread_reads_directories=yes
5430 fi
5431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5432   conftest.$ac_objext conftest.beam conftest.$ac_ext
5433 fi
5434
5435
5436 fi
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
5441 else
5442         FREAD_READS_DIRECTORIES=
5443 fi
5444
5445 #
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
5453 else
5454
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 ; }
5460 else
5461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462 /* end confdefs.h.  */
5463 $ac_includes_default
5464                 #include "stdarg.h"
5465
5466                 int test_vsnprintf(char *str, size_t maxsize, const char *format, ...)
5467                 {
5468                   int ret;
5469                   va_list ap;
5470                   va_start(ap, format);
5471                   ret = vsnprintf(str, maxsize, format, ap);
5472                   va_end(ap);
5473                   return ret;
5474                 }
5475 int
5476 main ()
5477 {
5478 char buf[6];
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
5483   ;
5484   return 0;
5485 }
5486 _ACEOF
5487 if ac_fn_c_try_run "$LINENO"; then :
5488   ac_cv_snprintf_returns_bogus=no
5489 else
5490   ac_cv_snprintf_returns_bogus=yes
5491 fi
5492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5493   conftest.$ac_objext conftest.beam conftest.$ac_ext
5494 fi
5495
5496
5497 fi
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
5502 else
5503         SNPRINTF_RETURNS_BOGUS=
5504 fi
5505
5506
5507
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;}
5512 #
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 :
5516   NO_LIBGEN_H=
5517 else
5518   NO_LIBGEN_H=YesPlease
5519 fi
5520
5521
5522
5523 #
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
5528 else
5529   HAVE_PATHS_H=
5530 fi
5531
5532
5533
5534 #
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
5539 else
5540   HAVE_LIBCHARSET_H=
5541 fi
5542
5543
5544
5545 # Define CHARSET_LIB if libiconv does not export the locale_charset symbol
5546 # and libcharset does
5547 CHARSET_LIB=
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
5552 else
5553   ac_check_lib_save_LIBS=$LIBS
5554 LIBS="-liconv  $LIBS"
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h.  */
5557
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.  */
5561 #ifdef __cplusplus
5562 extern "C"
5563 #endif
5564 char locale_charset ();
5565 int
5566 main ()
5567 {
5568 return locale_charset ();
5569   ;
5570   return 0;
5571 }
5572 _ACEOF
5573 if ac_fn_c_try_link "$LINENO"; then :
5574   ac_cv_lib_iconv_locale_charset=yes
5575 else
5576   ac_cv_lib_iconv_locale_charset=no
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext \
5579     conftest$ac_exeext conftest.$ac_ext
5580 LIBS=$ac_check_lib_save_LIBS
5581 fi
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
5587 _ACEOF
5588
5589   LIBS="-liconv $LIBS"
5590
5591 else
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
5596 else
5597   ac_check_lib_save_LIBS=$LIBS
5598 LIBS="-lcharset  $LIBS"
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h.  */
5601
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.  */
5605 #ifdef __cplusplus
5606 extern "C"
5607 #endif
5608 char locale_charset ();
5609 int
5610 main ()
5611 {
5612 return locale_charset ();
5613   ;
5614   return 0;
5615 }
5616 _ACEOF
5617 if ac_fn_c_try_link "$LINENO"; then :
5618   ac_cv_lib_charset_locale_charset=yes
5619 else
5620   ac_cv_lib_charset_locale_charset=no
5621 fi
5622 rm -f core conftest.err conftest.$ac_objext \
5623     conftest$ac_exeext conftest.$ac_ext
5624 LIBS=$ac_check_lib_save_LIBS
5625 fi
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
5630 fi
5631
5632
5633
5634 fi
5635
5636
5637 #
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 :
5641
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
5646 else
5647   ac_func_search_save_LIBS=$LIBS
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h.  */
5650
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.  */
5654 #ifdef __cplusplus
5655 extern "C"
5656 #endif
5657 char strcasestr ();
5658 int
5659 main ()
5660 {
5661 return strcasestr ();
5662   ;
5663   return 0;
5664 }
5665 _ACEOF
5666 for ac_lib in '' ; do
5667   if test -z "$ac_lib"; then
5668     ac_res="none required"
5669   else
5670     ac_res=-l$ac_lib
5671     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5672   fi
5673   if ac_fn_c_try_link "$LINENO"; then :
5674   ac_cv_search_strcasestr=$ac_res
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext \
5677     conftest$ac_exeext
5678   if test "${ac_cv_search_strcasestr+set}" = set; then :
5679   break
5680 fi
5681 done
5682 if test "${ac_cv_search_strcasestr+set}" = set; then :
5683
5684 else
5685   ac_cv_search_strcasestr=no
5686 fi
5687 rm conftest.$ac_ext
5688 LIBS=$ac_func_search_save_LIBS
5689 fi
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"
5695   NO_STRCASESTR=
5696 else
5697   NO_STRCASESTR=YesPlease
5698 fi
5699
5700
5701 else
5702   NO_STRCASESTR=YesPlease
5703 fi
5704
5705
5706 #
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 :
5710
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
5715 else
5716   ac_func_search_save_LIBS=$LIBS
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h.  */
5719
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.  */
5723 #ifdef __cplusplus
5724 extern "C"
5725 #endif
5726 char strtok_r ();
5727 int
5728 main ()
5729 {
5730 return strtok_r ();
5731   ;
5732   return 0;
5733 }
5734 _ACEOF
5735 for ac_lib in '' ; do
5736   if test -z "$ac_lib"; then
5737     ac_res="none required"
5738   else
5739     ac_res=-l$ac_lib
5740     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5741   fi
5742   if ac_fn_c_try_link "$LINENO"; then :
5743   ac_cv_search_strtok_r=$ac_res
5744 fi
5745 rm -f core conftest.err conftest.$ac_objext \
5746     conftest$ac_exeext
5747   if test "${ac_cv_search_strtok_r+set}" = set; then :
5748   break
5749 fi
5750 done
5751 if test "${ac_cv_search_strtok_r+set}" = set; then :
5752
5753 else
5754   ac_cv_search_strtok_r=no
5755 fi
5756 rm conftest.$ac_ext
5757 LIBS=$ac_func_search_save_LIBS
5758 fi
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"
5764   NO_STRTOK_R=
5765 else
5766   NO_STRTOK_R=YesPlease
5767 fi
5768
5769
5770 else
5771   NO_STRTOK_R=YesPlease
5772 fi
5773
5774
5775 #
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 :
5779
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
5784 else
5785   ac_func_search_save_LIBS=$LIBS
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h.  */
5788
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.  */
5792 #ifdef __cplusplus
5793 extern "C"
5794 #endif
5795 char fnmatch ();
5796 int
5797 main ()
5798 {
5799 return fnmatch ();
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 for ac_lib in '' ; do
5805   if test -z "$ac_lib"; then
5806     ac_res="none required"
5807   else
5808     ac_res=-l$ac_lib
5809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5810   fi
5811   if ac_fn_c_try_link "$LINENO"; then :
5812   ac_cv_search_fnmatch=$ac_res
5813 fi
5814 rm -f core conftest.err conftest.$ac_objext \
5815     conftest$ac_exeext
5816   if test "${ac_cv_search_fnmatch+set}" = set; then :
5817   break
5818 fi
5819 done
5820 if test "${ac_cv_search_fnmatch+set}" = set; then :
5821
5822 else
5823   ac_cv_search_fnmatch=no
5824 fi
5825 rm conftest.$ac_ext
5826 LIBS=$ac_func_search_save_LIBS
5827 fi
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"
5833   NO_FNMATCH=
5834 else
5835   NO_FNMATCH=YesPlease
5836 fi
5837
5838
5839 else
5840   NO_FNMATCH=YesPlease
5841 fi
5842
5843
5844 #
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
5851 else
5852
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h.  */
5855
5856 #include <fnmatch.h>
5857
5858 int
5859 main ()
5860 {
5861 #ifdef FNM_CASEFOLD
5862 yippeeyeswehaveit
5863 #endif
5864
5865   ;
5866   return 0;
5867 }
5868 _ACEOF
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
5872 else
5873   ac_cv_c_excellent_fnmatch=no
5874 fi
5875 rm -f conftest*
5876
5877
5878 fi
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=
5883 else
5884         NO_FNMATCH_CASEFOLD=YesPlease
5885 fi
5886
5887 #
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 :
5891
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
5896 else
5897   ac_func_search_save_LIBS=$LIBS
5898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899 /* end confdefs.h.  */
5900
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.  */
5904 #ifdef __cplusplus
5905 extern "C"
5906 #endif
5907 char memmem ();
5908 int
5909 main ()
5910 {
5911 return memmem ();
5912   ;
5913   return 0;
5914 }
5915 _ACEOF
5916 for ac_lib in '' ; do
5917   if test -z "$ac_lib"; then
5918     ac_res="none required"
5919   else
5920     ac_res=-l$ac_lib
5921     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5922   fi
5923   if ac_fn_c_try_link "$LINENO"; then :
5924   ac_cv_search_memmem=$ac_res
5925 fi
5926 rm -f core conftest.err conftest.$ac_objext \
5927     conftest$ac_exeext
5928   if test "${ac_cv_search_memmem+set}" = set; then :
5929   break
5930 fi
5931 done
5932 if test "${ac_cv_search_memmem+set}" = set; then :
5933
5934 else
5935   ac_cv_search_memmem=no
5936 fi
5937 rm conftest.$ac_ext
5938 LIBS=$ac_func_search_save_LIBS
5939 fi
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"
5945   NO_MEMMEM=
5946 else
5947   NO_MEMMEM=YesPlease
5948 fi
5949
5950
5951 else
5952   NO_MEMMEM=YesPlease
5953 fi
5954
5955
5956 #
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 :
5960
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
5965 else
5966   ac_func_search_save_LIBS=$LIBS
5967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5968 /* end confdefs.h.  */
5969
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.  */
5973 #ifdef __cplusplus
5974 extern "C"
5975 #endif
5976 char strlcpy ();
5977 int
5978 main ()
5979 {
5980 return strlcpy ();
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 for ac_lib in '' ; do
5986   if test -z "$ac_lib"; then
5987     ac_res="none required"
5988   else
5989     ac_res=-l$ac_lib
5990     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5991   fi
5992   if ac_fn_c_try_link "$LINENO"; then :
5993   ac_cv_search_strlcpy=$ac_res
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext \
5996     conftest$ac_exeext
5997   if test "${ac_cv_search_strlcpy+set}" = set; then :
5998   break
5999 fi
6000 done
6001 if test "${ac_cv_search_strlcpy+set}" = set; then :
6002
6003 else
6004   ac_cv_search_strlcpy=no
6005 fi
6006 rm conftest.$ac_ext
6007 LIBS=$ac_func_search_save_LIBS
6008 fi
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"
6014   NO_STRLCPY=
6015 else
6016   NO_STRLCPY=YesPlease
6017 fi
6018
6019
6020 else
6021   NO_STRLCPY=YesPlease
6022 fi
6023
6024
6025 #
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>
6029
6030 "
6031 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6032   NO_UINTMAX_T=
6033 else
6034   NO_UINTMAX_T=YesPlease
6035 fi
6036
6037
6038 #
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 :
6042
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
6047 else
6048   ac_func_search_save_LIBS=$LIBS
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h.  */
6051
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.  */
6055 #ifdef __cplusplus
6056 extern "C"
6057 #endif
6058 char strtoumax ();
6059 int
6060 main ()
6061 {
6062 return strtoumax ();
6063   ;
6064   return 0;
6065 }
6066 _ACEOF
6067 for ac_lib in '' ; do
6068   if test -z "$ac_lib"; then
6069     ac_res="none required"
6070   else
6071     ac_res=-l$ac_lib
6072     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6073   fi
6074   if ac_fn_c_try_link "$LINENO"; then :
6075   ac_cv_search_strtoumax=$ac_res
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext \
6078     conftest$ac_exeext
6079   if test "${ac_cv_search_strtoumax+set}" = set; then :
6080   break
6081 fi
6082 done
6083 if test "${ac_cv_search_strtoumax+set}" = set; then :
6084
6085 else
6086   ac_cv_search_strtoumax=no
6087 fi
6088 rm conftest.$ac_ext
6089 LIBS=$ac_func_search_save_LIBS
6090 fi
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"
6096   NO_STRTOUMAX=
6097 else
6098   NO_STRTOUMAX=YesPlease
6099 fi
6100
6101
6102 else
6103   NO_STRTOUMAX=YesPlease
6104 fi
6105
6106
6107 #
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 :
6111
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
6116 else
6117   ac_func_search_save_LIBS=$LIBS
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h.  */
6120
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.  */
6124 #ifdef __cplusplus
6125 extern "C"
6126 #endif
6127 char setenv ();
6128 int
6129 main ()
6130 {
6131 return setenv ();
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 for ac_lib in '' ; do
6137   if test -z "$ac_lib"; then
6138     ac_res="none required"
6139   else
6140     ac_res=-l$ac_lib
6141     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6142   fi
6143   if ac_fn_c_try_link "$LINENO"; then :
6144   ac_cv_search_setenv=$ac_res
6145 fi
6146 rm -f core conftest.err conftest.$ac_objext \
6147     conftest$ac_exeext
6148   if test "${ac_cv_search_setenv+set}" = set; then :
6149   break
6150 fi
6151 done
6152 if test "${ac_cv_search_setenv+set}" = set; then :
6153
6154 else
6155   ac_cv_search_setenv=no
6156 fi
6157 rm conftest.$ac_ext
6158 LIBS=$ac_func_search_save_LIBS
6159 fi
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"
6165   NO_SETENV=
6166 else
6167   NO_SETENV=YesPlease
6168 fi
6169
6170
6171 else
6172   NO_SETENV=YesPlease
6173 fi
6174
6175
6176 #
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 :
6180
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
6185 else
6186   ac_func_search_save_LIBS=$LIBS
6187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h.  */
6189
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.  */
6193 #ifdef __cplusplus
6194 extern "C"
6195 #endif
6196 char unsetenv ();
6197 int
6198 main ()
6199 {
6200 return unsetenv ();
6201   ;
6202   return 0;
6203 }
6204 _ACEOF
6205 for ac_lib in '' ; do
6206   if test -z "$ac_lib"; then
6207     ac_res="none required"
6208   else
6209     ac_res=-l$ac_lib
6210     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6211   fi
6212   if ac_fn_c_try_link "$LINENO"; then :
6213   ac_cv_search_unsetenv=$ac_res
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext \
6216     conftest$ac_exeext
6217   if test "${ac_cv_search_unsetenv+set}" = set; then :
6218   break
6219 fi
6220 done
6221 if test "${ac_cv_search_unsetenv+set}" = set; then :
6222
6223 else
6224   ac_cv_search_unsetenv=no
6225 fi
6226 rm conftest.$ac_ext
6227 LIBS=$ac_func_search_save_LIBS
6228 fi
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"
6234   NO_UNSETENV=
6235 else
6236   NO_UNSETENV=YesPlease
6237 fi
6238
6239
6240 else
6241   NO_UNSETENV=YesPlease
6242 fi
6243
6244
6245 #
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 :
6249
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
6254 else
6255   ac_func_search_save_LIBS=$LIBS
6256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h.  */
6258
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.  */
6262 #ifdef __cplusplus
6263 extern "C"
6264 #endif
6265 char mkdtemp ();
6266 int
6267 main ()
6268 {
6269 return mkdtemp ();
6270   ;
6271   return 0;
6272 }
6273 _ACEOF
6274 for ac_lib in '' ; do
6275   if test -z "$ac_lib"; then
6276     ac_res="none required"
6277   else
6278     ac_res=-l$ac_lib
6279     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6280   fi
6281   if ac_fn_c_try_link "$LINENO"; then :
6282   ac_cv_search_mkdtemp=$ac_res
6283 fi
6284 rm -f core conftest.err conftest.$ac_objext \
6285     conftest$ac_exeext
6286   if test "${ac_cv_search_mkdtemp+set}" = set; then :
6287   break
6288 fi
6289 done
6290 if test "${ac_cv_search_mkdtemp+set}" = set; then :
6291
6292 else
6293   ac_cv_search_mkdtemp=no
6294 fi
6295 rm conftest.$ac_ext
6296 LIBS=$ac_func_search_save_LIBS
6297 fi
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"
6303   NO_MKDTEMP=
6304 else
6305   NO_MKDTEMP=YesPlease
6306 fi
6307
6308
6309 else
6310   NO_MKDTEMP=YesPlease
6311 fi
6312
6313
6314 #
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 :
6318
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
6323 else
6324   ac_func_search_save_LIBS=$LIBS
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h.  */
6327
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.  */
6331 #ifdef __cplusplus
6332 extern "C"
6333 #endif
6334 char mkstemps ();
6335 int
6336 main ()
6337 {
6338 return mkstemps ();
6339   ;
6340   return 0;
6341 }
6342 _ACEOF
6343 for ac_lib in '' ; do
6344   if test -z "$ac_lib"; then
6345     ac_res="none required"
6346   else
6347     ac_res=-l$ac_lib
6348     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6349   fi
6350   if ac_fn_c_try_link "$LINENO"; then :
6351   ac_cv_search_mkstemps=$ac_res
6352 fi
6353 rm -f core conftest.err conftest.$ac_objext \
6354     conftest$ac_exeext
6355   if test "${ac_cv_search_mkstemps+set}" = set; then :
6356   break
6357 fi
6358 done
6359 if test "${ac_cv_search_mkstemps+set}" = set; then :
6360
6361 else
6362   ac_cv_search_mkstemps=no
6363 fi
6364 rm conftest.$ac_ext
6365 LIBS=$ac_func_search_save_LIBS
6366 fi
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"
6372   NO_MKSTEMPS=
6373 else
6374   NO_MKSTEMPS=YesPlease
6375 fi
6376
6377
6378 else
6379   NO_MKSTEMPS=YesPlease
6380 fi
6381
6382
6383 #
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 :
6387
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
6392 else
6393   ac_func_search_save_LIBS=$LIBS
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h.  */
6396
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.  */
6400 #ifdef __cplusplus
6401 extern "C"
6402 #endif
6403 char initgroups ();
6404 int
6405 main ()
6406 {
6407 return initgroups ();
6408   ;
6409   return 0;
6410 }
6411 _ACEOF
6412 for ac_lib in '' ; do
6413   if test -z "$ac_lib"; then
6414     ac_res="none required"
6415   else
6416     ac_res=-l$ac_lib
6417     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6418   fi
6419   if ac_fn_c_try_link "$LINENO"; then :
6420   ac_cv_search_initgroups=$ac_res
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext \
6423     conftest$ac_exeext
6424   if test "${ac_cv_search_initgroups+set}" = set; then :
6425   break
6426 fi
6427 done
6428 if test "${ac_cv_search_initgroups+set}" = set; then :
6429
6430 else
6431   ac_cv_search_initgroups=no
6432 fi
6433 rm conftest.$ac_ext
6434 LIBS=$ac_func_search_save_LIBS
6435 fi
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"
6441   NO_INITGROUPS=
6442 else
6443   NO_INITGROUPS=YesPlease
6444 fi
6445
6446
6447 else
6448   NO_INITGROUPS=YesPlease
6449 fi
6450
6451
6452 #
6453 #
6454 # Define NO_MMAP if you want to avoid mmap.
6455 #
6456 # Define NO_ICONV if your libc does not properly support iconv.
6457
6458
6459 ## Other checks.
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.
6462 #
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.
6465 #
6466 # Define NO_PTHREADS if we do not have pthreads.
6467 #
6468 # Define PTHREAD_LIBS to the linker flag used for Pthread support.
6469
6470
6471
6472 NO_PTHREADS=UnfortunatelyYes
6473 PTHREAD_LIBS=
6474
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
6481   threads_found=no
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.  */
6489
6490
6491 #include <pthread.h>
6492
6493 int
6494 main ()
6495 {
6496
6497         pthread_mutex_t test_mutex;
6498         pthread_key_t test_key;
6499         int retcode = 0;
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);
6504         return retcode;
6505
6506   ;
6507   return 0;
6508 }
6509 _ACEOF
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; }
6513                 NO_PTHREADS=
6514                 PTHREAD_LIBS="$opt"
6515                 PTHREAD_CFLAGS="$opt"
6516                 threads_found=yes
6517                 break
6518
6519 else
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6522 fi
6523 rm -f core conftest.err conftest.$ac_objext \
6524     conftest$ac_exeext conftest.$ac_ext
6525       CFLAGS="$old_CFLAGS"
6526   done
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
6532 else
6533   ac_check_lib_save_LIBS=$LIBS
6534 LIBS="-lpthread  $LIBS"
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h.  */
6537
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.  */
6541 #ifdef __cplusplus
6542 extern "C"
6543 #endif
6544 char pthread_create ();
6545 int
6546 main ()
6547 {
6548 return pthread_create ();
6549   ;
6550   return 0;
6551 }
6552 _ACEOF
6553 if ac_fn_c_try_link "$LINENO"; then :
6554   ac_cv_lib_pthread_pthread_create=yes
6555 else
6556   ac_cv_lib_pthread_pthread_create=no
6557 fi
6558 rm -f core conftest.err conftest.$ac_objext \
6559     conftest$ac_exeext conftest.$ac_ext
6560 LIBS=$ac_check_lib_save_LIBS
6561 fi
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"
6566 else
6567   NO_PTHREADS=UnfortunatelyYes
6568 fi
6569
6570   fi
6571 else
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.  */
6578
6579
6580 #include <pthread.h>
6581
6582 int
6583 main ()
6584 {
6585
6586         pthread_mutex_t test_mutex;
6587         pthread_key_t test_key;
6588         int retcode = 0;
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);
6593         return retcode;
6594
6595   ;
6596   return 0;
6597 }
6598 _ACEOF
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; }
6602                 NO_PTHREADS=
6603                 PTHREAD_LIBS="$PTHREAD_CFLAGS"
6604
6605 else
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6608 fi
6609 rm -f core conftest.err conftest.$ac_objext \
6610     conftest$ac_exeext conftest.$ac_ext
6611
6612   CFLAGS="$old_CFLAGS"
6613 fi
6614
6615 CFLAGS="$old_CFLAGS"
6616
6617
6618
6619
6620
6621 ## Output files
6622 ac_config_files="$ac_config_files "${config_file}":"${config_in}":"${config_append}""
6623
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.
6630 #
6631 # config.status only pays attention to the cache file if you give it
6632 # the --recheck option to rerun configure.
6633 #
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
6636 # following values.
6637
6638 _ACEOF
6639
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.
6645 (
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
6648     case $ac_val in #(
6649     *${as_nl}*)
6650       case $ac_var in #(
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;} ;;
6653       esac
6654       case $ac_var in #(
6655       _ | IFS | as_nl) ;; #(
6656       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6657       *) { eval $ac_var=; unset $ac_var;} ;;
6658       esac ;;
6659     esac
6660   done
6661
6662   (set) 2>&1 |
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 \.
6667       sed -n \
6668         "s/'/'\\\\''/g;
6669           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6670       ;; #(
6671     *)
6672       # `set' quotes correctly as required by POSIX, so do not add quotes.
6673       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6674       ;;
6675     esac |
6676     sort
6677 ) |
6678   sed '
6679      /^ac_cv_env_/b end
6680      t clear
6681      :clear
6682      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6683      t end
6684      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6685      :end' >>confcache
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
6692   else
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;}
6695   fi
6696 fi
6697 rm -f confcache
6698
6699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6700 # Let make expand exec_prefix.
6701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6702
6703 # Transform confdefs.h into DEFS.
6704 # Protect against shell expansion while executing Makefile rules.
6705 # Protect against Makefile macro expansion.
6706 #
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.
6710 ac_script='
6711 :mline
6712 /\\$/{
6713  N
6714  s,\\\n,,
6715  b mline
6716 }
6717 t clear
6718 :clear
6719 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
6720 t quote
6721 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
6722 t quote
6723 b any
6724 :quote
6725 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6726 s/\[/\\&/g
6727 s/\]/\\&/g
6728 s/\$/$$/g
6729 H
6730 :any
6731 ${
6732         g
6733         s/^\n//
6734         s/\n/ /g
6735         p
6736 }
6737 '
6738 DEFS=`sed -n "$ac_script" confdefs.h`
6739
6740
6741 ac_libobjs=
6742 ac_ltlibobjs=
6743 U=
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'
6752 done
6753 LIBOBJS=$ac_libobjs
6754
6755 LTLIBOBJS=$ac_ltlibobjs
6756
6757
6758
6759 : ${CONFIG_STATUS=./config.status}
6760 ac_write_fail=0
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;}
6765 as_write_fail=0
6766 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6767 #! $SHELL
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.
6772
6773 debug=false
6774 ac_cs_recheck=false
6775 ac_cs_silent=false
6776
6777 SHELL=\${CONFIG_SHELL-$SHELL}
6778 export SHELL
6779 _ASEOF
6780 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6781 ## -------------------- ##
6782 ## M4sh Initialization. ##
6783 ## -------------------- ##
6784
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 :
6788   emulate sh
6789   NULLCMD=:
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
6794 else
6795   case `(set -o) 2>/dev/null` in #(
6796   *posix*) :
6797     set -o posix ;; #(
6798   *) :
6799      ;;
6800 esac
6801 fi
6802
6803
6804 as_nl='
6805 '
6806 export as_nl
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'
6820 else
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'
6824   else
6825     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6826     as_echo_n_body='eval
6827       arg=$1;
6828       case $arg in #(
6829       *"$as_nl"*)
6830         expr "X$arg" : "X\\(.*\\)$as_nl";
6831         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6832       esac;
6833       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6834     '
6835     export as_echo_n_body
6836     as_echo_n='sh -c $as_echo_n_body as_echo'
6837   fi
6838   export as_echo_body
6839   as_echo='sh -c $as_echo_body as_echo'
6840 fi
6841
6842 # The user is always right.
6843 if test "${PATH_SEPARATOR+set}" != set; then
6844   PATH_SEPARATOR=:
6845   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6846     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6847       PATH_SEPARATOR=';'
6848   }
6849 fi
6850
6851
6852 # IFS
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.)
6857 IFS=" ""        $as_nl"
6858
6859 # Find who we are.  Look in the path if we contain no directory separator.
6860 case $0 in #((
6861   *[\\/]* ) as_myself=$0 ;;
6862   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6868   done
6869 IFS=$as_save_IFS
6870
6871      ;;
6872 esac
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
6876   as_myself=$0
6877 fi
6878 if test ! -f "$as_myself"; then
6879   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6880   exit 1
6881 fi
6882
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 || :
6890 done
6891 PS1='$ '
6892 PS2='> '
6893 PS4='+ '
6894
6895 # NLS nuisances.
6896 LC_ALL=C
6897 export LC_ALL
6898 LANGUAGE=C
6899 export LANGUAGE
6900
6901 # CDPATH.
6902 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6903
6904
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.
6910 as_fn_error ()
6911 {
6912   as_status=$1; test $as_status -eq 0 && as_status=1
6913   if test "$4"; then
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
6916   fi
6917   $as_echo "$as_me: error: $2" >&2
6918   as_fn_exit $as_status
6919 } # as_fn_error
6920
6921
6922 # as_fn_set_status STATUS
6923 # -----------------------
6924 # Set $? to STATUS, without forking.
6925 as_fn_set_status ()
6926 {
6927   return $1
6928 } # as_fn_set_status
6929
6930 # as_fn_exit STATUS
6931 # -----------------
6932 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6933 as_fn_exit ()
6934 {
6935   set +e
6936   as_fn_set_status $1
6937   exit $1
6938 } # as_fn_exit
6939
6940 # as_fn_unset VAR
6941 # ---------------
6942 # Portably unset VAR.
6943 as_fn_unset ()
6944 {
6945   { eval $1=; unset $1;}
6946 }
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
6953 # implementations.
6954 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6955   eval 'as_fn_append ()
6956   {
6957     eval $1+=\$2
6958   }'
6959 else
6960   as_fn_append ()
6961   {
6962     eval $1=\$$1\$2
6963   }
6964 fi # as_fn_append
6965
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 ()
6973   {
6974     as_val=$(( $* ))
6975   }'
6976 else
6977   as_fn_arith ()
6978   {
6979     as_val=`expr "$@" || test $? -eq 1`
6980   }
6981 fi # as_fn_arith
6982
6983
6984 if expr a : '\(a\)' >/dev/null 2>&1 &&
6985    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6986   as_expr=expr
6987 else
6988   as_expr=false
6989 fi
6990
6991 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6992   as_basename=basename
6993 else
6994   as_basename=false
6995 fi
6996
6997 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6998   as_dirname=dirname
6999 else
7000   as_dirname=false
7001 fi
7002
7003 as_me=`$as_basename -- "$0" ||
7004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7005          X"$0" : 'X\(//\)$' \| \
7006          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7007 $as_echo X/"$0" |
7008     sed '/^.*\/\([^/][^/]*\)\/*$/{
7009             s//\1/
7010             q
7011           }
7012           /^X\/\(\/\/\)$/{
7013             s//\1/
7014             q
7015           }
7016           /^X\/\(\/\).*/{
7017             s//\1/
7018             q
7019           }
7020           s/.*/./; q'`
7021
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
7028
7029 ECHO_C= ECHO_N= ECHO_T=
7030 case `echo -n x` in #(((((
7031 -n*)
7032   case `echo 'xy\c'` in
7033   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7034   xy)  ECHO_C='\c';;
7035   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
7036        ECHO_T=' ';;
7037   esac;;
7038 *)
7039   ECHO_N='-n';;
7040 esac
7041
7042 rm -f conf$$ conf$$.exe conf$$.file
7043 if test -d conf$$.dir; then
7044   rm -f conf$$.dir/conf$$.file
7045 else
7046   rm -f conf$$.dir
7047   mkdir conf$$.dir 2>/dev/null
7048 fi
7049 if (echo >conf$$.file) 2>/dev/null; then
7050   if ln -s conf$$.file conf$$ 2>/dev/null; then
7051     as_ln_s='ln -s'
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 ||
7057       as_ln_s='cp -p'
7058   elif ln conf$$.file conf$$ 2>/dev/null; then
7059     as_ln_s=ln
7060   else
7061     as_ln_s='cp -p'
7062   fi
7063 else
7064   as_ln_s='cp -p'
7065 fi
7066 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7067 rmdir conf$$.dir 2>/dev/null
7068
7069
7070 # as_fn_mkdir_p
7071 # -------------
7072 # Create "$as_dir" as a directory, including parents if necessary.
7073 as_fn_mkdir_p ()
7074 {
7075
7076   case $as_dir in #(
7077   -*) as_dir=./$as_dir;;
7078   esac
7079   test -d "$as_dir" || eval $as_mkdir_p || {
7080     as_dirs=
7081     while :; do
7082       case $as_dir in #(
7083       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7084       *) as_qdir=$as_dir;;
7085       esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7094             s//\1/
7095             q
7096           }
7097           /^X\(\/\/\)[^/].*/{
7098             s//\1/
7099             q
7100           }
7101           /^X\(\/\/\)$/{
7102             s//\1/
7103             q
7104           }
7105           /^X\(\/\).*/{
7106             s//\1/
7107             q
7108           }
7109           s/.*/./; q'`
7110       test -d "$as_dir" && break
7111     done
7112     test -z "$as_dirs" || eval "mkdir $as_dirs"
7113   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7114
7115
7116 } # as_fn_mkdir_p
7117 if mkdir -p . 2>/dev/null; then
7118   as_mkdir_p='mkdir -p "$as_dir"'
7119 else
7120   test -d ./-p && rmdir ./-p
7121   as_mkdir_p=false
7122 fi
7123
7124 if test -x / >/dev/null 2>&1; then
7125   as_test_x='test -x'
7126 else
7127   if ls -dL / >/dev/null 2>&1; then
7128     as_ls_L_option=L
7129   else
7130     as_ls_L_option=
7131   fi
7132   as_test_x='
7133     eval sh -c '\''
7134       if test -d "$1"; then
7135         test -d "$1/.";
7136       else
7137         case $1 in #(
7138         -*)set "./$1";;
7139         esac;
7140         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7141         ???[sx]*):;;*)false;;esac;fi
7142     '\'' sh
7143   '
7144 fi
7145 as_executable_p=$as_test_x
7146
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'"
7149
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'"
7152
7153
7154 exec 6>&1
7155 ## ----------------------------------- ##
7156 ## Main body of $CONFIG_STATUS script. ##
7157 ## ----------------------------------- ##
7158 _ASEOF
7159 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7160
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.
7165 ac_log="
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
7168
7169   CONFIG_FILES    = $CONFIG_FILES
7170   CONFIG_HEADERS  = $CONFIG_HEADERS
7171   CONFIG_LINKS    = $CONFIG_LINKS
7172   CONFIG_COMMANDS = $CONFIG_COMMANDS
7173   $ $0 $@
7174
7175 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7176 "
7177
7178 _ACEOF
7179
7180 case $ac_config_files in *"
7181 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7182 esac
7183
7184
7185
7186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7187 # Files that config.status was made for.
7188 config_files="$ac_config_files"
7189
7190 _ACEOF
7191
7192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7193 ac_cs_usage="\
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.
7197
7198 Usage: $0 [OPTION]... [TAG]...
7199
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
7209
7210 Configuration files:
7211 $config_files
7212
7213 Report bugs to <git@vger.kernel.org>."
7214
7215 _ACEOF
7216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7217 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7218 ac_cs_version="\\
7219 git config.status 1.7.10.4
7220 configured by $0, generated by GNU Autoconf 2.67,
7221   with options \\"\$ac_cs_config\\"
7222
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."
7226
7227 ac_pwd='$ac_pwd'
7228 srcdir='$srcdir'
7229 test -n "\$AWK" || AWK=awk
7230 _ACEOF
7231
7232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7233 # The default lists apply if the user does not specify any file.
7234 ac_need_defaults=:
7235 while test $# != 0
7236 do
7237   case $1 in
7238   --*=?*)
7239     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7240     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7241     ac_shift=:
7242     ;;
7243   --*=)
7244     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7245     ac_optarg=
7246     ac_shift=:
7247     ;;
7248   *)
7249     ac_option=$1
7250     ac_optarg=$2
7251     ac_shift=shift
7252     ;;
7253   esac
7254
7255   case $ac_option in
7256   # Handling of the options.
7257   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7258     ac_cs_recheck=: ;;
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 )
7264     debug=: ;;
7265   --file | --fil | --fi | --f )
7266     $ac_shift
7267     case $ac_optarg in
7268     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7269     '') as_fn_error $? "missing file argument" ;;
7270     esac
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)
7277     ac_cs_silent=: ;;
7278
7279   # This is an error.
7280   -*) as_fn_error $? "unrecognized option: \`$1'
7281 Try \`$0 --help' for more information." ;;
7282
7283   *) as_fn_append ac_config_targets " $1"
7284      ac_need_defaults=false ;;
7285
7286   esac
7287   shift
7288 done
7289
7290 ac_configure_extra_args=
7291
7292 if $ac_cs_silent; then
7293   exec 6>/dev/null
7294   ac_configure_extra_args="$ac_configure_extra_args --silent"
7295 fi
7296
7297 _ACEOF
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
7301   shift
7302   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7303   CONFIG_SHELL='$SHELL'
7304   export CONFIG_SHELL
7305   exec "\$@"
7306 fi
7307
7308 _ACEOF
7309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7310 exec 5>>config.log
7311 {
7312   echo
7313   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7314 ## Running $as_me. ##
7315 _ASBOX
7316   $as_echo "$ac_log"
7317 } >&5
7318
7319 _ACEOF
7320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7321 _ACEOF
7322
7323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7324
7325 # Handling of arguments.
7326 for ac_config_target in $ac_config_targets
7327 do
7328   case $ac_config_target in
7329     ""${config_file}"") CONFIG_FILES="$CONFIG_FILES "${config_file}":"${config_in}":"${config_append}"" ;;
7330
7331   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
7332   esac
7333 done
7334
7335
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
7342 fi
7343
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'.
7350 $debug ||
7351 {
7352   tmp=
7353   trap 'exit_status=$?
7354   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7355 ' 0
7356   trap 'as_fn_exit 1' 1 2 13 15
7357 }
7358 # Create a (secure) tmp directory for tmp files.
7359
7360 {
7361   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7362   test -n "$tmp" && test -d "$tmp"
7363 }  ||
7364 {
7365   tmp=./conf$$-$RANDOM
7366   (umask 077 && mkdir "$tmp")
7367 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7368
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
7373
7374
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\'
7381 fi
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
7384   ac_cs_awk_cr='\\r'
7385 else
7386   ac_cs_awk_cr=$ac_cr
7387 fi
7388
7389 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7390 _ACEOF
7391
7392
7393 {
7394   echo "cat >conf$$subs.awk <<_ACEOF" &&
7395   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7396   echo "_ACEOF"
7397 } >conf$$subs.sh ||
7398   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7399 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7400 ac_delim='%!_!# '
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
7404
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
7407     break
7408   elif $ac_last_try; then
7409     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7410   else
7411     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7412   fi
7413 done
7414 rm -f conf$$subs.sh
7415
7416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7417 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7418 _ACEOF
7419 sed -n '
7420 h
7421 s/^/S["/; s/!.*/"]=/
7422 p
7423 g
7424 s/^[^!]*!//
7425 :repl
7426 t repl
7427 s/'"$ac_delim"'$//
7428 t delim
7429 :nl
7430 h
7431 s/\(.\{148\}\)..*/\1/
7432 t more1
7433 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7434 p
7435 n
7436 b repl
7437 :more1
7438 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7439 p
7440 g
7441 s/.\{148\}//
7442 t nl
7443 :delim
7444 h
7445 s/\(.\{148\}\)..*/\1/
7446 t more2
7447 s/["\\]/\\&/g; s/^/"/; s/$/"/
7448 p
7449 b
7450 :more2
7451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7452 p
7453 g
7454 s/.\{148\}//
7455 t delim
7456 ' <conf$$subs.awk | sed '
7457 /^[^""]/{
7458   N
7459   s/\n//
7460 }
7461 ' >>$CONFIG_STATUS || ac_write_fail=1
7462 rm -f conf$$subs.awk
7463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7464 _ACAWK
7465 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7466   for (key in S) S_is_set[key] = 1
7467   FS = "\a"
7468
7469 }
7470 {
7471   line = $ 0
7472   nfields = split(line, field, "@")
7473   substed = 0
7474   len = length(field[1])
7475   for (i = 2; i < nfields; i++) {
7476     key = field[i]
7477     keylen = length(key)
7478     if (S_is_set[key]) {
7479       value = S[key]
7480       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7481       len += length(value) + length(field[++i])
7482       substed = 1
7483     } else
7484       len += 1 + keylen
7485   }
7486
7487   print line
7488 }
7489
7490 _ACAWK
7491 _ACEOF
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"
7495 else
7496   cat
7497 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7498   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7499 _ACEOF
7500
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[        ]*=[    ]*/{
7507 h
7508 s///
7509 s/^/:/
7510 s/[      ]*$/:/
7511 s/:\$(srcdir):/:/g
7512 s/:\${srcdir}:/:/g
7513 s/:@srcdir@:/:/g
7514 s/^:*//
7515 s/:*$//
7516 x
7517 s/\(=[   ]*\).*/\1/
7518 G
7519 s/\n//
7520 s/^[^=]*=[       ]*$//
7521 }'
7522 fi
7523
7524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7525 fi # test -n "$CONFIG_FILES"
7526
7527
7528 eval set X "  :F $CONFIG_FILES      "
7529 shift
7530 for ac_tag
7531 do
7532   case $ac_tag in
7533   :[FHLC]) ac_mode=$ac_tag; continue;;
7534   esac
7535   case $ac_mode$ac_tag in
7536   :[FHL]*:*);;
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;;
7540   esac
7541   ac_save_IFS=$IFS
7542   IFS=:
7543   set x $ac_tag
7544   IFS=$ac_save_IFS
7545   shift
7546   ac_file=$1
7547   shift
7548
7549   case $ac_mode in
7550   :L) ac_source=$1;;
7551   :[FH])
7552     ac_file_inputs=
7553     for ac_f
7554     do
7555       case $ac_f 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 `:'.
7560          test -f "$ac_f" ||
7561            case $ac_f in
7562            [\\/$]*) false;;
7563            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7564            esac ||
7565            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
7566       esac
7567       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7568       as_fn_append ac_file_inputs " '$ac_f'"
7569     done
7570
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'
7576         `' by configure.'
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;}
7581     fi
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;;
7588     esac
7589
7590     case $ac_tag in
7591     *:-:* | *:-) cat >"$tmp/stdin" \
7592       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
7593     esac
7594     ;;
7595   esac
7596
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7604             s//\1/
7605             q
7606           }
7607           /^X\(\/\/\)[^/].*/{
7608             s//\1/
7609             q
7610           }
7611           /^X\(\/\/\)$/{
7612             s//\1/
7613             q
7614           }
7615           /^X\(\/\).*/{
7616             s//\1/
7617             q
7618           }
7619           s/.*/./; q'`
7620   as_dir="$ac_dir"; as_fn_mkdir_p
7621   ac_builddir=.
7622
7623 case "$ac_dir" in
7624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7625 *)
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/ ;;
7632   esac ;;
7633 esac
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
7638
7639 case $srcdir in
7640   .)  # We are building in place.
7641     ac_srcdir=.
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 ;;
7648   *) # Relative name.
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 ;;
7652 esac
7653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7654
7655
7656   case $ac_mode in
7657   :F)
7658   #
7659   # CONFIG_FILE
7660   #
7661
7662 _ACEOF
7663
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=
7668 ac_sed_dataroot='
7669 /datarootdir/ {
7670   p
7671   q
7672 }
7673 /@datadir@/p
7674 /@docdir@/p
7675 /@infodir@/p
7676 /@localedir@/p
7677 /@mandir@/p'
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;}
7683 _ACEOF
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' ;;
7692 esac
7693 _ACEOF
7694
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
7700 $extrasub
7701 _ACEOF
7702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7703 :t
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
7716 "
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
7719
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;}
7727
7728   rm -f "$tmp/stdin"
7729   case $ac_file in
7730   -) cat "$tmp/out" && rm -f "$tmp/out";;
7731   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7732   esac \
7733   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7734  ;;
7735
7736
7737
7738   esac
7739
7740 done # for ac_tag
7741
7742
7743 as_fn_exit 0
7744 _ACEOF
7745 ac_clean_files=$ac_clean_files_save
7746
7747 test $ac_write_fail = 0 ||
7748   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7749
7750
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
7760   ac_cs_success=:
7761   ac_config_status_args=
7762   test "$silent" = yes &&
7763     ac_config_status_args="$ac_config_status_args --quiet"
7764   exec 5>/dev/null
7765   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7766   exec 5>>config.log
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
7770 fi
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;}
7774 fi
7775
7776
7777
7778 ## Cleanup
7779 rm -f "${config_append}"