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