4c01b0aa7d20f2fd62480507c602258e98f23fd2
[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.8.0.
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.8.0'
556 PACKAGE_STRING='git 1.8.0'
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 EGREP
600 GREP
601 CPP
602 ASCIIDOC
603 TCLTK_PATH
604 DIFF
605 TAR
606 ac_ct_AR
607 AR
608 OBJEXT
609 EXEEXT
610 ac_ct_CC
611 CPPFLAGS
612 LDFLAGS
613 CFLAGS
614 CC
615 target_alias
616 host_alias
617 build_alias
618 LIBS
619 ECHO_T
620 ECHO_N
621 ECHO_C
622 DEFS
623 mandir
624 localedir
625 libdir
626 psdir
627 pdfdir
628 dvidir
629 htmldir
630 infodir
631 docdir
632 oldincludedir
633 includedir
634 localstatedir
635 sharedstatedir
636 sysconfdir
637 datadir
638 datarootdir
639 libexecdir
640 sbindir
641 bindir
642 program_transform_name
643 prefix
644 exec_prefix
645 PACKAGE_URL
646 PACKAGE_BUGREPORT
647 PACKAGE_STRING
648 PACKAGE_VERSION
649 PACKAGE_TARNAME
650 PACKAGE_NAME
651 PATH_SEPARATOR
652 SHELL'
653 ac_subst_files=''
654 ac_user_opts='
655 enable_option_checking
656 with_sane_tool_path
657 with_lib
658 enable_pthreads
659 enable_jsmin
660 enable_cssmin
661 with_openssl
662 with_libpcre
663 with_curl
664 with_expat
665 with_iconv
666 with_gitconfig
667 with_gitattributes
668 with_pager
669 with_editor
670 with_shell
671 with_perl
672 with_python
673 with_zlib
674 with_tcltk
675 '
676       ac_precious_vars='build_alias
677 host_alias
678 target_alias
679 CC
680 CFLAGS
681 LDFLAGS
682 LIBS
683 CPPFLAGS
684 CPP'
685
686
687 # Initialize some variables set by options.
688 ac_init_help=
689 ac_init_version=false
690 ac_unrecognized_opts=
691 ac_unrecognized_sep=
692 # The variables have the same names as the options, with
693 # dashes changed to underlines.
694 cache_file=/dev/null
695 exec_prefix=NONE
696 no_create=
697 no_recursion=
698 prefix=NONE
699 program_prefix=NONE
700 program_suffix=NONE
701 program_transform_name=s,x,x,
702 silent=
703 site=
704 srcdir=
705 verbose=
706 x_includes=NONE
707 x_libraries=NONE
708
709 # Installation directory options.
710 # These are left unexpanded so users can "make install exec_prefix=/foo"
711 # and all the variables that are supposed to be based on exec_prefix
712 # by default will actually change.
713 # Use braces instead of parens because sh, perl, etc. also accept them.
714 # (The list follows the same order as the GNU Coding Standards.)
715 bindir='${exec_prefix}/bin'
716 sbindir='${exec_prefix}/sbin'
717 libexecdir='${exec_prefix}/libexec'
718 datarootdir='${prefix}/share'
719 datadir='${datarootdir}'
720 sysconfdir='${prefix}/etc'
721 sharedstatedir='${prefix}/com'
722 localstatedir='${prefix}/var'
723 includedir='${prefix}/include'
724 oldincludedir='/usr/include'
725 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
726 infodir='${datarootdir}/info'
727 htmldir='${docdir}'
728 dvidir='${docdir}'
729 pdfdir='${docdir}'
730 psdir='${docdir}'
731 libdir='${exec_prefix}/lib'
732 localedir='${datarootdir}/locale'
733 mandir='${datarootdir}/man'
734
735 ac_prev=
736 ac_dashdash=
737 for ac_option
738 do
739   # If the previous option needs an argument, assign it.
740   if test -n "$ac_prev"; then
741     eval $ac_prev=\$ac_option
742     ac_prev=
743     continue
744   fi
745
746   case $ac_option in
747   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
748   *=)   ac_optarg= ;;
749   *)    ac_optarg=yes ;;
750   esac
751
752   # Accept the important Cygnus configure options, so we can diagnose typos.
753
754   case $ac_dashdash$ac_option in
755   --)
756     ac_dashdash=yes ;;
757
758   -bindir | --bindir | --bindi | --bind | --bin | --bi)
759     ac_prev=bindir ;;
760   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
761     bindir=$ac_optarg ;;
762
763   -build | --build | --buil | --bui | --bu)
764     ac_prev=build_alias ;;
765   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
766     build_alias=$ac_optarg ;;
767
768   -cache-file | --cache-file | --cache-fil | --cache-fi \
769   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
770     ac_prev=cache_file ;;
771   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
772   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
773     cache_file=$ac_optarg ;;
774
775   --config-cache | -C)
776     cache_file=config.cache ;;
777
778   -datadir | --datadir | --datadi | --datad)
779     ac_prev=datadir ;;
780   -datadir=* | --datadir=* | --datadi=* | --datad=*)
781     datadir=$ac_optarg ;;
782
783   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
784   | --dataroo | --dataro | --datar)
785     ac_prev=datarootdir ;;
786   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
787   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
788     datarootdir=$ac_optarg ;;
789
790   -disable-* | --disable-*)
791     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
792     # Reject names that are not valid shell variable names.
793     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
794       as_fn_error $? "invalid feature name: $ac_useropt"
795     ac_useropt_orig=$ac_useropt
796     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
797     case $ac_user_opts in
798       *"
799 "enable_$ac_useropt"
800 "*) ;;
801       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
802          ac_unrecognized_sep=', ';;
803     esac
804     eval enable_$ac_useropt=no ;;
805
806   -docdir | --docdir | --docdi | --doc | --do)
807     ac_prev=docdir ;;
808   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
809     docdir=$ac_optarg ;;
810
811   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
812     ac_prev=dvidir ;;
813   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
814     dvidir=$ac_optarg ;;
815
816   -enable-* | --enable-*)
817     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
818     # Reject names that are not valid shell variable names.
819     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
820       as_fn_error $? "invalid feature name: $ac_useropt"
821     ac_useropt_orig=$ac_useropt
822     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
823     case $ac_user_opts in
824       *"
825 "enable_$ac_useropt"
826 "*) ;;
827       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
828          ac_unrecognized_sep=', ';;
829     esac
830     eval enable_$ac_useropt=\$ac_optarg ;;
831
832   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
833   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
834   | --exec | --exe | --ex)
835     ac_prev=exec_prefix ;;
836   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
837   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
838   | --exec=* | --exe=* | --ex=*)
839     exec_prefix=$ac_optarg ;;
840
841   -gas | --gas | --ga | --g)
842     # Obsolete; use --with-gas.
843     with_gas=yes ;;
844
845   -help | --help | --hel | --he | -h)
846     ac_init_help=long ;;
847   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
848     ac_init_help=recursive ;;
849   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
850     ac_init_help=short ;;
851
852   -host | --host | --hos | --ho)
853     ac_prev=host_alias ;;
854   -host=* | --host=* | --hos=* | --ho=*)
855     host_alias=$ac_optarg ;;
856
857   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
858     ac_prev=htmldir ;;
859   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
860   | --ht=*)
861     htmldir=$ac_optarg ;;
862
863   -includedir | --includedir | --includedi | --included | --include \
864   | --includ | --inclu | --incl | --inc)
865     ac_prev=includedir ;;
866   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
867   | --includ=* | --inclu=* | --incl=* | --inc=*)
868     includedir=$ac_optarg ;;
869
870   -infodir | --infodir | --infodi | --infod | --info | --inf)
871     ac_prev=infodir ;;
872   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
873     infodir=$ac_optarg ;;
874
875   -libdir | --libdir | --libdi | --libd)
876     ac_prev=libdir ;;
877   -libdir=* | --libdir=* | --libdi=* | --libd=*)
878     libdir=$ac_optarg ;;
879
880   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
881   | --libexe | --libex | --libe)
882     ac_prev=libexecdir ;;
883   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
884   | --libexe=* | --libex=* | --libe=*)
885     libexecdir=$ac_optarg ;;
886
887   -localedir | --localedir | --localedi | --localed | --locale)
888     ac_prev=localedir ;;
889   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
890     localedir=$ac_optarg ;;
891
892   -localstatedir | --localstatedir | --localstatedi | --localstated \
893   | --localstate | --localstat | --localsta | --localst | --locals)
894     ac_prev=localstatedir ;;
895   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
896   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
897     localstatedir=$ac_optarg ;;
898
899   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
900     ac_prev=mandir ;;
901   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
902     mandir=$ac_optarg ;;
903
904   -nfp | --nfp | --nf)
905     # Obsolete; use --without-fp.
906     with_fp=no ;;
907
908   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
909   | --no-cr | --no-c | -n)
910     no_create=yes ;;
911
912   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
913   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
914     no_recursion=yes ;;
915
916   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
917   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
918   | --oldin | --oldi | --old | --ol | --o)
919     ac_prev=oldincludedir ;;
920   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
921   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
922   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
923     oldincludedir=$ac_optarg ;;
924
925   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
926     ac_prev=prefix ;;
927   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
928     prefix=$ac_optarg ;;
929
930   -program-prefix | --program-prefix | --program-prefi | --program-pref \
931   | --program-pre | --program-pr | --program-p)
932     ac_prev=program_prefix ;;
933   -program-prefix=* | --program-prefix=* | --program-prefi=* \
934   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
935     program_prefix=$ac_optarg ;;
936
937   -program-suffix | --program-suffix | --program-suffi | --program-suff \
938   | --program-suf | --program-su | --program-s)
939     ac_prev=program_suffix ;;
940   -program-suffix=* | --program-suffix=* | --program-suffi=* \
941   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
942     program_suffix=$ac_optarg ;;
943
944   -program-transform-name | --program-transform-name \
945   | --program-transform-nam | --program-transform-na \
946   | --program-transform-n | --program-transform- \
947   | --program-transform | --program-transfor \
948   | --program-transfo | --program-transf \
949   | --program-trans | --program-tran \
950   | --progr-tra | --program-tr | --program-t)
951     ac_prev=program_transform_name ;;
952   -program-transform-name=* | --program-transform-name=* \
953   | --program-transform-nam=* | --program-transform-na=* \
954   | --program-transform-n=* | --program-transform-=* \
955   | --program-transform=* | --program-transfor=* \
956   | --program-transfo=* | --program-transf=* \
957   | --program-trans=* | --program-tran=* \
958   | --progr-tra=* | --program-tr=* | --program-t=*)
959     program_transform_name=$ac_optarg ;;
960
961   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
962     ac_prev=pdfdir ;;
963   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
964     pdfdir=$ac_optarg ;;
965
966   -psdir | --psdir | --psdi | --psd | --ps)
967     ac_prev=psdir ;;
968   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
969     psdir=$ac_optarg ;;
970
971   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
972   | -silent | --silent | --silen | --sile | --sil)
973     silent=yes ;;
974
975   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
976     ac_prev=sbindir ;;
977   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
978   | --sbi=* | --sb=*)
979     sbindir=$ac_optarg ;;
980
981   -sharedstatedir | --sharedstatedir | --sharedstatedi \
982   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
983   | --sharedst | --shareds | --shared | --share | --shar \
984   | --sha | --sh)
985     ac_prev=sharedstatedir ;;
986   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
987   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
988   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
989   | --sha=* | --sh=*)
990     sharedstatedir=$ac_optarg ;;
991
992   -site | --site | --sit)
993     ac_prev=site ;;
994   -site=* | --site=* | --sit=*)
995     site=$ac_optarg ;;
996
997   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
998     ac_prev=srcdir ;;
999   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1000     srcdir=$ac_optarg ;;
1001
1002   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1003   | --syscon | --sysco | --sysc | --sys | --sy)
1004     ac_prev=sysconfdir ;;
1005   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1006   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1007     sysconfdir=$ac_optarg ;;
1008
1009   -target | --target | --targe | --targ | --tar | --ta | --t)
1010     ac_prev=target_alias ;;
1011   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1012     target_alias=$ac_optarg ;;
1013
1014   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1015     verbose=yes ;;
1016
1017   -version | --version | --versio | --versi | --vers | -V)
1018     ac_init_version=: ;;
1019
1020   -with-* | --with-*)
1021     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1022     # Reject names that are not valid shell variable names.
1023     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024       as_fn_error $? "invalid package name: $ac_useropt"
1025     ac_useropt_orig=$ac_useropt
1026     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027     case $ac_user_opts in
1028       *"
1029 "with_$ac_useropt"
1030 "*) ;;
1031       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1032          ac_unrecognized_sep=', ';;
1033     esac
1034     eval with_$ac_useropt=\$ac_optarg ;;
1035
1036   -without-* | --without-*)
1037     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1038     # Reject names that are not valid shell variable names.
1039     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040       as_fn_error $? "invalid package name: $ac_useropt"
1041     ac_useropt_orig=$ac_useropt
1042     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043     case $ac_user_opts in
1044       *"
1045 "with_$ac_useropt"
1046 "*) ;;
1047       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1048          ac_unrecognized_sep=', ';;
1049     esac
1050     eval with_$ac_useropt=no ;;
1051
1052   --x)
1053     # Obsolete; use --with-x.
1054     with_x=yes ;;
1055
1056   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057   | --x-incl | --x-inc | --x-in | --x-i)
1058     ac_prev=x_includes ;;
1059   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061     x_includes=$ac_optarg ;;
1062
1063   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1064   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065     ac_prev=x_libraries ;;
1066   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068     x_libraries=$ac_optarg ;;
1069
1070   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1071 Try \`$0 --help' for more information"
1072     ;;
1073
1074   *=*)
1075     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1076     # Reject names that are not valid shell variable names.
1077     case $ac_envvar in #(
1078       '' | [0-9]* | *[!_$as_cr_alnum]* )
1079       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1080     esac
1081     eval $ac_envvar=\$ac_optarg
1082     export $ac_envvar ;;
1083
1084   *)
1085     # FIXME: should be removed in autoconf 3.0.
1086     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090     ;;
1091
1092   esac
1093 done
1094
1095 if test -n "$ac_prev"; then
1096   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097   as_fn_error $? "missing argument to $ac_option"
1098 fi
1099
1100 if test -n "$ac_unrecognized_opts"; then
1101   case $enable_option_checking in
1102     no) ;;
1103     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1104     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1105   esac
1106 fi
1107
1108 # Check all directory arguments for consistency.
1109 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1110                 datadir sysconfdir sharedstatedir localstatedir includedir \
1111                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1112                 libdir localedir mandir
1113 do
1114   eval ac_val=\$$ac_var
1115   # Remove trailing slashes.
1116   case $ac_val in
1117     */ )
1118       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1119       eval $ac_var=\$ac_val;;
1120   esac
1121   # Be sure to have absolute directory names.
1122   case $ac_val in
1123     [\\/$]* | ?:[\\/]* )  continue;;
1124     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1125   esac
1126   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1127 done
1128
1129 # There might be people who depend on the old broken behavior: `$host'
1130 # used to hold the argument of --host etc.
1131 # FIXME: To remove some day.
1132 build=$build_alias
1133 host=$host_alias
1134 target=$target_alias
1135
1136 # FIXME: To remove some day.
1137 if test "x$host_alias" != x; then
1138   if test "x$build_alias" = x; then
1139     cross_compiling=maybe
1140     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1141     If a cross compiler is detected then cross compile mode will be used" >&2
1142   elif test "x$build_alias" != "x$host_alias"; then
1143     cross_compiling=yes
1144   fi
1145 fi
1146
1147 ac_tool_prefix=
1148 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1149
1150 test "$silent" = yes && exec 6>/dev/null
1151
1152
1153 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154 ac_ls_di=`ls -di .` &&
1155 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156   as_fn_error $? "working directory cannot be determined"
1157 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1158   as_fn_error $? "pwd does not report name of working directory"
1159
1160
1161 # Find the source files, if location was not specified.
1162 if test -z "$srcdir"; then
1163   ac_srcdir_defaulted=yes
1164   # Try the directory containing this script, then the parent directory.
1165   ac_confdir=`$as_dirname -- "$as_myself" ||
1166 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1167          X"$as_myself" : 'X\(//\)[^/]' \| \
1168          X"$as_myself" : 'X\(//\)$' \| \
1169          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1170 $as_echo X"$as_myself" |
1171     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1172             s//\1/
1173             q
1174           }
1175           /^X\(\/\/\)[^/].*/{
1176             s//\1/
1177             q
1178           }
1179           /^X\(\/\/\)$/{
1180             s//\1/
1181             q
1182           }
1183           /^X\(\/\).*/{
1184             s//\1/
1185             q
1186           }
1187           s/.*/./; q'`
1188   srcdir=$ac_confdir
1189   if test ! -r "$srcdir/$ac_unique_file"; then
1190     srcdir=..
1191   fi
1192 else
1193   ac_srcdir_defaulted=no
1194 fi
1195 if test ! -r "$srcdir/$ac_unique_file"; then
1196   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1197   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1198 fi
1199 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1200 ac_abs_confdir=`(
1201         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1202         pwd)`
1203 # When building in place, set srcdir=.
1204 if test "$ac_abs_confdir" = "$ac_pwd"; then
1205   srcdir=.
1206 fi
1207 # Remove unnecessary trailing slashes from srcdir.
1208 # Double slashes in file names in object file debugging info
1209 # mess up M-x gdb in Emacs.
1210 case $srcdir in
1211 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212 esac
1213 for ac_var in $ac_precious_vars; do
1214   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1215   eval ac_env_${ac_var}_value=\$${ac_var}
1216   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1217   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1218 done
1219
1220 #
1221 # Report the --help message.
1222 #
1223 if test "$ac_init_help" = "long"; then
1224   # Omit some internal or obsolete options to make the list less imposing.
1225   # This message is too long to be a string in the A/UX 3.1 sh.
1226   cat <<_ACEOF
1227 \`configure' configures git 1.8.0 to adapt to many kinds of systems.
1228
1229 Usage: $0 [OPTION]... [VAR=VALUE]...
1230
1231 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232 VAR=VALUE.  See below for descriptions of some of the useful variables.
1233
1234 Defaults for the options are specified in brackets.
1235
1236 Configuration:
1237   -h, --help              display this help and exit
1238       --help=short        display options specific to this package
1239       --help=recursive    display the short help of all the included packages
1240   -V, --version           display version information and exit
1241   -q, --quiet, --silent   do not print \`checking ...' messages
1242       --cache-file=FILE   cache test results in FILE [disabled]
1243   -C, --config-cache      alias for \`--cache-file=config.cache'
1244   -n, --no-create         do not create output files
1245       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1246
1247 Installation directories:
1248   --prefix=PREFIX         install architecture-independent files in PREFIX
1249                           [$ac_default_prefix]
1250   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1251                           [PREFIX]
1252
1253 By default, \`make install' will install all the files in
1254 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1255 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256 for instance \`--prefix=\$HOME'.
1257
1258 For better control, use the options below.
1259
1260 Fine tuning of the installation directories:
1261   --bindir=DIR            user executables [EPREFIX/bin]
1262   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1263   --libexecdir=DIR        program executables [EPREFIX/libexec]
1264   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1265   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1266   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1267   --libdir=DIR            object code libraries [EPREFIX/lib]
1268   --includedir=DIR        C header files [PREFIX/include]
1269   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1270   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1271   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1272   --infodir=DIR           info documentation [DATAROOTDIR/info]
1273   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1274   --mandir=DIR            man documentation [DATAROOTDIR/man]
1275   --docdir=DIR            documentation root [DATAROOTDIR/doc/git]
1276   --htmldir=DIR           html documentation [DOCDIR]
1277   --dvidir=DIR            dvi documentation [DOCDIR]
1278   --pdfdir=DIR            pdf documentation [DOCDIR]
1279   --psdir=DIR             ps documentation [DOCDIR]
1280 _ACEOF
1281
1282   cat <<\_ACEOF
1283 _ACEOF
1284 fi
1285
1286 if test -n "$ac_init_help"; then
1287   case $ac_init_help in
1288      short | recursive ) echo "Configuration of git 1.8.0:";;
1289    esac
1290   cat <<\_ACEOF
1291
1292 Optional Features:
1293   --disable-option-checking  ignore unrecognized --enable/--with options
1294   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1295   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1296   --enable-pthreads=FLAGS FLAGS is the value to pass to the compiler to enable
1297                           POSIX Threads. The default if FLAGS is not specified
1298                           is to try first -pthread and then -lpthread.
1299                           --without-pthreads will disable threading.
1300   --enable-jsmin=PATH     PATH is the name of a JavaScript minifier or the
1301                           absolute path to one.
1302   --enable-cssmin=PATH    PATH is the name of a CSS minifier or the absolute
1303                           path to one.
1304
1305 Optional Packages:
1306   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1307   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1308   --with-sane-tool-path=DIR-1[:DIR-2...:DIR-n]
1309                           Directories to prepend to PATH in build system and
1310                           generated scripts
1311   --with-lib=ARG          ARG specifies alternative name for lib directory
1312   --with-openssl          use OpenSSL library (default is YES)
1313                           ARG can be prefix for openssl library and headers
1314   --with-libpcre          support Perl-compatible regexes (default is NO)
1315                           ARG can be also prefix for libpcre library and
1316                           headers
1317   --with-curl             support http(s):// transports (default is YES)
1318                           ARG can be also prefix for curl library and headers
1319   --with-expat            support git-push using http:// and https://
1320                           transports via WebDAV (default is YES)
1321                           ARG can be also prefix for expat library and headers
1322   --without-iconv         if your architecture doesn't properly support iconv
1323   --with-iconv=PATH       PATH is prefix for libiconv library and headers
1324                           used only if you need linking with libiconv
1325   --with-gitconfig=VALUE  Use VALUE instead of /etc/gitconfig as the global
1326                           git configuration file. If VALUE is not fully
1327                           qualified it will be interpreted as a path relative
1328                           to the computed prefix at runtime.
1329   --with-gitattributes=VALUE
1330                           Use VALUE instead of /etc/gitattributes as the
1331                           global git attributes file. If VALUE is not fully
1332                           qualified it will be interpreted as a path relative
1333                           to the computed prefix at runtime.
1334   --with-pager=VALUE      Use VALUE as the fall-back pager instead of 'less'.
1335                           This is used by things like 'git log' when the user
1336                           does not specify a pager to use through alternate
1337                           methods. eg: /usr/bin/pager
1338   --with-editor=VALUE     Use VALUE as the fall-back editor instead of 'vi'.
1339                           This is used by things like 'git commit' when the
1340                           user does not specify a preferred editor through
1341                           other methods. eg: /usr/bin/editor
1342   --with-shell=PATH       provide PATH to shell
1343   --with-perl=PATH        provide PATH to perl
1344   --with-python=PATH      provide PATH to python
1345   --with-zlib=PATH        provide PATH to zlib
1346   --with-tcltk            use Tcl/Tk GUI (default is YES)
1347                           ARG is the full path to the Tcl/Tk interpreter.
1348                           Bare --with-tcltk will make the GUI part only if
1349                           Tcl/Tk interpreter will be found in a system.
1350
1351 Some influential environment variables:
1352   CC          C compiler command
1353   CFLAGS      C compiler flags
1354   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1355               nonstandard directory <lib dir>
1356   LIBS        libraries to pass to the linker, e.g. -l<library>
1357   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1358               you have headers in a nonstandard directory <include dir>
1359   CPP         C preprocessor
1360
1361 Use these variables to override the choices made by `configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1363
1364 Report bugs to <git@vger.kernel.org>.
1365 _ACEOF
1366 ac_status=$?
1367 fi
1368
1369 if test "$ac_init_help" = "recursive"; then
1370   # If there are subdirs, report their specific --help.
1371   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372     test -d "$ac_dir" ||
1373       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1374       continue
1375     ac_builddir=.
1376
1377 case "$ac_dir" in
1378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 *)
1380   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1381   # A ".." for each directory in $ac_dir_suffix.
1382   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1383   case $ac_top_builddir_sub in
1384   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386   esac ;;
1387 esac
1388 ac_abs_top_builddir=$ac_pwd
1389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390 # for backward compatibility:
1391 ac_top_builddir=$ac_top_build_prefix
1392
1393 case $srcdir in
1394   .)  # We are building in place.
1395     ac_srcdir=.
1396     ac_top_srcdir=$ac_top_builddir_sub
1397     ac_abs_top_srcdir=$ac_pwd ;;
1398   [\\/]* | ?:[\\/]* )  # Absolute name.
1399     ac_srcdir=$srcdir$ac_dir_suffix;
1400     ac_top_srcdir=$srcdir
1401     ac_abs_top_srcdir=$srcdir ;;
1402   *) # Relative name.
1403     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404     ac_top_srcdir=$ac_top_build_prefix$srcdir
1405     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 esac
1407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408
1409     cd "$ac_dir" || { ac_status=$?; continue; }
1410     # Check for guested configure.
1411     if test -f "$ac_srcdir/configure.gnu"; then
1412       echo &&
1413       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414     elif test -f "$ac_srcdir/configure"; then
1415       echo &&
1416       $SHELL "$ac_srcdir/configure" --help=recursive
1417     else
1418       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419     fi || ac_status=$?
1420     cd "$ac_pwd" || { ac_status=$?; break; }
1421   done
1422 fi
1423
1424 test -n "$ac_init_help" && exit $ac_status
1425 if $ac_init_version; then
1426   cat <<\_ACEOF
1427 git configure 1.8.0
1428 generated by GNU Autoconf 2.67
1429
1430 Copyright (C) 2010 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1433 _ACEOF
1434   exit
1435 fi
1436
1437 ## ------------------------ ##
1438 ## Autoconf initialization. ##
1439 ## ------------------------ ##
1440
1441 # ac_fn_c_try_compile LINENO
1442 # --------------------------
1443 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1444 ac_fn_c_try_compile ()
1445 {
1446   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1447   rm -f conftest.$ac_objext
1448   if { { ac_try="$ac_compile"
1449 case "(($ac_try" in
1450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1451   *) ac_try_echo=$ac_try;;
1452 esac
1453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1454 $as_echo "$ac_try_echo"; } >&5
1455   (eval "$ac_compile") 2>conftest.err
1456   ac_status=$?
1457   if test -s conftest.err; then
1458     grep -v '^ *+' conftest.err >conftest.er1
1459     cat conftest.er1 >&5
1460     mv -f conftest.er1 conftest.err
1461   fi
1462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463   test $ac_status = 0; } && {
1464          test -z "$ac_c_werror_flag" ||
1465          test ! -s conftest.err
1466        } && test -s conftest.$ac_objext; then :
1467   ac_retval=0
1468 else
1469   $as_echo "$as_me: failed program was:" >&5
1470 sed 's/^/| /' conftest.$ac_ext >&5
1471
1472         ac_retval=1
1473 fi
1474   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1475   as_fn_set_status $ac_retval
1476
1477 } # ac_fn_c_try_compile
1478
1479 # ac_fn_c_try_link LINENO
1480 # -----------------------
1481 # Try to link conftest.$ac_ext, and return whether this succeeded.
1482 ac_fn_c_try_link ()
1483 {
1484   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485   rm -f conftest.$ac_objext conftest$ac_exeext
1486   if { { ac_try="$ac_link"
1487 case "(($ac_try" in
1488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489   *) ac_try_echo=$ac_try;;
1490 esac
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493   (eval "$ac_link") 2>conftest.err
1494   ac_status=$?
1495   if test -s conftest.err; then
1496     grep -v '^ *+' conftest.err >conftest.er1
1497     cat conftest.er1 >&5
1498     mv -f conftest.er1 conftest.err
1499   fi
1500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501   test $ac_status = 0; } && {
1502          test -z "$ac_c_werror_flag" ||
1503          test ! -s conftest.err
1504        } && test -s conftest$ac_exeext && {
1505          test "$cross_compiling" = yes ||
1506          $as_test_x conftest$ac_exeext
1507        }; then :
1508   ac_retval=0
1509 else
1510   $as_echo "$as_me: failed program was:" >&5
1511 sed 's/^/| /' conftest.$ac_ext >&5
1512
1513         ac_retval=1
1514 fi
1515   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1516   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1517   # interfere with the next link command; also delete a directory that is
1518   # left behind by Apple's compiler.  We do this before executing the actions.
1519   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1520   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1521   as_fn_set_status $ac_retval
1522
1523 } # ac_fn_c_try_link
1524
1525 # ac_fn_c_check_func LINENO FUNC VAR
1526 # ----------------------------------
1527 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1528 ac_fn_c_check_func ()
1529 {
1530   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1532 $as_echo_n "checking for $2... " >&6; }
1533 if eval "test \"\${$3+set}\"" = set; then :
1534   $as_echo_n "(cached) " >&6
1535 else
1536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1537 /* end confdefs.h.  */
1538 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1540 #define $2 innocuous_$2
1541
1542 /* System header to define __stub macros and hopefully few prototypes,
1543     which can conflict with char $2 (); below.
1544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1545     <limits.h> exists even on freestanding compilers.  */
1546
1547 #ifdef __STDC__
1548 # include <limits.h>
1549 #else
1550 # include <assert.h>
1551 #endif
1552
1553 #undef $2
1554
1555 /* Override any GCC internal prototype to avoid an error.
1556    Use char because int might match the return type of a GCC
1557    builtin and then its argument prototype would still apply.  */
1558 #ifdef __cplusplus
1559 extern "C"
1560 #endif
1561 char $2 ();
1562 /* The GNU C library defines this for functions which it implements
1563     to always fail with ENOSYS.  Some functions are actually named
1564     something starting with __ and the normal name is an alias.  */
1565 #if defined __stub_$2 || defined __stub___$2
1566 choke me
1567 #endif
1568
1569 int
1570 main ()
1571 {
1572 return $2 ();
1573   ;
1574   return 0;
1575 }
1576 _ACEOF
1577 if ac_fn_c_try_link "$LINENO"; then :
1578   eval "$3=yes"
1579 else
1580   eval "$3=no"
1581 fi
1582 rm -f core conftest.err conftest.$ac_objext \
1583     conftest$ac_exeext conftest.$ac_ext
1584 fi
1585 eval ac_res=\$$3
1586                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587 $as_echo "$ac_res" >&6; }
1588   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1589
1590 } # ac_fn_c_check_func
1591
1592 # ac_fn_c_try_cpp LINENO
1593 # ----------------------
1594 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_cpp ()
1596 {
1597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598   if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 case "(($ac_try" in
1600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601   *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606   ac_status=$?
1607   if test -s conftest.err; then
1608     grep -v '^ *+' conftest.err >conftest.er1
1609     cat conftest.er1 >&5
1610     mv -f conftest.er1 conftest.err
1611   fi
1612   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613   test $ac_status = 0; } > conftest.i && {
1614          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1615          test ! -s conftest.err
1616        }; then :
1617   ac_retval=0
1618 else
1619   $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622     ac_retval=1
1623 fi
1624   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625   as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_cpp
1628
1629 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1630 # -------------------------------------------------------
1631 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1632 # the include files in INCLUDES and setting the cache variable VAR
1633 # accordingly.
1634 ac_fn_c_check_header_mongrel ()
1635 {
1636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637   if eval "test \"\${$3+set}\"" = set; then :
1638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639 $as_echo_n "checking for $2... " >&6; }
1640 if eval "test \"\${$3+set}\"" = set; then :
1641   $as_echo_n "(cached) " >&6
1642 fi
1643 eval ac_res=\$$3
1644                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1646 else
1647   # Is the header compilable?
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1649 $as_echo_n "checking $2 usability... " >&6; }
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h.  */
1652 $4
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"; then :
1656   ac_header_compiler=yes
1657 else
1658   ac_header_compiler=no
1659 fi
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1662 $as_echo "$ac_header_compiler" >&6; }
1663
1664 # Is the header present?
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1666 $as_echo_n "checking $2 presence... " >&6; }
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h.  */
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_cpp "$LINENO"; then :
1672   ac_header_preproc=yes
1673 else
1674   ac_header_preproc=no
1675 fi
1676 rm -f conftest.err conftest.i conftest.$ac_ext
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1678 $as_echo "$ac_header_preproc" >&6; }
1679
1680 # So?  What about this header?
1681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1682   yes:no: )
1683     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1684 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1685     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687     ;;
1688   no:yes:* )
1689     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1690 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1691     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1692 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1693     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1694 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1695     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1696 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1697     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1699 ( $as_echo "## ---------------------------------- ##
1700 ## Report this to git@vger.kernel.org ##
1701 ## ---------------------------------- ##"
1702      ) | sed "s/^/$as_me: WARNING:     /" >&2
1703     ;;
1704 esac
1705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval "test \"\${$3+set}\"" = set; then :
1708   $as_echo_n "(cached) " >&6
1709 else
1710   eval "$3=\$ac_header_compiler"
1711 fi
1712 eval ac_res=\$$3
1713                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 fi
1716   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717
1718 } # ac_fn_c_check_header_mongrel
1719
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1724 ac_fn_c_try_run ()
1725 {
1726   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727   if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730   *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734   (eval "$ac_link") 2>&5
1735   ac_status=$?
1736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738   { { case "(($ac_try" in
1739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740   *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744   (eval "$ac_try") 2>&5
1745   ac_status=$?
1746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747   test $ac_status = 0; }; }; then :
1748   ac_retval=0
1749 else
1750   $as_echo "$as_me: program exited with status $ac_status" >&5
1751        $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754        ac_retval=$ac_status
1755 fi
1756   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758   as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_run
1761
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval "test \"\${$3+set}\"" = set; then :
1772   $as_echo_n "(cached) " >&6
1773 else
1774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h.  */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780   eval "$3=yes"
1781 else
1782   eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790
1791 } # ac_fn_c_check_header_compile
1792
1793 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1794 # -------------------------------------------
1795 # Tests whether TYPE exists after having included INCLUDES, setting cache
1796 # variable VAR accordingly.
1797 ac_fn_c_check_type ()
1798 {
1799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if eval "test \"\${$3+set}\"" = set; then :
1803   $as_echo_n "(cached) " >&6
1804 else
1805   eval "$3=no"
1806   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h.  */
1808 $4
1809 int
1810 main ()
1811 {
1812 if (sizeof ($2))
1813          return 0;
1814   ;
1815   return 0;
1816 }
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h.  */
1821 $4
1822 int
1823 main ()
1824 {
1825 if (sizeof (($2)))
1826             return 0;
1827   ;
1828   return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832
1833 else
1834   eval "$3=yes"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 fi
1840 eval ac_res=\$$3
1841                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844
1845 } # ac_fn_c_check_type
1846
1847 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1848 # ----------------------------------------------------
1849 # Tries to find if the field MEMBER exists in type AGGR, after including
1850 # INCLUDES, setting cache variable VAR accordingly.
1851 ac_fn_c_check_member ()
1852 {
1853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1855 $as_echo_n "checking for $2.$3... " >&6; }
1856 if eval "test \"\${$4+set}\"" = set; then :
1857   $as_echo_n "(cached) " >&6
1858 else
1859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h.  */
1861 $5
1862 int
1863 main ()
1864 {
1865 static $2 ac_aggr;
1866 if (ac_aggr.$3)
1867 return 0;
1868   ;
1869   return 0;
1870 }
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873   eval "$4=yes"
1874 else
1875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h.  */
1877 $5
1878 int
1879 main ()
1880 {
1881 static $2 ac_aggr;
1882 if (sizeof ac_aggr.$3)
1883 return 0;
1884   ;
1885   return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_compile "$LINENO"; then :
1889   eval "$4=yes"
1890 else
1891   eval "$4=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 fi
1897 eval ac_res=\$$4
1898                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901
1902 } # ac_fn_c_check_member
1903 cat >config.log <<_ACEOF
1904 This file contains any messages produced by compilers while
1905 running configure, to aid debugging if configure makes a mistake.
1906
1907 It was created by git $as_me 1.8.0, which was
1908 generated by GNU Autoconf 2.67.  Invocation command line was
1909
1910   $ $0 $@
1911
1912 _ACEOF
1913 exec 5>>config.log
1914 {
1915 cat <<_ASUNAME
1916 ## --------- ##
1917 ## Platform. ##
1918 ## --------- ##
1919
1920 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1921 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1922 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1923 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1924 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1925
1926 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1927 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1928
1929 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1930 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1931 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1932 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1933 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1934 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1935 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1936
1937 _ASUNAME
1938
1939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940 for as_dir in $PATH
1941 do
1942   IFS=$as_save_IFS
1943   test -z "$as_dir" && as_dir=.
1944     $as_echo "PATH: $as_dir"
1945   done
1946 IFS=$as_save_IFS
1947
1948 } >&5
1949
1950 cat >&5 <<_ACEOF
1951
1952
1953 ## ----------- ##
1954 ## Core tests. ##
1955 ## ----------- ##
1956
1957 _ACEOF
1958
1959
1960 # Keep a trace of the command line.
1961 # Strip out --no-create and --no-recursion so they do not pile up.
1962 # Strip out --silent because we don't want to record it for future runs.
1963 # Also quote any args containing shell meta-characters.
1964 # Make two passes to allow for proper duplicate-argument suppression.
1965 ac_configure_args=
1966 ac_configure_args0=
1967 ac_configure_args1=
1968 ac_must_keep_next=false
1969 for ac_pass in 1 2
1970 do
1971   for ac_arg
1972   do
1973     case $ac_arg in
1974     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1975     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1976     | -silent | --silent | --silen | --sile | --sil)
1977       continue ;;
1978     *\'*)
1979       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1980     esac
1981     case $ac_pass in
1982     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1983     2)
1984       as_fn_append ac_configure_args1 " '$ac_arg'"
1985       if test $ac_must_keep_next = true; then
1986         ac_must_keep_next=false # Got value, back to normal.
1987       else
1988         case $ac_arg in
1989           *=* | --config-cache | -C | -disable-* | --disable-* \
1990           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1991           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1992           | -with-* | --with-* | -without-* | --without-* | --x)
1993             case "$ac_configure_args0 " in
1994               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1995             esac
1996             ;;
1997           -* ) ac_must_keep_next=true ;;
1998         esac
1999       fi
2000       as_fn_append ac_configure_args " '$ac_arg'"
2001       ;;
2002     esac
2003   done
2004 done
2005 { ac_configure_args0=; unset ac_configure_args0;}
2006 { ac_configure_args1=; unset ac_configure_args1;}
2007
2008 # When interrupted or exit'd, cleanup temporary files, and complete
2009 # config.log.  We remove comments because anyway the quotes in there
2010 # would cause problems or look ugly.
2011 # WARNING: Use '\'' to represent an apostrophe within the trap.
2012 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2013 trap 'exit_status=$?
2014   # Save into config.log some information that might help in debugging.
2015   {
2016     echo
2017
2018     $as_echo "## ---------------- ##
2019 ## Cache variables. ##
2020 ## ---------------- ##"
2021     echo
2022     # The following way of writing the cache mishandles newlines in values,
2023 (
2024   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2025     eval ac_val=\$$ac_var
2026     case $ac_val in #(
2027     *${as_nl}*)
2028       case $ac_var in #(
2029       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2030 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031       esac
2032       case $ac_var in #(
2033       _ | IFS | as_nl) ;; #(
2034       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2035       *) { eval $ac_var=; unset $ac_var;} ;;
2036       esac ;;
2037     esac
2038   done
2039   (set) 2>&1 |
2040     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2041     *${as_nl}ac_space=\ *)
2042       sed -n \
2043         "s/'\''/'\''\\\\'\'''\''/g;
2044           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045       ;; #(
2046     *)
2047       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2048       ;;
2049     esac |
2050     sort
2051 )
2052     echo
2053
2054     $as_echo "## ----------------- ##
2055 ## Output variables. ##
2056 ## ----------------- ##"
2057     echo
2058     for ac_var in $ac_subst_vars
2059     do
2060       eval ac_val=\$$ac_var
2061       case $ac_val in
2062       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063       esac
2064       $as_echo "$ac_var='\''$ac_val'\''"
2065     done | sort
2066     echo
2067
2068     if test -n "$ac_subst_files"; then
2069       $as_echo "## ------------------- ##
2070 ## File substitutions. ##
2071 ## ------------------- ##"
2072       echo
2073       for ac_var in $ac_subst_files
2074       do
2075         eval ac_val=\$$ac_var
2076         case $ac_val in
2077         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078         esac
2079         $as_echo "$ac_var='\''$ac_val'\''"
2080       done | sort
2081       echo
2082     fi
2083
2084     if test -s confdefs.h; then
2085       $as_echo "## ----------- ##
2086 ## confdefs.h. ##
2087 ## ----------- ##"
2088       echo
2089       cat confdefs.h
2090       echo
2091     fi
2092     test "$ac_signal" != 0 &&
2093       $as_echo "$as_me: caught signal $ac_signal"
2094     $as_echo "$as_me: exit $exit_status"
2095   } >&5
2096   rm -f core *.core core.conftest.* &&
2097     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2098     exit $exit_status
2099 ' 0
2100 for ac_signal in 1 2 13 15; do
2101   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2102 done
2103 ac_signal=0
2104
2105 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2106 rm -f -r conftest* confdefs.h
2107
2108 $as_echo "/* confdefs.h */" > confdefs.h
2109
2110 # Predefined preprocessor variables.
2111
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_NAME "$PACKAGE_NAME"
2114 _ACEOF
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2118 _ACEOF
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_STRING "$PACKAGE_STRING"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_URL "$PACKAGE_URL"
2134 _ACEOF
2135
2136
2137 # Let the site file select an alternate cache file if it wants to.
2138 # Prefer an explicitly selected file to automatically selected ones.
2139 ac_site_file1=NONE
2140 ac_site_file2=NONE
2141 if test -n "$CONFIG_SITE"; then
2142   # We do not want a PATH search for config.site.
2143   case $CONFIG_SITE in #((
2144     -*)  ac_site_file1=./$CONFIG_SITE;;
2145     */*) ac_site_file1=$CONFIG_SITE;;
2146     *)   ac_site_file1=./$CONFIG_SITE;;
2147   esac
2148 elif test "x$prefix" != xNONE; then
2149   ac_site_file1=$prefix/share/config.site
2150   ac_site_file2=$prefix/etc/config.site
2151 else
2152   ac_site_file1=$ac_default_prefix/share/config.site
2153   ac_site_file2=$ac_default_prefix/etc/config.site
2154 fi
2155 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2156 do
2157   test "x$ac_site_file" = xNONE && continue
2158   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2159     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2160 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2161     sed 's/^/| /' "$ac_site_file" >&5
2162     . "$ac_site_file" \
2163       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165 as_fn_error $? "failed to load site script $ac_site_file
2166 See \`config.log' for more details" "$LINENO" 5 ; }
2167   fi
2168 done
2169
2170 if test -r "$cache_file"; then
2171   # Some versions of bash will fail to source /dev/null (special files
2172   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2173   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2174     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2175 $as_echo "$as_me: loading cache $cache_file" >&6;}
2176     case $cache_file in
2177       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2178       *)                      . "./$cache_file";;
2179     esac
2180   fi
2181 else
2182   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2183 $as_echo "$as_me: creating cache $cache_file" >&6;}
2184   >$cache_file
2185 fi
2186
2187 # Check that the precious variables saved in the cache have kept the same
2188 # value.
2189 ac_cache_corrupted=false
2190 for ac_var in $ac_precious_vars; do
2191   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2192   eval ac_new_set=\$ac_env_${ac_var}_set
2193   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2194   eval ac_new_val=\$ac_env_${ac_var}_value
2195   case $ac_old_set,$ac_new_set in
2196     set,)
2197       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2198 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2199       ac_cache_corrupted=: ;;
2200     ,set)
2201       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2203       ac_cache_corrupted=: ;;
2204     ,);;
2205     *)
2206       if test "x$ac_old_val" != "x$ac_new_val"; then
2207         # differences in whitespace do not lead to failure.
2208         ac_old_val_w=`echo x $ac_old_val`
2209         ac_new_val_w=`echo x $ac_new_val`
2210         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2211           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2212 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2213           ac_cache_corrupted=:
2214         else
2215           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2216 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2217           eval $ac_var=\$ac_old_val
2218         fi
2219         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2220 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2221         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2222 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2223       fi;;
2224   esac
2225   # Pass precious variables to config.status.
2226   if test "$ac_new_set" = set; then
2227     case $ac_new_val in
2228     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2229     *) ac_arg=$ac_var=$ac_new_val ;;
2230     esac
2231     case " $ac_configure_args " in
2232       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2233       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2234     esac
2235   fi
2236 done
2237 if $ac_cache_corrupted; then
2238   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2240   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2241 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2242   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2243 fi
2244 ## -------------------- ##
2245 ## Main body of script. ##
2246 ## -------------------- ##
2247
2248 ac_ext=c
2249 ac_cpp='$CPP $CPPFLAGS'
2250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2253
2254
2255
2256
2257
2258 config_file=config.mak.autogen
2259 config_in=config.mak.in
2260
2261 config_appended_defs=; newline='
2262 '
2263     ac_config_commands="$ac_config_commands $config_file"
2264
2265
2266 config_appended_defs="$config_appended_defs${newline}AUTOCONFIGURED=YesPlease"
2267
2268 # Directories holding "saner" versions of common or POSIX binaries.
2269
2270 # Check whether --with-sane-tool-path was given.
2271 if test "${with_sane_tool_path+set}" = set; then :
2272   withval=$with_sane_tool_path; if test "$withval" = "no"; then
2273     withval=''
2274   else
2275     { $as_echo "$as_me:${as_lineno-$LINENO}: Setting SANE_TOOL_PATH to '$withval'" >&5
2276 $as_echo "$as_me: Setting SANE_TOOL_PATH to '$withval'" >&6;}
2277   fi
2278
2279 config_appended_defs="$config_appended_defs${newline}SANE_TOOL_PATH=$withval"
2280 else
2281   # If the "--with-sane-tool-path" option was not given, don't touch
2282    # SANE_TOOL_PATH here, but let defaults in Makefile take care of it.
2283    # This should minimize spurious differences in the behaviour of the
2284    # Git build system when configure is used w.r.t. when it is not.
2285    :
2286 fi
2287
2288
2289 ## Site configuration related to programs (before tests)
2290 ## --with-PACKAGE[=ARG] and --without-PACKAGE
2291 #
2292 # Set lib to alternative name of lib directory (e.g. lib64)
2293
2294 # Check whether --with-lib was given.
2295 if test "${with_lib+set}" = set; then :
2296   withval=$with_lib; if test "$withval" = "no" || test "$withval" = "yes"; then
2297         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide name for --with-lib=ARG" >&5
2298 $as_echo "$as_me: WARNING: You should provide name for --with-lib=ARG" >&2;}
2299   else
2300         lib=$withval
2301         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting lib to '$lib'" >&5
2302 $as_echo "$as_me: Setting lib to '$lib'" >&6;}
2303
2304 config_appended_defs="$config_appended_defs${newline}lib=${lib}"
2305   fi
2306 fi
2307
2308
2309 if test -z "$lib"; then
2310    { $as_echo "$as_me:${as_lineno-$LINENO}: Setting lib to 'lib' (the default)" >&5
2311 $as_echo "$as_me: Setting lib to 'lib' (the default)" >&6;}
2312    lib=lib
2313 fi
2314
2315 # Check whether --enable-pthreads was given.
2316 if test "${enable_pthreads+set}" = set; then :
2317   enableval=$enable_pthreads;
2318 if test "x$enableval" = "xyes"; then
2319    { $as_echo "$as_me:${as_lineno-$LINENO}: Will try -pthread then -lpthread to enable POSIX Threads" >&5
2320 $as_echo "$as_me: Will try -pthread then -lpthread to enable POSIX Threads" >&6;}
2321 elif test "x$enableval" != "xno"; then
2322    PTHREAD_CFLAGS=$enableval
2323    { $as_echo "$as_me:${as_lineno-$LINENO}: Setting '$PTHREAD_CFLAGS' as the FLAGS to enable POSIX Threads" >&5
2324 $as_echo "$as_me: Setting '$PTHREAD_CFLAGS' as the FLAGS to enable POSIX Threads" >&6;}
2325 else
2326    { $as_echo "$as_me:${as_lineno-$LINENO}: POSIX Threads will be disabled." >&5
2327 $as_echo "$as_me: POSIX Threads will be disabled." >&6;}
2328    NO_PTHREADS=YesPlease
2329    USER_NOPTHREAD=1
2330 fi
2331 else
2332
2333    { $as_echo "$as_me:${as_lineno-$LINENO}: Will try -pthread then -lpthread to enable POSIX Threads." >&5
2334 $as_echo "$as_me: Will try -pthread then -lpthread to enable POSIX Threads." >&6;}
2335
2336 fi
2337
2338
2339 # Define option to enable JavaScript minification
2340 # Check whether --enable-jsmin was given.
2341 if test "${enable_jsmin+set}" = set; then :
2342   enableval=$enable_jsmin;
2343   JSMIN=$enableval;
2344   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting JSMIN to '$JSMIN' to enable JavaScript minifying" >&5
2345 $as_echo "$as_me: Setting JSMIN to '$JSMIN' to enable JavaScript minifying" >&6;}
2346
2347 config_appended_defs="$config_appended_defs${newline}JSMIN=${JSMIN}"
2348
2349 fi
2350
2351
2352 # Define option to enable CSS minification
2353 # Check whether --enable-cssmin was given.
2354 if test "${enable_cssmin+set}" = set; then :
2355   enableval=$enable_cssmin;
2356   CSSMIN=$enableval;
2357   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting CSSMIN to '$CSSMIN' to enable CSS minifying" >&5
2358 $as_echo "$as_me: Setting CSSMIN to '$CSSMIN' to enable CSS minifying" >&6;}
2359
2360 config_appended_defs="$config_appended_defs${newline}CSSMIN=${CSSMIN}"
2361
2362 fi
2363
2364
2365 ## Site configuration (override autodetection)
2366 ## --with-PACKAGE[=ARG] and --without-PACKAGE
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for site configuration" >&5
2368 $as_echo "$as_me: CHECKS for site configuration" >&6;}
2369 #
2370 # Define NO_SVN_TESTS if you want to skip time-consuming SVN interoperability
2371 # tests.  These tests take up a significant amount of the total test time
2372 # but are not needed unless you plan to talk to SVN repos.
2373 #
2374 # Define PPC_SHA1 environment variable when running make to make use of
2375 # a bundled SHA1 routine optimized for PowerPC.
2376 #
2377 # Define NO_OPENSSL environment variable if you do not have OpenSSL.
2378 # This also implies BLK_SHA1.
2379 #
2380 # Define OPENSSLDIR=/foo/bar if your openssl header and library files are in
2381 # /foo/bar/include and /foo/bar/lib directories.
2382
2383 # Check whether --with-openssl was given.
2384 if test "${with_openssl+set}" = set; then :
2385   withval=$with_openssl;     if test "$withval" = "no"; then
2386         NO_OPENSSL=YesPlease
2387     elif test "$withval" = "yes"; then
2388         NO_OPENSSL=
2389     else
2390         NO_OPENSSL=
2391         OPENSSLDIR=$withval
2392         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting OPENSSLDIR to $withval" >&5
2393 $as_echo "$as_me: Setting OPENSSLDIR to $withval" >&6;}
2394
2395 config_appended_defs="$config_appended_defs${newline}OPENSSLDIR=$withval"
2396     fi
2397
2398 fi
2399
2400
2401 # Define USE_LIBPCRE if you have and want to use libpcre. git-grep will be
2402 # able to use Perl-compatible regular expressions.
2403 #
2404 # Define LIBPCREDIR=/foo/bar if your libpcre header and library files are in
2405 # /foo/bar/include and /foo/bar/lib directories.
2406 #
2407
2408 # Check whether --with-libpcre was given.
2409 if test "${with_libpcre+set}" = set; then :
2410   withval=$with_libpcre; if test "$withval" = "no"; then
2411         USE_LIBPCRE=
2412     elif test "$withval" = "yes"; then
2413         USE_LIBPCRE=YesPlease
2414     else
2415         USE_LIBPCRE=YesPlease
2416         LIBPCREDIR=$withval
2417         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting LIBPCREDIR to $LIBPCREDIR" >&5
2418 $as_echo "$as_me: Setting LIBPCREDIR to $LIBPCREDIR" >&6;}
2419
2420 config_appended_defs="$config_appended_defs${newline}LIBPCREDIR=${LIBPCREDIR}"
2421     fi
2422 fi
2423
2424 #
2425 # Define NO_CURL if you do not have curl installed.  git-http-pull and
2426 # git-http-push are not built, and you cannot use http:// and https://
2427 # transports.
2428 #
2429 # Define CURLDIR=/foo/bar if your curl header and library files are in
2430 # /foo/bar/include and /foo/bar/lib directories.
2431
2432 # Check whether --with-curl was given.
2433 if test "${with_curl+set}" = set; then :
2434   withval=$with_curl;     if test "$withval" = "no"; then
2435         NO_CURL=YesPlease
2436     elif test "$withval" = "yes"; then
2437         NO_CURL=
2438     else
2439         NO_CURL=
2440         CURLDIR=$withval
2441         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting CURLDIR to $withval" >&5
2442 $as_echo "$as_me: Setting CURLDIR to $withval" >&6;}
2443
2444 config_appended_defs="$config_appended_defs${newline}CURLDIR=$withval"
2445     fi
2446
2447 fi
2448
2449 #
2450 # Define NO_EXPAT if you do not have expat installed.  git-http-push is
2451 # not built, and you cannot push using http:// and https:// transports.
2452 #
2453 # Define EXPATDIR=/foo/bar if your expat header and library files are in
2454 # /foo/bar/include and /foo/bar/lib directories.
2455
2456 # Check whether --with-expat was given.
2457 if test "${with_expat+set}" = set; then :
2458   withval=$with_expat;     if test "$withval" = "no"; then
2459         NO_EXPAT=YesPlease
2460     elif test "$withval" = "yes"; then
2461         NO_EXPAT=
2462     else
2463         NO_EXPAT=
2464         EXPATDIR=$withval
2465         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting EXPATDIR to $withval" >&5
2466 $as_echo "$as_me: Setting EXPATDIR to $withval" >&6;}
2467
2468 config_appended_defs="$config_appended_defs${newline}EXPATDIR=$withval"
2469     fi
2470
2471 fi
2472
2473 #
2474 # Define NO_FINK if you are building on Darwin/Mac OS X, have Fink
2475 # installed in /sw, but don't want GIT to link against any libraries
2476 # installed there.  If defined you may specify your own (or Fink's)
2477 # include directories and library directories by defining CFLAGS
2478 # and LDFLAGS appropriately.
2479 #
2480 # Define NO_DARWIN_PORTS if you are building on Darwin/Mac OS X,
2481 # have DarwinPorts installed in /opt/local, but don't want GIT to
2482 # link against any libraries installed there.  If defined you may
2483 # specify your own (or DarwinPort's) include directories and
2484 # library directories by defining CFLAGS and LDFLAGS appropriately.
2485 #
2486 # Define NO_MMAP if you want to avoid mmap.
2487 #
2488 # Define NO_ICONV if your libc does not properly support iconv.
2489
2490 # Check whether --with-iconv was given.
2491 if test "${with_iconv+set}" = set; then :
2492   withval=$with_iconv;     if test "$withval" = "no"; then
2493         NO_ICONV=YesPlease
2494     elif test "$withval" = "yes"; then
2495         NO_ICONV=
2496     else
2497         NO_ICONV=
2498         ICONVDIR=$withval
2499         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ICONVDIR to $withval" >&5
2500 $as_echo "$as_me: Setting ICONVDIR to $withval" >&6;}
2501
2502 config_appended_defs="$config_appended_defs${newline}ICONVDIR=$withval"
2503     fi
2504
2505 fi
2506
2507
2508 ## --enable-FEATURE[=ARG] and --disable-FEATURE
2509 #
2510 # Define USE_NSEC below if you want git to care about sub-second file mtimes
2511 # and ctimes. Note that you need recent glibc (at least 2.2.4) for this, and
2512 # it will BREAK YOUR LOCAL DIFFS! show-diff and anything using it will likely
2513 # randomly break unless your underlying filesystem supports those sub-second
2514 # times (my ext3 doesn't).
2515 #
2516 # Define USE_STDEV below if you want git to care about the underlying device
2517 # change being considered an inode change from the update-index perspective.
2518
2519 #
2520 # Allow user to set ETC_GITCONFIG variable
2521
2522 # Check whether --with-gitconfig was given.
2523 if test "${with_gitconfig+set}" = set; then :
2524   withval=$with_gitconfig; if test -n "$withval"; then
2525   if test "$withval" = "yes" -o "$withval" = "no"; then
2526     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
2527                      a value for gitconfig (ETC_GITCONFIG).  Maybe you do...?" >&5
2528 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
2529                      a value for gitconfig (ETC_GITCONFIG).  Maybe you do...?" >&2;}
2530   fi
2531   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ETC_GITCONFIG to $withval" >&5
2532 $as_echo "$as_me: Setting ETC_GITCONFIG to $withval" >&6;}
2533
2534 config_appended_defs="$config_appended_defs${newline}ETC_GITCONFIG=$withval"
2535  fi
2536 fi
2537
2538
2539 #
2540 # Allow user to set ETC_GITATTRIBUTES variable
2541
2542 # Check whether --with-gitattributes was given.
2543 if test "${with_gitattributes+set}" = set; then :
2544   withval=$with_gitattributes; if test -n "$withval"; then
2545   if test "$withval" = "yes" -o "$withval" = "no"; then
2546     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
2547                      a value for gitattributes (ETC_GITATTRIBUTES).  Maybe you do...?" >&5
2548 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
2549                      a value for gitattributes (ETC_GITATTRIBUTES).  Maybe you do...?" >&2;}
2550   fi
2551   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ETC_GITATTRIBUTES to $withval" >&5
2552 $as_echo "$as_me: Setting ETC_GITATTRIBUTES to $withval" >&6;}
2553
2554 config_appended_defs="$config_appended_defs${newline}ETC_GITATTRIBUTES=$withval"
2555  fi
2556 fi
2557
2558
2559 #
2560 # Allow user to set the default pager
2561
2562 # Check whether --with-pager was given.
2563 if test "${with_pager+set}" = set; then :
2564   withval=$with_pager; if test -n "$withval"; then
2565   if test "$withval" = "yes" -o "$withval" = "no"; then
2566     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
2567                      a value for pager (DEFAULT_PAGER).  Maybe you do...?" >&5
2568 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
2569                      a value for pager (DEFAULT_PAGER).  Maybe you do...?" >&2;}
2570   fi
2571   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting DEFAULT_PAGER to $withval" >&5
2572 $as_echo "$as_me: Setting DEFAULT_PAGER to $withval" >&6;}
2573
2574 config_appended_defs="$config_appended_defs${newline}DEFAULT_PAGER=$withval"
2575  fi
2576 fi
2577
2578 #
2579 # Allow user to set the default editor
2580
2581 # Check whether --with-editor was given.
2582 if test "${with_editor+set}" = set; then :
2583   withval=$with_editor; if test -n "$withval"; then
2584   if test "$withval" = "yes" -o "$withval" = "no"; then
2585     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You likely do not want either 'yes' or 'no' as
2586                      a value for editor (DEFAULT_EDITOR).  Maybe you do...?" >&5
2587 $as_echo "$as_me: WARNING: You likely do not want either 'yes' or 'no' as
2588                      a value for editor (DEFAULT_EDITOR).  Maybe you do...?" >&2;}
2589   fi
2590   { $as_echo "$as_me:${as_lineno-$LINENO}: Setting DEFAULT_EDITOR to $withval" >&5
2591 $as_echo "$as_me: Setting DEFAULT_EDITOR to $withval" >&6;}
2592
2593 config_appended_defs="$config_appended_defs${newline}DEFAULT_EDITOR=$withval"
2594  fi
2595 fi
2596
2597
2598 #
2599 # Define SHELL_PATH to provide path to shell.
2600
2601 # Check whether --with-shell was given.
2602 if test "${with_shell+set}" = set; then :
2603   withval=$with_shell;     if test "$withval" = "no"; then
2604         if test -n ""; then
2605                 SHELL_PATH=$withval
2606                 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of SHELL" >&5
2607 $as_echo "$as_me: Disabling use of SHELL" >&6;}
2608
2609 config_appended_defs="$config_appended_defs${newline}NO_SHELL=YesPlease"
2610
2611 config_appended_defs="$config_appended_defs${newline}SHELL_PATH="
2612         else
2613                 as_fn_error $? "You cannot use git without shell" "$LINENO" 5
2614         fi
2615     else
2616         if test "$withval" = "yes"; then
2617                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-shell=PATH" >&5
2618 $as_echo "$as_me: WARNING: You should provide path for --with-shell=PATH" >&2;}
2619         else
2620                 SHELL_PATH=$withval
2621                 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting SHELL_PATH to $withval" >&5
2622 $as_echo "$as_me: Setting SHELL_PATH to $withval" >&6;}
2623
2624 config_appended_defs="$config_appended_defs${newline}SHELL_PATH=$withval"
2625         fi
2626     fi
2627
2628 fi
2629
2630 #
2631 # Define PERL_PATH to provide path to Perl.
2632
2633 # Check whether --with-perl was given.
2634 if test "${with_perl+set}" = set; then :
2635   withval=$with_perl;     if test "$withval" = "no"; then
2636         if test -n ""; then
2637                 PERL_PATH=$withval
2638                 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of PERL" >&5
2639 $as_echo "$as_me: Disabling use of PERL" >&6;}
2640
2641 config_appended_defs="$config_appended_defs${newline}NO_PERL=YesPlease"
2642
2643 config_appended_defs="$config_appended_defs${newline}PERL_PATH="
2644         else
2645                 as_fn_error $? "You cannot use git without perl" "$LINENO" 5
2646         fi
2647     else
2648         if test "$withval" = "yes"; then
2649                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-perl=PATH" >&5
2650 $as_echo "$as_me: WARNING: You should provide path for --with-perl=PATH" >&2;}
2651         else
2652                 PERL_PATH=$withval
2653                 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting PERL_PATH to $withval" >&5
2654 $as_echo "$as_me: Setting PERL_PATH to $withval" >&6;}
2655
2656 config_appended_defs="$config_appended_defs${newline}PERL_PATH=$withval"
2657         fi
2658     fi
2659
2660 fi
2661
2662 #
2663 # Define PYTHON_PATH to provide path to Python.
2664
2665 # Check whether --with-python was given.
2666 if test "${with_python+set}" = set; then :
2667   withval=$with_python;     if test "$withval" = "no"; then
2668         if test -n "allow-without"; then
2669                 PYTHON_PATH=$withval
2670                 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of PYTHON" >&5
2671 $as_echo "$as_me: Disabling use of PYTHON" >&6;}
2672
2673 config_appended_defs="$config_appended_defs${newline}NO_PYTHON=YesPlease"
2674
2675 config_appended_defs="$config_appended_defs${newline}PYTHON_PATH="
2676         else
2677                 as_fn_error $? "You cannot use git without python" "$LINENO" 5
2678         fi
2679     else
2680         if test "$withval" = "yes"; then
2681                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-python=PATH" >&5
2682 $as_echo "$as_me: WARNING: You should provide path for --with-python=PATH" >&2;}
2683         else
2684                 PYTHON_PATH=$withval
2685                 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting PYTHON_PATH to $withval" >&5
2686 $as_echo "$as_me: Setting PYTHON_PATH to $withval" >&6;}
2687
2688 config_appended_defs="$config_appended_defs${newline}PYTHON_PATH=$withval"
2689         fi
2690     fi
2691
2692 fi
2693
2694 #
2695 # Define ZLIB_PATH to provide path to zlib.
2696
2697 # Check whether --with-zlib was given.
2698 if test "${with_zlib+set}" = set; then :
2699   withval=$with_zlib;     if test "$withval" = "no"; then
2700         if test -n ""; then
2701                 ZLIB_PATH=$withval
2702                 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling use of ZLIB" >&5
2703 $as_echo "$as_me: Disabling use of ZLIB" >&6;}
2704
2705 config_appended_defs="$config_appended_defs${newline}NO_ZLIB=YesPlease"
2706
2707 config_appended_defs="$config_appended_defs${newline}ZLIB_PATH="
2708         else
2709                 as_fn_error $? "You cannot use git without zlib" "$LINENO" 5
2710         fi
2711     else
2712         if test "$withval" = "yes"; then
2713                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You should provide path for --with-zlib=PATH" >&5
2714 $as_echo "$as_me: WARNING: You should provide path for --with-zlib=PATH" >&2;}
2715         else
2716                 ZLIB_PATH=$withval
2717                 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting ZLIB_PATH to $withval" >&5
2718 $as_echo "$as_me: Setting ZLIB_PATH to $withval" >&6;}
2719
2720 config_appended_defs="$config_appended_defs${newline}ZLIB_PATH=$withval"
2721         fi
2722     fi
2723
2724 fi
2725
2726 #
2727 # Declare the with-tcltk/without-tcltk options.
2728
2729 # Check whether --with-tcltk was given.
2730 if test "${with_tcltk+set}" = set; then :
2731   withval=$with_tcltk;     if test "$withval" = "no"; then
2732         NO_TCLTK=YesPlease
2733     elif test "$withval" = "yes"; then
2734         NO_TCLTK=
2735     else
2736         NO_TCLTK=
2737         TCLTKDIR=$withval
2738         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting TCLTKDIR to $withval" >&5
2739 $as_echo "$as_me: Setting TCLTKDIR to $withval" >&6;}
2740
2741 config_appended_defs="$config_appended_defs${newline}TCLTKDIR=$withval"
2742     fi
2743
2744 fi
2745
2746 #
2747
2748
2749 ## Checks for programs.
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for programs" >&5
2751 $as_echo "$as_me: CHECKS for programs" >&6;}
2752 #
2753 ac_ext=c
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758 if test -n "$ac_tool_prefix"; then
2759   for ac_prog in cc gcc
2760   do
2761     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if test "${ac_cv_prog_CC+set}" = set; then :
2766   $as_echo_n "(cached) " >&6
2767 else
2768   if test -n "$CC"; then
2769   ac_cv_prog_CC="$CC" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774   IFS=$as_save_IFS
2775   test -z "$as_dir" && as_dir=.
2776     for ac_exec_ext in '' $ac_executable_extensions; do
2777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783   done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 CC=$ac_cv_prog_CC
2789 if test -n "$CC"; then
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2791 $as_echo "$CC" >&6; }
2792 else
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797
2798     test -n "$CC" && break
2799   done
2800 fi
2801 if test -z "$CC"; then
2802   ac_ct_CC=$CC
2803   for ac_prog in cc gcc
2804 do
2805   # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2810   $as_echo_n "(cached) " >&6
2811 else
2812   if test -n "$ac_ct_CC"; then
2813   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818   IFS=$as_save_IFS
2819   test -z "$as_dir" && as_dir=.
2820     for ac_exec_ext in '' $ac_executable_extensions; do
2821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822     ac_cv_prog_ac_ct_CC="$ac_prog"
2823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824     break 2
2825   fi
2826 done
2827   done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2833 if test -n "$ac_ct_CC"; then
2834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2835 $as_echo "$ac_ct_CC" >&6; }
2836 else
2837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2839 fi
2840
2841
2842   test -n "$ac_ct_CC" && break
2843 done
2844
2845   if test "x$ac_ct_CC" = x; then
2846     CC=""
2847   else
2848     case $cross_compiling:$ac_tool_warned in
2849 yes:)
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned=yes ;;
2853 esac
2854     CC=$ac_ct_CC
2855   fi
2856 fi
2857
2858
2859 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861 as_fn_error $? "no acceptable C compiler found in \$PATH
2862 See \`config.log' for more details" "$LINENO" 5 ; }
2863
2864 # Provide some information about the compiler.
2865 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2866 set X $ac_compile
2867 ac_compiler=$2
2868 for ac_option in --version -v -V -qversion; do
2869   { { ac_try="$ac_compiler $ac_option >&5"
2870 case "(($ac_try" in
2871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872   *) ac_try_echo=$ac_try;;
2873 esac
2874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875 $as_echo "$ac_try_echo"; } >&5
2876   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2877   ac_status=$?
2878   if test -s conftest.err; then
2879     sed '10a\
2880 ... rest of stderr output deleted ...
2881          10q' conftest.err >conftest.er1
2882     cat conftest.er1 >&5
2883   fi
2884   rm -f conftest.er1 conftest.err
2885   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886   test $ac_status = 0; }
2887 done
2888
2889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h.  */
2891
2892 int
2893 main ()
2894 {
2895
2896   ;
2897   return 0;
2898 }
2899 _ACEOF
2900 ac_clean_files_save=$ac_clean_files
2901 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2902 # Try to create an executable without -o first, disregard a.out.
2903 # It will help us diagnose broken compilers, and finding out an intuition
2904 # of exeext.
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2906 $as_echo_n "checking whether the C compiler works... " >&6; }
2907 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2908
2909 # The possible output files:
2910 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2911
2912 ac_rmfiles=
2913 for ac_file in $ac_files
2914 do
2915   case $ac_file in
2916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2917     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2918   esac
2919 done
2920 rm -f $ac_rmfiles
2921
2922 if { { ac_try="$ac_link_default"
2923 case "(($ac_try" in
2924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925   *) ac_try_echo=$ac_try;;
2926 esac
2927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928 $as_echo "$ac_try_echo"; } >&5
2929   (eval "$ac_link_default") 2>&5
2930   ac_status=$?
2931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932   test $ac_status = 0; }; then :
2933   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2936 # so that the user can short-circuit this test for compilers unknown to
2937 # Autoconf.
2938 for ac_file in $ac_files ''
2939 do
2940   test -f "$ac_file" || continue
2941   case $ac_file in
2942     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2943         ;;
2944     [ab].out )
2945         # We found the default executable, but exeext='' is most
2946         # certainly right.
2947         break;;
2948     *.* )
2949         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2950         then :; else
2951            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952         fi
2953         # We set ac_cv_exeext here because the later test for it is not
2954         # safe: cross compilers may not add the suffix if given an `-o'
2955         # argument, so we may need to know it at that point already.
2956         # Even if this section looks crufty: it has the advantage of
2957         # actually working.
2958         break;;
2959     * )
2960         break;;
2961   esac
2962 done
2963 test "$ac_cv_exeext" = no && ac_cv_exeext=
2964
2965 else
2966   ac_file=''
2967 fi
2968 if test -z "$ac_file"; then :
2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 $as_echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 as_fn_error 77 "C compiler cannot create executables
2977 See \`config.log' for more details" "$LINENO" 5 ; }
2978 else
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2980 $as_echo "yes" >&6; }
2981 fi
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2983 $as_echo_n "checking for C compiler default output file name... " >&6; }
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2985 $as_echo "$ac_file" >&6; }
2986 ac_exeext=$ac_cv_exeext
2987
2988 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2989 ac_clean_files=$ac_clean_files_save
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2991 $as_echo_n "checking for suffix of executables... " >&6; }
2992 if { { ac_try="$ac_link"
2993 case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998 $as_echo "$ac_try_echo"; } >&5
2999   (eval "$ac_link") 2>&5
3000   ac_status=$?
3001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002   test $ac_status = 0; }; then :
3003   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3004 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3005 # work properly (i.e., refer to `conftest.exe'), while it won't with
3006 # `rm'.
3007 for ac_file in conftest.exe conftest conftest.*; do
3008   test -f "$ac_file" || continue
3009   case $ac_file in
3010     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3011     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3012           break;;
3013     * ) break;;
3014   esac
3015 done
3016 else
3017   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3020 See \`config.log' for more details" "$LINENO" 5 ; }
3021 fi
3022 rm -f conftest conftest$ac_cv_exeext
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3024 $as_echo "$ac_cv_exeext" >&6; }
3025
3026 rm -f conftest.$ac_ext
3027 EXEEXT=$ac_cv_exeext
3028 ac_exeext=$EXEEXT
3029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h.  */
3031 #include <stdio.h>
3032 int
3033 main ()
3034 {
3035 FILE *f = fopen ("conftest.out", "w");
3036  return ferror (f) || fclose (f) != 0;
3037
3038   ;
3039   return 0;
3040 }
3041 _ACEOF
3042 ac_clean_files="$ac_clean_files conftest.out"
3043 # Check that the compiler produces executables we can run.  If not, either
3044 # the compiler is broken, or we cross compile.
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3046 $as_echo_n "checking whether we are cross compiling... " >&6; }
3047 if test "$cross_compiling" != yes; then
3048   { { ac_try="$ac_link"
3049 case "(($ac_try" in
3050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051   *) ac_try_echo=$ac_try;;
3052 esac
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055   (eval "$ac_link") 2>&5
3056   ac_status=$?
3057   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058   test $ac_status = 0; }
3059   if { ac_try='./conftest$ac_cv_exeext'
3060   { { case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066   (eval "$ac_try") 2>&5
3067   ac_status=$?
3068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069   test $ac_status = 0; }; }; then
3070     cross_compiling=no
3071   else
3072     if test "$cross_compiling" = maybe; then
3073         cross_compiling=yes
3074     else
3075         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error $? "cannot run C compiled programs.
3078 If you meant to cross compile, use \`--host'.
3079 See \`config.log' for more details" "$LINENO" 5 ; }
3080     fi
3081   fi
3082 fi
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3084 $as_echo "$cross_compiling" >&6; }
3085
3086 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3087 ac_clean_files=$ac_clean_files_save
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3089 $as_echo_n "checking for suffix of object files... " >&6; }
3090 if test "${ac_cv_objext+set}" = set; then :
3091   $as_echo_n "(cached) " >&6
3092 else
3093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h.  */
3095
3096 int
3097 main ()
3098 {
3099
3100   ;
3101   return 0;
3102 }
3103 _ACEOF
3104 rm -f conftest.o conftest.obj
3105 if { { ac_try="$ac_compile"
3106 case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112   (eval "$ac_compile") 2>&5
3113   ac_status=$?
3114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115   test $ac_status = 0; }; then :
3116   for ac_file in conftest.o conftest.obj conftest.*; do
3117   test -f "$ac_file" || continue;
3118   case $ac_file in
3119     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3120     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3121        break;;
3122   esac
3123 done
3124 else
3125   $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3127
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "cannot compute suffix of object files: cannot compile
3131 See \`config.log' for more details" "$LINENO" 5 ; }
3132 fi
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3136 $as_echo "$ac_cv_objext" >&6; }
3137 OBJEXT=$ac_cv_objext
3138 ac_objext=$OBJEXT
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3141 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3142   $as_echo_n "(cached) " >&6
3143 else
3144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150 #ifndef __GNUC__
3151        choke me
3152 #endif
3153
3154   ;
3155   return 0;
3156 }
3157 _ACEOF
3158 if ac_fn_c_try_compile "$LINENO"; then :
3159   ac_compiler_gnu=yes
3160 else
3161   ac_compiler_gnu=no
3162 fi
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3165
3166 fi
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3168 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3169 if test $ac_compiler_gnu = yes; then
3170   GCC=yes
3171 else
3172   GCC=
3173 fi
3174 ac_test_CFLAGS=${CFLAGS+set}
3175 ac_save_CFLAGS=$CFLAGS
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3177 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3178 if test "${ac_cv_prog_cc_g+set}" = set; then :
3179   $as_echo_n "(cached) " >&6
3180 else
3181   ac_save_c_werror_flag=$ac_c_werror_flag
3182    ac_c_werror_flag=yes
3183    ac_cv_prog_cc_g=no
3184    CFLAGS="-g"
3185    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h.  */
3187
3188 int
3189 main ()
3190 {
3191
3192   ;
3193   return 0;
3194 }
3195 _ACEOF
3196 if ac_fn_c_try_compile "$LINENO"; then :
3197   ac_cv_prog_cc_g=yes
3198 else
3199   CFLAGS=""
3200       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h.  */
3202
3203 int
3204 main ()
3205 {
3206
3207   ;
3208   return 0;
3209 }
3210 _ACEOF
3211 if ac_fn_c_try_compile "$LINENO"; then :
3212
3213 else
3214   ac_c_werror_flag=$ac_save_c_werror_flag
3215          CFLAGS="-g"
3216          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h.  */
3218
3219 int
3220 main ()
3221 {
3222
3223   ;
3224   return 0;
3225 }
3226 _ACEOF
3227 if ac_fn_c_try_compile "$LINENO"; then :
3228   ac_cv_prog_cc_g=yes
3229 fi
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 fi
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 fi
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235    ac_c_werror_flag=$ac_save_c_werror_flag
3236 fi
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3238 $as_echo "$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240   CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242   if test "$GCC" = yes; then
3243     CFLAGS="-g -O2"
3244   else
3245     CFLAGS="-g"
3246   fi
3247 else
3248   if test "$GCC" = yes; then
3249     CFLAGS="-O2"
3250   else
3251     CFLAGS=
3252   fi
3253 fi
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3255 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3256 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3257   $as_echo_n "(cached) " >&6
3258 else
3259   ac_cv_prog_cc_c89=no
3260 ac_save_CC=$CC
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h.  */
3263 #include <stdarg.h>
3264 #include <stdio.h>
3265 #include <sys/types.h>
3266 #include <sys/stat.h>
3267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3268 struct buf { int x; };
3269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3270 static char *e (p, i)
3271      char **p;
3272      int i;
3273 {
3274   return p[i];
3275 }
3276 static char *f (char * (*g) (char **, int), char **p, ...)
3277 {
3278   char *s;
3279   va_list v;
3280   va_start (v,p);
3281   s = g (p, va_arg (v,int));
3282   va_end (v);
3283   return s;
3284 }
3285
3286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3287    function prototypes and stuff, but not '\xHH' hex character constants.
3288    These don't provoke an error unfortunately, instead are silently treated
3289    as 'x'.  The following induces an error, until -std is added to get
3290    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3291    array size at least.  It's necessary to write '\x00'==0 to get something
3292    that's true only with -std.  */
3293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294
3295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3296    inside strings and character constants.  */
3297 #define FOO(x) 'x'
3298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299
3300 int test (int i, double x);
3301 struct s1 {int (*f) (int a);};
3302 struct s2 {int (*f) (double a);};
3303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3304 int argc;
3305 char **argv;
3306 int
3307 main ()
3308 {
3309 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3310   ;
3311   return 0;
3312 }
3313 _ACEOF
3314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3315         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 do
3317   CC="$ac_save_CC $ac_arg"
3318   if ac_fn_c_try_compile "$LINENO"; then :
3319   ac_cv_prog_cc_c89=$ac_arg
3320 fi
3321 rm -f core conftest.err conftest.$ac_objext
3322   test "x$ac_cv_prog_cc_c89" != "xno" && break
3323 done
3324 rm -f conftest.$ac_ext
3325 CC=$ac_save_CC
3326
3327 fi
3328 # AC_CACHE_VAL
3329 case "x$ac_cv_prog_cc_c89" in
3330   x)
3331     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3332 $as_echo "none needed" >&6; } ;;
3333   xno)
3334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3335 $as_echo "unsupported" >&6; } ;;
3336   *)
3337     CC="$CC $ac_cv_prog_cc_c89"
3338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3339 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3340 esac
3341 if test "x$ac_cv_prog_cc_c89" != xno; then :
3342
3343 fi
3344
3345 ac_ext=c
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350
3351
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3353 $as_echo_n "checking for inline... " >&6; }
3354 if test "${ac_cv_c_inline+set}" = set; then :
3355   $as_echo_n "(cached) " >&6
3356 else
3357   ac_cv_c_inline=no
3358 for ac_kw in inline __inline__ __inline; do
3359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h.  */
3361 #ifndef __cplusplus
3362 typedef int foo_t;
3363 static $ac_kw foo_t static_foo () {return 0; }
3364 $ac_kw foo_t foo () {return 0; }
3365 #endif
3366
3367 _ACEOF
3368 if ac_fn_c_try_compile "$LINENO"; then :
3369   ac_cv_c_inline=$ac_kw
3370 fi
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372   test "$ac_cv_c_inline" != no && break
3373 done
3374
3375 fi
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3377 $as_echo "$ac_cv_c_inline" >&6; }
3378
3379 case $ac_cv_c_inline in
3380   inline | yes) ;;
3381   *)
3382     case $ac_cv_c_inline in
3383       no) ac_val=;;
3384       *) ac_val=$ac_cv_c_inline;;
3385     esac
3386     cat >>confdefs.h <<_ACEOF
3387 #ifndef __cplusplus
3388 #define inline $ac_val
3389 #endif
3390 _ACEOF
3391     ;;
3392 esac
3393
3394 case $ac_cv_c_inline in
3395   inline | yes | no) INLINE='';;
3396   *)                 INLINE=$ac_cv_c_inline ;;
3397 esac
3398
3399 config_appended_defs="$config_appended_defs${newline}INLINE=${INLINE}"
3400
3401 # which switch to pass runtime path to dynamic libraries to the linker
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -R" >&5
3403 $as_echo_n "checking if linker supports -R... " >&6; }
3404 if test "${git_cv_ld_dashr+set}" = set; then :
3405   $as_echo_n "(cached) " >&6
3406 else
3407
3408    SAVE_LDFLAGS="${LDFLAGS}"
3409    LDFLAGS="${SAVE_LDFLAGS} -R /"
3410    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h.  */
3412
3413 int
3414 main ()
3415 {
3416
3417   ;
3418   return 0;
3419 }
3420 _ACEOF
3421 if ac_fn_c_try_link "$LINENO"; then :
3422   git_cv_ld_dashr=yes
3423 else
3424   git_cv_ld_dashr=no
3425 fi
3426 rm -f core conftest.err conftest.$ac_objext \
3427     conftest$ac_exeext conftest.$ac_ext
3428    LDFLAGS="${SAVE_LDFLAGS}"
3429
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_ld_dashr" >&5
3432 $as_echo "$git_cv_ld_dashr" >&6; }
3433 if test "$git_cv_ld_dashr" = "yes"; then
3434    CC_LD_DYNPATH=-R
3435 else
3436    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -Wl,-rpath," >&5
3437 $as_echo_n "checking if linker supports -Wl,-rpath,... " >&6; }
3438 if test "${git_cv_ld_wl_rpath+set}" = set; then :
3439   $as_echo_n "(cached) " >&6
3440 else
3441
3442       SAVE_LDFLAGS="${LDFLAGS}"
3443       LDFLAGS="${SAVE_LDFLAGS} -Wl,-rpath,/"
3444       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h.  */
3446
3447 int
3448 main ()
3449 {
3450
3451   ;
3452   return 0;
3453 }
3454 _ACEOF
3455 if ac_fn_c_try_link "$LINENO"; then :
3456   git_cv_ld_wl_rpath=yes
3457 else
3458   git_cv_ld_wl_rpath=no
3459 fi
3460 rm -f core conftest.err conftest.$ac_objext \
3461     conftest$ac_exeext conftest.$ac_ext
3462       LDFLAGS="${SAVE_LDFLAGS}"
3463
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_ld_wl_rpath" >&5
3466 $as_echo "$git_cv_ld_wl_rpath" >&6; }
3467    if test "$git_cv_ld_wl_rpath" = "yes"; then
3468       CC_LD_DYNPATH=-Wl,-rpath,
3469    else
3470       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rpath" >&5
3471 $as_echo_n "checking if linker supports -rpath... " >&6; }
3472 if test "${git_cv_ld_rpath+set}" = set; then :
3473   $as_echo_n "(cached) " >&6
3474 else
3475
3476          SAVE_LDFLAGS="${LDFLAGS}"
3477          LDFLAGS="${SAVE_LDFLAGS} -rpath /"
3478          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h.  */
3480
3481 int
3482 main ()
3483 {
3484
3485   ;
3486   return 0;
3487 }
3488 _ACEOF
3489 if ac_fn_c_try_link "$LINENO"; then :
3490   git_cv_ld_rpath=yes
3491 else
3492   git_cv_ld_rpath=no
3493 fi
3494 rm -f core conftest.err conftest.$ac_objext \
3495     conftest$ac_exeext conftest.$ac_ext
3496          LDFLAGS="${SAVE_LDFLAGS}"
3497
3498 fi
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_ld_rpath" >&5
3500 $as_echo "$git_cv_ld_rpath" >&6; }
3501       if test "$git_cv_ld_rpath" = "yes"; then
3502          CC_LD_DYNPATH=-rpath
3503       else
3504          CC_LD_DYNPATH=
3505          { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linker does not support runtime path to dynamic libraries" >&5
3506 $as_echo "$as_me: WARNING: linker does not support runtime path to dynamic libraries" >&2;}
3507       fi
3508    fi
3509 fi
3510
3511 config_appended_defs="$config_appended_defs${newline}CC_LD_DYNPATH=${CC_LD_DYNPATH}"
3512 #AC_PROG_INSTALL                # needs install-sh or install.sh in sources
3513 if test -n "$ac_tool_prefix"; then
3514   for ac_prog in gar ar
3515   do
3516     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3517 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519 $as_echo_n "checking for $ac_word... " >&6; }
3520 if test "${ac_cv_prog_AR+set}" = set; then :
3521   $as_echo_n "(cached) " >&6
3522 else
3523   if test -n "$AR"; then
3524   ac_cv_prog_AR="$AR" # Let the user override the test.
3525 else
3526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 for as_dir in $PATH
3528 do
3529   IFS=$as_save_IFS
3530   test -z "$as_dir" && as_dir=.
3531     for ac_exec_ext in '' $ac_executable_extensions; do
3532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3533     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535     break 2
3536   fi
3537 done
3538   done
3539 IFS=$as_save_IFS
3540
3541 fi
3542 fi
3543 AR=$ac_cv_prog_AR
3544 if test -n "$AR"; then
3545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3546 $as_echo "$AR" >&6; }
3547 else
3548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 $as_echo "no" >&6; }
3550 fi
3551
3552
3553     test -n "$AR" && break
3554   done
3555 fi
3556 if test -z "$AR"; then
3557   ac_ct_AR=$AR
3558   for ac_prog in gar ar
3559 do
3560   # Extract the first word of "$ac_prog", so it can be a program name with args.
3561 set dummy $ac_prog; ac_word=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3565   $as_echo_n "(cached) " >&6
3566 else
3567   if test -n "$ac_ct_AR"; then
3568   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3569 else
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3572 do
3573   IFS=$as_save_IFS
3574   test -z "$as_dir" && as_dir=.
3575     for ac_exec_ext in '' $ac_executable_extensions; do
3576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577     ac_cv_prog_ac_ct_AR="$ac_prog"
3578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579     break 2
3580   fi
3581 done
3582   done
3583 IFS=$as_save_IFS
3584
3585 fi
3586 fi
3587 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3588 if test -n "$ac_ct_AR"; then
3589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3590 $as_echo "$ac_ct_AR" >&6; }
3591 else
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 fi
3595
3596
3597   test -n "$ac_ct_AR" && break
3598 done
3599
3600   if test "x$ac_ct_AR" = x; then
3601     AR=":"
3602   else
3603     case $cross_compiling:$ac_tool_warned in
3604 yes:)
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3607 ac_tool_warned=yes ;;
3608 esac
3609     AR=$ac_ct_AR
3610   fi
3611 fi
3612
3613 for ac_prog in gtar tar
3614 do
3615   # Extract the first word of "$ac_prog", so it can be a program name with args.
3616 set dummy $ac_prog; ac_word=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if test "${ac_cv_prog_TAR+set}" = set; then :
3620   $as_echo_n "(cached) " >&6
3621 else
3622   if test -n "$TAR"; then
3623   ac_cv_prog_TAR="$TAR" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628   IFS=$as_save_IFS
3629   test -z "$as_dir" && as_dir=.
3630     for ac_exec_ext in '' $ac_executable_extensions; do
3631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3632     ac_cv_prog_TAR="$ac_prog"
3633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634     break 2
3635   fi
3636 done
3637   done
3638 IFS=$as_save_IFS
3639
3640 fi
3641 fi
3642 TAR=$ac_cv_prog_TAR
3643 if test -n "$TAR"; then
3644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
3645 $as_echo "$TAR" >&6; }
3646 else
3647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3649 fi
3650
3651
3652   test -n "$TAR" && break
3653 done
3654
3655 for ac_prog in gnudiff gdiff diff
3656 do
3657   # Extract the first word of "$ac_prog", so it can be a program name with args.
3658 set dummy $ac_prog; ac_word=$2
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if test "${ac_cv_prog_DIFF+set}" = set; then :
3662   $as_echo_n "(cached) " >&6
3663 else
3664   if test -n "$DIFF"; then
3665   ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
3666 else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3669 do
3670   IFS=$as_save_IFS
3671   test -z "$as_dir" && as_dir=.
3672     for ac_exec_ext in '' $ac_executable_extensions; do
3673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3674     ac_cv_prog_DIFF="$ac_prog"
3675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676     break 2
3677   fi
3678 done
3679   done
3680 IFS=$as_save_IFS
3681
3682 fi
3683 fi
3684 DIFF=$ac_cv_prog_DIFF
3685 if test -n "$DIFF"; then
3686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
3687 $as_echo "$DIFF" >&6; }
3688 else
3689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3691 fi
3692
3693
3694   test -n "$DIFF" && break
3695 done
3696
3697 # TCLTK_PATH will be set to some value if we want Tcl/Tk
3698 # or will be empty otherwise.
3699 if test -n "$NO_TCLTK"; then
3700   TCLTK_PATH=
3701 else
3702   if test "$with_tcltk" = ""; then
3703   # No Tcl/Tk switches given. Do not check for Tcl/Tk, use bare 'wish'.
3704     TCLTK_PATH=wish
3705   elif test "$with_tcltk" = "yes"; then
3706   # Tcl/Tk check requested.
3707     for ac_prog in wish
3708 do
3709   # Extract the first word of "$ac_prog", so it can be a program name with args.
3710 set dummy $ac_prog; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if test "${ac_cv_prog_TCLTK_PATH+set}" = set; then :
3714   $as_echo_n "(cached) " >&6
3715 else
3716   if test -n "$TCLTK_PATH"; then
3717   ac_cv_prog_TCLTK_PATH="$TCLTK_PATH" # Let the user override the test.
3718 else
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722   IFS=$as_save_IFS
3723   test -z "$as_dir" && as_dir=.
3724     for ac_exec_ext in '' $ac_executable_extensions; do
3725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3726     ac_cv_prog_TCLTK_PATH="$ac_prog"
3727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728     break 2
3729   fi
3730 done
3731   done
3732 IFS=$as_save_IFS
3733
3734 fi
3735 fi
3736 TCLTK_PATH=$ac_cv_prog_TCLTK_PATH
3737 if test -n "$TCLTK_PATH"; then
3738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLTK_PATH" >&5
3739 $as_echo "$TCLTK_PATH" >&6; }
3740 else
3741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3743 fi
3744
3745
3746   test -n "$TCLTK_PATH" && break
3747 done
3748
3749   else
3750     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Tcl/Tk interpreter $with_tcltk" >&5
3751 $as_echo "Using Tcl/Tk interpreter $with_tcltk" >&6; }
3752     TCLTK_PATH="$with_tcltk"
3753   fi
3754 fi
3755
3756 config_appended_defs="$config_appended_defs${newline}TCLTK_PATH=${TCLTK_PATH}"
3757 for ac_prog in asciidoc
3758 do
3759   # Extract the first word of "$ac_prog", so it can be a program name with args.
3760 set dummy $ac_prog; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_ASCIIDOC+set}" = set; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   if test -n "$ASCIIDOC"; then
3767   ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
3768 else
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 for as_dir in $PATH
3771 do
3772   IFS=$as_save_IFS
3773   test -z "$as_dir" && as_dir=.
3774     for ac_exec_ext in '' $ac_executable_extensions; do
3775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776     ac_cv_prog_ASCIIDOC="$ac_prog"
3777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778     break 2
3779   fi
3780 done
3781   done
3782 IFS=$as_save_IFS
3783
3784 fi
3785 fi
3786 ASCIIDOC=$ac_cv_prog_ASCIIDOC
3787 if test -n "$ASCIIDOC"; then
3788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
3789 $as_echo "$ASCIIDOC" >&6; }
3790 else
3791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 $as_echo "no" >&6; }
3793 fi
3794
3795
3796   test -n "$ASCIIDOC" && break
3797 done
3798
3799 if test -n "$ASCIIDOC"; then
3800         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asciidoc version" >&5
3801 $as_echo_n "checking for asciidoc version... " >&6; }
3802         asciidoc_version=`$ASCIIDOC --version 2>/dev/null`
3803         case "${asciidoc_version}" in
3804         asciidoc' '8*)
3805                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version}" >&5
3806 $as_echo "${asciidoc_version}" >&6; }
3807                 ;;
3808         *)
3809                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${asciidoc_version} (unknown)" >&5
3810 $as_echo "${asciidoc_version} (unknown)" >&6; }
3811                 ;;
3812         esac
3813 fi
3814
3815
3816 ## Checks for libraries.
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for libraries" >&5
3818 $as_echo "$as_me: CHECKS for libraries" >&6;}
3819 #
3820 # Define NO_OPENSSL environment variable if you do not have OpenSSL.
3821 # Define NEEDS_SSL_WITH_CRYPTO if you need -lcrypto with -lssl (Darwin).
3822
3823
3824 if test -n "$OPENSSLDIR"; then
3825    old_CPPFLAGS="$CPPFLAGS"
3826    old_LDFLAGS="$LDFLAGS"
3827    CPPFLAGS="-I$OPENSSLDIR/include $CPPFLAGS"
3828    LDFLAGS="-L$OPENSSLDIR/$lib $LDFLAGS"
3829 fi
3830
3831
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
3833 $as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
3834 if test "${ac_cv_lib_crypto_SHA1_Init+set}" = set; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   ac_check_lib_save_LIBS=$LIBS
3838 LIBS="-lcrypto  $LIBS"
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h.  */
3841
3842 /* Override any GCC internal prototype to avoid an error.
3843    Use char because int might match the return type of a GCC
3844    builtin and then its argument prototype would still apply.  */
3845 #ifdef __cplusplus
3846 extern "C"
3847 #endif
3848 char SHA1_Init ();
3849 int
3850 main ()
3851 {
3852 return SHA1_Init ();
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 if ac_fn_c_try_link "$LINENO"; then :
3858   ac_cv_lib_crypto_SHA1_Init=yes
3859 else
3860   ac_cv_lib_crypto_SHA1_Init=no
3861 fi
3862 rm -f core conftest.err conftest.$ac_objext \
3863     conftest$ac_exeext conftest.$ac_ext
3864 LIBS=$ac_check_lib_save_LIBS
3865 fi
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
3867 $as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
3868 if test "x$ac_cv_lib_crypto_SHA1_Init" = x""yes; then :
3869   NEEDS_SSL_WITH_CRYPTO=
3870 else
3871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lssl" >&5
3872 $as_echo_n "checking for SHA1_Init in -lssl... " >&6; }
3873 if test "${ac_cv_lib_ssl_SHA1_Init+set}" = set; then :
3874   $as_echo_n "(cached) " >&6
3875 else
3876   ac_check_lib_save_LIBS=$LIBS
3877 LIBS="-lssl  $LIBS"
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h.  */
3880
3881 /* Override any GCC internal prototype to avoid an error.
3882    Use char because int might match the return type of a GCC
3883    builtin and then its argument prototype would still apply.  */
3884 #ifdef __cplusplus
3885 extern "C"
3886 #endif
3887 char SHA1_Init ();
3888 int
3889 main ()
3890 {
3891 return SHA1_Init ();
3892   ;
3893   return 0;
3894 }
3895 _ACEOF
3896 if ac_fn_c_try_link "$LINENO"; then :
3897   ac_cv_lib_ssl_SHA1_Init=yes
3898 else
3899   ac_cv_lib_ssl_SHA1_Init=no
3900 fi
3901 rm -f core conftest.err conftest.$ac_objext \
3902     conftest$ac_exeext conftest.$ac_ext
3903 LIBS=$ac_check_lib_save_LIBS
3904 fi
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SHA1_Init" >&5
3906 $as_echo "$ac_cv_lib_ssl_SHA1_Init" >&6; }
3907 if test "x$ac_cv_lib_ssl_SHA1_Init" = x""yes; then :
3908   NEEDS_SSL_WITH_CRYPTO=YesPlease NO_OPENSSL=
3909 else
3910   NEEDS_SSL_WITH_CRYPTO=          NO_OPENSSL=YesPlease
3911 fi
3912
3913 fi
3914
3915
3916
3917 if test -n "$OPENSSLDIR"; then
3918    CPPFLAGS="$old_CPPFLAGS"
3919    LDFLAGS="$old_LDFLAGS"
3920 fi
3921
3922
3923
3924 config_appended_defs="$config_appended_defs${newline}NEEDS_SSL_WITH_CRYPTO=${NEEDS_SSL_WITH_CRYPTO}"
3925
3926 config_appended_defs="$config_appended_defs${newline}NO_OPENSSL=${NO_OPENSSL}"
3927
3928 #
3929 # Define USE_LIBPCRE if you have and want to use libpcre. git-grep will be
3930 # able to use Perl-compatible regular expressions.
3931 #
3932
3933 if test -n "$USE_LIBPCRE"; then
3934
3935
3936 if test -n "$LIBPCREDIR"; then
3937    old_CPPFLAGS="$CPPFLAGS"
3938    old_LDFLAGS="$LDFLAGS"
3939    CPPFLAGS="-I$LIBPCREDIR/include $CPPFLAGS"
3940    LDFLAGS="-L$LIBPCREDIR/$lib $LDFLAGS"
3941 fi
3942
3943
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_version in -lpcre" >&5
3945 $as_echo_n "checking for pcre_version in -lpcre... " >&6; }
3946 if test "${ac_cv_lib_pcre_pcre_version+set}" = set; then :
3947   $as_echo_n "(cached) " >&6
3948 else
3949   ac_check_lib_save_LIBS=$LIBS
3950 LIBS="-lpcre  $LIBS"
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h.  */
3953
3954 /* Override any GCC internal prototype to avoid an error.
3955    Use char because int might match the return type of a GCC
3956    builtin and then its argument prototype would still apply.  */
3957 #ifdef __cplusplus
3958 extern "C"
3959 #endif
3960 char pcre_version ();
3961 int
3962 main ()
3963 {
3964 return pcre_version ();
3965   ;
3966   return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_link "$LINENO"; then :
3970   ac_cv_lib_pcre_pcre_version=yes
3971 else
3972   ac_cv_lib_pcre_pcre_version=no
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext \
3975     conftest$ac_exeext conftest.$ac_ext
3976 LIBS=$ac_check_lib_save_LIBS
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_version" >&5
3979 $as_echo "$ac_cv_lib_pcre_pcre_version" >&6; }
3980 if test "x$ac_cv_lib_pcre_pcre_version" = x""yes; then :
3981   USE_LIBPCRE=YesPlease
3982 else
3983   USE_LIBPCRE=
3984 fi
3985
3986
3987
3988 if test -n "$LIBPCREDIR"; then
3989    CPPFLAGS="$old_CPPFLAGS"
3990    LDFLAGS="$old_LDFLAGS"
3991 fi
3992
3993
3994
3995 config_appended_defs="$config_appended_defs${newline}USE_LIBPCRE=${USE_LIBPCRE}"
3996
3997 fi
3998
3999 #
4000 # Define NO_CURL if you do not have libcurl installed.  git-http-pull and
4001 # git-http-push are not built, and you cannot use http:// and https://
4002 # transports.
4003
4004
4005 if test -n "$CURLDIR"; then
4006    old_CPPFLAGS="$CPPFLAGS"
4007    old_LDFLAGS="$LDFLAGS"
4008    CPPFLAGS="-I$CURLDIR/include $CPPFLAGS"
4009    LDFLAGS="-L$CURLDIR/$lib $LDFLAGS"
4010 fi
4011
4012
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_global_init in -lcurl" >&5
4014 $as_echo_n "checking for curl_global_init in -lcurl... " >&6; }
4015 if test "${ac_cv_lib_curl_curl_global_init+set}" = set; then :
4016   $as_echo_n "(cached) " >&6
4017 else
4018   ac_check_lib_save_LIBS=$LIBS
4019 LIBS="-lcurl  $LIBS"
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h.  */
4022
4023 /* Override any GCC internal prototype to avoid an error.
4024    Use char because int might match the return type of a GCC
4025    builtin and then its argument prototype would still apply.  */
4026 #ifdef __cplusplus
4027 extern "C"
4028 #endif
4029 char curl_global_init ();
4030 int
4031 main ()
4032 {
4033 return curl_global_init ();
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 if ac_fn_c_try_link "$LINENO"; then :
4039   ac_cv_lib_curl_curl_global_init=yes
4040 else
4041   ac_cv_lib_curl_curl_global_init=no
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext \
4044     conftest$ac_exeext conftest.$ac_ext
4045 LIBS=$ac_check_lib_save_LIBS
4046 fi
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_global_init" >&5
4048 $as_echo "$ac_cv_lib_curl_curl_global_init" >&6; }
4049 if test "x$ac_cv_lib_curl_curl_global_init" = x""yes; then :
4050   NO_CURL=
4051 else
4052   NO_CURL=YesPlease
4053 fi
4054
4055
4056
4057 if test -n "$CURLDIR"; then
4058    CPPFLAGS="$old_CPPFLAGS"
4059    LDFLAGS="$old_LDFLAGS"
4060 fi
4061
4062
4063
4064 config_appended_defs="$config_appended_defs${newline}NO_CURL=${NO_CURL}"
4065
4066 #
4067 # Define NO_EXPAT if you do not have expat installed.  git-http-push is
4068 # not built, and you cannot push using http:// and https:// transports.
4069
4070
4071 if test -n "$EXPATDIR"; then
4072    old_CPPFLAGS="$CPPFLAGS"
4073    old_LDFLAGS="$LDFLAGS"
4074    CPPFLAGS="-I$EXPATDIR/include $CPPFLAGS"
4075    LDFLAGS="-L$EXPATDIR/$lib $LDFLAGS"
4076 fi
4077
4078
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
4080 $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
4081 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
4082   $as_echo_n "(cached) " >&6
4083 else
4084   ac_check_lib_save_LIBS=$LIBS
4085 LIBS="-lexpat  $LIBS"
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h.  */
4088
4089 /* Override any GCC internal prototype to avoid an error.
4090    Use char because int might match the return type of a GCC
4091    builtin and then its argument prototype would still apply.  */
4092 #ifdef __cplusplus
4093 extern "C"
4094 #endif
4095 char XML_ParserCreate ();
4096 int
4097 main ()
4098 {
4099 return XML_ParserCreate ();
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 if ac_fn_c_try_link "$LINENO"; then :
4105   ac_cv_lib_expat_XML_ParserCreate=yes
4106 else
4107   ac_cv_lib_expat_XML_ParserCreate=no
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext \
4110     conftest$ac_exeext conftest.$ac_ext
4111 LIBS=$ac_check_lib_save_LIBS
4112 fi
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
4114 $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
4115 if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
4116   NO_EXPAT=
4117 else
4118   NO_EXPAT=YesPlease
4119 fi
4120
4121
4122
4123 if test -n "$EXPATDIR"; then
4124    CPPFLAGS="$old_CPPFLAGS"
4125    LDFLAGS="$old_LDFLAGS"
4126 fi
4127
4128
4129
4130 config_appended_defs="$config_appended_defs${newline}NO_EXPAT=${NO_EXPAT}"
4131
4132 #
4133 # Define NEEDS_LIBICONV if linking with libc is not enough (Darwin and
4134 # some Solaris installations).
4135 # Define NO_ICONV if neither libc nor libiconv support iconv.
4136
4137 if test -z "$NO_ICONV"; then
4138
4139
4140 if test -n "$ICONVDIR"; then
4141    old_CPPFLAGS="$CPPFLAGS"
4142    old_LDFLAGS="$LDFLAGS"
4143    CPPFLAGS="-I$ICONVDIR/include $CPPFLAGS"
4144    LDFLAGS="-L$ICONVDIR/$lib $LDFLAGS"
4145 fi
4146
4147
4148
4149
4150 if test -n "$ICONVDIR"; then
4151    lib_order="-liconv -lc"
4152 else
4153    lib_order="-lc -liconv"
4154 fi
4155
4156 NO_ICONV=YesPlease
4157
4158 for l in $lib_order; do
4159     if test "$l" = "-liconv"; then
4160        NEEDS_LIBICONV=YesPlease
4161     else
4162        NEEDS_LIBICONV=
4163     fi
4164
4165     old_LIBS="$LIBS"
4166     LIBS="$LIBS $l"
4167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv in $l" >&5
4168 $as_echo_n "checking for iconv in $l... " >&6; }
4169     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h.  */
4171 #include <iconv.h>
4172 int
4173 main ()
4174 {
4175 iconv_open("", "");
4176   ;
4177   return 0;
4178 }
4179 _ACEOF
4180 if ac_fn_c_try_link "$LINENO"; then :
4181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4182 $as_echo "yes" >&6; }
4183         NO_ICONV=
4184         break
4185 else
4186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4188 fi
4189 rm -f core conftest.err conftest.$ac_objext \
4190     conftest$ac_exeext conftest.$ac_ext
4191     LIBS="$old_LIBS"
4192 done
4193
4194 #in case of break
4195 LIBS="$old_LIBS"
4196
4197
4198 if test -n "$ICONVDIR"; then
4199    CPPFLAGS="$old_CPPFLAGS"
4200    LDFLAGS="$old_LDFLAGS"
4201 fi
4202
4203
4204
4205 config_appended_defs="$config_appended_defs${newline}NEEDS_LIBICONV=${NEEDS_LIBICONV}"
4206
4207 config_appended_defs="$config_appended_defs${newline}NO_ICONV=${NO_ICONV}"
4208
4209 if test -n "$NO_ICONV"; then
4210     NEEDS_LIBICONV=
4211 fi
4212
4213 fi
4214
4215 #
4216 # Define NO_DEFLATE_BOUND if deflateBound is missing from zlib.
4217
4218
4219 if test -n "$ZLIB_PATH"; then
4220    old_CPPFLAGS="$CPPFLAGS"
4221    old_LDFLAGS="$LDFLAGS"
4222    CPPFLAGS="-I$ZLIB_PATH/include $CPPFLAGS"
4223    LDFLAGS="-L$ZLIB_PATH/$lib $LDFLAGS"
4224 fi
4225
4226
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflateBound in -lz" >&5
4229 $as_echo_n "checking for deflateBound in -lz... " >&6; }
4230 old_LIBS="$LIBS"
4231 LIBS="$LIBS -lz"
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h.  */
4234
4235 #include <zlib.h>
4236 int
4237 main ()
4238 {
4239 deflateBound(0, 0);
4240   ;
4241   return 0;
4242 }
4243 _ACEOF
4244 if ac_fn_c_try_link "$LINENO"; then :
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4246 $as_echo "yes" >&6; }
4247 else
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4250         NO_DEFLATE_BOUND=yes
4251 fi
4252 rm -f core conftest.err conftest.$ac_objext \
4253     conftest$ac_exeext conftest.$ac_ext
4254 LIBS="$old_LIBS"
4255
4256
4257 if test -n "$ZLIB_PATH"; then
4258    CPPFLAGS="$old_CPPFLAGS"
4259    LDFLAGS="$old_LDFLAGS"
4260 fi
4261
4262
4263
4264 config_appended_defs="$config_appended_defs${newline}NO_DEFLATE_BOUND=${NO_DEFLATE_BOUND}"
4265
4266 #
4267 # Define NEEDS_SOCKET if linking with libc is not enough (SunOS,
4268 # Patrick Mauritz).
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lc" >&5
4270 $as_echo_n "checking for socket in -lc... " >&6; }
4271 if test "${ac_cv_lib_c_socket+set}" = set; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274   ac_check_lib_save_LIBS=$LIBS
4275 LIBS="-lc  $LIBS"
4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h.  */
4278
4279 /* Override any GCC internal prototype to avoid an error.
4280    Use char because int might match the return type of a GCC
4281    builtin and then its argument prototype would still apply.  */
4282 #ifdef __cplusplus
4283 extern "C"
4284 #endif
4285 char socket ();
4286 int
4287 main ()
4288 {
4289 return socket ();
4290   ;
4291   return 0;
4292 }
4293 _ACEOF
4294 if ac_fn_c_try_link "$LINENO"; then :
4295   ac_cv_lib_c_socket=yes
4296 else
4297   ac_cv_lib_c_socket=no
4298 fi
4299 rm -f core conftest.err conftest.$ac_objext \
4300     conftest$ac_exeext conftest.$ac_ext
4301 LIBS=$ac_check_lib_save_LIBS
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_socket" >&5
4304 $as_echo "$ac_cv_lib_c_socket" >&6; }
4305 if test "x$ac_cv_lib_c_socket" = x""yes; then :
4306   NEEDS_SOCKET=
4307 else
4308   NEEDS_SOCKET=YesPlease
4309 fi
4310
4311
4312 config_appended_defs="$config_appended_defs${newline}NEEDS_SOCKET=${NEEDS_SOCKET}"
4313 test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket"
4314
4315 #
4316 # The next few tests will define NEEDS_RESOLV if linking with
4317 # libresolv provides some of the functions we would normally get
4318 # from libc.
4319 NEEDS_RESOLV=
4320 #
4321 # Define NO_INET_NTOP if linking with -lresolv is not enough.
4322 # Solaris 2.7 in particular hos inet_ntop in -lresolv.
4323 NO_INET_NTOP=
4324 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
4325 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
4326
4327 else
4328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lresolv" >&5
4329 $as_echo_n "checking for inet_ntop in -lresolv... " >&6; }
4330 if test "${ac_cv_lib_resolv_inet_ntop+set}" = set; then :
4331   $as_echo_n "(cached) " >&6
4332 else
4333   ac_check_lib_save_LIBS=$LIBS
4334 LIBS="-lresolv  $LIBS"
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336 /* end confdefs.h.  */
4337
4338 /* Override any GCC internal prototype to avoid an error.
4339    Use char because int might match the return type of a GCC
4340    builtin and then its argument prototype would still apply.  */
4341 #ifdef __cplusplus
4342 extern "C"
4343 #endif
4344 char inet_ntop ();
4345 int
4346 main ()
4347 {
4348 return inet_ntop ();
4349   ;
4350   return 0;
4351 }
4352 _ACEOF
4353 if ac_fn_c_try_link "$LINENO"; then :
4354   ac_cv_lib_resolv_inet_ntop=yes
4355 else
4356   ac_cv_lib_resolv_inet_ntop=no
4357 fi
4358 rm -f core conftest.err conftest.$ac_objext \
4359     conftest$ac_exeext conftest.$ac_ext
4360 LIBS=$ac_check_lib_save_LIBS
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_ntop" >&5
4363 $as_echo "$ac_cv_lib_resolv_inet_ntop" >&6; }
4364 if test "x$ac_cv_lib_resolv_inet_ntop" = x""yes; then :
4365   NEEDS_RESOLV=YesPlease
4366 else
4367   NO_INET_NTOP=YesPlease
4368 fi
4369
4370
4371 fi
4372
4373
4374 config_appended_defs="$config_appended_defs${newline}NO_INET_NTOP=${NO_INET_NTOP}"
4375 #
4376 # Define NO_INET_PTON if linking with -lresolv is not enough.
4377 # Solaris 2.7 in particular hos inet_pton in -lresolv.
4378 NO_INET_PTON=
4379 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
4380 if test "x$ac_cv_func_inet_pton" = x""yes; then :
4381
4382 else
4383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton in -lresolv" >&5
4384 $as_echo_n "checking for inet_pton in -lresolv... " >&6; }
4385 if test "${ac_cv_lib_resolv_inet_pton+set}" = set; then :
4386   $as_echo_n "(cached) " >&6
4387 else
4388   ac_check_lib_save_LIBS=$LIBS
4389 LIBS="-lresolv  $LIBS"
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4392
4393 /* Override any GCC internal prototype to avoid an error.
4394    Use char because int might match the return type of a GCC
4395    builtin and then its argument prototype would still apply.  */
4396 #ifdef __cplusplus
4397 extern "C"
4398 #endif
4399 char inet_pton ();
4400 int
4401 main ()
4402 {
4403 return inet_pton ();
4404   ;
4405   return 0;
4406 }
4407 _ACEOF
4408 if ac_fn_c_try_link "$LINENO"; then :
4409   ac_cv_lib_resolv_inet_pton=yes
4410 else
4411   ac_cv_lib_resolv_inet_pton=no
4412 fi
4413 rm -f core conftest.err conftest.$ac_objext \
4414     conftest$ac_exeext conftest.$ac_ext
4415 LIBS=$ac_check_lib_save_LIBS
4416 fi
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_pton" >&5
4418 $as_echo "$ac_cv_lib_resolv_inet_pton" >&6; }
4419 if test "x$ac_cv_lib_resolv_inet_pton" = x""yes; then :
4420   NEEDS_RESOLV=YesPlease
4421 else
4422   NO_INET_PTON=YesPlease
4423 fi
4424
4425
4426 fi
4427
4428
4429 config_appended_defs="$config_appended_defs${newline}NO_INET_PTON=${NO_INET_PTON}"
4430 #
4431 # Define NO_HSTRERROR if linking with -lresolv is not enough.
4432 # Solaris 2.6 in particular has no hstrerror, even in -lresolv.
4433 NO_HSTRERROR=
4434 ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
4435 if test "x$ac_cv_func_hstrerror" = x""yes; then :
4436
4437 else
4438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror in -lresolv" >&5
4439 $as_echo_n "checking for hstrerror in -lresolv... " >&6; }
4440 if test "${ac_cv_lib_resolv_hstrerror+set}" = set; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443   ac_check_lib_save_LIBS=$LIBS
4444 LIBS="-lresolv  $LIBS"
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h.  */
4447
4448 /* Override any GCC internal prototype to avoid an error.
4449    Use char because int might match the return type of a GCC
4450    builtin and then its argument prototype would still apply.  */
4451 #ifdef __cplusplus
4452 extern "C"
4453 #endif
4454 char hstrerror ();
4455 int
4456 main ()
4457 {
4458 return hstrerror ();
4459   ;
4460   return 0;
4461 }
4462 _ACEOF
4463 if ac_fn_c_try_link "$LINENO"; then :
4464   ac_cv_lib_resolv_hstrerror=yes
4465 else
4466   ac_cv_lib_resolv_hstrerror=no
4467 fi
4468 rm -f core conftest.err conftest.$ac_objext \
4469     conftest$ac_exeext conftest.$ac_ext
4470 LIBS=$ac_check_lib_save_LIBS
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_hstrerror" >&5
4473 $as_echo "$ac_cv_lib_resolv_hstrerror" >&6; }
4474 if test "x$ac_cv_lib_resolv_hstrerror" = x""yes; then :
4475   NEEDS_RESOLV=YesPlease
4476 else
4477   NO_HSTRERROR=YesPlease
4478 fi
4479
4480
4481 fi
4482
4483
4484 config_appended_defs="$config_appended_defs${newline}NO_HSTRERROR=${NO_HSTRERROR}"
4485
4486
4487 config_appended_defs="$config_appended_defs${newline}NEEDS_RESOLV=${NEEDS_RESOLV}"
4488 #
4489 # If any of the above tests determined that -lresolv is needed at
4490 # build-time, also set it here for remaining configure-time checks.
4491 test -n "$NEEDS_RESOLV" && LIBS="$LIBS -lresolv"
4492
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lc" >&5
4494 $as_echo_n "checking for basename in -lc... " >&6; }
4495 if test "${ac_cv_lib_c_basename+set}" = set; then :
4496   $as_echo_n "(cached) " >&6
4497 else
4498   ac_check_lib_save_LIBS=$LIBS
4499 LIBS="-lc  $LIBS"
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h.  */
4502
4503 /* Override any GCC internal prototype to avoid an error.
4504    Use char because int might match the return type of a GCC
4505    builtin and then its argument prototype would still apply.  */
4506 #ifdef __cplusplus
4507 extern "C"
4508 #endif
4509 char basename ();
4510 int
4511 main ()
4512 {
4513 return basename ();
4514   ;
4515   return 0;
4516 }
4517 _ACEOF
4518 if ac_fn_c_try_link "$LINENO"; then :
4519   ac_cv_lib_c_basename=yes
4520 else
4521   ac_cv_lib_c_basename=no
4522 fi
4523 rm -f core conftest.err conftest.$ac_objext \
4524     conftest$ac_exeext conftest.$ac_ext
4525 LIBS=$ac_check_lib_save_LIBS
4526 fi
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_basename" >&5
4528 $as_echo "$ac_cv_lib_c_basename" >&6; }
4529 if test "x$ac_cv_lib_c_basename" = x""yes; then :
4530   NEEDS_LIBGEN=
4531 else
4532   NEEDS_LIBGEN=YesPlease
4533 fi
4534
4535
4536 config_appended_defs="$config_appended_defs${newline}NEEDS_LIBGEN=${NEEDS_LIBGEN}"
4537 test -n "$NEEDS_LIBGEN" && LIBS="$LIBS -lgen"
4538
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lc" >&5
4540 $as_echo_n "checking for gettext in -lc... " >&6; }
4541 if test "${ac_cv_lib_c_gettext+set}" = set; then :
4542   $as_echo_n "(cached) " >&6
4543 else
4544   ac_check_lib_save_LIBS=$LIBS
4545 LIBS="-lc  $LIBS"
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h.  */
4548
4549 /* Override any GCC internal prototype to avoid an error.
4550    Use char because int might match the return type of a GCC
4551    builtin and then its argument prototype would still apply.  */
4552 #ifdef __cplusplus
4553 extern "C"
4554 #endif
4555 char gettext ();
4556 int
4557 main ()
4558 {
4559 return gettext ();
4560   ;
4561   return 0;
4562 }
4563 _ACEOF
4564 if ac_fn_c_try_link "$LINENO"; then :
4565   ac_cv_lib_c_gettext=yes
4566 else
4567   ac_cv_lib_c_gettext=no
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext \
4570     conftest$ac_exeext conftest.$ac_ext
4571 LIBS=$ac_check_lib_save_LIBS
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettext" >&5
4574 $as_echo "$ac_cv_lib_c_gettext" >&6; }
4575 if test "x$ac_cv_lib_c_gettext" = x""yes; then :
4576   LIBC_CONTAINS_LIBINTL=YesPlease
4577 else
4578   LIBC_CONTAINS_LIBINTL=
4579 fi
4580
4581
4582 config_appended_defs="$config_appended_defs${newline}LIBC_CONTAINS_LIBINTL=${LIBC_CONTAINS_LIBINTL}"
4583
4584 #
4585 # Define NO_GETTEXT if you don't want Git output to be translated.
4586 # A translated Git requires GNU libintl or another gettext implementation
4587 ac_ext=c
4588 ac_cpp='$CPP $CPPFLAGS'
4589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4593 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4594 # On Suns, sometimes $CPP names a directory.
4595 if test -n "$CPP" && test -d "$CPP"; then
4596   CPP=
4597 fi
4598 if test -z "$CPP"; then
4599   if test "${ac_cv_prog_CPP+set}" = set; then :
4600   $as_echo_n "(cached) " >&6
4601 else
4602       # Double quotes because CPP needs to be expanded
4603     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4604     do
4605       ac_preproc_ok=false
4606 for ac_c_preproc_warn_flag in '' yes
4607 do
4608   # Use a header file that comes with gcc, so configuring glibc
4609   # with a fresh cross-compiler works.
4610   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4611   # <limits.h> exists even on freestanding compilers.
4612   # On the NeXT, cc -E runs the code through the compiler's parser,
4613   # not just through cpp. "Syntax error" is here to catch this case.
4614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h.  */
4616 #ifdef __STDC__
4617 # include <limits.h>
4618 #else
4619 # include <assert.h>
4620 #endif
4621                      Syntax error
4622 _ACEOF
4623 if ac_fn_c_try_cpp "$LINENO"; then :
4624
4625 else
4626   # Broken: fails on valid input.
4627 continue
4628 fi
4629 rm -f conftest.err conftest.i conftest.$ac_ext
4630
4631   # OK, works on sane cases.  Now check whether nonexistent headers
4632   # can be detected and how.
4633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h.  */
4635 #include <ac_nonexistent.h>
4636 _ACEOF
4637 if ac_fn_c_try_cpp "$LINENO"; then :
4638   # Broken: success on invalid input.
4639 continue
4640 else
4641   # Passes both tests.
4642 ac_preproc_ok=:
4643 break
4644 fi
4645 rm -f conftest.err conftest.i conftest.$ac_ext
4646
4647 done
4648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4649 rm -f conftest.i conftest.err conftest.$ac_ext
4650 if $ac_preproc_ok; then :
4651   break
4652 fi
4653
4654     done
4655     ac_cv_prog_CPP=$CPP
4656
4657 fi
4658   CPP=$ac_cv_prog_CPP
4659 else
4660   ac_cv_prog_CPP=$CPP
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4663 $as_echo "$CPP" >&6; }
4664 ac_preproc_ok=false
4665 for ac_c_preproc_warn_flag in '' yes
4666 do
4667   # Use a header file that comes with gcc, so configuring glibc
4668   # with a fresh cross-compiler works.
4669   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4670   # <limits.h> exists even on freestanding compilers.
4671   # On the NeXT, cc -E runs the code through the compiler's parser,
4672   # not just through cpp. "Syntax error" is here to catch this case.
4673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h.  */
4675 #ifdef __STDC__
4676 # include <limits.h>
4677 #else
4678 # include <assert.h>
4679 #endif
4680                      Syntax error
4681 _ACEOF
4682 if ac_fn_c_try_cpp "$LINENO"; then :
4683
4684 else
4685   # Broken: fails on valid input.
4686 continue
4687 fi
4688 rm -f conftest.err conftest.i conftest.$ac_ext
4689
4690   # OK, works on sane cases.  Now check whether nonexistent headers
4691   # can be detected and how.
4692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h.  */
4694 #include <ac_nonexistent.h>
4695 _ACEOF
4696 if ac_fn_c_try_cpp "$LINENO"; then :
4697   # Broken: success on invalid input.
4698 continue
4699 else
4700   # Passes both tests.
4701 ac_preproc_ok=:
4702 break
4703 fi
4704 rm -f conftest.err conftest.i conftest.$ac_ext
4705
4706 done
4707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4708 rm -f conftest.i conftest.err conftest.$ac_ext
4709 if $ac_preproc_ok; then :
4710
4711 else
4712   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4714 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4715 See \`config.log' for more details" "$LINENO" 5 ; }
4716 fi
4717
4718 ac_ext=c
4719 ac_cpp='$CPP $CPPFLAGS'
4720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4723
4724
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4726 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4727 if test "${ac_cv_path_GREP+set}" = set; then :
4728   $as_echo_n "(cached) " >&6
4729 else
4730   if test -z "$GREP"; then
4731   ac_path_GREP_found=false
4732   # Loop through the user's path and test for each of PROGNAME-LIST
4733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4735 do
4736   IFS=$as_save_IFS
4737   test -z "$as_dir" && as_dir=.
4738     for ac_prog in grep ggrep; do
4739     for ac_exec_ext in '' $ac_executable_extensions; do
4740       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4741       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4742 # Check for GNU ac_path_GREP and select it if it is found.
4743   # Check for GNU $ac_path_GREP
4744 case `"$ac_path_GREP" --version 2>&1` in
4745 *GNU*)
4746   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4747 *)
4748   ac_count=0
4749   $as_echo_n 0123456789 >"conftest.in"
4750   while :
4751   do
4752     cat "conftest.in" "conftest.in" >"conftest.tmp"
4753     mv "conftest.tmp" "conftest.in"
4754     cp "conftest.in" "conftest.nl"
4755     $as_echo 'GREP' >> "conftest.nl"
4756     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4757     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4758     as_fn_arith $ac_count + 1 && ac_count=$as_val
4759     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4760       # Best one so far, save it but keep looking for a better one
4761       ac_cv_path_GREP="$ac_path_GREP"
4762       ac_path_GREP_max=$ac_count
4763     fi
4764     # 10*(2^10) chars as input seems more than enough
4765     test $ac_count -gt 10 && break
4766   done
4767   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4768 esac
4769
4770       $ac_path_GREP_found && break 3
4771     done
4772   done
4773   done
4774 IFS=$as_save_IFS
4775   if test -z "$ac_cv_path_GREP"; then
4776     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4777   fi
4778 else
4779   ac_cv_path_GREP=$GREP
4780 fi
4781
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4784 $as_echo "$ac_cv_path_GREP" >&6; }
4785  GREP="$ac_cv_path_GREP"
4786
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4789 $as_echo_n "checking for egrep... " >&6; }
4790 if test "${ac_cv_path_EGREP+set}" = set; then :
4791   $as_echo_n "(cached) " >&6
4792 else
4793   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4794    then ac_cv_path_EGREP="$GREP -E"
4795    else
4796      if test -z "$EGREP"; then
4797   ac_path_EGREP_found=false
4798   # Loop through the user's path and test for each of PROGNAME-LIST
4799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4801 do
4802   IFS=$as_save_IFS
4803   test -z "$as_dir" && as_dir=.
4804     for ac_prog in egrep; do
4805     for ac_exec_ext in '' $ac_executable_extensions; do
4806       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4807       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4808 # Check for GNU ac_path_EGREP and select it if it is found.
4809   # Check for GNU $ac_path_EGREP
4810 case `"$ac_path_EGREP" --version 2>&1` in
4811 *GNU*)
4812   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4813 *)
4814   ac_count=0
4815   $as_echo_n 0123456789 >"conftest.in"
4816   while :
4817   do
4818     cat "conftest.in" "conftest.in" >"conftest.tmp"
4819     mv "conftest.tmp" "conftest.in"
4820     cp "conftest.in" "conftest.nl"
4821     $as_echo 'EGREP' >> "conftest.nl"
4822     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4823     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4824     as_fn_arith $ac_count + 1 && ac_count=$as_val
4825     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4826       # Best one so far, save it but keep looking for a better one
4827       ac_cv_path_EGREP="$ac_path_EGREP"
4828       ac_path_EGREP_max=$ac_count
4829     fi
4830     # 10*(2^10) chars as input seems more than enough
4831     test $ac_count -gt 10 && break
4832   done
4833   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4834 esac
4835
4836       $ac_path_EGREP_found && break 3
4837     done
4838   done
4839   done
4840 IFS=$as_save_IFS
4841   if test -z "$ac_cv_path_EGREP"; then
4842     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4843   fi
4844 else
4845   ac_cv_path_EGREP=$EGREP
4846 fi
4847
4848    fi
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4851 $as_echo "$ac_cv_path_EGREP" >&6; }
4852  EGREP="$ac_cv_path_EGREP"
4853
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4856 $as_echo_n "checking for ANSI C header files... " >&6; }
4857 if test "${ac_cv_header_stdc+set}" = set; then :
4858   $as_echo_n "(cached) " >&6
4859 else
4860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h.  */
4862 #include <stdlib.h>
4863 #include <stdarg.h>
4864 #include <string.h>
4865 #include <float.h>
4866
4867 int
4868 main ()
4869 {
4870
4871   ;
4872   return 0;
4873 }
4874 _ACEOF
4875 if ac_fn_c_try_compile "$LINENO"; then :
4876   ac_cv_header_stdc=yes
4877 else
4878   ac_cv_header_stdc=no
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881
4882 if test $ac_cv_header_stdc = yes; then
4883   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h.  */
4886 #include <string.h>
4887
4888 _ACEOF
4889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4890   $EGREP "memchr" >/dev/null 2>&1; then :
4891
4892 else
4893   ac_cv_header_stdc=no
4894 fi
4895 rm -f conftest*
4896
4897 fi
4898
4899 if test $ac_cv_header_stdc = yes; then
4900   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h.  */
4903 #include <stdlib.h>
4904
4905 _ACEOF
4906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4907   $EGREP "free" >/dev/null 2>&1; then :
4908
4909 else
4910   ac_cv_header_stdc=no
4911 fi
4912 rm -f conftest*
4913
4914 fi
4915
4916 if test $ac_cv_header_stdc = yes; then
4917   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4918   if test "$cross_compiling" = yes; then :
4919   :
4920 else
4921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h.  */
4923 #include <ctype.h>
4924 #include <stdlib.h>
4925 #if ((' ' & 0x0FF) == 0x020)
4926 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4927 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4928 #else
4929 # define ISLOWER(c) \
4930                    (('a' <= (c) && (c) <= 'i') \
4931                      || ('j' <= (c) && (c) <= 'r') \
4932                      || ('s' <= (c) && (c) <= 'z'))
4933 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4934 #endif
4935
4936 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4937 int
4938 main ()
4939 {
4940   int i;
4941   for (i = 0; i < 256; i++)
4942     if (XOR (islower (i), ISLOWER (i))
4943         || toupper (i) != TOUPPER (i))
4944       return 2;
4945   return 0;
4946 }
4947 _ACEOF
4948 if ac_fn_c_try_run "$LINENO"; then :
4949
4950 else
4951   ac_cv_header_stdc=no
4952 fi
4953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4954   conftest.$ac_objext conftest.beam conftest.$ac_ext
4955 fi
4956
4957 fi
4958 fi
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4960 $as_echo "$ac_cv_header_stdc" >&6; }
4961 if test $ac_cv_header_stdc = yes; then
4962
4963 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4964
4965 fi
4966
4967 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4969                   inttypes.h stdint.h unistd.h
4970 do :
4971   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4973 "
4974 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4975   cat >>confdefs.h <<_ACEOF
4976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4977 _ACEOF
4978
4979 fi
4980
4981 done
4982
4983
4984 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
4985 if test "x$ac_cv_header_libintl_h" = x""yes; then :
4986   NO_GETTEXT=
4987 else
4988   NO_GETTEXT=YesPlease
4989 fi
4990
4991
4992
4993 config_appended_defs="$config_appended_defs${newline}NO_GETTEXT=${NO_GETTEXT}"
4994
4995 if test -z "$NO_GETTEXT"; then
4996     test -n "$LIBC_CONTAINS_LIBINTL" || LIBS="$LIBS -lintl"
4997 fi
4998
4999 ## Checks for header files.
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for header files" >&5
5001 $as_echo "$as_me: CHECKS for header files" >&6;}
5002 #
5003 # Define NO_SYS_SELECT_H if you don't have sys/select.h.
5004 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5005 if test "x$ac_cv_header_sys_select_h" = x""yes; then :
5006   NO_SYS_SELECT_H=
5007 else
5008   NO_SYS_SELECT_H=UnfortunatelyYes
5009 fi
5010
5011
5012
5013 config_appended_defs="$config_appended_defs${newline}NO_SYS_SELECT_H=${NO_SYS_SELECT_H}"
5014 #
5015 # Define NO_SYS_POLL_H if you don't have sys/poll.h
5016 ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
5017 if test "x$ac_cv_header_sys_poll_h" = x""yes; then :
5018   NO_SYS_POLL_H=
5019 else
5020   NO_SYS_POLL_H=UnfortunatelyYes
5021 fi
5022
5023
5024
5025 config_appended_defs="$config_appended_defs${newline}NO_SYS_POLL_H=${NO_SYS_POLL_H}"
5026 #
5027 # Define NO_INTTYPES_H if you don't have inttypes.h
5028 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5029 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
5030   NO_INTTYPES_H=
5031 else
5032   NO_INTTYPES_H=UnfortunatelyYes
5033 fi
5034
5035
5036
5037 config_appended_defs="$config_appended_defs${newline}NO_INTTYPES_H=${NO_INTTYPES_H}"
5038 #
5039 # Define OLD_ICONV if your library has an old iconv(), where the second
5040 # (input buffer pointer) parameter is declared with type (const char **).
5041
5042
5043
5044 if test -n "$ICONVDIR"; then
5045    old_CPPFLAGS="$CPPFLAGS"
5046    old_LDFLAGS="$LDFLAGS"
5047    CPPFLAGS="-I$ICONVDIR/include $CPPFLAGS"
5048    LDFLAGS="-L$ICONVDIR/$lib $LDFLAGS"
5049 fi
5050
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old iconv()" >&5
5053 $as_echo_n "checking for old iconv()... " >&6; }
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h.  */
5056
5057
5058 #include <iconv.h>
5059
5060 extern size_t iconv(iconv_t cd,
5061                     char **inbuf, size_t *inbytesleft,
5062                     char **outbuf, size_t *outbytesleft);
5063
5064 int
5065 main ()
5066 {
5067
5068   ;
5069   return 0;
5070 }
5071 _ACEOF
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075 else
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5077 $as_echo "yes" >&6; }
5078         OLD_ICONV=UnfortunatelyYes
5079 fi
5080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081
5082
5083 if test -n "$ICONVDIR"; then
5084    CPPFLAGS="$old_CPPFLAGS"
5085    LDFLAGS="$old_LDFLAGS"
5086 fi
5087
5088
5089
5090 config_appended_defs="$config_appended_defs${newline}OLD_ICONV=${OLD_ICONV}"
5091
5092 ## Checks for typedefs, structures, and compiler characteristics.
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for typedefs, structures, and compiler characteristics" >&5
5094 $as_echo "$as_me: CHECKS for typedefs, structures, and compiler characteristics" >&6;}
5095 #
5096
5097    ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5098 #include <sys/socket.h>
5099 "
5100 if test "x$ac_cv_type_socklen_t" = x""yes; then :
5101
5102 else
5103
5104       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5105 $as_echo_n "checking for socklen_t equivalent... " >&6; }
5106       if test "${git_cv_socklen_t_equiv+set}" = set; then :
5107   $as_echo_n "(cached) " >&6
5108 else
5109
5110          # Systems have either "struct sockaddr *" or
5111          # "void *" as the second argument to getpeername
5112          git_cv_socklen_t_equiv=
5113          for arg2 in "struct sockaddr" void; do
5114             for t in int size_t unsigned long "unsigned long"; do
5115                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h.  */
5117
5118                   #include <sys/types.h>
5119                   #include <sys/socket.h>
5120
5121                   int getpeername (int, $arg2 *, $t *);
5122
5123 int
5124 main ()
5125 {
5126
5127                   $t len;
5128                   getpeername(0,0,&len);
5129
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135
5136                   git_cv_socklen_t_equiv="$t"
5137                   break 2
5138
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5141             done
5142          done
5143
5144          if test "x$git_cv_socklen_t_equiv" = x; then
5145             as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
5146          fi
5147
5148 fi
5149
5150       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $git_cv_socklen_t_equiv" >&5
5151 $as_echo "$git_cv_socklen_t_equiv" >&6; }
5152
5153 cat >>confdefs.h <<_ACEOF
5154 #define socklen_t $git_cv_socklen_t_equiv
5155 _ACEOF
5156
5157 fi
5158
5159
5160 case $ac_cv_type_socklen_t in
5161   yes)  SOCKLEN_T='';;
5162   *)    SOCKLEN_T=$git_cv_socklen_t_equiv;;
5163 esac
5164
5165 config_appended_defs="$config_appended_defs${newline}SOCKLEN_T=${SOCKLEN_T}"
5166
5167 # Define NO_D_INO_IN_DIRENT if you don't have d_ino in your struct dirent.
5168 ac_fn_c_check_member "$LINENO" "struct dirent" "d_ino" "ac_cv_member_struct_dirent_d_ino" "#include <dirent.h>
5169 "
5170 if test "x$ac_cv_member_struct_dirent_d_ino" = x""yes; then :
5171   NO_D_INO_IN_DIRENT=
5172 else
5173   NO_D_INO_IN_DIRENT=YesPlease
5174 fi
5175
5176
5177 config_appended_defs="$config_appended_defs${newline}NO_D_INO_IN_DIRENT=${NO_D_INO_IN_DIRENT}"
5178 #
5179 # Define NO_D_TYPE_IN_DIRENT if your platform defines DT_UNKNOWN but lacks
5180 # d_type in struct dirent (latest Cygwin -- will be fixed soonish).
5181 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
5182 "
5183 if test "x$ac_cv_member_struct_dirent_d_type" = x""yes; then :
5184   NO_D_TYPE_IN_DIRENT=
5185 else
5186   NO_D_TYPE_IN_DIRENT=YesPlease
5187 fi
5188
5189
5190 config_appended_defs="$config_appended_defs${newline}NO_D_TYPE_IN_DIRENT=${NO_D_TYPE_IN_DIRENT}"
5191 #
5192 # Define NO_SOCKADDR_STORAGE if your platform does not have struct
5193 # sockaddr_storage.
5194 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
5195 #include <sys/types.h>
5196 #include <sys/socket.h>
5197
5198 "
5199 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
5200   NO_SOCKADDR_STORAGE=
5201 else
5202   NO_SOCKADDR_STORAGE=YesPlease
5203 fi
5204
5205
5206 config_appended_defs="$config_appended_defs${newline}NO_SOCKADDR_STORAGE=${NO_SOCKADDR_STORAGE}"
5207 #
5208 # Define NO_IPV6 if you lack IPv6 support and getaddrinfo().
5209 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "
5210 #include <sys/types.h>
5211 #include <sys/socket.h>
5212 #include <netdb.h>
5213
5214 "
5215 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
5216
5217  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5218 if test "x$ac_cv_func_getaddrinfo" = x""yes; then :
5219
5220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
5221 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
5222 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   ac_func_search_save_LIBS=$LIBS
5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227 /* end confdefs.h.  */
5228
5229 /* Override any GCC internal prototype to avoid an error.
5230    Use char because int might match the return type of a GCC
5231    builtin and then its argument prototype would still apply.  */
5232 #ifdef __cplusplus
5233 extern "C"
5234 #endif
5235 char getaddrinfo ();
5236 int
5237 main ()
5238 {
5239 return getaddrinfo ();
5240   ;
5241   return 0;
5242 }
5243 _ACEOF
5244 for ac_lib in '' ; do
5245   if test -z "$ac_lib"; then
5246     ac_res="none required"
5247   else
5248     ac_res=-l$ac_lib
5249     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5250   fi
5251   if ac_fn_c_try_link "$LINENO"; then :
5252   ac_cv_search_getaddrinfo=$ac_res
5253 fi
5254 rm -f core conftest.err conftest.$ac_objext \
5255     conftest$ac_exeext
5256   if test "${ac_cv_search_getaddrinfo+set}" = set; then :
5257   break
5258 fi
5259 done
5260 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
5261
5262 else
5263   ac_cv_search_getaddrinfo=no
5264 fi
5265 rm conftest.$ac_ext
5266 LIBS=$ac_func_search_save_LIBS
5267 fi
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
5269 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
5270 ac_res=$ac_cv_search_getaddrinfo
5271 if test "$ac_res" != no; then :
5272   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5273   NO_IPV6=
5274 else
5275   NO_IPV6=YesPlease
5276 fi
5277
5278
5279 else
5280   NO_IPV6=YesPlease
5281 fi
5282
5283
5284 else
5285   NO_IPV6=YesPlease
5286 fi
5287
5288
5289 config_appended_defs="$config_appended_defs${newline}NO_IPV6=${NO_IPV6}"
5290 #
5291 # Define NO_REGEX if you have no or inferior regex support in your C library.
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the platform regex can handle null bytes" >&5
5293 $as_echo_n "checking whether the platform regex can handle null bytes... " >&6; }
5294 if test "${ac_cv_c_excellent_regex+set}" = set; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h.  */
5300 $ac_includes_default
5301 #include <regex.h>
5302
5303 int
5304 main ()
5305 {
5306 #ifdef REG_STARTEND
5307 yippeeyeswehaveit
5308 #endif
5309
5310   ;
5311   return 0;
5312 }
5313 _ACEOF
5314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5315   $EGREP "yippeeyeswehaveit" >/dev/null 2>&1; then :
5316   ac_cv_c_excellent_regex=yes
5317 else
5318   ac_cv_c_excellent_regex=no
5319 fi
5320 rm -f conftest*
5321
5322
5323 fi
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_excellent_regex" >&5
5325 $as_echo "$ac_cv_c_excellent_regex" >&6; }
5326 if test $ac_cv_c_excellent_regex = yes; then
5327         NO_REGEX=
5328 else
5329         NO_REGEX=YesPlease
5330 fi
5331
5332 config_appended_defs="$config_appended_defs${newline}NO_REGEX=${NO_REGEX}"
5333 #
5334 # Define FREAD_READS_DIRECTORIES if your are on a system which succeeds
5335 # when attempting to read from an fopen'ed directory.
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system succeeds to read fopen'ed directory" >&5
5337 $as_echo_n "checking whether system succeeds to read fopen'ed directory... " >&6; }
5338 if test "${ac_cv_fread_reads_directories+set}" = set; then :
5339   $as_echo_n "(cached) " >&6
5340 else
5341
5342 if test "$cross_compiling" = yes; then :
5343   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5345 as_fn_error $? "cannot run test program while cross compiling
5346 See \`config.log' for more details" "$LINENO" 5 ; }
5347 else
5348   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h.  */
5350 $ac_includes_default
5351 int
5352 main ()
5353 {
5354 char c;
5355                 FILE *f = fopen(".", "r");
5356                 return f && fread(&c, 1, 1, f)
5357   ;
5358   return 0;
5359 }
5360 _ACEOF
5361 if ac_fn_c_try_run "$LINENO"; then :
5362   ac_cv_fread_reads_directories=no
5363 else
5364   ac_cv_fread_reads_directories=yes
5365 fi
5366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5367   conftest.$ac_objext conftest.beam conftest.$ac_ext
5368 fi
5369
5370
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fread_reads_directories" >&5
5373 $as_echo "$ac_cv_fread_reads_directories" >&6; }
5374 if test $ac_cv_fread_reads_directories = yes; then
5375         FREAD_READS_DIRECTORIES=UnfortunatelyYes
5376 else
5377         FREAD_READS_DIRECTORIES=
5378 fi
5379
5380 config_appended_defs="$config_appended_defs${newline}FREAD_READS_DIRECTORIES=${FREAD_READS_DIRECTORIES}"
5381 #
5382 # Define SNPRINTF_RETURNS_BOGUS if your are on a system which snprintf()
5383 # or vsnprintf() return -1 instead of number of characters which would
5384 # have been written to the final string if enough space had been available.
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf() and/or vsnprintf() return bogus value" >&5
5386 $as_echo_n "checking whether snprintf() and/or vsnprintf() return bogus value... " >&6; }
5387 if test "${ac_cv_snprintf_returns_bogus+set}" = set; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390
5391 if test "$cross_compiling" = yes; then :
5392   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5394 as_fn_error $? "cannot run test program while cross compiling
5395 See \`config.log' for more details" "$LINENO" 5 ; }
5396 else
5397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h.  */
5399 $ac_includes_default
5400                 #include "stdarg.h"
5401
5402                 int test_vsnprintf(char *str, size_t maxsize, const char *format, ...)
5403                 {
5404                   int ret;
5405                   va_list ap;
5406                   va_start(ap, format);
5407                   ret = vsnprintf(str, maxsize, format, ap);
5408                   va_end(ap);
5409                   return ret;
5410                 }
5411 int
5412 main ()
5413 {
5414 char buf[6];
5415                   if (test_vsnprintf(buf, 3, "%s", "12345") != 5
5416                       || strcmp(buf, "12")) return 1;
5417                   if (snprintf(buf, 3, "%s", "12345") != 5
5418                       || strcmp(buf, "12")) return 1
5419   ;
5420   return 0;
5421 }
5422 _ACEOF
5423 if ac_fn_c_try_run "$LINENO"; then :
5424   ac_cv_snprintf_returns_bogus=no
5425 else
5426   ac_cv_snprintf_returns_bogus=yes
5427 fi
5428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5429   conftest.$ac_objext conftest.beam conftest.$ac_ext
5430 fi
5431
5432
5433 fi
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_snprintf_returns_bogus" >&5
5435 $as_echo "$ac_cv_snprintf_returns_bogus" >&6; }
5436 if test $ac_cv_snprintf_returns_bogus = yes; then
5437         SNPRINTF_RETURNS_BOGUS=UnfortunatelyYes
5438 else
5439         SNPRINTF_RETURNS_BOGUS=
5440 fi
5441
5442 config_appended_defs="$config_appended_defs${newline}SNPRINTF_RETURNS_BOGUS=${SNPRINTF_RETURNS_BOGUS}"
5443
5444
5445 ## Checks for library functions.
5446 ## (in default C library and libraries checked by AC_CHECK_LIB)
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: CHECKS for library functions" >&5
5448 $as_echo "$as_me: CHECKS for library functions" >&6;}
5449 #
5450 # Define NO_LIBGEN_H if you don't have libgen.h.
5451 ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
5452 if test "x$ac_cv_header_libgen_h" = x""yes; then :
5453   NO_LIBGEN_H=
5454 else
5455   NO_LIBGEN_H=YesPlease
5456 fi
5457
5458
5459
5460 config_appended_defs="$config_appended_defs${newline}NO_LIBGEN_H=${NO_LIBGEN_H}"
5461 #
5462 # Define HAVE_PATHS_H if you have paths.h.
5463 ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
5464 if test "x$ac_cv_header_paths_h" = x""yes; then :
5465   HAVE_PATHS_H=YesPlease
5466 else
5467   HAVE_PATHS_H=
5468 fi
5469
5470
5471
5472 config_appended_defs="$config_appended_defs${newline}HAVE_PATHS_H=${HAVE_PATHS_H}"
5473 #
5474 # Define HAVE_LIBCHARSET_H if have libcharset.h
5475 ac_fn_c_check_header_mongrel "$LINENO" "libcharset.h" "ac_cv_header_libcharset_h" "$ac_includes_default"
5476 if test "x$ac_cv_header_libcharset_h" = x""yes; then :
5477   HAVE_LIBCHARSET_H=YesPlease
5478 else
5479   HAVE_LIBCHARSET_H=
5480 fi
5481
5482
5483
5484 config_appended_defs="$config_appended_defs${newline}HAVE_LIBCHARSET_H=${HAVE_LIBCHARSET_H}"
5485 # Define CHARSET_LIB if libiconv does not export the locale_charset symbol
5486 # and libcharset does
5487 CHARSET_LIB=
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -liconv" >&5
5489 $as_echo_n "checking for locale_charset in -liconv... " >&6; }
5490 if test "${ac_cv_lib_iconv_locale_charset+set}" = set; then :
5491   $as_echo_n "(cached) " >&6
5492 else
5493   ac_check_lib_save_LIBS=$LIBS
5494 LIBS="-liconv  $LIBS"
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h.  */
5497
5498 /* Override any GCC internal prototype to avoid an error.
5499    Use char because int might match the return type of a GCC
5500    builtin and then its argument prototype would still apply.  */
5501 #ifdef __cplusplus
5502 extern "C"
5503 #endif
5504 char locale_charset ();
5505 int
5506 main ()
5507 {
5508 return locale_charset ();
5509   ;
5510   return 0;
5511 }
5512 _ACEOF
5513 if ac_fn_c_try_link "$LINENO"; then :
5514   ac_cv_lib_iconv_locale_charset=yes
5515 else
5516   ac_cv_lib_iconv_locale_charset=no
5517 fi
5518 rm -f core conftest.err conftest.$ac_objext \
5519     conftest$ac_exeext conftest.$ac_ext
5520 LIBS=$ac_check_lib_save_LIBS
5521 fi
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_locale_charset" >&5
5523 $as_echo "$ac_cv_lib_iconv_locale_charset" >&6; }
5524 if test "x$ac_cv_lib_iconv_locale_charset" = x""yes; then :
5525   cat >>confdefs.h <<_ACEOF
5526 #define HAVE_LIBICONV 1
5527 _ACEOF
5528
5529   LIBS="-liconv $LIBS"
5530
5531 else
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -lcharset" >&5
5533 $as_echo_n "checking for locale_charset in -lcharset... " >&6; }
5534 if test "${ac_cv_lib_charset_locale_charset+set}" = set; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   ac_check_lib_save_LIBS=$LIBS
5538 LIBS="-lcharset  $LIBS"
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h.  */
5541
5542 /* Override any GCC internal prototype to avoid an error.
5543    Use char because int might match the return type of a GCC
5544    builtin and then its argument prototype would still apply.  */
5545 #ifdef __cplusplus
5546 extern "C"
5547 #endif
5548 char locale_charset ();
5549 int
5550 main ()
5551 {
5552 return locale_charset ();
5553   ;
5554   return 0;
5555 }
5556 _ACEOF
5557 if ac_fn_c_try_link "$LINENO"; then :
5558   ac_cv_lib_charset_locale_charset=yes
5559 else
5560   ac_cv_lib_charset_locale_charset=no
5561 fi
5562 rm -f core conftest.err conftest.$ac_objext \
5563     conftest$ac_exeext conftest.$ac_ext
5564 LIBS=$ac_check_lib_save_LIBS
5565 fi
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_charset_locale_charset" >&5
5567 $as_echo "$ac_cv_lib_charset_locale_charset" >&6; }
5568 if test "x$ac_cv_lib_charset_locale_charset" = x""yes; then :
5569   CHARSET_LIB=-lcharset
5570 fi
5571
5572 fi
5573
5574
5575 config_appended_defs="$config_appended_defs${newline}CHARSET_LIB=${CHARSET_LIB}"
5576 #
5577 # Define NO_STRCASESTR if you don't have strcasestr.
5578 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
5579 if test "x$ac_cv_func_strcasestr" = x""yes; then :
5580
5581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strcasestr" >&5
5582 $as_echo_n "checking for library containing strcasestr... " >&6; }
5583 if test "${ac_cv_search_strcasestr+set}" = set; then :
5584   $as_echo_n "(cached) " >&6
5585 else
5586   ac_func_search_save_LIBS=$LIBS
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h.  */
5589
5590 /* Override any GCC internal prototype to avoid an error.
5591    Use char because int might match the return type of a GCC
5592    builtin and then its argument prototype would still apply.  */
5593 #ifdef __cplusplus
5594 extern "C"
5595 #endif
5596 char strcasestr ();
5597 int
5598 main ()
5599 {
5600 return strcasestr ();
5601   ;
5602   return 0;
5603 }
5604 _ACEOF
5605 for ac_lib in '' ; do
5606   if test -z "$ac_lib"; then
5607     ac_res="none required"
5608   else
5609     ac_res=-l$ac_lib
5610     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5611   fi
5612   if ac_fn_c_try_link "$LINENO"; then :
5613   ac_cv_search_strcasestr=$ac_res
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext \
5616     conftest$ac_exeext
5617   if test "${ac_cv_search_strcasestr+set}" = set; then :
5618   break
5619 fi
5620 done
5621 if test "${ac_cv_search_strcasestr+set}" = set; then :
5622
5623 else
5624   ac_cv_search_strcasestr=no
5625 fi
5626 rm conftest.$ac_ext
5627 LIBS=$ac_func_search_save_LIBS
5628 fi
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strcasestr" >&5
5630 $as_echo "$ac_cv_search_strcasestr" >&6; }
5631 ac_res=$ac_cv_search_strcasestr
5632 if test "$ac_res" != no; then :
5633   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5634   NO_STRCASESTR=
5635 else
5636   NO_STRCASESTR=YesPlease
5637 fi
5638
5639
5640 else
5641   NO_STRCASESTR=YesPlease
5642 fi
5643
5644
5645 config_appended_defs="$config_appended_defs${newline}NO_STRCASESTR=${NO_STRCASESTR}"
5646 #
5647 # Define NO_STRTOK_R if you don't have strtok_r
5648 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
5649 if test "x$ac_cv_func_strtok_r" = x""yes; then :
5650
5651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strtok_r" >&5
5652 $as_echo_n "checking for library containing strtok_r... " >&6; }
5653 if test "${ac_cv_search_strtok_r+set}" = set; then :
5654   $as_echo_n "(cached) " >&6
5655 else
5656   ac_func_search_save_LIBS=$LIBS
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h.  */
5659
5660 /* Override any GCC internal prototype to avoid an error.
5661    Use char because int might match the return type of a GCC
5662    builtin and then its argument prototype would still apply.  */
5663 #ifdef __cplusplus
5664 extern "C"
5665 #endif
5666 char strtok_r ();
5667 int
5668 main ()
5669 {
5670 return strtok_r ();
5671   ;
5672   return 0;
5673 }
5674 _ACEOF
5675 for ac_lib in '' ; do
5676   if test -z "$ac_lib"; then
5677     ac_res="none required"
5678   else
5679     ac_res=-l$ac_lib
5680     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5681   fi
5682   if ac_fn_c_try_link "$LINENO"; then :
5683   ac_cv_search_strtok_r=$ac_res
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext \
5686     conftest$ac_exeext
5687   if test "${ac_cv_search_strtok_r+set}" = set; then :
5688   break
5689 fi
5690 done
5691 if test "${ac_cv_search_strtok_r+set}" = set; then :
5692
5693 else
5694   ac_cv_search_strtok_r=no
5695 fi
5696 rm conftest.$ac_ext
5697 LIBS=$ac_func_search_save_LIBS
5698 fi
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strtok_r" >&5
5700 $as_echo "$ac_cv_search_strtok_r" >&6; }
5701 ac_res=$ac_cv_search_strtok_r
5702 if test "$ac_res" != no; then :
5703   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5704   NO_STRTOK_R=
5705 else
5706   NO_STRTOK_R=YesPlease
5707 fi
5708
5709
5710 else
5711   NO_STRTOK_R=YesPlease
5712 fi
5713
5714
5715 config_appended_defs="$config_appended_defs${newline}NO_STRTOK_R=${NO_STRTOK_R}"
5716 #
5717 # Define NO_FNMATCH if you don't have fnmatch
5718 ac_fn_c_check_func "$LINENO" "fnmatch" "ac_cv_func_fnmatch"
5719 if test "x$ac_cv_func_fnmatch" = x""yes; then :
5720
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fnmatch" >&5
5722 $as_echo_n "checking for library containing fnmatch... " >&6; }
5723 if test "${ac_cv_search_fnmatch+set}" = set; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726   ac_func_search_save_LIBS=$LIBS
5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5728 /* end confdefs.h.  */
5729
5730 /* Override any GCC internal prototype to avoid an error.
5731    Use char because int might match the return type of a GCC
5732    builtin and then its argument prototype would still apply.  */
5733 #ifdef __cplusplus
5734 extern "C"
5735 #endif
5736 char fnmatch ();
5737 int
5738 main ()
5739 {
5740 return fnmatch ();
5741   ;
5742   return 0;
5743 }
5744 _ACEOF
5745 for ac_lib in '' ; do
5746   if test -z "$ac_lib"; then
5747     ac_res="none required"
5748   else
5749     ac_res=-l$ac_lib
5750     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5751   fi
5752   if ac_fn_c_try_link "$LINENO"; then :
5753   ac_cv_search_fnmatch=$ac_res
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext \
5756     conftest$ac_exeext
5757   if test "${ac_cv_search_fnmatch+set}" = set; then :
5758   break
5759 fi
5760 done
5761 if test "${ac_cv_search_fnmatch+set}" = set; then :
5762
5763 else
5764   ac_cv_search_fnmatch=no
5765 fi
5766 rm conftest.$ac_ext
5767 LIBS=$ac_func_search_save_LIBS
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fnmatch" >&5
5770 $as_echo "$ac_cv_search_fnmatch" >&6; }
5771 ac_res=$ac_cv_search_fnmatch
5772 if test "$ac_res" != no; then :
5773   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5774   NO_FNMATCH=
5775 else
5776   NO_FNMATCH=YesPlease
5777 fi
5778
5779
5780 else
5781   NO_FNMATCH=YesPlease
5782 fi
5783
5784
5785 config_appended_defs="$config_appended_defs${newline}NO_FNMATCH=${NO_FNMATCH}"
5786 #
5787 # Define NO_FNMATCH_CASEFOLD if your fnmatch function doesn't have the
5788 # FNM_CASEFOLD GNU extension.
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the fnmatch function supports the FNMATCH_CASEFOLD GNU extension" >&5
5790 $as_echo_n "checking whether the fnmatch function supports the FNMATCH_CASEFOLD GNU extension... " >&6; }
5791 if test "${ac_cv_c_excellent_fnmatch+set}" = set; then :
5792   $as_echo_n "(cached) " >&6
5793 else
5794
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h.  */
5797
5798 #include <fnmatch.h>
5799
5800 int
5801 main ()
5802 {
5803 #ifdef FNM_CASEFOLD
5804 yippeeyeswehaveit
5805 #endif
5806
5807   ;
5808   return 0;
5809 }
5810 _ACEOF
5811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5812   $EGREP "yippeeyeswehaveit" >/dev/null 2>&1; then :
5813   ac_cv_c_excellent_fnmatch=yes
5814 else
5815   ac_cv_c_excellent_fnmatch=no
5816 fi
5817 rm -f conftest*
5818
5819
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_excellent_fnmatch" >&5
5822 $as_echo "$ac_cv_c_excellent_fnmatch" >&6; }
5823 if test $ac_cv_c_excellent_fnmatch = yes; then
5824         NO_FNMATCH_CASEFOLD=
5825 else
5826         NO_FNMATCH_CASEFOLD=YesPlease
5827 fi
5828
5829 config_appended_defs="$config_appended_defs${newline}NO_FNMATCH_CASEFOLD=${NO_FNMATCH_CASEFOLD}"
5830 #
5831 # Define NO_MEMMEM if you don't have memmem.
5832 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5833 if test "x$ac_cv_func_memmem" = x""yes; then :
5834
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing memmem" >&5
5836 $as_echo_n "checking for library containing memmem... " >&6; }
5837 if test "${ac_cv_search_memmem+set}" = set; then :
5838   $as_echo_n "(cached) " >&6
5839 else
5840   ac_func_search_save_LIBS=$LIBS
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h.  */
5843
5844 /* Override any GCC internal prototype to avoid an error.
5845    Use char because int might match the return type of a GCC
5846    builtin and then its argument prototype would still apply.  */
5847 #ifdef __cplusplus
5848 extern "C"
5849 #endif
5850 char memmem ();
5851 int
5852 main ()
5853 {
5854 return memmem ();
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 for ac_lib in '' ; do
5860   if test -z "$ac_lib"; then
5861     ac_res="none required"
5862   else
5863     ac_res=-l$ac_lib
5864     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5865   fi
5866   if ac_fn_c_try_link "$LINENO"; then :
5867   ac_cv_search_memmem=$ac_res
5868 fi
5869 rm -f core conftest.err conftest.$ac_objext \
5870     conftest$ac_exeext
5871   if test "${ac_cv_search_memmem+set}" = set; then :
5872   break
5873 fi
5874 done
5875 if test "${ac_cv_search_memmem+set}" = set; then :
5876
5877 else
5878   ac_cv_search_memmem=no
5879 fi
5880 rm conftest.$ac_ext
5881 LIBS=$ac_func_search_save_LIBS
5882 fi
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_memmem" >&5
5884 $as_echo "$ac_cv_search_memmem" >&6; }
5885 ac_res=$ac_cv_search_memmem
5886 if test "$ac_res" != no; then :
5887   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5888   NO_MEMMEM=
5889 else
5890   NO_MEMMEM=YesPlease
5891 fi
5892
5893
5894 else
5895   NO_MEMMEM=YesPlease
5896 fi
5897
5898
5899 config_appended_defs="$config_appended_defs${newline}NO_MEMMEM=${NO_MEMMEM}"
5900 #
5901 # Define NO_STRLCPY if you don't have strlcpy.
5902 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
5903 if test "x$ac_cv_func_strlcpy" = x""yes; then :
5904
5905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcpy" >&5
5906 $as_echo_n "checking for library containing strlcpy... " >&6; }
5907 if test "${ac_cv_search_strlcpy+set}" = set; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   ac_func_search_save_LIBS=$LIBS
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h.  */
5913
5914 /* Override any GCC internal prototype to avoid an error.
5915    Use char because int might match the return type of a GCC
5916    builtin and then its argument prototype would still apply.  */
5917 #ifdef __cplusplus
5918 extern "C"
5919 #endif
5920 char strlcpy ();
5921 int
5922 main ()
5923 {
5924 return strlcpy ();
5925   ;
5926   return 0;
5927 }
5928 _ACEOF
5929 for ac_lib in '' ; do
5930   if test -z "$ac_lib"; then
5931     ac_res="none required"
5932   else
5933     ac_res=-l$ac_lib
5934     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5935   fi
5936   if ac_fn_c_try_link "$LINENO"; then :
5937   ac_cv_search_strlcpy=$ac_res
5938 fi
5939 rm -f core conftest.err conftest.$ac_objext \
5940     conftest$ac_exeext
5941   if test "${ac_cv_search_strlcpy+set}" = set; then :
5942   break
5943 fi
5944 done
5945 if test "${ac_cv_search_strlcpy+set}" = set; then :
5946
5947 else
5948   ac_cv_search_strlcpy=no
5949 fi
5950 rm conftest.$ac_ext
5951 LIBS=$ac_func_search_save_LIBS
5952 fi
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcpy" >&5
5954 $as_echo "$ac_cv_search_strlcpy" >&6; }
5955 ac_res=$ac_cv_search_strlcpy
5956 if test "$ac_res" != no; then :
5957   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5958   NO_STRLCPY=
5959 else
5960   NO_STRLCPY=YesPlease
5961 fi
5962
5963
5964 else
5965   NO_STRLCPY=YesPlease
5966 fi
5967
5968
5969 config_appended_defs="$config_appended_defs${newline}NO_STRLCPY=${NO_STRLCPY}"
5970 #
5971 # Define NO_UINTMAX_T if your platform does not have uintmax_t
5972 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "
5973 #include <inttypes.h>
5974
5975 "
5976 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
5977   NO_UINTMAX_T=
5978 else
5979   NO_UINTMAX_T=YesPlease
5980 fi
5981
5982
5983 config_appended_defs="$config_appended_defs${newline}NO_UINTMAX_T=${NO_UINTMAX_T}"
5984 #
5985 # Define NO_STRTOUMAX if you don't have strtoumax in the C library.
5986 ac_fn_c_check_func "$LINENO" "strtoumax" "ac_cv_func_strtoumax"
5987 if test "x$ac_cv_func_strtoumax" = x""yes; then :
5988
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strtoumax" >&5
5990 $as_echo_n "checking for library containing strtoumax... " >&6; }
5991 if test "${ac_cv_search_strtoumax+set}" = set; then :
5992   $as_echo_n "(cached) " >&6
5993 else
5994   ac_func_search_save_LIBS=$LIBS
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h.  */
5997
5998 /* Override any GCC internal prototype to avoid an error.
5999    Use char because int might match the return type of a GCC
6000    builtin and then its argument prototype would still apply.  */
6001 #ifdef __cplusplus
6002 extern "C"
6003 #endif
6004 char strtoumax ();
6005 int
6006 main ()
6007 {
6008 return strtoumax ();
6009   ;
6010   return 0;
6011 }
6012 _ACEOF
6013 for ac_lib in '' ; do
6014   if test -z "$ac_lib"; then
6015     ac_res="none required"
6016   else
6017     ac_res=-l$ac_lib
6018     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6019   fi
6020   if ac_fn_c_try_link "$LINENO"; then :
6021   ac_cv_search_strtoumax=$ac_res
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext \
6024     conftest$ac_exeext
6025   if test "${ac_cv_search_strtoumax+set}" = set; then :
6026   break
6027 fi
6028 done
6029 if test "${ac_cv_search_strtoumax+set}" = set; then :
6030
6031 else
6032   ac_cv_search_strtoumax=no
6033 fi
6034 rm conftest.$ac_ext
6035 LIBS=$ac_func_search_save_LIBS
6036 fi
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strtoumax" >&5
6038 $as_echo "$ac_cv_search_strtoumax" >&6; }
6039 ac_res=$ac_cv_search_strtoumax
6040 if test "$ac_res" != no; then :
6041   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6042   NO_STRTOUMAX=
6043 else
6044   NO_STRTOUMAX=YesPlease
6045 fi
6046
6047
6048 else
6049   NO_STRTOUMAX=YesPlease
6050 fi
6051
6052
6053 config_appended_defs="$config_appended_defs${newline}NO_STRTOUMAX=${NO_STRTOUMAX}"
6054 #
6055 # Define NO_SETENV if you don't have setenv in the C library.
6056 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
6057 if test "x$ac_cv_func_setenv" = x""yes; then :
6058
6059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setenv" >&5
6060 $as_echo_n "checking for library containing setenv... " >&6; }
6061 if test "${ac_cv_search_setenv+set}" = set; then :
6062   $as_echo_n "(cached) " >&6
6063 else
6064   ac_func_search_save_LIBS=$LIBS
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h.  */
6067
6068 /* Override any GCC internal prototype to avoid an error.
6069    Use char because int might match the return type of a GCC
6070    builtin and then its argument prototype would still apply.  */
6071 #ifdef __cplusplus
6072 extern "C"
6073 #endif
6074 char setenv ();
6075 int
6076 main ()
6077 {
6078 return setenv ();
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 for ac_lib in '' ; do
6084   if test -z "$ac_lib"; then
6085     ac_res="none required"
6086   else
6087     ac_res=-l$ac_lib
6088     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6089   fi
6090   if ac_fn_c_try_link "$LINENO"; then :
6091   ac_cv_search_setenv=$ac_res
6092 fi
6093 rm -f core conftest.err conftest.$ac_objext \
6094     conftest$ac_exeext
6095   if test "${ac_cv_search_setenv+set}" = set; then :
6096   break
6097 fi
6098 done
6099 if test "${ac_cv_search_setenv+set}" = set; then :
6100
6101 else
6102   ac_cv_search_setenv=no
6103 fi
6104 rm conftest.$ac_ext
6105 LIBS=$ac_func_search_save_LIBS
6106 fi
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setenv" >&5
6108 $as_echo "$ac_cv_search_setenv" >&6; }
6109 ac_res=$ac_cv_search_setenv
6110 if test "$ac_res" != no; then :
6111   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6112   NO_SETENV=
6113 else
6114   NO_SETENV=YesPlease
6115 fi
6116
6117
6118 else
6119   NO_SETENV=YesPlease
6120 fi
6121
6122
6123 config_appended_defs="$config_appended_defs${newline}NO_SETENV=${NO_SETENV}"
6124 #
6125 # Define NO_UNSETENV if you don't have unsetenv in the C library.
6126 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6127 if test "x$ac_cv_func_unsetenv" = x""yes; then :
6128
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing unsetenv" >&5
6130 $as_echo_n "checking for library containing unsetenv... " >&6; }
6131 if test "${ac_cv_search_unsetenv+set}" = set; then :
6132   $as_echo_n "(cached) " >&6
6133 else
6134   ac_func_search_save_LIBS=$LIBS
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h.  */
6137
6138 /* Override any GCC internal prototype to avoid an error.
6139    Use char because int might match the return type of a GCC
6140    builtin and then its argument prototype would still apply.  */
6141 #ifdef __cplusplus
6142 extern "C"
6143 #endif
6144 char unsetenv ();
6145 int
6146 main ()
6147 {
6148 return unsetenv ();
6149   ;
6150   return 0;
6151 }
6152 _ACEOF
6153 for ac_lib in '' ; do
6154   if test -z "$ac_lib"; then
6155     ac_res="none required"
6156   else
6157     ac_res=-l$ac_lib
6158     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6159   fi
6160   if ac_fn_c_try_link "$LINENO"; then :
6161   ac_cv_search_unsetenv=$ac_res
6162 fi
6163 rm -f core conftest.err conftest.$ac_objext \
6164     conftest$ac_exeext
6165   if test "${ac_cv_search_unsetenv+set}" = set; then :
6166   break
6167 fi
6168 done
6169 if test "${ac_cv_search_unsetenv+set}" = set; then :
6170
6171 else
6172   ac_cv_search_unsetenv=no
6173 fi
6174 rm conftest.$ac_ext
6175 LIBS=$ac_func_search_save_LIBS
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_unsetenv" >&5
6178 $as_echo "$ac_cv_search_unsetenv" >&6; }
6179 ac_res=$ac_cv_search_unsetenv
6180 if test "$ac_res" != no; then :
6181   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6182   NO_UNSETENV=
6183 else
6184   NO_UNSETENV=YesPlease
6185 fi
6186
6187
6188 else
6189   NO_UNSETENV=YesPlease
6190 fi
6191
6192
6193 config_appended_defs="$config_appended_defs${newline}NO_UNSETENV=${NO_UNSETENV}"
6194 #
6195 # Define NO_MKDTEMP if you don't have mkdtemp in the C library.
6196 ac_fn_c_check_func "$LINENO" "mkdtemp" "ac_cv_func_mkdtemp"
6197 if test "x$ac_cv_func_mkdtemp" = x""yes; then :
6198
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mkdtemp" >&5
6200 $as_echo_n "checking for library containing mkdtemp... " >&6; }
6201 if test "${ac_cv_search_mkdtemp+set}" = set; then :
6202   $as_echo_n "(cached) " >&6
6203 else
6204   ac_func_search_save_LIBS=$LIBS
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h.  */
6207
6208 /* Override any GCC internal prototype to avoid an error.
6209    Use char because int might match the return type of a GCC
6210    builtin and then its argument prototype would still apply.  */
6211 #ifdef __cplusplus
6212 extern "C"
6213 #endif
6214 char mkdtemp ();
6215 int
6216 main ()
6217 {
6218 return mkdtemp ();
6219   ;
6220   return 0;
6221 }
6222 _ACEOF
6223 for ac_lib in '' ; do
6224   if test -z "$ac_lib"; then
6225     ac_res="none required"
6226   else
6227     ac_res=-l$ac_lib
6228     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6229   fi
6230   if ac_fn_c_try_link "$LINENO"; then :
6231   ac_cv_search_mkdtemp=$ac_res
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext \
6234     conftest$ac_exeext
6235   if test "${ac_cv_search_mkdtemp+set}" = set; then :
6236   break
6237 fi
6238 done
6239 if test "${ac_cv_search_mkdtemp+set}" = set; then :
6240
6241 else
6242   ac_cv_search_mkdtemp=no
6243 fi
6244 rm conftest.$ac_ext
6245 LIBS=$ac_func_search_save_LIBS
6246 fi
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mkdtemp" >&5
6248 $as_echo "$ac_cv_search_mkdtemp" >&6; }
6249 ac_res=$ac_cv_search_mkdtemp
6250 if test "$ac_res" != no; then :
6251   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6252   NO_MKDTEMP=
6253 else
6254   NO_MKDTEMP=YesPlease
6255 fi
6256
6257
6258 else
6259   NO_MKDTEMP=YesPlease
6260 fi
6261
6262
6263 config_appended_defs="$config_appended_defs${newline}NO_MKDTEMP=${NO_MKDTEMP}"
6264 #
6265 # Define NO_MKSTEMPS if you don't have mkstemps in the C library.
6266 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
6267 if test "x$ac_cv_func_mkstemps" = x""yes; then :
6268
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mkstemps" >&5
6270 $as_echo_n "checking for library containing mkstemps... " >&6; }
6271 if test "${ac_cv_search_mkstemps+set}" = set; then :
6272   $as_echo_n "(cached) " >&6
6273 else
6274   ac_func_search_save_LIBS=$LIBS
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h.  */
6277
6278 /* Override any GCC internal prototype to avoid an error.
6279    Use char because int might match the return type of a GCC
6280    builtin and then its argument prototype would still apply.  */
6281 #ifdef __cplusplus
6282 extern "C"
6283 #endif
6284 char mkstemps ();
6285 int
6286 main ()
6287 {
6288 return mkstemps ();
6289   ;
6290   return 0;
6291 }
6292 _ACEOF
6293 for ac_lib in '' ; do
6294   if test -z "$ac_lib"; then
6295     ac_res="none required"
6296   else
6297     ac_res=-l$ac_lib
6298     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6299   fi
6300   if ac_fn_c_try_link "$LINENO"; then :
6301   ac_cv_search_mkstemps=$ac_res
6302 fi
6303 rm -f core conftest.err conftest.$ac_objext \
6304     conftest$ac_exeext
6305   if test "${ac_cv_search_mkstemps+set}" = set; then :
6306   break
6307 fi
6308 done
6309 if test "${ac_cv_search_mkstemps+set}" = set; then :
6310
6311 else
6312   ac_cv_search_mkstemps=no
6313 fi
6314 rm conftest.$ac_ext
6315 LIBS=$ac_func_search_save_LIBS
6316 fi
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mkstemps" >&5
6318 $as_echo "$ac_cv_search_mkstemps" >&6; }
6319 ac_res=$ac_cv_search_mkstemps
6320 if test "$ac_res" != no; then :
6321   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6322   NO_MKSTEMPS=
6323 else
6324   NO_MKSTEMPS=YesPlease
6325 fi
6326
6327
6328 else
6329   NO_MKSTEMPS=YesPlease
6330 fi
6331
6332
6333 config_appended_defs="$config_appended_defs${newline}NO_MKSTEMPS=${NO_MKSTEMPS}"
6334 #
6335 # Define NO_INITGROUPS if you don't have initgroups in the C library.
6336 ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups"
6337 if test "x$ac_cv_func_initgroups" = x""yes; then :
6338
6339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing initgroups" >&5
6340 $as_echo_n "checking for library containing initgroups... " >&6; }
6341 if test "${ac_cv_search_initgroups+set}" = set; then :
6342   $as_echo_n "(cached) " >&6
6343 else
6344   ac_func_search_save_LIBS=$LIBS
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h.  */
6347
6348 /* Override any GCC internal prototype to avoid an error.
6349    Use char because int might match the return type of a GCC
6350    builtin and then its argument prototype would still apply.  */
6351 #ifdef __cplusplus
6352 extern "C"
6353 #endif
6354 char initgroups ();
6355 int
6356 main ()
6357 {
6358 return initgroups ();
6359   ;
6360   return 0;
6361 }
6362 _ACEOF
6363 for ac_lib in '' ; do
6364   if test -z "$ac_lib"; then
6365     ac_res="none required"
6366   else
6367     ac_res=-l$ac_lib
6368     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6369   fi
6370   if ac_fn_c_try_link "$LINENO"; then :
6371   ac_cv_search_initgroups=$ac_res
6372 fi
6373 rm -f core conftest.err conftest.$ac_objext \
6374     conftest$ac_exeext
6375   if test "${ac_cv_search_initgroups+set}" = set; then :
6376   break
6377 fi
6378 done
6379 if test "${ac_cv_search_initgroups+set}" = set; then :
6380
6381 else
6382   ac_cv_search_initgroups=no
6383 fi
6384 rm conftest.$ac_ext
6385 LIBS=$ac_func_search_save_LIBS
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initgroups" >&5
6388 $as_echo "$ac_cv_search_initgroups" >&6; }
6389 ac_res=$ac_cv_search_initgroups
6390 if test "$ac_res" != no; then :
6391   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6392   NO_INITGROUPS=
6393 else
6394   NO_INITGROUPS=YesPlease
6395 fi
6396
6397
6398 else
6399   NO_INITGROUPS=YesPlease
6400 fi
6401
6402
6403 config_appended_defs="$config_appended_defs${newline}NO_INITGROUPS=${NO_INITGROUPS}"
6404 #
6405 #
6406 # Define NO_MMAP if you want to avoid mmap.
6407 #
6408 # Define NO_ICONV if your libc does not properly support iconv.
6409
6410
6411 ## Other checks.
6412 # Define USE_PIC if you need the main git objects to be built with -fPIC
6413 # in order to build and link perl/Git.so.  x86-64 seems to need this.
6414 #
6415 # Define NO_SYMLINK_HEAD if you never want .git/HEAD to be a symbolic link.
6416 # Enable it on Windows.  By default, symrefs are still used.
6417 #
6418 # Define NO_PTHREADS if we do not have pthreads.
6419 #
6420 # Define PTHREAD_LIBS to the linker flag used for Pthread support.
6421
6422
6423
6424 NO_PTHREADS=UnfortunatelyYes
6425 PTHREAD_LIBS=
6426
6427 if test -n "$USER_NOPTHREAD"; then
6428    { $as_echo "$as_me:${as_lineno-$LINENO}: Skipping POSIX Threads at user request." >&5
6429 $as_echo "$as_me: Skipping POSIX Threads at user request." >&6;}
6430 # handle these separately since PTHREAD_CFLAGS could be '-lpthreads
6431 # -D_REENTRANT' or some such.
6432 elif test -z "$PTHREAD_CFLAGS"; then
6433   threads_found=no
6434   for opt in -mt -pthread -lpthread; do
6435      old_CFLAGS="$CFLAGS"
6436      CFLAGS="$opt $CFLAGS"
6437      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for POSIX Threads with '$opt'" >&5
6438 $as_echo_n "checking Checking for POSIX Threads with '$opt'... " >&6; }
6439      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h.  */
6441
6442
6443 #include <pthread.h>
6444
6445 int
6446 main ()
6447 {
6448
6449         pthread_mutex_t test_mutex;
6450         pthread_key_t test_key;
6451         int retcode = 0;
6452         retcode |= pthread_key_create(&test_key, (void *)0);
6453         retcode |= pthread_mutex_init(&test_mutex,(void *)0);
6454         retcode |= pthread_mutex_lock(&test_mutex);
6455         retcode |= pthread_mutex_unlock(&test_mutex);
6456         return retcode;
6457
6458   ;
6459   return 0;
6460 }
6461 _ACEOF
6462 if ac_fn_c_try_link "$LINENO"; then :
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6464 $as_echo "yes" >&6; }
6465                 NO_PTHREADS=
6466                 PTHREAD_LIBS="$opt"
6467                 PTHREAD_CFLAGS="$opt"
6468                 threads_found=yes
6469                 break
6470
6471 else
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475 rm -f core conftest.err conftest.$ac_objext \
6476     conftest$ac_exeext conftest.$ac_ext
6477       CFLAGS="$old_CFLAGS"
6478   done
6479   if test $threads_found != yes; then
6480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6481 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
6482 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
6483   $as_echo_n "(cached) " >&6
6484 else
6485   ac_check_lib_save_LIBS=$LIBS
6486 LIBS="-lpthread  $LIBS"
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h.  */
6489
6490 /* Override any GCC internal prototype to avoid an error.
6491    Use char because int might match the return type of a GCC
6492    builtin and then its argument prototype would still apply.  */
6493 #ifdef __cplusplus
6494 extern "C"
6495 #endif
6496 char pthread_create ();
6497 int
6498 main ()
6499 {
6500 return pthread_create ();
6501   ;
6502   return 0;
6503 }
6504 _ACEOF
6505 if ac_fn_c_try_link "$LINENO"; then :
6506   ac_cv_lib_pthread_pthread_create=yes
6507 else
6508   ac_cv_lib_pthread_pthread_create=no
6509 fi
6510 rm -f core conftest.err conftest.$ac_objext \
6511     conftest$ac_exeext conftest.$ac_ext
6512 LIBS=$ac_check_lib_save_LIBS
6513 fi
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6515 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
6516 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
6517   PTHREAD_LIBS="-lpthread"
6518 else
6519   NO_PTHREADS=UnfortunatelyYes
6520 fi
6521
6522   fi
6523 else
6524   old_CFLAGS="$CFLAGS"
6525   CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for POSIX Threads with '$PTHREAD_CFLAGS'" >&5
6527 $as_echo_n "checking Checking for POSIX Threads with '$PTHREAD_CFLAGS'... " >&6; }
6528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h.  */
6530
6531
6532 #include <pthread.h>
6533
6534 int
6535 main ()
6536 {
6537
6538         pthread_mutex_t test_mutex;
6539         pthread_key_t test_key;
6540         int retcode = 0;
6541         retcode |= pthread_key_create(&test_key, (void *)0);
6542         retcode |= pthread_mutex_init(&test_mutex,(void *)0);
6543         retcode |= pthread_mutex_lock(&test_mutex);
6544         retcode |= pthread_mutex_unlock(&test_mutex);
6545         return retcode;
6546
6547   ;
6548   return 0;
6549 }
6550 _ACEOF
6551 if ac_fn_c_try_link "$LINENO"; then :
6552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6553 $as_echo "yes" >&6; }
6554                 NO_PTHREADS=
6555                 PTHREAD_LIBS="$PTHREAD_CFLAGS"
6556
6557 else
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6560 fi
6561 rm -f core conftest.err conftest.$ac_objext \
6562     conftest$ac_exeext conftest.$ac_ext
6563
6564   CFLAGS="$old_CFLAGS"
6565 fi
6566
6567 CFLAGS="$old_CFLAGS"
6568
6569
6570 config_appended_defs="$config_appended_defs${newline}PTHREAD_CFLAGS=${PTHREAD_CFLAGS}"
6571
6572 config_appended_defs="$config_appended_defs${newline}PTHREAD_LIBS=${PTHREAD_LIBS}"
6573
6574 config_appended_defs="$config_appended_defs${newline}NO_PTHREADS=${NO_PTHREADS}"
6575
6576 ## Output files
6577 ac_config_files="$ac_config_files "${config_file}":"${config_in}""
6578
6579 cat >confcache <<\_ACEOF
6580 # This file is a shell script that caches the results of configure
6581 # tests run on this system so they can be shared between configure
6582 # scripts and configure runs, see configure's option --config-cache.
6583 # It is not useful on other systems.  If it contains results you don't
6584 # want to keep, you may remove or edit it.
6585 #
6586 # config.status only pays attention to the cache file if you give it
6587 # the --recheck option to rerun configure.
6588 #
6589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6591 # following values.
6592
6593 _ACEOF
6594
6595 # The following way of writing the cache mishandles newlines in values,
6596 # but we know of no workaround that is simple, portable, and efficient.
6597 # So, we kill variables containing newlines.
6598 # Ultrix sh set writes to stderr and can't be redirected directly,
6599 # and sets the high bit in the cache file unless we assign to the vars.
6600 (
6601   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6602     eval ac_val=\$$ac_var
6603     case $ac_val in #(
6604     *${as_nl}*)
6605       case $ac_var in #(
6606       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6607 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6608       esac
6609       case $ac_var in #(
6610       _ | IFS | as_nl) ;; #(
6611       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6612       *) { eval $ac_var=; unset $ac_var;} ;;
6613       esac ;;
6614     esac
6615   done
6616
6617   (set) 2>&1 |
6618     case $as_nl`(ac_space=' '; set) 2>&1` in #(
6619     *${as_nl}ac_space=\ *)
6620       # `set' does not quote correctly, so add quotes: double-quote
6621       # substitution turns \\\\ into \\, and sed turns \\ into \.
6622       sed -n \
6623         "s/'/'\\\\''/g;
6624           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6625       ;; #(
6626     *)
6627       # `set' quotes correctly as required by POSIX, so do not add quotes.
6628       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6629       ;;
6630     esac |
6631     sort
6632 ) |
6633   sed '
6634      /^ac_cv_env_/b end
6635      t clear
6636      :clear
6637      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6638      t end
6639      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6640      :end' >>confcache
6641 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6642   if test -w "$cache_file"; then
6643     test "x$cache_file" != "x/dev/null" &&
6644       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6645 $as_echo "$as_me: updating cache $cache_file" >&6;}
6646     cat confcache >$cache_file
6647   else
6648     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6649 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6650   fi
6651 fi
6652 rm -f confcache
6653
6654 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6655 # Let make expand exec_prefix.
6656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6657
6658 # Transform confdefs.h into DEFS.
6659 # Protect against shell expansion while executing Makefile rules.
6660 # Protect against Makefile macro expansion.
6661 #
6662 # If the first sed substitution is executed (which looks for macros that
6663 # take arguments), then branch to the quote section.  Otherwise,
6664 # look for a macro that doesn't take arguments.
6665 ac_script='
6666 :mline
6667 /\\$/{
6668  N
6669  s,\\\n,,
6670  b mline
6671 }
6672 t clear
6673 :clear
6674 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
6675 t quote
6676 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
6677 t quote
6678 b any
6679 :quote
6680 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6681 s/\[/\\&/g
6682 s/\]/\\&/g
6683 s/\$/$$/g
6684 H
6685 :any
6686 ${
6687         g
6688         s/^\n//
6689         s/\n/ /g
6690         p
6691 }
6692 '
6693 DEFS=`sed -n "$ac_script" confdefs.h`
6694
6695
6696 ac_libobjs=
6697 ac_ltlibobjs=
6698 U=
6699 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6700   # 1. Remove the extension, and $U if already installed.
6701   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6702   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6703   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6704   #    will be set to the directory where LIBOBJS objects are built.
6705   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6706   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6707 done
6708 LIBOBJS=$ac_libobjs
6709
6710 LTLIBOBJS=$ac_ltlibobjs
6711
6712
6713
6714 : ${CONFIG_STATUS=./config.status}
6715 ac_write_fail=0
6716 ac_clean_files_save=$ac_clean_files
6717 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6719 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6720 as_write_fail=0
6721 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6722 #! $SHELL
6723 # Generated by $as_me.
6724 # Run this file to recreate the current configuration.
6725 # Compiler output produced by configure, useful for debugging
6726 # configure, is in config.log if it exists.
6727
6728 debug=false
6729 ac_cs_recheck=false
6730 ac_cs_silent=false
6731
6732 SHELL=\${CONFIG_SHELL-$SHELL}
6733 export SHELL
6734 _ASEOF
6735 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6736 ## -------------------- ##
6737 ## M4sh Initialization. ##
6738 ## -------------------- ##
6739
6740 # Be more Bourne compatible
6741 DUALCASE=1; export DUALCASE # for MKS sh
6742 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6743   emulate sh
6744   NULLCMD=:
6745   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6746   # is contrary to our usage.  Disable this feature.
6747   alias -g '${1+"$@"}'='"$@"'
6748   setopt NO_GLOB_SUBST
6749 else
6750   case `(set -o) 2>/dev/null` in #(
6751   *posix*) :
6752     set -o posix ;; #(
6753   *) :
6754      ;;
6755 esac
6756 fi
6757
6758
6759 as_nl='
6760 '
6761 export as_nl
6762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6766 # Prefer a ksh shell builtin over an external printf program on Solaris,
6767 # but without wasting forks for bash or zsh.
6768 if test -z "$BASH_VERSION$ZSH_VERSION" \
6769     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6770   as_echo='print -r --'
6771   as_echo_n='print -rn --'
6772 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6773   as_echo='printf %s\n'
6774   as_echo_n='printf %s'
6775 else
6776   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6777     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6778     as_echo_n='/usr/ucb/echo -n'
6779   else
6780     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6781     as_echo_n_body='eval
6782       arg=$1;
6783       case $arg in #(
6784       *"$as_nl"*)
6785         expr "X$arg" : "X\\(.*\\)$as_nl";
6786         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6787       esac;
6788       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6789     '
6790     export as_echo_n_body
6791     as_echo_n='sh -c $as_echo_n_body as_echo'
6792   fi
6793   export as_echo_body
6794   as_echo='sh -c $as_echo_body as_echo'
6795 fi
6796
6797 # The user is always right.
6798 if test "${PATH_SEPARATOR+set}" != set; then
6799   PATH_SEPARATOR=:
6800   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6801     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6802       PATH_SEPARATOR=';'
6803   }
6804 fi
6805
6806
6807 # IFS
6808 # We need space, tab and new line, in precisely that order.  Quoting is
6809 # there to prevent editors from complaining about space-tab.
6810 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6811 # splitting by setting IFS to empty value.)
6812 IFS=" ""        $as_nl"
6813
6814 # Find who we are.  Look in the path if we contain no directory separator.
6815 case $0 in #((
6816   *[\\/]* ) as_myself=$0 ;;
6817   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6823   done
6824 IFS=$as_save_IFS
6825
6826      ;;
6827 esac
6828 # We did not find ourselves, most probably we were run as `sh COMMAND'
6829 # in which case we are not to be found in the path.
6830 if test "x$as_myself" = x; then
6831   as_myself=$0
6832 fi
6833 if test ! -f "$as_myself"; then
6834   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6835   exit 1
6836 fi
6837
6838 # Unset variables that we do not need and which cause bugs (e.g. in
6839 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6840 # suppresses any "Segmentation fault" message there.  '((' could
6841 # trigger a bug in pdksh 5.2.14.
6842 for as_var in BASH_ENV ENV MAIL MAILPATH
6843 do eval test x\${$as_var+set} = xset \
6844   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6845 done
6846 PS1='$ '
6847 PS2='> '
6848 PS4='+ '
6849
6850 # NLS nuisances.
6851 LC_ALL=C
6852 export LC_ALL
6853 LANGUAGE=C
6854 export LANGUAGE
6855
6856 # CDPATH.
6857 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6858
6859
6860 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6861 # ----------------------------------------
6862 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6863 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6864 # script with STATUS, using 1 if that was 0.
6865 as_fn_error ()
6866 {
6867   as_status=$1; test $as_status -eq 0 && as_status=1
6868   if test "$4"; then
6869     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6870     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6871   fi
6872   $as_echo "$as_me: error: $2" >&2
6873   as_fn_exit $as_status
6874 } # as_fn_error
6875
6876
6877 # as_fn_set_status STATUS
6878 # -----------------------
6879 # Set $? to STATUS, without forking.
6880 as_fn_set_status ()
6881 {
6882   return $1
6883 } # as_fn_set_status
6884
6885 # as_fn_exit STATUS
6886 # -----------------
6887 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6888 as_fn_exit ()
6889 {
6890   set +e
6891   as_fn_set_status $1
6892   exit $1
6893 } # as_fn_exit
6894
6895 # as_fn_unset VAR
6896 # ---------------
6897 # Portably unset VAR.
6898 as_fn_unset ()
6899 {
6900   { eval $1=; unset $1;}
6901 }
6902 as_unset=as_fn_unset
6903 # as_fn_append VAR VALUE
6904 # ----------------------
6905 # Append the text in VALUE to the end of the definition contained in VAR. Take
6906 # advantage of any shell optimizations that allow amortized linear growth over
6907 # repeated appends, instead of the typical quadratic growth present in naive
6908 # implementations.
6909 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6910   eval 'as_fn_append ()
6911   {
6912     eval $1+=\$2
6913   }'
6914 else
6915   as_fn_append ()
6916   {
6917     eval $1=\$$1\$2
6918   }
6919 fi # as_fn_append
6920
6921 # as_fn_arith ARG...
6922 # ------------------
6923 # Perform arithmetic evaluation on the ARGs, and store the result in the
6924 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6925 # must be portable across $(()) and expr.
6926 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6927   eval 'as_fn_arith ()
6928   {
6929     as_val=$(( $* ))
6930   }'
6931 else
6932   as_fn_arith ()
6933   {
6934     as_val=`expr "$@" || test $? -eq 1`
6935   }
6936 fi # as_fn_arith
6937
6938
6939 if expr a : '\(a\)' >/dev/null 2>&1 &&
6940    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6941   as_expr=expr
6942 else
6943   as_expr=false
6944 fi
6945
6946 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6947   as_basename=basename
6948 else
6949   as_basename=false
6950 fi
6951
6952 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6953   as_dirname=dirname
6954 else
6955   as_dirname=false
6956 fi
6957
6958 as_me=`$as_basename -- "$0" ||
6959 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6960          X"$0" : 'X\(//\)$' \| \
6961          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6962 $as_echo X/"$0" |
6963     sed '/^.*\/\([^/][^/]*\)\/*$/{
6964             s//\1/
6965             q
6966           }
6967           /^X\/\(\/\/\)$/{
6968             s//\1/
6969             q
6970           }
6971           /^X\/\(\/\).*/{
6972             s//\1/
6973             q
6974           }
6975           s/.*/./; q'`
6976
6977 # Avoid depending upon Character Ranges.
6978 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6979 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6980 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6981 as_cr_digits='0123456789'
6982 as_cr_alnum=$as_cr_Letters$as_cr_digits
6983
6984 ECHO_C= ECHO_N= ECHO_T=
6985 case `echo -n x` in #(((((
6986 -n*)
6987   case `echo 'xy\c'` in
6988   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6989   xy)  ECHO_C='\c';;
6990   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6991        ECHO_T=' ';;
6992   esac;;
6993 *)
6994   ECHO_N='-n';;
6995 esac
6996
6997 rm -f conf$$ conf$$.exe conf$$.file
6998 if test -d conf$$.dir; then
6999   rm -f conf$$.dir/conf$$.file
7000 else
7001   rm -f conf$$.dir
7002   mkdir conf$$.dir 2>/dev/null
7003 fi
7004 if (echo >conf$$.file) 2>/dev/null; then
7005   if ln -s conf$$.file conf$$ 2>/dev/null; then
7006     as_ln_s='ln -s'
7007     # ... but there are two gotchas:
7008     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7009     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7010     # In both cases, we have to default to `cp -p'.
7011     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7012       as_ln_s='cp -p'
7013   elif ln conf$$.file conf$$ 2>/dev/null; then
7014     as_ln_s=ln
7015   else
7016     as_ln_s='cp -p'
7017   fi
7018 else
7019   as_ln_s='cp -p'
7020 fi
7021 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7022 rmdir conf$$.dir 2>/dev/null
7023
7024
7025 # as_fn_mkdir_p
7026 # -------------
7027 # Create "$as_dir" as a directory, including parents if necessary.
7028 as_fn_mkdir_p ()
7029 {
7030
7031   case $as_dir in #(
7032   -*) as_dir=./$as_dir;;
7033   esac
7034   test -d "$as_dir" || eval $as_mkdir_p || {
7035     as_dirs=
7036     while :; do
7037       case $as_dir in #(
7038       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7039       *) as_qdir=$as_dir;;
7040       esac
7041       as_dirs="'$as_qdir' $as_dirs"
7042       as_dir=`$as_dirname -- "$as_dir" ||
7043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7044          X"$as_dir" : 'X\(//\)[^/]' \| \
7045          X"$as_dir" : 'X\(//\)$' \| \
7046          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7047 $as_echo X"$as_dir" |
7048     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7049             s//\1/
7050             q
7051           }
7052           /^X\(\/\/\)[^/].*/{
7053             s//\1/
7054             q
7055           }
7056           /^X\(\/\/\)$/{
7057             s//\1/
7058             q
7059           }
7060           /^X\(\/\).*/{
7061             s//\1/
7062             q
7063           }
7064           s/.*/./; q'`
7065       test -d "$as_dir" && break
7066     done
7067     test -z "$as_dirs" || eval "mkdir $as_dirs"
7068   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7069
7070
7071 } # as_fn_mkdir_p
7072 if mkdir -p . 2>/dev/null; then
7073   as_mkdir_p='mkdir -p "$as_dir"'
7074 else
7075   test -d ./-p && rmdir ./-p
7076   as_mkdir_p=false
7077 fi
7078
7079 if test -x / >/dev/null 2>&1; then
7080   as_test_x='test -x'
7081 else
7082   if ls -dL / >/dev/null 2>&1; then
7083     as_ls_L_option=L
7084   else
7085     as_ls_L_option=
7086   fi
7087   as_test_x='
7088     eval sh -c '\''
7089       if test -d "$1"; then
7090         test -d "$1/.";
7091       else
7092         case $1 in #(
7093         -*)set "./$1";;
7094         esac;
7095         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7096         ???[sx]*):;;*)false;;esac;fi
7097     '\'' sh
7098   '
7099 fi
7100 as_executable_p=$as_test_x
7101
7102 # Sed expression to map a string onto a valid CPP name.
7103 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7104
7105 # Sed expression to map a string onto a valid variable name.
7106 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7107
7108
7109 exec 6>&1
7110 ## ----------------------------------- ##
7111 ## Main body of $CONFIG_STATUS script. ##
7112 ## ----------------------------------- ##
7113 _ASEOF
7114 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7115
7116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7117 # Save the log message, to keep $0 and so on meaningful, and to
7118 # report actual input values of CONFIG_FILES etc. instead of their
7119 # values after options handling.
7120 ac_log="
7121 This file was extended by git $as_me 1.8.0, which was
7122 generated by GNU Autoconf 2.67.  Invocation command line was
7123
7124   CONFIG_FILES    = $CONFIG_FILES
7125   CONFIG_HEADERS  = $CONFIG_HEADERS
7126   CONFIG_LINKS    = $CONFIG_LINKS
7127   CONFIG_COMMANDS = $CONFIG_COMMANDS
7128   $ $0 $@
7129
7130 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7131 "
7132
7133 _ACEOF
7134
7135 case $ac_config_files in *"
7136 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7137 esac
7138
7139
7140
7141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7142 # Files that config.status was made for.
7143 config_files="$ac_config_files"
7144 config_commands="$ac_config_commands"
7145
7146 _ACEOF
7147
7148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7149 ac_cs_usage="\
7150 \`$as_me' instantiates files and other configuration actions
7151 from templates according to the current configuration.  Unless the files
7152 and actions are specified as TAGs, all are instantiated by default.
7153
7154 Usage: $0 [OPTION]... [TAG]...
7155
7156   -h, --help       print this help, then exit
7157   -V, --version    print version number and configuration settings, then exit
7158       --config     print configuration, then exit
7159   -q, --quiet, --silent
7160                    do not print progress messages
7161   -d, --debug      don't remove temporary files
7162       --recheck    update $as_me by reconfiguring in the same conditions
7163       --file=FILE[:TEMPLATE]
7164                    instantiate the configuration file FILE
7165
7166 Configuration files:
7167 $config_files
7168
7169 Configuration commands:
7170 $config_commands
7171
7172 Report bugs to <git@vger.kernel.org>."
7173
7174 _ACEOF
7175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7176 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7177 ac_cs_version="\\
7178 git config.status 1.8.0
7179 configured by $0, generated by GNU Autoconf 2.67,
7180   with options \\"\$ac_cs_config\\"
7181
7182 Copyright (C) 2010 Free Software Foundation, Inc.
7183 This config.status script is free software; the Free Software Foundation
7184 gives unlimited permission to copy, distribute and modify it."
7185
7186 ac_pwd='$ac_pwd'
7187 srcdir='$srcdir'
7188 test -n "\$AWK" || AWK=awk
7189 _ACEOF
7190
7191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7192 # The default lists apply if the user does not specify any file.
7193 ac_need_defaults=:
7194 while test $# != 0
7195 do
7196   case $1 in
7197   --*=?*)
7198     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7199     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7200     ac_shift=:
7201     ;;
7202   --*=)
7203     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7204     ac_optarg=
7205     ac_shift=:
7206     ;;
7207   *)
7208     ac_option=$1
7209     ac_optarg=$2
7210     ac_shift=shift
7211     ;;
7212   esac
7213
7214   case $ac_option in
7215   # Handling of the options.
7216   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7217     ac_cs_recheck=: ;;
7218   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7219     $as_echo "$ac_cs_version"; exit ;;
7220   --config | --confi | --conf | --con | --co | --c )
7221     $as_echo "$ac_cs_config"; exit ;;
7222   --debug | --debu | --deb | --de | --d | -d )
7223     debug=: ;;
7224   --file | --fil | --fi | --f )
7225     $ac_shift
7226     case $ac_optarg in
7227     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7228     '') as_fn_error $? "missing file argument" ;;
7229     esac
7230     as_fn_append CONFIG_FILES " '$ac_optarg'"
7231     ac_need_defaults=false;;
7232   --he | --h |  --help | --hel | -h )
7233     $as_echo "$ac_cs_usage"; exit ;;
7234   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7235   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7236     ac_cs_silent=: ;;
7237
7238   # This is an error.
7239   -*) as_fn_error $? "unrecognized option: \`$1'
7240 Try \`$0 --help' for more information." ;;
7241
7242   *) as_fn_append ac_config_targets " $1"
7243      ac_need_defaults=false ;;
7244
7245   esac
7246   shift
7247 done
7248
7249 ac_configure_extra_args=
7250
7251 if $ac_cs_silent; then
7252   exec 6>/dev/null
7253   ac_configure_extra_args="$ac_configure_extra_args --silent"
7254 fi
7255
7256 _ACEOF
7257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7258 if \$ac_cs_recheck; then
7259   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7260   shift
7261   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7262   CONFIG_SHELL='$SHELL'
7263   export CONFIG_SHELL
7264   exec "\$@"
7265 fi
7266
7267 _ACEOF
7268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7269 exec 5>>config.log
7270 {
7271   echo
7272   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7273 ## Running $as_me. ##
7274 _ASBOX
7275   $as_echo "$ac_log"
7276 } >&5
7277
7278 _ACEOF
7279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7280 #
7281 # INIT-COMMANDS
7282 #
7283 config_file=$config_file
7284                         config_appended_defs="$config_appended_defs"
7285
7286 _ACEOF
7287
7288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7289
7290 # Handling of arguments.
7291 for ac_config_target in $ac_config_targets
7292 do
7293   case $ac_config_target in
7294     "$config_file") CONFIG_COMMANDS="$CONFIG_COMMANDS $config_file" ;;
7295     ""${config_file}"") CONFIG_FILES="$CONFIG_FILES "${config_file}":"${config_in}"" ;;
7296
7297   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
7298   esac
7299 done
7300
7301
7302 # If the user did not use the arguments to specify the items to instantiate,
7303 # then the envvar interface is used.  Set only those that are not.
7304 # We use the long form for the default assignment because of an extremely
7305 # bizarre bug on SunOS 4.1.3.
7306 if $ac_need_defaults; then
7307   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7308   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7309 fi
7310
7311 # Have a temporary directory for convenience.  Make it in the build tree
7312 # simply because there is no reason against having it here, and in addition,
7313 # creating and moving files from /tmp can sometimes cause problems.
7314 # Hook for its removal unless debugging.
7315 # Note that there is a small window in which the directory will not be cleaned:
7316 # after its creation but before its name has been assigned to `$tmp'.
7317 $debug ||
7318 {
7319   tmp=
7320   trap 'exit_status=$?
7321   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7322 ' 0
7323   trap 'as_fn_exit 1' 1 2 13 15
7324 }
7325 # Create a (secure) tmp directory for tmp files.
7326
7327 {
7328   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7329   test -n "$tmp" && test -d "$tmp"
7330 }  ||
7331 {
7332   tmp=./conf$$-$RANDOM
7333   (umask 077 && mkdir "$tmp")
7334 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7335
7336 # Set up the scripts for CONFIG_FILES section.
7337 # No need to generate them if there are no CONFIG_FILES.
7338 # This happens for instance with `./config.status config.h'.
7339 if test -n "$CONFIG_FILES"; then
7340
7341
7342 ac_cr=`echo X | tr X '\015'`
7343 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7344 # But we know of no other shell where ac_cr would be empty at this
7345 # point, so we can use a bashism as a fallback.
7346 if test "x$ac_cr" = x; then
7347   eval ac_cr=\$\'\\r\'
7348 fi
7349 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7350 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7351   ac_cs_awk_cr='\\r'
7352 else
7353   ac_cs_awk_cr=$ac_cr
7354 fi
7355
7356 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7357 _ACEOF
7358
7359
7360 {
7361   echo "cat >conf$$subs.awk <<_ACEOF" &&
7362   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7363   echo "_ACEOF"
7364 } >conf$$subs.sh ||
7365   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7366 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7367 ac_delim='%!_!# '
7368 for ac_last_try in false false false false false :; do
7369   . ./conf$$subs.sh ||
7370     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7371
7372   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7373   if test $ac_delim_n = $ac_delim_num; then
7374     break
7375   elif $ac_last_try; then
7376     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7377   else
7378     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7379   fi
7380 done
7381 rm -f conf$$subs.sh
7382
7383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7384 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7385 _ACEOF
7386 sed -n '
7387 h
7388 s/^/S["/; s/!.*/"]=/
7389 p
7390 g
7391 s/^[^!]*!//
7392 :repl
7393 t repl
7394 s/'"$ac_delim"'$//
7395 t delim
7396 :nl
7397 h
7398 s/\(.\{148\}\)..*/\1/
7399 t more1
7400 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7401 p
7402 n
7403 b repl
7404 :more1
7405 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7406 p
7407 g
7408 s/.\{148\}//
7409 t nl
7410 :delim
7411 h
7412 s/\(.\{148\}\)..*/\1/
7413 t more2
7414 s/["\\]/\\&/g; s/^/"/; s/$/"/
7415 p
7416 b
7417 :more2
7418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7419 p
7420 g
7421 s/.\{148\}//
7422 t delim
7423 ' <conf$$subs.awk | sed '
7424 /^[^""]/{
7425   N
7426   s/\n//
7427 }
7428 ' >>$CONFIG_STATUS || ac_write_fail=1
7429 rm -f conf$$subs.awk
7430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7431 _ACAWK
7432 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7433   for (key in S) S_is_set[key] = 1
7434   FS = "\a"
7435
7436 }
7437 {
7438   line = $ 0
7439   nfields = split(line, field, "@")
7440   substed = 0
7441   len = length(field[1])
7442   for (i = 2; i < nfields; i++) {
7443     key = field[i]
7444     keylen = length(key)
7445     if (S_is_set[key]) {
7446       value = S[key]
7447       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7448       len += length(value) + length(field[++i])
7449       substed = 1
7450     } else
7451       len += 1 + keylen
7452   }
7453
7454   print line
7455 }
7456
7457 _ACAWK
7458 _ACEOF
7459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7460 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7461   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7462 else
7463   cat
7464 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7465   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7466 _ACEOF
7467
7468 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7469 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7470 # trailing colons and then remove the whole line if VPATH becomes empty
7471 # (actually we leave an empty line to preserve line numbers).
7472 if test "x$srcdir" = x.; then
7473   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
7474 h
7475 s///
7476 s/^/:/
7477 s/[      ]*$/:/
7478 s/:\$(srcdir):/:/g
7479 s/:\${srcdir}:/:/g
7480 s/:@srcdir@:/:/g
7481 s/^:*//
7482 s/:*$//
7483 x
7484 s/\(=[   ]*\).*/\1/
7485 G
7486 s/\n//
7487 s/^[^=]*=[       ]*$//
7488 }'
7489 fi
7490
7491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7492 fi # test -n "$CONFIG_FILES"
7493
7494
7495 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
7496 shift
7497 for ac_tag
7498 do
7499   case $ac_tag in
7500   :[FHLC]) ac_mode=$ac_tag; continue;;
7501   esac
7502   case $ac_mode$ac_tag in
7503   :[FHL]*:*);;
7504   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
7505   :[FH]-) ac_tag=-:-;;
7506   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7507   esac
7508   ac_save_IFS=$IFS
7509   IFS=:
7510   set x $ac_tag
7511   IFS=$ac_save_IFS
7512   shift
7513   ac_file=$1
7514   shift
7515
7516   case $ac_mode in
7517   :L) ac_source=$1;;
7518   :[FH])
7519     ac_file_inputs=
7520     for ac_f
7521     do
7522       case $ac_f in
7523       -) ac_f="$tmp/stdin";;
7524       *) # Look for the file first in the build tree, then in the source tree
7525          # (if the path is not absolute).  The absolute path cannot be DOS-style,
7526          # because $ac_f cannot contain `:'.
7527          test -f "$ac_f" ||
7528            case $ac_f in
7529            [\\/$]*) false;;
7530            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7531            esac ||
7532            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
7533       esac
7534       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7535       as_fn_append ac_file_inputs " '$ac_f'"
7536     done
7537
7538     # Let's still pretend it is `configure' which instantiates (i.e., don't
7539     # use $as_me), people would be surprised to read:
7540     #    /* config.h.  Generated by config.status.  */
7541     configure_input='Generated from '`
7542           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7543         `' by configure.'
7544     if test x"$ac_file" != x-; then
7545       configure_input="$ac_file.  $configure_input"
7546       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7547 $as_echo "$as_me: creating $ac_file" >&6;}
7548     fi
7549     # Neutralize special characters interpreted by sed in replacement strings.
7550     case $configure_input in #(
7551     *\&* | *\|* | *\\* )
7552        ac_sed_conf_input=`$as_echo "$configure_input" |
7553        sed 's/[\\\\&|]/\\\\&/g'`;; #(
7554     *) ac_sed_conf_input=$configure_input;;
7555     esac
7556
7557     case $ac_tag in
7558     *:-:* | *:-) cat >"$tmp/stdin" \
7559       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
7560     esac
7561     ;;
7562   esac
7563
7564   ac_dir=`$as_dirname -- "$ac_file" ||
7565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7566          X"$ac_file" : 'X\(//\)[^/]' \| \
7567          X"$ac_file" : 'X\(//\)$' \| \
7568          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7569 $as_echo X"$ac_file" |
7570     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7571             s//\1/
7572             q
7573           }
7574           /^X\(\/\/\)[^/].*/{
7575             s//\1/
7576             q
7577           }
7578           /^X\(\/\/\)$/{
7579             s//\1/
7580             q
7581           }
7582           /^X\(\/\).*/{
7583             s//\1/
7584             q
7585           }
7586           s/.*/./; q'`
7587   as_dir="$ac_dir"; as_fn_mkdir_p
7588   ac_builddir=.
7589
7590 case "$ac_dir" in
7591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7592 *)
7593   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7594   # A ".." for each directory in $ac_dir_suffix.
7595   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7596   case $ac_top_builddir_sub in
7597   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7598   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7599   esac ;;
7600 esac
7601 ac_abs_top_builddir=$ac_pwd
7602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7603 # for backward compatibility:
7604 ac_top_builddir=$ac_top_build_prefix
7605
7606 case $srcdir in
7607   .)  # We are building in place.
7608     ac_srcdir=.
7609     ac_top_srcdir=$ac_top_builddir_sub
7610     ac_abs_top_srcdir=$ac_pwd ;;
7611   [\\/]* | ?:[\\/]* )  # Absolute name.
7612     ac_srcdir=$srcdir$ac_dir_suffix;
7613     ac_top_srcdir=$srcdir
7614     ac_abs_top_srcdir=$srcdir ;;
7615   *) # Relative name.
7616     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7617     ac_top_srcdir=$ac_top_build_prefix$srcdir
7618     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7619 esac
7620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7621
7622
7623   case $ac_mode in
7624   :F)
7625   #
7626   # CONFIG_FILE
7627   #
7628
7629 _ACEOF
7630
7631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7632 # If the template does not know about datarootdir, expand it.
7633 # FIXME: This hack should be removed a few years after 2.60.
7634 ac_datarootdir_hack=; ac_datarootdir_seen=
7635 ac_sed_dataroot='
7636 /datarootdir/ {
7637   p
7638   q
7639 }
7640 /@datadir@/p
7641 /@docdir@/p
7642 /@infodir@/p
7643 /@localedir@/p
7644 /@mandir@/p'
7645 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7646 *datarootdir*) ac_datarootdir_seen=yes;;
7647 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7649 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7650 _ACEOF
7651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7652   ac_datarootdir_hack='
7653   s&@datadir@&$datadir&g
7654   s&@docdir@&$docdir&g
7655   s&@infodir@&$infodir&g
7656   s&@localedir@&$localedir&g
7657   s&@mandir@&$mandir&g
7658   s&\\\${datarootdir}&$datarootdir&g' ;;
7659 esac
7660 _ACEOF
7661
7662 # Neutralize VPATH when `$srcdir' = `.'.
7663 # Shell code in configure.ac might set extrasub.
7664 # FIXME: do we really want to maintain this feature?
7665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7666 ac_sed_extra="$ac_vpsub
7667 $extrasub
7668 _ACEOF
7669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7670 :t
7671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7672 s|@configure_input@|$ac_sed_conf_input|;t t
7673 s&@top_builddir@&$ac_top_builddir_sub&;t t
7674 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7675 s&@srcdir@&$ac_srcdir&;t t
7676 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7677 s&@top_srcdir@&$ac_top_srcdir&;t t
7678 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7679 s&@builddir@&$ac_builddir&;t t
7680 s&@abs_builddir@&$ac_abs_builddir&;t t
7681 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7682 $ac_datarootdir_hack
7683 "
7684 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7685   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7686
7687 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7688   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7689   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7691 which seems to be undefined.  Please make sure it is defined" >&5
7692 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7693 which seems to be undefined.  Please make sure it is defined" >&2;}
7694
7695   rm -f "$tmp/stdin"
7696   case $ac_file in
7697   -) cat "$tmp/out" && rm -f "$tmp/out";;
7698   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7699   esac \
7700   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7701  ;;
7702
7703
7704   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7705 $as_echo "$as_me: executing $ac_file commands" >&6;}
7706  ;;
7707   esac
7708
7709
7710   case $ac_file$ac_mode in
7711     "$config_file":C) echo "$config_appended_defs" >> "$config_file" ;;
7712
7713   esac
7714 done # for ac_tag
7715
7716
7717 as_fn_exit 0
7718 _ACEOF
7719 ac_clean_files=$ac_clean_files_save
7720
7721 test $ac_write_fail = 0 ||
7722   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7723
7724
7725 # configure is writing to config.log, and then calls config.status.
7726 # config.status does its own redirection, appending to config.log.
7727 # Unfortunately, on DOS this fails, as config.log is still kept open
7728 # by configure, so config.status won't be able to write to it; its
7729 # output is simply discarded.  So we exec the FD to /dev/null,
7730 # effectively closing config.log, so it can be properly (re)opened and
7731 # appended to by config.status.  When coming back to configure, we
7732 # need to make the FD available again.
7733 if test "$no_create" != yes; then
7734   ac_cs_success=:
7735   ac_config_status_args=
7736   test "$silent" = yes &&
7737     ac_config_status_args="$ac_config_status_args --quiet"
7738   exec 5>/dev/null
7739   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7740   exec 5>>config.log
7741   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7742   # would make configure fail if this is the last instruction.
7743   $ac_cs_success || as_fn_exit 1
7744 fi
7745 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7747 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7748 fi
7749