xref: /vim-8.2.3635/src/auto/configure (revision 9c754c45)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell [email protected] about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537#
538# Initializations.
539#
540ac_default_prefix=/usr/local
541ac_clean_files=
542ac_config_libobj_dir=.
543LIBOBJS=
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
548
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
555PACKAGE_URL=
556
557ac_unique_file="vim.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
561#ifdef HAVE_SYS_TYPES_H
562# include <sys/types.h>
563#endif
564#ifdef HAVE_SYS_STAT_H
565# include <sys/stat.h>
566#endif
567#ifdef STDC_HEADERS
568# include <stdlib.h>
569# include <stddef.h>
570#else
571# ifdef HAVE_STDLIB_H
572#  include <stdlib.h>
573# endif
574#endif
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577#  include <memory.h>
578# endif
579# include <string.h>
580#endif
581#ifdef HAVE_STRINGS_H
582# include <strings.h>
583#endif
584#ifdef HAVE_INTTYPES_H
585# include <inttypes.h>
586#endif
587#ifdef HAVE_STDINT_H
588# include <stdint.h>
589#endif
590#ifdef HAVE_UNISTD_H
591# include <unistd.h>
592#endif"
593
594ac_subst_vars='LTLIBOBJS
595LIBOBJS
596DEPEND_CFLAGS_FILTER
597MAKEMO
598MSGFMT
599INSTALL_TOOL_LANGS
600INSTALL_LANGS
601TAGPRG
602HANGULIN_OBJ
603HANGULIN_SRC
604GUI_X_LIBS
605GUITYPE
606GUI_LIB_LOC
607GUI_INC_LOC
608NARROW_PROTO
609MOTIF_LIBNAME
610GNOME_INCLUDEDIR
611GNOME_LIBDIR
612GNOME_LIBS
613GTK_LIBNAME
614GTK_LIBS
615GTK_CFLAGS
616PKG_CONFIG
617X_LIB
618X_EXTRA_LIBS
619X_LIBS
620X_PRE_LIBS
621X_CFLAGS
622XMKMF
623xmkmfpath
624SNIFF_OBJ
625SNIFF_SRC
626NETBEANS_OBJ
627NETBEANS_SRC
628WORKSHOP_OBJ
629WORKSHOP_SRC
630RUBY_LIBS
631RUBY_CFLAGS
632RUBY_PRO
633RUBY_OBJ
634RUBY_SRC
635vi_cv_path_ruby
636TCL_LIBS
637TCL_CFLAGS
638TCL_PRO
639TCL_OBJ
640TCL_SRC
641vi_cv_path_tcl
642PYTHON_OBJ
643PYTHON_SRC
644PYTHON_NOPROTO
645PYTHON_CFLAGS
646PYTHON_GETPATH_CFLAGS
647PYTHON_LIBS
648PYTHON_CONFDIR
649vi_cv_path_python
650PERL_LIBS
651PERL_CFLAGS
652PERL_PRO
653PERL_OBJ
654PERL_SRC
655shrpenv
656vi_cv_perllib
657vi_cv_path_perl
658MZSCHEME_MZC
659MZSCHEME_EXTRA
660MZSCHEME_CFLAGS
661MZSCHEME_LIBS
662MZSCHEME_PRO
663MZSCHEME_OBJ
664MZSCHEME_SRC
665vi_cv_path_mzscheme
666compiledby
667dogvimdiff
668dovimdiff
669QUOTESED
670line_break
671VIEWNAME
672EXNAME
673VIMNAME
674OS_EXTRA_OBJ
675OS_EXTRA_SRC
676XCODE_SELECT
677CPP_MM
678STRIP
679AWK
680EGREP
681GREP
682CPP
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690SET_MAKE
691target_alias
692host_alias
693build_alias
694LIBS
695ECHO_T
696ECHO_N
697ECHO_C
698DEFS
699mandir
700localedir
701libdir
702psdir
703pdfdir
704dvidir
705htmldir
706infodir
707docdir
708oldincludedir
709includedir
710localstatedir
711sharedstatedir
712sysconfdir
713datadir
714datarootdir
715libexecdir
716sbindir
717bindir
718program_transform_name
719prefix
720exec_prefix
721PACKAGE_URL
722PACKAGE_BUGREPORT
723PACKAGE_STRING
724PACKAGE_VERSION
725PACKAGE_TARNAME
726PACKAGE_NAME
727PATH_SEPARATOR
728SHELL'
729ac_subst_files=''
730ac_user_opts='
731enable_option_checking
732enable_darwin
733with_mac_arch
734with_developer_dir
735with_local_dir
736with_vim_name
737with_ex_name
738with_view_name
739with_global_runtime
740with_modified_by
741enable_selinux
742with_features
743with_compiledby
744enable_xsmp
745enable_xsmp_interact
746enable_mzschemeinterp
747with_plthome
748enable_perlinterp
749enable_pythoninterp
750with_python_config_dir
751enable_tclinterp
752with_tclsh
753enable_rubyinterp
754with_ruby_command
755enable_cscope
756enable_workshop
757enable_netbeans
758enable_sniff
759enable_multibyte
760enable_hangulinput
761enable_xim
762enable_fontset
763with_x
764enable_gui
765enable_gtk2_check
766enable_gnome_check
767enable_motif_check
768enable_athena_check
769enable_nextaw_check
770enable_carbon_check
771enable_gtktest
772with_gnome_includes
773with_gnome_libs
774with_gnome
775with_motif_lib
776with_tlib
777enable_largefile
778enable_acl
779enable_gpm
780enable_sysmouse
781enable_nls
782'
783      ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
789LIBS
790CPPFLAGS
791CPP
792XMKMF'
793
794
795# Initialize some variables set by options.
796ac_init_help=
797ac_init_version=false
798ac_unrecognized_opts=
799ac_unrecognized_sep=
800# The variables have the same names as the options, with
801# dashes changed to underlines.
802cache_file=/dev/null
803exec_prefix=NONE
804no_create=
805no_recursion=
806prefix=NONE
807program_prefix=NONE
808program_suffix=NONE
809program_transform_name=s,x,x,
810silent=
811site=
812srcdir=
813verbose=
814x_includes=NONE
815x_libraries=NONE
816
817# Installation directory options.
818# These are left unexpanded so users can "make install exec_prefix=/foo"
819# and all the variables that are supposed to be based on exec_prefix
820# by default will actually change.
821# Use braces instead of parens because sh, perl, etc. also accept them.
822# (The list follows the same order as the GNU Coding Standards.)
823bindir='${exec_prefix}/bin'
824sbindir='${exec_prefix}/sbin'
825libexecdir='${exec_prefix}/libexec'
826datarootdir='${prefix}/share'
827datadir='${datarootdir}'
828sysconfdir='${prefix}/etc'
829sharedstatedir='${prefix}/com'
830localstatedir='${prefix}/var'
831includedir='${prefix}/include'
832oldincludedir='/usr/include'
833docdir='${datarootdir}/doc/${PACKAGE}'
834infodir='${datarootdir}/info'
835htmldir='${docdir}'
836dvidir='${docdir}'
837pdfdir='${docdir}'
838psdir='${docdir}'
839libdir='${exec_prefix}/lib'
840localedir='${datarootdir}/locale'
841mandir='${datarootdir}/man'
842
843ac_prev=
844ac_dashdash=
845for ac_option
846do
847  # If the previous option needs an argument, assign it.
848  if test -n "$ac_prev"; then
849    eval $ac_prev=\$ac_option
850    ac_prev=
851    continue
852  fi
853
854  case $ac_option in
855  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856  *)	ac_optarg=yes ;;
857  esac
858
859  # Accept the important Cygnus configure options, so we can diagnose typos.
860
861  case $ac_dashdash$ac_option in
862  --)
863    ac_dashdash=yes ;;
864
865  -bindir | --bindir | --bindi | --bind | --bin | --bi)
866    ac_prev=bindir ;;
867  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
868    bindir=$ac_optarg ;;
869
870  -build | --build | --buil | --bui | --bu)
871    ac_prev=build_alias ;;
872  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
873    build_alias=$ac_optarg ;;
874
875  -cache-file | --cache-file | --cache-fil | --cache-fi \
876  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
877    ac_prev=cache_file ;;
878  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
879  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
880    cache_file=$ac_optarg ;;
881
882  --config-cache | -C)
883    cache_file=config.cache ;;
884
885  -datadir | --datadir | --datadi | --datad)
886    ac_prev=datadir ;;
887  -datadir=* | --datadir=* | --datadi=* | --datad=*)
888    datadir=$ac_optarg ;;
889
890  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
891  | --dataroo | --dataro | --datar)
892    ac_prev=datarootdir ;;
893  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
894  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
895    datarootdir=$ac_optarg ;;
896
897  -disable-* | --disable-*)
898    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
899    # Reject names that are not valid shell variable names.
900    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901      as_fn_error "invalid feature name: $ac_useropt"
902    ac_useropt_orig=$ac_useropt
903    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904    case $ac_user_opts in
905      *"
906"enable_$ac_useropt"
907"*) ;;
908      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
909	 ac_unrecognized_sep=', ';;
910    esac
911    eval enable_$ac_useropt=no ;;
912
913  -docdir | --docdir | --docdi | --doc | --do)
914    ac_prev=docdir ;;
915  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
916    docdir=$ac_optarg ;;
917
918  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
919    ac_prev=dvidir ;;
920  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
921    dvidir=$ac_optarg ;;
922
923  -enable-* | --enable-*)
924    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
925    # Reject names that are not valid shell variable names.
926    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927      as_fn_error "invalid feature name: $ac_useropt"
928    ac_useropt_orig=$ac_useropt
929    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930    case $ac_user_opts in
931      *"
932"enable_$ac_useropt"
933"*) ;;
934      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
935	 ac_unrecognized_sep=', ';;
936    esac
937    eval enable_$ac_useropt=\$ac_optarg ;;
938
939  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941  | --exec | --exe | --ex)
942    ac_prev=exec_prefix ;;
943  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945  | --exec=* | --exe=* | --ex=*)
946    exec_prefix=$ac_optarg ;;
947
948  -gas | --gas | --ga | --g)
949    # Obsolete; use --with-gas.
950    with_gas=yes ;;
951
952  -help | --help | --hel | --he | -h)
953    ac_init_help=long ;;
954  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955    ac_init_help=recursive ;;
956  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957    ac_init_help=short ;;
958
959  -host | --host | --hos | --ho)
960    ac_prev=host_alias ;;
961  -host=* | --host=* | --hos=* | --ho=*)
962    host_alias=$ac_optarg ;;
963
964  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
965    ac_prev=htmldir ;;
966  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
967  | --ht=*)
968    htmldir=$ac_optarg ;;
969
970  -includedir | --includedir | --includedi | --included | --include \
971  | --includ | --inclu | --incl | --inc)
972    ac_prev=includedir ;;
973  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974  | --includ=* | --inclu=* | --incl=* | --inc=*)
975    includedir=$ac_optarg ;;
976
977  -infodir | --infodir | --infodi | --infod | --info | --inf)
978    ac_prev=infodir ;;
979  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980    infodir=$ac_optarg ;;
981
982  -libdir | --libdir | --libdi | --libd)
983    ac_prev=libdir ;;
984  -libdir=* | --libdir=* | --libdi=* | --libd=*)
985    libdir=$ac_optarg ;;
986
987  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988  | --libexe | --libex | --libe)
989    ac_prev=libexecdir ;;
990  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991  | --libexe=* | --libex=* | --libe=*)
992    libexecdir=$ac_optarg ;;
993
994  -localedir | --localedir | --localedi | --localed | --locale)
995    ac_prev=localedir ;;
996  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997    localedir=$ac_optarg ;;
998
999  -localstatedir | --localstatedir | --localstatedi | --localstated \
1000  | --localstate | --localstat | --localsta | --localst | --locals)
1001    ac_prev=localstatedir ;;
1002  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004    localstatedir=$ac_optarg ;;
1005
1006  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1007    ac_prev=mandir ;;
1008  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009    mandir=$ac_optarg ;;
1010
1011  -nfp | --nfp | --nf)
1012    # Obsolete; use --without-fp.
1013    with_fp=no ;;
1014
1015  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016  | --no-cr | --no-c | -n)
1017    no_create=yes ;;
1018
1019  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1021    no_recursion=yes ;;
1022
1023  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025  | --oldin | --oldi | --old | --ol | --o)
1026    ac_prev=oldincludedir ;;
1027  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030    oldincludedir=$ac_optarg ;;
1031
1032  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1033    ac_prev=prefix ;;
1034  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035    prefix=$ac_optarg ;;
1036
1037  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038  | --program-pre | --program-pr | --program-p)
1039    ac_prev=program_prefix ;;
1040  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042    program_prefix=$ac_optarg ;;
1043
1044  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045  | --program-suf | --program-su | --program-s)
1046    ac_prev=program_suffix ;;
1047  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049    program_suffix=$ac_optarg ;;
1050
1051  -program-transform-name | --program-transform-name \
1052  | --program-transform-nam | --program-transform-na \
1053  | --program-transform-n | --program-transform- \
1054  | --program-transform | --program-transfor \
1055  | --program-transfo | --program-transf \
1056  | --program-trans | --program-tran \
1057  | --progr-tra | --program-tr | --program-t)
1058    ac_prev=program_transform_name ;;
1059  -program-transform-name=* | --program-transform-name=* \
1060  | --program-transform-nam=* | --program-transform-na=* \
1061  | --program-transform-n=* | --program-transform-=* \
1062  | --program-transform=* | --program-transfor=* \
1063  | --program-transfo=* | --program-transf=* \
1064  | --program-trans=* | --program-tran=* \
1065  | --progr-tra=* | --program-tr=* | --program-t=*)
1066    program_transform_name=$ac_optarg ;;
1067
1068  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1069    ac_prev=pdfdir ;;
1070  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071    pdfdir=$ac_optarg ;;
1072
1073  -psdir | --psdir | --psdi | --psd | --ps)
1074    ac_prev=psdir ;;
1075  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1076    psdir=$ac_optarg ;;
1077
1078  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079  | -silent | --silent | --silen | --sile | --sil)
1080    silent=yes ;;
1081
1082  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083    ac_prev=sbindir ;;
1084  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085  | --sbi=* | --sb=*)
1086    sbindir=$ac_optarg ;;
1087
1088  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090  | --sharedst | --shareds | --shared | --share | --shar \
1091  | --sha | --sh)
1092    ac_prev=sharedstatedir ;;
1093  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096  | --sha=* | --sh=*)
1097    sharedstatedir=$ac_optarg ;;
1098
1099  -site | --site | --sit)
1100    ac_prev=site ;;
1101  -site=* | --site=* | --sit=*)
1102    site=$ac_optarg ;;
1103
1104  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105    ac_prev=srcdir ;;
1106  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107    srcdir=$ac_optarg ;;
1108
1109  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110  | --syscon | --sysco | --sysc | --sys | --sy)
1111    ac_prev=sysconfdir ;;
1112  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114    sysconfdir=$ac_optarg ;;
1115
1116  -target | --target | --targe | --targ | --tar | --ta | --t)
1117    ac_prev=target_alias ;;
1118  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119    target_alias=$ac_optarg ;;
1120
1121  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122    verbose=yes ;;
1123
1124  -version | --version | --versio | --versi | --vers | -V)
1125    ac_init_version=: ;;
1126
1127  -with-* | --with-*)
1128    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129    # Reject names that are not valid shell variable names.
1130    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131      as_fn_error "invalid package name: $ac_useropt"
1132    ac_useropt_orig=$ac_useropt
1133    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134    case $ac_user_opts in
1135      *"
1136"with_$ac_useropt"
1137"*) ;;
1138      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139	 ac_unrecognized_sep=', ';;
1140    esac
1141    eval with_$ac_useropt=\$ac_optarg ;;
1142
1143  -without-* | --without-*)
1144    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147      as_fn_error "invalid package name: $ac_useropt"
1148    ac_useropt_orig=$ac_useropt
1149    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150    case $ac_user_opts in
1151      *"
1152"with_$ac_useropt"
1153"*) ;;
1154      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155	 ac_unrecognized_sep=', ';;
1156    esac
1157    eval with_$ac_useropt=no ;;
1158
1159  --x)
1160    # Obsolete; use --with-x.
1161    with_x=yes ;;
1162
1163  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164  | --x-incl | --x-inc | --x-in | --x-i)
1165    ac_prev=x_includes ;;
1166  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168    x_includes=$ac_optarg ;;
1169
1170  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172    ac_prev=x_libraries ;;
1173  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175    x_libraries=$ac_optarg ;;
1176
1177  -*) as_fn_error "unrecognized option: \`$ac_option'
1178Try \`$0 --help' for more information."
1179    ;;
1180
1181  *=*)
1182    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183    # Reject names that are not valid shell variable names.
1184    case $ac_envvar in #(
1185      '' | [0-9]* | *[!_$as_cr_alnum]* )
1186      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1187    esac
1188    eval $ac_envvar=\$ac_optarg
1189    export $ac_envvar ;;
1190
1191  *)
1192    # FIXME: should be removed in autoconf 3.0.
1193    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197    ;;
1198
1199  esac
1200done
1201
1202if test -n "$ac_prev"; then
1203  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204  as_fn_error "missing argument to $ac_option"
1205fi
1206
1207if test -n "$ac_unrecognized_opts"; then
1208  case $enable_option_checking in
1209    no) ;;
1210    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1211    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212  esac
1213fi
1214
1215# Check all directory arguments for consistency.
1216for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217		datadir sysconfdir sharedstatedir localstatedir includedir \
1218		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219		libdir localedir mandir
1220do
1221  eval ac_val=\$$ac_var
1222  # Remove trailing slashes.
1223  case $ac_val in
1224    */ )
1225      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226      eval $ac_var=\$ac_val;;
1227  esac
1228  # Be sure to have absolute directory names.
1229  case $ac_val in
1230    [\\/$]* | ?:[\\/]* )  continue;;
1231    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232  esac
1233  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1234done
1235
1236# There might be people who depend on the old broken behavior: `$host'
1237# used to hold the argument of --host etc.
1238# FIXME: To remove some day.
1239build=$build_alias
1240host=$host_alias
1241target=$target_alias
1242
1243# FIXME: To remove some day.
1244if test "x$host_alias" != x; then
1245  if test "x$build_alias" = x; then
1246    cross_compiling=maybe
1247    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1248    If a cross compiler is detected then cross compile mode will be used." >&2
1249  elif test "x$build_alias" != "x$host_alias"; then
1250    cross_compiling=yes
1251  fi
1252fi
1253
1254ac_tool_prefix=
1255test -n "$host_alias" && ac_tool_prefix=$host_alias-
1256
1257test "$silent" = yes && exec 6>/dev/null
1258
1259
1260ac_pwd=`pwd` && test -n "$ac_pwd" &&
1261ac_ls_di=`ls -di .` &&
1262ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1263  as_fn_error "working directory cannot be determined"
1264test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1265  as_fn_error "pwd does not report name of working directory"
1266
1267
1268# Find the source files, if location was not specified.
1269if test -z "$srcdir"; then
1270  ac_srcdir_defaulted=yes
1271  # Try the directory containing this script, then the parent directory.
1272  ac_confdir=`$as_dirname -- "$as_myself" ||
1273$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274	 X"$as_myself" : 'X\(//\)[^/]' \| \
1275	 X"$as_myself" : 'X\(//\)$' \| \
1276	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1277$as_echo X"$as_myself" |
1278    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279	    s//\1/
1280	    q
1281	  }
1282	  /^X\(\/\/\)[^/].*/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\/\)$/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\).*/{
1291	    s//\1/
1292	    q
1293	  }
1294	  s/.*/./; q'`
1295  srcdir=$ac_confdir
1296  if test ! -r "$srcdir/$ac_unique_file"; then
1297    srcdir=..
1298  fi
1299else
1300  ac_srcdir_defaulted=no
1301fi
1302if test ! -r "$srcdir/$ac_unique_file"; then
1303  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1305fi
1306ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307ac_abs_confdir=`(
1308	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1309	pwd)`
1310# When building in place, set srcdir=.
1311if test "$ac_abs_confdir" = "$ac_pwd"; then
1312  srcdir=.
1313fi
1314# Remove unnecessary trailing slashes from srcdir.
1315# Double slashes in file names in object file debugging info
1316# mess up M-x gdb in Emacs.
1317case $srcdir in
1318*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319esac
1320for ac_var in $ac_precious_vars; do
1321  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1322  eval ac_env_${ac_var}_value=\$${ac_var}
1323  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1324  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325done
1326
1327#
1328# Report the --help message.
1329#
1330if test "$ac_init_help" = "long"; then
1331  # Omit some internal or obsolete options to make the list less imposing.
1332  # This message is too long to be a string in the A/UX 3.1 sh.
1333  cat <<_ACEOF
1334\`configure' configures this package to adapt to many kinds of systems.
1335
1336Usage: $0 [OPTION]... [VAR=VALUE]...
1337
1338To assign environment variables (e.g., CC, CFLAGS...), specify them as
1339VAR=VALUE.  See below for descriptions of some of the useful variables.
1340
1341Defaults for the options are specified in brackets.
1342
1343Configuration:
1344  -h, --help              display this help and exit
1345      --help=short        display options specific to this package
1346      --help=recursive    display the short help of all the included packages
1347  -V, --version           display version information and exit
1348  -q, --quiet, --silent   do not print \`checking...' messages
1349      --cache-file=FILE   cache test results in FILE [disabled]
1350  -C, --config-cache      alias for \`--cache-file=config.cache'
1351  -n, --no-create         do not create output files
1352      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1353
1354Installation directories:
1355  --prefix=PREFIX         install architecture-independent files in PREFIX
1356                          [$ac_default_prefix]
1357  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1358                          [PREFIX]
1359
1360By default, \`make install' will install all the files in
1361\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1362an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1363for instance \`--prefix=\$HOME'.
1364
1365For better control, use the options below.
1366
1367Fine tuning of the installation directories:
1368  --bindir=DIR            user executables [EPREFIX/bin]
1369  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1370  --libexecdir=DIR        program executables [EPREFIX/libexec]
1371  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1372  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1373  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1374  --libdir=DIR            object code libraries [EPREFIX/lib]
1375  --includedir=DIR        C header files [PREFIX/include]
1376  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1377  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1378  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1379  --infodir=DIR           info documentation [DATAROOTDIR/info]
1380  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1381  --mandir=DIR            man documentation [DATAROOTDIR/man]
1382  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1383  --htmldir=DIR           html documentation [DOCDIR]
1384  --dvidir=DIR            dvi documentation [DOCDIR]
1385  --pdfdir=DIR            pdf documentation [DOCDIR]
1386  --psdir=DIR             ps documentation [DOCDIR]
1387_ACEOF
1388
1389  cat <<\_ACEOF
1390
1391X features:
1392  --x-includes=DIR    X include files are in DIR
1393  --x-libraries=DIR   X library files are in DIR
1394_ACEOF
1395fi
1396
1397if test -n "$ac_init_help"; then
1398
1399  cat <<\_ACEOF
1400
1401Optional Features:
1402  --disable-option-checking  ignore unrecognized --enable/--with options
1403  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1404  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1405  --disable-darwin        Disable Darwin (Mac OS X) support.
1406  --disable-selinux	  Don't check for SELinux support.
1407  --disable-xsmp          Disable XSMP session management
1408  --disable-xsmp-interact Disable XSMP interaction
1409  --enable-mzschemeinterp   Include MzScheme interpreter.
1410  --enable-perlinterp     Include Perl interpreter.
1411  --enable-pythoninterp   Include Python interpreter.
1412  --enable-tclinterp      Include Tcl interpreter.
1413  --enable-rubyinterp     Include Ruby interpreter.
1414  --enable-cscope         Include cscope interface.
1415  --enable-workshop       Include Sun Visual Workshop support.
1416  --disable-netbeans      Disable NetBeans integration support.
1417  --enable-sniff          Include Sniff interface.
1418  --enable-multibyte      Include multibyte editing support.
1419  --enable-hangulinput    Include Hangul input support.
1420  --enable-xim            Include XIM input support.
1421  --enable-fontset        Include X fontset output support.
1422  --enable-gui=OPTS     X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/motif/athena/neXtaw/photon/carbon
1423  --enable-gtk2-check     If auto-select GUI, check for GTK+ 2 default=yes
1424  --enable-gnome-check    If GTK GUI, check for GNOME default=no
1425  --enable-motif-check    If auto-select GUI, check for Motif default=yes
1426  --enable-athena-check   If auto-select GUI, check for Athena default=yes
1427  --enable-nextaw-check   If auto-select GUI, check for neXtaw default=yes
1428  --enable-carbon-check   If auto-select GUI, check for Carbon default=yes
1429  --disable-gtktest       Do not try to compile and run a test GTK program
1430  --disable-largefile     omit support for large files
1431  --disable-acl           Don't check for ACL support.
1432  --disable-gpm           Don't use gpm (Linux mouse daemon).
1433  --disable-sysmouse    Don't use sysmouse (mouse in *BSD console).
1434  --disable-nls           Don't support NLS (gettext()).
1435
1436Optional Packages:
1437  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439  --with-mac-arch=ARCH    current, intel, ppc or both
1440  --with-developer-dir=PATH    use PATH as location for Xcode developer tools
1441  --with-local-dir=PATH   search PATH instead of /usr/local for local libraries.
1442  --without-local-dir     do not search /usr/local for local libraries.
1443  --with-vim-name=NAME    what to call the Vim executable
1444  --with-ex-name=NAME     what to call the Ex executable
1445  --with-view-name=NAME   what to call the View executable
1446  --with-global-runtime=DIR    global runtime directory in 'runtimepath'
1447  --with-modified-by=NAME       name of who modified a release version
1448  --with-features=TYPE    tiny, small, normal, big or huge (default: normal)
1449  --with-compiledby=NAME  name to show in :version message
1450  --with-plthome=PLTHOME   Use PLTHOME.
1451  --with-python-config-dir=PATH  Python's config directory
1452  --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
1453  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
1454  --with-x                use the X Window System
1455  --with-gnome-includes=DIR Specify location of GNOME headers
1456  --with-gnome-libs=DIR   Specify location of GNOME libs
1457  --with-gnome            Specify prefix for GNOME files
1458  --with-motif-lib=STRING   Library for Motif
1459  --with-tlib=library     terminal library to be used
1460
1461Some influential environment variables:
1462  CC          C compiler command
1463  CFLAGS      C compiler flags
1464  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1465              nonstandard directory <lib dir>
1466  LIBS        libraries to pass to the linker, e.g. -l<library>
1467  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1468              you have headers in a nonstandard directory <include dir>
1469  CPP         C preprocessor
1470  XMKMF       Path to xmkmf, Makefile generator for X Window System
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to the package provider.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481  # If there are subdirs, report their specific --help.
1482  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483    test -d "$ac_dir" ||
1484      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485      continue
1486    ac_builddir=.
1487
1488case "$ac_dir" in
1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490*)
1491  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492  # A ".." for each directory in $ac_dir_suffix.
1493  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494  case $ac_top_builddir_sub in
1495  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497  esac ;;
1498esac
1499ac_abs_top_builddir=$ac_pwd
1500ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501# for backward compatibility:
1502ac_top_builddir=$ac_top_build_prefix
1503
1504case $srcdir in
1505  .)  # We are building in place.
1506    ac_srcdir=.
1507    ac_top_srcdir=$ac_top_builddir_sub
1508    ac_abs_top_srcdir=$ac_pwd ;;
1509  [\\/]* | ?:[\\/]* )  # Absolute name.
1510    ac_srcdir=$srcdir$ac_dir_suffix;
1511    ac_top_srcdir=$srcdir
1512    ac_abs_top_srcdir=$srcdir ;;
1513  *) # Relative name.
1514    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515    ac_top_srcdir=$ac_top_build_prefix$srcdir
1516    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517esac
1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520    cd "$ac_dir" || { ac_status=$?; continue; }
1521    # Check for guested configure.
1522    if test -f "$ac_srcdir/configure.gnu"; then
1523      echo &&
1524      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525    elif test -f "$ac_srcdir/configure"; then
1526      echo &&
1527      $SHELL "$ac_srcdir/configure" --help=recursive
1528    else
1529      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530    fi || ac_status=$?
1531    cd "$ac_pwd" || { ac_status=$?; break; }
1532  done
1533fi
1534
1535test -n "$ac_init_help" && exit $ac_status
1536if $ac_init_version; then
1537  cat <<\_ACEOF
1538configure
1539generated by GNU Autoconf 2.65
1540
1541Copyright (C) 2009 Free Software Foundation, Inc.
1542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
1544_ACEOF
1545  exit
1546fi
1547
1548## ------------------------ ##
1549## Autoconf initialization. ##
1550## ------------------------ ##
1551
1552# ac_fn_c_try_compile LINENO
1553# --------------------------
1554# Try to compile conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_compile ()
1556{
1557  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558  rm -f conftest.$ac_objext
1559  if { { ac_try="$ac_compile"
1560case "(($ac_try" in
1561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562  *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566  (eval "$ac_compile") 2>conftest.err
1567  ac_status=$?
1568  if test -s conftest.err; then
1569    grep -v '^ *+' conftest.err >conftest.er1
1570    cat conftest.er1 >&5
1571    mv -f conftest.er1 conftest.err
1572  fi
1573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574  test $ac_status = 0; } && {
1575	 test -z "$ac_c_werror_flag" ||
1576	 test ! -s conftest.err
1577       } && test -s conftest.$ac_objext; then :
1578  ac_retval=0
1579else
1580  $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583	ac_retval=1
1584fi
1585  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1586  as_fn_set_status $ac_retval
1587
1588} # ac_fn_c_try_compile
1589
1590# ac_fn_c_try_cpp LINENO
1591# ----------------------
1592# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1593ac_fn_c_try_cpp ()
1594{
1595  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596  if { { ac_try="$ac_cpp conftest.$ac_ext"
1597case "(($ac_try" in
1598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599  *) ac_try_echo=$ac_try;;
1600esac
1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602$as_echo "$ac_try_echo"; } >&5
1603  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1604  ac_status=$?
1605  if test -s conftest.err; then
1606    grep -v '^ *+' conftest.err >conftest.er1
1607    cat conftest.er1 >&5
1608    mv -f conftest.er1 conftest.err
1609  fi
1610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611  test $ac_status = 0; } >/dev/null && {
1612	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1613	 test ! -s conftest.err
1614       }; then :
1615  ac_retval=0
1616else
1617  $as_echo "$as_me: failed program was:" >&5
1618sed 's/^/| /' conftest.$ac_ext >&5
1619
1620    ac_retval=1
1621fi
1622  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1623  as_fn_set_status $ac_retval
1624
1625} # ac_fn_c_try_cpp
1626
1627# ac_fn_c_try_link LINENO
1628# -----------------------
1629# Try to link conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_c_try_link ()
1631{
1632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633  rm -f conftest.$ac_objext conftest$ac_exeext
1634  if { { ac_try="$ac_link"
1635case "(($ac_try" in
1636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637  *) ac_try_echo=$ac_try;;
1638esac
1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640$as_echo "$ac_try_echo"; } >&5
1641  (eval "$ac_link") 2>conftest.err
1642  ac_status=$?
1643  if test -s conftest.err; then
1644    grep -v '^ *+' conftest.err >conftest.er1
1645    cat conftest.er1 >&5
1646    mv -f conftest.er1 conftest.err
1647  fi
1648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649  test $ac_status = 0; } && {
1650	 test -z "$ac_c_werror_flag" ||
1651	 test ! -s conftest.err
1652       } && test -s conftest$ac_exeext && {
1653	 test "$cross_compiling" = yes ||
1654	 $as_test_x conftest$ac_exeext
1655       }; then :
1656  ac_retval=0
1657else
1658  $as_echo "$as_me: failed program was:" >&5
1659sed 's/^/| /' conftest.$ac_ext >&5
1660
1661	ac_retval=1
1662fi
1663  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1664  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1665  # interfere with the next link command; also delete a directory that is
1666  # left behind by Apple's compiler.  We do this before executing the actions.
1667  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669  as_fn_set_status $ac_retval
1670
1671} # ac_fn_c_try_link
1672
1673# ac_fn_c_try_run LINENO
1674# ----------------------
1675# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676# that executables *can* be run.
1677ac_fn_c_try_run ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  if { { ac_try="$ac_link"
1681case "(($ac_try" in
1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683  *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687  (eval "$ac_link") 2>&5
1688  ac_status=$?
1689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691  { { case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697  (eval "$ac_try") 2>&5
1698  ac_status=$?
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; }; }; then :
1701  ac_retval=0
1702else
1703  $as_echo "$as_me: program exited with status $ac_status" >&5
1704       $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707       ac_retval=$ac_status
1708fi
1709  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711  as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_run
1714
1715# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1716# -------------------------------------------------------
1717# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1718# the include files in INCLUDES and setting the cache variable VAR
1719# accordingly.
1720ac_fn_c_check_header_mongrel ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1724  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725$as_echo_n "checking for $2... " >&6; }
1726if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1727  $as_echo_n "(cached) " >&6
1728fi
1729eval ac_res=\$$3
1730	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731$as_echo "$ac_res" >&6; }
1732else
1733  # Is the header compilable?
1734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1735$as_echo_n "checking $2 usability... " >&6; }
1736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737/* end confdefs.h.  */
1738$4
1739#include <$2>
1740_ACEOF
1741if ac_fn_c_try_compile "$LINENO"; then :
1742  ac_header_compiler=yes
1743else
1744  ac_header_compiler=no
1745fi
1746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1748$as_echo "$ac_header_compiler" >&6; }
1749
1750# Is the header present?
1751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1752$as_echo_n "checking $2 presence... " >&6; }
1753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754/* end confdefs.h.  */
1755#include <$2>
1756_ACEOF
1757if ac_fn_c_try_cpp "$LINENO"; then :
1758  ac_header_preproc=yes
1759else
1760  ac_header_preproc=no
1761fi
1762rm -f conftest.err conftest.$ac_ext
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1764$as_echo "$ac_header_preproc" >&6; }
1765
1766# So?  What about this header?
1767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1768  yes:no: )
1769    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1770$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1771    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1772$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1773    ;;
1774  no:yes:* )
1775    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1776$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1777    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1778$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1779    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1780$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1781    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1782$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1783    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785    ;;
1786esac
1787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1790  $as_echo_n "(cached) " >&6
1791else
1792  eval "$3=\$ac_header_compiler"
1793fi
1794eval ac_res=\$$3
1795	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797fi
1798  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799
1800} # ac_fn_c_check_header_mongrel
1801
1802# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1803# -------------------------------------------------------
1804# Tests whether HEADER exists and can be compiled using the include files in
1805# INCLUDES, setting the cache variable VAR accordingly.
1806ac_fn_c_check_header_compile ()
1807{
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810$as_echo_n "checking for $2... " >&6; }
1811if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1812  $as_echo_n "(cached) " >&6
1813else
1814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h.  */
1816$4
1817#include <$2>
1818_ACEOF
1819if ac_fn_c_try_compile "$LINENO"; then :
1820  eval "$3=yes"
1821else
1822  eval "$3=no"
1823fi
1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825fi
1826eval ac_res=\$$3
1827	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828$as_echo "$ac_res" >&6; }
1829  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830
1831} # ac_fn_c_check_header_compile
1832
1833# ac_fn_c_check_func LINENO FUNC VAR
1834# ----------------------------------
1835# Tests whether FUNC exists, setting the cache variable VAR accordingly
1836ac_fn_c_check_func ()
1837{
1838  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
1841if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842  $as_echo_n "(cached) " >&6
1843else
1844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845/* end confdefs.h.  */
1846/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1848#define $2 innocuous_$2
1849
1850/* System header to define __stub macros and hopefully few prototypes,
1851    which can conflict with char $2 (); below.
1852    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853    <limits.h> exists even on freestanding compilers.  */
1854
1855#ifdef __STDC__
1856# include <limits.h>
1857#else
1858# include <assert.h>
1859#endif
1860
1861#undef $2
1862
1863/* Override any GCC internal prototype to avoid an error.
1864   Use char because int might match the return type of a GCC
1865   builtin and then its argument prototype would still apply.  */
1866#ifdef __cplusplus
1867extern "C"
1868#endif
1869char $2 ();
1870/* The GNU C library defines this for functions which it implements
1871    to always fail with ENOSYS.  Some functions are actually named
1872    something starting with __ and the normal name is an alias.  */
1873#if defined __stub_$2 || defined __stub___$2
1874choke me
1875#endif
1876
1877int
1878main ()
1879{
1880return $2 ();
1881  ;
1882  return 0;
1883}
1884_ACEOF
1885if ac_fn_c_try_link "$LINENO"; then :
1886  eval "$3=yes"
1887else
1888  eval "$3=no"
1889fi
1890rm -f core conftest.err conftest.$ac_objext \
1891    conftest$ac_exeext conftest.$ac_ext
1892fi
1893eval ac_res=\$$3
1894	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895$as_echo "$ac_res" >&6; }
1896  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897
1898} # ac_fn_c_check_func
1899
1900# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1901# -------------------------------------------
1902# Tests whether TYPE exists after having included INCLUDES, setting cache
1903# variable VAR accordingly.
1904ac_fn_c_check_type ()
1905{
1906  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908$as_echo_n "checking for $2... " >&6; }
1909if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1910  $as_echo_n "(cached) " >&6
1911else
1912  eval "$3=no"
1913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h.  */
1915$4
1916int
1917main ()
1918{
1919if (sizeof ($2))
1920	 return 0;
1921  ;
1922  return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h.  */
1928$4
1929int
1930main ()
1931{
1932if (sizeof (($2)))
1933	    return 0;
1934  ;
1935  return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939
1940else
1941  eval "$3=yes"
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944fi
1945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946fi
1947eval ac_res=\$$3
1948	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951
1952} # ac_fn_c_check_type
1953
1954# ac_fn_c_find_uintX_t LINENO BITS VAR
1955# ------------------------------------
1956# Finds an unsigned integer type with width BITS, setting cache variable VAR
1957# accordingly.
1958ac_fn_c_find_uintX_t ()
1959{
1960  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1962$as_echo_n "checking for uint$2_t... " >&6; }
1963if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964  $as_echo_n "(cached) " >&6
1965else
1966  eval "$3=no"
1967     # Order is important - never check a type that is potentially smaller
1968     # than half of the expected target width.
1969     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1970	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1971       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h.  */
1973$ac_includes_default
1974int
1975main ()
1976{
1977static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1978test_array [0] = 0
1979
1980  ;
1981  return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_compile "$LINENO"; then :
1985  case $ac_type in #(
1986  uint$2_t) :
1987    eval "$3=yes" ;; #(
1988  *) :
1989    eval "$3=\$ac_type" ;;
1990esac
1991fi
1992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993       eval as_val=\$$3
1994   if test "x$as_val" = x""no; then :
1995
1996else
1997  break
1998fi
1999     done
2000fi
2001eval ac_res=\$$3
2002	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003$as_echo "$ac_res" >&6; }
2004  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005
2006} # ac_fn_c_find_uintX_t
2007
2008# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2009# --------------------------------------------
2010# Tries to find the compile-time value of EXPR in a program that includes
2011# INCLUDES, setting VAR accordingly. Returns whether the value could be
2012# computed
2013ac_fn_c_compute_int ()
2014{
2015  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016  if test "$cross_compiling" = yes; then
2017    # Depending upon the size, compute the lo and hi bounds.
2018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h.  */
2020$4
2021int
2022main ()
2023{
2024static int test_array [1 - 2 * !(($2) >= 0)];
2025test_array [0] = 0
2026
2027  ;
2028  return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032  ac_lo=0 ac_mid=0
2033  while :; do
2034    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h.  */
2036$4
2037int
2038main ()
2039{
2040static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2041test_array [0] = 0
2042
2043  ;
2044  return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_compile "$LINENO"; then :
2048  ac_hi=$ac_mid; break
2049else
2050  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2051			if test $ac_lo -le $ac_mid; then
2052			  ac_lo= ac_hi=
2053			  break
2054			fi
2055			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058  done
2059else
2060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h.  */
2062$4
2063int
2064main ()
2065{
2066static int test_array [1 - 2 * !(($2) < 0)];
2067test_array [0] = 0
2068
2069  ;
2070  return 0;
2071}
2072_ACEOF
2073if ac_fn_c_try_compile "$LINENO"; then :
2074  ac_hi=-1 ac_mid=-1
2075  while :; do
2076    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h.  */
2078$4
2079int
2080main ()
2081{
2082static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2083test_array [0] = 0
2084
2085  ;
2086  return 0;
2087}
2088_ACEOF
2089if ac_fn_c_try_compile "$LINENO"; then :
2090  ac_lo=$ac_mid; break
2091else
2092  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2093			if test $ac_mid -le $ac_hi; then
2094			  ac_lo= ac_hi=
2095			  break
2096			fi
2097			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2098fi
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100  done
2101else
2102  ac_lo= ac_hi=
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107# Binary search between lo and hi bounds.
2108while test "x$ac_lo" != "x$ac_hi"; do
2109  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h.  */
2112$4
2113int
2114main ()
2115{
2116static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2117test_array [0] = 0
2118
2119  ;
2120  return 0;
2121}
2122_ACEOF
2123if ac_fn_c_try_compile "$LINENO"; then :
2124  ac_hi=$ac_mid
2125else
2126  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2127fi
2128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129done
2130case $ac_lo in #((
2131?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2132'') ac_retval=1 ;;
2133esac
2134  else
2135    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136/* end confdefs.h.  */
2137$4
2138static long int longval () { return $2; }
2139static unsigned long int ulongval () { return $2; }
2140#include <stdio.h>
2141#include <stdlib.h>
2142int
2143main ()
2144{
2145
2146  FILE *f = fopen ("conftest.val", "w");
2147  if (! f)
2148    return 1;
2149  if (($2) < 0)
2150    {
2151      long int i = longval ();
2152      if (i != ($2))
2153	return 1;
2154      fprintf (f, "%ld", i);
2155    }
2156  else
2157    {
2158      unsigned long int i = ulongval ();
2159      if (i != ($2))
2160	return 1;
2161      fprintf (f, "%lu", i);
2162    }
2163  /* Do not output a trailing newline, as this causes \r\n confusion
2164     on some platforms.  */
2165  return ferror (f) || fclose (f) != 0;
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171if ac_fn_c_try_run "$LINENO"; then :
2172  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2173else
2174  ac_retval=1
2175fi
2176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2177  conftest.$ac_objext conftest.beam conftest.$ac_ext
2178rm -f conftest.val
2179
2180  fi
2181  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2182  as_fn_set_status $ac_retval
2183
2184} # ac_fn_c_compute_int
2185cat >auto/config.log <<_ACEOF
2186This file contains any messages produced by compilers while
2187running configure, to aid debugging if configure makes a mistake.
2188
2189It was created by $as_me, which was
2190generated by GNU Autoconf 2.65.  Invocation command line was
2191
2192  $ $0 $@
2193
2194_ACEOF
2195exec 5>>auto/config.log
2196{
2197cat <<_ASUNAME
2198## --------- ##
2199## Platform. ##
2200## --------- ##
2201
2202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2203uname -m = `(uname -m) 2>/dev/null || echo unknown`
2204uname -r = `(uname -r) 2>/dev/null || echo unknown`
2205uname -s = `(uname -s) 2>/dev/null || echo unknown`
2206uname -v = `(uname -v) 2>/dev/null || echo unknown`
2207
2208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2209/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2210
2211/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2212/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2214/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2215/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2216/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2217/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2218
2219_ASUNAME
2220
2221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222for as_dir in $PATH
2223do
2224  IFS=$as_save_IFS
2225  test -z "$as_dir" && as_dir=.
2226    $as_echo "PATH: $as_dir"
2227  done
2228IFS=$as_save_IFS
2229
2230} >&5
2231
2232cat >&5 <<_ACEOF
2233
2234
2235## ----------- ##
2236## Core tests. ##
2237## ----------- ##
2238
2239_ACEOF
2240
2241
2242# Keep a trace of the command line.
2243# Strip out --no-create and --no-recursion so they do not pile up.
2244# Strip out --silent because we don't want to record it for future runs.
2245# Also quote any args containing shell meta-characters.
2246# Make two passes to allow for proper duplicate-argument suppression.
2247ac_configure_args=
2248ac_configure_args0=
2249ac_configure_args1=
2250ac_must_keep_next=false
2251for ac_pass in 1 2
2252do
2253  for ac_arg
2254  do
2255    case $ac_arg in
2256    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2257    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2258    | -silent | --silent | --silen | --sile | --sil)
2259      continue ;;
2260    *\'*)
2261      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2262    esac
2263    case $ac_pass in
2264    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2265    2)
2266      as_fn_append ac_configure_args1 " '$ac_arg'"
2267      if test $ac_must_keep_next = true; then
2268	ac_must_keep_next=false # Got value, back to normal.
2269      else
2270	case $ac_arg in
2271	  *=* | --config-cache | -C | -disable-* | --disable-* \
2272	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2273	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2274	  | -with-* | --with-* | -without-* | --without-* | --x)
2275	    case "$ac_configure_args0 " in
2276	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2277	    esac
2278	    ;;
2279	  -* ) ac_must_keep_next=true ;;
2280	esac
2281      fi
2282      as_fn_append ac_configure_args " '$ac_arg'"
2283      ;;
2284    esac
2285  done
2286done
2287{ ac_configure_args0=; unset ac_configure_args0;}
2288{ ac_configure_args1=; unset ac_configure_args1;}
2289
2290# When interrupted or exit'd, cleanup temporary files, and complete
2291# config.log.  We remove comments because anyway the quotes in there
2292# would cause problems or look ugly.
2293# WARNING: Use '\'' to represent an apostrophe within the trap.
2294# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2295trap 'exit_status=$?
2296  # Save into config.log some information that might help in debugging.
2297  {
2298    echo
2299
2300    cat <<\_ASBOX
2301## ---------------- ##
2302## Cache variables. ##
2303## ---------------- ##
2304_ASBOX
2305    echo
2306    # The following way of writing the cache mishandles newlines in values,
2307(
2308  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2309    eval ac_val=\$$ac_var
2310    case $ac_val in #(
2311    *${as_nl}*)
2312      case $ac_var in #(
2313      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2314$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2315      esac
2316      case $ac_var in #(
2317      _ | IFS | as_nl) ;; #(
2318      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2319      *) { eval $ac_var=; unset $ac_var;} ;;
2320      esac ;;
2321    esac
2322  done
2323  (set) 2>&1 |
2324    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2325    *${as_nl}ac_space=\ *)
2326      sed -n \
2327	"s/'\''/'\''\\\\'\'''\''/g;
2328	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2329      ;; #(
2330    *)
2331      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2332      ;;
2333    esac |
2334    sort
2335)
2336    echo
2337
2338    cat <<\_ASBOX
2339## ----------------- ##
2340## Output variables. ##
2341## ----------------- ##
2342_ASBOX
2343    echo
2344    for ac_var in $ac_subst_vars
2345    do
2346      eval ac_val=\$$ac_var
2347      case $ac_val in
2348      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349      esac
2350      $as_echo "$ac_var='\''$ac_val'\''"
2351    done | sort
2352    echo
2353
2354    if test -n "$ac_subst_files"; then
2355      cat <<\_ASBOX
2356## ------------------- ##
2357## File substitutions. ##
2358## ------------------- ##
2359_ASBOX
2360      echo
2361      for ac_var in $ac_subst_files
2362      do
2363	eval ac_val=\$$ac_var
2364	case $ac_val in
2365	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2366	esac
2367	$as_echo "$ac_var='\''$ac_val'\''"
2368      done | sort
2369      echo
2370    fi
2371
2372    if test -s confdefs.h; then
2373      cat <<\_ASBOX
2374## ----------- ##
2375## confdefs.h. ##
2376## ----------- ##
2377_ASBOX
2378      echo
2379      cat confdefs.h
2380      echo
2381    fi
2382    test "$ac_signal" != 0 &&
2383      $as_echo "$as_me: caught signal $ac_signal"
2384    $as_echo "$as_me: exit $exit_status"
2385  } >&5
2386  rm -f core *.core core.conftest.* &&
2387    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2388    exit $exit_status
2389' 0
2390for ac_signal in 1 2 13 15; do
2391  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2392done
2393ac_signal=0
2394
2395# confdefs.h avoids OS command line length limits that DEFS can exceed.
2396rm -f -r conftest* confdefs.h
2397
2398$as_echo "/* confdefs.h */" > confdefs.h
2399
2400# Predefined preprocessor variables.
2401
2402cat >>confdefs.h <<_ACEOF
2403#define PACKAGE_NAME "$PACKAGE_NAME"
2404_ACEOF
2405
2406cat >>confdefs.h <<_ACEOF
2407#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2408_ACEOF
2409
2410cat >>confdefs.h <<_ACEOF
2411#define PACKAGE_VERSION "$PACKAGE_VERSION"
2412_ACEOF
2413
2414cat >>confdefs.h <<_ACEOF
2415#define PACKAGE_STRING "$PACKAGE_STRING"
2416_ACEOF
2417
2418cat >>confdefs.h <<_ACEOF
2419#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2420_ACEOF
2421
2422cat >>confdefs.h <<_ACEOF
2423#define PACKAGE_URL "$PACKAGE_URL"
2424_ACEOF
2425
2426
2427# Let the site file select an alternate cache file if it wants to.
2428# Prefer an explicitly selected file to automatically selected ones.
2429ac_site_file1=NONE
2430ac_site_file2=NONE
2431if test -n "$CONFIG_SITE"; then
2432  ac_site_file1=$CONFIG_SITE
2433elif test "x$prefix" != xNONE; then
2434  ac_site_file1=$prefix/share/config.site
2435  ac_site_file2=$prefix/etc/config.site
2436else
2437  ac_site_file1=$ac_default_prefix/share/config.site
2438  ac_site_file2=$ac_default_prefix/etc/config.site
2439fi
2440for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2441do
2442  test "x$ac_site_file" = xNONE && continue
2443  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2444    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2445$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2446    sed 's/^/| /' "$ac_site_file" >&5
2447    . "$ac_site_file"
2448  fi
2449done
2450
2451if test -r "$cache_file"; then
2452  # Some versions of bash will fail to source /dev/null (special files
2453  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2454  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2455    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2456$as_echo "$as_me: loading cache $cache_file" >&6;}
2457    case $cache_file in
2458      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2459      *)                      . "./$cache_file";;
2460    esac
2461  fi
2462else
2463  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2464$as_echo "$as_me: creating cache $cache_file" >&6;}
2465  >$cache_file
2466fi
2467
2468# Check that the precious variables saved in the cache have kept the same
2469# value.
2470ac_cache_corrupted=false
2471for ac_var in $ac_precious_vars; do
2472  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2473  eval ac_new_set=\$ac_env_${ac_var}_set
2474  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2475  eval ac_new_val=\$ac_env_${ac_var}_value
2476  case $ac_old_set,$ac_new_set in
2477    set,)
2478      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2479$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2480      ac_cache_corrupted=: ;;
2481    ,set)
2482      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2483$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2484      ac_cache_corrupted=: ;;
2485    ,);;
2486    *)
2487      if test "x$ac_old_val" != "x$ac_new_val"; then
2488	# differences in whitespace do not lead to failure.
2489	ac_old_val_w=`echo x $ac_old_val`
2490	ac_new_val_w=`echo x $ac_new_val`
2491	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2492	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2493$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2494	  ac_cache_corrupted=:
2495	else
2496	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2497$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2498	  eval $ac_var=\$ac_old_val
2499	fi
2500	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2501$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2502	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2503$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2504      fi;;
2505  esac
2506  # Pass precious variables to config.status.
2507  if test "$ac_new_set" = set; then
2508    case $ac_new_val in
2509    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2510    *) ac_arg=$ac_var=$ac_new_val ;;
2511    esac
2512    case " $ac_configure_args " in
2513      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2514      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2515    esac
2516  fi
2517done
2518if $ac_cache_corrupted; then
2519  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2522$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2523  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2524fi
2525## -------------------- ##
2526## Main body of script. ##
2527## -------------------- ##
2528
2529ac_ext=c
2530ac_cpp='$CPP $CPPFLAGS'
2531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534
2535
2536ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
2537
2538
2539$as_echo "#define UNIX 1" >>confdefs.h
2540
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2542$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2543set x ${MAKE-make}
2544ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2545if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2546  $as_echo_n "(cached) " >&6
2547else
2548  cat >conftest.make <<\_ACEOF
2549SHELL = /bin/sh
2550all:
2551	@echo '@@@%%%=$(MAKE)=@@@%%%'
2552_ACEOF
2553# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2554case `${MAKE-make} -f conftest.make 2>/dev/null` in
2555  *@@@%%%=?*=@@@%%%*)
2556    eval ac_cv_prog_make_${ac_make}_set=yes;;
2557  *)
2558    eval ac_cv_prog_make_${ac_make}_set=no;;
2559esac
2560rm -f conftest.make
2561fi
2562if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564$as_echo "yes" >&6; }
2565  SET_MAKE=
2566else
2567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2568$as_echo "no" >&6; }
2569  SET_MAKE="MAKE=${MAKE-make}"
2570fi
2571
2572
2573ac_ext=c
2574ac_cpp='$CPP $CPPFLAGS'
2575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578if test -n "$ac_tool_prefix"; then
2579  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2580set dummy ${ac_tool_prefix}gcc; 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; }
2583if test "${ac_cv_prog_CC+set}" = set; then :
2584  $as_echo_n "(cached) " >&6
2585else
2586  if test -n "$CC"; then
2587  ac_cv_prog_CC="$CC" # Let the user override the test.
2588else
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
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_CC="${ac_tool_prefix}gcc"
2597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598    break 2
2599  fi
2600done
2601  done
2602IFS=$as_save_IFS
2603
2604fi
2605fi
2606CC=$ac_cv_prog_CC
2607if test -n "$CC"; then
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2609$as_echo "$CC" >&6; }
2610else
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612$as_echo "no" >&6; }
2613fi
2614
2615
2616fi
2617if test -z "$ac_cv_prog_CC"; then
2618  ac_ct_CC=$CC
2619  # Extract the first word of "gcc", so it can be a program name with args.
2620set dummy gcc; ac_word=$2
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622$as_echo_n "checking for $ac_word... " >&6; }
2623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  if test -n "$ac_ct_CC"; then
2627  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632  IFS=$as_save_IFS
2633  test -z "$as_dir" && as_dir=.
2634    for ac_exec_ext in '' $ac_executable_extensions; do
2635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636    ac_cv_prog_ac_ct_CC="gcc"
2637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638    break 2
2639  fi
2640done
2641  done
2642IFS=$as_save_IFS
2643
2644fi
2645fi
2646ac_ct_CC=$ac_cv_prog_ac_ct_CC
2647if test -n "$ac_ct_CC"; then
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2649$as_echo "$ac_ct_CC" >&6; }
2650else
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652$as_echo "no" >&6; }
2653fi
2654
2655  if test "x$ac_ct_CC" = x; then
2656    CC=""
2657  else
2658    case $cross_compiling:$ac_tool_warned in
2659yes:)
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2662ac_tool_warned=yes ;;
2663esac
2664    CC=$ac_ct_CC
2665  fi
2666else
2667  CC="$ac_cv_prog_CC"
2668fi
2669
2670if test -z "$CC"; then
2671          if test -n "$ac_tool_prefix"; then
2672    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2673set dummy ${ac_tool_prefix}cc; ac_word=$2
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675$as_echo_n "checking for $ac_word... " >&6; }
2676if test "${ac_cv_prog_CC+set}" = set; then :
2677  $as_echo_n "(cached) " >&6
2678else
2679  if test -n "$CC"; then
2680  ac_cv_prog_CC="$CC" # Let the user override the test.
2681else
2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685  IFS=$as_save_IFS
2686  test -z "$as_dir" && as_dir=.
2687    for ac_exec_ext in '' $ac_executable_extensions; do
2688  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689    ac_cv_prog_CC="${ac_tool_prefix}cc"
2690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691    break 2
2692  fi
2693done
2694  done
2695IFS=$as_save_IFS
2696
2697fi
2698fi
2699CC=$ac_cv_prog_CC
2700if test -n "$CC"; then
2701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702$as_echo "$CC" >&6; }
2703else
2704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705$as_echo "no" >&6; }
2706fi
2707
2708
2709  fi
2710fi
2711if test -z "$CC"; then
2712  # Extract the first word of "cc", so it can be a program name with args.
2713set dummy cc; ac_word=$2
2714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715$as_echo_n "checking for $ac_word... " >&6; }
2716if test "${ac_cv_prog_CC+set}" = set; then :
2717  $as_echo_n "(cached) " >&6
2718else
2719  if test -n "$CC"; then
2720  ac_cv_prog_CC="$CC" # Let the user override the test.
2721else
2722  ac_prog_rejected=no
2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH
2725do
2726  IFS=$as_save_IFS
2727  test -z "$as_dir" && as_dir=.
2728    for ac_exec_ext in '' $ac_executable_extensions; do
2729  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2731       ac_prog_rejected=yes
2732       continue
2733     fi
2734    ac_cv_prog_CC="cc"
2735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739  done
2740IFS=$as_save_IFS
2741
2742if test $ac_prog_rejected = yes; then
2743  # We found a bogon in the path, so make sure we never use it.
2744  set dummy $ac_cv_prog_CC
2745  shift
2746  if test $# != 0; then
2747    # We chose a different compiler from the bogus one.
2748    # However, it has the same basename, so the bogon will be chosen
2749    # first if we set CC to just the basename; use the full file name.
2750    shift
2751    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2752  fi
2753fi
2754fi
2755fi
2756CC=$ac_cv_prog_CC
2757if test -n "$CC"; then
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759$as_echo "$CC" >&6; }
2760else
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766fi
2767if test -z "$CC"; then
2768  if test -n "$ac_tool_prefix"; then
2769  for ac_prog in cl.exe
2770  do
2771    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2772set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774$as_echo_n "checking for $ac_word... " >&6; }
2775if test "${ac_cv_prog_CC+set}" = set; then :
2776  $as_echo_n "(cached) " >&6
2777else
2778  if test -n "$CC"; then
2779  ac_cv_prog_CC="$CC" # Let the user override the test.
2780else
2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782for as_dir in $PATH
2783do
2784  IFS=$as_save_IFS
2785  test -z "$as_dir" && as_dir=.
2786    for ac_exec_ext in '' $ac_executable_extensions; do
2787  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2789    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790    break 2
2791  fi
2792done
2793  done
2794IFS=$as_save_IFS
2795
2796fi
2797fi
2798CC=$ac_cv_prog_CC
2799if test -n "$CC"; then
2800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2801$as_echo "$CC" >&6; }
2802else
2803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804$as_echo "no" >&6; }
2805fi
2806
2807
2808    test -n "$CC" && break
2809  done
2810fi
2811if test -z "$CC"; then
2812  ac_ct_CC=$CC
2813  for ac_prog in cl.exe
2814do
2815  # Extract the first word of "$ac_prog", so it can be a program name with args.
2816set dummy $ac_prog; ac_word=$2
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818$as_echo_n "checking for $ac_word... " >&6; }
2819if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2820  $as_echo_n "(cached) " >&6
2821else
2822  if test -n "$ac_ct_CC"; then
2823  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2824else
2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826for as_dir in $PATH
2827do
2828  IFS=$as_save_IFS
2829  test -z "$as_dir" && as_dir=.
2830    for ac_exec_ext in '' $ac_executable_extensions; do
2831  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832    ac_cv_prog_ac_ct_CC="$ac_prog"
2833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834    break 2
2835  fi
2836done
2837  done
2838IFS=$as_save_IFS
2839
2840fi
2841fi
2842ac_ct_CC=$ac_cv_prog_ac_ct_CC
2843if test -n "$ac_ct_CC"; then
2844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2845$as_echo "$ac_ct_CC" >&6; }
2846else
2847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2848$as_echo "no" >&6; }
2849fi
2850
2851
2852  test -n "$ac_ct_CC" && break
2853done
2854
2855  if test "x$ac_ct_CC" = x; then
2856    CC=""
2857  else
2858    case $cross_compiling:$ac_tool_warned in
2859yes:)
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2862ac_tool_warned=yes ;;
2863esac
2864    CC=$ac_ct_CC
2865  fi
2866fi
2867
2868fi
2869
2870
2871test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2873as_fn_error "no acceptable C compiler found in \$PATH
2874See \`config.log' for more details." "$LINENO" 5; }
2875
2876# Provide some information about the compiler.
2877$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2878set X $ac_compile
2879ac_compiler=$2
2880for ac_option in --version -v -V -qversion; do
2881  { { ac_try="$ac_compiler $ac_option >&5"
2882case "(($ac_try" in
2883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884  *) ac_try_echo=$ac_try;;
2885esac
2886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2887$as_echo "$ac_try_echo"; } >&5
2888  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2889  ac_status=$?
2890  if test -s conftest.err; then
2891    sed '10a\
2892... rest of stderr output deleted ...
2893         10q' conftest.err >conftest.er1
2894    cat conftest.er1 >&5
2895  fi
2896  rm -f conftest.er1 conftest.err
2897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2898  test $ac_status = 0; }
2899done
2900
2901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902/* end confdefs.h.  */
2903
2904int
2905main ()
2906{
2907
2908  ;
2909  return 0;
2910}
2911_ACEOF
2912ac_clean_files_save=$ac_clean_files
2913ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2914# Try to create an executable without -o first, disregard a.out.
2915# It will help us diagnose broken compilers, and finding out an intuition
2916# of exeext.
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2918$as_echo_n "checking whether the C compiler works... " >&6; }
2919ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2920
2921# The possible output files:
2922ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2923
2924ac_rmfiles=
2925for ac_file in $ac_files
2926do
2927  case $ac_file in
2928    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2929    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2930  esac
2931done
2932rm -f $ac_rmfiles
2933
2934if { { ac_try="$ac_link_default"
2935case "(($ac_try" in
2936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937  *) ac_try_echo=$ac_try;;
2938esac
2939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2940$as_echo "$ac_try_echo"; } >&5
2941  (eval "$ac_link_default") 2>&5
2942  ac_status=$?
2943  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2944  test $ac_status = 0; }; then :
2945  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2946# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2947# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2948# so that the user can short-circuit this test for compilers unknown to
2949# Autoconf.
2950for ac_file in $ac_files ''
2951do
2952  test -f "$ac_file" || continue
2953  case $ac_file in
2954    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2955	;;
2956    [ab].out )
2957	# We found the default executable, but exeext='' is most
2958	# certainly right.
2959	break;;
2960    *.* )
2961	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2962	then :; else
2963	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2964	fi
2965	# We set ac_cv_exeext here because the later test for it is not
2966	# safe: cross compilers may not add the suffix if given an `-o'
2967	# argument, so we may need to know it at that point already.
2968	# Even if this section looks crufty: it has the advantage of
2969	# actually working.
2970	break;;
2971    * )
2972	break;;
2973  esac
2974done
2975test "$ac_cv_exeext" = no && ac_cv_exeext=
2976
2977else
2978  ac_file=''
2979fi
2980if test -z "$ac_file"; then :
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983$as_echo "$as_me: failed program was:" >&5
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
2986{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988{ as_fn_set_status 77
2989as_fn_error "C compiler cannot create executables
2990See \`config.log' for more details." "$LINENO" 5; }; }
2991else
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2993$as_echo "yes" >&6; }
2994fi
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2996$as_echo_n "checking for C compiler default output file name... " >&6; }
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2998$as_echo "$ac_file" >&6; }
2999ac_exeext=$ac_cv_exeext
3000
3001rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3002ac_clean_files=$ac_clean_files_save
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3004$as_echo_n "checking for suffix of executables... " >&6; }
3005if { { ac_try="$ac_link"
3006case "(($ac_try" in
3007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008  *) ac_try_echo=$ac_try;;
3009esac
3010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3011$as_echo "$ac_try_echo"; } >&5
3012  (eval "$ac_link") 2>&5
3013  ac_status=$?
3014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015  test $ac_status = 0; }; then :
3016  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3017# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3018# work properly (i.e., refer to `conftest.exe'), while it won't with
3019# `rm'.
3020for ac_file in conftest.exe conftest conftest.*; do
3021  test -f "$ac_file" || continue
3022  case $ac_file in
3023    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3024    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025	  break;;
3026    * ) break;;
3027  esac
3028done
3029else
3030  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032as_fn_error "cannot compute suffix of executables: cannot compile and link
3033See \`config.log' for more details." "$LINENO" 5; }
3034fi
3035rm -f conftest conftest$ac_cv_exeext
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3037$as_echo "$ac_cv_exeext" >&6; }
3038
3039rm -f conftest.$ac_ext
3040EXEEXT=$ac_cv_exeext
3041ac_exeext=$EXEEXT
3042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043/* end confdefs.h.  */
3044#include <stdio.h>
3045int
3046main ()
3047{
3048FILE *f = fopen ("conftest.out", "w");
3049 return ferror (f) || fclose (f) != 0;
3050
3051  ;
3052  return 0;
3053}
3054_ACEOF
3055ac_clean_files="$ac_clean_files conftest.out"
3056# Check that the compiler produces executables we can run.  If not, either
3057# the compiler is broken, or we cross compile.
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3059$as_echo_n "checking whether we are cross compiling... " >&6; }
3060if test "$cross_compiling" != yes; then
3061  { { ac_try="$ac_link"
3062case "(($ac_try" in
3063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064  *) ac_try_echo=$ac_try;;
3065esac
3066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067$as_echo "$ac_try_echo"; } >&5
3068  (eval "$ac_link") 2>&5
3069  ac_status=$?
3070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071  test $ac_status = 0; }
3072  if { ac_try='./conftest$ac_cv_exeext'
3073  { { case "(($ac_try" in
3074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075  *) ac_try_echo=$ac_try;;
3076esac
3077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078$as_echo "$ac_try_echo"; } >&5
3079  (eval "$ac_try") 2>&5
3080  ac_status=$?
3081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082  test $ac_status = 0; }; }; then
3083    cross_compiling=no
3084  else
3085    if test "$cross_compiling" = maybe; then
3086	cross_compiling=yes
3087    else
3088	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090as_fn_error "cannot run C compiled programs.
3091If you meant to cross compile, use \`--host'.
3092See \`config.log' for more details." "$LINENO" 5; }
3093    fi
3094  fi
3095fi
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3097$as_echo "$cross_compiling" >&6; }
3098
3099rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3100ac_clean_files=$ac_clean_files_save
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3102$as_echo_n "checking for suffix of object files... " >&6; }
3103if test "${ac_cv_objext+set}" = set; then :
3104  $as_echo_n "(cached) " >&6
3105else
3106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107/* end confdefs.h.  */
3108
3109int
3110main ()
3111{
3112
3113  ;
3114  return 0;
3115}
3116_ACEOF
3117rm -f conftest.o conftest.obj
3118if { { ac_try="$ac_compile"
3119case "(($ac_try" in
3120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121  *) ac_try_echo=$ac_try;;
3122esac
3123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3124$as_echo "$ac_try_echo"; } >&5
3125  (eval "$ac_compile") 2>&5
3126  ac_status=$?
3127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3128  test $ac_status = 0; }; then :
3129  for ac_file in conftest.o conftest.obj conftest.*; do
3130  test -f "$ac_file" || continue;
3131  case $ac_file in
3132    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3133    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3134       break;;
3135  esac
3136done
3137else
3138  $as_echo "$as_me: failed program was:" >&5
3139sed 's/^/| /' conftest.$ac_ext >&5
3140
3141{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143as_fn_error "cannot compute suffix of object files: cannot compile
3144See \`config.log' for more details." "$LINENO" 5; }
3145fi
3146rm -f conftest.$ac_cv_objext conftest.$ac_ext
3147fi
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3149$as_echo "$ac_cv_objext" >&6; }
3150OBJEXT=$ac_cv_objext
3151ac_objext=$OBJEXT
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3153$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3154if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3155  $as_echo_n "(cached) " >&6
3156else
3157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158/* end confdefs.h.  */
3159
3160int
3161main ()
3162{
3163#ifndef __GNUC__
3164       choke me
3165#endif
3166
3167  ;
3168  return 0;
3169}
3170_ACEOF
3171if ac_fn_c_try_compile "$LINENO"; then :
3172  ac_compiler_gnu=yes
3173else
3174  ac_compiler_gnu=no
3175fi
3176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177ac_cv_c_compiler_gnu=$ac_compiler_gnu
3178
3179fi
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3181$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3182if test $ac_compiler_gnu = yes; then
3183  GCC=yes
3184else
3185  GCC=
3186fi
3187ac_test_CFLAGS=${CFLAGS+set}
3188ac_save_CFLAGS=$CFLAGS
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3190$as_echo_n "checking whether $CC accepts -g... " >&6; }
3191if test "${ac_cv_prog_cc_g+set}" = set; then :
3192  $as_echo_n "(cached) " >&6
3193else
3194  ac_save_c_werror_flag=$ac_c_werror_flag
3195   ac_c_werror_flag=yes
3196   ac_cv_prog_cc_g=no
3197   CFLAGS="-g"
3198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199/* end confdefs.h.  */
3200
3201int
3202main ()
3203{
3204
3205  ;
3206  return 0;
3207}
3208_ACEOF
3209if ac_fn_c_try_compile "$LINENO"; then :
3210  ac_cv_prog_cc_g=yes
3211else
3212  CFLAGS=""
3213      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214/* end confdefs.h.  */
3215
3216int
3217main ()
3218{
3219
3220  ;
3221  return 0;
3222}
3223_ACEOF
3224if ac_fn_c_try_compile "$LINENO"; then :
3225
3226else
3227  ac_c_werror_flag=$ac_save_c_werror_flag
3228	 CFLAGS="-g"
3229	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230/* end confdefs.h.  */
3231
3232int
3233main ()
3234{
3235
3236  ;
3237  return 0;
3238}
3239_ACEOF
3240if ac_fn_c_try_compile "$LINENO"; then :
3241  ac_cv_prog_cc_g=yes
3242fi
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244fi
3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246fi
3247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248   ac_c_werror_flag=$ac_save_c_werror_flag
3249fi
3250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3251$as_echo "$ac_cv_prog_cc_g" >&6; }
3252if test "$ac_test_CFLAGS" = set; then
3253  CFLAGS=$ac_save_CFLAGS
3254elif test $ac_cv_prog_cc_g = yes; then
3255  if test "$GCC" = yes; then
3256    CFLAGS="-g -O2"
3257  else
3258    CFLAGS="-g"
3259  fi
3260else
3261  if test "$GCC" = yes; then
3262    CFLAGS="-O2"
3263  else
3264    CFLAGS=
3265  fi
3266fi
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3268$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3269if test "${ac_cv_prog_cc_c89+set}" = set; then :
3270  $as_echo_n "(cached) " >&6
3271else
3272  ac_cv_prog_cc_c89=no
3273ac_save_CC=$CC
3274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275/* end confdefs.h.  */
3276#include <stdarg.h>
3277#include <stdio.h>
3278#include <sys/types.h>
3279#include <sys/stat.h>
3280/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3281struct buf { int x; };
3282FILE * (*rcsopen) (struct buf *, struct stat *, int);
3283static char *e (p, i)
3284     char **p;
3285     int i;
3286{
3287  return p[i];
3288}
3289static char *f (char * (*g) (char **, int), char **p, ...)
3290{
3291  char *s;
3292  va_list v;
3293  va_start (v,p);
3294  s = g (p, va_arg (v,int));
3295  va_end (v);
3296  return s;
3297}
3298
3299/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3300   function prototypes and stuff, but not '\xHH' hex character constants.
3301   These don't provoke an error unfortunately, instead are silently treated
3302   as 'x'.  The following induces an error, until -std is added to get
3303   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3304   array size at least.  It's necessary to write '\x00'==0 to get something
3305   that's true only with -std.  */
3306int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3307
3308/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3309   inside strings and character constants.  */
3310#define FOO(x) 'x'
3311int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3312
3313int test (int i, double x);
3314struct s1 {int (*f) (int a);};
3315struct s2 {int (*f) (double a);};
3316int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317int argc;
3318char **argv;
3319int
3320main ()
3321{
3322return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3323  ;
3324  return 0;
3325}
3326_ACEOF
3327for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3328	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3329do
3330  CC="$ac_save_CC $ac_arg"
3331  if ac_fn_c_try_compile "$LINENO"; then :
3332  ac_cv_prog_cc_c89=$ac_arg
3333fi
3334rm -f core conftest.err conftest.$ac_objext
3335  test "x$ac_cv_prog_cc_c89" != "xno" && break
3336done
3337rm -f conftest.$ac_ext
3338CC=$ac_save_CC
3339
3340fi
3341# AC_CACHE_VAL
3342case "x$ac_cv_prog_cc_c89" in
3343  x)
3344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3345$as_echo "none needed" >&6; } ;;
3346  xno)
3347    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3348$as_echo "unsupported" >&6; } ;;
3349  *)
3350    CC="$CC $ac_cv_prog_cc_c89"
3351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3352$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3353esac
3354if test "x$ac_cv_prog_cc_c89" != xno; then :
3355
3356fi
3357
3358ac_ext=c
3359ac_cpp='$CPP $CPPFLAGS'
3360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362ac_compiler_gnu=$ac_cv_c_compiler_gnu
3363	ac_ext=c
3364ac_cpp='$CPP $CPPFLAGS'
3365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3369$as_echo_n "checking how to run the C preprocessor... " >&6; }
3370# On Suns, sometimes $CPP names a directory.
3371if test -n "$CPP" && test -d "$CPP"; then
3372  CPP=
3373fi
3374if test -z "$CPP"; then
3375  if test "${ac_cv_prog_CPP+set}" = set; then :
3376  $as_echo_n "(cached) " >&6
3377else
3378      # Double quotes because CPP needs to be expanded
3379    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3380    do
3381      ac_preproc_ok=false
3382for ac_c_preproc_warn_flag in '' yes
3383do
3384  # Use a header file that comes with gcc, so configuring glibc
3385  # with a fresh cross-compiler works.
3386  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3387  # <limits.h> exists even on freestanding compilers.
3388  # On the NeXT, cc -E runs the code through the compiler's parser,
3389  # not just through cpp. "Syntax error" is here to catch this case.
3390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391/* end confdefs.h.  */
3392#ifdef __STDC__
3393# include <limits.h>
3394#else
3395# include <assert.h>
3396#endif
3397		     Syntax error
3398_ACEOF
3399if ac_fn_c_try_cpp "$LINENO"; then :
3400
3401else
3402  # Broken: fails on valid input.
3403continue
3404fi
3405rm -f conftest.err conftest.$ac_ext
3406
3407  # OK, works on sane cases.  Now check whether nonexistent headers
3408  # can be detected and how.
3409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411#include <ac_nonexistent.h>
3412_ACEOF
3413if ac_fn_c_try_cpp "$LINENO"; then :
3414  # Broken: success on invalid input.
3415continue
3416else
3417  # Passes both tests.
3418ac_preproc_ok=:
3419break
3420fi
3421rm -f conftest.err conftest.$ac_ext
3422
3423done
3424# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3425rm -f conftest.err conftest.$ac_ext
3426if $ac_preproc_ok; then :
3427  break
3428fi
3429
3430    done
3431    ac_cv_prog_CPP=$CPP
3432
3433fi
3434  CPP=$ac_cv_prog_CPP
3435else
3436  ac_cv_prog_CPP=$CPP
3437fi
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3439$as_echo "$CPP" >&6; }
3440ac_preproc_ok=false
3441for ac_c_preproc_warn_flag in '' yes
3442do
3443  # Use a header file that comes with gcc, so configuring glibc
3444  # with a fresh cross-compiler works.
3445  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3446  # <limits.h> exists even on freestanding compilers.
3447  # On the NeXT, cc -E runs the code through the compiler's parser,
3448  # not just through cpp. "Syntax error" is here to catch this case.
3449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450/* end confdefs.h.  */
3451#ifdef __STDC__
3452# include <limits.h>
3453#else
3454# include <assert.h>
3455#endif
3456		     Syntax error
3457_ACEOF
3458if ac_fn_c_try_cpp "$LINENO"; then :
3459
3460else
3461  # Broken: fails on valid input.
3462continue
3463fi
3464rm -f conftest.err conftest.$ac_ext
3465
3466  # OK, works on sane cases.  Now check whether nonexistent headers
3467  # can be detected and how.
3468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469/* end confdefs.h.  */
3470#include <ac_nonexistent.h>
3471_ACEOF
3472if ac_fn_c_try_cpp "$LINENO"; then :
3473  # Broken: success on invalid input.
3474continue
3475else
3476  # Passes both tests.
3477ac_preproc_ok=:
3478break
3479fi
3480rm -f conftest.err conftest.$ac_ext
3481
3482done
3483# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3484rm -f conftest.err conftest.$ac_ext
3485if $ac_preproc_ok; then :
3486
3487else
3488  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490as_fn_error "C preprocessor \"$CPP\" fails sanity check
3491See \`config.log' for more details." "$LINENO" 5; }
3492fi
3493
3494ac_ext=c
3495ac_cpp='$CPP $CPPFLAGS'
3496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499
3500
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3502$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3503if test "${ac_cv_path_GREP+set}" = set; then :
3504  $as_echo_n "(cached) " >&6
3505else
3506  if test -z "$GREP"; then
3507  ac_path_GREP_found=false
3508  # Loop through the user's path and test for each of PROGNAME-LIST
3509  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3511do
3512  IFS=$as_save_IFS
3513  test -z "$as_dir" && as_dir=.
3514    for ac_prog in grep ggrep; do
3515    for ac_exec_ext in '' $ac_executable_extensions; do
3516      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3517      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3518# Check for GNU ac_path_GREP and select it if it is found.
3519  # Check for GNU $ac_path_GREP
3520case `"$ac_path_GREP" --version 2>&1` in
3521*GNU*)
3522  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3523*)
3524  ac_count=0
3525  $as_echo_n 0123456789 >"conftest.in"
3526  while :
3527  do
3528    cat "conftest.in" "conftest.in" >"conftest.tmp"
3529    mv "conftest.tmp" "conftest.in"
3530    cp "conftest.in" "conftest.nl"
3531    $as_echo 'GREP' >> "conftest.nl"
3532    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3533    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3534    as_fn_arith $ac_count + 1 && ac_count=$as_val
3535    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3536      # Best one so far, save it but keep looking for a better one
3537      ac_cv_path_GREP="$ac_path_GREP"
3538      ac_path_GREP_max=$ac_count
3539    fi
3540    # 10*(2^10) chars as input seems more than enough
3541    test $ac_count -gt 10 && break
3542  done
3543  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3544esac
3545
3546      $ac_path_GREP_found && break 3
3547    done
3548  done
3549  done
3550IFS=$as_save_IFS
3551  if test -z "$ac_cv_path_GREP"; then
3552    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3553  fi
3554else
3555  ac_cv_path_GREP=$GREP
3556fi
3557
3558fi
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3560$as_echo "$ac_cv_path_GREP" >&6; }
3561 GREP="$ac_cv_path_GREP"
3562
3563
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3565$as_echo_n "checking for egrep... " >&6; }
3566if test "${ac_cv_path_EGREP+set}" = set; then :
3567  $as_echo_n "(cached) " >&6
3568else
3569  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3570   then ac_cv_path_EGREP="$GREP -E"
3571   else
3572     if test -z "$EGREP"; then
3573  ac_path_EGREP_found=false
3574  # Loop through the user's path and test for each of PROGNAME-LIST
3575  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3577do
3578  IFS=$as_save_IFS
3579  test -z "$as_dir" && as_dir=.
3580    for ac_prog in egrep; do
3581    for ac_exec_ext in '' $ac_executable_extensions; do
3582      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3583      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3584# Check for GNU ac_path_EGREP and select it if it is found.
3585  # Check for GNU $ac_path_EGREP
3586case `"$ac_path_EGREP" --version 2>&1` in
3587*GNU*)
3588  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3589*)
3590  ac_count=0
3591  $as_echo_n 0123456789 >"conftest.in"
3592  while :
3593  do
3594    cat "conftest.in" "conftest.in" >"conftest.tmp"
3595    mv "conftest.tmp" "conftest.in"
3596    cp "conftest.in" "conftest.nl"
3597    $as_echo 'EGREP' >> "conftest.nl"
3598    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3599    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3600    as_fn_arith $ac_count + 1 && ac_count=$as_val
3601    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3602      # Best one so far, save it but keep looking for a better one
3603      ac_cv_path_EGREP="$ac_path_EGREP"
3604      ac_path_EGREP_max=$ac_count
3605    fi
3606    # 10*(2^10) chars as input seems more than enough
3607    test $ac_count -gt 10 && break
3608  done
3609  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3610esac
3611
3612      $ac_path_EGREP_found && break 3
3613    done
3614  done
3615  done
3616IFS=$as_save_IFS
3617  if test -z "$ac_cv_path_EGREP"; then
3618    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3619  fi
3620else
3621  ac_cv_path_EGREP=$EGREP
3622fi
3623
3624   fi
3625fi
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3627$as_echo "$ac_cv_path_EGREP" >&6; }
3628 EGREP="$ac_cv_path_EGREP"
3629
3630
3631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634_ACEOF
3635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636  $EGREP "" >/dev/null 2>&1; then :
3637
3638fi
3639rm -f conftest*
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3641$as_echo_n "checking for library containing strerror... " >&6; }
3642if test "${ac_cv_search_strerror+set}" = set; then :
3643  $as_echo_n "(cached) " >&6
3644else
3645  ac_func_search_save_LIBS=$LIBS
3646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647/* end confdefs.h.  */
3648
3649/* Override any GCC internal prototype to avoid an error.
3650   Use char because int might match the return type of a GCC
3651   builtin and then its argument prototype would still apply.  */
3652#ifdef __cplusplus
3653extern "C"
3654#endif
3655char strerror ();
3656int
3657main ()
3658{
3659return strerror ();
3660  ;
3661  return 0;
3662}
3663_ACEOF
3664for ac_lib in '' cposix; do
3665  if test -z "$ac_lib"; then
3666    ac_res="none required"
3667  else
3668    ac_res=-l$ac_lib
3669    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3670  fi
3671  if ac_fn_c_try_link "$LINENO"; then :
3672  ac_cv_search_strerror=$ac_res
3673fi
3674rm -f core conftest.err conftest.$ac_objext \
3675    conftest$ac_exeext
3676  if test "${ac_cv_search_strerror+set}" = set; then :
3677  break
3678fi
3679done
3680if test "${ac_cv_search_strerror+set}" = set; then :
3681
3682else
3683  ac_cv_search_strerror=no
3684fi
3685rm conftest.$ac_ext
3686LIBS=$ac_func_search_save_LIBS
3687fi
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3689$as_echo "$ac_cv_search_strerror" >&6; }
3690ac_res=$ac_cv_search_strerror
3691if test "$ac_res" != no; then :
3692  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3693
3694fi
3695	for ac_prog in gawk mawk nawk awk
3696do
3697  # Extract the first word of "$ac_prog", so it can be a program name with args.
3698set dummy $ac_prog; ac_word=$2
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700$as_echo_n "checking for $ac_word... " >&6; }
3701if test "${ac_cv_prog_AWK+set}" = set; then :
3702  $as_echo_n "(cached) " >&6
3703else
3704  if test -n "$AWK"; then
3705  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3706else
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH
3709do
3710  IFS=$as_save_IFS
3711  test -z "$as_dir" && as_dir=.
3712    for ac_exec_ext in '' $ac_executable_extensions; do
3713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714    ac_cv_prog_AWK="$ac_prog"
3715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716    break 2
3717  fi
3718done
3719  done
3720IFS=$as_save_IFS
3721
3722fi
3723fi
3724AWK=$ac_cv_prog_AWK
3725if test -n "$AWK"; then
3726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3727$as_echo "$AWK" >&6; }
3728else
3729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730$as_echo "no" >&6; }
3731fi
3732
3733
3734  test -n "$AWK" && break
3735done
3736
3737# Extract the first word of "strip", so it can be a program name with args.
3738set dummy strip; ac_word=$2
3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740$as_echo_n "checking for $ac_word... " >&6; }
3741if test "${ac_cv_prog_STRIP+set}" = set; then :
3742  $as_echo_n "(cached) " >&6
3743else
3744  if test -n "$STRIP"; then
3745  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3746else
3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH
3749do
3750  IFS=$as_save_IFS
3751  test -z "$as_dir" && as_dir=.
3752    for ac_exec_ext in '' $ac_executable_extensions; do
3753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754    ac_cv_prog_STRIP="strip"
3755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756    break 2
3757  fi
3758done
3759  done
3760IFS=$as_save_IFS
3761
3762  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3763fi
3764fi
3765STRIP=$ac_cv_prog_STRIP
3766if test -n "$STRIP"; then
3767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3768$as_echo "$STRIP" >&6; }
3769else
3770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771$as_echo "no" >&6; }
3772fi
3773
3774
3775
3776
3777
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3779$as_echo_n "checking for ANSI C header files... " >&6; }
3780if test "${ac_cv_header_stdc+set}" = set; then :
3781  $as_echo_n "(cached) " >&6
3782else
3783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h.  */
3785#include <stdlib.h>
3786#include <stdarg.h>
3787#include <string.h>
3788#include <float.h>
3789
3790int
3791main ()
3792{
3793
3794  ;
3795  return 0;
3796}
3797_ACEOF
3798if ac_fn_c_try_compile "$LINENO"; then :
3799  ac_cv_header_stdc=yes
3800else
3801  ac_cv_header_stdc=no
3802fi
3803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804
3805if test $ac_cv_header_stdc = yes; then
3806  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808/* end confdefs.h.  */
3809#include <string.h>
3810
3811_ACEOF
3812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3813  $EGREP "memchr" >/dev/null 2>&1; then :
3814
3815else
3816  ac_cv_header_stdc=no
3817fi
3818rm -f conftest*
3819
3820fi
3821
3822if test $ac_cv_header_stdc = yes; then
3823  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h.  */
3826#include <stdlib.h>
3827
3828_ACEOF
3829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830  $EGREP "free" >/dev/null 2>&1; then :
3831
3832else
3833  ac_cv_header_stdc=no
3834fi
3835rm -f conftest*
3836
3837fi
3838
3839if test $ac_cv_header_stdc = yes; then
3840  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3841  if test "$cross_compiling" = yes; then :
3842  :
3843else
3844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845/* end confdefs.h.  */
3846#include <ctype.h>
3847#include <stdlib.h>
3848#if ((' ' & 0x0FF) == 0x020)
3849# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3850# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3851#else
3852# define ISLOWER(c) \
3853		   (('a' <= (c) && (c) <= 'i') \
3854		     || ('j' <= (c) && (c) <= 'r') \
3855		     || ('s' <= (c) && (c) <= 'z'))
3856# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3857#endif
3858
3859#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3860int
3861main ()
3862{
3863  int i;
3864  for (i = 0; i < 256; i++)
3865    if (XOR (islower (i), ISLOWER (i))
3866	|| toupper (i) != TOUPPER (i))
3867      return 2;
3868  return 0;
3869}
3870_ACEOF
3871if ac_fn_c_try_run "$LINENO"; then :
3872
3873else
3874  ac_cv_header_stdc=no
3875fi
3876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3877  conftest.$ac_objext conftest.beam conftest.$ac_ext
3878fi
3879
3880fi
3881fi
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3883$as_echo "$ac_cv_header_stdc" >&6; }
3884if test $ac_cv_header_stdc = yes; then
3885
3886$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3887
3888fi
3889
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
3891$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
3892if test "${ac_cv_header_sys_wait_h+set}" = set; then :
3893  $as_echo_n "(cached) " >&6
3894else
3895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h.  */
3897#include <sys/types.h>
3898#include <sys/wait.h>
3899#ifndef WEXITSTATUS
3900# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3901#endif
3902#ifndef WIFEXITED
3903# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3904#endif
3905
3906int
3907main ()
3908{
3909  int s;
3910  wait (&s);
3911  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3912  ;
3913  return 0;
3914}
3915_ACEOF
3916if ac_fn_c_try_compile "$LINENO"; then :
3917  ac_cv_header_sys_wait_h=yes
3918else
3919  ac_cv_header_sys_wait_h=no
3920fi
3921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922fi
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
3924$as_echo "$ac_cv_header_sys_wait_h" >&6; }
3925if test $ac_cv_header_sys_wait_h = yes; then
3926
3927$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
3928
3929fi
3930
3931
3932if test -z "$CFLAGS"; then
3933  CFLAGS="-O"
3934  test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
3935fi
3936if test "$GCC" = yes; then
3937    gccversion=`"$CC" -dumpversion`
3938  if test "x$gccversion" = "x"; then
3939        gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
3940  fi
3941    if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
3942    echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
3943    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3944  else
3945    if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
3946      echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
3947      CFLAGS="$CFLAGS -fno-strength-reduce"
3948    fi
3949  fi
3950fi
3951
3952if test "$cross_compiling" = yes; then
3953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5
3954$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; }
3955fi
3956
3957test "$GCC" = yes && CPP_MM=M;
3958
3959if test -f ./toolcheck; then
3960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5
3961$as_echo "$as_me: checking for buggy tools..." >&6;}
3962  sh ./toolcheck 1>&6
3963fi
3964
3965OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
3966
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5
3968$as_echo_n "checking for BeOS... " >&6; }
3969case `uname` in
3970    BeOS)	OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
3971		BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3972$as_echo "yes" >&6; };;
3973    *)		BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974$as_echo "no" >&6; };;
3975esac
3976
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5
3978$as_echo_n "checking for QNX... " >&6; }
3979case `uname` in
3980    QNX)	OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
3981		test -z "$with_x" && with_x=no
3982		QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3983$as_echo "yes" >&6; };;
3984    *)		QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985$as_echo "no" >&6; };;
3986esac
3987
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5
3989$as_echo_n "checking for Darwin (Mac OS X)... " >&6; }
3990if test "`(uname) 2>/dev/null`" = Darwin; then
3991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992$as_echo "yes" >&6; }
3993
3994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5
3995$as_echo_n "checking --disable-darwin argument... " >&6; }
3996  # Check whether --enable-darwin was given.
3997if test "${enable_darwin+set}" = set; then :
3998  enableval=$enable_darwin;
3999else
4000  enable_darwin="yes"
4001fi
4002
4003  if test "$enable_darwin" = "yes"; then
4004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005$as_echo "no" >&6; }
4006    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5
4007$as_echo_n "checking if Darwin files are there... " >&6; }
4008    if test -f os_macosx.c; then
4009      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4010$as_echo "yes" >&6; }
4011    else
4012      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5
4013$as_echo "no, Darwin support disabled" >&6; }
4014      enable_darwin=no
4015    fi
4016  else
4017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5
4018$as_echo "yes, Darwin support excluded" >&6; }
4019  fi
4020
4021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5
4022$as_echo_n "checking --with-mac-arch argument... " >&6; }
4023
4024# Check whether --with-mac-arch was given.
4025if test "${with_mac_arch+set}" = set; then :
4026  withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5
4027$as_echo "$MACARCH" >&6; }
4028else
4029  MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5
4030$as_echo "defaulting to $MACARCH" >&6; }
4031fi
4032
4033
4034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5
4035$as_echo_n "checking --with-developer-dir argument... " >&6; }
4036
4037# Check whether --with-developer-dir was given.
4038if test "${with_developer_dir+set}" = set; then :
4039  withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4040$as_echo "$DEVELOPER_DIR" >&6; }
4041else
4042  DEVELOPER_DIR=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5
4043$as_echo "not present" >&6; }
4044fi
4045
4046
4047  if test "x$DEVELOPER_DIR" = "x"; then
4048    # Extract the first word of "xcode-select", so it can be a program name with args.
4049set dummy xcode-select; ac_word=$2
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051$as_echo_n "checking for $ac_word... " >&6; }
4052if test "${ac_cv_path_XCODE_SELECT+set}" = set; then :
4053  $as_echo_n "(cached) " >&6
4054else
4055  case $XCODE_SELECT in
4056  [\\/]* | ?:[\\/]*)
4057  ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path.
4058  ;;
4059  *)
4060  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH
4062do
4063  IFS=$as_save_IFS
4064  test -z "$as_dir" && as_dir=.
4065    for ac_exec_ext in '' $ac_executable_extensions; do
4066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4067    ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext"
4068    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4069    break 2
4070  fi
4071done
4072  done
4073IFS=$as_save_IFS
4074
4075  ;;
4076esac
4077fi
4078XCODE_SELECT=$ac_cv_path_XCODE_SELECT
4079if test -n "$XCODE_SELECT"; then
4080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5
4081$as_echo "$XCODE_SELECT" >&6; }
4082else
4083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084$as_echo "no" >&6; }
4085fi
4086
4087
4088    if test "x$XCODE_SELECT" != "x"; then
4089      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5
4090$as_echo_n "checking for developer dir using xcode-select... " >&6; }
4091      DEVELOPER_DIR=`$XCODE_SELECT -print-path`
4092      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5
4093$as_echo "$DEVELOPER_DIR" >&6; }
4094    else
4095      DEVELOPER_DIR=/Developer
4096    fi
4097  fi
4098
4099  if test "x$MACARCH" = "xboth"; then
4100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5
4101$as_echo_n "checking for 10.4 universal SDK... " >&6; }
4102                            save_cppflags="$CPPFLAGS"
4103    save_cflags="$CFLAGS"
4104    save_ldflags="$LDFLAGS"
4105    CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
4106    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107/* end confdefs.h.  */
4108
4109int
4110main ()
4111{
4112
4113  ;
4114  return 0;
4115}
4116_ACEOF
4117if ac_fn_c_try_link "$LINENO"; then :
4118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
4119$as_echo "found" >&6; }
4120else
4121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4122$as_echo "not found" >&6; }
4123	CFLAGS="$save_cflags"
4124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5
4125$as_echo_n "checking if Intel architecture is supported... " >&6; }
4126	CPPFLAGS="$CPPFLAGS -arch i386"
4127	LDFLAGS="$save_ldflags -arch i386"
4128	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130
4131int
4132main ()
4133{
4134
4135  ;
4136  return 0;
4137}
4138_ACEOF
4139if ac_fn_c_try_link "$LINENO"; then :
4140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4141$as_echo "yes" >&6; }; MACARCH="intel"
4142else
4143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144$as_echo "no" >&6; }
4145		MACARCH="ppc"
4146		CPPFLAGS="$save_cppflags -arch ppc"
4147		LDFLAGS="$save_ldflags -arch ppc"
4148fi
4149rm -f core conftest.err conftest.$ac_objext \
4150    conftest$ac_exeext conftest.$ac_ext
4151fi
4152rm -f core conftest.err conftest.$ac_objext \
4153    conftest$ac_exeext conftest.$ac_ext
4154  elif test "x$MACARCH" = "xintel"; then
4155    CPPFLAGS="$CPPFLAGS -arch intel"
4156    LDFLAGS="$LDFLAGS -arch intel"
4157  elif test "x$MACARCH" = "xppc"; then
4158    CPPFLAGS="$CPPFLAGS -arch ppc"
4159    LDFLAGS="$LDFLAGS -arch ppc"
4160  fi
4161
4162  if test "$enable_darwin" = "yes"; then
4163    MACOSX=yes
4164    OS_EXTRA_SRC="os_macosx.c os_mac_conv.c";
4165    OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
4166        CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
4167    if test "x$MACARCH" = "xboth"; then
4168      CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
4169    else
4170      CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon"
4171    fi
4172
4173                # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4174for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4175		  inttypes.h stdint.h unistd.h
4176do :
4177  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4178ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4179"
4180eval as_val=\$$as_ac_Header
4181   if test "x$as_val" = x""yes; then :
4182  cat >>confdefs.h <<_ACEOF
4183#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4184_ACEOF
4185
4186fi
4187
4188done
4189
4190
4191ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default"
4192if test "x$ac_cv_header_Carbon_Carbon_h" = x""yes; then :
4193  CARBON=yes
4194fi
4195
4196
4197    if test "x$CARBON" = "xyes"; then
4198      if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk2; then
4199	with_x=no
4200      fi
4201    fi
4202  fi
4203
4204        if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
4205    CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
4206  fi
4207
4208else
4209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210$as_echo "no" >&6; }
4211fi
4212
4213
4214
4215
4216if test "$cross_compiling" = no; then
4217  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5
4218$as_echo_n "checking --with-local-dir argument... " >&6; }
4219  have_local_include=''
4220  have_local_lib=''
4221
4222# Check whether --with-local-dir was given.
4223if test "${with_local_dir+set}" = set; then :
4224  withval=$with_local_dir;
4225    local_dir="$withval"
4226    case "$withval" in
4227    */*) ;;
4228    no)
4229      # avoid adding local dir to LDFLAGS and CPPFLAGS
4230      have_local_dir=yes
4231      have_local_lib=yes
4232      ;;
4233    *) as_fn_error "must pass path argument to --with-local-dir" "$LINENO" 5 ;;
4234    esac
4235	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5
4236$as_echo "$local_dir" >&6; }
4237
4238else
4239
4240    local_dir=/usr/local
4241    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5
4242$as_echo "Defaulting to $local_dir" >&6; }
4243
4244fi
4245
4246  if test "$GCC" = yes -a "$local_dir" != no; then
4247    echo 'void f(){}' > conftest.c
4248        have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep "${local_dir}/include"`
4249    have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"`
4250    rm -f conftest.c conftest.o
4251  fi
4252  if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then
4253    tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"`
4254    if test "$tt" = "$LDFLAGS"; then
4255      LDFLAGS="$LDFLAGS -L${local_dir}/lib"
4256    fi
4257  fi
4258  if test -z "$have_local_include" -a -d "${local_dir}/include"; then
4259    tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"`
4260    if test "$tt" = "$CPPFLAGS"; then
4261      CPPFLAGS="$CPPFLAGS -I${local_dir}/include"
4262    fi
4263  fi
4264fi
4265
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5
4267$as_echo_n "checking --with-vim-name argument... " >&6; }
4268
4269# Check whether --with-vim-name was given.
4270if test "${with_vim_name+set}" = set; then :
4271  withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5
4272$as_echo "$VIMNAME" >&6; }
4273else
4274  VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5
4275$as_echo "Defaulting to $VIMNAME" >&6; }
4276fi
4277
4278
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5
4280$as_echo_n "checking --with-ex-name argument... " >&6; }
4281
4282# Check whether --with-ex-name was given.
4283if test "${with_ex_name+set}" = set; then :
4284  withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5
4285$as_echo "$EXNAME" >&6; }
4286else
4287  EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5
4288$as_echo "Defaulting to ex" >&6; }
4289fi
4290
4291
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5
4293$as_echo_n "checking --with-view-name argument... " >&6; }
4294
4295# Check whether --with-view-name was given.
4296if test "${with_view_name+set}" = set; then :
4297  withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5
4298$as_echo "$VIEWNAME" >&6; }
4299else
4300  VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5
4301$as_echo "Defaulting to view" >&6; }
4302fi
4303
4304
4305
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5
4307$as_echo_n "checking --with-global-runtime argument... " >&6; }
4308
4309# Check whether --with-global-runtime was given.
4310if test "${with_global_runtime+set}" = set; then :
4311  withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4312$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4313#define RUNTIME_GLOBAL "$withval"
4314_ACEOF
4315
4316else
4317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318$as_echo "no" >&6; }
4319fi
4320
4321
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5
4323$as_echo_n "checking --with-modified-by argument... " >&6; }
4324
4325# Check whether --with-modified-by was given.
4326if test "${with_modified_by+set}" = set; then :
4327  withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4328$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF
4329#define MODIFIED_BY "$withval"
4330_ACEOF
4331
4332else
4333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334$as_echo "no" >&6; }
4335fi
4336
4337
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5
4339$as_echo_n "checking if character set is EBCDIC... " >&6; }
4340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341/* end confdefs.h.  */
4342
4343int
4344main ()
4345{
4346 /* TryCompile function for CharSet.
4347   Treat any failure as ASCII for compatibility with existing art.
4348   Use compile-time rather than run-time tests for cross-compiler
4349   tolerance.  */
4350#if '0'!=240
4351make an error "Character set is not EBCDIC"
4352#endif
4353  ;
4354  return 0;
4355}
4356_ACEOF
4357if ac_fn_c_try_compile "$LINENO"; then :
4358   # TryCompile action if true
4359cf_cv_ebcdic=yes
4360else
4361   # TryCompile action if false
4362cf_cv_ebcdic=no
4363fi
4364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4365# end of TryCompile ])
4366# end of CacheVal CvEbcdic
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5
4368$as_echo "$cf_cv_ebcdic" >&6; }
4369case "$cf_cv_ebcdic" in  #(vi
4370    yes)	$as_echo "#define EBCDIC 1" >>confdefs.h
4371
4372		line_break='"\\n"'
4373		;;
4374    *)		line_break='"\\012"';;
4375esac
4376
4377
4378if test "$cf_cv_ebcdic" = "yes"; then
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5
4380$as_echo_n "checking for z/OS Unix... " >&6; }
4381case `uname` in
4382    OS/390)	zOSUnix="yes";
4383										if test "$CC" = "cc"; then
4384		  ccm="$_CC_CCMODE"
4385		  ccn="CC"
4386		else
4387		  if test "$CC" = "c89"; then
4388		    ccm="$_CC_C89MODE"
4389		    ccn="C89"
4390		  else
4391		    ccm=1
4392		  fi
4393		fi
4394		if test "$ccm" != "1"; then
4395		  echo ""
4396		  echo "------------------------------------------"
4397		  echo " On z/OS Unix, the environment variable"
4398		  echo " __CC_${ccn}MODE must be set to \"1\"!"
4399		  echo " Do:"
4400		  echo "    export _CC_${ccn}MODE=1"
4401		  echo " and then call configure again."
4402		  echo "------------------------------------------"
4403		  exit 1
4404		fi
4405		CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float\\(IEEE\\)";
4406                LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
4407		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4408$as_echo "yes" >&6; }
4409		;;
4410    *)		zOSUnix="no";
4411		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412$as_echo "no" >&6; }
4413		;;
4414esac
4415fi
4416
4417if test "$zOSUnix" = "yes"; then
4418    QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'"
4419else
4420    QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'"
4421fi
4422
4423
4424
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5
4426$as_echo_n "checking --disable-selinux argument... " >&6; }
4427# Check whether --enable-selinux was given.
4428if test "${enable_selinux+set}" = set; then :
4429  enableval=$enable_selinux;
4430else
4431  enable_selinux="yes"
4432fi
4433
4434if test "$enable_selinux" = "yes"; then
4435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436$as_echo "no" >&6; }
4437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
4438$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
4439if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
4440  $as_echo_n "(cached) " >&6
4441else
4442  ac_check_lib_save_LIBS=$LIBS
4443LIBS="-lselinux  $LIBS"
4444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445/* end confdefs.h.  */
4446
4447/* Override any GCC internal prototype to avoid an error.
4448   Use char because int might match the return type of a GCC
4449   builtin and then its argument prototype would still apply.  */
4450#ifdef __cplusplus
4451extern "C"
4452#endif
4453char is_selinux_enabled ();
4454int
4455main ()
4456{
4457return is_selinux_enabled ();
4458  ;
4459  return 0;
4460}
4461_ACEOF
4462if ac_fn_c_try_link "$LINENO"; then :
4463  ac_cv_lib_selinux_is_selinux_enabled=yes
4464else
4465  ac_cv_lib_selinux_is_selinux_enabled=no
4466fi
4467rm -f core conftest.err conftest.$ac_objext \
4468    conftest$ac_exeext conftest.$ac_ext
4469LIBS=$ac_check_lib_save_LIBS
4470fi
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
4472$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
4473if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
4474  LIBS="$LIBS -lselinux"
4475	   $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
4476
4477fi
4478
4479else
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4481$as_echo "yes" >&6; }
4482fi
4483
4484
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5
4486$as_echo_n "checking --with-features argument... " >&6; }
4487
4488# Check whether --with-features was given.
4489if test "${with_features+set}" = set; then :
4490  withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5
4491$as_echo "$features" >&6; }
4492else
4493  features="normal"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to normal" >&5
4494$as_echo "Defaulting to normal" >&6; }
4495fi
4496
4497
4498dovimdiff=""
4499dogvimdiff=""
4500case "$features" in
4501  tiny)		$as_echo "#define FEAT_TINY 1" >>confdefs.h
4502 ;;
4503  small)	$as_echo "#define FEAT_SMALL 1" >>confdefs.h
4504 ;;
4505  normal)	$as_echo "#define FEAT_NORMAL 1" >>confdefs.h
4506 dovimdiff="installvimdiff";
4507			dogvimdiff="installgvimdiff" ;;
4508  big)		$as_echo "#define FEAT_BIG 1" >>confdefs.h
4509 dovimdiff="installvimdiff";
4510			dogvimdiff="installgvimdiff" ;;
4511  huge)		$as_echo "#define FEAT_HUGE 1" >>confdefs.h
4512 dovimdiff="installvimdiff";
4513			dogvimdiff="installgvimdiff" ;;
4514  *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5
4515$as_echo "Sorry, $features is not supported" >&6; } ;;
4516esac
4517
4518
4519
4520
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5
4522$as_echo_n "checking --with-compiledby argument... " >&6; }
4523
4524# Check whether --with-compiledby was given.
4525if test "${with_compiledby+set}" = set; then :
4526  withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4527$as_echo "$withval" >&6; }
4528else
4529  compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530$as_echo "no" >&6; }
4531fi
4532
4533
4534
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5
4536$as_echo_n "checking --disable-xsmp argument... " >&6; }
4537# Check whether --enable-xsmp was given.
4538if test "${enable_xsmp+set}" = set; then :
4539  enableval=$enable_xsmp;
4540else
4541  enable_xsmp="yes"
4542fi
4543
4544
4545if test "$enable_xsmp" = "yes"; then
4546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547$as_echo "no" >&6; }
4548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5
4549$as_echo_n "checking --disable-xsmp-interact argument... " >&6; }
4550  # Check whether --enable-xsmp-interact was given.
4551if test "${enable_xsmp_interact+set}" = set; then :
4552  enableval=$enable_xsmp_interact;
4553else
4554  enable_xsmp_interact="yes"
4555fi
4556
4557  if test "$enable_xsmp_interact" = "yes"; then
4558    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559$as_echo "no" >&6; }
4560    $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h
4561
4562  else
4563    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4564$as_echo "yes" >&6; }
4565  fi
4566else
4567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4568$as_echo "yes" >&6; }
4569fi
4570
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5
4572$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; }
4573# Check whether --enable-mzschemeinterp was given.
4574if test "${enable_mzschemeinterp+set}" = set; then :
4575  enableval=$enable_mzschemeinterp;
4576else
4577  enable_mzschemeinterp="no"
4578fi
4579
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5
4581$as_echo "$enable_mzschemeinterp" >&6; }
4582
4583if test "$enable_mzschemeinterp" = "yes"; then
4584
4585
4586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5
4587$as_echo_n "checking --with-plthome argument... " >&6; }
4588
4589# Check whether --with-plthome was given.
4590if test "${with_plthome+set}" = set; then :
4591  withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5
4592$as_echo "$with_plthome" >&6; }
4593else
4594  with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5
4595$as_echo "\"no\"" >&6; }
4596fi
4597
4598
4599  if test "X$with_plthome" != "X"; then
4600       vi_cv_path_mzscheme_pfx="$with_plthome"
4601  else
4602    { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5
4603$as_echo_n "checking PLTHOME environment var... " >&6; }
4604    if test "X$PLTHOME" != "X"; then
4605	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5
4606$as_echo "\"$PLTHOME\"" >&6; }
4607	vi_cv_path_mzscheme_pfx="$PLTHOME"
4608    else
4609	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5
4610$as_echo "not set" >&6; }
4611		# Extract the first word of "mzscheme", so it can be a program name with args.
4612set dummy mzscheme; ac_word=$2
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614$as_echo_n "checking for $ac_word... " >&6; }
4615if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618  case $vi_cv_path_mzscheme in
4619  [\\/]* | ?:[\\/]*)
4620  ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
4621  ;;
4622  *)
4623  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626  IFS=$as_save_IFS
4627  test -z "$as_dir" && as_dir=.
4628    for ac_exec_ext in '' $ac_executable_extensions; do
4629  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630    ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
4631    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632    break 2
4633  fi
4634done
4635  done
4636IFS=$as_save_IFS
4637
4638  ;;
4639esac
4640fi
4641vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
4642if test -n "$vi_cv_path_mzscheme"; then
4643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5
4644$as_echo "$vi_cv_path_mzscheme" >&6; }
4645else
4646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647$as_echo "no" >&6; }
4648fi
4649
4650
4651
4652			if test "X$vi_cv_path_mzscheme" != "X"; then
4653	  lsout=`ls -l $vi_cv_path_mzscheme`
4654	  if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
4655	    vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
4656	  fi
4657	fi
4658
4659	if test "X$vi_cv_path_mzscheme" != "X"; then
4660	    	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5
4661$as_echo_n "checking MzScheme install prefix... " >&6; }
4662if test "${vi_cv_path_mzscheme_pfx+set}" = set; then :
4663  $as_echo_n "(cached) " >&6
4664else
4665  	    	    echo "(display (simplify-path		\
4666	       (build-path (call-with-values	\
4667		(lambda () (split-path (find-system-path (quote exec-file)))) \
4668		(lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm
4669	    	     vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \
4670		sed -e 's+/$++'`
4671fi
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5
4673$as_echo "$vi_cv_path_mzscheme_pfx" >&6; }
4674	    rm -f mzdirs.scm
4675	fi
4676    fi
4677  fi
4678
4679  SCHEME_INC=
4680  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4681    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
4682$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; }
4683    if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
4684      SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include
4685      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4686$as_echo "yes" >&6; }
4687    else
4688      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689$as_echo "no" >&6; }
4690      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5
4691$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; }
4692      if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
4693	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4694$as_echo "yes" >&6; }
4695	SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt
4696      else
4697	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698$as_echo "no" >&6; }
4699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5
4700$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; }
4701	if test -f /usr/include/plt/scheme.h; then
4702	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4703$as_echo "yes" >&6; }
4704	  SCHEME_INC=/usr/include/plt
4705	else
4706	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707$as_echo "no" >&6; }
4708	  vi_cv_path_mzscheme_pfx=
4709	fi
4710      fi
4711    fi
4712  fi
4713
4714  if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
4715    if test "x$MACOSX" = "xyes"; then
4716      MZSCHEME_LIBS="-framework PLT_MzScheme"
4717    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"; then
4718      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.a"
4719      MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4720    elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
4721      MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
4722    else
4723            if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzscheme3m.so"; then
4724        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme3m"
4725	MZSCHEME_CFLAGS="-DMZ_PRECISE_GC"
4726      else
4727        MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
4728      fi
4729      if test "$GCC" = yes; then
4730			MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
4731      elif test "`(uname) 2>/dev/null`" = SunOS &&
4732			       uname -r | grep '^5' >/dev/null; then
4733	MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${vi_cv_path_mzscheme_pfx}/lib"
4734      fi
4735    fi
4736    if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
4737      SCHEME_COLLECTS=lib/plt/
4738    fi
4739    if test -f "${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects/scheme/base.ss" ; then
4740            MZSCHEME_EXTRA="mzscheme_base.c"
4741      MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE"
4742      MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc"
4743    fi
4744    MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \
4745      -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
4746    MZSCHEME_SRC="if_mzsch.c"
4747    MZSCHEME_OBJ="objects/if_mzsch.o"
4748    MZSCHEME_PRO="if_mzsch.pro"
4749    $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h
4750
4751  fi
4752
4753
4754
4755
4756
4757
4758
4759fi
4760
4761
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5
4763$as_echo_n "checking --enable-perlinterp argument... " >&6; }
4764# Check whether --enable-perlinterp was given.
4765if test "${enable_perlinterp+set}" = set; then :
4766  enableval=$enable_perlinterp;
4767else
4768  enable_perlinterp="no"
4769fi
4770
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5
4772$as_echo "$enable_perlinterp" >&6; }
4773if test "$enable_perlinterp" = "yes"; then
4774
4775  # Extract the first word of "perl", so it can be a program name with args.
4776set dummy perl; ac_word=$2
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778$as_echo_n "checking for $ac_word... " >&6; }
4779if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then :
4780  $as_echo_n "(cached) " >&6
4781else
4782  case $vi_cv_path_perl in
4783  [\\/]* | ?:[\\/]*)
4784  ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
4785  ;;
4786  *)
4787  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790  IFS=$as_save_IFS
4791  test -z "$as_dir" && as_dir=.
4792    for ac_exec_ext in '' $ac_executable_extensions; do
4793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794    ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
4795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796    break 2
4797  fi
4798done
4799  done
4800IFS=$as_save_IFS
4801
4802  ;;
4803esac
4804fi
4805vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
4806if test -n "$vi_cv_path_perl"; then
4807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5
4808$as_echo "$vi_cv_path_perl" >&6; }
4809else
4810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811$as_echo "no" >&6; }
4812fi
4813
4814
4815  if test "X$vi_cv_path_perl" != "X"; then
4816    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5
4817$as_echo_n "checking Perl version... " >&6; }
4818    if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
4819     eval `$vi_cv_path_perl -V:usethreads`
4820     if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
4821       badthreads=no
4822     else
4823       if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
4824	 eval `$vi_cv_path_perl -V:use5005threads`
4825	 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
4826	   badthreads=no
4827	 else
4828	   badthreads=yes
4829	   { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
4830$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; }
4831	 fi
4832       else
4833	 badthreads=yes
4834	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
4835$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; }
4836       fi
4837     fi
4838     if test $badthreads = no; then
4839      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
4840$as_echo "OK" >&6; }
4841      eval `$vi_cv_path_perl -V:shrpenv`
4842      if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
4843	shrpenv=""
4844      fi
4845      vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
4846
4847            perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
4848	      -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
4849            perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
4850		sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
4851			-e 's/-bE:perl.exp//' -e 's/-lc //'`
4852                  perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
4853		-e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
4854
4855                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5
4856$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; }
4857      cflags_save=$CFLAGS
4858      libs_save=$LIBS
4859      ldflags_save=$LDFLAGS
4860      CFLAGS="$CFLAGS $perlcppflags"
4861      LIBS="$LIBS $perllibs"
4862      LDFLAGS="$perlldflags $LDFLAGS"
4863      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864/* end confdefs.h.  */
4865
4866int
4867main ()
4868{
4869
4870  ;
4871  return 0;
4872}
4873_ACEOF
4874if ac_fn_c_try_link "$LINENO"; then :
4875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4876$as_echo "yes" >&6; }; perl_ok=yes
4877else
4878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5
4879$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no
4880fi
4881rm -f core conftest.err conftest.$ac_objext \
4882    conftest$ac_exeext conftest.$ac_ext
4883      CFLAGS=$cflags_save
4884      LIBS=$libs_save
4885      LDFLAGS=$ldflags_save
4886      if test $perl_ok = yes; then
4887	if test "X$perlcppflags" != "X"; then
4888	  	  PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
4889	fi
4890	if test "X$perlldflags" != "X"; then
4891	  LDFLAGS="$perlldflags $LDFLAGS"
4892	fi
4893	PERL_LIBS=$perllibs
4894	PERL_SRC="auto/if_perl.c if_perlsfio.c"
4895	PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4896	PERL_PRO="if_perl.pro if_perlsfio.pro"
4897	$as_echo "#define FEAT_PERL 1" >>confdefs.h
4898
4899      fi
4900     fi
4901    else
4902      { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4903$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; }
4904    fi
4905  fi
4906
4907  if test "x$MACOSX" = "xyes"; then
4908        dir=/System/Library/Perl
4909    darwindir=$dir/darwin
4910    if test -d $darwindir; then
4911      PERL=/usr/bin/perl
4912    else
4913            dir=/System/Library/Perl/5.8.1
4914      darwindir=$dir/darwin-thread-multi-2level
4915      if test -d $darwindir; then
4916	PERL=/usr/bin/perl
4917      fi
4918    fi
4919    if test -n "$PERL"; then
4920      PERL_DIR="$dir"
4921      PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4922      PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4923      PERL_LIBS="-L$darwindir/CORE -lperl"
4924    fi
4925  fi
4926fi
4927
4928
4929
4930
4931
4932
4933
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5
4935$as_echo_n "checking --enable-pythoninterp argument... " >&6; }
4936# Check whether --enable-pythoninterp was given.
4937if test "${enable_pythoninterp+set}" = set; then :
4938  enableval=$enable_pythoninterp;
4939else
4940  enable_pythoninterp="no"
4941fi
4942
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5
4944$as_echo "$enable_pythoninterp" >&6; }
4945if test "$enable_pythoninterp" = "yes"; then
4946    # Extract the first word of "python", so it can be a program name with args.
4947set dummy python; ac_word=$2
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949$as_echo_n "checking for $ac_word... " >&6; }
4950if test "${ac_cv_path_vi_cv_path_python+set}" = set; then :
4951  $as_echo_n "(cached) " >&6
4952else
4953  case $vi_cv_path_python in
4954  [\\/]* | ?:[\\/]*)
4955  ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4956  ;;
4957  *)
4958  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH
4960do
4961  IFS=$as_save_IFS
4962  test -z "$as_dir" && as_dir=.
4963    for ac_exec_ext in '' $ac_executable_extensions; do
4964  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965    ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4966    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967    break 2
4968  fi
4969done
4970  done
4971IFS=$as_save_IFS
4972
4973  ;;
4974esac
4975fi
4976vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4977if test -n "$vi_cv_path_python"; then
4978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5
4979$as_echo "$vi_cv_path_python" >&6; }
4980else
4981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982$as_echo "no" >&6; }
4983fi
4984
4985
4986  if test "X$vi_cv_path_python" != "X"; then
4987
4988        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
4989$as_echo_n "checking Python version... " >&6; }
4990if test "${vi_cv_var_python_version+set}" = set; then :
4991  $as_echo_n "(cached) " >&6
4992else
4993  vi_cv_var_python_version=`
4994	    ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
4995
4996fi
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5
4998$as_echo "$vi_cv_var_python_version" >&6; }
4999
5000        { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 1.4 or better" >&5
5001$as_echo_n "checking Python is 1.4 or better... " >&6; }
5002    if ${vi_cv_path_python} -c \
5003	"import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
5004    then
5005      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5
5006$as_echo "yep" >&6; }
5007
5008            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5
5009$as_echo_n "checking Python's install prefix... " >&6; }
5010if test "${vi_cv_path_python_pfx+set}" = set; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013   vi_cv_path_python_pfx=`
5014	    ${vi_cv_path_python} -c \
5015		"import sys; print sys.prefix"`
5016fi
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5
5018$as_echo "$vi_cv_path_python_pfx" >&6; }
5019
5020            { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5
5021$as_echo_n "checking Python's execution prefix... " >&6; }
5022if test "${vi_cv_path_python_epfx+set}" = set; then :
5023  $as_echo_n "(cached) " >&6
5024else
5025   vi_cv_path_python_epfx=`
5026	    ${vi_cv_path_python} -c \
5027		"import sys; print sys.exec_prefix"`
5028fi
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5
5030$as_echo "$vi_cv_path_python_epfx" >&6; }
5031
5032
5033      if test "${vi_cv_path_pythonpath+set}" = set; then :
5034  $as_echo_n "(cached) " >&6
5035else
5036   vi_cv_path_pythonpath=`
5037	    unset PYTHONPATH;
5038	    ${vi_cv_path_python} -c \
5039		"import sys, string; print string.join(sys.path,':')"`
5040fi
5041
5042
5043
5044
5045# Check whether --with-python-config-dir was given.
5046if test "${with_python_config_dir+set}" = set; then :
5047  withval=$with_python_config_dir;  vi_cv_path_python_conf="${withval}"
5048fi
5049
5050
5051      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5
5052$as_echo_n "checking Python's configuration directory... " >&6; }
5053if test "${vi_cv_path_python_conf+set}" = set; then :
5054  $as_echo_n "(cached) " >&6
5055else
5056
5057	vi_cv_path_python_conf=
5058	for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
5059	  for subdir in lib64 lib share; do
5060	    d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
5061	    if test -d "$d" && test -f "$d/config.c"; then
5062	      vi_cv_path_python_conf="$d"
5063	    fi
5064	  done
5065	done
5066
5067fi
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5
5069$as_echo "$vi_cv_path_python_conf" >&6; }
5070
5071      PYTHON_CONFDIR="${vi_cv_path_python_conf}"
5072
5073      if test "X$PYTHON_CONFDIR" = "X"; then
5074	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5
5075$as_echo "can't find it!" >&6; }
5076      else
5077
5078			if test "${vi_cv_path_python_plibs+set}" = set; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081
5082	    pwd=`pwd`
5083	    tmp_mkf="$pwd/config-PyMake$$"
5084	    cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}"
5085__:
5086	@echo "python_BASEMODLIBS='$(BASEMODLIBS)'"
5087	@echo "python_LIBS='$(LIBS)'"
5088	@echo "python_SYSLIBS='$(SYSLIBS)'"
5089	@echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
5090eof
5091	    	    eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`"
5092	    rm -f -- "${tmp_mkf}"
5093	    if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
5094		"import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
5095	      vi_cv_path_python_plibs="-framework Python"
5096	    else
5097	      if test "${vi_cv_var_python_version}" = "1.4"; then
5098		  vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
5099	      else
5100		  vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
5101	      fi
5102	      vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
5103	      	      vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
5104	    fi
5105
5106fi
5107
5108
5109	PYTHON_LIBS="${vi_cv_path_python_plibs}"
5110	if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
5111	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
5112	else
5113	  PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -I${vi_cv_path_python_epfx}/include/python${vi_cv_var_python_version}"
5114	fi
5115	PYTHON_NOPROTO=
5116	PYTHON_SRC="if_python.c"
5117		if test "x$MACOSX" = "xyes"; then
5118	  PYTHON_OBJ="objects/if_python.o"
5119	else
5120	  PYTHON_OBJ="objects/if_python.o objects/py_config.o"
5121	fi
5122	if test "${vi_cv_var_python_version}" = "1.4"; then
5123	   PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
5124	fi
5125	PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
5126
5127										{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5
5128$as_echo_n "checking if -pthread should be used... " >&6; }
5129	threadsafe_flag=
5130	thread_lib=
5131	        if test "`(uname) 2>/dev/null`" != Darwin; then
5132	  test "$GCC" = yes && threadsafe_flag="-pthread"
5133	  if test "`(uname) 2>/dev/null`" = FreeBSD; then
5134	    threadsafe_flag="-D_THREAD_SAFE"
5135	    thread_lib="-pthread"
5136	  fi
5137	fi
5138	libs_save_old=$LIBS
5139	if test -n "$threadsafe_flag"; then
5140	  cflags_save=$CFLAGS
5141	  CFLAGS="$CFLAGS $threadsafe_flag"
5142	  LIBS="$LIBS $thread_lib"
5143	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h.  */
5145
5146int
5147main ()
5148{
5149
5150  ;
5151  return 0;
5152}
5153_ACEOF
5154if ac_fn_c_try_link "$LINENO"; then :
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5156$as_echo "yes" >&6; }; PYTHON_NOPROTO="$threadsafe_flag"
5157else
5158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }; LIBS=$libs_save_old
5160
5161fi
5162rm -f core conftest.err conftest.$ac_objext \
5163    conftest$ac_exeext conftest.$ac_ext
5164	  CFLAGS=$cflags_save
5165	else
5166	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167$as_echo "no" >&6; }
5168	fi
5169
5170			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5
5171$as_echo_n "checking if compile and link flags for Python are sane... " >&6; }
5172	cflags_save=$CFLAGS
5173	libs_save=$LIBS
5174	CFLAGS="$CFLAGS $PYTHON_CFLAGS $PYTHON_NOPROTO"
5175	LIBS="$LIBS $PYTHON_LIBS"
5176	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177/* end confdefs.h.  */
5178
5179int
5180main ()
5181{
5182
5183  ;
5184  return 0;
5185}
5186_ACEOF
5187if ac_fn_c_try_link "$LINENO"; then :
5188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5189$as_echo "yes" >&6; }; python_ok=yes
5190else
5191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5
5192$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no
5193fi
5194rm -f core conftest.err conftest.$ac_objext \
5195    conftest$ac_exeext conftest.$ac_ext
5196	CFLAGS=$cflags_save
5197	LIBS=$libs_save
5198	if test $python_ok = yes; then
5199	  $as_echo "#define FEAT_PYTHON 1" >>confdefs.h
5200
5201	else
5202	  LIBS=$libs_save_old
5203	  PYTHON_SRC=
5204	  PYTHON_OBJ=
5205	  PYTHON_LIBS=
5206	  PYTHON_CFLAGS=
5207	  PYTHON_NOPROTO=
5208	fi
5209
5210      fi
5211    else
5212      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
5213$as_echo "too old" >&6; }
5214    fi
5215  fi
5216fi
5217
5218
5219
5220
5221
5222
5223
5224
5225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5
5226$as_echo_n "checking --enable-tclinterp argument... " >&6; }
5227# Check whether --enable-tclinterp was given.
5228if test "${enable_tclinterp+set}" = set; then :
5229  enableval=$enable_tclinterp;
5230else
5231  enable_tclinterp="no"
5232fi
5233
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5
5235$as_echo "$enable_tclinterp" >&6; }
5236
5237if test "$enable_tclinterp" = "yes"; then
5238
5239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5
5240$as_echo_n "checking --with-tclsh argument... " >&6; }
5241
5242# Check whether --with-tclsh was given.
5243if test "${with_tclsh+set}" = set; then :
5244  withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5
5245$as_echo "$tclsh_name" >&6; }
5246else
5247  tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248$as_echo "no" >&6; }
5249fi
5250
5251  # Extract the first word of "$tclsh_name", so it can be a program name with args.
5252set dummy $tclsh_name; ac_word=$2
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254$as_echo_n "checking for $ac_word... " >&6; }
5255if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5256  $as_echo_n "(cached) " >&6
5257else
5258  case $vi_cv_path_tcl in
5259  [\\/]* | ?:[\\/]*)
5260  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5261  ;;
5262  *)
5263  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266  IFS=$as_save_IFS
5267  test -z "$as_dir" && as_dir=.
5268    for ac_exec_ext in '' $ac_executable_extensions; do
5269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5271    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272    break 2
5273  fi
5274done
5275  done
5276IFS=$as_save_IFS
5277
5278  ;;
5279esac
5280fi
5281vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5282if test -n "$vi_cv_path_tcl"; then
5283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5284$as_echo "$vi_cv_path_tcl" >&6; }
5285else
5286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287$as_echo "no" >&6; }
5288fi
5289
5290
5291
5292
5293    if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
5294    tclsh_name="tclsh8.4"
5295    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5296set dummy $tclsh_name; ac_word=$2
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298$as_echo_n "checking for $ac_word... " >&6; }
5299if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5300  $as_echo_n "(cached) " >&6
5301else
5302  case $vi_cv_path_tcl in
5303  [\\/]* | ?:[\\/]*)
5304  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5305  ;;
5306  *)
5307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308for as_dir in $PATH
5309do
5310  IFS=$as_save_IFS
5311  test -z "$as_dir" && as_dir=.
5312    for ac_exec_ext in '' $ac_executable_extensions; do
5313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316    break 2
5317  fi
5318done
5319  done
5320IFS=$as_save_IFS
5321
5322  ;;
5323esac
5324fi
5325vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5326if test -n "$vi_cv_path_tcl"; then
5327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5328$as_echo "$vi_cv_path_tcl" >&6; }
5329else
5330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331$as_echo "no" >&6; }
5332fi
5333
5334
5335  fi
5336  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
5337    tclsh_name="tclsh8.2"
5338    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5339set dummy $tclsh_name; ac_word=$2
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341$as_echo_n "checking for $ac_word... " >&6; }
5342if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5343  $as_echo_n "(cached) " >&6
5344else
5345  case $vi_cv_path_tcl in
5346  [\\/]* | ?:[\\/]*)
5347  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5348  ;;
5349  *)
5350  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH
5352do
5353  IFS=$as_save_IFS
5354  test -z "$as_dir" && as_dir=.
5355    for ac_exec_ext in '' $ac_executable_extensions; do
5356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359    break 2
5360  fi
5361done
5362  done
5363IFS=$as_save_IFS
5364
5365  ;;
5366esac
5367fi
5368vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5369if test -n "$vi_cv_path_tcl"; then
5370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5371$as_echo "$vi_cv_path_tcl" >&6; }
5372else
5373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374$as_echo "no" >&6; }
5375fi
5376
5377
5378  fi
5379  if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
5380    tclsh_name="tclsh8.0"
5381    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5382set dummy $tclsh_name; ac_word=$2
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384$as_echo_n "checking for $ac_word... " >&6; }
5385if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5386  $as_echo_n "(cached) " >&6
5387else
5388  case $vi_cv_path_tcl in
5389  [\\/]* | ?:[\\/]*)
5390  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5391  ;;
5392  *)
5393  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394for as_dir in $PATH
5395do
5396  IFS=$as_save_IFS
5397  test -z "$as_dir" && as_dir=.
5398    for ac_exec_ext in '' $ac_executable_extensions; do
5399  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402    break 2
5403  fi
5404done
5405  done
5406IFS=$as_save_IFS
5407
5408  ;;
5409esac
5410fi
5411vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5412if test -n "$vi_cv_path_tcl"; then
5413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5414$as_echo "$vi_cv_path_tcl" >&6; }
5415else
5416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417$as_echo "no" >&6; }
5418fi
5419
5420
5421  fi
5422    if test "X$vi_cv_path_tcl" = "X"; then
5423    tclsh_name="tclsh"
5424    # Extract the first word of "$tclsh_name", so it can be a program name with args.
5425set dummy $tclsh_name; ac_word=$2
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427$as_echo_n "checking for $ac_word... " >&6; }
5428if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then :
5429  $as_echo_n "(cached) " >&6
5430else
5431  case $vi_cv_path_tcl in
5432  [\\/]* | ?:[\\/]*)
5433  ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
5434  ;;
5435  *)
5436  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437for as_dir in $PATH
5438do
5439  IFS=$as_save_IFS
5440  test -z "$as_dir" && as_dir=.
5441    for ac_exec_ext in '' $ac_executable_extensions; do
5442  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443    ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
5444    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445    break 2
5446  fi
5447done
5448  done
5449IFS=$as_save_IFS
5450
5451  ;;
5452esac
5453fi
5454vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
5455if test -n "$vi_cv_path_tcl"; then
5456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5
5457$as_echo "$vi_cv_path_tcl" >&6; }
5458else
5459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460$as_echo "no" >&6; }
5461fi
5462
5463
5464  fi
5465  if test "X$vi_cv_path_tcl" != "X"; then
5466    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5
5467$as_echo_n "checking Tcl version... " >&6; }
5468    if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
5469      tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
5470      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5
5471$as_echo "$tclver - OK" >&6; };
5472      tclloc=`echo 'set l [info library];set i [string last lib $l];incr i -2;puts [string range $l 0 $i]' | $vi_cv_path_tcl -`
5473
5474      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5
5475$as_echo_n "checking for location of Tcl include... " >&6; }
5476      if test "x$MACOSX" != "xyes"; then
5477	tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver"
5478      else
5479		tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
5480      fi
5481      TCL_INC=
5482      for try in $tclinc; do
5483	if test -f "$try/tcl.h"; then
5484	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5
5485$as_echo "$try/tcl.h" >&6; }
5486	  TCL_INC=$try
5487	  break
5488	fi
5489      done
5490      if test -z "$TCL_INC"; then
5491	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
5492$as_echo "<not found>" >&6; }
5493	SKIP_TCL=YES
5494      fi
5495      if test -z "$SKIP_TCL"; then
5496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5
5497$as_echo_n "checking for location of tclConfig.sh script... " >&6; }
5498	if test "x$MACOSX" != "xyes"; then
5499	  tclcnf=`echo $tclinc | sed s/include/lib/g`
5500	  tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
5501	else
5502	  	  tclcnf="/System/Library/Frameworks/Tcl.framework"
5503	fi
5504	for try in $tclcnf; do
5505	  if test -f $try/tclConfig.sh; then
5506	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5
5507$as_echo "$try/tclConfig.sh" >&6; }
5508	    . $try/tclConfig.sh
5509	    	    TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
5510	    	    	    TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^[^-]/d' -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
5511	    break
5512	  fi
5513	done
5514	if test -z "$TCL_LIBS"; then
5515	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
5516$as_echo "<not found>" >&6; }
5517	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5
5518$as_echo_n "checking for Tcl library by myself... " >&6; }
5519	  tcllib=`echo $tclinc | sed s/include/lib/g`
5520	  tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
5521	  for ext in .so .a ; do
5522	    for ver in "" $tclver ; do
5523	      for try in $tcllib ; do
5524		trylib=tcl$ver$ext
5525		if test -f $try/lib$trylib ; then
5526		  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5
5527$as_echo "$try/lib$trylib" >&6; }
5528		  TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
5529		  if test "`(uname) 2>/dev/null`" = SunOS &&
5530					 uname -r | grep '^5' >/dev/null; then
5531		    TCL_LIBS="$TCL_LIBS -R $try"
5532		  fi
5533		  break 3
5534		fi
5535	      done
5536	    done
5537	  done
5538	  if test -z "$TCL_LIBS"; then
5539	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
5540$as_echo "<not found>" >&6; }
5541	    SKIP_TCL=YES
5542	  fi
5543	fi
5544	if test -z "$SKIP_TCL"; then
5545	  $as_echo "#define FEAT_TCL 1" >>confdefs.h
5546
5547	  TCL_SRC=if_tcl.c
5548	  TCL_OBJ=objects/if_tcl.o
5549	  TCL_PRO=if_tcl.pro
5550	  TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
5551	fi
5552      fi
5553    else
5554      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5
5555$as_echo "too old; need Tcl version 8.0 or later" >&6; }
5556    fi
5557  fi
5558fi
5559
5560
5561
5562
5563
5564
5565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5
5566$as_echo_n "checking --enable-rubyinterp argument... " >&6; }
5567# Check whether --enable-rubyinterp was given.
5568if test "${enable_rubyinterp+set}" = set; then :
5569  enableval=$enable_rubyinterp;
5570else
5571  enable_rubyinterp="no"
5572fi
5573
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5
5575$as_echo "$enable_rubyinterp" >&6; }
5576if test "$enable_rubyinterp" = "yes"; then
5577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5
5578$as_echo_n "checking --with-ruby-command argument... " >&6; }
5579
5580# Check whether --with-ruby-command was given.
5581if test "${with_ruby_command+set}" = set; then :
5582  withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5
5583$as_echo "$RUBY_CMD" >&6; }
5584else
5585  RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5
5586$as_echo "defaulting to $RUBY_CMD" >&6; }
5587fi
5588
5589
5590  # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
5591set dummy $RUBY_CMD; ac_word=$2
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593$as_echo_n "checking for $ac_word... " >&6; }
5594if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then :
5595  $as_echo_n "(cached) " >&6
5596else
5597  case $vi_cv_path_ruby in
5598  [\\/]* | ?:[\\/]*)
5599  ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
5600  ;;
5601  *)
5602  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605  IFS=$as_save_IFS
5606  test -z "$as_dir" && as_dir=.
5607    for ac_exec_ext in '' $ac_executable_extensions; do
5608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609    ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
5610    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611    break 2
5612  fi
5613done
5614  done
5615IFS=$as_save_IFS
5616
5617  ;;
5618esac
5619fi
5620vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
5621if test -n "$vi_cv_path_ruby"; then
5622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5
5623$as_echo "$vi_cv_path_ruby" >&6; }
5624else
5625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626$as_echo "no" >&6; }
5627fi
5628
5629
5630  if test "X$vi_cv_path_ruby" != "X"; then
5631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5
5632$as_echo_n "checking Ruby version... " >&6; }
5633    if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
5634      { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
5635$as_echo "OK" >&6; }
5636      { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5
5637$as_echo_n "checking Ruby header files... " >&6; }
5638      rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
5639      if test "X$rubyhdrdir" != "X"; then
5640	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5
5641$as_echo "$rubyhdrdir" >&6; }
5642	RUBY_CFLAGS="-I$rubyhdrdir"
5643        rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
5644        if test -d "$rubyhdrdir/$rubyarch"; then
5645          RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
5646        fi
5647        rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
5648        RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
5649	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
5650	if test "X$rubylibs" != "X"; then
5651	  RUBY_LIBS="$rubylibs"
5652	fi
5653	librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
5654	if test -f "$rubyhdrdir/$librubyarg"; then
5655	  librubyarg="$rubyhdrdir/$librubyarg"
5656	else
5657	  rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
5658	  if test -f "$rubylibdir/$librubyarg"; then
5659	    librubyarg="$rubylibdir/$librubyarg"
5660	  elif test "$librubyarg" = "libruby.a"; then
5661	    	    librubyarg="-lruby"
5662	  else
5663	    librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
5664	  fi
5665	fi
5666
5667	if test "X$librubyarg" != "X"; then
5668	  RUBY_LIBS="$librubyarg $RUBY_LIBS"
5669	fi
5670	rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
5671	if test "X$rubyldflags" != "X"; then
5672	  	  	  	  rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//'`
5673	  if test "X$rubyldflags" != "X"; then
5674	    LDFLAGS="$rubyldflags $LDFLAGS"
5675	  fi
5676	fi
5677	RUBY_SRC="if_ruby.c"
5678	RUBY_OBJ="objects/if_ruby.o"
5679	RUBY_PRO="if_ruby.pro"
5680	$as_echo "#define FEAT_RUBY 1" >>confdefs.h
5681
5682      else
5683	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5
5684$as_echo "not found; disabling Ruby" >&6; }
5685      fi
5686    else
5687      { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5
5688$as_echo "too old; need Ruby version 1.6.0 or later" >&6; }
5689    fi
5690  fi
5691fi
5692
5693
5694
5695
5696
5697
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5
5699$as_echo_n "checking --enable-cscope argument... " >&6; }
5700# Check whether --enable-cscope was given.
5701if test "${enable_cscope+set}" = set; then :
5702  enableval=$enable_cscope;
5703else
5704  enable_cscope="no"
5705fi
5706
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5
5708$as_echo "$enable_cscope" >&6; }
5709if test "$enable_cscope" = "yes"; then
5710  $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h
5711
5712fi
5713
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5
5715$as_echo_n "checking --enable-workshop argument... " >&6; }
5716# Check whether --enable-workshop was given.
5717if test "${enable_workshop+set}" = set; then :
5718  enableval=$enable_workshop;
5719else
5720  enable_workshop="no"
5721fi
5722
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5
5724$as_echo "$enable_workshop" >&6; }
5725if test "$enable_workshop" = "yes"; then
5726  $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h
5727
5728  WORKSHOP_SRC="workshop.c integration.c"
5729
5730  WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
5731
5732  if test "${enable_gui-xxx}" = xxx; then
5733    enable_gui=motif
5734  fi
5735fi
5736
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5
5738$as_echo_n "checking --disable-netbeans argument... " >&6; }
5739# Check whether --enable-netbeans was given.
5740if test "${enable_netbeans+set}" = set; then :
5741  enableval=$enable_netbeans;
5742else
5743  enable_netbeans="yes"
5744fi
5745
5746if test "$enable_netbeans" = "yes"; then
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748$as_echo "no" >&6; }
5749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
5750$as_echo_n "checking for socket in -lsocket... " >&6; }
5751if test "${ac_cv_lib_socket_socket+set}" = set; then :
5752  $as_echo_n "(cached) " >&6
5753else
5754  ac_check_lib_save_LIBS=$LIBS
5755LIBS="-lsocket  $LIBS"
5756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757/* end confdefs.h.  */
5758
5759/* Override any GCC internal prototype to avoid an error.
5760   Use char because int might match the return type of a GCC
5761   builtin and then its argument prototype would still apply.  */
5762#ifdef __cplusplus
5763extern "C"
5764#endif
5765char socket ();
5766int
5767main ()
5768{
5769return socket ();
5770  ;
5771  return 0;
5772}
5773_ACEOF
5774if ac_fn_c_try_link "$LINENO"; then :
5775  ac_cv_lib_socket_socket=yes
5776else
5777  ac_cv_lib_socket_socket=no
5778fi
5779rm -f core conftest.err conftest.$ac_objext \
5780    conftest$ac_exeext conftest.$ac_ext
5781LIBS=$ac_check_lib_save_LIBS
5782fi
5783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
5784$as_echo "$ac_cv_lib_socket_socket" >&6; }
5785if test "x$ac_cv_lib_socket_socket" = x""yes; then :
5786  cat >>confdefs.h <<_ACEOF
5787#define HAVE_LIBSOCKET 1
5788_ACEOF
5789
5790  LIBS="-lsocket $LIBS"
5791
5792fi
5793
5794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5795$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5796if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5797  $as_echo_n "(cached) " >&6
5798else
5799  ac_check_lib_save_LIBS=$LIBS
5800LIBS="-lnsl  $LIBS"
5801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802/* end confdefs.h.  */
5803
5804/* Override any GCC internal prototype to avoid an error.
5805   Use char because int might match the return type of a GCC
5806   builtin and then its argument prototype would still apply.  */
5807#ifdef __cplusplus
5808extern "C"
5809#endif
5810char gethostbyname ();
5811int
5812main ()
5813{
5814return gethostbyname ();
5815  ;
5816  return 0;
5817}
5818_ACEOF
5819if ac_fn_c_try_link "$LINENO"; then :
5820  ac_cv_lib_nsl_gethostbyname=yes
5821else
5822  ac_cv_lib_nsl_gethostbyname=no
5823fi
5824rm -f core conftest.err conftest.$ac_objext \
5825    conftest$ac_exeext conftest.$ac_ext
5826LIBS=$ac_check_lib_save_LIBS
5827fi
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5829$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5830if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5831  cat >>confdefs.h <<_ACEOF
5832#define HAVE_LIBNSL 1
5833_ACEOF
5834
5835  LIBS="-lnsl $LIBS"
5836
5837fi
5838
5839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling netbeans integration is possible" >&5
5840$as_echo_n "checking whether compiling netbeans integration is possible... " >&6; }
5841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h.  */
5843
5844#include <stdio.h>
5845#include <stdlib.h>
5846#include <stdarg.h>
5847#include <fcntl.h>
5848#include <netdb.h>
5849#include <netinet/in.h>
5850#include <errno.h>
5851#include <sys/types.h>
5852#include <sys/socket.h>
5853	/* Check bitfields */
5854	struct nbbuf {
5855	unsigned int  initDone:1;
5856	ushort signmaplen;
5857	};
5858
5859int
5860main ()
5861{
5862
5863		/* Check creating a socket. */
5864		struct sockaddr_in server;
5865		(void)socket(AF_INET, SOCK_STREAM, 0);
5866		(void)htons(100);
5867		(void)gethostbyname("microsoft.com");
5868		if (errno == ECONNREFUSED)
5869		  (void)connect(1, (struct sockaddr *)&server, sizeof(server));
5870
5871  ;
5872  return 0;
5873}
5874_ACEOF
5875if ac_fn_c_try_link "$LINENO"; then :
5876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5877$as_echo "yes" >&6; }
5878else
5879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880$as_echo "no" >&6; }; enable_netbeans="no"
5881fi
5882rm -f core conftest.err conftest.$ac_objext \
5883    conftest$ac_exeext conftest.$ac_ext
5884else
5885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5886$as_echo "yes" >&6; }
5887fi
5888if test "$enable_netbeans" = "yes"; then
5889  $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h
5890
5891  NETBEANS_SRC="netbeans.c"
5892
5893  NETBEANS_OBJ="objects/netbeans.o"
5894
5895fi
5896
5897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-sniff argument" >&5
5898$as_echo_n "checking --enable-sniff argument... " >&6; }
5899# Check whether --enable-sniff was given.
5900if test "${enable_sniff+set}" = set; then :
5901  enableval=$enable_sniff;
5902else
5903  enable_sniff="no"
5904fi
5905
5906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_sniff" >&5
5907$as_echo "$enable_sniff" >&6; }
5908if test "$enable_sniff" = "yes"; then
5909  $as_echo "#define FEAT_SNIFF 1" >>confdefs.h
5910
5911  SNIFF_SRC="if_sniff.c"
5912
5913  SNIFF_OBJ="objects/if_sniff.o"
5914
5915fi
5916
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5
5918$as_echo_n "checking --enable-multibyte argument... " >&6; }
5919# Check whether --enable-multibyte was given.
5920if test "${enable_multibyte+set}" = set; then :
5921  enableval=$enable_multibyte;
5922else
5923  enable_multibyte="no"
5924fi
5925
5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5
5927$as_echo "$enable_multibyte" >&6; }
5928if test "$enable_multibyte" = "yes"; then
5929  $as_echo "#define FEAT_MBYTE 1" >>confdefs.h
5930
5931fi
5932
5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5
5934$as_echo_n "checking --enable-hangulinput argument... " >&6; }
5935# Check whether --enable-hangulinput was given.
5936if test "${enable_hangulinput+set}" = set; then :
5937  enableval=$enable_hangulinput;
5938else
5939  enable_hangulinput="no"
5940fi
5941
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5
5943$as_echo "$enable_hangulinput" >&6; }
5944
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5
5946$as_echo_n "checking --enable-xim argument... " >&6; }
5947# Check whether --enable-xim was given.
5948if test "${enable_xim+set}" = set; then :
5949  enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5
5950$as_echo "$enable_xim" >&6; }
5951else
5952  enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5
5953$as_echo "defaulting to auto" >&6; }
5954fi
5955
5956
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5
5958$as_echo_n "checking --enable-fontset argument... " >&6; }
5959# Check whether --enable-fontset was given.
5960if test "${enable_fontset+set}" = set; then :
5961  enableval=$enable_fontset;
5962else
5963  enable_fontset="no"
5964fi
5965
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5
5967$as_echo "$enable_fontset" >&6; }
5968
5969test -z "$with_x" && with_x=yes
5970test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5971if test "$with_x" = no; then
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5
5973$as_echo "defaulting to: don't HAVE_X11" >&6; }
5974else
5975
5976  # Extract the first word of "xmkmf", so it can be a program name with args.
5977set dummy xmkmf; ac_word=$2
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979$as_echo_n "checking for $ac_word... " >&6; }
5980if test "${ac_cv_path_xmkmfpath+set}" = set; then :
5981  $as_echo_n "(cached) " >&6
5982else
5983  case $xmkmfpath in
5984  [\\/]* | ?:[\\/]*)
5985  ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5986  ;;
5987  *)
5988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5989for as_dir in $PATH
5990do
5991  IFS=$as_save_IFS
5992  test -z "$as_dir" && as_dir=.
5993    for ac_exec_ext in '' $ac_executable_extensions; do
5994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995    ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5997    break 2
5998  fi
5999done
6000  done
6001IFS=$as_save_IFS
6002
6003  ;;
6004esac
6005fi
6006xmkmfpath=$ac_cv_path_xmkmfpath
6007if test -n "$xmkmfpath"; then
6008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5
6009$as_echo "$xmkmfpath" >&6; }
6010else
6011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012$as_echo "no" >&6; }
6013fi
6014
6015
6016
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6018$as_echo_n "checking for X... " >&6; }
6019
6020
6021# Check whether --with-x was given.
6022if test "${with_x+set}" = set; then :
6023  withval=$with_x;
6024fi
6025
6026# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6027if test "x$with_x" = xno; then
6028  # The user explicitly disabled X.
6029  have_x=disabled
6030else
6031  case $x_includes,$x_libraries in #(
6032    *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
6033    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036  # One or both of the vars are not set, and there is no cached value.
6037ac_x_includes=no ac_x_libraries=no
6038rm -f -r conftest.dir
6039if mkdir conftest.dir; then
6040  cd conftest.dir
6041  cat >Imakefile <<'_ACEOF'
6042incroot:
6043	@echo incroot='${INCROOT}'
6044usrlibdir:
6045	@echo usrlibdir='${USRLIBDIR}'
6046libdir:
6047	@echo libdir='${LIBDIR}'
6048_ACEOF
6049  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6050    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6051    for ac_var in incroot usrlibdir libdir; do
6052      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6053    done
6054    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6055    for ac_extension in a so sl dylib la dll; do
6056      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6057	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6058	ac_im_usrlibdir=$ac_im_libdir; break
6059      fi
6060    done
6061    # Screen out bogus values from the imake configuration.  They are
6062    # bogus both because they are the default anyway, and because
6063    # using them would break gcc on systems where it needs fixed includes.
6064    case $ac_im_incroot in
6065	/usr/include) ac_x_includes= ;;
6066	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6067    esac
6068    case $ac_im_usrlibdir in
6069	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
6070	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6071    esac
6072  fi
6073  cd ..
6074  rm -f -r conftest.dir
6075fi
6076
6077# Standard set of common directories for X headers.
6078# Check X11 before X11Rn because it is often a symlink to the current release.
6079ac_x_header_dirs='
6080/usr/X11/include
6081/usr/X11R7/include
6082/usr/X11R6/include
6083/usr/X11R5/include
6084/usr/X11R4/include
6085
6086/usr/include/X11
6087/usr/include/X11R7
6088/usr/include/X11R6
6089/usr/include/X11R5
6090/usr/include/X11R4
6091
6092/usr/local/X11/include
6093/usr/local/X11R7/include
6094/usr/local/X11R6/include
6095/usr/local/X11R5/include
6096/usr/local/X11R4/include
6097
6098/usr/local/include/X11
6099/usr/local/include/X11R7
6100/usr/local/include/X11R6
6101/usr/local/include/X11R5
6102/usr/local/include/X11R4
6103
6104/usr/X386/include
6105/usr/x386/include
6106/usr/XFree86/include/X11
6107
6108/usr/include
6109/usr/local/include
6110/usr/unsupported/include
6111/usr/athena/include
6112/usr/local/x11r5/include
6113/usr/lpp/Xamples/include
6114
6115/usr/openwin/include
6116/usr/openwin/share/include'
6117
6118if test "$ac_x_includes" = no; then
6119  # Guess where to find include files, by looking for Xlib.h.
6120  # First, try using that file with no special directory specified.
6121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122/* end confdefs.h.  */
6123#include <X11/Xlib.h>
6124_ACEOF
6125if ac_fn_c_try_cpp "$LINENO"; then :
6126  # We can compile using X headers with no special include directory.
6127ac_x_includes=
6128else
6129  for ac_dir in $ac_x_header_dirs; do
6130  if test -r "$ac_dir/X11/Xlib.h"; then
6131    ac_x_includes=$ac_dir
6132    break
6133  fi
6134done
6135fi
6136rm -f conftest.err conftest.$ac_ext
6137fi # $ac_x_includes = no
6138
6139if test "$ac_x_libraries" = no; then
6140  # Check for the libraries.
6141  # See if we find them without any special options.
6142  # Don't add to $LIBS permanently.
6143  ac_save_LIBS=$LIBS
6144  LIBS="-lX11 $LIBS"
6145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146/* end confdefs.h.  */
6147#include <X11/Xlib.h>
6148int
6149main ()
6150{
6151XrmInitialize ()
6152  ;
6153  return 0;
6154}
6155_ACEOF
6156if ac_fn_c_try_link "$LINENO"; then :
6157  LIBS=$ac_save_LIBS
6158# We can link X programs with no special library path.
6159ac_x_libraries=
6160else
6161  LIBS=$ac_save_LIBS
6162for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6163do
6164  # Don't even attempt the hair of trying to link an X program!
6165  for ac_extension in a so sl dylib la dll; do
6166    if test -r "$ac_dir/libX11.$ac_extension"; then
6167      ac_x_libraries=$ac_dir
6168      break 2
6169    fi
6170  done
6171done
6172fi
6173rm -f core conftest.err conftest.$ac_objext \
6174    conftest$ac_exeext conftest.$ac_ext
6175fi # $ac_x_libraries = no
6176
6177case $ac_x_includes,$ac_x_libraries in #(
6178  no,* | *,no | *\'*)
6179    # Didn't find X, or a directory has "'" in its name.
6180    ac_cv_have_x="have_x=no";; #(
6181  *)
6182    # Record where we found X for the cache.
6183    ac_cv_have_x="have_x=yes\
6184	ac_x_includes='$ac_x_includes'\
6185	ac_x_libraries='$ac_x_libraries'"
6186esac
6187fi
6188;; #(
6189    *) have_x=yes;;
6190  esac
6191  eval "$ac_cv_have_x"
6192fi # $with_x != no
6193
6194if test "$have_x" != yes; then
6195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6196$as_echo "$have_x" >&6; }
6197  no_x=yes
6198else
6199  # If each of the values was on the command line, it overrides each guess.
6200  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6201  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6202  # Update the cache value to reflect the command line values.
6203  ac_cv_have_x="have_x=yes\
6204	ac_x_includes='$x_includes'\
6205	ac_x_libraries='$x_libraries'"
6206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6207$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6208fi
6209
6210if test "$no_x" = yes; then
6211  # Not all programs may use this symbol, but it does not hurt to define it.
6212
6213$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
6214
6215  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6216else
6217  if test -n "$x_includes"; then
6218    X_CFLAGS="$X_CFLAGS -I$x_includes"
6219  fi
6220
6221  # It would also be nice to do this for all -L options, not just this one.
6222  if test -n "$x_libraries"; then
6223    X_LIBS="$X_LIBS -L$x_libraries"
6224    # For Solaris; some versions of Sun CC require a space after -R and
6225    # others require no space.  Words are not sufficient . . . .
6226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6227$as_echo_n "checking whether -R must be followed by a space... " >&6; }
6228    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6229    ac_xsave_c_werror_flag=$ac_c_werror_flag
6230    ac_c_werror_flag=yes
6231    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232/* end confdefs.h.  */
6233
6234int
6235main ()
6236{
6237
6238  ;
6239  return 0;
6240}
6241_ACEOF
6242if ac_fn_c_try_link "$LINENO"; then :
6243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6244$as_echo "no" >&6; }
6245       X_LIBS="$X_LIBS -R$x_libraries"
6246else
6247  LIBS="$ac_xsave_LIBS -R $x_libraries"
6248       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h.  */
6250
6251int
6252main ()
6253{
6254
6255  ;
6256  return 0;
6257}
6258_ACEOF
6259if ac_fn_c_try_link "$LINENO"; then :
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6261$as_echo "yes" >&6; }
6262	  X_LIBS="$X_LIBS -R $x_libraries"
6263else
6264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6265$as_echo "neither works" >&6; }
6266fi
6267rm -f core conftest.err conftest.$ac_objext \
6268    conftest$ac_exeext conftest.$ac_ext
6269fi
6270rm -f core conftest.err conftest.$ac_objext \
6271    conftest$ac_exeext conftest.$ac_ext
6272    ac_c_werror_flag=$ac_xsave_c_werror_flag
6273    LIBS=$ac_xsave_LIBS
6274  fi
6275
6276  # Check for system-dependent libraries X programs must link with.
6277  # Do this before checking for the system-independent R6 libraries
6278  # (-lICE), since we may need -lsocket or whatever for X linking.
6279
6280  if test "$ISC" = yes; then
6281    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6282  else
6283    # Martyn Johnson says this is needed for Ultrix, if the X
6284    # libraries were built with DECnet support.  And Karl Berry says
6285    # the Alpha needs dnet_stub (dnet does not exist).
6286    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6287    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288/* end confdefs.h.  */
6289
6290/* Override any GCC internal prototype to avoid an error.
6291   Use char because int might match the return type of a GCC
6292   builtin and then its argument prototype would still apply.  */
6293#ifdef __cplusplus
6294extern "C"
6295#endif
6296char XOpenDisplay ();
6297int
6298main ()
6299{
6300return XOpenDisplay ();
6301  ;
6302  return 0;
6303}
6304_ACEOF
6305if ac_fn_c_try_link "$LINENO"; then :
6306
6307else
6308  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6309$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6310if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  ac_check_lib_save_LIBS=$LIBS
6314LIBS="-ldnet  $LIBS"
6315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316/* end confdefs.h.  */
6317
6318/* Override any GCC internal prototype to avoid an error.
6319   Use char because int might match the return type of a GCC
6320   builtin and then its argument prototype would still apply.  */
6321#ifdef __cplusplus
6322extern "C"
6323#endif
6324char dnet_ntoa ();
6325int
6326main ()
6327{
6328return dnet_ntoa ();
6329  ;
6330  return 0;
6331}
6332_ACEOF
6333if ac_fn_c_try_link "$LINENO"; then :
6334  ac_cv_lib_dnet_dnet_ntoa=yes
6335else
6336  ac_cv_lib_dnet_dnet_ntoa=no
6337fi
6338rm -f core conftest.err conftest.$ac_objext \
6339    conftest$ac_exeext conftest.$ac_ext
6340LIBS=$ac_check_lib_save_LIBS
6341fi
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6343$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6344if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
6345  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6346fi
6347
6348    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6349      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6350$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6351if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  ac_check_lib_save_LIBS=$LIBS
6355LIBS="-ldnet_stub  $LIBS"
6356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357/* end confdefs.h.  */
6358
6359/* Override any GCC internal prototype to avoid an error.
6360   Use char because int might match the return type of a GCC
6361   builtin and then its argument prototype would still apply.  */
6362#ifdef __cplusplus
6363extern "C"
6364#endif
6365char dnet_ntoa ();
6366int
6367main ()
6368{
6369return dnet_ntoa ();
6370  ;
6371  return 0;
6372}
6373_ACEOF
6374if ac_fn_c_try_link "$LINENO"; then :
6375  ac_cv_lib_dnet_stub_dnet_ntoa=yes
6376else
6377  ac_cv_lib_dnet_stub_dnet_ntoa=no
6378fi
6379rm -f core conftest.err conftest.$ac_objext \
6380    conftest$ac_exeext conftest.$ac_ext
6381LIBS=$ac_check_lib_save_LIBS
6382fi
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6384$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6385if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
6386  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6387fi
6388
6389    fi
6390fi
6391rm -f core conftest.err conftest.$ac_objext \
6392    conftest$ac_exeext conftest.$ac_ext
6393    LIBS="$ac_xsave_LIBS"
6394
6395    # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
6396    # to get the SysV transport functions.
6397    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6398    # needs -lnsl.
6399    # The nsl library prevents programs from opening the X display
6400    # on Irix 5.2, according to T.E. Dickey.
6401    # The functions gethostbyname, getservbyname, and inet_addr are
6402    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6403    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6404if test "x$ac_cv_func_gethostbyname" = x""yes; then :
6405
6406fi
6407
6408    if test $ac_cv_func_gethostbyname = no; then
6409      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6410$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6411if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6412  $as_echo_n "(cached) " >&6
6413else
6414  ac_check_lib_save_LIBS=$LIBS
6415LIBS="-lnsl  $LIBS"
6416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6417/* end confdefs.h.  */
6418
6419/* Override any GCC internal prototype to avoid an error.
6420   Use char because int might match the return type of a GCC
6421   builtin and then its argument prototype would still apply.  */
6422#ifdef __cplusplus
6423extern "C"
6424#endif
6425char gethostbyname ();
6426int
6427main ()
6428{
6429return gethostbyname ();
6430  ;
6431  return 0;
6432}
6433_ACEOF
6434if ac_fn_c_try_link "$LINENO"; then :
6435  ac_cv_lib_nsl_gethostbyname=yes
6436else
6437  ac_cv_lib_nsl_gethostbyname=no
6438fi
6439rm -f core conftest.err conftest.$ac_objext \
6440    conftest$ac_exeext conftest.$ac_ext
6441LIBS=$ac_check_lib_save_LIBS
6442fi
6443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6444$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6445if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6446  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6447fi
6448
6449      if test $ac_cv_lib_nsl_gethostbyname = no; then
6450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6451$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6452if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6453  $as_echo_n "(cached) " >&6
6454else
6455  ac_check_lib_save_LIBS=$LIBS
6456LIBS="-lbsd  $LIBS"
6457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6458/* end confdefs.h.  */
6459
6460/* Override any GCC internal prototype to avoid an error.
6461   Use char because int might match the return type of a GCC
6462   builtin and then its argument prototype would still apply.  */
6463#ifdef __cplusplus
6464extern "C"
6465#endif
6466char gethostbyname ();
6467int
6468main ()
6469{
6470return gethostbyname ();
6471  ;
6472  return 0;
6473}
6474_ACEOF
6475if ac_fn_c_try_link "$LINENO"; then :
6476  ac_cv_lib_bsd_gethostbyname=yes
6477else
6478  ac_cv_lib_bsd_gethostbyname=no
6479fi
6480rm -f core conftest.err conftest.$ac_objext \
6481    conftest$ac_exeext conftest.$ac_ext
6482LIBS=$ac_check_lib_save_LIBS
6483fi
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6485$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6486if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6487  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6488fi
6489
6490      fi
6491    fi
6492
6493    # [email protected] says without -lsocket,
6494    # socket/setsockopt and other routines are undefined under SCO ODT
6495    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6496    # on later versions), says Simon Leinen: it contains gethostby*
6497    # variants that don't use the name server (or something).  -lsocket
6498    # must be given before -lnsl if both are needed.  We assume that
6499    # if connect needs -lnsl, so does gethostbyname.
6500    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
6501if test "x$ac_cv_func_connect" = x""yes; then :
6502
6503fi
6504
6505    if test $ac_cv_func_connect = no; then
6506      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6507$as_echo_n "checking for connect in -lsocket... " >&6; }
6508if test "${ac_cv_lib_socket_connect+set}" = set; then :
6509  $as_echo_n "(cached) " >&6
6510else
6511  ac_check_lib_save_LIBS=$LIBS
6512LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h.  */
6515
6516/* Override any GCC internal prototype to avoid an error.
6517   Use char because int might match the return type of a GCC
6518   builtin and then its argument prototype would still apply.  */
6519#ifdef __cplusplus
6520extern "C"
6521#endif
6522char connect ();
6523int
6524main ()
6525{
6526return connect ();
6527  ;
6528  return 0;
6529}
6530_ACEOF
6531if ac_fn_c_try_link "$LINENO"; then :
6532  ac_cv_lib_socket_connect=yes
6533else
6534  ac_cv_lib_socket_connect=no
6535fi
6536rm -f core conftest.err conftest.$ac_objext \
6537    conftest$ac_exeext conftest.$ac_ext
6538LIBS=$ac_check_lib_save_LIBS
6539fi
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6541$as_echo "$ac_cv_lib_socket_connect" >&6; }
6542if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6543  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6544fi
6545
6546    fi
6547
6548    # Guillermo Gomez says -lposix is necessary on A/UX.
6549    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
6550if test "x$ac_cv_func_remove" = x""yes; then :
6551
6552fi
6553
6554    if test $ac_cv_func_remove = no; then
6555      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6556$as_echo_n "checking for remove in -lposix... " >&6; }
6557if test "${ac_cv_lib_posix_remove+set}" = set; then :
6558  $as_echo_n "(cached) " >&6
6559else
6560  ac_check_lib_save_LIBS=$LIBS
6561LIBS="-lposix  $LIBS"
6562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563/* end confdefs.h.  */
6564
6565/* Override any GCC internal prototype to avoid an error.
6566   Use char because int might match the return type of a GCC
6567   builtin and then its argument prototype would still apply.  */
6568#ifdef __cplusplus
6569extern "C"
6570#endif
6571char remove ();
6572int
6573main ()
6574{
6575return remove ();
6576  ;
6577  return 0;
6578}
6579_ACEOF
6580if ac_fn_c_try_link "$LINENO"; then :
6581  ac_cv_lib_posix_remove=yes
6582else
6583  ac_cv_lib_posix_remove=no
6584fi
6585rm -f core conftest.err conftest.$ac_objext \
6586    conftest$ac_exeext conftest.$ac_ext
6587LIBS=$ac_check_lib_save_LIBS
6588fi
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6590$as_echo "$ac_cv_lib_posix_remove" >&6; }
6591if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6592  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6593fi
6594
6595    fi
6596
6597    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6598    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6599if test "x$ac_cv_func_shmat" = x""yes; then :
6600
6601fi
6602
6603    if test $ac_cv_func_shmat = no; then
6604      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6605$as_echo_n "checking for shmat in -lipc... " >&6; }
6606if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  ac_check_lib_save_LIBS=$LIBS
6610LIBS="-lipc  $LIBS"
6611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612/* end confdefs.h.  */
6613
6614/* Override any GCC internal prototype to avoid an error.
6615   Use char because int might match the return type of a GCC
6616   builtin and then its argument prototype would still apply.  */
6617#ifdef __cplusplus
6618extern "C"
6619#endif
6620char shmat ();
6621int
6622main ()
6623{
6624return shmat ();
6625  ;
6626  return 0;
6627}
6628_ACEOF
6629if ac_fn_c_try_link "$LINENO"; then :
6630  ac_cv_lib_ipc_shmat=yes
6631else
6632  ac_cv_lib_ipc_shmat=no
6633fi
6634rm -f core conftest.err conftest.$ac_objext \
6635    conftest$ac_exeext conftest.$ac_ext
6636LIBS=$ac_check_lib_save_LIBS
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6639$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6640if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
6641  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6642fi
6643
6644    fi
6645  fi
6646
6647  # Check for libraries that X11R6 Xt/Xaw programs need.
6648  ac_save_LDFLAGS=$LDFLAGS
6649  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6650  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6651  # check for ICE first), but we must link in the order -lSM -lICE or
6652  # we get undefined symbols.  So assume we have SM if we have ICE.
6653  # These have to be linked with before -lX11, unlike the other
6654  # libraries we check for below, so use a different variable.
6655  # John Interrante, Karl Berry
6656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6657$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6658if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
6659  $as_echo_n "(cached) " >&6
6660else
6661  ac_check_lib_save_LIBS=$LIBS
6662LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664/* end confdefs.h.  */
6665
6666/* Override any GCC internal prototype to avoid an error.
6667   Use char because int might match the return type of a GCC
6668   builtin and then its argument prototype would still apply.  */
6669#ifdef __cplusplus
6670extern "C"
6671#endif
6672char IceConnectionNumber ();
6673int
6674main ()
6675{
6676return IceConnectionNumber ();
6677  ;
6678  return 0;
6679}
6680_ACEOF
6681if ac_fn_c_try_link "$LINENO"; then :
6682  ac_cv_lib_ICE_IceConnectionNumber=yes
6683else
6684  ac_cv_lib_ICE_IceConnectionNumber=no
6685fi
6686rm -f core conftest.err conftest.$ac_objext \
6687    conftest$ac_exeext conftest.$ac_ext
6688LIBS=$ac_check_lib_save_LIBS
6689fi
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6691$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6692if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
6693  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6694fi
6695
6696  LDFLAGS=$ac_save_LDFLAGS
6697
6698fi
6699
6700
6701        if test "$zOSUnix" = "yes"; then
6702    CFLAGS="$CFLAGS -W c,dll"
6703    LDFLAGS="$LDFLAGS -W l,dll"
6704    X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6705  fi
6706
6707
6708  if test -d "$x_includes" && test ! -d "$x_libraries"; then
6709    x_libraries=`echo "$x_includes" | sed s/include/lib/`
6710    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5
6711$as_echo "Corrected X libraries to $x_libraries" >&6; }
6712    X_LIBS="$X_LIBS -L$x_libraries"
6713    if test "`(uname) 2>/dev/null`" = SunOS &&
6714					 uname -r | grep '^5' >/dev/null; then
6715      X_LIBS="$X_LIBS -R $x_libraries"
6716    fi
6717  fi
6718
6719  if test -d "$x_libraries" && test ! -d "$x_includes"; then
6720    x_includes=`echo "$x_libraries" | sed s/lib/include/`
6721    { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5
6722$as_echo "Corrected X includes to $x_includes" >&6; }
6723    X_CFLAGS="$X_CFLAGS -I$x_includes"
6724  fi
6725
6726    X_CFLAGS="`echo $X_CFLAGS\  | sed 's%-I/usr/include %%'`"
6727    X_LIBS="`echo $X_LIBS\  | sed 's%-L/usr/lib %%'`"
6728    X_LIBS="`echo $X_LIBS\  | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6729
6730
6731        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5
6732$as_echo_n "checking if X11 header files can be found... " >&6; }
6733  cflags_save=$CFLAGS
6734  CFLAGS="$CFLAGS $X_CFLAGS"
6735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736/* end confdefs.h.  */
6737#include <X11/Xlib.h>
6738#include <X11/Intrinsic.h>
6739int
6740main ()
6741{
6742
6743  ;
6744  return 0;
6745}
6746_ACEOF
6747if ac_fn_c_try_compile "$LINENO"; then :
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6749$as_echo "yes" >&6; }
6750else
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752$as_echo "no" >&6; }; no_x=yes
6753fi
6754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755  CFLAGS=$cflags_save
6756
6757  if test "${no_x-no}" = yes; then
6758    with_x=no
6759  else
6760    $as_echo "#define HAVE_X11 1" >>confdefs.h
6761
6762    X_LIB="-lXt -lX11";
6763
6764
6765    ac_save_LDFLAGS="$LDFLAGS"
6766    LDFLAGS="-L$x_libraries $LDFLAGS"
6767
6768            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6769$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; }
6770if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then :
6771  $as_echo_n "(cached) " >&6
6772else
6773  ac_check_lib_save_LIBS=$LIBS
6774LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
6775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h.  */
6777
6778/* Override any GCC internal prototype to avoid an error.
6779   Use char because int might match the return type of a GCC
6780   builtin and then its argument prototype would still apply.  */
6781#ifdef __cplusplus
6782extern "C"
6783#endif
6784char _XdmcpAuthDoIt ();
6785int
6786main ()
6787{
6788return _XdmcpAuthDoIt ();
6789  ;
6790  return 0;
6791}
6792_ACEOF
6793if ac_fn_c_try_link "$LINENO"; then :
6794  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
6795else
6796  ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
6797fi
6798rm -f core conftest.err conftest.$ac_objext \
6799    conftest$ac_exeext conftest.$ac_ext
6800LIBS=$ac_check_lib_save_LIBS
6801fi
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6803$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; }
6804if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = x""yes; then :
6805  X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
6806fi
6807
6808
6809                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5
6810$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; }
6811if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then :
6812  $as_echo_n "(cached) " >&6
6813else
6814  ac_check_lib_save_LIBS=$LIBS
6815LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817/* end confdefs.h.  */
6818
6819/* Override any GCC internal prototype to avoid an error.
6820   Use char because int might match the return type of a GCC
6821   builtin and then its argument prototype would still apply.  */
6822#ifdef __cplusplus
6823extern "C"
6824#endif
6825char IceOpenConnection ();
6826int
6827main ()
6828{
6829return IceOpenConnection ();
6830  ;
6831  return 0;
6832}
6833_ACEOF
6834if ac_fn_c_try_link "$LINENO"; then :
6835  ac_cv_lib_ICE_IceOpenConnection=yes
6836else
6837  ac_cv_lib_ICE_IceOpenConnection=no
6838fi
6839rm -f core conftest.err conftest.$ac_objext \
6840    conftest$ac_exeext conftest.$ac_ext
6841LIBS=$ac_check_lib_save_LIBS
6842fi
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6844$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; }
6845if test "x$ac_cv_lib_ICE_IceOpenConnection" = x""yes; then :
6846  X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
6847fi
6848
6849
6850        LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
6851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5
6852$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; }
6853if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then :
6854  $as_echo_n "(cached) " >&6
6855else
6856  ac_check_lib_save_LIBS=$LIBS
6857LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
6858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859/* end confdefs.h.  */
6860
6861/* Override any GCC internal prototype to avoid an error.
6862   Use char because int might match the return type of a GCC
6863   builtin and then its argument prototype would still apply.  */
6864#ifdef __cplusplus
6865extern "C"
6866#endif
6867char XpmCreatePixmapFromData ();
6868int
6869main ()
6870{
6871return XpmCreatePixmapFromData ();
6872  ;
6873  return 0;
6874}
6875_ACEOF
6876if ac_fn_c_try_link "$LINENO"; then :
6877  ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
6878else
6879  ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
6880fi
6881rm -f core conftest.err conftest.$ac_objext \
6882    conftest$ac_exeext conftest.$ac_ext
6883LIBS=$ac_check_lib_save_LIBS
6884fi
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6886$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; }
6887if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = x""yes; then :
6888  X_PRE_LIBS="$X_PRE_LIBS -lXpm"
6889fi
6890
6891
6892        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5
6893$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; }
6894    cflags_save=$CFLAGS
6895    CFLAGS="$CFLAGS $X_CFLAGS -Werror"
6896    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897/* end confdefs.h.  */
6898#include <X11/Xlib.h>
6899int
6900main ()
6901{
6902
6903  ;
6904  return 0;
6905}
6906_ACEOF
6907if ac_fn_c_try_compile "$LINENO"; then :
6908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909$as_echo "no" >&6; }
6910else
6911  CFLAGS="$CFLAGS -Wno-implicit-int"
6912	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913/* end confdefs.h.  */
6914#include <X11/Xlib.h>
6915int
6916main ()
6917{
6918
6919  ;
6920  return 0;
6921}
6922_ACEOF
6923if ac_fn_c_try_compile "$LINENO"; then :
6924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6925$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int"
6926else
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
6928$as_echo "test failed" >&6; }
6929
6930fi
6931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932
6933fi
6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935    CFLAGS=$cflags_save
6936
6937    LDFLAGS="$ac_save_LDFLAGS"
6938
6939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5
6940$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
6941    if test "${ac_cv_small_wchar_t+set}" = set; then :
6942  $as_echo_n "(cached) " >&6
6943else
6944  if test "$cross_compiling" = yes; then :
6945  as_fn_error "failed to compile test program" "$LINENO" 5
6946else
6947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949
6950#include <X11/Xlib.h>
6951#if STDC_HEADERS
6952# include <stdlib.h>
6953# include <stddef.h>
6954#endif
6955		main()
6956		{
6957		  if (sizeof(wchar_t) <= 2)
6958		    exit(1);
6959		  exit(0);
6960		}
6961_ACEOF
6962if ac_fn_c_try_run "$LINENO"; then :
6963  ac_cv_small_wchar_t="no"
6964else
6965  ac_cv_small_wchar_t="yes"
6966fi
6967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6968  conftest.$ac_objext conftest.beam conftest.$ac_ext
6969fi
6970
6971fi
6972
6973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5
6974$as_echo "$ac_cv_small_wchar_t" >&6; }
6975    if test "x$ac_cv_small_wchar_t" = "xyes" ; then
6976      $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h
6977
6978    fi
6979
6980  fi
6981fi
6982
6983test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
6984
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5
6986$as_echo_n "checking --enable-gui argument... " >&6; }
6987# Check whether --enable-gui was given.
6988if test "${enable_gui+set}" = set; then :
6989  enableval=$enable_gui;
6990else
6991  enable_gui="auto"
6992fi
6993
6994
6995enable_gui_canon=`echo "_$enable_gui" | \
6996	sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
6997
6998SKIP_GTK2=YES
6999SKIP_GNOME=YES
7000SKIP_MOTIF=YES
7001SKIP_ATHENA=YES
7002SKIP_NEXTAW=YES
7003SKIP_PHOTON=YES
7004SKIP_CARBON=YES
7005GUITYPE=NONE
7006
7007if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
7008  SKIP_PHOTON=
7009  case "$enable_gui_canon" in
7010    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
7011$as_echo "no GUI support" >&6; }
7012		SKIP_PHOTON=YES ;;
7013    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
7014$as_echo "yes - automatic GUI support" >&6; } ;;
7015    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
7016$as_echo "auto - automatic GUI support" >&6; } ;;
7017    photon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5
7018$as_echo "Photon GUI support" >&6; } ;;
7019    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
7020$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
7021		SKIP_PHOTON=YES ;;
7022  esac
7023
7024elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7025  SKIP_CARBON=
7026  case "$enable_gui_canon" in
7027    no)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
7028$as_echo "no GUI support" >&6; }
7029		SKIP_CARBON=YES ;;
7030    yes|"")	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5
7031$as_echo "yes - automatic GUI support" >&6; } ;;
7032    auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5
7033$as_echo "auto - automatic GUI support" >&6; } ;;
7034    carbon)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5
7035$as_echo "Carbon GUI support" >&6; } ;;
7036    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
7037$as_echo "Sorry, $enable_gui GUI is not supported" >&6; }
7038		SKIP_CARBON=YES ;;
7039  esac
7040
7041else
7042
7043  case "$enable_gui_canon" in
7044    no|none)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5
7045$as_echo "no GUI support" >&6; } ;;
7046    yes|""|auto)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5
7047$as_echo "yes/auto - automatic GUI support" >&6; }
7048		SKIP_GTK2=
7049		SKIP_GNOME=
7050		SKIP_MOTIF=
7051		SKIP_ATHENA=
7052		SKIP_NEXTAW=
7053		SKIP_CARBON=;;
7054    gtk2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5
7055$as_echo "GTK+ 2.x GUI support" >&6; }
7056		SKIP_GTK2=;;
7057    gnome2)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5
7058$as_echo "GNOME 2.x GUI support" >&6; }
7059		SKIP_GNOME=
7060		SKIP_GTK2=;;
7061    motif)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5
7062$as_echo "Motif GUI support" >&6; }
7063		SKIP_MOTIF=;;
7064    athena)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5
7065$as_echo "Athena GUI support" >&6; }
7066		SKIP_ATHENA=;;
7067    nextaw)	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5
7068$as_echo "neXtaw GUI support" >&6; }
7069		SKIP_NEXTAW=;;
7070    *)		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5
7071$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;;
7072  esac
7073
7074fi
7075
7076if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7077				-a "$enable_gui_canon" != "gnome2"; then
7078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5
7079$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; }
7080  # Check whether --enable-gtk2-check was given.
7081if test "${enable_gtk2_check+set}" = set; then :
7082  enableval=$enable_gtk2_check;
7083else
7084  enable_gtk2_check="yes"
7085fi
7086
7087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5
7088$as_echo "$enable_gtk2_check" >&6; }
7089  if test "x$enable_gtk2_check" = "xno"; then
7090    SKIP_GTK2=YES
7091    SKIP_GNOME=YES
7092  fi
7093fi
7094
7095if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then
7096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5
7097$as_echo_n "checking whether or not to look for GNOME... " >&6; }
7098  # Check whether --enable-gnome-check was given.
7099if test "${enable_gnome_check+set}" = set; then :
7100  enableval=$enable_gnome_check;
7101else
7102  enable_gnome_check="no"
7103fi
7104
7105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5
7106$as_echo "$enable_gnome_check" >&6; }
7107  if test "x$enable_gnome_check" = "xno"; then
7108    SKIP_GNOME=YES
7109  fi
7110fi
7111
7112if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
7113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5
7114$as_echo_n "checking whether or not to look for Motif... " >&6; }
7115  # Check whether --enable-motif-check was given.
7116if test "${enable_motif_check+set}" = set; then :
7117  enableval=$enable_motif_check;
7118else
7119  enable_motif_check="yes"
7120fi
7121
7122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5
7123$as_echo "$enable_motif_check" >&6; }
7124  if test "x$enable_motif_check" = "xno"; then
7125    SKIP_MOTIF=YES
7126  fi
7127fi
7128
7129if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
7130  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5
7131$as_echo_n "checking whether or not to look for Athena... " >&6; }
7132  # Check whether --enable-athena-check was given.
7133if test "${enable_athena_check+set}" = set; then :
7134  enableval=$enable_athena_check;
7135else
7136  enable_athena_check="yes"
7137fi
7138
7139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5
7140$as_echo "$enable_athena_check" >&6; }
7141  if test "x$enable_athena_check" = "xno"; then
7142    SKIP_ATHENA=YES
7143  fi
7144fi
7145
7146if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
7147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5
7148$as_echo_n "checking whether or not to look for neXtaw... " >&6; }
7149  # Check whether --enable-nextaw-check was given.
7150if test "${enable_nextaw_check+set}" = set; then :
7151  enableval=$enable_nextaw_check;
7152else
7153  enable_nextaw_check="yes"
7154fi
7155
7156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5
7157$as_echo "$enable_nextaw_check" >&6; };
7158  if test "x$enable_nextaw_check" = "xno"; then
7159    SKIP_NEXTAW=YES
7160  fi
7161fi
7162
7163if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5
7165$as_echo_n "checking whether or not to look for Carbon... " >&6; }
7166  # Check whether --enable-carbon-check was given.
7167if test "${enable_carbon_check+set}" = set; then :
7168  enableval=$enable_carbon_check;
7169else
7170  enable_carbon_check="yes"
7171fi
7172
7173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5
7174$as_echo "$enable_carbon_check" >&6; };
7175  if test "x$enable_carbon_check" = "xno"; then
7176    SKIP_CARBON=YES
7177  fi
7178fi
7179
7180
7181if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
7182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5
7183$as_echo_n "checking for Carbon GUI... " >&6; }
7184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7185$as_echo "yes" >&6; };
7186  GUITYPE=CARBONGUI
7187  if test "$VIMNAME" = "vim"; then
7188    VIMNAME=Vim
7189  fi
7190
7191    if test x$prefix = xNONE; then
7192    prefix=/Applications
7193  fi
7194
7195    datadir='${prefix}/Vim.app/Contents/Resources'
7196
7197    SKIP_GTK2=YES;
7198  SKIP_GNOME=YES;
7199  SKIP_MOTIF=YES;
7200  SKIP_ATHENA=YES;
7201  SKIP_NEXTAW=YES;
7202  SKIP_PHOTON=YES;
7203  SKIP_CARBON=YES
7204fi
7205
7206
7207
7208
7209
7210
7211
7212
7213if test -z "$SKIP_GTK2"; then
7214
7215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5
7216$as_echo_n "checking --disable-gtktest argument... " >&6; }
7217  # Check whether --enable-gtktest was given.
7218if test "${enable_gtktest+set}" = set; then :
7219  enableval=$enable_gtktest;
7220else
7221  enable_gtktest=yes
7222fi
7223
7224  if test "x$enable_gtktest" = "xyes" ; then
7225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5
7226$as_echo "gtk test enabled" >&6; }
7227  else
7228    { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5
7229$as_echo "gtk test disabled" >&6; }
7230  fi
7231
7232  if test "X$PKG_CONFIG" = "X"; then
7233    # Extract the first word of "pkg-config", so it can be a program name with args.
7234set dummy pkg-config; ac_word=$2
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236$as_echo_n "checking for $ac_word... " >&6; }
7237if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  case $PKG_CONFIG in
7241  [\\/]* | ?:[\\/]*)
7242  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7243  ;;
7244  *)
7245  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7246for as_dir in $PATH
7247do
7248  IFS=$as_save_IFS
7249  test -z "$as_dir" && as_dir=.
7250    for ac_exec_ext in '' $ac_executable_extensions; do
7251  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7252    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7253    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254    break 2
7255  fi
7256done
7257  done
7258IFS=$as_save_IFS
7259
7260  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7261  ;;
7262esac
7263fi
7264PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7265if test -n "$PKG_CONFIG"; then
7266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7267$as_echo "$PKG_CONFIG" >&6; }
7268else
7269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270$as_echo "no" >&6; }
7271fi
7272
7273
7274  fi
7275
7276  if test "x$PKG_CONFIG" != "xno"; then
7277
7278  if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7279  {
7280    min_gtk_version=2.2.0
7281    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5
7282$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; }
7283    no_gtk=""
7284    if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7285	  && $PKG_CONFIG --exists gtk+-2.0; then
7286    {
7287                        GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
7288      GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
7289      GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7290      gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7291	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7292      gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7293	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7294      gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7295	     sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7296    }
7297    else
7298      no_gtk=yes
7299    fi
7300
7301    if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7302    {
7303      ac_save_CFLAGS="$CFLAGS"
7304      ac_save_LIBS="$LIBS"
7305      CFLAGS="$CFLAGS $GTK_CFLAGS"
7306      LIBS="$LIBS $GTK_LIBS"
7307
7308                        rm -f conf.gtktest
7309      if test "$cross_compiling" = yes; then :
7310  echo $ac_n "cross compiling; assumed OK... $ac_c"
7311else
7312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313/* end confdefs.h.  */
7314
7315#include <gtk/gtk.h>
7316#include <stdio.h>
7317#if STDC_HEADERS
7318# include <stdlib.h>
7319# include <stddef.h>
7320#endif
7321
7322int
7323main ()
7324{
7325int major, minor, micro;
7326char *tmp_version;
7327
7328system ("touch conf.gtktest");
7329
7330/* HP/UX 9 (%@#!) writes to sscanf strings */
7331tmp_version = g_strdup("$min_gtk_version");
7332if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7333   printf("%s, bad version string\n", "$min_gtk_version");
7334   exit(1);
7335 }
7336
7337if ((gtk_major_version > major) ||
7338    ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7339    ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7340				     (gtk_micro_version >= micro)))
7341{
7342    return 0;
7343}
7344return 1;
7345}
7346
7347_ACEOF
7348if ac_fn_c_try_run "$LINENO"; then :
7349
7350else
7351  no_gtk=yes
7352fi
7353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7354  conftest.$ac_objext conftest.beam conftest.$ac_ext
7355fi
7356
7357      CFLAGS="$ac_save_CFLAGS"
7358      LIBS="$ac_save_LIBS"
7359    }
7360    fi
7361    if test "x$no_gtk" = x ; then
7362      if test "x$enable_gtktest" = "xyes"; then
7363	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7364$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
7365      else
7366	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7367$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; }
7368      fi
7369      GUI_LIB_LOC="$GTK_LIBDIR"
7370		 GTK_LIBNAME="$GTK_LIBS"
7371		GUI_INC_LOC="$GTK_CFLAGS"
7372    else
7373    {
7374      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375$as_echo "no" >&6; }
7376      GTK_CFLAGS=""
7377      GTK_LIBS=""
7378      :
7379    }
7380    fi
7381  }
7382  else
7383    GTK_CFLAGS=""
7384    GTK_LIBS=""
7385    :
7386  fi
7387
7388
7389  rm -f conf.gtktest
7390
7391    if test "x$GTK_CFLAGS" != "x"; then
7392      SKIP_ATHENA=YES
7393      SKIP_NEXTAW=YES
7394      SKIP_MOTIF=YES
7395      GUITYPE=GTK
7396
7397    fi
7398  fi
7399  if test "x$GUITYPE" = "xGTK"; then
7400    if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7401	|| test "0$gtk_minor_version" -ge 2; then
7402      $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h
7403
7404    fi
7405                if test -z "$SKIP_GNOME"; then
7406    {
7407
7408
7409
7410
7411
7412
7413# Check whether --with-gnome-includes was given.
7414if test "${with_gnome_includes+set}" = set; then :
7415  withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval"
7416
7417fi
7418
7419
7420
7421# Check whether --with-gnome-libs was given.
7422if test "${with_gnome_libs+set}" = set; then :
7423  withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
7424
7425fi
7426
7427
7428
7429# Check whether --with-gnome was given.
7430if test "${with_gnome+set}" = set; then :
7431  withval=$with_gnome; if test x$withval = xyes; then
7432      want_gnome=yes
7433      have_gnome=yes
7434    else
7435      if test "x$withval" = xno; then
7436	want_gnome=no
7437      else
7438	want_gnome=yes
7439	LDFLAGS="$LDFLAGS -L$withval/lib"
7440	CFLAGS="$CFLAGS -I$withval/include"
7441	gnome_prefix=$withval/lib
7442      fi
7443    fi
7444else
7445  want_gnome=yes
7446fi
7447
7448
7449  if test "x$want_gnome" = xyes; then
7450  {
7451    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5
7452$as_echo_n "checking for libgnomeui-2.0... " >&6; }
7453    if $PKG_CONFIG --exists libgnomeui-2.0; then
7454      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7455$as_echo "yes" >&6; }
7456      GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7457      GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7458      GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
7459
7460                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5
7461$as_echo_n "checking for FreeBSD... " >&6; }
7462      if test "`(uname) 2>/dev/null`" = FreeBSD; then
7463	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7464$as_echo "yes" >&6; }
7465	GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
7466	GNOME_LIBS="$GNOME_LIBS -pthread"
7467      else
7468	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469$as_echo "no" >&6; }
7470      fi
7471      have_gnome=yes
7472    else
7473      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7474$as_echo "not found" >&6; }
7475      if test "x" = xfail; then
7476	as_fn_error "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5
7477      fi
7478    fi
7479  }
7480  fi
7481
7482      if test "x$have_gnome" = xyes ; then
7483	$as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h
7484
7485	GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7486	GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7487      fi
7488    }
7489    fi
7490  fi
7491fi
7492
7493
7494if test -z "$SKIP_MOTIF"; then
7495  gui_XXX="/usr/XXX/Motif* /usr/Motif*/XXX /usr/XXX /usr/shlib /usr/X11*/XXX /usr/XXX/X11* /usr/dt/XXX /local/Motif*/XXX /local/XXX/Motif* /usr/local/Motif*/XXX /usr/local/XXX/Motif* /usr/local/XXX /usr/local/X11*/XXX /usr/local/LessTif/Motif*/XXX $MOTIFHOME/XXX"
7496    GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7497
7498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5
7499$as_echo_n "checking for location of Motif GUI includes... " >&6; }
7500  gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7501  GUI_INC_LOC=
7502  for try in $gui_includes; do
7503    if test -f "$try/Xm/Xm.h"; then
7504      GUI_INC_LOC=$try
7505    fi
7506  done
7507  if test -n "$GUI_INC_LOC"; then
7508    if test "$GUI_INC_LOC" = /usr/include; then
7509      GUI_INC_LOC=
7510      { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
7511$as_echo "in default path" >&6; }
7512    else
7513      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5
7514$as_echo "$GUI_INC_LOC" >&6; }
7515    fi
7516  else
7517    { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7518$as_echo "<not found>" >&6; }
7519    SKIP_MOTIF=YES
7520  fi
7521fi
7522
7523
7524if test -z "$SKIP_MOTIF"; then
7525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5
7526$as_echo_n "checking --with-motif-lib argument... " >&6; }
7527
7528# Check whether --with-motif-lib was given.
7529if test "${with_motif_lib+set}" = set; then :
7530  withval=$with_motif_lib;  MOTIF_LIBNAME="${withval}"
7531fi
7532
7533
7534  if test -n "$MOTIF_LIBNAME"; then
7535    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5
7536$as_echo "$MOTIF_LIBNAME" >&6; }
7537    GUI_LIB_LOC=
7538  else
7539    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540$as_echo "no" >&6; }
7541
7542        GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
7543
7544    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5
7545$as_echo_n "checking for location of Motif GUI libs... " >&6; }
7546    gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC"
7547    GUI_LIB_LOC=
7548    for try in $gui_libs; do
7549      for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
7550	if test -f "$libtry"; then
7551	  GUI_LIB_LOC=$try
7552	fi
7553      done
7554    done
7555    if test -n "$GUI_LIB_LOC"; then
7556            if test "$GUI_LIB_LOC" = /usr/lib; then
7557	GUI_LIB_LOC=
7558	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5
7559$as_echo "in default path" >&6; }
7560      else
7561	if test -n "$GUI_LIB_LOC"; then
7562	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5
7563$as_echo "$GUI_LIB_LOC" >&6; }
7564	  if test "`(uname) 2>/dev/null`" = SunOS &&
7565					 uname -r | grep '^5' >/dev/null; then
7566	    GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
7567	  fi
7568	fi
7569      fi
7570      MOTIF_LIBNAME=-lXm
7571    else
7572      { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5
7573$as_echo "<not found>" >&6; }
7574      SKIP_MOTIF=YES
7575    fi
7576  fi
7577fi
7578
7579if test -z "$SKIP_MOTIF"; then
7580  SKIP_ATHENA=YES
7581  SKIP_NEXTAW=YES
7582  GUITYPE=MOTIF
7583
7584fi
7585
7586
7587GUI_X_LIBS=
7588
7589if test -z "$SKIP_ATHENA"; then
7590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5
7591$as_echo_n "checking if Athena header files can be found... " >&6; }
7592  cflags_save=$CFLAGS
7593  CFLAGS="$CFLAGS $X_CFLAGS"
7594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595/* end confdefs.h.  */
7596
7597#include <X11/Intrinsic.h>
7598#include <X11/Xaw/Paned.h>
7599int
7600main ()
7601{
7602
7603  ;
7604  return 0;
7605}
7606_ACEOF
7607if ac_fn_c_try_compile "$LINENO"; then :
7608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7609$as_echo "yes" >&6; }
7610else
7611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612$as_echo "no" >&6; }; SKIP_ATHENA=YES
7613fi
7614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615  CFLAGS=$cflags_save
7616fi
7617
7618if test -z "$SKIP_ATHENA"; then
7619  GUITYPE=ATHENA
7620fi
7621
7622if test -z "$SKIP_NEXTAW"; then
7623  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5
7624$as_echo_n "checking if neXtaw header files can be found... " >&6; }
7625  cflags_save=$CFLAGS
7626  CFLAGS="$CFLAGS $X_CFLAGS"
7627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h.  */
7629
7630#include <X11/Intrinsic.h>
7631#include <X11/neXtaw/Paned.h>
7632int
7633main ()
7634{
7635
7636  ;
7637  return 0;
7638}
7639_ACEOF
7640if ac_fn_c_try_compile "$LINENO"; then :
7641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7642$as_echo "yes" >&6; }
7643else
7644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645$as_echo "no" >&6; }; SKIP_NEXTAW=YES
7646fi
7647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648  CFLAGS=$cflags_save
7649fi
7650
7651if test -z "$SKIP_NEXTAW"; then
7652  GUITYPE=NEXTAW
7653fi
7654
7655if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
7656      if test -n "$GUI_INC_LOC"; then
7657    GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
7658  fi
7659  if test -n "$GUI_LIB_LOC"; then
7660    GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
7661  fi
7662
7663    ldflags_save=$LDFLAGS
7664  LDFLAGS="$X_LIBS $LDFLAGS"
7665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
7666$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
7667if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
7668  $as_echo_n "(cached) " >&6
7669else
7670  ac_check_lib_save_LIBS=$LIBS
7671LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673/* end confdefs.h.  */
7674
7675/* Override any GCC internal prototype to avoid an error.
7676   Use char because int might match the return type of a GCC
7677   builtin and then its argument prototype would still apply.  */
7678#ifdef __cplusplus
7679extern "C"
7680#endif
7681char XShapeQueryExtension ();
7682int
7683main ()
7684{
7685return XShapeQueryExtension ();
7686  ;
7687  return 0;
7688}
7689_ACEOF
7690if ac_fn_c_try_link "$LINENO"; then :
7691  ac_cv_lib_Xext_XShapeQueryExtension=yes
7692else
7693  ac_cv_lib_Xext_XShapeQueryExtension=no
7694fi
7695rm -f core conftest.err conftest.$ac_objext \
7696    conftest$ac_exeext conftest.$ac_ext
7697LIBS=$ac_check_lib_save_LIBS
7698fi
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7700$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
7701if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
7702  GUI_X_LIBS="-lXext"
7703fi
7704
7705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5
7706$as_echo_n "checking for wslen in -lw... " >&6; }
7707if test "${ac_cv_lib_w_wslen+set}" = set; then :
7708  $as_echo_n "(cached) " >&6
7709else
7710  ac_check_lib_save_LIBS=$LIBS
7711LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713/* end confdefs.h.  */
7714
7715/* Override any GCC internal prototype to avoid an error.
7716   Use char because int might match the return type of a GCC
7717   builtin and then its argument prototype would still apply.  */
7718#ifdef __cplusplus
7719extern "C"
7720#endif
7721char wslen ();
7722int
7723main ()
7724{
7725return wslen ();
7726  ;
7727  return 0;
7728}
7729_ACEOF
7730if ac_fn_c_try_link "$LINENO"; then :
7731  ac_cv_lib_w_wslen=yes
7732else
7733  ac_cv_lib_w_wslen=no
7734fi
7735rm -f core conftest.err conftest.$ac_objext \
7736    conftest$ac_exeext conftest.$ac_ext
7737LIBS=$ac_check_lib_save_LIBS
7738fi
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5
7740$as_echo "$ac_cv_lib_w_wslen" >&6; }
7741if test "x$ac_cv_lib_w_wslen" = x""yes; then :
7742  X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
7743fi
7744
7745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
7746$as_echo_n "checking for dlsym in -ldl... " >&6; }
7747if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
7748  $as_echo_n "(cached) " >&6
7749else
7750  ac_check_lib_save_LIBS=$LIBS
7751LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h.  */
7754
7755/* Override any GCC internal prototype to avoid an error.
7756   Use char because int might match the return type of a GCC
7757   builtin and then its argument prototype would still apply.  */
7758#ifdef __cplusplus
7759extern "C"
7760#endif
7761char dlsym ();
7762int
7763main ()
7764{
7765return dlsym ();
7766  ;
7767  return 0;
7768}
7769_ACEOF
7770if ac_fn_c_try_link "$LINENO"; then :
7771  ac_cv_lib_dl_dlsym=yes
7772else
7773  ac_cv_lib_dl_dlsym=no
7774fi
7775rm -f core conftest.err conftest.$ac_objext \
7776    conftest$ac_exeext conftest.$ac_ext
7777LIBS=$ac_check_lib_save_LIBS
7778fi
7779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
7780$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
7781if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
7782  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
7783fi
7784
7785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5
7786$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; }
7787if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  ac_check_lib_save_LIBS=$LIBS
7791LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793/* end confdefs.h.  */
7794
7795/* Override any GCC internal prototype to avoid an error.
7796   Use char because int might match the return type of a GCC
7797   builtin and then its argument prototype would still apply.  */
7798#ifdef __cplusplus
7799extern "C"
7800#endif
7801char XmuCreateStippledPixmap ();
7802int
7803main ()
7804{
7805return XmuCreateStippledPixmap ();
7806  ;
7807  return 0;
7808}
7809_ACEOF
7810if ac_fn_c_try_link "$LINENO"; then :
7811  ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
7812else
7813  ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
7814fi
7815rm -f core conftest.err conftest.$ac_objext \
7816    conftest$ac_exeext conftest.$ac_ext
7817LIBS=$ac_check_lib_save_LIBS
7818fi
7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
7820$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; }
7821if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = x""yes; then :
7822  GUI_X_LIBS="-lXmu $GUI_X_LIBS"
7823fi
7824
7825  if test -z "$SKIP_MOTIF"; then
7826    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5
7827$as_echo_n "checking for XpEndJob in -lXp... " >&6; }
7828if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then :
7829  $as_echo_n "(cached) " >&6
7830else
7831  ac_check_lib_save_LIBS=$LIBS
7832LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
7833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834/* end confdefs.h.  */
7835
7836/* Override any GCC internal prototype to avoid an error.
7837   Use char because int might match the return type of a GCC
7838   builtin and then its argument prototype would still apply.  */
7839#ifdef __cplusplus
7840extern "C"
7841#endif
7842char XpEndJob ();
7843int
7844main ()
7845{
7846return XpEndJob ();
7847  ;
7848  return 0;
7849}
7850_ACEOF
7851if ac_fn_c_try_link "$LINENO"; then :
7852  ac_cv_lib_Xp_XpEndJob=yes
7853else
7854  ac_cv_lib_Xp_XpEndJob=no
7855fi
7856rm -f core conftest.err conftest.$ac_objext \
7857    conftest$ac_exeext conftest.$ac_ext
7858LIBS=$ac_check_lib_save_LIBS
7859fi
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5
7861$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; }
7862if test "x$ac_cv_lib_Xp_XpEndJob" = x""yes; then :
7863  GUI_X_LIBS="-lXp $GUI_X_LIBS"
7864fi
7865
7866  fi
7867  LDFLAGS=$ldflags_save
7868
7869    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5
7870$as_echo_n "checking for extra X11 defines... " >&6; }
7871  NARROW_PROTO=
7872  rm -fr conftestdir
7873  if mkdir conftestdir; then
7874    cd conftestdir
7875    cat > Imakefile <<'EOF'
7876acfindx:
7877	@echo 'NARROW_PROTO="${PROTO_DEFINES}"'
7878EOF
7879    if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7880      eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7881    fi
7882    cd ..
7883    rm -fr conftestdir
7884  fi
7885  if test -z "$NARROW_PROTO"; then
7886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887$as_echo "no" >&6; }
7888  else
7889    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5
7890$as_echo "$NARROW_PROTO" >&6; }
7891  fi
7892
7893fi
7894
7895if test "$enable_xsmp" = "yes"; then
7896  cppflags_save=$CPPFLAGS
7897  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7898  for ac_header in X11/SM/SMlib.h
7899do :
7900  ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
7901if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
7902  cat >>confdefs.h <<_ACEOF
7903#define HAVE_X11_SM_SMLIB_H 1
7904_ACEOF
7905
7906fi
7907
7908done
7909
7910  CPPFLAGS=$cppflags_save
7911fi
7912
7913
7914if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2"; then
7915    cppflags_save=$CPPFLAGS
7916  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7917  for ac_header in X11/xpm.h X11/Sunkeysym.h
7918do :
7919  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7920ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7921eval as_val=\$$as_ac_Header
7922   if test "x$as_val" = x""yes; then :
7923  cat >>confdefs.h <<_ACEOF
7924#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7925_ACEOF
7926
7927fi
7928
7929done
7930
7931
7932    if test ! "$enable_xim" = "no"; then
7933    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5
7934$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; }
7935    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936/* end confdefs.h.  */
7937#include <X11/Xlib.h>
7938_ACEOF
7939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7940  $EGREP "XIMText" >/dev/null 2>&1; then :
7941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7942$as_echo "yes" >&6; }
7943else
7944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5
7945$as_echo "no; xim has been disabled" >&6; }; enable_xim = "no"
7946fi
7947rm -f conftest*
7948
7949  fi
7950  CPPFLAGS=$cppflags_save
7951
7952    if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
7953		-a "x$GUITYPE" != "xNONE" ; then
7954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5
7955$as_echo "X GUI selected; xim has been enabled" >&6; }
7956    enable_xim="yes"
7957  fi
7958fi
7959
7960if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
7961  cppflags_save=$CPPFLAGS
7962  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5
7964$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; }
7965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966/* end confdefs.h.  */
7967
7968#include <X11/Intrinsic.h>
7969#include <X11/Xmu/Editres.h>
7970int
7971main ()
7972{
7973int i; i = 0;
7974  ;
7975  return 0;
7976}
7977_ACEOF
7978if ac_fn_c_try_compile "$LINENO"; then :
7979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7980$as_echo "yes" >&6; }
7981		      $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h
7982
7983else
7984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
7986fi
7987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988  CPPFLAGS=$cppflags_save
7989fi
7990
7991if test -z "$SKIP_MOTIF"; then
7992  cppflags_save=$CPPFLAGS
7993  CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7994  for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
7995		   Xm/UnhighlightT.h Xm/Notebook.h
7996do :
7997  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7998ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7999eval as_val=\$$as_ac_Header
8000   if test "x$as_val" = x""yes; then :
8001  cat >>confdefs.h <<_ACEOF
8002#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8003_ACEOF
8004
8005fi
8006
8007done
8008
8009
8010  if test $ac_cv_header_Xm_XpmP_h = yes; then
8011        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
8012$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; }
8013    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014/* end confdefs.h.  */
8015#include <Xm/XpmP.h>
8016int
8017main ()
8018{
8019XpmAttributes_21 attr;
8020  ;
8021  return 0;
8022}
8023_ACEOF
8024if ac_fn_c_try_compile "$LINENO"; then :
8025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8026$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h
8027
8028else
8029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
8031
8032
8033fi
8034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035  else
8036    $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h
8037
8038  fi
8039  CPPFLAGS=$cppflags_save
8040fi
8041
8042if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
8043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5
8044$as_echo "no GUI selected; xim has been disabled" >&6; }
8045  enable_xim="no"
8046fi
8047if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
8048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5
8049$as_echo "no GUI selected; fontset has been disabled" >&6; }
8050  enable_fontset="no"
8051fi
8052if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then
8053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
8054$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; }
8055  enable_fontset="no"
8056fi
8057
8058if test -z "$SKIP_PHOTON"; then
8059  GUITYPE=PHOTONGUI
8060fi
8061
8062
8063
8064
8065
8066
8067if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
8068  as_fn_error "cannot use workshop without Motif" "$LINENO" 5
8069fi
8070
8071if test "$enable_xim" = "yes"; then
8072  $as_echo "#define FEAT_XIM 1" >>confdefs.h
8073
8074fi
8075if test "$enable_fontset" = "yes"; then
8076  $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h
8077
8078fi
8079
8080
8081
8082
8083if test "$enable_hangulinput" = "yes"; then
8084  if test "x$GUITYPE" = "xNONE"; then
8085    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5
8086$as_echo "no GUI selected; hangul input has been disabled" >&6; }
8087    enable_hangulinput=no
8088  else
8089    $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h
8090
8091    HANGULIN_SRC=hangulin.c
8092
8093    HANGULIN_OBJ=objects/hangulin.o
8094
8095  fi
8096fi
8097
8098
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5
8100$as_echo_n "checking whether toupper is broken... " >&6; }
8101if test "${vim_cv_toupper_broken+set}" = set; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104
8105    if test "$cross_compiling" = yes; then :
8106
8107    as_fn_error "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5
8108
8109else
8110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h.  */
8112
8113#include "confdefs.h"
8114#include <ctype.h>
8115#if STDC_HEADERS
8116# include <stdlib.h>
8117# include <stddef.h>
8118#endif
8119main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
8120
8121_ACEOF
8122if ac_fn_c_try_run "$LINENO"; then :
8123
8124    vim_cv_toupper_broken=yes
8125
8126else
8127
8128    vim_cv_toupper_broken=no
8129
8130fi
8131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8132  conftest.$ac_objext conftest.beam conftest.$ac_ext
8133fi
8134
8135fi
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5
8137$as_echo "$vim_cv_toupper_broken" >&6; }
8138
8139if test "x$vim_cv_toupper_broken" = "xyes" ; then
8140  $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h
8141
8142fi
8143
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5
8145$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; }
8146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147/* end confdefs.h.  */
8148#include <stdio.h>
8149int
8150main ()
8151{
8152printf("(" __DATE__ " " __TIME__ ")");
8153  ;
8154  return 0;
8155}
8156_ACEOF
8157if ac_fn_c_try_compile "$LINENO"; then :
8158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8159$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h
8160
8161else
8162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163$as_echo "no" >&6; }
8164fi
8165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5
8168$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; }
8169cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170/* end confdefs.h.  */
8171#include <stdio.h>
8172int
8173main ()
8174{
8175int x __attribute__((unused));
8176  ;
8177  return 0;
8178}
8179_ACEOF
8180if ac_fn_c_try_compile "$LINENO"; then :
8181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8182$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
8183
8184else
8185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186$as_echo "no" >&6; }
8187fi
8188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189
8190ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
8191if test "x$ac_cv_header_elf_h" = x""yes; then :
8192  HAS_ELF=1
8193fi
8194
8195
8196if test "$HAS_ELF" = 1; then
8197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5
8198$as_echo_n "checking for main in -lelf... " >&6; }
8199if test "${ac_cv_lib_elf_main+set}" = set; then :
8200  $as_echo_n "(cached) " >&6
8201else
8202  ac_check_lib_save_LIBS=$LIBS
8203LIBS="-lelf  $LIBS"
8204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205/* end confdefs.h.  */
8206
8207
8208int
8209main ()
8210{
8211return main ();
8212  ;
8213  return 0;
8214}
8215_ACEOF
8216if ac_fn_c_try_link "$LINENO"; then :
8217  ac_cv_lib_elf_main=yes
8218else
8219  ac_cv_lib_elf_main=no
8220fi
8221rm -f core conftest.err conftest.$ac_objext \
8222    conftest$ac_exeext conftest.$ac_ext
8223LIBS=$ac_check_lib_save_LIBS
8224fi
8225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5
8226$as_echo "$ac_cv_lib_elf_main" >&6; }
8227if test "x$ac_cv_lib_elf_main" = x""yes; then :
8228  cat >>confdefs.h <<_ACEOF
8229#define HAVE_LIBELF 1
8230_ACEOF
8231
8232  LIBS="-lelf $LIBS"
8233
8234fi
8235
8236fi
8237
8238ac_header_dirent=no
8239for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8240  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8242$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8247/* end confdefs.h.  */
8248#include <sys/types.h>
8249#include <$ac_hdr>
8250
8251int
8252main ()
8253{
8254if ((DIR *) 0)
8255return 0;
8256  ;
8257  return 0;
8258}
8259_ACEOF
8260if ac_fn_c_try_compile "$LINENO"; then :
8261  eval "$as_ac_Header=yes"
8262else
8263  eval "$as_ac_Header=no"
8264fi
8265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266fi
8267eval ac_res=\$$as_ac_Header
8268	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8269$as_echo "$ac_res" >&6; }
8270eval as_val=\$$as_ac_Header
8271   if test "x$as_val" = x""yes; then :
8272  cat >>confdefs.h <<_ACEOF
8273#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8274_ACEOF
8275
8276ac_header_dirent=$ac_hdr; break
8277fi
8278
8279done
8280# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8281if test $ac_header_dirent = dirent.h; then
8282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8283$as_echo_n "checking for library containing opendir... " >&6; }
8284if test "${ac_cv_search_opendir+set}" = set; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  ac_func_search_save_LIBS=$LIBS
8288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h.  */
8290
8291/* Override any GCC internal prototype to avoid an error.
8292   Use char because int might match the return type of a GCC
8293   builtin and then its argument prototype would still apply.  */
8294#ifdef __cplusplus
8295extern "C"
8296#endif
8297char opendir ();
8298int
8299main ()
8300{
8301return opendir ();
8302  ;
8303  return 0;
8304}
8305_ACEOF
8306for ac_lib in '' dir; do
8307  if test -z "$ac_lib"; then
8308    ac_res="none required"
8309  else
8310    ac_res=-l$ac_lib
8311    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8312  fi
8313  if ac_fn_c_try_link "$LINENO"; then :
8314  ac_cv_search_opendir=$ac_res
8315fi
8316rm -f core conftest.err conftest.$ac_objext \
8317    conftest$ac_exeext
8318  if test "${ac_cv_search_opendir+set}" = set; then :
8319  break
8320fi
8321done
8322if test "${ac_cv_search_opendir+set}" = set; then :
8323
8324else
8325  ac_cv_search_opendir=no
8326fi
8327rm conftest.$ac_ext
8328LIBS=$ac_func_search_save_LIBS
8329fi
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8331$as_echo "$ac_cv_search_opendir" >&6; }
8332ac_res=$ac_cv_search_opendir
8333if test "$ac_res" != no; then :
8334  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8335
8336fi
8337
8338else
8339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8340$as_echo_n "checking for library containing opendir... " >&6; }
8341if test "${ac_cv_search_opendir+set}" = set; then :
8342  $as_echo_n "(cached) " >&6
8343else
8344  ac_func_search_save_LIBS=$LIBS
8345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346/* end confdefs.h.  */
8347
8348/* Override any GCC internal prototype to avoid an error.
8349   Use char because int might match the return type of a GCC
8350   builtin and then its argument prototype would still apply.  */
8351#ifdef __cplusplus
8352extern "C"
8353#endif
8354char opendir ();
8355int
8356main ()
8357{
8358return opendir ();
8359  ;
8360  return 0;
8361}
8362_ACEOF
8363for ac_lib in '' x; do
8364  if test -z "$ac_lib"; then
8365    ac_res="none required"
8366  else
8367    ac_res=-l$ac_lib
8368    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8369  fi
8370  if ac_fn_c_try_link "$LINENO"; then :
8371  ac_cv_search_opendir=$ac_res
8372fi
8373rm -f core conftest.err conftest.$ac_objext \
8374    conftest$ac_exeext
8375  if test "${ac_cv_search_opendir+set}" = set; then :
8376  break
8377fi
8378done
8379if test "${ac_cv_search_opendir+set}" = set; then :
8380
8381else
8382  ac_cv_search_opendir=no
8383fi
8384rm conftest.$ac_ext
8385LIBS=$ac_func_search_save_LIBS
8386fi
8387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8388$as_echo "$ac_cv_search_opendir" >&6; }
8389ac_res=$ac_cv_search_opendir
8390if test "$ac_res" != no; then :
8391  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8392
8393fi
8394
8395fi
8396
8397
8398if test $ac_cv_header_sys_wait_h = no; then
8399  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5
8400$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; }
8401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402/* end confdefs.h.  */
8403#include <sys/wait.h>
8404int
8405main ()
8406{
8407union wait xx, yy; xx = yy
8408  ;
8409  return 0;
8410}
8411_ACEOF
8412if ac_fn_c_try_compile "$LINENO"; then :
8413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8414$as_echo "yes" >&6; }
8415			$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8416
8417			$as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
8418
8419else
8420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421$as_echo "no" >&6; }
8422fi
8423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424fi
8425
8426for ac_header in stdarg.h stdint.h stdlib.h string.h \
8427	sys/select.h sys/utsname.h termcap.h fcntl.h \
8428	sgtty.h sys/ioctl.h sys/time.h sys/types.h \
8429	termio.h iconv.h inttypes.h langinfo.h math.h \
8430	unistd.h stropts.h errno.h sys/resource.h \
8431	sys/systeminfo.h locale.h sys/stream.h termios.h \
8432	libc.h sys/statfs.h poll.h sys/poll.h pwd.h \
8433	utime.h sys/param.h libintl.h libgen.h \
8434	util/debug.h util/msg18n.h frame.h sys/acl.h \
8435	sys/access.h sys/sysinfo.h wchar.h wctype.h
8436do :
8437  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8438ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8439eval as_val=\$$as_ac_Header
8440   if test "x$as_val" = x""yes; then :
8441  cat >>confdefs.h <<_ACEOF
8442#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8443_ACEOF
8444
8445fi
8446
8447done
8448
8449
8450for ac_header in sys/ptem.h
8451do :
8452  ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H
8453#  include <sys/stream.h>
8454#endif
8455"
8456if test "x$ac_cv_header_sys_ptem_h" = x""yes; then :
8457  cat >>confdefs.h <<_ACEOF
8458#define HAVE_SYS_PTEM_H 1
8459_ACEOF
8460
8461fi
8462
8463done
8464
8465
8466for ac_header in sys/sysctl.h
8467do :
8468  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H
8469#  include <sys/param.h>
8470#endif
8471"
8472if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
8473  cat >>confdefs.h <<_ACEOF
8474#define HAVE_SYS_SYSCTL_H 1
8475_ACEOF
8476
8477fi
8478
8479done
8480
8481
8482
8483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5
8484$as_echo_n "checking for pthread_np.h... " >&6; }
8485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486/* end confdefs.h.  */
8487
8488#include <pthread.h>
8489#include <pthread_np.h>
8490int
8491main ()
8492{
8493int i; i = 0;
8494  ;
8495  return 0;
8496}
8497_ACEOF
8498if ac_fn_c_try_compile "$LINENO"; then :
8499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8500$as_echo "yes" >&6; }
8501		      $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h
8502
8503else
8504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505$as_echo "no" >&6; }
8506fi
8507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508
8509for ac_header in strings.h
8510do :
8511  ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
8512if test "x$ac_cv_header_strings_h" = x""yes; then :
8513  cat >>confdefs.h <<_ACEOF
8514#define HAVE_STRINGS_H 1
8515_ACEOF
8516
8517fi
8518
8519done
8520
8521if test "x$MACOSX" = "xyes"; then
8522    $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
8523
8524else
8525
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5
8527$as_echo_n "checking if strings.h can be included after string.h... " >&6; }
8528cppflags_save=$CPPFLAGS
8529CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531/* end confdefs.h.  */
8532
8533#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
8534# define _NO_PROTO	/* like in os_unix.h, causes conflict for AIX (Winn) */
8535			/* but don't do it on AIX 5.1 (Uribarri) */
8536#endif
8537#ifdef HAVE_XM_XM_H
8538# include <Xm/Xm.h>	/* This breaks it for HP-UX 11 (Squassabia) */
8539#endif
8540#ifdef HAVE_STRING_H
8541# include <string.h>
8542#endif
8543#if defined(HAVE_STRINGS_H)
8544# include <strings.h>
8545#endif
8546
8547int
8548main ()
8549{
8550int i; i = 0;
8551  ;
8552  return 0;
8553}
8554_ACEOF
8555if ac_fn_c_try_compile "$LINENO"; then :
8556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8557$as_echo "yes" >&6; }
8558else
8559  $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h
8560
8561		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562$as_echo "no" >&6; }
8563fi
8564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565CPPFLAGS=$cppflags_save
8566fi
8567
8568if test $ac_cv_c_compiler_gnu = yes; then
8569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
8570$as_echo_n "checking whether $CC needs -traditional... " >&6; }
8571if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
8572  $as_echo_n "(cached) " >&6
8573else
8574    ac_pattern="Autoconf.*'x'"
8575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576/* end confdefs.h.  */
8577#include <sgtty.h>
8578Autoconf TIOCGETP
8579_ACEOF
8580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8581  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
8582  ac_cv_prog_gcc_traditional=yes
8583else
8584  ac_cv_prog_gcc_traditional=no
8585fi
8586rm -f conftest*
8587
8588
8589  if test $ac_cv_prog_gcc_traditional = no; then
8590    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591/* end confdefs.h.  */
8592#include <termio.h>
8593Autoconf TCGETA
8594_ACEOF
8595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8596  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
8597  ac_cv_prog_gcc_traditional=yes
8598fi
8599rm -f conftest*
8600
8601  fi
8602fi
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
8604$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
8605  if test $ac_cv_prog_gcc_traditional = yes; then
8606    CC="$CC -traditional"
8607  fi
8608fi
8609
8610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8611$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8612if test "${ac_cv_c_const+set}" = set; then :
8613  $as_echo_n "(cached) " >&6
8614else
8615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616/* end confdefs.h.  */
8617
8618int
8619main ()
8620{
8621/* FIXME: Include the comments suggested by Paul. */
8622#ifndef __cplusplus
8623  /* Ultrix mips cc rejects this.  */
8624  typedef int charset[2];
8625  const charset cs;
8626  /* SunOS 4.1.1 cc rejects this.  */
8627  char const *const *pcpcc;
8628  char **ppc;
8629  /* NEC SVR4.0.2 mips cc rejects this.  */
8630  struct point {int x, y;};
8631  static struct point const zero = {0,0};
8632  /* AIX XL C 1.02.0.0 rejects this.
8633     It does not let you subtract one const X* pointer from another in
8634     an arm of an if-expression whose if-part is not a constant
8635     expression */
8636  const char *g = "string";
8637  pcpcc = &g + (g ? g-g : 0);
8638  /* HPUX 7.0 cc rejects these. */
8639  ++pcpcc;
8640  ppc = (char**) pcpcc;
8641  pcpcc = (char const *const *) ppc;
8642  { /* SCO 3.2v4 cc rejects this.  */
8643    char *t;
8644    char const *s = 0 ? (char *) 0 : (char const *) 0;
8645
8646    *t++ = 0;
8647    if (s) return 0;
8648  }
8649  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8650    int x[] = {25, 17};
8651    const int *foo = &x[0];
8652    ++foo;
8653  }
8654  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8655    typedef const int *iptr;
8656    iptr p = 0;
8657    ++p;
8658  }
8659  { /* AIX XL C 1.02.0.0 rejects this saying
8660       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8661    struct s { int j; const int *ap[3]; };
8662    struct s *b; b->j = 5;
8663  }
8664  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8665    const int foo = 10;
8666    if (!foo) return 0;
8667  }
8668  return !cs[0] && !zero.x;
8669#endif
8670
8671  ;
8672  return 0;
8673}
8674_ACEOF
8675if ac_fn_c_try_compile "$LINENO"; then :
8676  ac_cv_c_const=yes
8677else
8678  ac_cv_c_const=no
8679fi
8680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681fi
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8683$as_echo "$ac_cv_c_const" >&6; }
8684if test $ac_cv_c_const = no; then
8685
8686$as_echo "#define const /**/" >>confdefs.h
8687
8688fi
8689
8690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8691$as_echo_n "checking for working volatile... " >&6; }
8692if test "${ac_cv_c_volatile+set}" = set; then :
8693  $as_echo_n "(cached) " >&6
8694else
8695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696/* end confdefs.h.  */
8697
8698int
8699main ()
8700{
8701
8702volatile int x;
8703int * volatile y = (int *) 0;
8704return !x && !y;
8705  ;
8706  return 0;
8707}
8708_ACEOF
8709if ac_fn_c_try_compile "$LINENO"; then :
8710  ac_cv_c_volatile=yes
8711else
8712  ac_cv_c_volatile=no
8713fi
8714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715fi
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8717$as_echo "$ac_cv_c_volatile" >&6; }
8718if test $ac_cv_c_volatile = no; then
8719
8720$as_echo "#define volatile /**/" >>confdefs.h
8721
8722fi
8723
8724ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8725if test "x$ac_cv_type_mode_t" = x""yes; then :
8726
8727else
8728
8729cat >>confdefs.h <<_ACEOF
8730#define mode_t int
8731_ACEOF
8732
8733fi
8734
8735ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
8736if test "x$ac_cv_type_off_t" = x""yes; then :
8737
8738else
8739
8740cat >>confdefs.h <<_ACEOF
8741#define off_t long int
8742_ACEOF
8743
8744fi
8745
8746ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8747if test "x$ac_cv_type_pid_t" = x""yes; then :
8748
8749else
8750
8751cat >>confdefs.h <<_ACEOF
8752#define pid_t int
8753_ACEOF
8754
8755fi
8756
8757ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8758if test "x$ac_cv_type_size_t" = x""yes; then :
8759
8760else
8761
8762cat >>confdefs.h <<_ACEOF
8763#define size_t unsigned int
8764_ACEOF
8765
8766fi
8767
8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8769$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8770if test "${ac_cv_type_uid_t+set}" = set; then :
8771  $as_echo_n "(cached) " >&6
8772else
8773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8774/* end confdefs.h.  */
8775#include <sys/types.h>
8776
8777_ACEOF
8778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8779  $EGREP "uid_t" >/dev/null 2>&1; then :
8780  ac_cv_type_uid_t=yes
8781else
8782  ac_cv_type_uid_t=no
8783fi
8784rm -f conftest*
8785
8786fi
8787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8788$as_echo "$ac_cv_type_uid_t" >&6; }
8789if test $ac_cv_type_uid_t = no; then
8790
8791$as_echo "#define uid_t int" >>confdefs.h
8792
8793
8794$as_echo "#define gid_t int" >>confdefs.h
8795
8796fi
8797
8798ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
8799case $ac_cv_c_uint32_t in #(
8800  no|yes) ;; #(
8801  *)
8802
8803$as_echo "#define _UINT32_T 1" >>confdefs.h
8804
8805
8806cat >>confdefs.h <<_ACEOF
8807#define uint32_t $ac_cv_c_uint32_t
8808_ACEOF
8809;;
8810  esac
8811
8812
8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8814$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8815if test "${ac_cv_header_time+set}" = set; then :
8816  $as_echo_n "(cached) " >&6
8817else
8818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819/* end confdefs.h.  */
8820#include <sys/types.h>
8821#include <sys/time.h>
8822#include <time.h>
8823
8824int
8825main ()
8826{
8827if ((struct tm *) 0)
8828return 0;
8829  ;
8830  return 0;
8831}
8832_ACEOF
8833if ac_fn_c_try_compile "$LINENO"; then :
8834  ac_cv_header_time=yes
8835else
8836  ac_cv_header_time=no
8837fi
8838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839fi
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8841$as_echo "$ac_cv_header_time" >&6; }
8842if test $ac_cv_header_time = yes; then
8843
8844$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8845
8846fi
8847
8848ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
8849if test "x$ac_cv_type_ino_t" = x""yes; then :
8850
8851else
8852
8853cat >>confdefs.h <<_ACEOF
8854#define ino_t long
8855_ACEOF
8856
8857fi
8858
8859ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
8860if test "x$ac_cv_type_dev_t" = x""yes; then :
8861
8862else
8863
8864cat >>confdefs.h <<_ACEOF
8865#define dev_t unsigned
8866_ACEOF
8867
8868fi
8869
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8871$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8872if test "${ac_cv_c_bigendian+set}" = set; then :
8873  $as_echo_n "(cached) " >&6
8874else
8875  ac_cv_c_bigendian=unknown
8876    # See if we're dealing with a universal compiler.
8877    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878/* end confdefs.h.  */
8879#ifndef __APPLE_CC__
8880	       not a universal capable compiler
8881	     #endif
8882	     typedef int dummy;
8883
8884_ACEOF
8885if ac_fn_c_try_compile "$LINENO"; then :
8886
8887	# Check for potential -arch flags.  It is not universal unless
8888	# there are at least two -arch flags with different values.
8889	ac_arch=
8890	ac_prev=
8891	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8892	 if test -n "$ac_prev"; then
8893	   case $ac_word in
8894	     i?86 | x86_64 | ppc | ppc64)
8895	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8896		 ac_arch=$ac_word
8897	       else
8898		 ac_cv_c_bigendian=universal
8899		 break
8900	       fi
8901	       ;;
8902	   esac
8903	   ac_prev=
8904	 elif test "x$ac_word" = "x-arch"; then
8905	   ac_prev=arch
8906	 fi
8907       done
8908fi
8909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910    if test $ac_cv_c_bigendian = unknown; then
8911      # See if sys/param.h defines the BYTE_ORDER macro.
8912      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h.  */
8914#include <sys/types.h>
8915	     #include <sys/param.h>
8916
8917int
8918main ()
8919{
8920#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8921		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8922		     && LITTLE_ENDIAN)
8923	      bogus endian macros
8924	     #endif
8925
8926  ;
8927  return 0;
8928}
8929_ACEOF
8930if ac_fn_c_try_compile "$LINENO"; then :
8931  # It does; now see whether it defined to BIG_ENDIAN or not.
8932	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933/* end confdefs.h.  */
8934#include <sys/types.h>
8935		#include <sys/param.h>
8936
8937int
8938main ()
8939{
8940#if BYTE_ORDER != BIG_ENDIAN
8941		 not big endian
8942		#endif
8943
8944  ;
8945  return 0;
8946}
8947_ACEOF
8948if ac_fn_c_try_compile "$LINENO"; then :
8949  ac_cv_c_bigendian=yes
8950else
8951  ac_cv_c_bigendian=no
8952fi
8953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8954fi
8955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8956    fi
8957    if test $ac_cv_c_bigendian = unknown; then
8958      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8959      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960/* end confdefs.h.  */
8961#include <limits.h>
8962
8963int
8964main ()
8965{
8966#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8967	      bogus endian macros
8968	     #endif
8969
8970  ;
8971  return 0;
8972}
8973_ACEOF
8974if ac_fn_c_try_compile "$LINENO"; then :
8975  # It does; now see whether it defined to _BIG_ENDIAN or not.
8976	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978#include <limits.h>
8979
8980int
8981main ()
8982{
8983#ifndef _BIG_ENDIAN
8984		 not big endian
8985		#endif
8986
8987  ;
8988  return 0;
8989}
8990_ACEOF
8991if ac_fn_c_try_compile "$LINENO"; then :
8992  ac_cv_c_bigendian=yes
8993else
8994  ac_cv_c_bigendian=no
8995fi
8996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997fi
8998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999    fi
9000    if test $ac_cv_c_bigendian = unknown; then
9001      # Compile a test program.
9002      if test "$cross_compiling" = yes; then :
9003  # Try to guess by grepping values from an object file.
9004	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005/* end confdefs.h.  */
9006short int ascii_mm[] =
9007		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9008		short int ascii_ii[] =
9009		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9010		int use_ascii (int i) {
9011		  return ascii_mm[i] + ascii_ii[i];
9012		}
9013		short int ebcdic_ii[] =
9014		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9015		short int ebcdic_mm[] =
9016		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9017		int use_ebcdic (int i) {
9018		  return ebcdic_mm[i] + ebcdic_ii[i];
9019		}
9020		extern int foo;
9021
9022int
9023main ()
9024{
9025return use_ascii (foo) == use_ebcdic (foo);
9026  ;
9027  return 0;
9028}
9029_ACEOF
9030if ac_fn_c_try_compile "$LINENO"; then :
9031  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9032	      ac_cv_c_bigendian=yes
9033	    fi
9034	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9035	      if test "$ac_cv_c_bigendian" = unknown; then
9036		ac_cv_c_bigendian=no
9037	      else
9038		# finding both strings is unlikely to happen, but who knows?
9039		ac_cv_c_bigendian=unknown
9040	      fi
9041	    fi
9042fi
9043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044else
9045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046/* end confdefs.h.  */
9047$ac_includes_default
9048int
9049main ()
9050{
9051
9052	     /* Are we little or big endian?  From Harbison&Steele.  */
9053	     union
9054	     {
9055	       long int l;
9056	       char c[sizeof (long int)];
9057	     } u;
9058	     u.l = 1;
9059	     return u.c[sizeof (long int) - 1] == 1;
9060
9061  ;
9062  return 0;
9063}
9064_ACEOF
9065if ac_fn_c_try_run "$LINENO"; then :
9066  ac_cv_c_bigendian=no
9067else
9068  ac_cv_c_bigendian=yes
9069fi
9070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9071  conftest.$ac_objext conftest.beam conftest.$ac_ext
9072fi
9073
9074    fi
9075fi
9076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9077$as_echo "$ac_cv_c_bigendian" >&6; }
9078 case $ac_cv_c_bigendian in #(
9079   yes)
9080     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9081;; #(
9082   no)
9083      ;; #(
9084   universal)
9085
9086$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9087
9088     ;; #(
9089   *)
9090     as_fn_error "unknown endianness
9091 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9092 esac
9093
9094
9095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5
9096$as_echo_n "checking for rlim_t... " >&6; }
9097if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
9098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5
9099$as_echo "(cached) $ac_cv_type_rlim_t" >&6; }
9100else
9101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102/* end confdefs.h.  */
9103
9104#include <sys/types.h>
9105#if STDC_HEADERS
9106# include <stdlib.h>
9107# include <stddef.h>
9108#endif
9109#ifdef HAVE_SYS_RESOURCE_H
9110# include <sys/resource.h>
9111#endif
9112
9113_ACEOF
9114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9115  $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then :
9116  ac_cv_type_rlim_t=yes
9117else
9118  ac_cv_type_rlim_t=no
9119fi
9120rm -f conftest*
9121
9122	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5
9123$as_echo "$ac_cv_type_rlim_t" >&6; }
9124fi
9125if test $ac_cv_type_rlim_t = no; then
9126  cat >> confdefs.h <<\EOF
9127#define rlim_t unsigned long
9128EOF
9129fi
9130
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5
9132$as_echo_n "checking for stack_t... " >&6; }
9133if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
9134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5
9135$as_echo "(cached) $ac_cv_type_stack_t" >&6; }
9136else
9137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138/* end confdefs.h.  */
9139
9140#include <sys/types.h>
9141#if STDC_HEADERS
9142# include <stdlib.h>
9143# include <stddef.h>
9144#endif
9145#include <signal.h>
9146
9147_ACEOF
9148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9149  $EGREP "stack_t" >/dev/null 2>&1; then :
9150  ac_cv_type_stack_t=yes
9151else
9152  ac_cv_type_stack_t=no
9153fi
9154rm -f conftest*
9155
9156	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5
9157$as_echo "$ac_cv_type_stack_t" >&6; }
9158fi
9159if test $ac_cv_type_stack_t = no; then
9160  cat >> confdefs.h <<\EOF
9161#define stack_t struct sigaltstack
9162EOF
9163fi
9164
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5
9166$as_echo_n "checking whether stack_t has an ss_base field... " >&6; }
9167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168/* end confdefs.h.  */
9169
9170#include <sys/types.h>
9171#if STDC_HEADERS
9172# include <stdlib.h>
9173# include <stddef.h>
9174#endif
9175#include <signal.h>
9176#include "confdefs.h"
9177
9178int
9179main ()
9180{
9181stack_t sigstk; sigstk.ss_base = 0;
9182  ;
9183  return 0;
9184}
9185_ACEOF
9186if ac_fn_c_try_compile "$LINENO"; then :
9187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9188$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h
9189
9190else
9191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192$as_echo "no" >&6; }
9193fi
9194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9195
9196olibs="$LIBS"
9197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5
9198$as_echo_n "checking --with-tlib argument... " >&6; }
9199
9200# Check whether --with-tlib was given.
9201if test "${with_tlib+set}" = set; then :
9202  withval=$with_tlib;
9203fi
9204
9205if test -n "$with_tlib"; then
9206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5
9207$as_echo "$with_tlib" >&6; }
9208  LIBS="$LIBS -l$with_tlib"
9209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5
9210$as_echo_n "checking for linking with $with_tlib library... " >&6; }
9211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212/* end confdefs.h.  */
9213
9214int
9215main ()
9216{
9217
9218  ;
9219  return 0;
9220}
9221_ACEOF
9222if ac_fn_c_try_link "$LINENO"; then :
9223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
9224$as_echo "OK" >&6; }
9225else
9226  as_fn_error "FAILED" "$LINENO" 5
9227fi
9228rm -f core conftest.err conftest.$ac_objext \
9229    conftest$ac_exeext conftest.$ac_ext
9230    olibs="$LIBS"
9231else
9232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5
9233$as_echo "empty: automatic terminal library selection" >&6; }
9234              case "`uname -s 2>/dev/null`" in
9235	OSF1|SCO_SV)	tlibs="ncurses curses termlib termcap";;
9236	*)	tlibs="ncurses termlib termcap curses";;
9237  esac
9238  for libname in $tlibs; do
9239    as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5
9241$as_echo_n "checking for tgetent in -l${libname}... " >&6; }
9242if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
9243  $as_echo_n "(cached) " >&6
9244else
9245  ac_check_lib_save_LIBS=$LIBS
9246LIBS="-l${libname}  $LIBS"
9247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248/* end confdefs.h.  */
9249
9250/* Override any GCC internal prototype to avoid an error.
9251   Use char because int might match the return type of a GCC
9252   builtin and then its argument prototype would still apply.  */
9253#ifdef __cplusplus
9254extern "C"
9255#endif
9256char tgetent ();
9257int
9258main ()
9259{
9260return tgetent ();
9261  ;
9262  return 0;
9263}
9264_ACEOF
9265if ac_fn_c_try_link "$LINENO"; then :
9266  eval "$as_ac_Lib=yes"
9267else
9268  eval "$as_ac_Lib=no"
9269fi
9270rm -f core conftest.err conftest.$ac_objext \
9271    conftest$ac_exeext conftest.$ac_ext
9272LIBS=$ac_check_lib_save_LIBS
9273fi
9274eval ac_res=\$$as_ac_Lib
9275	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9276$as_echo "$ac_res" >&6; }
9277eval as_val=\$$as_ac_Lib
9278   if test "x$as_val" = x""yes; then :
9279  cat >>confdefs.h <<_ACEOF
9280#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
9281_ACEOF
9282
9283  LIBS="-l${libname} $LIBS"
9284
9285fi
9286
9287    if test "x$olibs" != "x$LIBS"; then
9288                        if test "$cross_compiling" = yes; then :
9289  res="FAIL"
9290else
9291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h.  */
9293
9294#ifdef HAVE_TERMCAP_H
9295# include <termcap.h>
9296#endif
9297#if STDC_HEADERS
9298# include <stdlib.h>
9299# include <stddef.h>
9300#endif
9301main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
9302_ACEOF
9303if ac_fn_c_try_run "$LINENO"; then :
9304  res="OK"
9305else
9306  res="FAIL"
9307fi
9308rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9309  conftest.$ac_objext conftest.beam conftest.$ac_ext
9310fi
9311
9312      if test "$res" = "OK"; then
9313	break
9314      fi
9315      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5
9316$as_echo "$libname library is not usable" >&6; }
9317      LIBS="$olibs"
9318    fi
9319  done
9320  if test "x$olibs" = "x$LIBS"; then
9321    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5
9322$as_echo "no terminal library found" >&6; }
9323  fi
9324fi
9325
9326if test "x$olibs" = "x$LIBS"; then
9327  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5
9328$as_echo_n "checking for tgetent()... " >&6; }
9329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330/* end confdefs.h.  */
9331
9332int
9333main ()
9334{
9335char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
9336  ;
9337  return 0;
9338}
9339_ACEOF
9340if ac_fn_c_try_link "$LINENO"; then :
9341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9342$as_echo "yes" >&6; }
9343else
9344  as_fn_error "NOT FOUND!
9345      You need to install a terminal library; for example ncurses.
9346      Or specify the name of the library with --with-tlib." "$LINENO" 5
9347fi
9348rm -f core conftest.err conftest.$ac_objext \
9349    conftest$ac_exeext conftest.$ac_ext
9350fi
9351
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5
9353$as_echo_n "checking whether we talk terminfo... " >&6; }
9354if test "${vim_cv_terminfo+set}" = set; then :
9355  $as_echo_n "(cached) " >&6
9356else
9357
9358    if test "$cross_compiling" = yes; then :
9359
9360      as_fn_error "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5
9361
9362else
9363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364/* end confdefs.h.  */
9365
9366#include "confdefs.h"
9367#ifdef HAVE_TERMCAP_H
9368# include <termcap.h>
9369#endif
9370#ifdef HAVE_STRING_H
9371# include <string.h>
9372#endif
9373#if STDC_HEADERS
9374# include <stdlib.h>
9375# include <stddef.h>
9376#endif
9377main()
9378{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
9379
9380_ACEOF
9381if ac_fn_c_try_run "$LINENO"; then :
9382
9383      vim_cv_terminfo=no
9384
9385else
9386
9387      vim_cv_terminfo=yes
9388
9389fi
9390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9391  conftest.$ac_objext conftest.beam conftest.$ac_ext
9392fi
9393
9394
9395fi
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5
9397$as_echo "$vim_cv_terminfo" >&6; }
9398
9399if test "x$vim_cv_terminfo" = "xyes" ; then
9400  $as_echo "#define TERMINFO 1" >>confdefs.h
9401
9402fi
9403
9404if test "x$olibs" != "x$LIBS"; then
9405  { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5
9406$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; }
9407if test "${vim_cv_tgent+set}" = set; then :
9408  $as_echo_n "(cached) " >&6
9409else
9410
9411      if test "$cross_compiling" = yes; then :
9412
9413	as_fn_error "failed to compile test program." "$LINENO" 5
9414
9415else
9416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417/* end confdefs.h.  */
9418
9419#include "confdefs.h"
9420#ifdef HAVE_TERMCAP_H
9421# include <termcap.h>
9422#endif
9423#if STDC_HEADERS
9424# include <stdlib.h>
9425# include <stddef.h>
9426#endif
9427main()
9428{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
9429
9430_ACEOF
9431if ac_fn_c_try_run "$LINENO"; then :
9432
9433	vim_cv_tgent=zero
9434
9435else
9436
9437	vim_cv_tgent=non-zero
9438
9439fi
9440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9441  conftest.$ac_objext conftest.beam conftest.$ac_ext
9442fi
9443
9444
9445fi
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5
9447$as_echo "$vim_cv_tgent" >&6; }
9448
9449  if test "x$vim_cv_tgent" = "xzero" ; then
9450    $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h
9451
9452  fi
9453fi
9454
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5
9456$as_echo_n "checking whether termcap.h contains ospeed... " >&6; }
9457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458/* end confdefs.h.  */
9459
9460#ifdef HAVE_TERMCAP_H
9461# include <termcap.h>
9462#endif
9463
9464int
9465main ()
9466{
9467ospeed = 20000
9468  ;
9469  return 0;
9470}
9471_ACEOF
9472if ac_fn_c_try_link "$LINENO"; then :
9473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9474$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h
9475
9476else
9477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478$as_echo "no" >&6; }
9479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5
9480$as_echo_n "checking whether ospeed can be extern... " >&6; }
9481	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482/* end confdefs.h.  */
9483
9484#ifdef HAVE_TERMCAP_H
9485# include <termcap.h>
9486#endif
9487extern short ospeed;
9488
9489int
9490main ()
9491{
9492ospeed = 20000
9493  ;
9494  return 0;
9495}
9496_ACEOF
9497if ac_fn_c_try_link "$LINENO"; then :
9498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9499$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h
9500
9501else
9502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503$as_echo "no" >&6; }
9504fi
9505rm -f core conftest.err conftest.$ac_objext \
9506    conftest$ac_exeext conftest.$ac_ext
9507
9508fi
9509rm -f core conftest.err conftest.$ac_objext \
9510    conftest$ac_exeext conftest.$ac_ext
9511
9512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5
9513$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; }
9514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515/* end confdefs.h.  */
9516
9517#ifdef HAVE_TERMCAP_H
9518# include <termcap.h>
9519#endif
9520
9521int
9522main ()
9523{
9524if (UP == 0 && BC == 0) PC = 1
9525  ;
9526  return 0;
9527}
9528_ACEOF
9529if ac_fn_c_try_link "$LINENO"; then :
9530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9531$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h
9532
9533else
9534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535$as_echo "no" >&6; }
9536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5
9537$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; }
9538	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539/* end confdefs.h.  */
9540
9541#ifdef HAVE_TERMCAP_H
9542# include <termcap.h>
9543#endif
9544extern char *UP, *BC, PC;
9545
9546int
9547main ()
9548{
9549if (UP == 0 && BC == 0) PC = 1
9550  ;
9551  return 0;
9552}
9553_ACEOF
9554if ac_fn_c_try_link "$LINENO"; then :
9555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9556$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h
9557
9558else
9559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560$as_echo "no" >&6; }
9561fi
9562rm -f core conftest.err conftest.$ac_objext \
9563    conftest$ac_exeext conftest.$ac_ext
9564
9565fi
9566rm -f core conftest.err conftest.$ac_objext \
9567    conftest$ac_exeext conftest.$ac_ext
9568
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5
9570$as_echo_n "checking whether tputs() uses outfuntype... " >&6; }
9571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9572/* end confdefs.h.  */
9573
9574#ifdef HAVE_TERMCAP_H
9575# include <termcap.h>
9576#endif
9577
9578int
9579main ()
9580{
9581extern int xx(); tputs("test", 1, (outfuntype)xx)
9582  ;
9583  return 0;
9584}
9585_ACEOF
9586if ac_fn_c_try_compile "$LINENO"; then :
9587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9588$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h
9589
9590else
9591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592$as_echo "no" >&6; }
9593fi
9594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5
9597$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; }
9598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599/* end confdefs.h.  */
9600
9601#include <sys/types.h>
9602#include <sys/time.h>
9603#include <sys/select.h>
9604int
9605main ()
9606{
9607
9608  ;
9609  return 0;
9610}
9611_ACEOF
9612if ac_fn_c_try_compile "$LINENO"; then :
9613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9614$as_echo "yes" >&6; }
9615			$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
9616
9617else
9618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619$as_echo "no" >&6; }
9620fi
9621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9622
9623
9624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
9625$as_echo_n "checking for /dev/ptc... " >&6; }
9626if test -r /dev/ptc; then
9627  $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h
9628
9629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9630$as_echo "yes" >&6; }
9631else
9632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633$as_echo "no" >&6; }
9634fi
9635
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5
9637$as_echo_n "checking for SVR4 ptys... " >&6; }
9638if test -c /dev/ptmx ; then
9639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640/* end confdefs.h.  */
9641
9642int
9643main ()
9644{
9645ptsname(0);grantpt(0);unlockpt(0);
9646  ;
9647  return 0;
9648}
9649_ACEOF
9650if ac_fn_c_try_link "$LINENO"; then :
9651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9652$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h
9653
9654else
9655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656$as_echo "no" >&6; }
9657fi
9658rm -f core conftest.err conftest.$ac_objext \
9659    conftest$ac_exeext conftest.$ac_ext
9660else
9661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662$as_echo "no" >&6; }
9663fi
9664
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5
9666$as_echo_n "checking for ptyranges... " >&6; }
9667if test -d /dev/ptym ; then
9668  pdir='/dev/ptym'
9669else
9670  pdir='/dev'
9671fi
9672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673/* end confdefs.h.  */
9674#ifdef M_UNIX
9675   yes;
9676#endif
9677
9678_ACEOF
9679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9680  $EGREP "yes" >/dev/null 2>&1; then :
9681  ptys=`echo /dev/ptyp??`
9682else
9683  ptys=`echo $pdir/pty??`
9684fi
9685rm -f conftest*
9686
9687if test "$ptys" != "$pdir/pty??" ; then
9688  p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
9689  p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g'  | sort -u | tr -d '\012'`
9690  cat >>confdefs.h <<_ACEOF
9691#define PTYRANGE0 "$p0"
9692_ACEOF
9693
9694  cat >>confdefs.h <<_ACEOF
9695#define PTYRANGE1 "$p1"
9696_ACEOF
9697
9698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5
9699$as_echo "$p0 / $p1" >&6; }
9700else
9701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5
9702$as_echo "don't know" >&6; }
9703fi
9704
9705rm -f conftest_grp
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5
9707$as_echo_n "checking default tty permissions/group... " >&6; }
9708if test "${vim_cv_tty_group+set}" = set; then :
9709  $as_echo_n "(cached) " >&6
9710else
9711
9712    if test "$cross_compiling" = yes; then :
9713
9714      as_fn_error "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5
9715
9716else
9717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718/* end confdefs.h.  */
9719
9720#include "confdefs.h"
9721#include <sys/types.h>
9722#if STDC_HEADERS
9723# include <stdlib.h>
9724# include <stddef.h>
9725#endif
9726#ifdef HAVE_UNISTD_H
9727#include <unistd.h>
9728#endif
9729#include <sys/stat.h>
9730#include <stdio.h>
9731main()
9732{
9733  struct stat sb;
9734  char *x,*ttyname();
9735  int om, m;
9736  FILE *fp;
9737
9738  if (!(x = ttyname(0))) exit(1);
9739  if (stat(x, &sb)) exit(1);
9740  om = sb.st_mode;
9741  if (om & 002) exit(0);
9742  m = system("mesg y");
9743  if (m == -1 || m == 127) exit(1);
9744  if (stat(x, &sb)) exit(1);
9745  m = sb.st_mode;
9746  if (chmod(x, om)) exit(1);
9747  if (m & 002) exit(0);
9748  if (sb.st_gid == getgid()) exit(1);
9749  if (!(fp=fopen("conftest_grp", "w")))
9750    exit(1);
9751  fprintf(fp, "%d\n", sb.st_gid);
9752  fclose(fp);
9753  exit(0);
9754}
9755
9756_ACEOF
9757if ac_fn_c_try_run "$LINENO"; then :
9758
9759      if test -f conftest_grp; then
9760	vim_cv_tty_group=`cat conftest_grp`
9761	if test "x$vim_cv_tty_mode" = "x" ; then
9762	  vim_cv_tty_mode=0620
9763	fi
9764	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5
9765$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; }
9766      else
9767	vim_cv_tty_group=world
9768	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5
9769$as_echo "ptys are world accessible" >&6; }
9770      fi
9771
9772else
9773
9774      vim_cv_tty_group=world
9775      { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5
9776$as_echo "can't determine - assume ptys are world accessible" >&6; }
9777
9778fi
9779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9780  conftest.$ac_objext conftest.beam conftest.$ac_ext
9781fi
9782
9783
9784fi
9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5
9786$as_echo "$vim_cv_tty_group" >&6; }
9787rm -f conftest_grp
9788
9789if test "x$vim_cv_tty_group" != "xworld" ; then
9790  cat >>confdefs.h <<_ACEOF
9791#define PTYGROUP $vim_cv_tty_group
9792_ACEOF
9793
9794  if test "x$vim_cv_tty_mode" = "x" ; then
9795    as_fn_error "It seems you're cross compiling and have 'vim_cv_tty_group' set, please also set the environment variable 'vim_cv_tty_mode' to the correct mode (propably 0620)" "$LINENO" 5
9796  else
9797    $as_echo "#define PTYMODE 0620" >>confdefs.h
9798
9799  fi
9800fi
9801
9802
9803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9804$as_echo_n "checking return type of signal handlers... " >&6; }
9805if test "${ac_cv_type_signal+set}" = set; then :
9806  $as_echo_n "(cached) " >&6
9807else
9808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809/* end confdefs.h.  */
9810#include <sys/types.h>
9811#include <signal.h>
9812
9813int
9814main ()
9815{
9816return *(signal (0, 0)) (0) == 1;
9817  ;
9818  return 0;
9819}
9820_ACEOF
9821if ac_fn_c_try_compile "$LINENO"; then :
9822  ac_cv_type_signal=int
9823else
9824  ac_cv_type_signal=void
9825fi
9826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827fi
9828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9829$as_echo "$ac_cv_type_signal" >&6; }
9830
9831cat >>confdefs.h <<_ACEOF
9832#define RETSIGTYPE $ac_cv_type_signal
9833_ACEOF
9834
9835
9836
9837if test $ac_cv_type_signal = void; then
9838  $as_echo "#define SIGRETURN return" >>confdefs.h
9839
9840else
9841  $as_echo "#define SIGRETURN return 0" >>confdefs.h
9842
9843fi
9844
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5
9846$as_echo_n "checking for struct sigcontext... " >&6; }
9847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848/* end confdefs.h.  */
9849
9850#include <signal.h>
9851test_sig()
9852{
9853    struct sigcontext *scont;
9854    scont = (struct sigcontext *)0;
9855    return 1;
9856}
9857int
9858main ()
9859{
9860
9861  ;
9862  return 0;
9863}
9864_ACEOF
9865if ac_fn_c_try_compile "$LINENO"; then :
9866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9867$as_echo "yes" >&6; }
9868		$as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h
9869
9870else
9871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9872$as_echo "no" >&6; }
9873fi
9874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5
9877$as_echo_n "checking getcwd implementation is broken... " >&6; }
9878if test "${vim_cv_getcwd_broken+set}" = set; then :
9879  $as_echo_n "(cached) " >&6
9880else
9881
9882    if test "$cross_compiling" = yes; then :
9883
9884      as_fn_error "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5
9885
9886else
9887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h.  */
9889
9890#include "confdefs.h"
9891#ifdef HAVE_UNISTD_H
9892#include <unistd.h>
9893#endif
9894char *dagger[] = { "IFS=pwd", 0 };
9895main()
9896{
9897  char buffer[500];
9898  extern char **environ;
9899  environ = dagger;
9900  return getcwd(buffer, 500) ? 0 : 1;
9901}
9902
9903_ACEOF
9904if ac_fn_c_try_run "$LINENO"; then :
9905
9906      vim_cv_getcwd_broken=no
9907
9908else
9909
9910      vim_cv_getcwd_broken=yes
9911
9912fi
9913rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9914  conftest.$ac_objext conftest.beam conftest.$ac_ext
9915fi
9916
9917
9918fi
9919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5
9920$as_echo "$vim_cv_getcwd_broken" >&6; }
9921
9922if test "x$vim_cv_getcwd_broken" = "xyes" ; then
9923  $as_echo "#define BAD_GETCWD 1" >>confdefs.h
9924
9925fi
9926
9927for ac_func in bcmp fchdir fchown fsync getcwd getpseudotty \
9928	getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
9929	memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \
9930	setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
9931	sigvec strcasecmp strerror strftime stricmp strncasecmp \
9932	strnicmp strpbrk strtol tgetent towlower towupper iswupper \
9933	usleep utime utimes
9934do :
9935  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9936ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9937eval as_val=\$$as_ac_var
9938   if test "x$as_val" = x""yes; then :
9939  cat >>confdefs.h <<_ACEOF
9940#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9941_ACEOF
9942
9943fi
9944done
9945
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9947$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9948if test "${ac_cv_sys_largefile_source+set}" = set; then :
9949  $as_echo_n "(cached) " >&6
9950else
9951  while :; do
9952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953/* end confdefs.h.  */
9954#include <sys/types.h> /* for off_t */
9955     #include <stdio.h>
9956int
9957main ()
9958{
9959int (*fp) (FILE *, off_t, int) = fseeko;
9960     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9961  ;
9962  return 0;
9963}
9964_ACEOF
9965if ac_fn_c_try_link "$LINENO"; then :
9966  ac_cv_sys_largefile_source=no; break
9967fi
9968rm -f core conftest.err conftest.$ac_objext \
9969    conftest$ac_exeext conftest.$ac_ext
9970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971/* end confdefs.h.  */
9972#define _LARGEFILE_SOURCE 1
9973#include <sys/types.h> /* for off_t */
9974     #include <stdio.h>
9975int
9976main ()
9977{
9978int (*fp) (FILE *, off_t, int) = fseeko;
9979     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9980  ;
9981  return 0;
9982}
9983_ACEOF
9984if ac_fn_c_try_link "$LINENO"; then :
9985  ac_cv_sys_largefile_source=1; break
9986fi
9987rm -f core conftest.err conftest.$ac_objext \
9988    conftest$ac_exeext conftest.$ac_ext
9989  ac_cv_sys_largefile_source=unknown
9990  break
9991done
9992fi
9993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9994$as_echo "$ac_cv_sys_largefile_source" >&6; }
9995case $ac_cv_sys_largefile_source in #(
9996  no | unknown) ;;
9997  *)
9998cat >>confdefs.h <<_ACEOF
9999#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10000_ACEOF
10001;;
10002esac
10003rm -rf conftest*
10004
10005# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10006# in glibc 2.1.3, but that breaks too many other things.
10007# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10008if test $ac_cv_sys_largefile_source != unknown; then
10009
10010$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
10011
10012fi
10013
10014
10015# Check whether --enable-largefile was given.
10016if test "${enable_largefile+set}" = set; then :
10017  enableval=$enable_largefile;
10018fi
10019
10020if test "$enable_largefile" != no; then
10021
10022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10023$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10024if test "${ac_cv_sys_largefile_CC+set}" = set; then :
10025  $as_echo_n "(cached) " >&6
10026else
10027  ac_cv_sys_largefile_CC=no
10028     if test "$GCC" != yes; then
10029       ac_save_CC=$CC
10030       while :; do
10031	 # IRIX 6.2 and later do not support large files by default,
10032	 # so use the C compiler's -n32 option if that helps.
10033	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034/* end confdefs.h.  */
10035#include <sys/types.h>
10036 /* Check that off_t can represent 2**63 - 1 correctly.
10037    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10038    since some C++ compilers masquerading as C compilers
10039    incorrectly reject 9223372036854775807.  */
10040#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10041  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10042		       && LARGE_OFF_T % 2147483647 == 1)
10043		      ? 1 : -1];
10044int
10045main ()
10046{
10047
10048  ;
10049  return 0;
10050}
10051_ACEOF
10052	 if ac_fn_c_try_compile "$LINENO"; then :
10053  break
10054fi
10055rm -f core conftest.err conftest.$ac_objext
10056	 CC="$CC -n32"
10057	 if ac_fn_c_try_compile "$LINENO"; then :
10058  ac_cv_sys_largefile_CC=' -n32'; break
10059fi
10060rm -f core conftest.err conftest.$ac_objext
10061	 break
10062       done
10063       CC=$ac_save_CC
10064       rm -f conftest.$ac_ext
10065    fi
10066fi
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10068$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10069  if test "$ac_cv_sys_largefile_CC" != no; then
10070    CC=$CC$ac_cv_sys_largefile_CC
10071  fi
10072
10073  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10074$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10075if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
10076  $as_echo_n "(cached) " >&6
10077else
10078  while :; do
10079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080/* end confdefs.h.  */
10081#include <sys/types.h>
10082 /* Check that off_t can represent 2**63 - 1 correctly.
10083    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10084    since some C++ compilers masquerading as C compilers
10085    incorrectly reject 9223372036854775807.  */
10086#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10087  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10088		       && LARGE_OFF_T % 2147483647 == 1)
10089		      ? 1 : -1];
10090int
10091main ()
10092{
10093
10094  ;
10095  return 0;
10096}
10097_ACEOF
10098if ac_fn_c_try_compile "$LINENO"; then :
10099  ac_cv_sys_file_offset_bits=no; break
10100fi
10101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103/* end confdefs.h.  */
10104#define _FILE_OFFSET_BITS 64
10105#include <sys/types.h>
10106 /* Check that off_t can represent 2**63 - 1 correctly.
10107    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10108    since some C++ compilers masquerading as C compilers
10109    incorrectly reject 9223372036854775807.  */
10110#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10111  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10112		       && LARGE_OFF_T % 2147483647 == 1)
10113		      ? 1 : -1];
10114int
10115main ()
10116{
10117
10118  ;
10119  return 0;
10120}
10121_ACEOF
10122if ac_fn_c_try_compile "$LINENO"; then :
10123  ac_cv_sys_file_offset_bits=64; break
10124fi
10125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126  ac_cv_sys_file_offset_bits=unknown
10127  break
10128done
10129fi
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10131$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10132case $ac_cv_sys_file_offset_bits in #(
10133  no | unknown) ;;
10134  *)
10135cat >>confdefs.h <<_ACEOF
10136#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10137_ACEOF
10138;;
10139esac
10140rm -rf conftest*
10141  if test $ac_cv_sys_file_offset_bits = unknown; then
10142    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10143$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10144if test "${ac_cv_sys_large_files+set}" = set; then :
10145  $as_echo_n "(cached) " >&6
10146else
10147  while :; do
10148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149/* end confdefs.h.  */
10150#include <sys/types.h>
10151 /* Check that off_t can represent 2**63 - 1 correctly.
10152    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10153    since some C++ compilers masquerading as C compilers
10154    incorrectly reject 9223372036854775807.  */
10155#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10156  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10157		       && LARGE_OFF_T % 2147483647 == 1)
10158		      ? 1 : -1];
10159int
10160main ()
10161{
10162
10163  ;
10164  return 0;
10165}
10166_ACEOF
10167if ac_fn_c_try_compile "$LINENO"; then :
10168  ac_cv_sys_large_files=no; break
10169fi
10170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172/* end confdefs.h.  */
10173#define _LARGE_FILES 1
10174#include <sys/types.h>
10175 /* Check that off_t can represent 2**63 - 1 correctly.
10176    We can't simply define LARGE_OFF_T to be 9223372036854775807,
10177    since some C++ compilers masquerading as C compilers
10178    incorrectly reject 9223372036854775807.  */
10179#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10180  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10181		       && LARGE_OFF_T % 2147483647 == 1)
10182		      ? 1 : -1];
10183int
10184main ()
10185{
10186
10187  ;
10188  return 0;
10189}
10190_ACEOF
10191if ac_fn_c_try_compile "$LINENO"; then :
10192  ac_cv_sys_large_files=1; break
10193fi
10194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10195  ac_cv_sys_large_files=unknown
10196  break
10197done
10198fi
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10200$as_echo "$ac_cv_sys_large_files" >&6; }
10201case $ac_cv_sys_large_files in #(
10202  no | unknown) ;;
10203  *)
10204cat >>confdefs.h <<_ACEOF
10205#define _LARGE_FILES $ac_cv_sys_large_files
10206_ACEOF
10207;;
10208esac
10209rm -rf conftest*
10210  fi
10211fi
10212
10213
10214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5
10215$as_echo_n "checking for st_blksize... " >&6; }
10216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218#include <sys/types.h>
10219#include <sys/stat.h>
10220int
10221main ()
10222{
10223	struct stat st;
10224	int n;
10225
10226	stat("/", &st);
10227	n = (int)st.st_blksize;
10228  ;
10229  return 0;
10230}
10231_ACEOF
10232if ac_fn_c_try_compile "$LINENO"; then :
10233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10234$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
10235
10236else
10237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238$as_echo "no" >&6; }
10239fi
10240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10241
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5
10243$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; }
10244if test "${vim_cv_stat_ignores_slash+set}" = set; then :
10245  $as_echo_n "(cached) " >&6
10246else
10247
10248    if test "$cross_compiling" = yes; then :
10249
10250      as_fn_error "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5
10251
10252else
10253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254/* end confdefs.h.  */
10255
10256#include "confdefs.h"
10257#if STDC_HEADERS
10258# include <stdlib.h>
10259# include <stddef.h>
10260#endif
10261#include <sys/types.h>
10262#include <sys/stat.h>
10263main() {struct stat st;  exit(stat("configure/", &st) != 0); }
10264
10265_ACEOF
10266if ac_fn_c_try_run "$LINENO"; then :
10267
10268      vim_cv_stat_ignores_slash=yes
10269
10270else
10271
10272      vim_cv_stat_ignores_slash=no
10273
10274fi
10275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10276  conftest.$ac_objext conftest.beam conftest.$ac_ext
10277fi
10278
10279
10280fi
10281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5
10282$as_echo "$vim_cv_stat_ignores_slash" >&6; }
10283
10284if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then
10285  $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h
10286
10287fi
10288
10289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5
10290$as_echo_n "checking for iconv_open()... " >&6; }
10291save_LIBS="$LIBS"
10292LIBS="$LIBS -liconv"
10293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294/* end confdefs.h.  */
10295
10296#ifdef HAVE_ICONV_H
10297# include <iconv.h>
10298#endif
10299
10300int
10301main ()
10302{
10303iconv_open("fr", "to");
10304  ;
10305  return 0;
10306}
10307_ACEOF
10308if ac_fn_c_try_link "$LINENO"; then :
10309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5
10310$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10311
10312else
10313  LIBS="$save_LIBS"
10314    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315/* end confdefs.h.  */
10316
10317#ifdef HAVE_ICONV_H
10318# include <iconv.h>
10319#endif
10320
10321int
10322main ()
10323{
10324iconv_open("fr", "to");
10325  ;
10326  return 0;
10327}
10328_ACEOF
10329if ac_fn_c_try_link "$LINENO"; then :
10330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10331$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10332
10333else
10334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335$as_echo "no" >&6; }
10336fi
10337rm -f core conftest.err conftest.$ac_objext \
10338    conftest$ac_exeext conftest.$ac_ext
10339fi
10340rm -f core conftest.err conftest.$ac_objext \
10341    conftest$ac_exeext conftest.$ac_ext
10342
10343
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5
10345$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; }
10346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347/* end confdefs.h.  */
10348
10349#ifdef HAVE_LANGINFO_H
10350# include <langinfo.h>
10351#endif
10352
10353int
10354main ()
10355{
10356char *cs = nl_langinfo(CODESET);
10357  ;
10358  return 0;
10359}
10360_ACEOF
10361if ac_fn_c_try_link "$LINENO"; then :
10362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10363$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h
10364
10365else
10366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10367$as_echo "no" >&6; }
10368fi
10369rm -f core conftest.err conftest.$ac_objext \
10370    conftest$ac_exeext conftest.$ac_ext
10371
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5
10373$as_echo_n "checking for strtod in -lm... " >&6; }
10374if test "${ac_cv_lib_m_strtod+set}" = set; then :
10375  $as_echo_n "(cached) " >&6
10376else
10377  ac_check_lib_save_LIBS=$LIBS
10378LIBS="-lm  $LIBS"
10379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380/* end confdefs.h.  */
10381
10382/* Override any GCC internal prototype to avoid an error.
10383   Use char because int might match the return type of a GCC
10384   builtin and then its argument prototype would still apply.  */
10385#ifdef __cplusplus
10386extern "C"
10387#endif
10388char strtod ();
10389int
10390main ()
10391{
10392return strtod ();
10393  ;
10394  return 0;
10395}
10396_ACEOF
10397if ac_fn_c_try_link "$LINENO"; then :
10398  ac_cv_lib_m_strtod=yes
10399else
10400  ac_cv_lib_m_strtod=no
10401fi
10402rm -f core conftest.err conftest.$ac_objext \
10403    conftest$ac_exeext conftest.$ac_ext
10404LIBS=$ac_check_lib_save_LIBS
10405fi
10406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5
10407$as_echo "$ac_cv_lib_m_strtod" >&6; }
10408if test "x$ac_cv_lib_m_strtod" = x""yes; then :
10409  cat >>confdefs.h <<_ACEOF
10410#define HAVE_LIBM 1
10411_ACEOF
10412
10413  LIBS="-lm $LIBS"
10414
10415fi
10416
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5
10418$as_echo_n "checking for strtod() and other floating point functions... " >&6; }
10419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421
10422#ifdef HAVE_MATH_H
10423# include <math.h>
10424#endif
10425#if STDC_HEADERS
10426# include <stdlib.h>
10427# include <stddef.h>
10428#endif
10429
10430int
10431main ()
10432{
10433char *s; double d;
10434    d = strtod("1.1", &s);
10435    d = fabs(1.11);
10436    d = ceil(1.11);
10437    d = floor(1.11);
10438    d = log10(1.11);
10439    d = pow(1.11, 2.22);
10440    d = sqrt(1.11);
10441    d = sin(1.11);
10442    d = cos(1.11);
10443    d = atan(1.11);
10444
10445  ;
10446  return 0;
10447}
10448_ACEOF
10449if ac_fn_c_try_link "$LINENO"; then :
10450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10451$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h
10452
10453else
10454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455$as_echo "no" >&6; }
10456fi
10457rm -f core conftest.err conftest.$ac_objext \
10458    conftest$ac_exeext conftest.$ac_ext
10459
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5
10461$as_echo_n "checking --disable-acl argument... " >&6; }
10462# Check whether --enable-acl was given.
10463if test "${enable_acl+set}" = set; then :
10464  enableval=$enable_acl;
10465else
10466  enable_acl="yes"
10467fi
10468
10469if test "$enable_acl" = "yes"; then
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471$as_echo "no" >&6; }
10472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5
10473$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; }
10474if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then :
10475  $as_echo_n "(cached) " >&6
10476else
10477  ac_check_lib_save_LIBS=$LIBS
10478LIBS="-lposix1e  $LIBS"
10479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h.  */
10481
10482/* Override any GCC internal prototype to avoid an error.
10483   Use char because int might match the return type of a GCC
10484   builtin and then its argument prototype would still apply.  */
10485#ifdef __cplusplus
10486extern "C"
10487#endif
10488char acl_get_file ();
10489int
10490main ()
10491{
10492return acl_get_file ();
10493  ;
10494  return 0;
10495}
10496_ACEOF
10497if ac_fn_c_try_link "$LINENO"; then :
10498  ac_cv_lib_posix1e_acl_get_file=yes
10499else
10500  ac_cv_lib_posix1e_acl_get_file=no
10501fi
10502rm -f core conftest.err conftest.$ac_objext \
10503    conftest$ac_exeext conftest.$ac_ext
10504LIBS=$ac_check_lib_save_LIBS
10505fi
10506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5
10507$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; }
10508if test "x$ac_cv_lib_posix1e_acl_get_file" = x""yes; then :
10509  LIBS="$LIBS -lposix1e"
10510else
10511  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
10512$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
10513if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
10514  $as_echo_n "(cached) " >&6
10515else
10516  ac_check_lib_save_LIBS=$LIBS
10517LIBS="-lacl  $LIBS"
10518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519/* end confdefs.h.  */
10520
10521/* Override any GCC internal prototype to avoid an error.
10522   Use char because int might match the return type of a GCC
10523   builtin and then its argument prototype would still apply.  */
10524#ifdef __cplusplus
10525extern "C"
10526#endif
10527char acl_get_file ();
10528int
10529main ()
10530{
10531return acl_get_file ();
10532  ;
10533  return 0;
10534}
10535_ACEOF
10536if ac_fn_c_try_link "$LINENO"; then :
10537  ac_cv_lib_acl_acl_get_file=yes
10538else
10539  ac_cv_lib_acl_acl_get_file=no
10540fi
10541rm -f core conftest.err conftest.$ac_objext \
10542    conftest$ac_exeext conftest.$ac_ext
10543LIBS=$ac_check_lib_save_LIBS
10544fi
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
10546$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
10547if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
10548  LIBS="$LIBS -lacl"
10549		  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5
10550$as_echo_n "checking for fgetxattr in -lattr... " >&6; }
10551if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then :
10552  $as_echo_n "(cached) " >&6
10553else
10554  ac_check_lib_save_LIBS=$LIBS
10555LIBS="-lattr  $LIBS"
10556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557/* end confdefs.h.  */
10558
10559/* Override any GCC internal prototype to avoid an error.
10560   Use char because int might match the return type of a GCC
10561   builtin and then its argument prototype would still apply.  */
10562#ifdef __cplusplus
10563extern "C"
10564#endif
10565char fgetxattr ();
10566int
10567main ()
10568{
10569return fgetxattr ();
10570  ;
10571  return 0;
10572}
10573_ACEOF
10574if ac_fn_c_try_link "$LINENO"; then :
10575  ac_cv_lib_attr_fgetxattr=yes
10576else
10577  ac_cv_lib_attr_fgetxattr=no
10578fi
10579rm -f core conftest.err conftest.$ac_objext \
10580    conftest$ac_exeext conftest.$ac_ext
10581LIBS=$ac_check_lib_save_LIBS
10582fi
10583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5
10584$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; }
10585if test "x$ac_cv_lib_attr_fgetxattr" = x""yes; then :
10586  LIBS="$LIBS -lattr"
10587fi
10588
10589fi
10590
10591fi
10592
10593
10594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5
10595$as_echo_n "checking for POSIX ACL support... " >&6; }
10596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597/* end confdefs.h.  */
10598
10599#include <sys/types.h>
10600#ifdef HAVE_SYS_ACL_H
10601# include <sys/acl.h>
10602#endif
10603acl_t acl;
10604int
10605main ()
10606{
10607acl = acl_get_file("foo", ACL_TYPE_ACCESS);
10608	acl_set_file("foo", ACL_TYPE_ACCESS, acl);
10609	acl_free(acl);
10610  ;
10611  return 0;
10612}
10613_ACEOF
10614if ac_fn_c_try_link "$LINENO"; then :
10615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h
10617
10618else
10619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620$as_echo "no" >&6; }
10621fi
10622rm -f core conftest.err conftest.$ac_objext \
10623    conftest$ac_exeext conftest.$ac_ext
10624
10625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5
10626$as_echo_n "checking for Solaris ACL support... " >&6; }
10627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628/* end confdefs.h.  */
10629
10630#ifdef HAVE_SYS_ACL_H
10631# include <sys/acl.h>
10632#endif
10633int
10634main ()
10635{
10636acl("foo", GETACLCNT, 0, NULL);
10637
10638  ;
10639  return 0;
10640}
10641_ACEOF
10642if ac_fn_c_try_link "$LINENO"; then :
10643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10644$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h
10645
10646else
10647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648$as_echo "no" >&6; }
10649fi
10650rm -f core conftest.err conftest.$ac_objext \
10651    conftest$ac_exeext conftest.$ac_ext
10652
10653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5
10654$as_echo_n "checking for AIX ACL support... " >&6; }
10655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656/* end confdefs.h.  */
10657
10658#if STDC_HEADERS
10659# include <stdlib.h>
10660# include <stddef.h>
10661#endif
10662#ifdef HAVE_SYS_ACL_H
10663# include <sys/acl.h>
10664#endif
10665#ifdef HAVE_SYS_ACCESS_H
10666# include <sys/access.h>
10667#endif
10668#define _ALL_SOURCE
10669
10670#include <sys/stat.h>
10671
10672int aclsize;
10673struct acl *aclent;
10674int
10675main ()
10676{
10677aclsize = sizeof(struct acl);
10678	aclent = (void *)malloc(aclsize);
10679	statacl("foo", STX_NORMAL, aclent, aclsize);
10680
10681  ;
10682  return 0;
10683}
10684_ACEOF
10685if ac_fn_c_try_link "$LINENO"; then :
10686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h
10688
10689else
10690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691$as_echo "no" >&6; }
10692fi
10693rm -f core conftest.err conftest.$ac_objext \
10694    conftest$ac_exeext conftest.$ac_ext
10695else
10696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10697$as_echo "yes" >&6; }
10698fi
10699
10700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
10701$as_echo_n "checking --disable-gpm argument... " >&6; }
10702# Check whether --enable-gpm was given.
10703if test "${enable_gpm+set}" = set; then :
10704  enableval=$enable_gpm;
10705else
10706  enable_gpm="yes"
10707fi
10708
10709
10710if test "$enable_gpm" = "yes"; then
10711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712$as_echo "no" >&6; }
10713    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5
10714$as_echo_n "checking for gpm... " >&6; }
10715if test "${vi_cv_have_gpm+set}" = set; then :
10716  $as_echo_n "(cached) " >&6
10717else
10718  olibs="$LIBS" ; LIBS="-lgpm"
10719	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720/* end confdefs.h.  */
10721#include <gpm.h>
10722	    #include <linux/keyboard.h>
10723int
10724main ()
10725{
10726Gpm_GetLibVersion(NULL);
10727  ;
10728  return 0;
10729}
10730_ACEOF
10731if ac_fn_c_try_link "$LINENO"; then :
10732  	    	    vi_cv_have_gpm=yes
10733else
10734  vi_cv_have_gpm=no
10735fi
10736rm -f core conftest.err conftest.$ac_objext \
10737    conftest$ac_exeext conftest.$ac_ext
10738	LIBS="$olibs"
10739
10740fi
10741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5
10742$as_echo "$vi_cv_have_gpm" >&6; }
10743  if test $vi_cv_have_gpm = yes; then
10744    LIBS="$LIBS -lgpm"
10745    $as_echo "#define HAVE_GPM 1" >>confdefs.h
10746
10747  fi
10748else
10749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10750$as_echo "yes" >&6; }
10751fi
10752
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5
10754$as_echo_n "checking --disable-sysmouse argument... " >&6; }
10755# Check whether --enable-sysmouse was given.
10756if test "${enable_sysmouse+set}" = set; then :
10757  enableval=$enable_sysmouse;
10758else
10759  enable_sysmouse="yes"
10760fi
10761
10762
10763if test "$enable_sysmouse" = "yes"; then
10764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765$as_echo "no" >&6; }
10766        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5
10767$as_echo_n "checking for sysmouse... " >&6; }
10768if test "${vi_cv_have_sysmouse+set}" = set; then :
10769  $as_echo_n "(cached) " >&6
10770else
10771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772/* end confdefs.h.  */
10773#include <sys/consio.h>
10774	     #include <signal.h>
10775	     #include <sys/fbio.h>
10776int
10777main ()
10778{
10779struct mouse_info   mouse;
10780	     mouse.operation = MOUSE_MODE;
10781	     mouse.operation = MOUSE_SHOW;
10782	     mouse.u.mode.mode = 0;
10783	     mouse.u.mode.signal = SIGUSR2;
10784  ;
10785  return 0;
10786}
10787_ACEOF
10788if ac_fn_c_try_link "$LINENO"; then :
10789  vi_cv_have_sysmouse=yes
10790else
10791  vi_cv_have_sysmouse=no
10792fi
10793rm -f core conftest.err conftest.$ac_objext \
10794    conftest$ac_exeext conftest.$ac_ext
10795
10796fi
10797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5
10798$as_echo "$vi_cv_have_sysmouse" >&6; }
10799  if test $vi_cv_have_sysmouse = yes; then
10800    $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h
10801
10802  fi
10803else
10804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10805$as_echo "yes" >&6; }
10806fi
10807
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5
10809$as_echo_n "checking for FD_CLOEXEC... " >&6; }
10810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811/* end confdefs.h.  */
10812#if HAVE_FCNTL_H
10813# include <fcntl.h>
10814#endif
10815int
10816main ()
10817{
10818	int flag = FD_CLOEXEC;
10819  ;
10820  return 0;
10821}
10822_ACEOF
10823if ac_fn_c_try_compile "$LINENO"; then :
10824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10825$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h
10826
10827else
10828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
10829$as_echo "not usable" >&6; }
10830fi
10831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5
10834$as_echo_n "checking for rename... " >&6; }
10835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836/* end confdefs.h.  */
10837#include <stdio.h>
10838int
10839main ()
10840{
10841rename("this", "that")
10842  ;
10843  return 0;
10844}
10845_ACEOF
10846if ac_fn_c_try_link "$LINENO"; then :
10847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10848$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h
10849
10850else
10851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852$as_echo "no" >&6; }
10853fi
10854rm -f core conftest.err conftest.$ac_objext \
10855    conftest$ac_exeext conftest.$ac_ext
10856
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5
10858$as_echo_n "checking for sysctl... " >&6; }
10859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860/* end confdefs.h.  */
10861#include <sys/types.h>
10862#include <sys/sysctl.h>
10863int
10864main ()
10865{
10866	int mib[2], r;
10867	size_t len;
10868
10869	mib[0] = CTL_HW;
10870	mib[1] = HW_USERMEM;
10871	len = sizeof(r);
10872	(void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
10873
10874  ;
10875  return 0;
10876}
10877_ACEOF
10878if ac_fn_c_try_compile "$LINENO"; then :
10879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10880$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h
10881
10882else
10883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
10884$as_echo "not usable" >&6; }
10885fi
10886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10887
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5
10889$as_echo_n "checking for sysinfo... " >&6; }
10890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891/* end confdefs.h.  */
10892#include <sys/types.h>
10893#include <sys/sysinfo.h>
10894int
10895main ()
10896{
10897	struct sysinfo sinfo;
10898	int t;
10899
10900	(void)sysinfo(&sinfo);
10901	t = sinfo.totalram;
10902
10903  ;
10904  return 0;
10905}
10906_ACEOF
10907if ac_fn_c_try_compile "$LINENO"; then :
10908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10909$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h
10910
10911else
10912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
10913$as_echo "not usable" >&6; }
10914fi
10915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10916
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5
10918$as_echo_n "checking for sysinfo.mem_unit... " >&6; }
10919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10920/* end confdefs.h.  */
10921#include <sys/types.h>
10922#include <sys/sysinfo.h>
10923int
10924main ()
10925{
10926	struct sysinfo sinfo;
10927 	sinfo.mem_unit = 1;
10928
10929  ;
10930  return 0;
10931}
10932_ACEOF
10933if ac_fn_c_try_compile "$LINENO"; then :
10934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10935$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h
10936
10937else
10938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10939$as_echo "no" >&6; }
10940fi
10941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10942
10943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5
10944$as_echo_n "checking for sysconf... " >&6; }
10945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946/* end confdefs.h.  */
10947#include <unistd.h>
10948int
10949main ()
10950{
10951	(void)sysconf(_SC_PAGESIZE);
10952	(void)sysconf(_SC_PHYS_PAGES);
10953
10954  ;
10955  return 0;
10956}
10957_ACEOF
10958if ac_fn_c_try_compile "$LINENO"; then :
10959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10960$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h
10961
10962else
10963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5
10964$as_echo "not usable" >&6; }
10965fi
10966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10967
10968# The cast to long int works around a bug in the HP C Compiler
10969# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10970# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10971# This bug is HP SR number 8606223364.
10972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10973$as_echo_n "checking size of int... " >&6; }
10974if test "${ac_cv_sizeof_int+set}" = set; then :
10975  $as_echo_n "(cached) " >&6
10976else
10977  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
10978
10979else
10980  if test "$ac_cv_type_int" = yes; then
10981     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10983{ as_fn_set_status 77
10984as_fn_error "cannot compute sizeof (int)
10985See \`config.log' for more details." "$LINENO" 5; }; }
10986   else
10987     ac_cv_sizeof_int=0
10988   fi
10989fi
10990
10991fi
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10993$as_echo "$ac_cv_sizeof_int" >&6; }
10994
10995
10996
10997cat >>confdefs.h <<_ACEOF
10998#define SIZEOF_INT $ac_cv_sizeof_int
10999_ACEOF
11000
11001
11002# The cast to long int works around a bug in the HP C Compiler
11003# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11004# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11005# This bug is HP SR number 8606223364.
11006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11007$as_echo_n "checking size of long... " >&6; }
11008if test "${ac_cv_sizeof_long+set}" = set; then :
11009  $as_echo_n "(cached) " >&6
11010else
11011  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
11012
11013else
11014  if test "$ac_cv_type_long" = yes; then
11015     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11017{ as_fn_set_status 77
11018as_fn_error "cannot compute sizeof (long)
11019See \`config.log' for more details." "$LINENO" 5; }; }
11020   else
11021     ac_cv_sizeof_long=0
11022   fi
11023fi
11024
11025fi
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11027$as_echo "$ac_cv_sizeof_long" >&6; }
11028
11029
11030
11031cat >>confdefs.h <<_ACEOF
11032#define SIZEOF_LONG $ac_cv_sizeof_long
11033_ACEOF
11034
11035
11036# The cast to long int works around a bug in the HP C Compiler
11037# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11038# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11039# This bug is HP SR number 8606223364.
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
11041$as_echo_n "checking size of time_t... " >&6; }
11042if test "${ac_cv_sizeof_time_t+set}" = set; then :
11043  $as_echo_n "(cached) " >&6
11044else
11045  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
11046
11047else
11048  if test "$ac_cv_type_time_t" = yes; then
11049     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11051{ as_fn_set_status 77
11052as_fn_error "cannot compute sizeof (time_t)
11053See \`config.log' for more details." "$LINENO" 5; }; }
11054   else
11055     ac_cv_sizeof_time_t=0
11056   fi
11057fi
11058
11059fi
11060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
11061$as_echo "$ac_cv_sizeof_time_t" >&6; }
11062
11063
11064
11065cat >>confdefs.h <<_ACEOF
11066#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
11067_ACEOF
11068
11069
11070# The cast to long int works around a bug in the HP C Compiler
11071# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11072# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11073# This bug is HP SR number 8606223364.
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
11075$as_echo_n "checking size of off_t... " >&6; }
11076if test "${ac_cv_sizeof_off_t+set}" = set; then :
11077  $as_echo_n "(cached) " >&6
11078else
11079  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
11080
11081else
11082  if test "$ac_cv_type_off_t" = yes; then
11083     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11085{ as_fn_set_status 77
11086as_fn_error "cannot compute sizeof (off_t)
11087See \`config.log' for more details." "$LINENO" 5; }; }
11088   else
11089     ac_cv_sizeof_off_t=0
11090   fi
11091fi
11092
11093fi
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
11095$as_echo "$ac_cv_sizeof_off_t" >&6; }
11096
11097
11098
11099cat >>confdefs.h <<_ACEOF
11100#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11101_ACEOF
11102
11103
11104
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5
11106$as_echo_n "checking uint32_t is 32 bits... " >&6; }
11107if test "$cross_compiling" = yes; then :
11108  as_fn_error "could not compile program using uint32_t." "$LINENO" 5
11109else
11110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111/* end confdefs.h.  */
11112
11113#ifdef HAVE_STDINT_H
11114# include <stdint.h>
11115#endif
11116#ifdef HAVE_INTTYPES_H
11117# include <inttypes.h>
11118#endif
11119main() {
11120  uint32_t nr1 = (uint32_t)-1;
11121  uint32_t nr2 = (uint32_t)0xffffffffUL;
11122  if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1);
11123  exit(0);
11124}
11125_ACEOF
11126if ac_fn_c_try_run "$LINENO"; then :
11127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11128$as_echo "ok" >&6; }
11129else
11130  as_fn_error "WRONG!  uint32_t not defined correctly." "$LINENO" 5
11131fi
11132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11133  conftest.$ac_objext conftest.beam conftest.$ac_ext
11134fi
11135
11136
11137
11138bcopy_test_prog='
11139#include "confdefs.h"
11140#ifdef HAVE_STRING_H
11141# include <string.h>
11142#endif
11143#if STDC_HEADERS
11144# include <stdlib.h>
11145# include <stddef.h>
11146#endif
11147main() {
11148  char buf[10];
11149  strcpy(buf, "abcdefghi");
11150  mch_memmove(buf, buf + 2, 3);
11151  if (strncmp(buf, "ababcf", 6))
11152    exit(1);
11153  strcpy(buf, "abcdefghi");
11154  mch_memmove(buf + 2, buf, 3);
11155  if (strncmp(buf, "cdedef", 6))
11156    exit(1);
11157  exit(0); /* libc version works properly.  */
11158}'
11159
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5
11161$as_echo_n "checking whether memmove handles overlaps... " >&6; }
11162if test "${vim_cv_memmove_handles_overlap+set}" = set; then :
11163  $as_echo_n "(cached) " >&6
11164else
11165
11166    if test "$cross_compiling" = yes; then :
11167
11168	as_fn_error "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5
11169
11170else
11171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172/* end confdefs.h.  */
11173#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
11174_ACEOF
11175if ac_fn_c_try_run "$LINENO"; then :
11176
11177	vim_cv_memmove_handles_overlap=yes
11178
11179else
11180
11181	vim_cv_memmove_handles_overlap=no
11182
11183fi
11184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11185  conftest.$ac_objext conftest.beam conftest.$ac_ext
11186fi
11187
11188
11189fi
11190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5
11191$as_echo "$vim_cv_memmove_handles_overlap" >&6; }
11192
11193if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then
11194  $as_echo "#define USEMEMMOVE 1" >>confdefs.h
11195
11196else
11197  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5
11198$as_echo_n "checking whether bcopy handles overlaps... " >&6; }
11199if test "${vim_cv_bcopy_handles_overlap+set}" = set; then :
11200  $as_echo_n "(cached) " >&6
11201else
11202
11203      if test "$cross_compiling" = yes; then :
11204
11205	as_fn_error "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5
11206
11207else
11208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209/* end confdefs.h.  */
11210#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog
11211_ACEOF
11212if ac_fn_c_try_run "$LINENO"; then :
11213
11214	vim_cv_bcopy_handles_overlap=yes
11215
11216else
11217
11218	vim_cv_bcopy_handles_overlap=no
11219
11220fi
11221rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11222  conftest.$ac_objext conftest.beam conftest.$ac_ext
11223fi
11224
11225
11226fi
11227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5
11228$as_echo "$vim_cv_bcopy_handles_overlap" >&6; }
11229
11230  if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then
11231    $as_echo "#define USEBCOPY 1" >>confdefs.h
11232
11233  else
11234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5
11235$as_echo_n "checking whether memcpy handles overlaps... " >&6; }
11236if test "${vim_cv_memcpy_handles_overlap+set}" = set; then :
11237  $as_echo_n "(cached) " >&6
11238else
11239
11240	if test "$cross_compiling" = yes; then :
11241
11242	    as_fn_error "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5
11243
11244else
11245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11246/* end confdefs.h.  */
11247#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog
11248_ACEOF
11249if ac_fn_c_try_run "$LINENO"; then :
11250
11251	    vim_cv_memcpy_handles_overlap=yes
11252
11253else
11254
11255	    vim_cv_memcpy_handles_overlap=no
11256
11257fi
11258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11259  conftest.$ac_objext conftest.beam conftest.$ac_ext
11260fi
11261
11262
11263fi
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5
11265$as_echo "$vim_cv_memcpy_handles_overlap" >&6; }
11266
11267    if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then
11268      $as_echo "#define USEMEMCPY 1" >>confdefs.h
11269
11270    fi
11271  fi
11272fi
11273
11274
11275
11276if test "$enable_multibyte" = "yes"; then
11277  cflags_save=$CFLAGS
11278  ldflags_save=$LDFLAGS
11279  if test "x$x_includes" != "xNONE" ; then
11280    CFLAGS="$CFLAGS -I$x_includes"
11281    LDFLAGS="$X_LIBS $LDFLAGS -lX11"
11282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5
11283$as_echo_n "checking whether X_LOCALE needed... " >&6; }
11284    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285/* end confdefs.h.  */
11286#include <X11/Xlocale.h>
11287int
11288main ()
11289{
11290
11291  ;
11292  return 0;
11293}
11294_ACEOF
11295if ac_fn_c_try_compile "$LINENO"; then :
11296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11297/* end confdefs.h.  */
11298
11299/* Override any GCC internal prototype to avoid an error.
11300   Use char because int might match the return type of a GCC
11301   builtin and then its argument prototype would still apply.  */
11302#ifdef __cplusplus
11303extern "C"
11304#endif
11305char _Xsetlocale ();
11306int
11307main ()
11308{
11309return _Xsetlocale ();
11310  ;
11311  return 0;
11312}
11313_ACEOF
11314if ac_fn_c_try_link "$LINENO"; then :
11315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11316$as_echo "yes" >&6; }
11317		$as_echo "#define X_LOCALE 1" >>confdefs.h
11318
11319else
11320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11321$as_echo "no" >&6; }
11322fi
11323rm -f core conftest.err conftest.$ac_objext \
11324    conftest$ac_exeext conftest.$ac_ext
11325else
11326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11327$as_echo "no" >&6; }
11328fi
11329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11330  fi
11331  CFLAGS=$cflags_save
11332  LDFLAGS=$ldflags_save
11333fi
11334
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5
11336$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; }
11337if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then :
11338  $as_echo_n "(cached) " >&6
11339else
11340  ac_check_lib_save_LIBS=$LIBS
11341LIBS="-lxpg4  $LIBS"
11342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343/* end confdefs.h.  */
11344
11345/* Override any GCC internal prototype to avoid an error.
11346   Use char because int might match the return type of a GCC
11347   builtin and then its argument prototype would still apply.  */
11348#ifdef __cplusplus
11349extern "C"
11350#endif
11351char _xpg4_setrunelocale ();
11352int
11353main ()
11354{
11355return _xpg4_setrunelocale ();
11356  ;
11357  return 0;
11358}
11359_ACEOF
11360if ac_fn_c_try_link "$LINENO"; then :
11361  ac_cv_lib_xpg4__xpg4_setrunelocale=yes
11362else
11363  ac_cv_lib_xpg4__xpg4_setrunelocale=no
11364fi
11365rm -f core conftest.err conftest.$ac_objext \
11366    conftest$ac_exeext conftest.$ac_ext
11367LIBS=$ac_check_lib_save_LIBS
11368fi
11369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
11370$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
11371if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = x""yes; then :
11372  LIBS="$LIBS -lxpg4"
11373fi
11374
11375
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5
11377$as_echo_n "checking how to create tags... " >&6; }
11378test -f tags && mv tags tags.save
11379if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
11380  TAGPRG="ctags -I INIT+ --fields=+S"
11381else
11382  TAGPRG="ctags"
11383  (eval etags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
11384  (eval etags -c   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
11385  (eval ctags	   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
11386  (eval ctags -t   /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
11387  (eval ctags -ts  /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
11388  (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
11389  (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
11390fi
11391test -f tags.save && mv tags.save tags
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5
11393$as_echo "$TAGPRG" >&6; }
11394
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5
11396$as_echo_n "checking how to run man with a section nr... " >&6; }
11397MANDEF="man"
11398(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
11399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5
11400$as_echo "$MANDEF" >&6; }
11401if test "$MANDEF" = "man -s"; then
11402  $as_echo "#define USEMAN_S 1" >>confdefs.h
11403
11404fi
11405
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5
11407$as_echo_n "checking --disable-nls argument... " >&6; }
11408# Check whether --enable-nls was given.
11409if test "${enable_nls+set}" = set; then :
11410  enableval=$enable_nls;
11411else
11412  enable_nls="yes"
11413fi
11414
11415
11416if test "$enable_nls" = "yes"; then
11417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
11419
11420  INSTALL_LANGS=install-languages
11421
11422  INSTALL_TOOL_LANGS=install-tool-languages
11423
11424
11425  # Extract the first word of "msgfmt", so it can be a program name with args.
11426set dummy msgfmt; ac_word=$2
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428$as_echo_n "checking for $ac_word... " >&6; }
11429if test "${ac_cv_prog_MSGFMT+set}" = set; then :
11430  $as_echo_n "(cached) " >&6
11431else
11432  if test -n "$MSGFMT"; then
11433  ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
11434else
11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438  IFS=$as_save_IFS
11439  test -z "$as_dir" && as_dir=.
11440    for ac_exec_ext in '' $ac_executable_extensions; do
11441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11442    ac_cv_prog_MSGFMT="msgfmt"
11443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11444    break 2
11445  fi
11446done
11447  done
11448IFS=$as_save_IFS
11449
11450fi
11451fi
11452MSGFMT=$ac_cv_prog_MSGFMT
11453if test -n "$MSGFMT"; then
11454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11455$as_echo "$MSGFMT" >&6; }
11456else
11457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458$as_echo "no" >&6; }
11459fi
11460
11461
11462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5
11463$as_echo_n "checking for NLS... " >&6; }
11464  if test -f po/Makefile; then
11465    have_gettext="no"
11466    if test -n "$MSGFMT"; then
11467      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468/* end confdefs.h.  */
11469#include <libintl.h>
11470int
11471main ()
11472{
11473gettext("Test");
11474  ;
11475  return 0;
11476}
11477_ACEOF
11478if ac_fn_c_try_link "$LINENO"; then :
11479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5
11480$as_echo "gettext() works" >&6; }; have_gettext="yes"
11481else
11482  olibs=$LIBS
11483	  LIBS="$LIBS -lintl"
11484	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485/* end confdefs.h.  */
11486#include <libintl.h>
11487int
11488main ()
11489{
11490gettext("Test");
11491  ;
11492  return 0;
11493}
11494_ACEOF
11495if ac_fn_c_try_link "$LINENO"; then :
11496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5
11497$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"
11498else
11499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5
11500$as_echo "gettext() doesn't work" >&6; };
11501	      LIBS=$olibs
11502fi
11503rm -f core conftest.err conftest.$ac_objext \
11504    conftest$ac_exeext conftest.$ac_ext
11505fi
11506rm -f core conftest.err conftest.$ac_objext \
11507    conftest$ac_exeext conftest.$ac_ext
11508    else
11509      { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5
11510$as_echo "msgfmt not found - disabled" >&6; };
11511    fi
11512    if test $have_gettext = "yes"; then
11513      $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11514
11515      MAKEMO=yes
11516
11517            for ac_func in bind_textdomain_codeset
11518do :
11519  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11520if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
11521  cat >>confdefs.h <<_ACEOF
11522#define HAVE_BIND_TEXTDOMAIN_CODESET 1
11523_ACEOF
11524
11525fi
11526done
11527
11528            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5
11529$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; }
11530      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531/* end confdefs.h.  */
11532#include <libintl.h>
11533		extern int _nl_msg_cat_cntr;
11534int
11535main ()
11536{
11537++_nl_msg_cat_cntr;
11538  ;
11539  return 0;
11540}
11541_ACEOF
11542if ac_fn_c_try_link "$LINENO"; then :
11543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11544$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h
11545
11546else
11547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548$as_echo "no" >&6; }
11549fi
11550rm -f core conftest.err conftest.$ac_objext \
11551    conftest$ac_exeext conftest.$ac_ext
11552    fi
11553  else
11554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5
11555$as_echo "no \"po/Makefile\" - disabled" >&6; };
11556  fi
11557else
11558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11559$as_echo "yes" >&6; }
11560fi
11561
11562ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
11563if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11564  DLL=dlfcn.h
11565else
11566  ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default"
11567if test "x$ac_cv_header_dl_h" = x""yes; then :
11568  DLL=dl.h
11569fi
11570
11571
11572fi
11573
11574
11575if test x${DLL} = xdlfcn.h; then
11576
11577$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
11578
11579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5
11580$as_echo_n "checking for dlopen()... " >&6; }
11581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582/* end confdefs.h.  */
11583
11584int
11585main ()
11586{
11587
11588		extern void* dlopen();
11589		dlopen();
11590
11591  ;
11592  return 0;
11593}
11594_ACEOF
11595if ac_fn_c_try_link "$LINENO"; then :
11596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11597$as_echo "yes" >&6; };
11598
11599$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
11600
11601else
11602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603$as_echo "no" >&6; };
11604	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5
11605$as_echo_n "checking for dlopen() in -ldl... " >&6; }
11606	      olibs=$LIBS
11607	      LIBS="$LIBS -ldl"
11608	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609/* end confdefs.h.  */
11610
11611int
11612main ()
11613{
11614
11615				extern void* dlopen();
11616				dlopen();
11617
11618  ;
11619  return 0;
11620}
11621_ACEOF
11622if ac_fn_c_try_link "$LINENO"; then :
11623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11624$as_echo "yes" >&6; };
11625
11626$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
11627
11628else
11629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11630$as_echo "no" >&6; };
11631			  LIBS=$olibs
11632fi
11633rm -f core conftest.err conftest.$ac_objext \
11634    conftest$ac_exeext conftest.$ac_ext
11635fi
11636rm -f core conftest.err conftest.$ac_objext \
11637    conftest$ac_exeext conftest.$ac_ext
11638      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5
11639$as_echo_n "checking for dlsym()... " >&6; }
11640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641/* end confdefs.h.  */
11642
11643int
11644main ()
11645{
11646
11647		extern void* dlsym();
11648		dlsym();
11649
11650  ;
11651  return 0;
11652}
11653_ACEOF
11654if ac_fn_c_try_link "$LINENO"; then :
11655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11656$as_echo "yes" >&6; };
11657
11658$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
11659
11660else
11661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662$as_echo "no" >&6; };
11663	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5
11664$as_echo_n "checking for dlsym() in -ldl... " >&6; }
11665	      olibs=$LIBS
11666	      LIBS="$LIBS -ldl"
11667	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668/* end confdefs.h.  */
11669
11670int
11671main ()
11672{
11673
11674				extern void* dlsym();
11675				dlsym();
11676
11677  ;
11678  return 0;
11679}
11680_ACEOF
11681if ac_fn_c_try_link "$LINENO"; then :
11682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11683$as_echo "yes" >&6; };
11684
11685$as_echo "#define HAVE_DLSYM 1" >>confdefs.h
11686
11687else
11688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11689$as_echo "no" >&6; };
11690			  LIBS=$olibs
11691fi
11692rm -f core conftest.err conftest.$ac_objext \
11693    conftest$ac_exeext conftest.$ac_ext
11694fi
11695rm -f core conftest.err conftest.$ac_objext \
11696    conftest$ac_exeext conftest.$ac_ext
11697elif test x${DLL} = xdl.h; then
11698
11699$as_echo "#define HAVE_DL_H 1" >>confdefs.h
11700
11701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5
11702$as_echo_n "checking for shl_load()... " >&6; }
11703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11704/* end confdefs.h.  */
11705
11706int
11707main ()
11708{
11709
11710		extern void* shl_load();
11711		shl_load();
11712
11713  ;
11714  return 0;
11715}
11716_ACEOF
11717if ac_fn_c_try_link "$LINENO"; then :
11718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11719$as_echo "yes" >&6; };
11720
11721$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11722
11723else
11724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725$as_echo "no" >&6; };
11726	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5
11727$as_echo_n "checking for shl_load() in -ldld... " >&6; }
11728	  olibs=$LIBS
11729	  LIBS="$LIBS -ldld"
11730	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731/* end confdefs.h.  */
11732
11733int
11734main ()
11735{
11736
11737			extern void* shl_load();
11738			shl_load();
11739
11740  ;
11741  return 0;
11742}
11743_ACEOF
11744if ac_fn_c_try_link "$LINENO"; then :
11745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11746$as_echo "yes" >&6; };
11747
11748$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11749
11750else
11751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11752$as_echo "no" >&6; };
11753		  LIBS=$olibs
11754fi
11755rm -f core conftest.err conftest.$ac_objext \
11756    conftest$ac_exeext conftest.$ac_ext
11757fi
11758rm -f core conftest.err conftest.$ac_objext \
11759    conftest$ac_exeext conftest.$ac_ext
11760fi
11761for ac_header in setjmp.h
11762do :
11763  ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11764if test "x$ac_cv_header_setjmp_h" = x""yes; then :
11765  cat >>confdefs.h <<_ACEOF
11766#define HAVE_SETJMP_H 1
11767_ACEOF
11768
11769fi
11770
11771done
11772
11773
11774if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
11775    if echo $LIBS | grep -e '-ldl' >/dev/null; then
11776    LIBS=`echo $LIBS | sed s/-ldl//`
11777    PERL_LIBS="$PERL_LIBS -ldl"
11778  fi
11779fi
11780
11781if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
11782	&& test "x$GUITYPE" != "xCARBONGUI"; then
11783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Carbon" >&5
11784$as_echo_n "checking whether we need -framework Carbon... " >&6; }
11785    if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
11786	|| test "x$features" = "xhuge"; then
11787    LIBS="$LIBS -framework Carbon"
11788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789$as_echo "yes" >&6; }
11790  else
11791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792$as_echo "no" >&6; }
11793  fi
11794fi
11795if test "x$MACARCH" = "xboth"; then
11796  LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
11797fi
11798
11799DEPEND_CFLAGS_FILTER=
11800if test "$GCC" = yes; then
11801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5
11802$as_echo_n "checking for GCC 3 or later... " >&6; }
11803  gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
11804  if test "$gccmajor" -gt "2"; then
11805    DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
11806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11807$as_echo "yes" >&6; }
11808  else
11809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810$as_echo "no" >&6; }
11811  fi
11812        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5
11813$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; }
11814  if test "$gccmajor" -gt "3"; then
11815    CFLAGS=`echo "$CFLAGS" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=.//g' -e 's/-D_FORTIFY_SOURCE=.//g' -e 's/$/ -D_FORTIFY_SOURCE=1/'`
11816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11817$as_echo "yes" >&6; }
11818  else
11819    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820$as_echo "no" >&6; }
11821  fi
11822fi
11823
11824
11825ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
11826
11827cat >confcache <<\_ACEOF
11828# This file is a shell script that caches the results of configure
11829# tests run on this system so they can be shared between configure
11830# scripts and configure runs, see configure's option --config-cache.
11831# It is not useful on other systems.  If it contains results you don't
11832# want to keep, you may remove or edit it.
11833#
11834# config.status only pays attention to the cache file if you give it
11835# the --recheck option to rerun configure.
11836#
11837# `ac_cv_env_foo' variables (set or unset) will be overridden when
11838# loading this file, other *unset* `ac_cv_foo' will be assigned the
11839# following values.
11840
11841_ACEOF
11842
11843# The following way of writing the cache mishandles newlines in values,
11844# but we know of no workaround that is simple, portable, and efficient.
11845# So, we kill variables containing newlines.
11846# Ultrix sh set writes to stderr and can't be redirected directly,
11847# and sets the high bit in the cache file unless we assign to the vars.
11848(
11849  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11850    eval ac_val=\$$ac_var
11851    case $ac_val in #(
11852    *${as_nl}*)
11853      case $ac_var in #(
11854      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11855$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11856      esac
11857      case $ac_var in #(
11858      _ | IFS | as_nl) ;; #(
11859      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11860      *) { eval $ac_var=; unset $ac_var;} ;;
11861      esac ;;
11862    esac
11863  done
11864
11865  (set) 2>&1 |
11866    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11867    *${as_nl}ac_space=\ *)
11868      # `set' does not quote correctly, so add quotes: double-quote
11869      # substitution turns \\\\ into \\, and sed turns \\ into \.
11870      sed -n \
11871	"s/'/'\\\\''/g;
11872	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11873      ;; #(
11874    *)
11875      # `set' quotes correctly as required by POSIX, so do not add quotes.
11876      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11877      ;;
11878    esac |
11879    sort
11880) |
11881  sed '
11882     /^ac_cv_env_/b end
11883     t clear
11884     :clear
11885     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11886     t end
11887     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11888     :end' >>confcache
11889if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11890  if test -w "$cache_file"; then
11891    test "x$cache_file" != "x/dev/null" &&
11892      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11893$as_echo "$as_me: updating cache $cache_file" >&6;}
11894    cat confcache >$cache_file
11895  else
11896    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11897$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11898  fi
11899fi
11900rm -f confcache
11901
11902test "x$prefix" = xNONE && prefix=$ac_default_prefix
11903# Let make expand exec_prefix.
11904test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11905
11906DEFS=-DHAVE_CONFIG_H
11907
11908ac_libobjs=
11909ac_ltlibobjs=
11910for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11911  # 1. Remove the extension, and $U if already installed.
11912  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11913  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11914  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11915  #    will be set to the directory where LIBOBJS objects are built.
11916  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11917  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11918done
11919LIBOBJS=$ac_libobjs
11920
11921LTLIBOBJS=$ac_ltlibobjs
11922
11923
11924
11925
11926: ${CONFIG_STATUS=./config.status}
11927ac_write_fail=0
11928ac_clean_files_save=$ac_clean_files
11929ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11931$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11932as_write_fail=0
11933cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11934#! $SHELL
11935# Generated by $as_me.
11936# Run this file to recreate the current configuration.
11937# Compiler output produced by configure, useful for debugging
11938# configure, is in config.log if it exists.
11939
11940debug=false
11941ac_cs_recheck=false
11942ac_cs_silent=false
11943
11944SHELL=\${CONFIG_SHELL-$SHELL}
11945export SHELL
11946_ASEOF
11947cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11948## -------------------- ##
11949## M4sh Initialization. ##
11950## -------------------- ##
11951
11952# Be more Bourne compatible
11953DUALCASE=1; export DUALCASE # for MKS sh
11954if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11955  emulate sh
11956  NULLCMD=:
11957  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11958  # is contrary to our usage.  Disable this feature.
11959  alias -g '${1+"$@"}'='"$@"'
11960  setopt NO_GLOB_SUBST
11961else
11962  case `(set -o) 2>/dev/null` in #(
11963  *posix*) :
11964    set -o posix ;; #(
11965  *) :
11966     ;;
11967esac
11968fi
11969
11970
11971as_nl='
11972'
11973export as_nl
11974# Printing a long string crashes Solaris 7 /usr/bin/printf.
11975as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11976as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11977as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11978# Prefer a ksh shell builtin over an external printf program on Solaris,
11979# but without wasting forks for bash or zsh.
11980if test -z "$BASH_VERSION$ZSH_VERSION" \
11981    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11982  as_echo='print -r --'
11983  as_echo_n='print -rn --'
11984elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11985  as_echo='printf %s\n'
11986  as_echo_n='printf %s'
11987else
11988  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11989    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11990    as_echo_n='/usr/ucb/echo -n'
11991  else
11992    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11993    as_echo_n_body='eval
11994      arg=$1;
11995      case $arg in #(
11996      *"$as_nl"*)
11997	expr "X$arg" : "X\\(.*\\)$as_nl";
11998	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11999      esac;
12000      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12001    '
12002    export as_echo_n_body
12003    as_echo_n='sh -c $as_echo_n_body as_echo'
12004  fi
12005  export as_echo_body
12006  as_echo='sh -c $as_echo_body as_echo'
12007fi
12008
12009# The user is always right.
12010if test "${PATH_SEPARATOR+set}" != set; then
12011  PATH_SEPARATOR=:
12012  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12013    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12014      PATH_SEPARATOR=';'
12015  }
12016fi
12017
12018
12019# IFS
12020# We need space, tab and new line, in precisely that order.  Quoting is
12021# there to prevent editors from complaining about space-tab.
12022# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12023# splitting by setting IFS to empty value.)
12024IFS=" ""	$as_nl"
12025
12026# Find who we are.  Look in the path if we contain no directory separator.
12027case $0 in #((
12028  *[\\/]* ) as_myself=$0 ;;
12029  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030for as_dir in $PATH
12031do
12032  IFS=$as_save_IFS
12033  test -z "$as_dir" && as_dir=.
12034    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12035  done
12036IFS=$as_save_IFS
12037
12038     ;;
12039esac
12040# We did not find ourselves, most probably we were run as `sh COMMAND'
12041# in which case we are not to be found in the path.
12042if test "x$as_myself" = x; then
12043  as_myself=$0
12044fi
12045if test ! -f "$as_myself"; then
12046  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12047  exit 1
12048fi
12049
12050# Unset variables that we do not need and which cause bugs (e.g. in
12051# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12052# suppresses any "Segmentation fault" message there.  '((' could
12053# trigger a bug in pdksh 5.2.14.
12054for as_var in BASH_ENV ENV MAIL MAILPATH
12055do eval test x\${$as_var+set} = xset \
12056  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12057done
12058PS1='$ '
12059PS2='> '
12060PS4='+ '
12061
12062# NLS nuisances.
12063LC_ALL=C
12064export LC_ALL
12065LANGUAGE=C
12066export LANGUAGE
12067
12068# CDPATH.
12069(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12070
12071
12072# as_fn_error ERROR [LINENO LOG_FD]
12073# ---------------------------------
12074# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12075# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12076# script with status $?, using 1 if that was 0.
12077as_fn_error ()
12078{
12079  as_status=$?; test $as_status -eq 0 && as_status=1
12080  if test "$3"; then
12081    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12082    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12083  fi
12084  $as_echo "$as_me: error: $1" >&2
12085  as_fn_exit $as_status
12086} # as_fn_error
12087
12088
12089# as_fn_set_status STATUS
12090# -----------------------
12091# Set $? to STATUS, without forking.
12092as_fn_set_status ()
12093{
12094  return $1
12095} # as_fn_set_status
12096
12097# as_fn_exit STATUS
12098# -----------------
12099# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12100as_fn_exit ()
12101{
12102  set +e
12103  as_fn_set_status $1
12104  exit $1
12105} # as_fn_exit
12106
12107# as_fn_unset VAR
12108# ---------------
12109# Portably unset VAR.
12110as_fn_unset ()
12111{
12112  { eval $1=; unset $1;}
12113}
12114as_unset=as_fn_unset
12115# as_fn_append VAR VALUE
12116# ----------------------
12117# Append the text in VALUE to the end of the definition contained in VAR. Take
12118# advantage of any shell optimizations that allow amortized linear growth over
12119# repeated appends, instead of the typical quadratic growth present in naive
12120# implementations.
12121if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12122  eval 'as_fn_append ()
12123  {
12124    eval $1+=\$2
12125  }'
12126else
12127  as_fn_append ()
12128  {
12129    eval $1=\$$1\$2
12130  }
12131fi # as_fn_append
12132
12133# as_fn_arith ARG...
12134# ------------------
12135# Perform arithmetic evaluation on the ARGs, and store the result in the
12136# global $as_val. Take advantage of shells that can avoid forks. The arguments
12137# must be portable across $(()) and expr.
12138if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12139  eval 'as_fn_arith ()
12140  {
12141    as_val=$(( $* ))
12142  }'
12143else
12144  as_fn_arith ()
12145  {
12146    as_val=`expr "$@" || test $? -eq 1`
12147  }
12148fi # as_fn_arith
12149
12150
12151if expr a : '\(a\)' >/dev/null 2>&1 &&
12152   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12153  as_expr=expr
12154else
12155  as_expr=false
12156fi
12157
12158if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12159  as_basename=basename
12160else
12161  as_basename=false
12162fi
12163
12164if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12165  as_dirname=dirname
12166else
12167  as_dirname=false
12168fi
12169
12170as_me=`$as_basename -- "$0" ||
12171$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12172	 X"$0" : 'X\(//\)$' \| \
12173	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12174$as_echo X/"$0" |
12175    sed '/^.*\/\([^/][^/]*\)\/*$/{
12176	    s//\1/
12177	    q
12178	  }
12179	  /^X\/\(\/\/\)$/{
12180	    s//\1/
12181	    q
12182	  }
12183	  /^X\/\(\/\).*/{
12184	    s//\1/
12185	    q
12186	  }
12187	  s/.*/./; q'`
12188
12189# Avoid depending upon Character Ranges.
12190as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12191as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12192as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12193as_cr_digits='0123456789'
12194as_cr_alnum=$as_cr_Letters$as_cr_digits
12195
12196ECHO_C= ECHO_N= ECHO_T=
12197case `echo -n x` in #(((((
12198-n*)
12199  case `echo 'xy\c'` in
12200  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12201  xy)  ECHO_C='\c';;
12202  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12203       ECHO_T='	';;
12204  esac;;
12205*)
12206  ECHO_N='-n';;
12207esac
12208
12209rm -f conf$$ conf$$.exe conf$$.file
12210if test -d conf$$.dir; then
12211  rm -f conf$$.dir/conf$$.file
12212else
12213  rm -f conf$$.dir
12214  mkdir conf$$.dir 2>/dev/null
12215fi
12216if (echo >conf$$.file) 2>/dev/null; then
12217  if ln -s conf$$.file conf$$ 2>/dev/null; then
12218    as_ln_s='ln -s'
12219    # ... but there are two gotchas:
12220    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12221    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12222    # In both cases, we have to default to `cp -p'.
12223    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12224      as_ln_s='cp -p'
12225  elif ln conf$$.file conf$$ 2>/dev/null; then
12226    as_ln_s=ln
12227  else
12228    as_ln_s='cp -p'
12229  fi
12230else
12231  as_ln_s='cp -p'
12232fi
12233rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12234rmdir conf$$.dir 2>/dev/null
12235
12236
12237# as_fn_mkdir_p
12238# -------------
12239# Create "$as_dir" as a directory, including parents if necessary.
12240as_fn_mkdir_p ()
12241{
12242
12243  case $as_dir in #(
12244  -*) as_dir=./$as_dir;;
12245  esac
12246  test -d "$as_dir" || eval $as_mkdir_p || {
12247    as_dirs=
12248    while :; do
12249      case $as_dir in #(
12250      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12251      *) as_qdir=$as_dir;;
12252      esac
12253      as_dirs="'$as_qdir' $as_dirs"
12254      as_dir=`$as_dirname -- "$as_dir" ||
12255$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12256	 X"$as_dir" : 'X\(//\)[^/]' \| \
12257	 X"$as_dir" : 'X\(//\)$' \| \
12258	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12259$as_echo X"$as_dir" |
12260    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12261	    s//\1/
12262	    q
12263	  }
12264	  /^X\(\/\/\)[^/].*/{
12265	    s//\1/
12266	    q
12267	  }
12268	  /^X\(\/\/\)$/{
12269	    s//\1/
12270	    q
12271	  }
12272	  /^X\(\/\).*/{
12273	    s//\1/
12274	    q
12275	  }
12276	  s/.*/./; q'`
12277      test -d "$as_dir" && break
12278    done
12279    test -z "$as_dirs" || eval "mkdir $as_dirs"
12280  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12281
12282
12283} # as_fn_mkdir_p
12284if mkdir -p . 2>/dev/null; then
12285  as_mkdir_p='mkdir -p "$as_dir"'
12286else
12287  test -d ./-p && rmdir ./-p
12288  as_mkdir_p=false
12289fi
12290
12291if test -x / >/dev/null 2>&1; then
12292  as_test_x='test -x'
12293else
12294  if ls -dL / >/dev/null 2>&1; then
12295    as_ls_L_option=L
12296  else
12297    as_ls_L_option=
12298  fi
12299  as_test_x='
12300    eval sh -c '\''
12301      if test -d "$1"; then
12302	test -d "$1/.";
12303      else
12304	case $1 in #(
12305	-*)set "./$1";;
12306	esac;
12307	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12308	???[sx]*):;;*)false;;esac;fi
12309    '\'' sh
12310  '
12311fi
12312as_executable_p=$as_test_x
12313
12314# Sed expression to map a string onto a valid CPP name.
12315as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12316
12317# Sed expression to map a string onto a valid variable name.
12318as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12319
12320
12321exec 6>&1
12322## ----------------------------------- ##
12323## Main body of $CONFIG_STATUS script. ##
12324## ----------------------------------- ##
12325_ASEOF
12326test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12327
12328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12329# Save the log message, to keep $0 and so on meaningful, and to
12330# report actual input values of CONFIG_FILES etc. instead of their
12331# values after options handling.
12332ac_log="
12333This file was extended by $as_me, which was
12334generated by GNU Autoconf 2.65.  Invocation command line was
12335
12336  CONFIG_FILES    = $CONFIG_FILES
12337  CONFIG_HEADERS  = $CONFIG_HEADERS
12338  CONFIG_LINKS    = $CONFIG_LINKS
12339  CONFIG_COMMANDS = $CONFIG_COMMANDS
12340  $ $0 $@
12341
12342on `(hostname || uname -n) 2>/dev/null | sed 1q`
12343"
12344
12345_ACEOF
12346
12347case $ac_config_files in *"
12348"*) set x $ac_config_files; shift; ac_config_files=$*;;
12349esac
12350
12351case $ac_config_headers in *"
12352"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12353esac
12354
12355
12356cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12357# Files that config.status was made for.
12358config_files="$ac_config_files"
12359config_headers="$ac_config_headers"
12360
12361_ACEOF
12362
12363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12364ac_cs_usage="\
12365\`$as_me' instantiates files and other configuration actions
12366from templates according to the current configuration.  Unless the files
12367and actions are specified as TAGs, all are instantiated by default.
12368
12369Usage: $0 [OPTION]... [TAG]...
12370
12371  -h, --help       print this help, then exit
12372  -V, --version    print version number and configuration settings, then exit
12373      --config     print configuration, then exit
12374  -q, --quiet, --silent
12375                   do not print progress messages
12376  -d, --debug      don't remove temporary files
12377      --recheck    update $as_me by reconfiguring in the same conditions
12378      --file=FILE[:TEMPLATE]
12379                   instantiate the configuration file FILE
12380      --header=FILE[:TEMPLATE]
12381                   instantiate the configuration header FILE
12382
12383Configuration files:
12384$config_files
12385
12386Configuration headers:
12387$config_headers
12388
12389Report bugs to the package provider."
12390
12391_ACEOF
12392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12393ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12394ac_cs_version="\\
12395config.status
12396configured by $0, generated by GNU Autoconf 2.65,
12397  with options \\"\$ac_cs_config\\"
12398
12399Copyright (C) 2009 Free Software Foundation, Inc.
12400This config.status script is free software; the Free Software Foundation
12401gives unlimited permission to copy, distribute and modify it."
12402
12403ac_pwd='$ac_pwd'
12404srcdir='$srcdir'
12405AWK='$AWK'
12406test -n "\$AWK" || AWK=awk
12407_ACEOF
12408
12409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12410# The default lists apply if the user does not specify any file.
12411ac_need_defaults=:
12412while test $# != 0
12413do
12414  case $1 in
12415  --*=*)
12416    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12417    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12418    ac_shift=:
12419    ;;
12420  *)
12421    ac_option=$1
12422    ac_optarg=$2
12423    ac_shift=shift
12424    ;;
12425  esac
12426
12427  case $ac_option in
12428  # Handling of the options.
12429  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12430    ac_cs_recheck=: ;;
12431  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12432    $as_echo "$ac_cs_version"; exit ;;
12433  --config | --confi | --conf | --con | --co | --c )
12434    $as_echo "$ac_cs_config"; exit ;;
12435  --debug | --debu | --deb | --de | --d | -d )
12436    debug=: ;;
12437  --file | --fil | --fi | --f )
12438    $ac_shift
12439    case $ac_optarg in
12440    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12441    esac
12442    as_fn_append CONFIG_FILES " '$ac_optarg'"
12443    ac_need_defaults=false;;
12444  --header | --heade | --head | --hea )
12445    $ac_shift
12446    case $ac_optarg in
12447    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12448    esac
12449    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12450    ac_need_defaults=false;;
12451  --he | --h)
12452    # Conflict between --help and --header
12453    as_fn_error "ambiguous option: \`$1'
12454Try \`$0 --help' for more information.";;
12455  --help | --hel | -h )
12456    $as_echo "$ac_cs_usage"; exit ;;
12457  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12458  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12459    ac_cs_silent=: ;;
12460
12461  # This is an error.
12462  -*) as_fn_error "unrecognized option: \`$1'
12463Try \`$0 --help' for more information." ;;
12464
12465  *) as_fn_append ac_config_targets " $1"
12466     ac_need_defaults=false ;;
12467
12468  esac
12469  shift
12470done
12471
12472ac_configure_extra_args=
12473
12474if $ac_cs_silent; then
12475  exec 6>/dev/null
12476  ac_configure_extra_args="$ac_configure_extra_args --silent"
12477fi
12478
12479_ACEOF
12480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12481if \$ac_cs_recheck; then
12482  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12483  shift
12484  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12485  CONFIG_SHELL='$SHELL'
12486  export CONFIG_SHELL
12487  exec "\$@"
12488fi
12489
12490_ACEOF
12491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12492exec 5>>auto/config.log
12493{
12494  echo
12495  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12496## Running $as_me. ##
12497_ASBOX
12498  $as_echo "$ac_log"
12499} >&5
12500
12501_ACEOF
12502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12503_ACEOF
12504
12505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12506
12507# Handling of arguments.
12508for ac_config_target in $ac_config_targets
12509do
12510  case $ac_config_target in
12511    "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
12512    "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
12513
12514  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12515  esac
12516done
12517
12518
12519# If the user did not use the arguments to specify the items to instantiate,
12520# then the envvar interface is used.  Set only those that are not.
12521# We use the long form for the default assignment because of an extremely
12522# bizarre bug on SunOS 4.1.3.
12523if $ac_need_defaults; then
12524  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12525  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12526fi
12527
12528# Have a temporary directory for convenience.  Make it in the build tree
12529# simply because there is no reason against having it here, and in addition,
12530# creating and moving files from /tmp can sometimes cause problems.
12531# Hook for its removal unless debugging.
12532# Note that there is a small window in which the directory will not be cleaned:
12533# after its creation but before its name has been assigned to `$tmp'.
12534$debug ||
12535{
12536  tmp=
12537  trap 'exit_status=$?
12538  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12539' 0
12540  trap 'as_fn_exit 1' 1 2 13 15
12541}
12542# Create a (secure) tmp directory for tmp files.
12543
12544{
12545  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12546  test -n "$tmp" && test -d "$tmp"
12547}  ||
12548{
12549  tmp=./conf$$-$RANDOM
12550  (umask 077 && mkdir "$tmp")
12551} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12552
12553# Set up the scripts for CONFIG_FILES section.
12554# No need to generate them if there are no CONFIG_FILES.
12555# This happens for instance with `./config.status config.h'.
12556if test -n "$CONFIG_FILES"; then
12557
12558
12559ac_cr=`echo X | tr X '\015'`
12560# On cygwin, bash can eat \r inside `` if the user requested igncr.
12561# But we know of no other shell where ac_cr would be empty at this
12562# point, so we can use a bashism as a fallback.
12563if test "x$ac_cr" = x; then
12564  eval ac_cr=\$\'\\r\'
12565fi
12566ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12567if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12568  ac_cs_awk_cr='\r'
12569else
12570  ac_cs_awk_cr=$ac_cr
12571fi
12572
12573echo 'BEGIN {' >"$tmp/subs1.awk" &&
12574_ACEOF
12575
12576
12577{
12578  echo "cat >conf$$subs.awk <<_ACEOF" &&
12579  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12580  echo "_ACEOF"
12581} >conf$$subs.sh ||
12582  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12583ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12584ac_delim='%!_!# '
12585for ac_last_try in false false false false false :; do
12586  . ./conf$$subs.sh ||
12587    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12588
12589  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12590  if test $ac_delim_n = $ac_delim_num; then
12591    break
12592  elif $ac_last_try; then
12593    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12594  else
12595    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12596  fi
12597done
12598rm -f conf$$subs.sh
12599
12600cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12601cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12602_ACEOF
12603sed -n '
12604h
12605s/^/S["/; s/!.*/"]=/
12606p
12607g
12608s/^[^!]*!//
12609:repl
12610t repl
12611s/'"$ac_delim"'$//
12612t delim
12613:nl
12614h
12615s/\(.\{148\}\)..*/\1/
12616t more1
12617s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12618p
12619n
12620b repl
12621:more1
12622s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12623p
12624g
12625s/.\{148\}//
12626t nl
12627:delim
12628h
12629s/\(.\{148\}\)..*/\1/
12630t more2
12631s/["\\]/\\&/g; s/^/"/; s/$/"/
12632p
12633b
12634:more2
12635s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12636p
12637g
12638s/.\{148\}//
12639t delim
12640' <conf$$subs.awk | sed '
12641/^[^""]/{
12642  N
12643  s/\n//
12644}
12645' >>$CONFIG_STATUS || ac_write_fail=1
12646rm -f conf$$subs.awk
12647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12648_ACAWK
12649cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12650  for (key in S) S_is_set[key] = 1
12651  FS = ""
12652
12653}
12654{
12655  line = $ 0
12656  nfields = split(line, field, "@")
12657  substed = 0
12658  len = length(field[1])
12659  for (i = 2; i < nfields; i++) {
12660    key = field[i]
12661    keylen = length(key)
12662    if (S_is_set[key]) {
12663      value = S[key]
12664      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12665      len += length(value) + length(field[++i])
12666      substed = 1
12667    } else
12668      len += 1 + keylen
12669  }
12670
12671  print line
12672}
12673
12674_ACAWK
12675_ACEOF
12676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12677if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12678  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12679else
12680  cat
12681fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12682  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12683_ACEOF
12684
12685# VPATH may cause trouble with some makes, so we remove $(srcdir),
12686# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12687# trailing colons and then remove the whole line if VPATH becomes empty
12688# (actually we leave an empty line to preserve line numbers).
12689if test "x$srcdir" = x.; then
12690  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12691s/:*\$(srcdir):*/:/
12692s/:*\${srcdir}:*/:/
12693s/:*@srcdir@:*/:/
12694s/^\([^=]*=[	 ]*\):*/\1/
12695s/:*$//
12696s/^[^=]*=[	 ]*$//
12697}'
12698fi
12699
12700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12701fi # test -n "$CONFIG_FILES"
12702
12703# Set up the scripts for CONFIG_HEADERS section.
12704# No need to generate them if there are no CONFIG_HEADERS.
12705# This happens for instance with `./config.status Makefile'.
12706if test -n "$CONFIG_HEADERS"; then
12707cat >"$tmp/defines.awk" <<\_ACAWK ||
12708BEGIN {
12709_ACEOF
12710
12711# Transform confdefs.h into an awk script `defines.awk', embedded as
12712# here-document in config.status, that substitutes the proper values into
12713# config.h.in to produce config.h.
12714
12715# Create a delimiter string that does not exist in confdefs.h, to ease
12716# handling of long lines.
12717ac_delim='%!_!# '
12718for ac_last_try in false false :; do
12719  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12720  if test -z "$ac_t"; then
12721    break
12722  elif $ac_last_try; then
12723    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12724  else
12725    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12726  fi
12727done
12728
12729# For the awk script, D is an array of macro values keyed by name,
12730# likewise P contains macro parameters if any.  Preserve backslash
12731# newline sequences.
12732
12733ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12734sed -n '
12735s/.\{148\}/&'"$ac_delim"'/g
12736t rset
12737:rset
12738s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12739t def
12740d
12741:def
12742s/\\$//
12743t bsnl
12744s/["\\]/\\&/g
12745s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12746D["\1"]=" \3"/p
12747s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12748d
12749:bsnl
12750s/["\\]/\\&/g
12751s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12752D["\1"]=" \3\\\\\\n"\\/p
12753t cont
12754s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12755t cont
12756d
12757:cont
12758n
12759s/.\{148\}/&'"$ac_delim"'/g
12760t clear
12761:clear
12762s/\\$//
12763t bsnlc
12764s/["\\]/\\&/g; s/^/"/; s/$/"/p
12765d
12766:bsnlc
12767s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12768b cont
12769' <confdefs.h | sed '
12770s/'"$ac_delim"'/"\\\
12771"/g' >>$CONFIG_STATUS || ac_write_fail=1
12772
12773cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12774  for (key in D) D_is_set[key] = 1
12775  FS = ""
12776}
12777/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12778  line = \$ 0
12779  split(line, arg, " ")
12780  if (arg[1] == "#") {
12781    defundef = arg[2]
12782    mac1 = arg[3]
12783  } else {
12784    defundef = substr(arg[1], 2)
12785    mac1 = arg[2]
12786  }
12787  split(mac1, mac2, "(") #)
12788  macro = mac2[1]
12789  prefix = substr(line, 1, index(line, defundef) - 1)
12790  if (D_is_set[macro]) {
12791    # Preserve the white space surrounding the "#".
12792    print prefix "define", macro P[macro] D[macro]
12793    next
12794  } else {
12795    # Replace #undef with comments.  This is necessary, for example,
12796    # in the case of _POSIX_SOURCE, which is predefined and required
12797    # on some systems where configure will not decide to define it.
12798    if (defundef == "undef") {
12799      print "/*", prefix defundef, macro, "*/"
12800      next
12801    }
12802  }
12803}
12804{ print }
12805_ACAWK
12806_ACEOF
12807cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12808  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12809fi # test -n "$CONFIG_HEADERS"
12810
12811
12812eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
12813shift
12814for ac_tag
12815do
12816  case $ac_tag in
12817  :[FHLC]) ac_mode=$ac_tag; continue;;
12818  esac
12819  case $ac_mode$ac_tag in
12820  :[FHL]*:*);;
12821  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12822  :[FH]-) ac_tag=-:-;;
12823  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12824  esac
12825  ac_save_IFS=$IFS
12826  IFS=:
12827  set x $ac_tag
12828  IFS=$ac_save_IFS
12829  shift
12830  ac_file=$1
12831  shift
12832
12833  case $ac_mode in
12834  :L) ac_source=$1;;
12835  :[FH])
12836    ac_file_inputs=
12837    for ac_f
12838    do
12839      case $ac_f in
12840      -) ac_f="$tmp/stdin";;
12841      *) # Look for the file first in the build tree, then in the source tree
12842	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12843	 # because $ac_f cannot contain `:'.
12844	 test -f "$ac_f" ||
12845	   case $ac_f in
12846	   [\\/$]*) false;;
12847	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12848	   esac ||
12849	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12850      esac
12851      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12852      as_fn_append ac_file_inputs " '$ac_f'"
12853    done
12854
12855    # Let's still pretend it is `configure' which instantiates (i.e., don't
12856    # use $as_me), people would be surprised to read:
12857    #    /* config.h.  Generated by config.status.  */
12858    configure_input='Generated from '`
12859	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12860	`' by configure.'
12861    if test x"$ac_file" != x-; then
12862      configure_input="$ac_file.  $configure_input"
12863      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12864$as_echo "$as_me: creating $ac_file" >&6;}
12865    fi
12866    # Neutralize special characters interpreted by sed in replacement strings.
12867    case $configure_input in #(
12868    *\&* | *\|* | *\\* )
12869       ac_sed_conf_input=`$as_echo "$configure_input" |
12870       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12871    *) ac_sed_conf_input=$configure_input;;
12872    esac
12873
12874    case $ac_tag in
12875    *:-:* | *:-) cat >"$tmp/stdin" \
12876      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12877    esac
12878    ;;
12879  esac
12880
12881  ac_dir=`$as_dirname -- "$ac_file" ||
12882$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12883	 X"$ac_file" : 'X\(//\)[^/]' \| \
12884	 X"$ac_file" : 'X\(//\)$' \| \
12885	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12886$as_echo X"$ac_file" |
12887    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12888	    s//\1/
12889	    q
12890	  }
12891	  /^X\(\/\/\)[^/].*/{
12892	    s//\1/
12893	    q
12894	  }
12895	  /^X\(\/\/\)$/{
12896	    s//\1/
12897	    q
12898	  }
12899	  /^X\(\/\).*/{
12900	    s//\1/
12901	    q
12902	  }
12903	  s/.*/./; q'`
12904  as_dir="$ac_dir"; as_fn_mkdir_p
12905  ac_builddir=.
12906
12907case "$ac_dir" in
12908.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12909*)
12910  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12911  # A ".." for each directory in $ac_dir_suffix.
12912  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12913  case $ac_top_builddir_sub in
12914  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12915  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12916  esac ;;
12917esac
12918ac_abs_top_builddir=$ac_pwd
12919ac_abs_builddir=$ac_pwd$ac_dir_suffix
12920# for backward compatibility:
12921ac_top_builddir=$ac_top_build_prefix
12922
12923case $srcdir in
12924  .)  # We are building in place.
12925    ac_srcdir=.
12926    ac_top_srcdir=$ac_top_builddir_sub
12927    ac_abs_top_srcdir=$ac_pwd ;;
12928  [\\/]* | ?:[\\/]* )  # Absolute name.
12929    ac_srcdir=$srcdir$ac_dir_suffix;
12930    ac_top_srcdir=$srcdir
12931    ac_abs_top_srcdir=$srcdir ;;
12932  *) # Relative name.
12933    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12934    ac_top_srcdir=$ac_top_build_prefix$srcdir
12935    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12936esac
12937ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12938
12939
12940  case $ac_mode in
12941  :F)
12942  #
12943  # CONFIG_FILE
12944  #
12945
12946_ACEOF
12947
12948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12949# If the template does not know about datarootdir, expand it.
12950# FIXME: This hack should be removed a few years after 2.60.
12951ac_datarootdir_hack=; ac_datarootdir_seen=
12952ac_sed_dataroot='
12953/datarootdir/ {
12954  p
12955  q
12956}
12957/@datadir@/p
12958/@docdir@/p
12959/@infodir@/p
12960/@localedir@/p
12961/@mandir@/p'
12962case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12963*datarootdir*) ac_datarootdir_seen=yes;;
12964*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12965  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12966$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12967_ACEOF
12968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12969  ac_datarootdir_hack='
12970  s&@datadir@&$datadir&g
12971  s&@docdir@&$docdir&g
12972  s&@infodir@&$infodir&g
12973  s&@localedir@&$localedir&g
12974  s&@mandir@&$mandir&g
12975  s&\\\${datarootdir}&$datarootdir&g' ;;
12976esac
12977_ACEOF
12978
12979# Neutralize VPATH when `$srcdir' = `.'.
12980# Shell code in configure.ac might set extrasub.
12981# FIXME: do we really want to maintain this feature?
12982cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12983ac_sed_extra="$ac_vpsub
12984$extrasub
12985_ACEOF
12986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12987:t
12988/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12989s|@configure_input@|$ac_sed_conf_input|;t t
12990s&@top_builddir@&$ac_top_builddir_sub&;t t
12991s&@top_build_prefix@&$ac_top_build_prefix&;t t
12992s&@srcdir@&$ac_srcdir&;t t
12993s&@abs_srcdir@&$ac_abs_srcdir&;t t
12994s&@top_srcdir@&$ac_top_srcdir&;t t
12995s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12996s&@builddir@&$ac_builddir&;t t
12997s&@abs_builddir@&$ac_abs_builddir&;t t
12998s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12999$ac_datarootdir_hack
13000"
13001eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13002  || as_fn_error "could not create $ac_file" "$LINENO" 5
13003
13004test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13005  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13006  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13007  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13008which seems to be undefined.  Please make sure it is defined." >&5
13009$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13010which seems to be undefined.  Please make sure it is defined." >&2;}
13011
13012  rm -f "$tmp/stdin"
13013  case $ac_file in
13014  -) cat "$tmp/out" && rm -f "$tmp/out";;
13015  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13016  esac \
13017  || as_fn_error "could not create $ac_file" "$LINENO" 5
13018 ;;
13019  :H)
13020  #
13021  # CONFIG_HEADER
13022  #
13023  if test x"$ac_file" != x-; then
13024    {
13025      $as_echo "/* $configure_input  */" \
13026      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13027    } >"$tmp/config.h" \
13028      || as_fn_error "could not create $ac_file" "$LINENO" 5
13029    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13030      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13031$as_echo "$as_me: $ac_file is unchanged" >&6;}
13032    else
13033      rm -f "$ac_file"
13034      mv "$tmp/config.h" "$ac_file" \
13035	|| as_fn_error "could not create $ac_file" "$LINENO" 5
13036    fi
13037  else
13038    $as_echo "/* $configure_input  */" \
13039      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13040      || as_fn_error "could not create -" "$LINENO" 5
13041  fi
13042 ;;
13043
13044
13045  esac
13046
13047done # for ac_tag
13048
13049
13050as_fn_exit 0
13051_ACEOF
13052ac_clean_files=$ac_clean_files_save
13053
13054test $ac_write_fail = 0 ||
13055  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13056
13057
13058# configure is writing to config.log, and then calls config.status.
13059# config.status does its own redirection, appending to config.log.
13060# Unfortunately, on DOS this fails, as config.log is still kept open
13061# by configure, so config.status won't be able to write to it; its
13062# output is simply discarded.  So we exec the FD to /dev/null,
13063# effectively closing config.log, so it can be properly (re)opened and
13064# appended to by config.status.  When coming back to configure, we
13065# need to make the FD available again.
13066if test "$no_create" != yes; then
13067  ac_cs_success=:
13068  ac_config_status_args=
13069  test "$silent" = yes &&
13070    ac_config_status_args="$ac_config_status_args --quiet"
13071  exec 5>/dev/null
13072  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13073  exec 5>>auto/config.log
13074  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13075  # would make configure fail if this is the last instruction.
13076  $ac_cs_success || as_fn_exit $?
13077fi
13078if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13079  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13080$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13081fi
13082
13083
13084