blob: 794fd8f42729defd75ef69acd585b3edf1e8dfbb [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001#! /bin/sh
Bram Moolenaar071d4272004-06-13 20:20:40 +00002# Guess values for system-dependent variables and create Makefiles.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003# Generated by GNU Autoconf 2.59.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004#
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Bram Moolenaar071d4272004-06-13 20:20:40 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000011
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
Bram Moolenaar071d4272004-06-13 20:20:40 +0000254ac_default_prefix=/usr/local
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="vim.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
Bram Moolenaar9372a112005-12-06 19:59:18 +0000312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK STRIP CPP_MM OS_EXTRA_SRC OS_EXTRA_OBJ VIMNAME EXNAME VIEWNAME line_break dovimdiff dogvimdiff compiledby vi_cv_path_mzscheme MZSCHEME_SRC MZSCHEME_OBJ MZSCHEME_PRO MZSCHEME_LIBS MZSCHEME_CFLAGS vi_cv_path_perl vi_cv_perllib shrpenv PERL_SRC PERL_OBJ PERL_PRO PERL_CFLAGS PERL_LIBS vi_cv_path_python PYTHON_CONFDIR PYTHON_LIBS PYTHON_GETPATH_CFLAGS PYTHON_CFLAGS PYTHON_SRC PYTHON_OBJ vi_cv_path_tcl TCL_SRC TCL_OBJ TCL_PRO TCL_CFLAGS TCL_LIBS vi_cv_path_ruby RUBY_SRC RUBY_OBJ RUBY_PRO RUBY_CFLAGS RUBY_LIBS WORKSHOP_SRC WORKSHOP_OBJ NETBEANS_SRC NETBEANS_OBJ SNIFF_SRC SNIFF_OBJ xmkmfpath X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIB GTK_CONFIG GTK12_CONFIG PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_LIBNAME GNOME_LIBS GNOME_LIBDIR GNOME_INCLUDEDIR GNOME_CONFIG MOTIF_LIBNAME NARROW_PROTO GUI_INC_LOC GUI_LIB_LOC GUITYPE GUI_X_LIBS HANGULIN_SRC HANGULIN_OBJ TAGPRG INSTALL_LANGS INSTALL_TOOL_LANGS MSGFMT MAKEMO DEPEND_CFLAGS_FILTER LIBOBJS LTLIBOBJS'
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000313ac_subst_files=''
Bram Moolenaar071d4272004-06-13 20:20:40 +0000314
315# Initialize some variables set by options.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000316ac_init_help=
317ac_init_version=false
Bram Moolenaar071d4272004-06-13 20:20:40 +0000318# The variables have the same names as the options, with
319# dashes changed to underlines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000320cache_file=/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +0000321exec_prefix=NONE
Bram Moolenaar071d4272004-06-13 20:20:40 +0000322no_create=
Bram Moolenaar071d4272004-06-13 20:20:40 +0000323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
Bram Moolenaar071d4272004-06-13 20:20:40 +0000331verbose=
332x_includes=NONE
333x_libraries=NONE
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
Bram Moolenaar071d4272004-06-13 20:20:40 +0000353ac_prev=
354for ac_option
355do
Bram Moolenaar071d4272004-06-13 20:20:40 +0000356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000367 case $ac_option in
Bram Moolenaar071d4272004-06-13 20:20:40 +0000368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000372 bindir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000373
374 -build | --build | --buil | --bui | --bu)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000375 ac_prev=build_alias ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000377 build_alias=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000393 datadir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000394
395 -disable-* | --disable-*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000397 # Reject names that are not valid shell variable names.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000403
404 -enable-* | --enable-*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000406 # Reject names that are not valid shell variable names.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000413 *) ac_optarg=yes ;;
414 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000415 eval "enable_$ac_feature='$ac_optarg'" ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000424 exec_prefix=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000436
437 -host | --host | --hos | --ho)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000438 ac_prev=host_alias ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000439 -host=* | --host=* | --hos=* | --ho=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000440 host_alias=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000447 includedir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000452 infodir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000457 libdir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000464 libexecdir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000473 localstatedir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000478 mandir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000485 | --no-cr | --no-c | -n)
Bram Moolenaar071d4272004-06-13 20:20:40 +0000486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000499 oldincludedir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000504 prefix=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000511 program_prefix=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000518 program_suffix=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000535 program_transform_name=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000545 sbindir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000556 sharedstatedir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000561 site=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000566 srcdir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000573 sysconfdir=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000576 ac_prev=target_alias ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000578 target_alias=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000585
586 -with-* | --with-*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000588 # Reject names that are not valid shell variable names.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000592 ac_package=`echo $ac_package| sed 's/-/_/g'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000595 *) ac_optarg=yes ;;
596 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000597 eval "with_$ac_package='$ac_optarg'" ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000598
599 -without-* | --without-*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000601 # Reject names that are not valid shell variable names.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000617 x_includes=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000624 x_libraries=$ac_optarg ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000625
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000629 ;;
630
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
Bram Moolenaar071d4272004-06-13 20:20:40 +0000641 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Bram Moolenaar071d4272004-06-13 20:20:40 +0000647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000656fi
657
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
Bram Moolenaar071d4272004-06-13 20:20:40 +0000660do
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
Bram Moolenaar071d4272004-06-13 20:20:40 +0000666 esac
667done
668
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679done
Bram Moolenaar071d4272004-06-13 20:20:40 +0000680
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
Bram Moolenaar071d4272004-06-13 20:20:40 +0000687
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
Bram Moolenaar071d4272004-06-13 20:20:40 +0000704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
Bram Moolenaar071d4272004-06-13 20:20:40 +0000721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000732 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +0000735 fi
736fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
Bram Moolenaar071d4272004-06-13 20:20:40 +0000773
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834X features:
835 --x-includes=DIR X include files are in DIR
836 --x-libraries=DIR X library files are in DIR
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --disable-darwin Disable Darwin (Mac OS X) support.
848 --disable-xsmp Disable XSMP session management
849 --disable-xsmp-interact Disable XSMP interaction
850 --enable-mzschemeinterp Include MzScheme interpreter.
851 --enable-perlinterp Include Perl interpreter.
852 --enable-pythoninterp Include Python interpreter.
853 --enable-tclinterp Include Tcl interpreter.
854 --enable-rubyinterp Include Ruby interpreter.
855 --enable-cscope Include cscope interface.
856 --enable-workshop Include Sun Visual Workshop support.
857 --disable-netbeans Disable NetBeans integration support.
858 --enable-sniff Include Sniff interface.
859 --enable-multibyte Include multibyte editing support.
860 --enable-hangulinput Include Hangul input support.
861 --enable-xim Include XIM input support.
862 --enable-fontset Include X fontset output support.
Bram Moolenaar9372a112005-12-06 19:59:18 +0000863 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000864 --enable-gtk-check If auto-select GUI, check for GTK default=yes
865 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
866 --enable-gnome-check If GTK GUI, check for GNOME default=no
867 --enable-motif-check If auto-select GUI, check for Motif default=yes
868 --enable-athena-check If auto-select GUI, check for Athena default=yes
869 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
870 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000871 --disable-gtktest Do not try to compile and run a test GTK program
872 --disable-acl Don't check for ACL support.
873 --disable-gpm Don't use gpm (Linux mouse daemon).
874 --disable-nls Don't support NLS (gettext()).
875
876Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-vim-name=NAME what to call the Vim executable
880 --with-ex-name=NAME what to call the Ex executable
881 --with-view-name=NAME what to call the View executable
882 --with-global-runtime=DIR global runtime directory in 'runtimepath'
883 --with-modified-by=NAME name of who modified a release version
884 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
885 --with-compiledby=NAME name to show in :version message
886 --with-plthome=PLTHOME Use PLTHOME.
887 --with-python-config-dir=PATH Python's config directory
888 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
889 --with-x use the X Window System
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000890 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
891 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
892 --with-gnome-includes=DIR Specify location of GNOME headers
893 --with-gnome-libs=DIR Specify location of GNOME libs
894 --with-gnome Specify prefix for GNOME files
895 --with-motif-lib=STRING Library for Motif
896 --with-tlib=library terminal library to be used
897
898Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
905 CPP C preprocessor
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000906
907Use these variables to override the choices made by `configure' or to help
908it to find libraries and programs with nonstandard names/locations.
909
910_ACEOF
911fi
912
913if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
915 ac_popdir=`pwd`
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
918 ac_builddir=.
919
920if test "$ac_dir" != .; then
921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924else
925 ac_dir_suffix= ac_top_builddir=
926fi
927
928case $srcdir in
929 .) # No --srcdir option. We are building in place.
930 ac_srcdir=.
931 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=.
933 else
934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 fi ;;
936 [\\/]* | ?:[\\/]* ) # Absolute path.
937 ac_srcdir=$srcdir$ac_dir_suffix;
938 ac_top_srcdir=$srcdir ;;
939 *) # Relative path.
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942esac
943
944# Do not use `cd foo && pwd` to compute absolute paths, because
945# the directories may not exist.
946case `pwd` in
947.) ac_abs_builddir="$ac_dir";;
948*)
949 case "$ac_dir" in
950 .) ac_abs_builddir=`pwd`;;
951 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
952 *) ac_abs_builddir=`pwd`/"$ac_dir";;
953 esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_top_builddir=${ac_top_builddir}.;;
957*)
958 case ${ac_top_builddir}. in
959 .) ac_abs_top_builddir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962 esac;;
963esac
964case $ac_abs_builddir in
965.) ac_abs_srcdir=$ac_srcdir;;
966*)
967 case $ac_srcdir in
968 .) ac_abs_srcdir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
970 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971 esac;;
972esac
973case $ac_abs_builddir in
974.) ac_abs_top_srcdir=$ac_top_srcdir;;
975*)
976 case $ac_top_srcdir in
977 .) ac_abs_top_srcdir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 esac;;
981esac
982
983 cd $ac_dir
984 # Check for guested configure; otherwise get Cygnus style configure.
985 if test -f $ac_srcdir/configure.gnu; then
986 echo
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
989 echo
990 $SHELL $ac_srcdir/configure --help=recursive
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
993 echo
994 $ac_configure --help
995 else
996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
997 fi
998 cd $ac_popdir
999 done
1000fi
1001
1002test -n "$ac_init_help" && exit 0
1003if $ac_init_version; then
1004 cat <<\_ACEOF
1005
1006Copyright (C) 2003 Free Software Foundation, Inc.
1007This configure script is free software; the Free Software Foundation
1008gives unlimited permission to copy, distribute and modify it.
1009_ACEOF
1010 exit 0
1011fi
Bram Moolenaarc7453f52006-02-10 23:20:28 +00001012exec 5>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001013cat >&5 <<_ACEOF
1014This file contains any messages produced by compilers while
1015running configure, to aid debugging if configure makes a mistake.
1016
1017It was created by $as_me, which was
1018generated by GNU Autoconf 2.59. Invocation command line was
1019
1020 $ $0 $@
1021
1022_ACEOF
1023{
1024cat <<_ASUNAME
1025## --------- ##
1026## Platform. ##
1027## --------- ##
1028
1029hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1030uname -m = `(uname -m) 2>/dev/null || echo unknown`
1031uname -r = `(uname -r) 2>/dev/null || echo unknown`
1032uname -s = `(uname -s) 2>/dev/null || echo unknown`
1033uname -v = `(uname -v) 2>/dev/null || echo unknown`
1034
1035/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1036/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1037
1038/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1039/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1040/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1041hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1042/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1043/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1044/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1045
1046_ASUNAME
1047
1048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049for as_dir in $PATH
1050do
1051 IFS=$as_save_IFS
1052 test -z "$as_dir" && as_dir=.
1053 echo "PATH: $as_dir"
1054done
1055
1056} >&5
1057
1058cat >&5 <<_ACEOF
1059
1060
1061## ----------- ##
1062## Core tests. ##
1063## ----------- ##
1064
1065_ACEOF
1066
1067
1068# Keep a trace of the command line.
1069# Strip out --no-create and --no-recursion so they do not pile up.
1070# Strip out --silent because we don't want to record it for future runs.
1071# Also quote any args containing shell meta-characters.
1072# Make two passes to allow for proper duplicate-argument suppression.
1073ac_configure_args=
1074ac_configure_args0=
1075ac_configure_args1=
1076ac_sep=
1077ac_must_keep_next=false
1078for ac_pass in 1 2
1079do
1080 for ac_arg
1081 do
1082 case $ac_arg in
1083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 continue ;;
1087 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1088 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089 esac
1090 case $ac_pass in
1091 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1092 2)
1093 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094 if test $ac_must_keep_next = true; then
1095 ac_must_keep_next=false # Got value, back to normal.
1096 else
1097 case $ac_arg in
1098 *=* | --config-cache | -C | -disable-* | --disable-* \
1099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101 | -with-* | --with-* | -without-* | --without-* | --x)
1102 case "$ac_configure_args0 " in
1103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104 esac
1105 ;;
1106 -* ) ac_must_keep_next=true ;;
1107 esac
1108 fi
1109 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110 # Get rid of the leading space.
1111 ac_sep=" "
1112 ;;
1113 esac
1114 done
1115done
1116$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1118
1119# When interrupted or exit'd, cleanup temporary files, and complete
1120# config.log. We remove comments because anyway the quotes in there
1121# would cause problems or look ugly.
1122# WARNING: Be sure not to use single quotes in there, as some shells,
1123# such as our DU 5.0 friend, will then `close' the trap.
1124trap 'exit_status=$?
1125 # Save into config.log some information that might help in debugging.
1126 {
1127 echo
1128
1129 cat <<\_ASBOX
1130## ---------------- ##
1131## Cache variables. ##
1132## ---------------- ##
1133_ASBOX
1134 echo
1135 # The following way of writing the cache mishandles newlines in values,
1136{
1137 (set) 2>&1 |
1138 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139 *ac_space=\ *)
1140 sed -n \
1141 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 ;;
1144 *)
1145 sed -n \
1146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1147 ;;
1148 esac;
1149}
1150 echo
1151
1152 cat <<\_ASBOX
1153## ----------------- ##
1154## Output variables. ##
1155## ----------------- ##
1156_ASBOX
1157 echo
1158 for ac_var in $ac_subst_vars
1159 do
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1164
1165 if test -n "$ac_subst_files"; then
1166 cat <<\_ASBOX
1167## ------------- ##
1168## Output files. ##
1169## ------------- ##
1170_ASBOX
1171 echo
1172 for ac_var in $ac_subst_files
1173 do
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
1176 done | sort
1177 echo
1178 fi
1179
1180 if test -s confdefs.h; then
1181 cat <<\_ASBOX
1182## ----------- ##
1183## confdefs.h. ##
1184## ----------- ##
1185_ASBOX
1186 echo
1187 sed "/^$/d" confdefs.h | sort
1188 echo
1189 fi
1190 test "$ac_signal" != 0 &&
1191 echo "$as_me: caught signal $ac_signal"
1192 echo "$as_me: exit $exit_status"
1193 } >&5
1194 rm -f core *.core &&
1195 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1196 exit $exit_status
1197 ' 0
1198for ac_signal in 1 2 13 15; do
1199 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200done
1201ac_signal=0
1202
1203# confdefs.h avoids OS command line length limits that DEFS can exceed.
1204rm -rf conftest* confdefs.h
1205# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206echo >confdefs.h
1207
1208# Predefined preprocessor variables.
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_NAME "$PACKAGE_NAME"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_VERSION "$PACKAGE_VERSION"
1222_ACEOF
1223
1224
1225cat >>confdefs.h <<_ACEOF
1226#define PACKAGE_STRING "$PACKAGE_STRING"
1227_ACEOF
1228
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232_ACEOF
1233
1234
1235# Let the site file select an alternate cache file if it wants to.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001236# Prefer explicitly selected file to automatically selected ones.
1237if test -z "$CONFIG_SITE"; then
1238 if test "x$prefix" != xNONE; then
1239 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1240 else
1241 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242 fi
1243fi
1244for ac_site_file in $CONFIG_SITE; do
1245 if test -r "$ac_site_file"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001246 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247echo "$as_me: loading site script $ac_site_file" >&6;}
1248 sed 's/^/| /' "$ac_site_file" >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00001249 . "$ac_site_file"
1250 fi
1251done
1252
1253if test -r "$cache_file"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001254 # Some versions of bash will fail to source /dev/null (special
1255 # files actually), so we avoid doing that.
1256 if test -f "$cache_file"; then
1257 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258echo "$as_me: loading cache $cache_file" >&6;}
1259 case $cache_file in
1260 [\\/]* | ?:[\\/]* ) . $cache_file;;
1261 *) . ./$cache_file;;
1262 esac
1263 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001264else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001265 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266echo "$as_me: creating cache $cache_file" >&6;}
1267 >$cache_file
1268fi
1269
1270# Check that the precious variables saved in the cache have kept the same
1271# value.
1272ac_cache_corrupted=false
1273for ac_var in `(set) 2>&1 |
1274 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1275 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276 eval ac_new_set=\$ac_env_${ac_var}_set
1277 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278 eval ac_new_val="\$ac_env_${ac_var}_value"
1279 case $ac_old_set,$ac_new_set in
1280 set,)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1282echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,set)
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1286echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1288 ,);;
1289 *)
1290 if test "x$ac_old_val" != "x$ac_new_val"; then
1291 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1294echo "$as_me: former value: $ac_old_val" >&2;}
1295 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1296echo "$as_me: current value: $ac_new_val" >&2;}
1297 ac_cache_corrupted=:
1298 fi;;
1299 esac
1300 # Pass precious variables to config.status.
1301 if test "$ac_new_set" = set; then
1302 case $ac_new_val in
1303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1305 *) ac_arg=$ac_var=$ac_new_val ;;
1306 esac
1307 case " $ac_configure_args " in
1308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 esac
1311 fi
1312done
1313if $ac_cache_corrupted; then
1314 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1317echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00001319fi
1320
1321ac_ext=c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001322ac_cpp='$CPP $CPPFLAGS'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bram Moolenaar071d4272004-06-13 20:20:40 +00001326
1327
1328
1329
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1346
1347
1348cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001349#define UNIX 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001350_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001351
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001352echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1353echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1354set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1355if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001357else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001358 cat >conftest.make <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001359all:
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001360 @echo 'ac_maketemp="$(MAKE)"'
1361_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001362# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001363eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Bram Moolenaar071d4272004-06-13 20:20:40 +00001364if test -n "$ac_maketemp"; then
1365 eval ac_cv_prog_make_${ac_make}_set=yes
1366else
1367 eval ac_cv_prog_make_${ac_make}_set=no
1368fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001369rm -f conftest.make
Bram Moolenaar071d4272004-06-13 20:20:40 +00001370fi
1371if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001372 echo "$as_me:$LINENO: result: yes" >&5
1373echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001374 SET_MAKE=
1375else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001376 echo "$as_me:$LINENO: result: no" >&5
1377echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001378 SET_MAKE="MAKE=${MAKE-make}"
1379fi
1380
1381
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001382ac_ext=c
1383ac_cpp='$CPP $CPPFLAGS'
1384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1386ac_compiler_gnu=$ac_cv_c_compiler_gnu
1387if test -n "$ac_tool_prefix"; then
1388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1389set dummy ${ac_tool_prefix}gcc; ac_word=$2
1390echo "$as_me:$LINENO: checking for $ac_word" >&5
1391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1392if test "${ac_cv_prog_CC+set}" = set; then
1393 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001394else
1395 if test -n "$CC"; then
1396 ac_cv_prog_CC="$CC" # Let the user override the test.
1397else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1399for as_dir in $PATH
1400do
1401 IFS=$as_save_IFS
1402 test -z "$as_dir" && as_dir=.
1403 for ac_exec_ext in '' $ac_executable_extensions; do
1404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1405 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1407 break 2
1408 fi
1409done
1410done
1411
Bram Moolenaar071d4272004-06-13 20:20:40 +00001412fi
1413fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001414CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001415if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001416 echo "$as_me:$LINENO: result: $CC" >&5
1417echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001418else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001419 echo "$as_me:$LINENO: result: no" >&5
1420echo "${ECHO_T}no" >&6
1421fi
1422
1423fi
1424if test -z "$ac_cv_prog_CC"; then
1425 ac_ct_CC=$CC
1426 # Extract the first word of "gcc", so it can be a program name with args.
1427set dummy gcc; ac_word=$2
1428echo "$as_me:$LINENO: checking for $ac_word" >&5
1429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1430if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1432else
1433 if test -n "$ac_ct_CC"; then
1434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1435else
1436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437for as_dir in $PATH
1438do
1439 IFS=$as_save_IFS
1440 test -z "$as_dir" && as_dir=.
1441 for ac_exec_ext in '' $ac_executable_extensions; do
1442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1443 ac_cv_prog_ac_ct_CC="gcc"
1444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1445 break 2
1446 fi
1447done
1448done
1449
1450fi
1451fi
1452ac_ct_CC=$ac_cv_prog_ac_ct_CC
1453if test -n "$ac_ct_CC"; then
1454 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1455echo "${ECHO_T}$ac_ct_CC" >&6
1456else
1457 echo "$as_me:$LINENO: result: no" >&5
1458echo "${ECHO_T}no" >&6
1459fi
1460
1461 CC=$ac_ct_CC
1462else
1463 CC="$ac_cv_prog_CC"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001464fi
1465
1466if test -z "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001467 if test -n "$ac_tool_prefix"; then
1468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1469set dummy ${ac_tool_prefix}cc; ac_word=$2
1470echo "$as_me:$LINENO: checking for $ac_word" >&5
1471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472if test "${ac_cv_prog_CC+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001474else
1475 if test -n "$CC"; then
1476 ac_cv_prog_CC="$CC" # Let the user override the test.
1477else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479for as_dir in $PATH
1480do
1481 IFS=$as_save_IFS
1482 test -z "$as_dir" && as_dir=.
1483 for ac_exec_ext in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 ac_cv_prog_CC="${ac_tool_prefix}cc"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487 break 2
1488 fi
1489done
1490done
1491
1492fi
1493fi
1494CC=$ac_cv_prog_CC
1495if test -n "$CC"; then
1496 echo "$as_me:$LINENO: result: $CC" >&5
1497echo "${ECHO_T}$CC" >&6
1498else
1499 echo "$as_me:$LINENO: result: no" >&5
1500echo "${ECHO_T}no" >&6
1501fi
1502
1503fi
1504if test -z "$ac_cv_prog_CC"; then
1505 ac_ct_CC=$CC
1506 # Extract the first word of "cc", so it can be a program name with args.
1507set dummy cc; ac_word=$2
1508echo "$as_me:$LINENO: checking for $ac_word" >&5
1509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1510if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1512else
1513 if test -n "$ac_ct_CC"; then
1514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1515else
1516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517for as_dir in $PATH
1518do
1519 IFS=$as_save_IFS
1520 test -z "$as_dir" && as_dir=.
1521 for ac_exec_ext in '' $ac_executable_extensions; do
1522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1523 ac_cv_prog_ac_ct_CC="cc"
1524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525 break 2
1526 fi
1527done
1528done
1529
1530fi
1531fi
1532ac_ct_CC=$ac_cv_prog_ac_ct_CC
1533if test -n "$ac_ct_CC"; then
1534 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1535echo "${ECHO_T}$ac_ct_CC" >&6
1536else
1537 echo "$as_me:$LINENO: result: no" >&5
1538echo "${ECHO_T}no" >&6
1539fi
1540
1541 CC=$ac_ct_CC
1542else
1543 CC="$ac_cv_prog_CC"
1544fi
1545
1546fi
1547if test -z "$CC"; then
1548 # Extract the first word of "cc", so it can be a program name with args.
1549set dummy cc; ac_word=$2
1550echo "$as_me:$LINENO: checking for $ac_word" >&5
1551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552if test "${ac_cv_prog_CC+set}" = set; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1554else
1555 if test -n "$CC"; then
1556 ac_cv_prog_CC="$CC" # Let the user override the test.
1557else
Bram Moolenaar071d4272004-06-13 20:20:40 +00001558 ac_prog_rejected=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560for as_dir in $PATH
1561do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1567 ac_prog_rejected=yes
1568 continue
1569 fi
1570 ac_cv_prog_CC="cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2
1573 fi
1574done
1575done
1576
Bram Moolenaar071d4272004-06-13 20:20:40 +00001577if test $ac_prog_rejected = yes; then
1578 # We found a bogon in the path, so make sure we never use it.
1579 set dummy $ac_cv_prog_CC
1580 shift
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001581 if test $# != 0; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00001582 # We chose a different compiler from the bogus one.
1583 # However, it has the same basename, so the bogon will be chosen
1584 # first if we set CC to just the basename; use the full file name.
1585 shift
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001586 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001587 fi
1588fi
1589fi
1590fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001591CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001592if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001593 echo "$as_me:$LINENO: result: $CC" >&5
1594echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001595else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001596 echo "$as_me:$LINENO: result: no" >&5
1597echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001598fi
1599
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001600fi
1601if test -z "$CC"; then
1602 if test -n "$ac_tool_prefix"; then
1603 for ac_prog in cl
1604 do
1605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1607echo "$as_me:$LINENO: checking for $ac_word" >&5
1608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001611else
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1614else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616for as_dir in $PATH
1617do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1625 fi
1626done
1627done
1628
Bram Moolenaar071d4272004-06-13 20:20:40 +00001629fi
1630fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001631CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001632if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001633 echo "$as_me:$LINENO: result: $CC" >&5
1634echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001635else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001636 echo "$as_me:$LINENO: result: no" >&5
1637echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001638fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001639
1640 test -n "$CC" && break
1641 done
1642fi
1643if test -z "$CC"; then
1644 ac_ct_CC=$CC
1645 for ac_prog in cl
1646do
1647 # Extract the first word of "$ac_prog", so it can be a program name with args.
1648set dummy $ac_prog; ac_word=$2
1649echo "$as_me:$LINENO: checking for $ac_word" >&5
1650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 if test -n "$ac_ct_CC"; then
1655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1656else
1657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658for as_dir in $PATH
1659do
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_CC="$ac_prog"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1666 break 2
Bram Moolenaar071d4272004-06-13 20:20:40 +00001667 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001668done
1669done
1670
1671fi
1672fi
1673ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674if test -n "$ac_ct_CC"; then
1675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676echo "${ECHO_T}$ac_ct_CC" >&6
1677else
1678 echo "$as_me:$LINENO: result: no" >&5
1679echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001680fi
1681
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001682 test -n "$ac_ct_CC" && break
1683done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001684
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001685 CC=$ac_ct_CC
1686fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001687
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001688fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001689
Bram Moolenaar071d4272004-06-13 20:20:40 +00001690
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001691test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1692See \`config.log' for more details." >&5
1693echo "$as_me: error: no acceptable C compiler found in \$PATH
1694See \`config.log' for more details." >&2;}
1695 { (exit 1); exit 1; }; }
1696
1697# Provide some information about the compiler.
1698echo "$as_me:$LINENO:" \
1699 "checking for C compiler version" >&5
1700ac_compiler=`set X $ac_compile; echo $2`
1701{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1702 (eval $ac_compiler --version </dev/null >&5) 2>&5
1703 ac_status=$?
1704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1706{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1707 (eval $ac_compiler -v </dev/null >&5) 2>&5
1708 ac_status=$?
1709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1710 (exit $ac_status); }
1711{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1712 (eval $ac_compiler -V </dev/null >&5) 2>&5
1713 ac_status=$?
1714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715 (exit $ac_status); }
1716
1717cat >conftest.$ac_ext <<_ACEOF
1718/* confdefs.h. */
1719_ACEOF
1720cat confdefs.h >>conftest.$ac_ext
1721cat >>conftest.$ac_ext <<_ACEOF
1722/* end confdefs.h. */
1723
1724int
1725main ()
1726{
1727
1728 ;
1729 return 0;
1730}
1731_ACEOF
1732ac_clean_files_save=$ac_clean_files
1733ac_clean_files="$ac_clean_files a.out a.exe b.out"
1734# Try to create an executable without -o first, disregard a.out.
1735# It will help us diagnose broken compilers, and finding out an intuition
1736# of exeext.
1737echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1738echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1739ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1740if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1741 (eval $ac_link_default) 2>&5
1742 ac_status=$?
1743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744 (exit $ac_status); }; then
1745 # Find the output, starting from the most likely. This scheme is
1746# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1747# resort.
1748
1749# Be careful to initialize this variable, since it used to be cached.
1750# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1751ac_cv_exeext=
1752# b.out is created by i960 compilers.
1753for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1754do
1755 test -f "$ac_file" || continue
1756 case $ac_file in
1757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1758 ;;
1759 conftest.$ac_ext )
1760 # This is the source file.
1761 ;;
1762 [ab].out )
1763 # We found the default executable, but exeext='' is most
1764 # certainly right.
1765 break;;
1766 *.* )
1767 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1768 # FIXME: I believe we export ac_cv_exeext for Libtool,
1769 # but it would be cool to find out if it's true. Does anybody
1770 # maintain Libtool? --akim.
1771 export ac_cv_exeext
1772 break;;
1773 * )
1774 break;;
1775 esac
1776done
1777else
1778 echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
1781{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1782See \`config.log' for more details." >&5
1783echo "$as_me: error: C compiler cannot create executables
1784See \`config.log' for more details." >&2;}
1785 { (exit 77); exit 77; }; }
1786fi
1787
1788ac_exeext=$ac_cv_exeext
1789echo "$as_me:$LINENO: result: $ac_file" >&5
1790echo "${ECHO_T}$ac_file" >&6
1791
1792# Check the compiler produces executables we can run. If not, either
1793# the compiler is broken, or we cross compile.
1794echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1795echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1796# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1797# If not cross compiling, check that we can run a simple program.
1798if test "$cross_compiling" != yes; then
1799 if { ac_try='./$ac_file'
1800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1801 (eval $ac_try) 2>&5
1802 ac_status=$?
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }; }; then
1805 cross_compiling=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00001806 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001807 if test "$cross_compiling" = maybe; then
1808 cross_compiling=yes
1809 else
1810 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1811If you meant to cross compile, use \`--host'.
1812See \`config.log' for more details." >&5
1813echo "$as_me: error: cannot run C compiled programs.
1814If you meant to cross compile, use \`--host'.
1815See \`config.log' for more details." >&2;}
1816 { (exit 1); exit 1; }; }
1817 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001818 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001819fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001820echo "$as_me:$LINENO: result: yes" >&5
1821echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001822
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001823rm -f a.out a.exe conftest$ac_cv_exeext b.out
1824ac_clean_files=$ac_clean_files_save
1825# Check the compiler produces executables we can run. If not, either
1826# the compiler is broken, or we cross compile.
1827echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1828echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1829echo "$as_me:$LINENO: result: $cross_compiling" >&5
1830echo "${ECHO_T}$cross_compiling" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001831
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001832echo "$as_me:$LINENO: checking for suffix of executables" >&5
1833echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1835 (eval $ac_link) 2>&5
1836 ac_status=$?
1837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838 (exit $ac_status); }; then
1839 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1840# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1841# work properly (i.e., refer to `conftest.exe'), while it won't with
1842# `rm'.
1843for ac_file in conftest.exe conftest conftest.*; do
1844 test -f "$ac_file" || continue
1845 case $ac_file in
1846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1847 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1848 export ac_cv_exeext
1849 break;;
1850 * ) break;;
1851 esac
1852done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001853else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001854 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1855See \`config.log' for more details." >&5
1856echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1857See \`config.log' for more details." >&2;}
1858 { (exit 1); exit 1; }; }
1859fi
1860
1861rm -f conftest$ac_cv_exeext
1862echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1863echo "${ECHO_T}$ac_cv_exeext" >&6
1864
1865rm -f conftest.$ac_ext
1866EXEEXT=$ac_cv_exeext
1867ac_exeext=$EXEEXT
1868echo "$as_me:$LINENO: checking for suffix of object files" >&5
1869echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1870if test "${ac_cv_objext+set}" = set; then
1871 echo $ECHO_N "(cached) $ECHO_C" >&6
1872else
1873 cat >conftest.$ac_ext <<_ACEOF
1874/* confdefs.h. */
1875_ACEOF
1876cat confdefs.h >>conftest.$ac_ext
1877cat >>conftest.$ac_ext <<_ACEOF
1878/* end confdefs.h. */
1879
1880int
1881main ()
1882{
1883
1884 ;
1885 return 0;
1886}
1887_ACEOF
1888rm -f conftest.o conftest.obj
1889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1890 (eval $ac_compile) 2>&5
1891 ac_status=$?
1892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1893 (exit $ac_status); }; then
1894 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1895 case $ac_file in
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1898 break;;
1899 esac
1900done
1901else
1902 echo "$as_me: failed program was:" >&5
1903sed 's/^/| /' conftest.$ac_ext >&5
1904
1905{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1906See \`config.log' for more details." >&5
1907echo "$as_me: error: cannot compute suffix of object files: cannot compile
1908See \`config.log' for more details." >&2;}
1909 { (exit 1); exit 1; }; }
1910fi
1911
1912rm -f conftest.$ac_cv_objext conftest.$ac_ext
1913fi
1914echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1915echo "${ECHO_T}$ac_cv_objext" >&6
1916OBJEXT=$ac_cv_objext
1917ac_objext=$OBJEXT
1918echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1919echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1920if test "${ac_cv_c_compiler_gnu+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922else
1923 cat >conftest.$ac_ext <<_ACEOF
1924/* confdefs.h. */
1925_ACEOF
1926cat confdefs.h >>conftest.$ac_ext
1927cat >>conftest.$ac_ext <<_ACEOF
1928/* end confdefs.h. */
1929
1930int
1931main ()
1932{
1933#ifndef __GNUC__
1934 choke me
Bram Moolenaar071d4272004-06-13 20:20:40 +00001935#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00001936
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001937 ;
1938 return 0;
1939}
1940_ACEOF
1941rm -f conftest.$ac_objext
1942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1943 (eval $ac_compile) 2>conftest.er1
1944 ac_status=$?
1945 grep -v '^ *+' conftest.er1 >conftest.err
1946 rm -f conftest.er1
1947 cat conftest.err >&5
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); } &&
1950 { ac_try='test -z "$ac_c_werror_flag"
1951 || test ! -s conftest.err'
1952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953 (eval $ac_try) 2>&5
1954 ac_status=$?
1955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956 (exit $ac_status); }; } &&
1957 { ac_try='test -s conftest.$ac_objext'
1958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1959 (eval $ac_try) 2>&5
1960 ac_status=$?
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }; }; then
1963 ac_compiler_gnu=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00001964else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001965 echo "$as_me: failed program was:" >&5
1966sed 's/^/| /' conftest.$ac_ext >&5
1967
1968ac_compiler_gnu=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00001969fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1971ac_cv_c_compiler_gnu=$ac_compiler_gnu
Bram Moolenaar071d4272004-06-13 20:20:40 +00001972
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001973fi
1974echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1975echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1976GCC=`test $ac_compiler_gnu = yes && echo yes`
1977ac_test_CFLAGS=${CFLAGS+set}
1978ac_save_CFLAGS=$CFLAGS
1979CFLAGS="-g"
1980echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1981echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1982if test "${ac_cv_prog_cc_g+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001984else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001985 cat >conftest.$ac_ext <<_ACEOF
1986/* confdefs.h. */
1987_ACEOF
1988cat confdefs.h >>conftest.$ac_ext
1989cat >>conftest.$ac_ext <<_ACEOF
1990/* end confdefs.h. */
1991
1992int
1993main ()
1994{
1995
1996 ;
1997 return 0;
1998}
1999_ACEOF
2000rm -f conftest.$ac_objext
2001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2002 (eval $ac_compile) 2>conftest.er1
2003 ac_status=$?
2004 grep -v '^ *+' conftest.er1 >conftest.err
2005 rm -f conftest.er1
2006 cat conftest.err >&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); } &&
2009 { ac_try='test -z "$ac_c_werror_flag"
2010 || test ! -s conftest.err'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 (eval $ac_try) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; } &&
2016 { ac_try='test -s conftest.$ac_objext'
2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018 (eval $ac_try) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00002022 ac_cv_prog_cc_g=yes
2023else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002024 echo "$as_me: failed program was:" >&5
2025sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00002026
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002027ac_cv_prog_cc_g=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00002028fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2030fi
2031echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2032echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002033if test "$ac_test_CFLAGS" = set; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002034 CFLAGS=$ac_save_CFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00002035elif test $ac_cv_prog_cc_g = yes; then
2036 if test "$GCC" = yes; then
2037 CFLAGS="-g -O2"
2038 else
2039 CFLAGS="-g"
2040 fi
2041else
2042 if test "$GCC" = yes; then
2043 CFLAGS="-O2"
2044 else
2045 CFLAGS=
2046 fi
2047fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002048echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2049echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2050if test "${ac_cv_prog_cc_stdc+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053 ac_cv_prog_cc_stdc=no
2054ac_save_CC=$CC
2055cat >conftest.$ac_ext <<_ACEOF
2056/* confdefs.h. */
2057_ACEOF
2058cat confdefs.h >>conftest.$ac_ext
2059cat >>conftest.$ac_ext <<_ACEOF
2060/* end confdefs.h. */
2061#include <stdarg.h>
2062#include <stdio.h>
2063#include <sys/types.h>
2064#include <sys/stat.h>
2065/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2066struct buf { int x; };
2067FILE * (*rcsopen) (struct buf *, struct stat *, int);
2068static char *e (p, i)
2069 char **p;
2070 int i;
2071{
2072 return p[i];
2073}
2074static char *f (char * (*g) (char **, int), char **p, ...)
2075{
2076 char *s;
2077 va_list v;
2078 va_start (v,p);
2079 s = g (p, va_arg (v,int));
2080 va_end (v);
2081 return s;
2082}
2083
2084/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2085 function prototypes and stuff, but not '\xHH' hex character constants.
2086 These don't provoke an error unfortunately, instead are silently treated
2087 as 'x'. The following induces an error, until -std1 is added to get
2088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2089 array size at least. It's necessary to write '\x00'==0 to get something
2090 that's true only with -std1. */
2091int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2092
2093int test (int i, double x);
2094struct s1 {int (*f) (int a);};
2095struct s2 {int (*f) (double a);};
2096int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2097int argc;
2098char **argv;
2099int
2100main ()
2101{
2102return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2103 ;
2104 return 0;
2105}
2106_ACEOF
2107# Don't try gcc -ansi; that turns off useful extensions and
2108# breaks some systems' header files.
2109# AIX -qlanglvl=ansi
2110# Ultrix and OSF/1 -std1
2111# HP-UX 10.20 and later -Ae
2112# HP-UX older versions -Aa -D_HPUX_SOURCE
2113# SVR4 -Xc -D__EXTENSIONS__
2114for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2115do
2116 CC="$ac_save_CC $ac_arg"
2117 rm -f conftest.$ac_objext
2118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2119 (eval $ac_compile) 2>conftest.er1
2120 ac_status=$?
2121 grep -v '^ *+' conftest.er1 >conftest.err
2122 rm -f conftest.er1
2123 cat conftest.err >&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); } &&
2126 { ac_try='test -z "$ac_c_werror_flag"
2127 || test ! -s conftest.err'
2128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2129 (eval $ac_try) 2>&5
2130 ac_status=$?
2131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2132 (exit $ac_status); }; } &&
2133 { ac_try='test -s conftest.$ac_objext'
2134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2135 (eval $ac_try) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }; }; then
2139 ac_cv_prog_cc_stdc=$ac_arg
2140break
2141else
2142 echo "$as_me: failed program was:" >&5
2143sed 's/^/| /' conftest.$ac_ext >&5
2144
2145fi
2146rm -f conftest.err conftest.$ac_objext
2147done
2148rm -f conftest.$ac_ext conftest.$ac_objext
2149CC=$ac_save_CC
2150
2151fi
2152
2153case "x$ac_cv_prog_cc_stdc" in
2154 x|xno)
2155 echo "$as_me:$LINENO: result: none needed" >&5
2156echo "${ECHO_T}none needed" >&6 ;;
2157 *)
2158 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2159echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2160 CC="$CC $ac_cv_prog_cc_stdc" ;;
2161esac
2162
2163# Some people use a C++ compiler to compile C. Since we use `exit',
2164# in C++ we need to declare it. In case someone uses the same compiler
2165# for both compiling C and C++ we need to have the C++ compiler decide
2166# the declaration of exit, since it's the most demanding environment.
2167cat >conftest.$ac_ext <<_ACEOF
2168#ifndef __cplusplus
2169 choke me
2170#endif
2171_ACEOF
2172rm -f conftest.$ac_objext
2173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2174 (eval $ac_compile) 2>conftest.er1
2175 ac_status=$?
2176 grep -v '^ *+' conftest.er1 >conftest.err
2177 rm -f conftest.er1
2178 cat conftest.err >&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); } &&
2181 { ac_try='test -z "$ac_c_werror_flag"
2182 || test ! -s conftest.err'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; } &&
2188 { ac_try='test -s conftest.$ac_objext'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190 (eval $ac_try) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2194 for ac_declaration in \
2195 '' \
2196 'extern "C" void std::exit (int) throw (); using std::exit;' \
2197 'extern "C" void std::exit (int); using std::exit;' \
2198 'extern "C" void exit (int) throw ();' \
2199 'extern "C" void exit (int);' \
2200 'void exit (int);'
2201do
2202 cat >conftest.$ac_ext <<_ACEOF
2203/* confdefs.h. */
2204_ACEOF
2205cat confdefs.h >>conftest.$ac_ext
2206cat >>conftest.$ac_ext <<_ACEOF
2207/* end confdefs.h. */
2208$ac_declaration
2209#include <stdlib.h>
2210int
2211main ()
2212{
2213exit (42);
2214 ;
2215 return 0;
2216}
2217_ACEOF
2218rm -f conftest.$ac_objext
2219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>conftest.er1
2221 ac_status=$?
2222 grep -v '^ *+' conftest.er1 >conftest.err
2223 rm -f conftest.er1
2224 cat conftest.err >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
2227 { ac_try='test -z "$ac_c_werror_flag"
2228 || test ! -s conftest.err'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 :
2241else
2242 echo "$as_me: failed program was:" >&5
2243sed 's/^/| /' conftest.$ac_ext >&5
2244
2245continue
2246fi
2247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2248 cat >conftest.$ac_ext <<_ACEOF
2249/* confdefs.h. */
2250_ACEOF
2251cat confdefs.h >>conftest.$ac_ext
2252cat >>conftest.$ac_ext <<_ACEOF
2253/* end confdefs.h. */
2254$ac_declaration
2255int
2256main ()
2257{
2258exit (42);
2259 ;
2260 return 0;
2261}
2262_ACEOF
2263rm -f conftest.$ac_objext
2264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265 (eval $ac_compile) 2>conftest.er1
2266 ac_status=$?
2267 grep -v '^ *+' conftest.er1 >conftest.err
2268 rm -f conftest.er1
2269 cat conftest.err >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); } &&
2272 { ac_try='test -z "$ac_c_werror_flag"
2273 || test ! -s conftest.err'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; } &&
2279 { ac_try='test -s conftest.$ac_objext'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; }; then
2285 break
2286else
2287 echo "$as_me: failed program was:" >&5
2288sed 's/^/| /' conftest.$ac_ext >&5
2289
2290fi
2291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2292done
2293rm -f conftest*
2294if test -n "$ac_declaration"; then
2295 echo '#ifdef __cplusplus' >>confdefs.h
2296 echo $ac_declaration >>confdefs.h
2297 echo '#endif' >>confdefs.h
2298fi
2299
2300else
2301 echo "$as_me: failed program was:" >&5
2302sed 's/^/| /' conftest.$ac_ext >&5
2303
2304fi
2305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2306ac_ext=c
2307ac_cpp='$CPP $CPPFLAGS'
2308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311 ac_ext=c
2312ac_cpp='$CPP $CPPFLAGS'
2313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315ac_compiler_gnu=$ac_cv_c_compiler_gnu
2316echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2317echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002318# On Suns, sometimes $CPP names a directory.
2319if test -n "$CPP" && test -d "$CPP"; then
2320 CPP=
2321fi
2322if test -z "$CPP"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002323 if test "${ac_cv_prog_CPP+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002325else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002326 # Double quotes because CPP needs to be expanded
2327 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2328 do
2329 ac_preproc_ok=false
2330for ac_c_preproc_warn_flag in '' yes
2331do
2332 # Use a header file that comes with gcc, so configuring glibc
2333 # with a fresh cross-compiler works.
2334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2335 # <limits.h> exists even on freestanding compilers.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002336 # On the NeXT, cc -E runs the code through the compiler's parser,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002337 # not just through cpp. "Syntax error" is here to catch this case.
2338 cat >conftest.$ac_ext <<_ACEOF
2339/* confdefs.h. */
2340_ACEOF
2341cat confdefs.h >>conftest.$ac_ext
2342cat >>conftest.$ac_ext <<_ACEOF
2343/* end confdefs.h. */
2344#ifdef __STDC__
2345# include <limits.h>
2346#else
2347# include <assert.h>
2348#endif
2349 Syntax error
2350_ACEOF
2351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2353 ac_status=$?
2354 grep -v '^ *+' conftest.er1 >conftest.err
2355 rm -f conftest.er1
2356 cat conftest.err >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } >/dev/null; then
2359 if test -s conftest.err; then
2360 ac_cpp_err=$ac_c_preproc_warn_flag
2361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Bram Moolenaar071d4272004-06-13 20:20:40 +00002362 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002363 ac_cpp_err=
Bram Moolenaar071d4272004-06-13 20:20:40 +00002364 fi
2365else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002366 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002367fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002368if test -z "$ac_cpp_err"; then
2369 :
2370else
2371 echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374 # Broken: fails on valid input.
2375continue
2376fi
2377rm -f conftest.err conftest.$ac_ext
2378
2379 # OK, works on sane cases. Now check whether non-existent headers
2380 # can be detected and how.
2381 cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h. */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h. */
2387#include <ac_nonexistent.h>
2388_ACEOF
2389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2391 ac_status=$?
2392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } >/dev/null; then
2397 if test -s conftest.err; then
2398 ac_cpp_err=$ac_c_preproc_warn_flag
2399 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2400 else
2401 ac_cpp_err=
2402 fi
2403else
2404 ac_cpp_err=yes
2405fi
2406if test -z "$ac_cpp_err"; then
2407 # Broken: success on invalid input.
2408continue
2409else
2410 echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 # Passes both tests.
2414ac_preproc_ok=:
2415break
2416fi
2417rm -f conftest.err conftest.$ac_ext
2418
2419done
2420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2421rm -f conftest.err conftest.$ac_ext
2422if $ac_preproc_ok; then
2423 break
2424fi
2425
2426 done
2427 ac_cv_prog_CPP=$CPP
2428
2429fi
2430 CPP=$ac_cv_prog_CPP
2431else
2432 ac_cv_prog_CPP=$CPP
2433fi
2434echo "$as_me:$LINENO: result: $CPP" >&5
2435echo "${ECHO_T}$CPP" >&6
2436ac_preproc_ok=false
2437for ac_c_preproc_warn_flag in '' yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002438do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002439 # Use a header file that comes with gcc, so configuring glibc
2440 # with a fresh cross-compiler works.
2441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2442 # <limits.h> exists even on freestanding compilers.
2443 # On the NeXT, cc -E runs the code through the compiler's parser,
2444 # not just through cpp. "Syntax error" is here to catch this case.
2445 cat >conftest.$ac_ext <<_ACEOF
2446/* confdefs.h. */
2447_ACEOF
2448cat confdefs.h >>conftest.$ac_ext
2449cat >>conftest.$ac_ext <<_ACEOF
2450/* end confdefs.h. */
2451#ifdef __STDC__
2452# include <limits.h>
2453#else
2454# include <assert.h>
2455#endif
2456 Syntax error
2457_ACEOF
2458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2460 ac_status=$?
2461 grep -v '^ *+' conftest.er1 >conftest.err
2462 rm -f conftest.er1
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } >/dev/null; then
2466 if test -s conftest.err; then
2467 ac_cpp_err=$ac_c_preproc_warn_flag
2468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2469 else
2470 ac_cpp_err=
2471 fi
2472else
2473 ac_cpp_err=yes
2474fi
2475if test -z "$ac_cpp_err"; then
2476 :
2477else
2478 echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 # Broken: fails on valid input.
2482continue
2483fi
2484rm -f conftest.err conftest.$ac_ext
2485
2486 # OK, works on sane cases. Now check whether non-existent headers
2487 # can be detected and how.
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h. */
2494#include <ac_nonexistent.h>
2495_ACEOF
2496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } >/dev/null; then
2504 if test -s conftest.err; then
2505 ac_cpp_err=$ac_c_preproc_warn_flag
2506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2507 else
2508 ac_cpp_err=
2509 fi
2510else
2511 ac_cpp_err=yes
2512fi
2513if test -z "$ac_cpp_err"; then
2514 # Broken: success on invalid input.
2515continue
2516else
2517 echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 # Passes both tests.
2521ac_preproc_ok=:
2522break
2523fi
2524rm -f conftest.err conftest.$ac_ext
2525
2526done
2527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2528rm -f conftest.err conftest.$ac_ext
2529if $ac_preproc_ok; then
2530 :
2531else
2532 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2533See \`config.log' for more details." >&5
2534echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2535See \`config.log' for more details." >&2;}
2536 { (exit 1); exit 1; }; }
2537fi
2538
2539ac_ext=c
2540ac_cpp='$CPP $CPPFLAGS'
2541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2543ac_compiler_gnu=$ac_cv_c_compiler_gnu
2544
2545
2546echo "$as_me:$LINENO: checking for egrep" >&5
2547echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2548if test "${ac_cv_prog_egrep+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2550else
2551 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2552 then ac_cv_prog_egrep='grep -E'
2553 else ac_cv_prog_egrep='egrep'
2554 fi
2555fi
2556echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2557echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2558 EGREP=$ac_cv_prog_egrep
2559
2560
2561cat >conftest.$ac_ext <<_ACEOF
2562/* confdefs.h. */
2563_ACEOF
2564cat confdefs.h >>conftest.$ac_ext
2565cat >>conftest.$ac_ext <<_ACEOF
2566/* end confdefs.h. */
2567
2568_ACEOF
2569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2570 $EGREP "" >/dev/null 2>&1; then
2571 :
2572fi
2573rm -f conftest*
2574 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2575echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2576if test "${ac_cv_search_strerror+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2578else
2579 ac_func_search_save_LIBS=$LIBS
2580ac_cv_search_strerror=no
2581cat >conftest.$ac_ext <<_ACEOF
2582/* confdefs.h. */
2583_ACEOF
2584cat confdefs.h >>conftest.$ac_ext
2585cat >>conftest.$ac_ext <<_ACEOF
2586/* end confdefs.h. */
2587
2588/* Override any gcc2 internal prototype to avoid an error. */
2589#ifdef __cplusplus
2590extern "C"
2591#endif
2592/* We use char because int might match the return type of a gcc2
2593 builtin and then its argument prototype would still apply. */
2594char strerror ();
2595int
2596main ()
2597{
2598strerror ();
2599 ;
2600 return 0;
2601}
2602_ACEOF
2603rm -f conftest.$ac_objext conftest$ac_exeext
2604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2605 (eval $ac_link) 2>conftest.er1
2606 ac_status=$?
2607 grep -v '^ *+' conftest.er1 >conftest.err
2608 rm -f conftest.er1
2609 cat conftest.err >&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); } &&
2612 { ac_try='test -z "$ac_c_werror_flag"
2613 || test ! -s conftest.err'
2614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615 (eval $ac_try) 2>&5
2616 ac_status=$?
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; } &&
2619 { ac_try='test -s conftest$ac_exeext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621 (eval $ac_try) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2625 ac_cv_search_strerror="none required"
2626else
2627 echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630fi
2631rm -f conftest.err conftest.$ac_objext \
2632 conftest$ac_exeext conftest.$ac_ext
2633if test "$ac_cv_search_strerror" = no; then
2634 for ac_lib in cposix; do
2635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2636 cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h. */
2642
2643/* Override any gcc2 internal prototype to avoid an error. */
2644#ifdef __cplusplus
2645extern "C"
2646#endif
2647/* We use char because int might match the return type of a gcc2
2648 builtin and then its argument prototype would still apply. */
2649char strerror ();
2650int
2651main ()
2652{
2653strerror ();
2654 ;
2655 return 0;
2656}
2657_ACEOF
2658rm -f conftest.$ac_objext conftest$ac_exeext
2659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2660 (eval $ac_link) 2>conftest.er1
2661 ac_status=$?
2662 grep -v '^ *+' conftest.er1 >conftest.err
2663 rm -f conftest.er1
2664 cat conftest.err >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } &&
2667 { ac_try='test -z "$ac_c_werror_flag"
2668 || test ! -s conftest.err'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; } &&
2674 { ac_try='test -s conftest$ac_exeext'
2675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 (eval $ac_try) 2>&5
2677 ac_status=$?
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); }; }; then
2680 ac_cv_search_strerror="-l$ac_lib"
2681break
2682else
2683 echo "$as_me: failed program was:" >&5
2684sed 's/^/| /' conftest.$ac_ext >&5
2685
2686fi
2687rm -f conftest.err conftest.$ac_objext \
2688 conftest$ac_exeext conftest.$ac_ext
2689 done
2690fi
2691LIBS=$ac_func_search_save_LIBS
2692fi
2693echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2694echo "${ECHO_T}$ac_cv_search_strerror" >&6
2695if test "$ac_cv_search_strerror" != no; then
2696 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2697
2698fi
2699 for ac_prog in gawk mawk nawk awk
2700do
2701 # Extract the first word of "$ac_prog", so it can be a program name with args.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002702set dummy $ac_prog; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002703echo "$as_me:$LINENO: checking for $ac_word" >&5
2704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2705if test "${ac_cv_prog_AWK+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002707else
2708 if test -n "$AWK"; then
2709 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2710else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2718 ac_cv_prog_AWK="$ac_prog"
2719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722done
2723done
2724
Bram Moolenaar071d4272004-06-13 20:20:40 +00002725fi
2726fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002727AWK=$ac_cv_prog_AWK
Bram Moolenaar071d4272004-06-13 20:20:40 +00002728if test -n "$AWK"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002729 echo "$as_me:$LINENO: result: $AWK" >&5
2730echo "${ECHO_T}$AWK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002731else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002732 echo "$as_me:$LINENO: result: no" >&5
2733echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002734fi
2735
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002736 test -n "$AWK" && break
Bram Moolenaar071d4272004-06-13 20:20:40 +00002737done
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002738
Bram Moolenaar071d4272004-06-13 20:20:40 +00002739# Extract the first word of "strip", so it can be a program name with args.
2740set dummy strip; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002741echo "$as_me:$LINENO: checking for $ac_word" >&5
2742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2743if test "${ac_cv_prog_STRIP+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002745else
2746 if test -n "$STRIP"; then
2747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2748else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_STRIP="strip"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760done
2761done
2762
Bram Moolenaar071d4272004-06-13 20:20:40 +00002763 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2764fi
2765fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002766STRIP=$ac_cv_prog_STRIP
Bram Moolenaar071d4272004-06-13 20:20:40 +00002767if test -n "$STRIP"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002768 echo "$as_me:$LINENO: result: $STRIP" >&5
2769echo "${ECHO_T}$STRIP" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002770else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002771 echo "$as_me:$LINENO: result: no" >&5
2772echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002773fi
2774
2775
Bram Moolenaar071d4272004-06-13 20:20:40 +00002776
2777
2778if test -z "$CFLAGS"; then
2779 CFLAGS="-O"
2780 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
2781fi
2782if test "$GCC" = yes; then
2783 gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
Bram Moolenaara5792f52005-11-23 21:25:05 +00002784 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
2785 echo 'GCC 34.0.12 has a bug in the optimizer, disabling "-O#"'
Bram Moolenaar071d4272004-06-13 20:20:40 +00002786 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2787 else
2788 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2789 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2790 CFLAGS="$CFLAGS -fno-strength-reduce"
2791 fi
2792 fi
2793fi
2794
2795if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002796 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2797 (cross compiling doesn't work)" >&5
2798echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2799 (cross compiling doesn't work)" >&2;}
2800 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00002801fi
2802
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002803test "$GCC" = yes && CPP_MM=M;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002804
2805if test -f ./toolcheck; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002806 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2807echo "$as_me: checking for buggy tools..." >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +00002808 sh ./toolcheck 1>&6
2809fi
2810
2811OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2812
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002813echo "$as_me:$LINENO: checking for BeOS" >&5
2814echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002815case `uname` in
2816 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002817 BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2818echo "${ECHO_T}yes" >&6;;
2819 *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2820echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002821esac
2822
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002823echo "$as_me:$LINENO: checking for QNX" >&5
2824echo $ECHO_N "checking for QNX... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002825case `uname` in
2826 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2827 test -z "$with_x" && with_x=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002828 QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2829echo "${ECHO_T}yes" >&6;;
2830 *) QNX=no; echo "$as_me:$LINENO: result: no" >&5
2831echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002832esac
2833
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002834echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2835echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002836if test "`(uname) 2>/dev/null`" = Darwin; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002837 echo "$as_me:$LINENO: result: yes" >&5
2838echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002839
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002840 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2841echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002842 # Check whether --enable-darwin or --disable-darwin was given.
2843if test "${enable_darwin+set}" = set; then
2844 enableval="$enable_darwin"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002845
Bram Moolenaar071d4272004-06-13 20:20:40 +00002846else
2847 enable_darwin="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002848fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002849 if test "$enable_darwin" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002850 echo "$as_me:$LINENO: result: no" >&5
2851echo "${ECHO_T}no" >&6
2852 echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2853echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002854 if test -f os_macosx.c; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002855 echo "$as_me:$LINENO: result: yes" >&5
2856echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002857 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002858 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2859echo "${ECHO_T}no, Darwin support disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002860 enable_darwin=no
2861 fi
2862 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002863 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2864echo "${ECHO_T}yes, Darwin support excluded" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002865 fi
2866
2867 if test "$enable_darwin" = "yes"; then
2868 MACOSX=yes
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002869 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
2870 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Bram Moolenaar071d4272004-06-13 20:20:40 +00002871 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp"
2872
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002873 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2874echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2875if test "${ac_cv_header_stdc+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002877else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002878 cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h. */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h. */
2884#include <stdlib.h>
2885#include <stdarg.h>
2886#include <string.h>
2887#include <float.h>
2888
2889int
2890main ()
2891{
2892
2893 ;
2894 return 0;
2895}
2896_ACEOF
2897rm -f conftest.$ac_objext
2898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>conftest.er1
2900 ac_status=$?
2901 grep -v '^ *+' conftest.er1 >conftest.err
2902 rm -f conftest.er1
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -z "$ac_c_werror_flag"
2907 || test ! -s conftest.err'
2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2909 (eval $ac_try) 2>&5
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; } &&
2913 { ac_try='test -s conftest.$ac_objext'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; }; then
2919 ac_cv_header_stdc=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002920else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002921 echo "$as_me: failed program was:" >&5
2922sed 's/^/| /' conftest.$ac_ext >&5
2923
2924ac_cv_header_stdc=no
2925fi
2926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2927
2928if test $ac_cv_header_stdc = yes; then
2929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2930 cat >conftest.$ac_ext <<_ACEOF
2931/* confdefs.h. */
2932_ACEOF
2933cat confdefs.h >>conftest.$ac_ext
2934cat >>conftest.$ac_ext <<_ACEOF
2935/* end confdefs.h. */
2936#include <string.h>
2937
2938_ACEOF
2939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2940 $EGREP "memchr" >/dev/null 2>&1; then
2941 :
2942else
2943 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00002944fi
2945rm -f conftest*
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002946
Bram Moolenaar071d4272004-06-13 20:20:40 +00002947fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002948
2949if test $ac_cv_header_stdc = yes; then
2950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2951 cat >conftest.$ac_ext <<_ACEOF
2952/* confdefs.h. */
2953_ACEOF
2954cat confdefs.h >>conftest.$ac_ext
2955cat >>conftest.$ac_ext <<_ACEOF
2956/* end confdefs.h. */
2957#include <stdlib.h>
2958
2959_ACEOF
2960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2961 $EGREP "free" >/dev/null 2>&1; then
2962 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00002963else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002964 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00002965fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002966rm -f conftest*
2967
2968fi
2969
2970if test $ac_cv_header_stdc = yes; then
2971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2972 if test "$cross_compiling" = yes; then
2973 :
2974else
2975 cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h. */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h. */
2981#include <ctype.h>
2982#if ((' ' & 0x0FF) == 0x020)
2983# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2984# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2985#else
2986# define ISLOWER(c) \
2987 (('a' <= (c) && (c) <= 'i') \
2988 || ('j' <= (c) && (c) <= 'r') \
2989 || ('s' <= (c) && (c) <= 'z'))
2990# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2991#endif
2992
2993#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2994int
2995main ()
2996{
2997 int i;
2998 for (i = 0; i < 256; i++)
2999 if (XOR (islower (i), ISLOWER (i))
3000 || toupper (i) != TOUPPER (i))
3001 exit(2);
3002 exit (0);
3003}
3004_ACEOF
3005rm -f conftest$ac_exeext
3006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3007 (eval $ac_link) 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 (eval $ac_try) 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3016 :
3017else
3018 echo "$as_me: program exited with status $ac_status" >&5
3019echo "$as_me: failed program was:" >&5
3020sed 's/^/| /' conftest.$ac_ext >&5
3021
3022( exit $ac_status )
3023ac_cv_header_stdc=no
3024fi
3025rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3026fi
3027fi
3028fi
3029echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3030echo "${ECHO_T}$ac_cv_header_stdc" >&6
3031if test $ac_cv_header_stdc = yes; then
3032
3033cat >>confdefs.h <<\_ACEOF
3034#define STDC_HEADERS 1
3035_ACEOF
3036
3037fi
3038
3039# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3050 inttypes.h stdint.h unistd.h
3051do
3052as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3053echo "$as_me:$LINENO: checking for $ac_header" >&5
3054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3055if eval "test \"\${$as_ac_Header+set}\" = set"; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058 cat >conftest.$ac_ext <<_ACEOF
3059/* confdefs.h. */
3060_ACEOF
3061cat confdefs.h >>conftest.$ac_ext
3062cat >>conftest.$ac_ext <<_ACEOF
3063/* end confdefs.h. */
3064$ac_includes_default
3065
3066#include <$ac_header>
3067_ACEOF
3068rm -f conftest.$ac_objext
3069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3070 (eval $ac_compile) 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -z "$ac_c_werror_flag"
3078 || test ! -s conftest.err'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 (eval $ac_try) 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 (eval $ac_try) 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 eval "$as_ac_Header=yes"
3091else
3092 echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095eval "$as_ac_Header=no"
3096fi
3097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3098fi
3099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3101if test `eval echo '${'$as_ac_Header'}'` = yes; then
3102 cat >>confdefs.h <<_ACEOF
3103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3104_ACEOF
3105
3106fi
3107
3108done
3109
3110
3111if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3112 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3113echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3114if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116fi
3117echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3118echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3119else
3120 # Is the header compilable?
3121echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3122echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3123cat >conftest.$ac_ext <<_ACEOF
3124/* confdefs.h. */
3125_ACEOF
3126cat confdefs.h >>conftest.$ac_ext
3127cat >>conftest.$ac_ext <<_ACEOF
3128/* end confdefs.h. */
3129$ac_includes_default
3130#include <Carbon/Carbon.h>
3131_ACEOF
3132rm -f conftest.$ac_objext
3133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3134 (eval $ac_compile) 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -z "$ac_c_werror_flag"
3142 || test ! -s conftest.err'
3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 (eval $ac_try) 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3154 ac_header_compiler=yes
3155else
3156 echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159ac_header_compiler=no
3160fi
3161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3162echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3163echo "${ECHO_T}$ac_header_compiler" >&6
3164
3165# Is the header present?
3166echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3167echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3168cat >conftest.$ac_ext <<_ACEOF
3169/* confdefs.h. */
3170_ACEOF
3171cat confdefs.h >>conftest.$ac_ext
3172cat >>conftest.$ac_ext <<_ACEOF
3173/* end confdefs.h. */
3174#include <Carbon/Carbon.h>
3175_ACEOF
3176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3178 ac_status=$?
3179 grep -v '^ *+' conftest.er1 >conftest.err
3180 rm -f conftest.er1
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } >/dev/null; then
3184 if test -s conftest.err; then
3185 ac_cpp_err=$ac_c_preproc_warn_flag
3186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3187 else
3188 ac_cpp_err=
3189 fi
3190else
3191 ac_cpp_err=yes
3192fi
3193if test -z "$ac_cpp_err"; then
3194 ac_header_preproc=yes
3195else
3196 echo "$as_me: failed program was:" >&5
3197sed 's/^/| /' conftest.$ac_ext >&5
3198
3199 ac_header_preproc=no
3200fi
3201rm -f conftest.err conftest.$ac_ext
3202echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3203echo "${ECHO_T}$ac_header_preproc" >&6
3204
3205# So? What about this header?
3206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3207 yes:no: )
3208 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3209echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3210 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3211echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3212 ac_header_preproc=yes
3213 ;;
3214 no:yes:* )
3215 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3216echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3217 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
3218echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
3219 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3220echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3221 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
3222echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
3223 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3224echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3225 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3226echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3227 (
3228 cat <<\_ASBOX
3229## ------------------------------------------ ##
3230## Report this to the AC_PACKAGE_NAME lists. ##
3231## ------------------------------------------ ##
3232_ASBOX
3233 ) |
3234 sed "s/^/$as_me: WARNING: /" >&2
3235 ;;
3236esac
3237echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3238echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3239if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241else
3242 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3243fi
3244echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3245echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3246
3247fi
3248if test $ac_cv_header_Carbon_Carbon_h = yes; then
3249 CARBON=yes
3250fi
3251
Bram Moolenaar071d4272004-06-13 20:20:40 +00003252
3253 if test "x$CARBON" = "xyes"; then
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003254 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00003255 with_x=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003256 fi
3257 fi
3258 fi
3259else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003260 echo "$as_me:$LINENO: result: no" >&5
3261echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003262fi
3263
3264
3265
3266
3267have_local_include=''
3268have_local_lib=''
3269if test "$GCC" = yes; then
3270 echo 'void f(){}' > conftest.c
3271 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3272 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3273 rm -f conftest.c conftest.o
3274fi
3275if test -z "$have_local_lib" -a -d /usr/local/lib; then
3276 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3277 if test "$tt" = "$LDFLAGS"; then
3278 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3279 fi
3280fi
3281if test -z "$have_local_include" -a -d /usr/local/include; then
3282 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3283 if test "$tt" = "$CPPFLAGS"; then
3284 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3285 fi
3286fi
3287
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003288echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3289echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3290
Bram Moolenaar071d4272004-06-13 20:20:40 +00003291# Check whether --with-vim-name or --without-vim-name was given.
3292if test "${with_vim_name+set}" = set; then
3293 withval="$with_vim_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003294 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3295echo "${ECHO_T}$VIMNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003296else
Bram Moolenaare344bea2005-09-01 20:46:49 +00003297 VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003298echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3299fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003300
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003301echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3302echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003303
Bram Moolenaar071d4272004-06-13 20:20:40 +00003304# Check whether --with-ex-name or --without-ex-name was given.
3305if test "${with_ex_name+set}" = set; then
3306 withval="$with_ex_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003307 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3308echo "${ECHO_T}$EXNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003309else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003310 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3311echo "${ECHO_T}Defaulting to ex" >&6
3312fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003313
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003314echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3315echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003316
Bram Moolenaar071d4272004-06-13 20:20:40 +00003317# Check whether --with-view-name or --without-view-name was given.
3318if test "${with_view_name+set}" = set; then
3319 withval="$with_view_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003320 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3321echo "${ECHO_T}$VIEWNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003322else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003323 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3324echo "${ECHO_T}Defaulting to view" >&6
3325fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003326
3327
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003328echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3329echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003330
Bram Moolenaar071d4272004-06-13 20:20:40 +00003331# Check whether --with-global-runtime or --without-global-runtime was given.
3332if test "${with_global_runtime+set}" = set; then
3333 withval="$with_global_runtime"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003334 echo "$as_me:$LINENO: result: $withval" >&5
3335echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003336#define RUNTIME_GLOBAL "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003337_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003338
3339else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003340 echo "$as_me:$LINENO: result: no" >&5
3341echo "${ECHO_T}no" >&6
3342fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003343
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003344echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3345echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003346
Bram Moolenaar071d4272004-06-13 20:20:40 +00003347# Check whether --with-modified-by or --without-modified-by was given.
3348if test "${with_modified_by+set}" = set; then
3349 withval="$with_modified_by"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003350 echo "$as_me:$LINENO: result: $withval" >&5
3351echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003352#define MODIFIED_BY "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003353_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003354
3355else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003356 echo "$as_me:$LINENO: result: no" >&5
3357echo "${ECHO_T}no" >&6
3358fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003359
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003360echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3361echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3362cat >conftest.$ac_ext <<_ACEOF
3363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003368
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003369int
3370main ()
3371{
Bram Moolenaar071d4272004-06-13 20:20:40 +00003372 /* TryCompile function for CharSet.
3373 Treat any failure as ASCII for compatibility with existing art.
3374 Use compile-time rather than run-time tests for cross-compiler
3375 tolerance. */
3376#if '0'!=240
3377make an error "Character set is not EBCDIC"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003378#endif
3379 ;
3380 return 0;
3381}
3382_ACEOF
3383rm -f conftest.$ac_objext
3384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385 (eval $ac_compile) 2>conftest.er1
3386 ac_status=$?
3387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
3392 { ac_try='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest.$ac_objext'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00003405 # TryCompile action if true
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003406cf_cv_ebcdic=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003407else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003408 echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
3411 # TryCompile action if false
Bram Moolenaar071d4272004-06-13 20:20:40 +00003412cf_cv_ebcdic=no
3413fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003415# end of TryCompile ])
3416# end of CacheVal CvEbcdic
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003417echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3418echo "${ECHO_T}$cf_cv_ebcdic" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003419case "$cf_cv_ebcdic" in #(vi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003420 yes) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003421#define EBCDIC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003422_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003423
3424 line_break='"\\n"'
3425 ;;
3426 *) line_break='"\\012"';;
3427esac
3428
3429
3430if test "$cf_cv_ebcdic" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003431echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3432echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003433case `uname` in
3434 OS/390) OS390Unix="yes";
3435 if test "$CC" = "cc"; then
3436 ccm="$_CC_CCMODE"
3437 ccn="CC"
3438 else
3439 if test "$CC" = "c89"; then
3440 ccm="$_CC_C89MODE"
3441 ccn="C89"
3442 else
3443 ccm=1
3444 fi
3445 fi
3446 if test "$ccm" != "1"; then
3447 echo ""
3448 echo "------------------------------------------"
3449 echo " On OS/390 Unix, the environment variable"
3450 echo " __CC_${ccn}MODE must be set to \"1\"!"
3451 echo " Do:"
3452 echo " export _CC_${ccn}MODE=1"
3453 echo " and then call configure again."
3454 echo "------------------------------------------"
3455 exit 1
3456 fi
3457 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003458 echo "$as_me:$LINENO: result: yes" >&5
3459echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003460 ;;
3461 *) OS390Unix="no";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003462 echo "$as_me:$LINENO: result: no" >&5
3463echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003464 ;;
3465esac
3466fi
3467
3468
3469
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003470echo "$as_me:$LINENO: checking --with-features argument" >&5
3471echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3472
Bram Moolenaar071d4272004-06-13 20:20:40 +00003473# Check whether --with-features or --without-features was given.
3474if test "${with_features+set}" = set; then
3475 withval="$with_features"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003476 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3477echo "${ECHO_T}$features" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003478else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003479 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3480echo "${ECHO_T}Defaulting to normal" >&6
3481fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003482
3483dovimdiff=""
3484dogvimdiff=""
3485case "$features" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003486 tiny) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003487#define FEAT_TINY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003488_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003489 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003490 small) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003491#define FEAT_SMALL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003492_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003493 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003494 normal) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003495#define FEAT_NORMAL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003496_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003497 dovimdiff="installvimdiff";
3498 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003499 big) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003500#define FEAT_BIG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003501_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003502 dovimdiff="installvimdiff";
3503 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003504 huge) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003505#define FEAT_HUGE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003506_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003507 dovimdiff="installvimdiff";
3508 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003509 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3510echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003511esac
3512
3513
3514
3515
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003516echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3517echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3518
Bram Moolenaar071d4272004-06-13 20:20:40 +00003519# Check whether --with-compiledby or --without-compiledby was given.
3520if test "${with_compiledby+set}" = set; then
3521 withval="$with_compiledby"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003522 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3523echo "${ECHO_T}$withval" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003524else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003525 compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3526echo "${ECHO_T}no" >&6
3527fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003528
3529
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003530echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3531echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003532# Check whether --enable-xsmp or --disable-xsmp was given.
3533if test "${enable_xsmp+set}" = set; then
3534 enableval="$enable_xsmp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003535
Bram Moolenaar071d4272004-06-13 20:20:40 +00003536else
3537 enable_xsmp="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003538fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003539
3540if test "$enable_xsmp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003541 echo "$as_me:$LINENO: result: no" >&5
3542echo "${ECHO_T}no" >&6
3543 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3544echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003545 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3546if test "${enable_xsmp_interact+set}" = set; then
3547 enableval="$enable_xsmp_interact"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003548
Bram Moolenaar071d4272004-06-13 20:20:40 +00003549else
3550 enable_xsmp_interact="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003551fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003552 if test "$enable_xsmp_interact" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003553 echo "$as_me:$LINENO: result: no" >&5
3554echo "${ECHO_T}no" >&6
3555 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003556#define USE_XSMP_INTERACT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003557_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003558
3559 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003560 echo "$as_me:$LINENO: result: yes" >&5
3561echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003562 fi
3563else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003564 echo "$as_me:$LINENO: result: yes" >&5
3565echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003566fi
3567
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003568echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3569echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003570# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3571if test "${enable_mzschemeinterp+set}" = set; then
3572 enableval="$enable_mzschemeinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003573
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003574else
3575 enable_mzschemeinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003576fi;
3577echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3578echo "${ECHO_T}$enable_mzschemeinterp" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003579
3580if test "$enable_mzschemeinterp" = "yes"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003581
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003582
3583 echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3584echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3585
3586# Check whether --with-plthome or --without-plthome was given.
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003587if test "${with_plthome+set}" = set; then
3588 withval="$with_plthome"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003589 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3590echo "${ECHO_T}$with_plthome" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003591else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003592 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3593echo "${ECHO_T}\"no\"" >&6
3594fi;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003595
3596 if test "X$with_plthome" != "X"; then
3597 vi_cv_path_mzscheme_pfx="$with_plthome"
3598 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003599 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3600echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003601 if test "X$PLTHOME" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003602 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3603echo "${ECHO_T}\"$PLTHOME\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003604 vi_cv_path_mzscheme_pfx="$PLTHOME"
3605 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003606 echo "$as_me:$LINENO: result: \"not set\"" >&5
3607echo "${ECHO_T}\"not set\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003608 # Extract the first word of "mzscheme", so it can be a program name with args.
3609set dummy mzscheme; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003610echo "$as_me:$LINENO: checking for $ac_word" >&5
3611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3612if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003614else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003615 case $vi_cv_path_mzscheme in
3616 [\\/]* | ?:[\\/]*)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003617 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3618 ;;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003619 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621for as_dir in $PATH
3622do
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3627 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 break 2
3630 fi
3631done
3632done
3633
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003634 ;;
3635esac
3636fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003637vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3638
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003639if test -n "$vi_cv_path_mzscheme"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003640 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3641echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003642else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003643 echo "$as_me:$LINENO: result: no" >&5
3644echo "${ECHO_T}no" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003645fi
3646
3647
3648 if test "X$vi_cv_path_mzscheme" != "X"; then
3649 lsout=`ls -l $vi_cv_path_mzscheme`
3650 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3651 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3652 fi
3653 fi
3654
3655 if test "X$vi_cv_path_mzscheme" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003656 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3657echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3658if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003660else
3661 vi_cv_path_mzscheme_pfx=`
3662 ${vi_cv_path_mzscheme} -evm \
3663 "(display (simplify-path \
3664 (build-path (call-with-values \
3665 (lambda () (split-path (find-system-path (quote exec-file)))) \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003666 (lambda (base name must-be-dir?) base)) (quote up))))"`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003667fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003668echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3669echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003670 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3671 fi
3672 fi
3673 fi
3674
3675 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003676 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3677echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003678 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003679 echo "$as_me:$LINENO: result: \"yes\"" >&5
3680echo "${ECHO_T}\"yes\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003681 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003682 echo "$as_me:$LINENO: result: \"no\"" >&5
3683echo "${ECHO_T}\"no\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003684 vi_cv_path_mzscheme_pfx=
3685 fi
3686 fi
3687
3688 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3689 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3690 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3691 else
3692 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003693 if test "$GCC" = yes; then
3694 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar21cf8232004-07-16 20:18:37 +00003695 elif test "`(uname) 2>/dev/null`" = SunOS &&
3696 uname -r | grep '^5' >/dev/null; then
3697 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003698 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003699 fi
3700 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \
3701 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
3702 MZSCHEME_SRC="if_mzsch.c"
3703 MZSCHEME_OBJ="objects/if_mzsch.o"
3704 MZSCHEME_PRO="if_mzsch.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003705 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003706#define FEAT_MZSCHEME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003707_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003708
3709 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003710
3711
3712
3713
3714
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003715fi
3716
3717
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003718echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3719echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003720# Check whether --enable-perlinterp or --disable-perlinterp was given.
3721if test "${enable_perlinterp+set}" = set; then
3722 enableval="$enable_perlinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003723
Bram Moolenaar071d4272004-06-13 20:20:40 +00003724else
3725 enable_perlinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003726fi;
3727echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3728echo "${ECHO_T}$enable_perlinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003729if test "$enable_perlinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003730
Bram Moolenaar071d4272004-06-13 20:20:40 +00003731 # Extract the first word of "perl", so it can be a program name with args.
3732set dummy perl; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003733echo "$as_me:$LINENO: checking for $ac_word" >&5
3734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003737else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003738 case $vi_cv_path_perl in
3739 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003740 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3741 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003742 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744for as_dir in $PATH
3745do
3746 IFS=$as_save_IFS
3747 test -z "$as_dir" && as_dir=.
3748 for ac_exec_ext in '' $ac_executable_extensions; do
3749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 break 2
3753 fi
3754done
3755done
3756
Bram Moolenaar071d4272004-06-13 20:20:40 +00003757 ;;
3758esac
3759fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003760vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3761
Bram Moolenaar071d4272004-06-13 20:20:40 +00003762if test -n "$vi_cv_path_perl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003763 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3764echo "${ECHO_T}$vi_cv_path_perl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003765else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003766 echo "$as_me:$LINENO: result: no" >&5
3767echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003768fi
3769
3770 if test "X$vi_cv_path_perl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003771 echo "$as_me:$LINENO: checking Perl version" >&5
3772echo $ECHO_N "checking Perl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003773 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3774 eval `$vi_cv_path_perl -V:usethreads`
3775 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3776 badthreads=no
3777 else
3778 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3779 eval `$vi_cv_path_perl -V:use5005threads`
3780 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3781 badthreads=no
3782 else
3783 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003784 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3785echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003786 fi
3787 else
3788 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003789 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3790echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003791 fi
3792 fi
3793 if test $badthreads = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003794 echo "$as_me:$LINENO: result: OK" >&5
3795echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003796 eval `$vi_cv_path_perl -V:shrpenv`
3797 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3798 shrpenv=""
3799 fi
3800 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003801
Bram Moolenaar071d4272004-06-13 20:20:40 +00003802 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3803 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3804 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3805 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3806 -e 's/-bE:perl.exp//' -e 's/-lc //'`
3807 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3808 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3809
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003810 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3811echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003812 cflags_save=$CFLAGS
3813 libs_save=$LIBS
3814 ldflags_save=$LDFLAGS
3815 CFLAGS="$CFLAGS $perlcppflags"
3816 LIBS="$LIBS $perllibs"
3817 LDFLAGS="$perlldflags $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003818 cat >conftest.$ac_ext <<_ACEOF
3819/* confdefs.h. */
3820_ACEOF
3821cat confdefs.h >>conftest.$ac_ext
3822cat >>conftest.$ac_ext <<_ACEOF
3823/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003824
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003825int
3826main ()
3827{
3828
3829 ;
3830 return 0;
3831}
3832_ACEOF
3833rm -f conftest.$ac_objext conftest$ac_exeext
3834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3835 (eval $ac_link) 2>conftest.er1
3836 ac_status=$?
3837 grep -v '^ *+' conftest.er1 >conftest.err
3838 rm -f conftest.er1
3839 cat conftest.err >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); } &&
3842 { ac_try='test -z "$ac_c_werror_flag"
3843 || test ! -s conftest.err'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; } &&
3849 { ac_try='test -s conftest$ac_exeext'
3850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851 (eval $ac_try) 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; }; then
3855 echo "$as_me:$LINENO: result: yes" >&5
3856echo "${ECHO_T}yes" >&6; perl_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003857else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003858 echo "$as_me: failed program was:" >&5
3859sed 's/^/| /' conftest.$ac_ext >&5
3860
3861echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
3862echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003863fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003864rm -f conftest.err conftest.$ac_objext \
3865 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003866 CFLAGS=$cflags_save
3867 LIBS=$libs_save
3868 LDFLAGS=$ldflags_save
3869 if test $perl_ok = yes; then
3870 if test "X$perlcppflags" != "X"; then
3871 PERL_CFLAGS="$perlcppflags"
3872 fi
3873 if test "X$perlldflags" != "X"; then
3874 LDFLAGS="$perlldflags $LDFLAGS"
3875 fi
3876 PERL_LIBS=$perllibs
3877 PERL_SRC="auto/if_perl.c if_perlsfio.c"
3878 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
3879 PERL_PRO="if_perl.pro if_perlsfio.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003880 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003881#define FEAT_PERL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003882_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003883
3884 fi
3885 fi
3886 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003887 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
3888echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003889 fi
3890 fi
3891
3892 if test "x$MACOSX" = "xyes"; then
3893 dir=/System/Library/Perl
3894 darwindir=$dir/darwin
3895 if test -d $darwindir; then
3896 PERL=/usr/bin/perl
3897 else
3898 dir=/System/Library/Perl/5.8.1
3899 darwindir=$dir/darwin-thread-multi-2level
3900 if test -d $darwindir; then
3901 PERL=/usr/bin/perl
3902 fi
3903 fi
3904 if test -n "$PERL"; then
3905 PERL_DIR="$dir"
3906 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
3907 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
3908 PERL_LIBS="-L$darwindir/CORE -lperl"
3909 fi
3910 fi
3911fi
3912
3913
3914
3915
3916
3917
3918
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003919echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
3920echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003921# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
3922if test "${enable_pythoninterp+set}" = set; then
3923 enableval="$enable_pythoninterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003924
Bram Moolenaar071d4272004-06-13 20:20:40 +00003925else
3926 enable_pythoninterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003927fi;
3928echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
3929echo "${ECHO_T}$enable_pythoninterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003930if test "$enable_pythoninterp" = "yes"; then
3931 # Extract the first word of "python", so it can be a program name with args.
3932set dummy python; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003933echo "$as_me:$LINENO: checking for $ac_word" >&5
3934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3935if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003937else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003938 case $vi_cv_path_python in
3939 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003940 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
3941 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003942 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944for as_dir in $PATH
3945do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3950 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
3951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3953 fi
3954done
3955done
3956
Bram Moolenaar071d4272004-06-13 20:20:40 +00003957 ;;
3958esac
3959fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003960vi_cv_path_python=$ac_cv_path_vi_cv_path_python
3961
Bram Moolenaar071d4272004-06-13 20:20:40 +00003962if test -n "$vi_cv_path_python"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003963 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
3964echo "${ECHO_T}$vi_cv_path_python" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003965else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003966 echo "$as_me:$LINENO: result: no" >&5
3967echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003968fi
3969
3970 if test "X$vi_cv_path_python" != "X"; then
3971
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003972 echo "$as_me:$LINENO: checking Python version" >&5
3973echo $ECHO_N "checking Python version... $ECHO_C" >&6
3974if test "${vi_cv_var_python_version+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003976else
3977 vi_cv_var_python_version=`
3978 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003979
Bram Moolenaar071d4272004-06-13 20:20:40 +00003980fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003981echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
3982echo "${ECHO_T}$vi_cv_var_python_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003983
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003984 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
3985echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003986 if ${vi_cv_path_python} -c \
3987 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
3988 then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003989 echo "$as_me:$LINENO: result: yep" >&5
3990echo "${ECHO_T}yep" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003991
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003992 echo "$as_me:$LINENO: checking Python's install prefix" >&5
3993echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
3994if test "${vi_cv_path_python_pfx+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003996else
3997 vi_cv_path_python_pfx=`
3998 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003999 "import sys; print sys.prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004000fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004001echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4002echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004003
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004004 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4005echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4006if test "${vi_cv_path_python_epfx+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004008else
4009 vi_cv_path_python_epfx=`
4010 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004011 "import sys; print sys.exec_prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004012fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004013echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4014echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004015
Bram Moolenaar071d4272004-06-13 20:20:40 +00004016
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004017 if test "${vi_cv_path_pythonpath+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004019else
4020 vi_cv_path_pythonpath=`
4021 unset PYTHONPATH;
4022 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004023 "import sys, string; print string.join(sys.path,':')"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004024fi
4025
4026
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004027
4028
4029# Check whether --with-python-config-dir or --without-python-config-dir was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004030if test "${with_python_config_dir+set}" = set; then
4031 withval="$with_python_config_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004032 vi_cv_path_python_conf="${withval}"
4033fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004034
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004035 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4036echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4037if test "${vi_cv_path_python_conf+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004039else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004040
Bram Moolenaar071d4272004-06-13 20:20:40 +00004041 vi_cv_path_python_conf=
4042 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4043 for subdir in lib share; do
4044 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4045 if test -d "$d" && test -f "$d/config.c"; then
4046 vi_cv_path_python_conf="$d"
4047 fi
4048 done
4049 done
Bram Moolenaar071d4272004-06-13 20:20:40 +00004050
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004051fi
4052echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4053echo "${ECHO_T}$vi_cv_path_python_conf" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004054
4055 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4056
4057 if test "X$PYTHON_CONFDIR" = "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004058 echo "$as_me:$LINENO: result: can't find it!" >&5
4059echo "${ECHO_T}can't find it!" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004060 else
4061
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004062 if test "${vi_cv_path_python_plibs+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004064else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004065
Bram Moolenaar071d4272004-06-13 20:20:40 +00004066 tmp_mkf="/tmp/Makefile-conf$$"
4067 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4068__:
4069 @echo "python_MODLIBS='$(MODLIBS)'"
4070 @echo "python_LIBS='$(LIBS)'"
4071 @echo "python_SYSLIBS='$(SYSLIBS)'"
4072 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4073eof
4074 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4075 rm -f ${tmp_mkf}
4076 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4077 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4078 vi_cv_path_python_plibs="-framework Python"
4079 else
4080 if test "${vi_cv_var_python_version}" = "1.4"; then
4081 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4082 else
4083 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4084 fi
4085 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4086 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4087 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004088
Bram Moolenaar071d4272004-06-13 20:20:40 +00004089fi
4090
4091
4092 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4093 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4094 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4095 else
4096 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}"
4097 fi
4098 PYTHON_SRC="if_python.c"
4099 if test "x$MACOSX" = "xyes"; then
4100 PYTHON_OBJ="objects/if_python.o"
4101 else
4102 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4103 fi
4104 if test "${vi_cv_var_python_version}" = "1.4"; then
4105 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4106 fi
4107 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4108
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004109 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4110echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004111 threadsafe_flag=
4112 thread_lib=
4113 if test "x$MACOSX" != "xyes"; then
4114 test "$GCC" = yes && threadsafe_flag="-pthread"
4115 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4116 threadsafe_flag="-D_THREAD_SAFE"
4117 thread_lib="-pthread"
4118 fi
4119 fi
4120 libs_save_old=$LIBS
4121 if test -n "$threadsafe_flag"; then
4122 cflags_save=$CFLAGS
4123 CFLAGS="$CFLAGS $threadsafe_flag"
4124 LIBS="$LIBS $thread_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004125 cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h. */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004131
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004132int
4133main ()
4134{
4135
4136 ;
4137 return 0;
4138}
4139_ACEOF
4140rm -f conftest.$ac_objext conftest$ac_exeext
4141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4142 (eval $ac_link) 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag"
4150 || test ! -s conftest.err'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest$ac_exeext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 echo "$as_me:$LINENO: result: yes" >&5
4163echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004164else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004165 echo "$as_me: failed program was:" >&5
4166sed 's/^/| /' conftest.$ac_ext >&5
4167
4168echo "$as_me:$LINENO: result: no" >&5
4169echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4170
Bram Moolenaar071d4272004-06-13 20:20:40 +00004171fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004172rm -f conftest.err conftest.$ac_objext \
4173 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004174 CFLAGS=$cflags_save
4175 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004176 echo "$as_me:$LINENO: result: no" >&5
4177echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004178 fi
4179
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004180 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4181echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004182 cflags_save=$CFLAGS
4183 libs_save=$LIBS
4184 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4185 LIBS="$LIBS $PYTHON_LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004186 cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004192
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004193int
4194main ()
4195{
4196
4197 ;
4198 return 0;
4199}
4200_ACEOF
4201rm -f conftest.$ac_objext conftest$ac_exeext
4202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4203 (eval $ac_link) 2>conftest.er1
4204 ac_status=$?
4205 grep -v '^ *+' conftest.er1 >conftest.err
4206 rm -f conftest.er1
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } &&
4210 { ac_try='test -z "$ac_c_werror_flag"
4211 || test ! -s conftest.err'
4212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 (eval $ac_try) 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; } &&
4217 { ac_try='test -s conftest$ac_exeext'
4218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 (eval $ac_try) 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; }; then
4223 echo "$as_me:$LINENO: result: yes" >&5
4224echo "${ECHO_T}yes" >&6; python_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004225else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004226 echo "$as_me: failed program was:" >&5
4227sed 's/^/| /' conftest.$ac_ext >&5
4228
4229echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4230echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004231fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004232rm -f conftest.err conftest.$ac_objext \
4233 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004234 CFLAGS=$cflags_save
4235 LIBS=$libs_save
4236 if test $python_ok = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004237 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004238#define FEAT_PYTHON 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004239_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004240
4241 else
4242 LIBS=$libs_save_old
4243 PYTHON_SRC=
4244 PYTHON_OBJ=
4245 PYTHON_LIBS=
4246 PYTHON_CFLAGS=
4247 fi
4248
4249 fi
4250 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004251 echo "$as_me:$LINENO: result: too old" >&5
4252echo "${ECHO_T}too old" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004253 fi
4254 fi
4255fi
4256
4257
4258
4259
4260
4261
4262
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004263echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4264echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004265# Check whether --enable-tclinterp or --disable-tclinterp was given.
4266if test "${enable_tclinterp+set}" = set; then
4267 enableval="$enable_tclinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004268
Bram Moolenaar071d4272004-06-13 20:20:40 +00004269else
4270 enable_tclinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004271fi;
4272echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4273echo "${ECHO_T}$enable_tclinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004274
4275if test "$enable_tclinterp" = "yes"; then
4276
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004277 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4278echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4279
4280# Check whether --with-tclsh or --without-tclsh was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004281if test "${with_tclsh+set}" = set; then
4282 withval="$with_tclsh"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004283 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4284echo "${ECHO_T}$tclsh_name" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004285else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004286 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4287echo "${ECHO_T}no" >&6
4288fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004289 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4290set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004291echo "$as_me:$LINENO: checking for $ac_word" >&5
4292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4293if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004295else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004296 case $vi_cv_path_tcl in
4297 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004298 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4299 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004300 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH
4303do
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4308 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 break 2
4311 fi
4312done
4313done
4314
Bram Moolenaar071d4272004-06-13 20:20:40 +00004315 ;;
4316esac
4317fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004318vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4319
Bram Moolenaar071d4272004-06-13 20:20:40 +00004320if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004321 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4322echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004323else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004324 echo "$as_me:$LINENO: result: no" >&5
4325echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004326fi
4327
Bram Moolenaar071d4272004-06-13 20:20:40 +00004328
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004329
4330 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004331 tclsh_name="tclsh8.2"
4332 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4333set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004334echo "$as_me:$LINENO: checking for $ac_word" >&5
4335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4336if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004338else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004339 case $vi_cv_path_tcl in
4340 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004341 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4342 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004343 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345for as_dir in $PATH
4346do
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4351 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4354 fi
4355done
4356done
4357
Bram Moolenaar071d4272004-06-13 20:20:40 +00004358 ;;
4359esac
4360fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004361vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4362
Bram Moolenaar071d4272004-06-13 20:20:40 +00004363if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004364 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4365echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004366else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004367 echo "$as_me:$LINENO: result: no" >&5
4368echo "${ECHO_T}no" >&6
4369fi
4370
4371 fi
4372 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4373 tclsh_name="tclsh8.0"
4374 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4375set dummy $tclsh_name; ac_word=$2
4376echo "$as_me:$LINENO: checking for $ac_word" >&5
4377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4378if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4379 echo $ECHO_N "(cached) $ECHO_C" >&6
4380else
4381 case $vi_cv_path_tcl in
4382 [\\/]* | ?:[\\/]*)
4383 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4384 ;;
4385 *)
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4396 fi
4397done
4398done
4399
4400 ;;
4401esac
4402fi
4403vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4404
4405if test -n "$vi_cv_path_tcl"; then
4406 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4407echo "${ECHO_T}$vi_cv_path_tcl" >&6
4408else
4409 echo "$as_me:$LINENO: result: no" >&5
4410echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004411fi
4412
4413 fi
4414 if test "X$vi_cv_path_tcl" = "X"; then
4415 tclsh_name="tclsh"
4416 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4417set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004418echo "$as_me:$LINENO: checking for $ac_word" >&5
4419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004422else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004423 case $vi_cv_path_tcl in
4424 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004425 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4426 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004427 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429for as_dir in $PATH
4430do
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4438 fi
4439done
4440done
4441
Bram Moolenaar071d4272004-06-13 20:20:40 +00004442 ;;
4443esac
4444fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004445vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4446
Bram Moolenaar071d4272004-06-13 20:20:40 +00004447if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004448 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4449echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004450else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004451 echo "$as_me:$LINENO: result: no" >&5
4452echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004453fi
4454
4455 fi
4456 if test "X$vi_cv_path_tcl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004457 echo "$as_me:$LINENO: checking Tcl version" >&5
4458echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004459 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4460 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004461 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4462echo "${ECHO_T}$tclver - OK" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004463 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 -`
4464
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004465 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4466echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004467 if test "x$MACOSX" != "xyes"; then
Bram Moolenaar47136d72004-10-12 20:02:24 +00004468 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004469 else
4470 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4471 fi
4472 for try in $tclinc; do
4473 if test -f "$try/tcl.h"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004474 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4475echo "${ECHO_T}$try/tcl.h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004476 TCL_INC=$try
4477 break
4478 fi
4479 done
4480 if test -z "$TCL_INC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004481 echo "$as_me:$LINENO: result: <not found>" >&5
4482echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004483 SKIP_TCL=YES
4484 fi
4485 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004486 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4487echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004488 if test "x$MACOSX" != "xyes"; then
4489 tclcnf=`echo $tclinc | sed s/include/lib/g`
4490 else
4491 tclcnf="/System/Library/Frameworks/Tcl.framework"
4492 fi
4493 for try in $tclcnf; do
4494 if test -f $try/tclConfig.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004495 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4496echo "${ECHO_T}$try/tclConfig.sh" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004497 . $try/tclConfig.sh
4498 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
Bram Moolenaar9372a112005-12-06 19:59:18 +00004499 TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004500 break
4501 fi
4502 done
4503 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004504 echo "$as_me:$LINENO: result: <not found>" >&5
4505echo "${ECHO_T}<not found>" >&6
4506 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4507echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004508 tcllib=`echo $tclinc | sed s/include/lib/g`
4509 for ext in .so .a ; do
4510 for ver in "" $tclver ; do
4511 for try in $tcllib ; do
4512 trylib=tcl$ver$ext
4513 if test -f $try/lib$trylib ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004514 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4515echo "${ECHO_T}$try/lib$trylib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004516 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4517 if test "`(uname) 2>/dev/null`" = SunOS &&
4518 uname -r | grep '^5' >/dev/null; then
4519 TCL_LIBS="$TCL_LIBS -R $try"
4520 fi
4521 break 3
4522 fi
4523 done
4524 done
4525 done
4526 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004527 echo "$as_me:$LINENO: result: <not found>" >&5
4528echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004529 SKIP_TCL=YES
4530 fi
4531 fi
4532 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004533 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004534#define FEAT_TCL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004535_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004536
4537 TCL_SRC=if_tcl.c
4538 TCL_OBJ=objects/if_tcl.o
4539 TCL_PRO=if_tcl.pro
4540 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4541 fi
4542 fi
4543 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004544 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4545echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004546 fi
4547 fi
4548fi
4549
4550
4551
4552
4553
4554
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004555echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4556echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004557# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4558if test "${enable_rubyinterp+set}" = set; then
4559 enableval="$enable_rubyinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004560
Bram Moolenaar071d4272004-06-13 20:20:40 +00004561else
4562 enable_rubyinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004563fi;
4564echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4565echo "${ECHO_T}$enable_rubyinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004566if test "$enable_rubyinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004567
Bram Moolenaar071d4272004-06-13 20:20:40 +00004568 # Extract the first word of "ruby", so it can be a program name with args.
4569set dummy ruby; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004570echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4572if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004574else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004575 case $vi_cv_path_ruby in
4576 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004577 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4578 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004579 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592done
4593
Bram Moolenaar071d4272004-06-13 20:20:40 +00004594 ;;
4595esac
4596fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004597vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4598
Bram Moolenaar071d4272004-06-13 20:20:40 +00004599if test -n "$vi_cv_path_ruby"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004600 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4601echo "${ECHO_T}$vi_cv_path_ruby" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004602else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004603 echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004605fi
4606
4607 if test "X$vi_cv_path_ruby" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004608 echo "$as_me:$LINENO: checking Ruby version" >&5
4609echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
Bram Moolenaar0cb032e2005-04-23 20:52:00 +00004610 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004611 echo "$as_me:$LINENO: result: OK" >&5
4612echo "${ECHO_T}OK" >&6
4613 echo "$as_me:$LINENO: checking Ruby header files" >&5
4614echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004615 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4616 if test "X$rubyhdrdir" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004617 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4618echo "${ECHO_T}$rubyhdrdir" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004619 RUBY_CFLAGS="-I$rubyhdrdir"
4620 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4621 if test "X$rubylibs" != "X"; then
4622 RUBY_LIBS="$rubylibs"
4623 fi
4624 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4625 if test -f "$rubyhdrdir/$librubyarg"; then
4626 librubyarg="$rubyhdrdir/$librubyarg"
4627 else
4628 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4629 if test -f "$rubylibdir/$librubyarg"; then
4630 librubyarg="$rubylibdir/$librubyarg"
4631 elif test "$librubyarg" = "libruby.a"; then
4632 librubyarg="-lruby"
4633 else
4634 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4635 fi
4636 fi
4637
4638 if test "X$librubyarg" != "X"; then
4639 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4640 fi
4641 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4642 if test "X$rubyldflags" != "X"; then
4643 LDFLAGS="$rubyldflags $LDFLAGS"
4644 fi
4645 RUBY_SRC="if_ruby.c"
4646 RUBY_OBJ="objects/if_ruby.o"
4647 RUBY_PRO="if_ruby.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004648 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004649#define FEAT_RUBY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004650_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004651
4652 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004653 echo "$as_me:$LINENO: result: not found" >&5
4654echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004655 fi
4656 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004657 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4658echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004659 fi
4660 fi
4661fi
4662
4663
4664
4665
4666
4667
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004668echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4669echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004670# Check whether --enable-cscope or --disable-cscope was given.
4671if test "${enable_cscope+set}" = set; then
4672 enableval="$enable_cscope"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004673
Bram Moolenaar071d4272004-06-13 20:20:40 +00004674else
4675 enable_cscope="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004676fi;
4677echo "$as_me:$LINENO: result: $enable_cscope" >&5
4678echo "${ECHO_T}$enable_cscope" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004679if test "$enable_cscope" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004680 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004681#define FEAT_CSCOPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004682_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004683
4684fi
4685
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004686echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4687echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004688# Check whether --enable-workshop or --disable-workshop was given.
4689if test "${enable_workshop+set}" = set; then
4690 enableval="$enable_workshop"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004691
Bram Moolenaar071d4272004-06-13 20:20:40 +00004692else
4693 enable_workshop="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004694fi;
4695echo "$as_me:$LINENO: result: $enable_workshop" >&5
4696echo "${ECHO_T}$enable_workshop" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004697if test "$enable_workshop" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004698 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004699#define FEAT_SUN_WORKSHOP 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004700_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004701
4702 WORKSHOP_SRC="workshop.c integration.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004703
Bram Moolenaar071d4272004-06-13 20:20:40 +00004704 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004705
Bram Moolenaar071d4272004-06-13 20:20:40 +00004706 if test "${enable_gui-xxx}" = xxx; then
4707 enable_gui=motif
4708 fi
4709fi
4710
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004711echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4712echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004713# Check whether --enable-netbeans or --disable-netbeans was given.
4714if test "${enable_netbeans+set}" = set; then
4715 enableval="$enable_netbeans"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004716
Bram Moolenaar071d4272004-06-13 20:20:40 +00004717else
4718 enable_netbeans="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004719fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004720if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004721 echo "$as_me:$LINENO: result: no" >&5
4722echo "${ECHO_T}no" >&6
4723
4724echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4725echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4726if test "${ac_cv_lib_socket_socket+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004728else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004729 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004730LIBS="-lsocket $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004731cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
4737
Bram Moolenaar071d4272004-06-13 20:20:40 +00004738/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004739#ifdef __cplusplus
4740extern "C"
4741#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004742/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004743 builtin and then its argument prototype would still apply. */
4744char socket ();
4745int
4746main ()
4747{
4748socket ();
4749 ;
4750 return 0;
4751}
4752_ACEOF
4753rm -f conftest.$ac_objext conftest$ac_exeext
4754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>conftest.er1
4756 ac_status=$?
4757 grep -v '^ *+' conftest.er1 >conftest.err
4758 rm -f conftest.er1
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } &&
4762 { ac_try='test -z "$ac_c_werror_flag"
4763 || test ! -s conftest.err'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; } &&
4769 { ac_try='test -s conftest$ac_exeext'
4770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 (eval $ac_try) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 ac_cv_lib_socket_socket=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004776else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004777 echo "$as_me: failed program was:" >&5
4778sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004779
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004780ac_cv_lib_socket_socket=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004781fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004782rm -f conftest.err conftest.$ac_objext \
4783 conftest$ac_exeext conftest.$ac_ext
4784LIBS=$ac_check_lib_save_LIBS
4785fi
4786echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4787echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4788if test $ac_cv_lib_socket_socket = yes; then
4789 cat >>confdefs.h <<_ACEOF
4790#define HAVE_LIBSOCKET 1
4791_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004792
4793 LIBS="-lsocket $LIBS"
4794
Bram Moolenaar071d4272004-06-13 20:20:40 +00004795fi
4796
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004797
4798echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4799echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4800if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004802else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004803 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004804LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004805cat >conftest.$ac_ext <<_ACEOF
4806/* confdefs.h. */
4807_ACEOF
4808cat confdefs.h >>conftest.$ac_ext
4809cat >>conftest.$ac_ext <<_ACEOF
4810/* end confdefs.h. */
4811
Bram Moolenaar071d4272004-06-13 20:20:40 +00004812/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004813#ifdef __cplusplus
4814extern "C"
4815#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004816/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004817 builtin and then its argument prototype would still apply. */
4818char gethostbyname ();
4819int
4820main ()
4821{
4822gethostbyname ();
4823 ;
4824 return 0;
4825}
4826_ACEOF
4827rm -f conftest.$ac_objext conftest$ac_exeext
4828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4829 (eval $ac_link) 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } &&
4836 { ac_try='test -z "$ac_c_werror_flag"
4837 || test ! -s conftest.err'
4838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 (eval $ac_try) 2>&5
4840 ac_status=$?
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); }; } &&
4843 { ac_try='test -s conftest$ac_exeext'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; }; then
4849 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004850else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004851 echo "$as_me: failed program was:" >&5
4852sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004853
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004854ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004855fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004856rm -f conftest.err conftest.$ac_objext \
4857 conftest$ac_exeext conftest.$ac_ext
4858LIBS=$ac_check_lib_save_LIBS
4859fi
4860echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4861echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4862if test $ac_cv_lib_nsl_gethostbyname = yes; then
4863 cat >>confdefs.h <<_ACEOF
4864#define HAVE_LIBNSL 1
4865_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004866
4867 LIBS="-lnsl $LIBS"
4868
Bram Moolenaar071d4272004-06-13 20:20:40 +00004869fi
4870
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004871 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
4872echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
4873 cat >conftest.$ac_ext <<_ACEOF
4874/* confdefs.h. */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004879
4880#include <stdio.h>
4881#include <stdlib.h>
4882#include <stdarg.h>
4883#include <fcntl.h>
4884#include <netdb.h>
4885#include <netinet/in.h>
4886#include <errno.h>
4887#include <sys/types.h>
4888#include <sys/socket.h>
4889 /* Check bitfields */
4890 struct nbbuf {
4891 unsigned int initDone:1;
4892 ushort signmaplen;
4893 };
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004894
4895int
4896main ()
4897{
Bram Moolenaar071d4272004-06-13 20:20:40 +00004898
4899 /* Check creating a socket. */
4900 struct sockaddr_in server;
4901 (void)socket(AF_INET, SOCK_STREAM, 0);
4902 (void)htons(100);
4903 (void)gethostbyname("microsoft.com");
4904 if (errno == ECONNREFUSED)
4905 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004906
4907 ;
4908 return 0;
4909}
4910_ACEOF
4911rm -f conftest.$ac_objext conftest$ac_exeext
4912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913 (eval $ac_link) 2>conftest.er1
4914 ac_status=$?
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } &&
4920 { ac_try='test -z "$ac_c_werror_flag"
4921 || test ! -s conftest.err'
4922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 (eval $ac_try) 2>&5
4924 ac_status=$?
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); }; } &&
4927 { ac_try='test -s conftest$ac_exeext'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 echo "$as_me:$LINENO: result: yes" >&5
4934echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004935else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004936 echo "$as_me: failed program was:" >&5
4937sed 's/^/| /' conftest.$ac_ext >&5
4938
4939echo "$as_me:$LINENO: result: no" >&5
4940echo "${ECHO_T}no" >&6; enable_netbeans="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004941fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004942rm -f conftest.err conftest.$ac_objext \
4943 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004944else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004945 echo "$as_me:$LINENO: result: yes" >&5
4946echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004947fi
4948if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004949 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004950#define FEAT_NETBEANS_INTG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004951_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004952
4953 NETBEANS_SRC="netbeans.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004954
Bram Moolenaar071d4272004-06-13 20:20:40 +00004955 NETBEANS_OBJ="objects/netbeans.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004956
Bram Moolenaar071d4272004-06-13 20:20:40 +00004957fi
4958
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004959echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
4960echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004961# Check whether --enable-sniff or --disable-sniff was given.
4962if test "${enable_sniff+set}" = set; then
4963 enableval="$enable_sniff"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004964
Bram Moolenaar071d4272004-06-13 20:20:40 +00004965else
4966 enable_sniff="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004967fi;
4968echo "$as_me:$LINENO: result: $enable_sniff" >&5
4969echo "${ECHO_T}$enable_sniff" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004970if test "$enable_sniff" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004971 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004972#define FEAT_SNIFF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004973_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004974
4975 SNIFF_SRC="if_sniff.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004976
Bram Moolenaar071d4272004-06-13 20:20:40 +00004977 SNIFF_OBJ="objects/if_sniff.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004978
Bram Moolenaar071d4272004-06-13 20:20:40 +00004979fi
4980
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004981echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
4982echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004983# Check whether --enable-multibyte or --disable-multibyte was given.
4984if test "${enable_multibyte+set}" = set; then
4985 enableval="$enable_multibyte"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004986
Bram Moolenaar071d4272004-06-13 20:20:40 +00004987else
4988 enable_multibyte="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004989fi;
4990echo "$as_me:$LINENO: result: $enable_multibyte" >&5
4991echo "${ECHO_T}$enable_multibyte" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004992if test "$enable_multibyte" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004993 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004994#define FEAT_MBYTE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004995_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004996
4997fi
4998
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004999echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5000echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005001# Check whether --enable-hangulinput or --disable-hangulinput was given.
5002if test "${enable_hangulinput+set}" = set; then
5003 enableval="$enable_hangulinput"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005004
Bram Moolenaar071d4272004-06-13 20:20:40 +00005005else
5006 enable_hangulinput="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005007fi;
5008echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5009echo "${ECHO_T}$enable_hangulinput" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005010
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005011echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5012echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005013# Check whether --enable-xim or --disable-xim was given.
5014if test "${enable_xim+set}" = set; then
5015 enableval="$enable_xim"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005016 echo "$as_me:$LINENO: result: $enable_xim" >&5
5017echo "${ECHO_T}$enable_xim" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005018else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005019 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5020echo "${ECHO_T}defaulting to auto" >&6
5021fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005022
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005023echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5024echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005025# Check whether --enable-fontset or --disable-fontset was given.
5026if test "${enable_fontset+set}" = set; then
5027 enableval="$enable_fontset"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005028
Bram Moolenaar071d4272004-06-13 20:20:40 +00005029else
5030 enable_fontset="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005031fi;
5032echo "$as_me:$LINENO: result: $enable_fontset" >&5
5033echo "${ECHO_T}$enable_fontset" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005034
5035test -z "$with_x" && with_x=yes
5036test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5037if test "$with_x" = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005038 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5039echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005040else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005041
Bram Moolenaar071d4272004-06-13 20:20:40 +00005042 # Extract the first word of "xmkmf", so it can be a program name with args.
5043set dummy xmkmf; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005044echo "$as_me:$LINENO: checking for $ac_word" >&5
5045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5046if test "${ac_cv_path_xmkmfpath+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005048else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005049 case $xmkmfpath in
5050 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005051 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5052 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005053 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055for as_dir in $PATH
5056do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5061 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065done
5066done
5067
Bram Moolenaar071d4272004-06-13 20:20:40 +00005068 ;;
5069esac
5070fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005071xmkmfpath=$ac_cv_path_xmkmfpath
5072
Bram Moolenaar071d4272004-06-13 20:20:40 +00005073if test -n "$xmkmfpath"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005074 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5075echo "${ECHO_T}$xmkmfpath" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005076else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005077 echo "$as_me:$LINENO: result: no" >&5
5078echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005079fi
5080
5081
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005082 echo "$as_me:$LINENO: checking for X" >&5
5083echo $ECHO_N "checking for X... $ECHO_C" >&6
5084
Bram Moolenaar071d4272004-06-13 20:20:40 +00005085
5086# Check whether --with-x or --without-x was given.
5087if test "${with_x+set}" = set; then
5088 withval="$with_x"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005089
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005090fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005091# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5092if test "x$with_x" = xno; then
5093 # The user explicitly disabled X.
5094 have_x=disabled
5095else
5096 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5097 # Both variables are already set.
5098 have_x=yes
5099 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005100 if test "${ac_cv_have_x+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005102else
5103 # One or both of the vars are not set, and there is no cached value.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005104ac_x_includes=no ac_x_libraries=no
5105rm -fr conftest.dir
5106if mkdir conftest.dir; then
5107 cd conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005108 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005109 cat >Imakefile <<'_ACEOF'
Bram Moolenaar071d4272004-06-13 20:20:40 +00005110acfindx:
5111 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005112_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005113 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5114 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5115 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5116 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5117 for ac_extension in a so sl; do
5118 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005119 test -f $ac_im_libdir/libX11.$ac_extension; then
5120 ac_im_usrlibdir=$ac_im_libdir; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00005121 fi
5122 done
5123 # Screen out bogus values from the imake configuration. They are
5124 # bogus both because they are the default anyway, and because
5125 # using them would break gcc on systems where it needs fixed includes.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005126 case $ac_im_incroot in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005127 /usr/include) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005128 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005129 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005130 case $ac_im_usrlibdir in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005131 /usr/lib | /lib) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005132 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005133 esac
5134 fi
5135 cd ..
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005136 rm -fr conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005137fi
5138
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005139# Standard set of common directories for X headers.
5140# Check X11 before X11Rn because it is often a symlink to the current release.
5141ac_x_header_dirs='
5142/usr/X11/include
5143/usr/X11R6/include
5144/usr/X11R5/include
5145/usr/X11R4/include
Bram Moolenaar071d4272004-06-13 20:20:40 +00005146
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005147/usr/include/X11
5148/usr/include/X11R6
5149/usr/include/X11R5
5150/usr/include/X11R4
5151
5152/usr/local/X11/include
5153/usr/local/X11R6/include
5154/usr/local/X11R5/include
5155/usr/local/X11R4/include
5156
5157/usr/local/include/X11
5158/usr/local/include/X11R6
5159/usr/local/include/X11R5
5160/usr/local/include/X11R4
5161
5162/usr/X386/include
5163/usr/x386/include
5164/usr/XFree86/include/X11
5165
5166/usr/include
5167/usr/local/include
5168/usr/unsupported/include
5169/usr/athena/include
5170/usr/local/x11r5/include
5171/usr/lpp/Xamples/include
5172
5173/usr/openwin/include
5174/usr/openwin/share/include'
5175
5176if test "$ac_x_includes" = no; then
5177 # Guess where to find include files, by looking for Intrinsic.h.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005178 # First, try using that file with no special directory specified.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005179 cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h. */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h. */
5185#include <X11/Intrinsic.h>
5186_ACEOF
5187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } >/dev/null; then
5195 if test -s conftest.err; then
5196 ac_cpp_err=$ac_c_preproc_warn_flag
5197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5198 else
5199 ac_cpp_err=
5200 fi
5201else
5202 ac_cpp_err=yes
5203fi
5204if test -z "$ac_cpp_err"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005205 # We can compile using X headers with no special include directory.
5206ac_x_includes=
5207else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005208 echo "$as_me: failed program was:" >&5
5209sed 's/^/| /' conftest.$ac_ext >&5
5210
5211 for ac_dir in $ac_x_header_dirs; do
5212 if test -r "$ac_dir/X11/Intrinsic.h"; then
5213 ac_x_includes=$ac_dir
5214 break
5215 fi
5216done
Bram Moolenaar071d4272004-06-13 20:20:40 +00005217fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005218rm -f conftest.err conftest.$ac_ext
5219fi # $ac_x_includes = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005220
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005221if test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005222 # Check for the libraries.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005223 # See if we find them without any special options.
5224 # Don't add to $LIBS permanently.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005225 ac_save_LIBS=$LIBS
5226 LIBS="-lXt $LIBS"
5227 cat >conftest.$ac_ext <<_ACEOF
5228/* confdefs.h. */
5229_ACEOF
5230cat confdefs.h >>conftest.$ac_ext
5231cat >>conftest.$ac_ext <<_ACEOF
5232/* end confdefs.h. */
5233#include <X11/Intrinsic.h>
5234int
5235main ()
5236{
5237XtMalloc (0)
5238 ;
5239 return 0;
5240}
5241_ACEOF
5242rm -f conftest.$ac_objext conftest$ac_exeext
5243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5244 (eval $ac_link) 2>conftest.er1
5245 ac_status=$?
5246 grep -v '^ *+' conftest.er1 >conftest.err
5247 rm -f conftest.er1
5248 cat conftest.err >&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -z "$ac_c_werror_flag"
5252 || test ! -s conftest.err'
5253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5254 (eval $ac_try) 2>&5
5255 ac_status=$?
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); }; } &&
5258 { ac_try='test -s conftest$ac_exeext'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 (eval $ac_try) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 LIBS=$ac_save_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005265# We can link X programs with no special library path.
5266ac_x_libraries=
5267else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005268 echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271LIBS=$ac_save_LIBS
5272for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Bram Moolenaar071d4272004-06-13 20:20:40 +00005273do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005274 # Don't even attempt the hair of trying to link an X program!
Bram Moolenaar071d4272004-06-13 20:20:40 +00005275 for ac_extension in a so sl; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005276 if test -r $ac_dir/libXt.$ac_extension; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005277 ac_x_libraries=$ac_dir
5278 break 2
5279 fi
5280 done
5281done
5282fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005283rm -f conftest.err conftest.$ac_objext \
5284 conftest$ac_exeext conftest.$ac_ext
5285fi # $ac_x_libraries = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005286
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005287if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005288 # Didn't find X anywhere. Cache the known absence of X.
5289 ac_cv_have_x="have_x=no"
5290else
5291 # Record where we found X for the cache.
5292 ac_cv_have_x="have_x=yes \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005293 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005294fi
5295fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005296
Bram Moolenaar071d4272004-06-13 20:20:40 +00005297 fi
5298 eval "$ac_cv_have_x"
5299fi # $with_x != no
5300
5301if test "$have_x" != yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005302 echo "$as_me:$LINENO: result: $have_x" >&5
5303echo "${ECHO_T}$have_x" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005304 no_x=yes
5305else
5306 # If each of the values was on the command line, it overrides each guess.
5307 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5308 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5309 # Update the cache value to reflect the command line values.
5310 ac_cv_have_x="have_x=yes \
5311 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005312 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5313echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005314fi
5315
5316if test "$no_x" = yes; then
5317 # Not all programs may use this symbol, but it does not hurt to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005318
5319cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005320#define X_DISPLAY_MISSING 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005321_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005322
5323 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5324else
5325 if test -n "$x_includes"; then
5326 X_CFLAGS="$X_CFLAGS -I$x_includes"
5327 fi
5328
5329 # It would also be nice to do this for all -L options, not just this one.
5330 if test -n "$x_libraries"; then
5331 X_LIBS="$X_LIBS -L$x_libraries"
5332 # For Solaris; some versions of Sun CC require a space after -R and
5333 # others require no space. Words are not sufficient . . . .
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005334 case `(uname -sr) 2>/dev/null` in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005335 "SunOS 5"*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005336 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5337echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5338 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5339 cat >conftest.$ac_ext <<_ACEOF
5340/* confdefs.h. */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005345
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005346int
5347main ()
5348{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005349
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005350 ;
5351 return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext conftest$ac_exeext
5355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5356 (eval $ac_link) 2>conftest.er1
5357 ac_status=$?
5358 grep -v '^ *+' conftest.er1 >conftest.err
5359 rm -f conftest.er1
5360 cat conftest.err >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); } &&
5363 { ac_try='test -z "$ac_c_werror_flag"
5364 || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest$ac_exeext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5372 (eval $ac_try) 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005376 ac_R_nospace=yes
5377else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005378 echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381ac_R_nospace=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005382fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005383rm -f conftest.err conftest.$ac_objext \
5384 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005385 if test $ac_R_nospace = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005386 echo "$as_me:$LINENO: result: no" >&5
5387echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005388 X_LIBS="$X_LIBS -R$x_libraries"
5389 else
5390 LIBS="$ac_xsave_LIBS -R $x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005391 cat >conftest.$ac_ext <<_ACEOF
5392/* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005397
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005398int
5399main ()
5400{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005401
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005402 ;
5403 return 0;
5404}
5405_ACEOF
5406rm -f conftest.$ac_objext conftest$ac_exeext
5407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5408 (eval $ac_link) 2>conftest.er1
5409 ac_status=$?
5410 grep -v '^ *+' conftest.er1 >conftest.err
5411 rm -f conftest.er1
5412 cat conftest.err >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 { ac_try='test -z "$ac_c_werror_flag"
5416 || test ! -s conftest.err'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418 (eval $ac_try) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; } &&
5422 { ac_try='test -s conftest$ac_exeext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 (eval $ac_try) 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005428 ac_R_space=yes
5429else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005430 echo "$as_me: failed program was:" >&5
5431sed 's/^/| /' conftest.$ac_ext >&5
5432
5433ac_R_space=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005434fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005435rm -f conftest.err conftest.$ac_objext \
5436 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005437 if test $ac_R_space = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005438 echo "$as_me:$LINENO: result: yes" >&5
5439echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005440 X_LIBS="$X_LIBS -R $x_libraries"
5441 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005442 echo "$as_me:$LINENO: result: neither works" >&5
5443echo "${ECHO_T}neither works" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005444 fi
5445 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005446 LIBS=$ac_xsave_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005447 esac
5448 fi
5449
5450 # Check for system-dependent libraries X programs must link with.
5451 # Do this before checking for the system-independent R6 libraries
5452 # (-lICE), since we may need -lsocket or whatever for X linking.
5453
5454 if test "$ISC" = yes; then
5455 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5456 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005457 # Martyn Johnson says this is needed for Ultrix, if the X
5458 # libraries were built with DECnet support. And Karl Berry says
Bram Moolenaar071d4272004-06-13 20:20:40 +00005459 # the Alpha needs dnet_stub (dnet does not exist).
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005460 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5461 cat >conftest.$ac_ext <<_ACEOF
5462/* confdefs.h. */
5463_ACEOF
5464cat confdefs.h >>conftest.$ac_ext
5465cat >>conftest.$ac_ext <<_ACEOF
5466/* end confdefs.h. */
5467
Bram Moolenaar071d4272004-06-13 20:20:40 +00005468/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005469#ifdef __cplusplus
5470extern "C"
5471#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005472/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005473 builtin and then its argument prototype would still apply. */
5474char XOpenDisplay ();
5475int
5476main ()
5477{
5478XOpenDisplay ();
5479 ;
5480 return 0;
5481}
5482_ACEOF
5483rm -f conftest.$ac_objext conftest$ac_exeext
5484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5485 (eval $ac_link) 2>conftest.er1
5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -z "$ac_c_werror_flag"
5493 || test ! -s conftest.err'
5494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495 (eval $ac_try) 2>&5
5496 ac_status=$?
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }; } &&
5499 { ac_try='test -s conftest$ac_exeext'
5500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5501 (eval $ac_try) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); }; }; then
5505 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00005506else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005507 echo "$as_me: failed program was:" >&5
5508sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005509
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005510echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5511echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5512if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514else
5515 ac_check_lib_save_LIBS=$LIBS
5516LIBS="-ldnet $LIBS"
5517cat >conftest.$ac_ext <<_ACEOF
5518/* confdefs.h. */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h. */
5523
5524/* Override any gcc2 internal prototype to avoid an error. */
5525#ifdef __cplusplus
5526extern "C"
5527#endif
5528/* We use char because int might match the return type of a gcc2
5529 builtin and then its argument prototype would still apply. */
5530char dnet_ntoa ();
5531int
5532main ()
5533{
5534dnet_ntoa ();
5535 ;
5536 return 0;
5537}
5538_ACEOF
5539rm -f conftest.$ac_objext conftest$ac_exeext
5540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5541 (eval $ac_link) 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try='test -z "$ac_c_werror_flag"
5549 || test ! -s conftest.err'
5550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5551 (eval $ac_try) 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }; } &&
5555 { ac_try='test -s conftest$ac_exeext'
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
5561 ac_cv_lib_dnet_dnet_ntoa=yes
5562else
5563 echo "$as_me: failed program was:" >&5
5564sed 's/^/| /' conftest.$ac_ext >&5
5565
5566ac_cv_lib_dnet_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005567fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005568rm -f conftest.err conftest.$ac_objext \
5569 conftest$ac_exeext conftest.$ac_ext
5570LIBS=$ac_check_lib_save_LIBS
5571fi
5572echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5573echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5574if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005575 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005576fi
5577
5578 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005579 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5580echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5581if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005583else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005584 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005585LIBS="-ldnet_stub $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005586cat >conftest.$ac_ext <<_ACEOF
5587/* confdefs.h. */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
5591/* end confdefs.h. */
5592
Bram Moolenaar071d4272004-06-13 20:20:40 +00005593/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005594#ifdef __cplusplus
5595extern "C"
5596#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005597/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005598 builtin and then its argument prototype would still apply. */
5599char dnet_ntoa ();
5600int
5601main ()
5602{
5603dnet_ntoa ();
5604 ;
5605 return 0;
5606}
5607_ACEOF
5608rm -f conftest.$ac_objext conftest$ac_exeext
5609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610 (eval $ac_link) 2>conftest.er1
5611 ac_status=$?
5612 grep -v '^ *+' conftest.er1 >conftest.err
5613 rm -f conftest.er1
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -z "$ac_c_werror_flag"
5618 || test ! -s conftest.err'
5619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5620 (eval $ac_try) 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; } &&
5624 { ac_try='test -s conftest$ac_exeext'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5626 (eval $ac_try) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then
5630 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005631else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005632 echo "$as_me: failed program was:" >&5
5633sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005634
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005635ac_cv_lib_dnet_stub_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005636fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005637rm -f conftest.err conftest.$ac_objext \
5638 conftest$ac_exeext conftest.$ac_ext
5639LIBS=$ac_check_lib_save_LIBS
5640fi
5641echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5642echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5643if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005644 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005645fi
5646
5647 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005648fi
5649rm -f conftest.err conftest.$ac_objext \
5650 conftest$ac_exeext conftest.$ac_ext
5651 LIBS="$ac_xsave_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005652
5653 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5654 # to get the SysV transport functions.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005655 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005656 # needs -lnsl.
5657 # The nsl library prevents programs from opening the X display
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005658 # on Irix 5.2, according to T.E. Dickey.
5659 # The functions gethostbyname, getservbyname, and inet_addr are
5660 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5661 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5662echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5663if test "${ac_cv_func_gethostbyname+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005665else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005666 cat >conftest.$ac_ext <<_ACEOF
5667/* confdefs.h. */
5668_ACEOF
5669cat confdefs.h >>conftest.$ac_ext
5670cat >>conftest.$ac_ext <<_ACEOF
5671/* end confdefs.h. */
5672/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5674#define gethostbyname innocuous_gethostbyname
5675
Bram Moolenaar071d4272004-06-13 20:20:40 +00005676/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005677 which can conflict with char gethostbyname (); below.
5678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5679 <limits.h> exists even on freestanding compilers. */
5680
5681#ifdef __STDC__
5682# include <limits.h>
5683#else
5684# include <assert.h>
5685#endif
5686
5687#undef gethostbyname
5688
Bram Moolenaar071d4272004-06-13 20:20:40 +00005689/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005690#ifdef __cplusplus
5691extern "C"
5692{
5693#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005694/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005695 builtin and then its argument prototype would still apply. */
5696char gethostbyname ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005697/* The GNU C library defines this for functions which it implements
5698 to always fail with ENOSYS. Some functions are actually named
5699 something starting with __ and the normal name is an alias. */
5700#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5701choke me
5702#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005703char (*f) () = gethostbyname;
5704#endif
5705#ifdef __cplusplus
5706}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005707#endif
5708
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005709int
5710main ()
5711{
5712return f != gethostbyname;
5713 ;
5714 return 0;
5715}
5716_ACEOF
5717rm -f conftest.$ac_objext conftest$ac_exeext
5718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5719 (eval $ac_link) 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } &&
5726 { ac_try='test -z "$ac_c_werror_flag"
5727 || test ! -s conftest.err'
5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; } &&
5733 { ac_try='test -s conftest$ac_exeext'
5734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5735 (eval $ac_try) 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 ac_cv_func_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005740else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005741 echo "$as_me: failed program was:" >&5
5742sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005743
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005744ac_cv_func_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005745fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005746rm -f conftest.err conftest.$ac_objext \
5747 conftest$ac_exeext conftest.$ac_ext
5748fi
5749echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5750echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005751
5752 if test $ac_cv_func_gethostbyname = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005753 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5754echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5755if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005757else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005758 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005759LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005760cat >conftest.$ac_ext <<_ACEOF
5761/* confdefs.h. */
5762_ACEOF
5763cat confdefs.h >>conftest.$ac_ext
5764cat >>conftest.$ac_ext <<_ACEOF
5765/* end confdefs.h. */
5766
Bram Moolenaar071d4272004-06-13 20:20:40 +00005767/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005768#ifdef __cplusplus
5769extern "C"
5770#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005771/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005772 builtin and then its argument prototype would still apply. */
5773char gethostbyname ();
5774int
5775main ()
5776{
5777gethostbyname ();
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext conftest$ac_exeext
5783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784 (eval $ac_link) 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } &&
5791 { ac_try='test -z "$ac_c_werror_flag"
5792 || test ! -s conftest.err'
5793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 (eval $ac_try) 2>&5
5795 ac_status=$?
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); }; } &&
5798 { ac_try='test -s conftest$ac_exeext'
5799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 (eval $ac_try) 2>&5
5801 ac_status=$?
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); }; }; then
5804 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005805else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005806 echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005808
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005809ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005810fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005811rm -f conftest.err conftest.$ac_objext \
5812 conftest$ac_exeext conftest.$ac_ext
5813LIBS=$ac_check_lib_save_LIBS
5814fi
5815echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5816echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5817if test $ac_cv_lib_nsl_gethostbyname = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005818 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005819fi
5820
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005821 if test $ac_cv_lib_nsl_gethostbyname = no; then
5822 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5823echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5824if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5826else
5827 ac_check_lib_save_LIBS=$LIBS
5828LIBS="-lbsd $LIBS"
5829cat >conftest.$ac_ext <<_ACEOF
5830/* confdefs.h. */
5831_ACEOF
5832cat confdefs.h >>conftest.$ac_ext
5833cat >>conftest.$ac_ext <<_ACEOF
5834/* end confdefs.h. */
5835
5836/* Override any gcc2 internal prototype to avoid an error. */
5837#ifdef __cplusplus
5838extern "C"
5839#endif
5840/* We use char because int might match the return type of a gcc2
5841 builtin and then its argument prototype would still apply. */
5842char gethostbyname ();
5843int
5844main ()
5845{
5846gethostbyname ();
5847 ;
5848 return 0;
5849}
5850_ACEOF
5851rm -f conftest.$ac_objext conftest$ac_exeext
5852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853 (eval $ac_link) 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag"
5861 || test ! -s conftest.err'
5862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 (eval $ac_try) 2>&5
5864 ac_status=$?
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); }; } &&
5867 { ac_try='test -s conftest$ac_exeext'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; }; then
5873 ac_cv_lib_bsd_gethostbyname=yes
5874else
5875 echo "$as_me: failed program was:" >&5
5876sed 's/^/| /' conftest.$ac_ext >&5
5877
5878ac_cv_lib_bsd_gethostbyname=no
5879fi
5880rm -f conftest.err conftest.$ac_objext \
5881 conftest$ac_exeext conftest.$ac_ext
5882LIBS=$ac_check_lib_save_LIBS
5883fi
5884echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5885echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5886if test $ac_cv_lib_bsd_gethostbyname = yes; then
5887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5888fi
5889
5890 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00005891 fi
5892
5893 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5894 # socket/setsockopt and other routines are undefined under SCO ODT
5895 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005896 # on later versions), says Simon Leinen: it contains gethostby*
5897 # variants that don't use the name server (or something). -lsocket
5898 # must be given before -lnsl if both are needed. We assume that
5899 # if connect needs -lnsl, so does gethostbyname.
5900 echo "$as_me:$LINENO: checking for connect" >&5
5901echo $ECHO_N "checking for connect... $ECHO_C" >&6
5902if test "${ac_cv_func_connect+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005904else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005905 cat >conftest.$ac_ext <<_ACEOF
5906/* confdefs.h. */
5907_ACEOF
5908cat confdefs.h >>conftest.$ac_ext
5909cat >>conftest.$ac_ext <<_ACEOF
5910/* end confdefs.h. */
5911/* Define connect to an innocuous variant, in case <limits.h> declares connect.
5912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5913#define connect innocuous_connect
5914
Bram Moolenaar071d4272004-06-13 20:20:40 +00005915/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005916 which can conflict with char connect (); below.
5917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5918 <limits.h> exists even on freestanding compilers. */
5919
5920#ifdef __STDC__
5921# include <limits.h>
5922#else
5923# include <assert.h>
5924#endif
5925
5926#undef connect
5927
Bram Moolenaar071d4272004-06-13 20:20:40 +00005928/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005929#ifdef __cplusplus
5930extern "C"
5931{
5932#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005933/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005934 builtin and then its argument prototype would still apply. */
5935char connect ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005936/* The GNU C library defines this for functions which it implements
5937 to always fail with ENOSYS. Some functions are actually named
5938 something starting with __ and the normal name is an alias. */
5939#if defined (__stub_connect) || defined (__stub___connect)
5940choke me
5941#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005942char (*f) () = connect;
5943#endif
5944#ifdef __cplusplus
5945}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005946#endif
5947
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005948int
5949main ()
5950{
5951return f != connect;
5952 ;
5953 return 0;
5954}
5955_ACEOF
5956rm -f conftest.$ac_objext conftest$ac_exeext
5957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5958 (eval $ac_link) 2>conftest.er1
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } &&
5965 { ac_try='test -z "$ac_c_werror_flag"
5966 || test ! -s conftest.err'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest$ac_exeext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5978 ac_cv_func_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005979else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005980 echo "$as_me: failed program was:" >&5
5981sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005982
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005983ac_cv_func_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005984fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005985rm -f conftest.err conftest.$ac_objext \
5986 conftest$ac_exeext conftest.$ac_ext
5987fi
5988echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
5989echo "${ECHO_T}$ac_cv_func_connect" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005990
5991 if test $ac_cv_func_connect = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005992 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
5993echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5994if test "${ac_cv_lib_socket_connect+set}" = set; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005996else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005997 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005998LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005999cat >conftest.$ac_ext <<_ACEOF
6000/* confdefs.h. */
6001_ACEOF
6002cat confdefs.h >>conftest.$ac_ext
6003cat >>conftest.$ac_ext <<_ACEOF
6004/* end confdefs.h. */
6005
Bram Moolenaar071d4272004-06-13 20:20:40 +00006006/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006007#ifdef __cplusplus
6008extern "C"
6009#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006010/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006011 builtin and then its argument prototype would still apply. */
6012char connect ();
6013int
6014main ()
6015{
6016connect ();
6017 ;
6018 return 0;
6019}
6020_ACEOF
6021rm -f conftest.$ac_objext conftest$ac_exeext
6022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6023 (eval $ac_link) 2>conftest.er1
6024 ac_status=$?
6025 grep -v '^ *+' conftest.er1 >conftest.err
6026 rm -f conftest.er1
6027 cat conftest.err >&5
6028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029 (exit $ac_status); } &&
6030 { ac_try='test -z "$ac_c_werror_flag"
6031 || test ! -s conftest.err'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 (eval $ac_try) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; } &&
6037 { ac_try='test -s conftest$ac_exeext'
6038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039 (eval $ac_try) 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6043 ac_cv_lib_socket_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006044else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006045 echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006047
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006048ac_cv_lib_socket_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006049fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006050rm -f conftest.err conftest.$ac_objext \
6051 conftest$ac_exeext conftest.$ac_ext
6052LIBS=$ac_check_lib_save_LIBS
6053fi
6054echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6055echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6056if test $ac_cv_lib_socket_connect = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006057 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006058fi
6059
6060 fi
6061
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006062 # Guillermo Gomez says -lposix is necessary on A/UX.
6063 echo "$as_me:$LINENO: checking for remove" >&5
6064echo $ECHO_N "checking for remove... $ECHO_C" >&6
6065if test "${ac_cv_func_remove+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006067else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006068 cat >conftest.$ac_ext <<_ACEOF
6069/* confdefs.h. */
6070_ACEOF
6071cat confdefs.h >>conftest.$ac_ext
6072cat >>conftest.$ac_ext <<_ACEOF
6073/* end confdefs.h. */
6074/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6076#define remove innocuous_remove
6077
Bram Moolenaar071d4272004-06-13 20:20:40 +00006078/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006079 which can conflict with char remove (); below.
6080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6081 <limits.h> exists even on freestanding compilers. */
6082
6083#ifdef __STDC__
6084# include <limits.h>
6085#else
6086# include <assert.h>
6087#endif
6088
6089#undef remove
6090
Bram Moolenaar071d4272004-06-13 20:20:40 +00006091/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006092#ifdef __cplusplus
6093extern "C"
6094{
6095#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006096/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006097 builtin and then its argument prototype would still apply. */
6098char remove ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006099/* The GNU C library defines this for functions which it implements
6100 to always fail with ENOSYS. Some functions are actually named
6101 something starting with __ and the normal name is an alias. */
6102#if defined (__stub_remove) || defined (__stub___remove)
6103choke me
6104#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006105char (*f) () = remove;
6106#endif
6107#ifdef __cplusplus
6108}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006109#endif
6110
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006111int
6112main ()
6113{
6114return f != remove;
6115 ;
6116 return 0;
6117}
6118_ACEOF
6119rm -f conftest.$ac_objext conftest$ac_exeext
6120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6121 (eval $ac_link) 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try='test -s conftest$ac_exeext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_cv_func_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006142else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006143 echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006145
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006146ac_cv_func_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006147fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006148rm -f conftest.err conftest.$ac_objext \
6149 conftest$ac_exeext conftest.$ac_ext
6150fi
6151echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6152echo "${ECHO_T}$ac_cv_func_remove" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006153
6154 if test $ac_cv_func_remove = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006155 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6156echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6157if test "${ac_cv_lib_posix_remove+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006159else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006160 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006161LIBS="-lposix $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006162cat >conftest.$ac_ext <<_ACEOF
6163/* confdefs.h. */
6164_ACEOF
6165cat confdefs.h >>conftest.$ac_ext
6166cat >>conftest.$ac_ext <<_ACEOF
6167/* end confdefs.h. */
6168
Bram Moolenaar071d4272004-06-13 20:20:40 +00006169/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006170#ifdef __cplusplus
6171extern "C"
6172#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006173/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006174 builtin and then its argument prototype would still apply. */
6175char remove ();
6176int
6177main ()
6178{
6179remove ();
6180 ;
6181 return 0;
6182}
6183_ACEOF
6184rm -f conftest.$ac_objext conftest$ac_exeext
6185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>conftest.er1
6187 ac_status=$?
6188 grep -v '^ *+' conftest.er1 >conftest.err
6189 rm -f conftest.er1
6190 cat conftest.err >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); } &&
6193 { ac_try='test -z "$ac_c_werror_flag"
6194 || test ! -s conftest.err'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 (eval $ac_try) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; } &&
6200 { ac_try='test -s conftest$ac_exeext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 ac_cv_lib_posix_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006207else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006208 echo "$as_me: failed program was:" >&5
6209sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006210
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006211ac_cv_lib_posix_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006212fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006213rm -f conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
6215LIBS=$ac_check_lib_save_LIBS
6216fi
6217echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6218echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6219if test $ac_cv_lib_posix_remove = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006220 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006221fi
6222
6223 fi
6224
6225 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006226 echo "$as_me:$LINENO: checking for shmat" >&5
6227echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6228if test "${ac_cv_func_shmat+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006230else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006231 cat >conftest.$ac_ext <<_ACEOF
6232/* confdefs.h. */
6233_ACEOF
6234cat confdefs.h >>conftest.$ac_ext
6235cat >>conftest.$ac_ext <<_ACEOF
6236/* end confdefs.h. */
6237/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6239#define shmat innocuous_shmat
6240
Bram Moolenaar071d4272004-06-13 20:20:40 +00006241/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006242 which can conflict with char shmat (); below.
6243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6244 <limits.h> exists even on freestanding compilers. */
6245
6246#ifdef __STDC__
6247# include <limits.h>
6248#else
6249# include <assert.h>
6250#endif
6251
6252#undef shmat
6253
Bram Moolenaar071d4272004-06-13 20:20:40 +00006254/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006255#ifdef __cplusplus
6256extern "C"
6257{
6258#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006259/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006260 builtin and then its argument prototype would still apply. */
6261char shmat ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006262/* The GNU C library defines this for functions which it implements
6263 to always fail with ENOSYS. Some functions are actually named
6264 something starting with __ and the normal name is an alias. */
6265#if defined (__stub_shmat) || defined (__stub___shmat)
6266choke me
6267#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006268char (*f) () = shmat;
6269#endif
6270#ifdef __cplusplus
6271}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006272#endif
6273
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006274int
6275main ()
6276{
6277return f != shmat;
6278 ;
6279 return 0;
6280}
6281_ACEOF
6282rm -f conftest.$ac_objext conftest$ac_exeext
6283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6284 (eval $ac_link) 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } &&
6291 { ac_try='test -z "$ac_c_werror_flag"
6292 || test ! -s conftest.err'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest$ac_exeext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 ac_cv_func_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006305else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006306 echo "$as_me: failed program was:" >&5
6307sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006308
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006309ac_cv_func_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006310fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006311rm -f conftest.err conftest.$ac_objext \
6312 conftest$ac_exeext conftest.$ac_ext
6313fi
6314echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6315echo "${ECHO_T}$ac_cv_func_shmat" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006316
6317 if test $ac_cv_func_shmat = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006318 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6319echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6320if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006322else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006323 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006324LIBS="-lipc $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006325cat >conftest.$ac_ext <<_ACEOF
6326/* confdefs.h. */
6327_ACEOF
6328cat confdefs.h >>conftest.$ac_ext
6329cat >>conftest.$ac_ext <<_ACEOF
6330/* end confdefs.h. */
6331
Bram Moolenaar071d4272004-06-13 20:20:40 +00006332/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006333#ifdef __cplusplus
6334extern "C"
6335#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006336/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006337 builtin and then its argument prototype would still apply. */
6338char shmat ();
6339int
6340main ()
6341{
6342shmat ();
6343 ;
6344 return 0;
6345}
6346_ACEOF
6347rm -f conftest.$ac_objext conftest$ac_exeext
6348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6349 (eval $ac_link) 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } &&
6356 { ac_try='test -z "$ac_c_werror_flag"
6357 || test ! -s conftest.err'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; } &&
6363 { ac_try='test -s conftest$ac_exeext'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6369 ac_cv_lib_ipc_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006370else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006371 echo "$as_me: failed program was:" >&5
6372sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006373
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006374ac_cv_lib_ipc_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006375fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006376rm -f conftest.err conftest.$ac_objext \
6377 conftest$ac_exeext conftest.$ac_ext
6378LIBS=$ac_check_lib_save_LIBS
6379fi
6380echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6381echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6382if test $ac_cv_lib_ipc_shmat = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006383 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006384fi
6385
6386 fi
6387 fi
6388
6389 # Check for libraries that X11R6 Xt/Xaw programs need.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006390 ac_save_LDFLAGS=$LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006391 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6392 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6393 # check for ICE first), but we must link in the order -lSM -lICE or
6394 # we get undefined symbols. So assume we have SM if we have ICE.
6395 # These have to be linked with before -lX11, unlike the other
6396 # libraries we check for below, so use a different variable.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006397 # John Interrante, Karl Berry
6398 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6399echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6400if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006402else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006403 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006404LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006405cat >conftest.$ac_ext <<_ACEOF
6406/* confdefs.h. */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h. */
6411
Bram Moolenaar071d4272004-06-13 20:20:40 +00006412/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006413#ifdef __cplusplus
6414extern "C"
6415#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006416/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006417 builtin and then its argument prototype would still apply. */
6418char IceConnectionNumber ();
6419int
6420main ()
6421{
6422IceConnectionNumber ();
6423 ;
6424 return 0;
6425}
6426_ACEOF
6427rm -f conftest.$ac_objext conftest$ac_exeext
6428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } &&
6436 { ac_try='test -z "$ac_c_werror_flag"
6437 || test ! -s conftest.err'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; } &&
6443 { ac_try='test -s conftest$ac_exeext'
6444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 (eval $ac_try) 2>&5
6446 ac_status=$?
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; }; then
6449 ac_cv_lib_ICE_IceConnectionNumber=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006450else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006451 echo "$as_me: failed program was:" >&5
6452sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006453
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006454ac_cv_lib_ICE_IceConnectionNumber=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006455fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006456rm -f conftest.err conftest.$ac_objext \
6457 conftest$ac_exeext conftest.$ac_ext
6458LIBS=$ac_check_lib_save_LIBS
6459fi
6460echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6461echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6462if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006463 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006464fi
6465
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006466 LDFLAGS=$ac_save_LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006467
6468fi
6469
6470
6471 if test "$OS390Unix" = "yes"; then
6472 CFLAGS="$CFLAGS -W c,dll"
6473 LDFLAGS="$LDFLAGS -W l,dll"
6474 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6475 fi
6476
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006477
Bram Moolenaar071d4272004-06-13 20:20:40 +00006478 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6479 x_libraries=`echo "$x_includes" | sed s/include/lib/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006480 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6481echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006482 X_LIBS="$X_LIBS -L$x_libraries"
6483 if test "`(uname) 2>/dev/null`" = SunOS &&
6484 uname -r | grep '^5' >/dev/null; then
6485 X_LIBS="$X_LIBS -R $x_libraries"
6486 fi
6487 fi
6488
6489 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6490 x_includes=`echo "$x_libraries" | sed s/lib/include/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006491 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6492echo "${ECHO_T}Corrected X includes to $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006493 X_CFLAGS="$X_CFLAGS -I$x_includes"
6494 fi
6495
6496 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6497 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6498 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6499
6500
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006501 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6502echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006503 cflags_save=$CFLAGS
6504 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006505 cat >conftest.$ac_ext <<_ACEOF
6506/* confdefs.h. */
6507_ACEOF
6508cat confdefs.h >>conftest.$ac_ext
6509cat >>conftest.$ac_ext <<_ACEOF
6510/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006511#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006512int
6513main ()
6514{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006515
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006516 ;
6517 return 0;
6518}
6519_ACEOF
6520rm -f conftest.$ac_objext
6521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522 (eval $ac_compile) 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -z "$ac_c_werror_flag"
6530 || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest.$ac_objext'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 (eval $ac_try) 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6542 echo "$as_me:$LINENO: result: yes" >&5
6543echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006544else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006545 echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6; no_x=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006550fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006552 CFLAGS=$cflags_save
6553
6554 if test "${no_x-no}" = yes; then
6555 with_x=no
6556 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006557 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006558#define HAVE_X11 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006559_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006560
6561 X_LIB="-lXt -lX11";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006562
Bram Moolenaar071d4272004-06-13 20:20:40 +00006563
6564 ac_save_LDFLAGS="$LDFLAGS"
6565 LDFLAGS="-L$x_libraries $LDFLAGS"
6566
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006567 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6568echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6569if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006571else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006572 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006573LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006574cat >conftest.$ac_ext <<_ACEOF
6575/* confdefs.h. */
6576_ACEOF
6577cat confdefs.h >>conftest.$ac_ext
6578cat >>conftest.$ac_ext <<_ACEOF
6579/* end confdefs.h. */
6580
Bram Moolenaar071d4272004-06-13 20:20:40 +00006581/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006582#ifdef __cplusplus
6583extern "C"
6584#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006585/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006586 builtin and then its argument prototype would still apply. */
6587char _XdmcpAuthDoIt ();
6588int
6589main ()
6590{
6591_XdmcpAuthDoIt ();
6592 ;
6593 return 0;
6594}
6595_ACEOF
6596rm -f conftest.$ac_objext conftest$ac_exeext
6597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>conftest.er1
6599 ac_status=$?
6600 grep -v '^ *+' conftest.er1 >conftest.err
6601 rm -f conftest.er1
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } &&
6605 { ac_try='test -z "$ac_c_werror_flag"
6606 || test ! -s conftest.err'
6607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608 (eval $ac_try) 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614 (eval $ac_try) 2>&5
6615 ac_status=$?
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6618 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006619else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006620 echo "$as_me: failed program was:" >&5
6621sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006622
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006623ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006624fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006625rm -f conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627LIBS=$ac_check_lib_save_LIBS
6628fi
6629echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6630echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6631if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006632 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006633fi
6634
6635
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006636 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6637echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6638if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006640else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006641 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006642LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006643cat >conftest.$ac_ext <<_ACEOF
6644/* confdefs.h. */
6645_ACEOF
6646cat confdefs.h >>conftest.$ac_ext
6647cat >>conftest.$ac_ext <<_ACEOF
6648/* end confdefs.h. */
6649
Bram Moolenaar071d4272004-06-13 20:20:40 +00006650/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006651#ifdef __cplusplus
6652extern "C"
6653#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006654/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006655 builtin and then its argument prototype would still apply. */
6656char IceOpenConnection ();
6657int
6658main ()
6659{
6660IceOpenConnection ();
6661 ;
6662 return 0;
6663}
6664_ACEOF
6665rm -f conftest.$ac_objext conftest$ac_exeext
6666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6667 (eval $ac_link) 2>conftest.er1
6668 ac_status=$?
6669 grep -v '^ *+' conftest.er1 >conftest.err
6670 rm -f conftest.er1
6671 cat conftest.err >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } &&
6674 { ac_try='test -z "$ac_c_werror_flag"
6675 || test ! -s conftest.err'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6677 (eval $ac_try) 2>&5
6678 ac_status=$?
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; } &&
6681 { ac_try='test -s conftest$ac_exeext'
6682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 (eval $ac_try) 2>&5
6684 ac_status=$?
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); }; }; then
6687 ac_cv_lib_ICE_IceOpenConnection=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006688else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006689 echo "$as_me: failed program was:" >&5
6690sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006691
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006692ac_cv_lib_ICE_IceOpenConnection=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006693fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006694rm -f conftest.err conftest.$ac_objext \
6695 conftest$ac_exeext conftest.$ac_ext
6696LIBS=$ac_check_lib_save_LIBS
6697fi
6698echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6699echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6700if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006702fi
6703
6704
6705 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006706 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6707echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6708if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006710else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006711 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006712LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006713cat >conftest.$ac_ext <<_ACEOF
6714/* confdefs.h. */
6715_ACEOF
6716cat confdefs.h >>conftest.$ac_ext
6717cat >>conftest.$ac_ext <<_ACEOF
6718/* end confdefs.h. */
6719
Bram Moolenaar071d4272004-06-13 20:20:40 +00006720/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006721#ifdef __cplusplus
6722extern "C"
6723#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006724/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006725 builtin and then its argument prototype would still apply. */
6726char XpmCreatePixmapFromData ();
6727int
6728main ()
6729{
6730XpmCreatePixmapFromData ();
6731 ;
6732 return 0;
6733}
6734_ACEOF
6735rm -f conftest.$ac_objext conftest$ac_exeext
6736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6737 (eval $ac_link) 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } &&
6744 { ac_try='test -z "$ac_c_werror_flag"
6745 || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 (eval $ac_try) 2>&5
6748 ac_status=$?
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try='test -s conftest$ac_exeext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753 (eval $ac_try) 2>&5
6754 ac_status=$?
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6757 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006758else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006759 echo "$as_me: failed program was:" >&5
6760sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006761
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006762ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006763fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006764rm -f conftest.err conftest.$ac_objext \
6765 conftest$ac_exeext conftest.$ac_ext
6766LIBS=$ac_check_lib_save_LIBS
6767fi
6768echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6769echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6770if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006771 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006772fi
6773
6774
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006775 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6776echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006777 cflags_save=$CFLAGS
6778 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006779 cat >conftest.$ac_ext <<_ACEOF
6780/* confdefs.h. */
6781_ACEOF
6782cat confdefs.h >>conftest.$ac_ext
6783cat >>conftest.$ac_ext <<_ACEOF
6784/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006785#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006786int
6787main ()
6788{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006789
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006790 ;
6791 return 0;
6792}
6793_ACEOF
6794rm -f conftest.$ac_objext
6795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6796 (eval $ac_compile) 2>conftest.er1
6797 ac_status=$?
6798 grep -v '^ *+' conftest.er1 >conftest.err
6799 rm -f conftest.er1
6800 cat conftest.err >&5
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
6803 { ac_try='test -z "$ac_c_werror_flag"
6804 || test ! -s conftest.err'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; } &&
6810 { ac_try='test -s conftest.$ac_objext'
6811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812 (eval $ac_try) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6816 echo "$as_me:$LINENO: result: no" >&5
6817echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006818else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006819 echo "$as_me: failed program was:" >&5
6820sed 's/^/| /' conftest.$ac_ext >&5
6821
6822CFLAGS="$CFLAGS -Wno-implicit-int"
6823 cat >conftest.$ac_ext <<_ACEOF
6824/* confdefs.h. */
6825_ACEOF
6826cat confdefs.h >>conftest.$ac_ext
6827cat >>conftest.$ac_ext <<_ACEOF
6828/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006829#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006830int
6831main ()
6832{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006833
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006834 ;
6835 return 0;
6836}
6837_ACEOF
6838rm -f conftest.$ac_objext
6839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6840 (eval $ac_compile) 2>conftest.er1
6841 ac_status=$?
6842 grep -v '^ *+' conftest.er1 >conftest.err
6843 rm -f conftest.er1
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } &&
6847 { ac_try='test -z "$ac_c_werror_flag"
6848 || test ! -s conftest.err'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 (eval $ac_try) 2>&5
6851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; } &&
6854 { ac_try='test -s conftest.$ac_objext'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 (eval $ac_try) 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6860 echo "$as_me:$LINENO: result: yes" >&5
6861echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006862else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006863 echo "$as_me: failed program was:" >&5
6864sed 's/^/| /' conftest.$ac_ext >&5
6865
6866echo "$as_me:$LINENO: result: test failed" >&5
6867echo "${ECHO_T}test failed" >&6
6868
Bram Moolenaar071d4272004-06-13 20:20:40 +00006869fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6871
Bram Moolenaar071d4272004-06-13 20:20:40 +00006872fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006874 CFLAGS=$cflags_save
6875
6876 LDFLAGS="$ac_save_LDFLAGS"
6877
6878 fi
6879fi
6880
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00006881test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006882
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006883echo "$as_me:$LINENO: checking --enable-gui argument" >&5
6884echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006885# Check whether --enable-gui or --disable-gui was given.
6886if test "${enable_gui+set}" = set; then
6887 enableval="$enable_gui"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006888
Bram Moolenaar071d4272004-06-13 20:20:40 +00006889else
6890 enable_gui="auto"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006891fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00006892
6893enable_gui_canon=`echo "_$enable_gui" | \
6894 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
6895
6896SKIP_GTK=YES
6897SKIP_GTK2=YES
6898SKIP_GNOME=YES
6899SKIP_MOTIF=YES
6900SKIP_ATHENA=YES
6901SKIP_NEXTAW=YES
6902SKIP_PHOTON=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00006903SKIP_CARBON=YES
6904GUITYPE=NONE
6905
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006906if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006907 SKIP_PHOTON=
6908 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006909 no) echo "$as_me:$LINENO: result: no GUI support" >&5
6910echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006911 SKIP_PHOTON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006912 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
6913echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
6914 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
6915echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
6916 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
6917echo "${ECHO_T}Photon GUI support" >&6 ;;
6918 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
6919echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006920 SKIP_PHOTON=YES ;;
6921 esac
6922
6923elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
6924 SKIP_CARBON=
6925 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006926 no) echo "$as_me:$LINENO: result: no GUI support" >&5
6927echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006928 SKIP_CARBON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006929 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
6930echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
6931 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
6932echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
6933 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
6934echo "${ECHO_T}Carbon GUI support" >&6 ;;
6935 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
6936echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006937 SKIP_CARBON=YES ;;
6938 esac
6939
6940else
6941
Bram Moolenaar071d4272004-06-13 20:20:40 +00006942 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006943 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
6944echo "${ECHO_T}no GUI support" >&6 ;;
6945 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
6946echo "${ECHO_T}yes/auto - automatic GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006947 SKIP_GTK=
6948 SKIP_GTK2=
6949 SKIP_GNOME=
6950 SKIP_MOTIF=
6951 SKIP_ATHENA=
6952 SKIP_NEXTAW=
6953 SKIP_CARBON=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006954 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
6955echo "${ECHO_T}GTK+ 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006956 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006957 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
6958echo "${ECHO_T}GTK+ 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006959 SKIP_GTK=
6960 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006961 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
6962echo "${ECHO_T}GNOME 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006963 SKIP_GNOME=
6964 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006965 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
6966echo "${ECHO_T}GNOME 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006967 SKIP_GNOME=
6968 SKIP_GTK=
6969 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006970 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
6971echo "${ECHO_T}Motif GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006972 SKIP_MOTIF=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006973 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
6974echo "${ECHO_T}Athena GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006975 SKIP_ATHENA=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006976 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
6977echo "${ECHO_T}neXtaw GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006978 SKIP_NEXTAW=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006979 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
6980echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00006981 esac
6982
6983fi
6984
6985if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006986 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
6987echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006988 # Check whether --enable-gtk-check or --disable-gtk-check was given.
6989if test "${enable_gtk_check+set}" = set; then
6990 enableval="$enable_gtk_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006991
Bram Moolenaar071d4272004-06-13 20:20:40 +00006992else
6993 enable_gtk_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006994fi;
6995 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
6996echo "${ECHO_T}$enable_gtk_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006997 if test "x$enable_gtk_check" = "xno"; then
6998 SKIP_GTK=YES
6999 SKIP_GNOME=YES
7000 fi
7001fi
7002
7003if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7004 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007005 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7006echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007007 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7008if test "${enable_gtk2_check+set}" = set; then
7009 enableval="$enable_gtk2_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007010
Bram Moolenaar071d4272004-06-13 20:20:40 +00007011else
7012 enable_gtk2_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007013fi;
7014 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7015echo "${ECHO_T}$enable_gtk2_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007016 if test "x$enable_gtk2_check" = "xno"; then
7017 SKIP_GTK2=YES
7018 fi
7019fi
7020
7021if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7022 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007023 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7024echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007025 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7026if test "${enable_gnome_check+set}" = set; then
7027 enableval="$enable_gnome_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007028
Bram Moolenaar071d4272004-06-13 20:20:40 +00007029else
7030 enable_gnome_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007031fi;
7032 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7033echo "${ECHO_T}$enable_gnome_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007034 if test "x$enable_gnome_check" = "xno"; then
7035 SKIP_GNOME=YES
7036 fi
7037fi
7038
7039if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007040 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7041echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007042 # Check whether --enable-motif-check or --disable-motif-check was given.
7043if test "${enable_motif_check+set}" = set; then
7044 enableval="$enable_motif_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007045
Bram Moolenaar071d4272004-06-13 20:20:40 +00007046else
7047 enable_motif_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007048fi;
7049 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7050echo "${ECHO_T}$enable_motif_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007051 if test "x$enable_motif_check" = "xno"; then
7052 SKIP_MOTIF=YES
7053 fi
7054fi
7055
7056if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007057 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7058echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007059 # Check whether --enable-athena-check or --disable-athena-check was given.
7060if test "${enable_athena_check+set}" = set; then
7061 enableval="$enable_athena_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007062
Bram Moolenaar071d4272004-06-13 20:20:40 +00007063else
7064 enable_athena_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007065fi;
7066 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7067echo "${ECHO_T}$enable_athena_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007068 if test "x$enable_athena_check" = "xno"; then
7069 SKIP_ATHENA=YES
7070 fi
7071fi
7072
7073if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007074 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7075echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007076 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7077if test "${enable_nextaw_check+set}" = set; then
7078 enableval="$enable_nextaw_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007079
Bram Moolenaar071d4272004-06-13 20:20:40 +00007080else
7081 enable_nextaw_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007082fi;
7083 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7084echo "${ECHO_T}$enable_nextaw_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007085 if test "x$enable_nextaw_check" = "xno"; then
7086 SKIP_NEXTAW=YES
7087 fi
7088fi
7089
7090if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007091 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7092echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007093 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7094if test "${enable_carbon_check+set}" = set; then
7095 enableval="$enable_carbon_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007096
Bram Moolenaar071d4272004-06-13 20:20:40 +00007097else
7098 enable_carbon_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007099fi;
7100 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7101echo "${ECHO_T}$enable_carbon_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007102 if test "x$enable_carbon_check" = "xno"; then
7103 SKIP_CARBON=YES
7104 fi
7105fi
7106
Bram Moolenaar843ee412004-06-30 16:16:41 +00007107
Bram Moolenaar071d4272004-06-13 20:20:40 +00007108if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007109 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7110echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7111 echo "$as_me:$LINENO: result: yes" >&5
7112echo "${ECHO_T}yes" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007113 GUITYPE=CARBONGUI
Bram Moolenaare344bea2005-09-01 20:46:49 +00007114 if test "$VIMNAME" = "vim"; then
7115 VIMNAME=Vim
7116 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007117 SKIP_GTK=YES;
7118 SKIP_GTK2=YES;
7119 SKIP_GNOME=YES;
7120 SKIP_MOTIF=YES;
7121 SKIP_ATHENA=YES;
7122 SKIP_NEXTAW=YES;
7123 SKIP_PHOTON=YES;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007124 SKIP_CARBON=YES
7125fi
7126
7127
7128
7129
7130
7131
7132
7133
7134
Bram Moolenaar071d4272004-06-13 20:20:40 +00007135if test -z "$SKIP_GTK"; then
7136
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007137 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7138echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7139
7140# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007141if test "${with_gtk_prefix+set}" = set; then
7142 withval="$with_gtk_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007143 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7144echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007145else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007146 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7147echo "${ECHO_T}no" >&6
7148fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007149
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007150 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7151echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007152
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007153# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007154if test "${with_gtk_exec_prefix+set}" = set; then
7155 withval="$with_gtk_exec_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007156 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7157echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007158else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007159 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6
7161fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007162
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007163 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7164echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007165 # Check whether --enable-gtktest or --disable-gtktest was given.
7166if test "${enable_gtktest+set}" = set; then
7167 enableval="$enable_gtktest"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007168
Bram Moolenaar071d4272004-06-13 20:20:40 +00007169else
7170 enable_gtktest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007171fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007172 if test "x$enable_gtktest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007173 echo "$as_me:$LINENO: result: gtk test enabled" >&5
7174echo "${ECHO_T}gtk test enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007175 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007176 echo "$as_me:$LINENO: result: gtk test disabled" >&5
7177echo "${ECHO_T}gtk test disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007178 fi
7179
7180 if test "x$gtk_config_prefix" != "x" ; then
7181 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7182 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7183 fi
7184 if test "x$gtk_config_exec_prefix" != "x" ; then
7185 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7186 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7187 fi
7188 if test "X$GTK_CONFIG" = "X"; then
7189 # Extract the first word of "gtk-config", so it can be a program name with args.
7190set dummy gtk-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007191echo "$as_me:$LINENO: checking for $ac_word" >&5
7192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7193if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007195else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007196 case $GTK_CONFIG in
7197 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007198 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7199 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007200 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212done
7213done
7214
Bram Moolenaar071d4272004-06-13 20:20:40 +00007215 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7216 ;;
7217esac
7218fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007219GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7220
Bram Moolenaar071d4272004-06-13 20:20:40 +00007221if test -n "$GTK_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007222 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7223echo "${ECHO_T}$GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007224else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007225 echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007227fi
7228
7229 if test "X$GTK_CONFIG" = "Xno"; then
7230 # Extract the first word of "gtk12-config", so it can be a program name with args.
7231set dummy gtk12-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007232echo "$as_me:$LINENO: checking for $ac_word" >&5
7233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7234if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007236else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007237 case $GTK12_CONFIG in
7238 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007239 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7240 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007241 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243for as_dir in $PATH
7244do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7249 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7252 fi
7253done
7254done
7255
Bram Moolenaar071d4272004-06-13 20:20:40 +00007256 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7257 ;;
7258esac
7259fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007260GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7261
Bram Moolenaar071d4272004-06-13 20:20:40 +00007262if test -n "$GTK12_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007263 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7264echo "${ECHO_T}$GTK12_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007265else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007266 echo "$as_me:$LINENO: result: no" >&5
7267echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007268fi
7269
7270 GTK_CONFIG="$GTK12_CONFIG"
7271 fi
7272 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007273 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7274echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007275 fi
7276 if test "X$PKG_CONFIG" = "X"; then
7277 # Extract the first word of "pkg-config", so it can be a program name with args.
7278set dummy pkg-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007279echo "$as_me:$LINENO: checking for $ac_word" >&5
7280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7281if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007283else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007284 case $PKG_CONFIG in
7285 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007286 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7287 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007288 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7296 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7299 fi
7300done
7301done
7302
Bram Moolenaar071d4272004-06-13 20:20:40 +00007303 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7304 ;;
7305esac
7306fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007307PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7308
Bram Moolenaar071d4272004-06-13 20:20:40 +00007309if test -n "$PKG_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007310 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7311echo "${ECHO_T}$PKG_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007312else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007313 echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007315fi
7316
7317 fi
7318
7319 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7320 if test "X$SKIP_GTK2" != "XYES"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007321
Bram Moolenaar071d4272004-06-13 20:20:40 +00007322 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7323 {
7324 min_gtk_version=2.2.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007325 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7326echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007327 no_gtk=""
7328 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7329 && $PKG_CONFIG --exists gtk+-2.0; then
7330 {
7331 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007332 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007333 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7334 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7335 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7336 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7337 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7338 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7339 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7340 }
7341 elif test "X$GTK_CONFIG" != "Xno"; then
7342 {
7343 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007344 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007345 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7346 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7347 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7348 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7349 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7350 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7351 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7352 }
7353 else
7354 no_gtk=yes
7355 fi
7356
7357 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7358 {
7359 ac_save_CFLAGS="$CFLAGS"
7360 ac_save_LIBS="$LIBS"
7361 CFLAGS="$CFLAGS $GTK_CFLAGS"
7362 LIBS="$LIBS $GTK_LIBS"
7363
7364 rm -f conf.gtktest
7365 if test "$cross_compiling" = yes; then
7366 echo $ac_n "cross compiling; assumed OK... $ac_c"
7367else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007368 cat >conftest.$ac_ext <<_ACEOF
7369/* confdefs.h. */
7370_ACEOF
7371cat confdefs.h >>conftest.$ac_ext
7372cat >>conftest.$ac_ext <<_ACEOF
7373/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007374
7375#include <gtk/gtk.h>
7376#include <stdio.h>
7377
7378int
7379main ()
7380{
7381int major, minor, micro;
7382char *tmp_version;
7383
7384system ("touch conf.gtktest");
7385
7386/* HP/UX 9 (%@#!) writes to sscanf strings */
7387tmp_version = g_strdup("$min_gtk_version");
7388if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7389 printf("%s, bad version string\n", "$min_gtk_version");
7390 exit(1);
7391 }
7392
7393if ((gtk_major_version > major) ||
7394 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7395 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7396 (gtk_micro_version >= micro)))
7397{
7398 return 0;
7399}
7400return 1;
7401}
7402
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007403_ACEOF
7404rm -f conftest$ac_exeext
7405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406 (eval $ac_link) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007415 :
7416else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007417 echo "$as_me: program exited with status $ac_status" >&5
7418echo "$as_me: failed program was:" >&5
7419sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007420
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007421( exit $ac_status )
7422no_gtk=yes
7423fi
7424rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7425fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007426 CFLAGS="$ac_save_CFLAGS"
7427 LIBS="$ac_save_LIBS"
7428 }
7429 fi
7430 if test "x$no_gtk" = x ; then
7431 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007432 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7433echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007434 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007435 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7436echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007437 fi
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007438 GUI_LIB_LOC="$GTK_LIBDIR"
7439 GTK_LIBNAME="$GTK_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007440 GUI_INC_LOC="$GTK_CFLAGS"
7441 else
7442 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007443 echo "$as_me:$LINENO: result: no" >&5
7444echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007445 GTK_CFLAGS=""
7446 GTK_LIBS=""
7447 :
7448 }
7449 fi
7450 }
7451 else
7452 GTK_CFLAGS=""
7453 GTK_LIBS=""
7454 :
7455 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007456
7457
Bram Moolenaar071d4272004-06-13 20:20:40 +00007458 rm -f conf.gtktest
7459
7460 if test "x$GTK_CFLAGS" != "x"; then
7461 SKIP_ATHENA=YES
7462 SKIP_NEXTAW=YES
7463 SKIP_MOTIF=YES
7464 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007465
Bram Moolenaar071d4272004-06-13 20:20:40 +00007466 fi
7467 fi
7468
7469 if test "x$GUITYPE" != "xGTK"; then
7470 SKIP_GTK2=YES
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007471
Bram Moolenaar071d4272004-06-13 20:20:40 +00007472 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7473 {
7474 min_gtk_version=1.1.16
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007475 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7476echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007477 no_gtk=""
7478 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7479 && $PKG_CONFIG --exists gtk+-2.0; then
7480 {
7481 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007482 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007483 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7484 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7485 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7486 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7487 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7488 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7489 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7490 }
7491 elif test "X$GTK_CONFIG" != "Xno"; then
7492 {
7493 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007494 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007495 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7496 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7497 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7498 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7499 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7500 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7501 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7502 }
7503 else
7504 no_gtk=yes
7505 fi
7506
7507 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7508 {
7509 ac_save_CFLAGS="$CFLAGS"
7510 ac_save_LIBS="$LIBS"
7511 CFLAGS="$CFLAGS $GTK_CFLAGS"
7512 LIBS="$LIBS $GTK_LIBS"
7513
7514 rm -f conf.gtktest
7515 if test "$cross_compiling" = yes; then
7516 echo $ac_n "cross compiling; assumed OK... $ac_c"
7517else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007518 cat >conftest.$ac_ext <<_ACEOF
7519/* confdefs.h. */
7520_ACEOF
7521cat confdefs.h >>conftest.$ac_ext
7522cat >>conftest.$ac_ext <<_ACEOF
7523/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007524
7525#include <gtk/gtk.h>
7526#include <stdio.h>
7527
7528int
7529main ()
7530{
7531int major, minor, micro;
7532char *tmp_version;
7533
7534system ("touch conf.gtktest");
7535
7536/* HP/UX 9 (%@#!) writes to sscanf strings */
7537tmp_version = g_strdup("$min_gtk_version");
7538if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7539 printf("%s, bad version string\n", "$min_gtk_version");
7540 exit(1);
7541 }
7542
7543if ((gtk_major_version > major) ||
7544 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7545 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7546 (gtk_micro_version >= micro)))
7547{
7548 return 0;
7549}
7550return 1;
7551}
7552
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007553_ACEOF
7554rm -f conftest$ac_exeext
7555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007565 :
7566else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007567 echo "$as_me: program exited with status $ac_status" >&5
7568echo "$as_me: failed program was:" >&5
7569sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007570
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007571( exit $ac_status )
7572no_gtk=yes
7573fi
7574rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7575fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007576 CFLAGS="$ac_save_CFLAGS"
7577 LIBS="$ac_save_LIBS"
7578 }
7579 fi
7580 if test "x$no_gtk" = x ; then
7581 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007582 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7583echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007584 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007585 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7586echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007587 fi
7588 GTK_LIBNAME="$GTK_LIBS"
7589 GUI_INC_LOC="$GTK_CFLAGS"
7590 else
7591 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007592 echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007594 GTK_CFLAGS=""
7595 GTK_LIBS=""
7596 :
7597 }
7598 fi
7599 }
7600 else
7601 GTK_CFLAGS=""
7602 GTK_LIBS=""
7603 :
7604 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007605
7606
Bram Moolenaar071d4272004-06-13 20:20:40 +00007607 rm -f conf.gtktest
7608
7609 if test "x$GTK_CFLAGS" != "x"; then
7610 SKIP_ATHENA=YES
7611 SKIP_NEXTAW=YES
7612 SKIP_MOTIF=YES
7613 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007614
Bram Moolenaar071d4272004-06-13 20:20:40 +00007615 fi
7616 fi
7617 fi
7618 if test "x$GUITYPE" = "xGTK"; then
7619 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7620 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007621 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7622echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007623 else
7624 {
7625 if test "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007626 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007627#define HAVE_GTK2 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007628_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007629
7630 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7631 || test "0$gtk_minor_version" -ge 2 \
7632 || test "0$gtk_major_version" -gt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007633 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007634#define HAVE_GTK_MULTIHEAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007635_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007636
7637 fi
7638 fi
7639 if test -z "$SKIP_GNOME"; then
7640 {
Bram Moolenaar071d4272004-06-13 20:20:40 +00007641
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007642
7643
7644
7645
7646
7647# Check whether --with-gnome-includes or --without-gnome-includes was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007648if test "${with_gnome_includes+set}" = set; then
7649 withval="$with_gnome_includes"
7650 CFLAGS="$CFLAGS -I$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007651
7652fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007653
7654
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007655# Check whether --with-gnome-libs or --without-gnome-libs was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007656if test "${with_gnome_libs+set}" = set; then
7657 withval="$with_gnome_libs"
7658 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007659
7660fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007661
7662
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007663# Check whether --with-gnome or --without-gnome was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007664if test "${with_gnome+set}" = set; then
7665 withval="$with_gnome"
7666 if test x$withval = xyes; then
7667 want_gnome=yes
7668 have_gnome=yes
7669 else
7670 if test "x$withval" = xno; then
7671 want_gnome=no
7672 else
7673 want_gnome=yes
7674 LDFLAGS="$LDFLAGS -L$withval/lib"
7675 CFLAGS="$CFLAGS -I$withval/include"
7676 gnome_prefix=$withval/lib
7677 fi
7678 fi
7679else
7680 want_gnome=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007681fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007682
7683 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7684 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007685 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7686echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007687 if $PKG_CONFIG --exists libgnomeui-2.0; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007688 echo "$as_me:$LINENO: result: yes" >&5
7689echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007690 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7691 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7692 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
7693 have_gnome=yes
7694 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007695 echo "$as_me:$LINENO: result: not found" >&5
7696echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007697 if test "x" = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007698 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7699echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7700 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007701 fi
7702 fi
7703 }
7704 elif test "x$want_gnome" = xyes; then
7705 {
7706 # Extract the first word of "gnome-config", so it can be a program name with args.
7707set dummy gnome-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007708echo "$as_me:$LINENO: checking for $ac_word" >&5
7709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7710if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007712else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007713 case $GNOME_CONFIG in
7714 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007715 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7716 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007717 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719for as_dir in $PATH
7720do
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 break 2
7728 fi
7729done
7730done
7731
Bram Moolenaar071d4272004-06-13 20:20:40 +00007732 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7733 ;;
7734esac
7735fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007736GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7737
Bram Moolenaar071d4272004-06-13 20:20:40 +00007738if test -n "$GNOME_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007739 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7740echo "${ECHO_T}$GNOME_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007741else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007742 echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007744fi
7745
7746 if test "$GNOME_CONFIG" = "no"; then
7747 no_gnome_config="yes"
7748 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007749 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7750echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007751 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007752 echo "$as_me:$LINENO: result: yes" >&5
7753echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007754 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7755 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7756 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7757 have_gnome=yes
7758 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007759 echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007761 no_gnome_config="yes"
7762 fi
7763 fi
7764
7765 if test x$exec_prefix = xNONE; then
7766 if test x$prefix = xNONE; then
7767 gnome_prefix=$ac_default_prefix/lib
7768 else
7769 gnome_prefix=$prefix/lib
7770 fi
7771 else
7772 gnome_prefix=`eval echo \`echo $libdir\``
7773 fi
7774
7775 if test "$no_gnome_config" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007776 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7777echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007778 if test -f $gnome_prefix/gnomeConf.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007779 echo "$as_me:$LINENO: result: found" >&5
7780echo "${ECHO_T}found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007781 echo "loading gnome configuration from" \
7782 "$gnome_prefix/gnomeConf.sh"
7783 . $gnome_prefix/gnomeConf.sh
7784 have_gnome=yes
7785 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007786 echo "$as_me:$LINENO: result: not found" >&5
7787echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007788 if test x = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007789 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7790echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7791 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007792 fi
7793 fi
7794 fi
7795 }
7796 fi
7797
7798 if test x$have_gnome = xyes ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007799 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007800#define FEAT_GUI_GNOME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007801_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007802
7803 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7804 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7805 fi
7806 }
7807 fi
7808 }
7809 fi
7810 fi
7811fi
7812
7813
7814if test -z "$SKIP_MOTIF"; then
7815 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"
7816 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7817
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007818 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
7819echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007820 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7821 GUI_INC_LOC=
7822 for try in $gui_includes; do
7823 if test -f "$try/Xm/Xm.h"; then
7824 GUI_INC_LOC=$try
7825 fi
7826 done
7827 if test -n "$GUI_INC_LOC"; then
7828 if test "$GUI_INC_LOC" = /usr/include; then
7829 GUI_INC_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007830 echo "$as_me:$LINENO: result: in default path" >&5
7831echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007832 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007833 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
7834echo "${ECHO_T}$GUI_INC_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007835 fi
7836 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007837 echo "$as_me:$LINENO: result: <not found>" >&5
7838echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007839 SKIP_MOTIF=YES
7840 fi
7841fi
7842
7843
7844if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007845 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
7846echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
7847
7848# Check whether --with-motif-lib or --without-motif-lib was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007849if test "${with_motif_lib+set}" = set; then
7850 withval="$with_motif_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007851 MOTIF_LIBNAME="${withval}"
7852fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007853
7854 if test -n "$MOTIF_LIBNAME"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007855 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
7856echo "${ECHO_T}$MOTIF_LIBNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007857 GUI_LIB_LOC=
7858 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007859 echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007861
7862 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
7863
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007864 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
7865echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007866 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"
7867 GUI_LIB_LOC=
7868 for try in $gui_libs; do
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007869 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
Bram Moolenaar071d4272004-06-13 20:20:40 +00007870 if test -f "$libtry"; then
7871 GUI_LIB_LOC=$try
7872 fi
7873 done
7874 done
7875 if test -n "$GUI_LIB_LOC"; then
7876 if test "$GUI_LIB_LOC" = /usr/lib; then
7877 GUI_LIB_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007878 echo "$as_me:$LINENO: result: in default path" >&5
7879echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007880 else
7881 if test -n "$GUI_LIB_LOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007882 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
7883echo "${ECHO_T}$GUI_LIB_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007884 if test "`(uname) 2>/dev/null`" = SunOS &&
7885 uname -r | grep '^5' >/dev/null; then
7886 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
7887 fi
7888 fi
7889 fi
7890 MOTIF_LIBNAME=-lXm
7891 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007892 echo "$as_me:$LINENO: result: <not found>" >&5
7893echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007894 SKIP_MOTIF=YES
7895 fi
7896 fi
7897fi
7898
7899if test -z "$SKIP_MOTIF"; then
7900 SKIP_ATHENA=YES
7901 SKIP_NEXTAW=YES
7902 GUITYPE=MOTIF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007903
Bram Moolenaar071d4272004-06-13 20:20:40 +00007904fi
7905
7906
7907GUI_X_LIBS=
7908
7909if test -z "$SKIP_ATHENA"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007910 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
7911echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007912 cflags_save=$CFLAGS
7913 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007914 cat >conftest.$ac_ext <<_ACEOF
7915/* confdefs.h. */
7916_ACEOF
7917cat confdefs.h >>conftest.$ac_ext
7918cat >>conftest.$ac_ext <<_ACEOF
7919/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007920
7921#include <X11/Intrinsic.h>
7922#include <X11/Xaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007923int
7924main ()
7925{
Bram Moolenaar071d4272004-06-13 20:20:40 +00007926
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007927 ;
7928 return 0;
7929}
7930_ACEOF
7931rm -f conftest.$ac_objext
7932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7933 (eval $ac_compile) 2>conftest.er1
7934 ac_status=$?
7935 grep -v '^ *+' conftest.er1 >conftest.err
7936 rm -f conftest.er1
7937 cat conftest.err >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } &&
7940 { ac_try='test -z "$ac_c_werror_flag"
7941 || test ! -s conftest.err'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 (eval $ac_try) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; } &&
7947 { ac_try='test -s conftest.$ac_objext'
7948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 echo "$as_me:$LINENO: result: yes" >&5
7954echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007955else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007956 echo "$as_me: failed program was:" >&5
7957sed 's/^/| /' conftest.$ac_ext >&5
7958
7959echo "$as_me:$LINENO: result: no" >&5
7960echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00007961fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00007963 CFLAGS=$cflags_save
7964fi
7965
7966if test -z "$SKIP_ATHENA"; then
7967 GUITYPE=ATHENA
7968fi
7969
7970if test -z "$SKIP_NEXTAW"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007971 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
7972echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007973 cflags_save=$CFLAGS
7974 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007975 cat >conftest.$ac_ext <<_ACEOF
7976/* confdefs.h. */
7977_ACEOF
7978cat confdefs.h >>conftest.$ac_ext
7979cat >>conftest.$ac_ext <<_ACEOF
7980/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007981
7982#include <X11/Intrinsic.h>
7983#include <X11/neXtaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007984int
7985main ()
7986{
Bram Moolenaar071d4272004-06-13 20:20:40 +00007987
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007988 ;
7989 return 0;
7990}
7991_ACEOF
7992rm -f conftest.$ac_objext
7993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7994 (eval $ac_compile) 2>conftest.er1
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } &&
8001 { ac_try='test -z "$ac_c_werror_flag"
8002 || test ! -s conftest.err'
8003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8004 (eval $ac_try) 2>&5
8005 ac_status=$?
8006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007 (exit $ac_status); }; } &&
8008 { ac_try='test -s conftest.$ac_objext'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; }; then
8014 echo "$as_me:$LINENO: result: yes" >&5
8015echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008016else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008017 echo "$as_me: failed program was:" >&5
8018sed 's/^/| /' conftest.$ac_ext >&5
8019
8020echo "$as_me:$LINENO: result: no" >&5
8021echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008022fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008024 CFLAGS=$cflags_save
8025fi
8026
8027if test -z "$SKIP_NEXTAW"; then
8028 GUITYPE=NEXTAW
8029fi
8030
8031if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8032 if test -n "$GUI_INC_LOC"; then
8033 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8034 fi
8035 if test -n "$GUI_LIB_LOC"; then
8036 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8037 fi
8038
8039 ldflags_save=$LDFLAGS
8040 LDFLAGS="$X_LIBS $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008041 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8042echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8043if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008045else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008046 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008047LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008048cat >conftest.$ac_ext <<_ACEOF
8049/* confdefs.h. */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h. */
8054
Bram Moolenaar071d4272004-06-13 20:20:40 +00008055/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008056#ifdef __cplusplus
8057extern "C"
8058#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008059/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008060 builtin and then its argument prototype would still apply. */
8061char XShapeQueryExtension ();
8062int
8063main ()
8064{
8065XShapeQueryExtension ();
8066 ;
8067 return 0;
8068}
8069_ACEOF
8070rm -f conftest.$ac_objext conftest$ac_exeext
8071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8072 (eval $ac_link) 2>conftest.er1
8073 ac_status=$?
8074 grep -v '^ *+' conftest.er1 >conftest.err
8075 rm -f conftest.er1
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } &&
8079 { ac_try='test -z "$ac_c_werror_flag"
8080 || test ! -s conftest.err'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082 (eval $ac_try) 2>&5
8083 ac_status=$?
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; } &&
8086 { ac_try='test -s conftest$ac_exeext'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 (eval $ac_try) 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 ac_cv_lib_Xext_XShapeQueryExtension=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008093else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008094 echo "$as_me: failed program was:" >&5
8095sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008096
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008097ac_cv_lib_Xext_XShapeQueryExtension=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008098fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008099rm -f conftest.err conftest.$ac_objext \
8100 conftest$ac_exeext conftest.$ac_ext
8101LIBS=$ac_check_lib_save_LIBS
8102fi
8103echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8104echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8105if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008106 GUI_X_LIBS="-lXext"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008107fi
8108
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008109 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8110echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8111if test "${ac_cv_lib_w_wslen+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008113else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008114 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008115LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008116cat >conftest.$ac_ext <<_ACEOF
8117/* confdefs.h. */
8118_ACEOF
8119cat confdefs.h >>conftest.$ac_ext
8120cat >>conftest.$ac_ext <<_ACEOF
8121/* end confdefs.h. */
8122
Bram Moolenaar071d4272004-06-13 20:20:40 +00008123/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008124#ifdef __cplusplus
8125extern "C"
8126#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008127/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008128 builtin and then its argument prototype would still apply. */
8129char wslen ();
8130int
8131main ()
8132{
8133wslen ();
8134 ;
8135 return 0;
8136}
8137_ACEOF
8138rm -f conftest.$ac_objext conftest$ac_exeext
8139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140 (eval $ac_link) 2>conftest.er1
8141 ac_status=$?
8142 grep -v '^ *+' conftest.er1 >conftest.err
8143 rm -f conftest.er1
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
8147 { ac_try='test -z "$ac_c_werror_flag"
8148 || test ! -s conftest.err'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 (eval $ac_try) 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest$ac_exeext'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; }; then
8160 ac_cv_lib_w_wslen=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008161else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008162 echo "$as_me: failed program was:" >&5
8163sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008164
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008165ac_cv_lib_w_wslen=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008166fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008167rm -f conftest.err conftest.$ac_objext \
8168 conftest$ac_exeext conftest.$ac_ext
8169LIBS=$ac_check_lib_save_LIBS
8170fi
8171echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8172echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8173if test $ac_cv_lib_w_wslen = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008174 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008175fi
8176
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008177 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8178echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8179if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008181else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008182 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008183LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008184cat >conftest.$ac_ext <<_ACEOF
8185/* confdefs.h. */
8186_ACEOF
8187cat confdefs.h >>conftest.$ac_ext
8188cat >>conftest.$ac_ext <<_ACEOF
8189/* end confdefs.h. */
8190
Bram Moolenaar071d4272004-06-13 20:20:40 +00008191/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008192#ifdef __cplusplus
8193extern "C"
8194#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008195/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008196 builtin and then its argument prototype would still apply. */
8197char dlsym ();
8198int
8199main ()
8200{
8201dlsym ();
8202 ;
8203 return 0;
8204}
8205_ACEOF
8206rm -f conftest.$ac_objext conftest$ac_exeext
8207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8208 (eval $ac_link) 2>conftest.er1
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -z "$ac_c_werror_flag"
8216 || test ! -s conftest.err'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 (eval $ac_try) 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest$ac_exeext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 ac_cv_lib_dl_dlsym=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008229else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008230 echo "$as_me: failed program was:" >&5
8231sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008232
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008233ac_cv_lib_dl_dlsym=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008234fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008235rm -f conftest.err conftest.$ac_objext \
8236 conftest$ac_exeext conftest.$ac_ext
8237LIBS=$ac_check_lib_save_LIBS
8238fi
8239echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8240echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8241if test $ac_cv_lib_dl_dlsym = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008242 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008243fi
8244
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008245 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8246echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8247if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008249else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008250 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008251LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008252cat >conftest.$ac_ext <<_ACEOF
8253/* confdefs.h. */
8254_ACEOF
8255cat confdefs.h >>conftest.$ac_ext
8256cat >>conftest.$ac_ext <<_ACEOF
8257/* end confdefs.h. */
8258
Bram Moolenaar071d4272004-06-13 20:20:40 +00008259/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008260#ifdef __cplusplus
8261extern "C"
8262#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008263/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008264 builtin and then its argument prototype would still apply. */
8265char XmuCreateStippledPixmap ();
8266int
8267main ()
8268{
8269XmuCreateStippledPixmap ();
8270 ;
8271 return 0;
8272}
8273_ACEOF
8274rm -f conftest.$ac_objext conftest$ac_exeext
8275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8276 (eval $ac_link) 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -z "$ac_c_werror_flag"
8284 || test ! -s conftest.err'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; } &&
8290 { ac_try='test -s conftest$ac_exeext'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; }; then
8296 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008297else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008298 echo "$as_me: failed program was:" >&5
8299sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008300
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008301ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008302fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008303rm -f conftest.err conftest.$ac_objext \
8304 conftest$ac_exeext conftest.$ac_ext
8305LIBS=$ac_check_lib_save_LIBS
8306fi
8307echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8308echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8309if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008310 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008311fi
8312
8313 if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008314 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8315echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8316if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008318else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008319 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008320LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008321cat >conftest.$ac_ext <<_ACEOF
8322/* confdefs.h. */
8323_ACEOF
8324cat confdefs.h >>conftest.$ac_ext
8325cat >>conftest.$ac_ext <<_ACEOF
8326/* end confdefs.h. */
8327
Bram Moolenaar071d4272004-06-13 20:20:40 +00008328/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008329#ifdef __cplusplus
8330extern "C"
8331#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008332/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008333 builtin and then its argument prototype would still apply. */
8334char XpEndJob ();
8335int
8336main ()
8337{
8338XpEndJob ();
8339 ;
8340 return 0;
8341}
8342_ACEOF
8343rm -f conftest.$ac_objext conftest$ac_exeext
8344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345 (eval $ac_link) 2>conftest.er1
8346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag"
8353 || test ! -s conftest.err'
8354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 (eval $ac_try) 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 (eval $ac_try) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 ac_cv_lib_Xp_XpEndJob=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008366else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008367 echo "$as_me: failed program was:" >&5
8368sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008369
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008370ac_cv_lib_Xp_XpEndJob=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008371fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008372rm -f conftest.err conftest.$ac_objext \
8373 conftest$ac_exeext conftest.$ac_ext
8374LIBS=$ac_check_lib_save_LIBS
8375fi
8376echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8377echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8378if test $ac_cv_lib_Xp_XpEndJob = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008379 GUI_X_LIBS="-lXp $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008380fi
8381
8382 fi
8383 LDFLAGS=$ldflags_save
8384
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008385 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8386echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008387 NARROW_PROTO=
8388 rm -fr conftestdir
8389 if mkdir conftestdir; then
8390 cd conftestdir
8391 cat > Imakefile <<'EOF'
8392acfindx:
8393 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8394EOF
8395 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8396 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8397 fi
8398 cd ..
8399 rm -fr conftestdir
8400 fi
8401 if test -z "$NARROW_PROTO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008402 echo "$as_me:$LINENO: result: no" >&5
8403echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008404 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008405 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8406echo "${ECHO_T}$NARROW_PROTO" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008407 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008408
Bram Moolenaar071d4272004-06-13 20:20:40 +00008409fi
8410
8411if test "$enable_xsmp" = "yes"; then
8412 cppflags_save=$CPPFLAGS
8413 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008414
8415for ac_header in X11/SM/SMlib.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008416do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008417as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8418if eval "test \"\${$as_ac_Header+set}\" = set"; then
8419 echo "$as_me:$LINENO: checking for $ac_header" >&5
8420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8421if eval "test \"\${$as_ac_Header+set}\" = set"; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008423fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008426else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008427 # Is the header compilable?
8428echo "$as_me:$LINENO: checking $ac_header usability" >&5
8429echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8430cat >conftest.$ac_ext <<_ACEOF
8431/* confdefs.h. */
8432_ACEOF
8433cat confdefs.h >>conftest.$ac_ext
8434cat >>conftest.$ac_ext <<_ACEOF
8435/* end confdefs.h. */
8436$ac_includes_default
8437#include <$ac_header>
8438_ACEOF
8439rm -f conftest.$ac_objext
8440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8441 (eval $ac_compile) 2>conftest.er1
8442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag"
8449 || test ! -s conftest.err'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 (eval $ac_try) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest.$ac_objext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_header_compiler=yes
8462else
8463 echo "$as_me: failed program was:" >&5
8464sed 's/^/| /' conftest.$ac_ext >&5
8465
8466ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008467fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8469echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8470echo "${ECHO_T}$ac_header_compiler" >&6
8471
8472# Is the header present?
8473echo "$as_me:$LINENO: checking $ac_header presence" >&5
8474echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8475cat >conftest.$ac_ext <<_ACEOF
8476/* confdefs.h. */
8477_ACEOF
8478cat confdefs.h >>conftest.$ac_ext
8479cat >>conftest.$ac_ext <<_ACEOF
8480/* end confdefs.h. */
8481#include <$ac_header>
8482_ACEOF
8483if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } >/dev/null; then
8491 if test -s conftest.err; then
8492 ac_cpp_err=$ac_c_preproc_warn_flag
8493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8494 else
8495 ac_cpp_err=
8496 fi
8497else
8498 ac_cpp_err=yes
8499fi
8500if test -z "$ac_cpp_err"; then
8501 ac_header_preproc=yes
8502else
8503 echo "$as_me: failed program was:" >&5
8504sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 ac_header_preproc=no
8507fi
8508rm -f conftest.err conftest.$ac_ext
8509echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8510echo "${ECHO_T}$ac_header_preproc" >&6
8511
8512# So? What about this header?
8513case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8514 yes:no: )
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8516echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8518echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8519 ac_header_preproc=yes
8520 ;;
8521 no:yes:* )
8522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8523echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8525echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8527echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8529echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8533echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8534 (
8535 cat <<\_ASBOX
8536## ------------------------------------------ ##
8537## Report this to the AC_PACKAGE_NAME lists. ##
8538## ------------------------------------------ ##
8539_ASBOX
8540 ) |
8541 sed "s/^/$as_me: WARNING: /" >&2
8542 ;;
8543esac
8544echo "$as_me:$LINENO: checking for $ac_header" >&5
8545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8546if eval "test \"\${$as_ac_Header+set}\" = set"; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548else
8549 eval "$as_ac_Header=\$ac_header_preproc"
8550fi
8551echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8552echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8553
8554fi
8555if test `eval echo '${'$as_ac_Header'}'` = yes; then
8556 cat >>confdefs.h <<_ACEOF
8557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8558_ACEOF
8559
8560fi
8561
Bram Moolenaar071d4272004-06-13 20:20:40 +00008562done
8563
8564 CPPFLAGS=$cppflags_save
8565fi
8566
8567
8568if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8569 cppflags_save=$CPPFLAGS
8570 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008571
8572
8573for ac_header in X11/xpm.h X11/Sunkeysym.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008574do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008575as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8576if eval "test \"\${$as_ac_Header+set}\" = set"; then
8577 echo "$as_me:$LINENO: checking for $ac_header" >&5
8578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8579if eval "test \"\${$as_ac_Header+set}\" = set"; then
8580 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008581fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008584else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008585 # Is the header compilable?
8586echo "$as_me:$LINENO: checking $ac_header usability" >&5
8587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8588cat >conftest.$ac_ext <<_ACEOF
8589/* confdefs.h. */
8590_ACEOF
8591cat confdefs.h >>conftest.$ac_ext
8592cat >>conftest.$ac_ext <<_ACEOF
8593/* end confdefs.h. */
8594$ac_includes_default
8595#include <$ac_header>
8596_ACEOF
8597rm -f conftest.$ac_objext
8598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8599 (eval $ac_compile) 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag"
8607 || test ! -s conftest.err'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; } &&
8613 { ac_try='test -s conftest.$ac_objext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 (eval $ac_try) 2>&5
8616 ac_status=$?
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8619 ac_header_compiler=yes
8620else
8621 echo "$as_me: failed program was:" >&5
8622sed 's/^/| /' conftest.$ac_ext >&5
8623
8624ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008625fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8628echo "${ECHO_T}$ac_header_compiler" >&6
8629
8630# Is the header present?
8631echo "$as_me:$LINENO: checking $ac_header presence" >&5
8632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8633cat >conftest.$ac_ext <<_ACEOF
8634/* confdefs.h. */
8635_ACEOF
8636cat confdefs.h >>conftest.$ac_ext
8637cat >>conftest.$ac_ext <<_ACEOF
8638/* end confdefs.h. */
8639#include <$ac_header>
8640_ACEOF
8641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8643 ac_status=$?
8644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } >/dev/null; then
8649 if test -s conftest.err; then
8650 ac_cpp_err=$ac_c_preproc_warn_flag
8651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8652 else
8653 ac_cpp_err=
8654 fi
8655else
8656 ac_cpp_err=yes
8657fi
8658if test -z "$ac_cpp_err"; then
8659 ac_header_preproc=yes
8660else
8661 echo "$as_me: failed program was:" >&5
8662sed 's/^/| /' conftest.$ac_ext >&5
8663
8664 ac_header_preproc=no
8665fi
8666rm -f conftest.err conftest.$ac_ext
8667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8668echo "${ECHO_T}$ac_header_preproc" >&6
8669
8670# So? What about this header?
8671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8672 yes:no: )
8673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8677 ac_header_preproc=yes
8678 ;;
8679 no:yes:* )
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8683echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8687echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8692 (
8693 cat <<\_ASBOX
8694## ------------------------------------------ ##
8695## Report this to the AC_PACKAGE_NAME lists. ##
8696## ------------------------------------------ ##
8697_ASBOX
8698 ) |
8699 sed "s/^/$as_me: WARNING: /" >&2
8700 ;;
8701esac
8702echo "$as_me:$LINENO: checking for $ac_header" >&5
8703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8704if eval "test \"\${$as_ac_Header+set}\" = set"; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706else
8707 eval "$as_ac_Header=\$ac_header_preproc"
8708fi
8709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8711
8712fi
8713if test `eval echo '${'$as_ac_Header'}'` = yes; then
8714 cat >>confdefs.h <<_ACEOF
8715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8716_ACEOF
8717
8718fi
8719
Bram Moolenaar071d4272004-06-13 20:20:40 +00008720done
8721
8722
8723 if test ! "$enable_xim" = "no"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008724 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8725echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8726 cat >conftest.$ac_ext <<_ACEOF
8727/* confdefs.h. */
8728_ACEOF
8729cat confdefs.h >>conftest.$ac_ext
8730cat >>conftest.$ac_ext <<_ACEOF
8731/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008732#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008733_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008735 $EGREP "XIMText" >/dev/null 2>&1; then
8736 echo "$as_me:$LINENO: result: yes" >&5
8737echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008738else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008739 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8740echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008741fi
8742rm -f conftest*
8743
8744 fi
8745 CPPFLAGS=$cppflags_save
8746
8747 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8748 -a "x$GUITYPE" != "xNONE" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008749 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8750echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008751 enable_xim="yes"
8752 fi
8753fi
8754
8755if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8756 cppflags_save=$CPPFLAGS
8757 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008758 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8759echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8760 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008761/* confdefs.h. */
8762_ACEOF
8763cat confdefs.h >>conftest.$ac_ext
8764cat >>conftest.$ac_ext <<_ACEOF
8765/* end confdefs.h. */
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008766
8767#include <X11/Intrinsic.h>
8768#include <X11/Xmu/Editres.h>
8769int
8770main ()
8771{
8772int i; i = 0;
8773 ;
8774 return 0;
8775}
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008776_ACEOF
8777rm -f conftest.$ac_objext
8778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8779 (eval $ac_compile) 2>conftest.er1
8780 ac_status=$?
8781 grep -v '^ *+' conftest.er1 >conftest.err
8782 rm -f conftest.er1
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } &&
8786 { ac_try='test -z "$ac_c_werror_flag"
8787 || test ! -s conftest.err'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; } &&
8793 { ac_try='test -s conftest.$ac_objext'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 (eval $ac_try) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008799 echo "$as_me:$LINENO: result: yes" >&5
8800echo "${ECHO_T}yes" >&6
8801 cat >>confdefs.h <<\_ACEOF
8802#define HAVE_X11_XMU_EDITRES_H 1
8803_ACEOF
8804
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008805else
8806 echo "$as_me: failed program was:" >&5
8807sed 's/^/| /' conftest.$ac_ext >&5
8808
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008809echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008811fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008813 CPPFLAGS=$cppflags_save
8814fi
8815
8816if test -z "$SKIP_MOTIF"; then
8817 cppflags_save=$CPPFLAGS
8818 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008819
8820
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008821
8822
8823
8824
8825for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
8826 Xm/UnhighlightT.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008827do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008828as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8829if eval "test \"\${$as_ac_Header+set}\" = set"; then
8830 echo "$as_me:$LINENO: checking for $ac_header" >&5
8831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8832if eval "test \"\${$as_ac_Header+set}\" = set"; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008834fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008835echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8836echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008837else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008838 # Is the header compilable?
8839echo "$as_me:$LINENO: checking $ac_header usability" >&5
8840echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8841cat >conftest.$ac_ext <<_ACEOF
8842/* confdefs.h. */
8843_ACEOF
8844cat confdefs.h >>conftest.$ac_ext
8845cat >>conftest.$ac_ext <<_ACEOF
8846/* end confdefs.h. */
8847$ac_includes_default
8848#include <$ac_header>
8849_ACEOF
8850rm -f conftest.$ac_objext
8851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag"
8860 || test ! -s conftest.err'
8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 (eval $ac_try) 2>&5
8863 ac_status=$?
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 (eval $ac_try) 2>&5
8869 ac_status=$?
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 ac_header_compiler=yes
8873else
8874 echo "$as_me: failed program was:" >&5
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
8877ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008878fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8880echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8881echo "${ECHO_T}$ac_header_compiler" >&6
8882
8883# Is the header present?
8884echo "$as_me:$LINENO: checking $ac_header presence" >&5
8885echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8886cat >conftest.$ac_ext <<_ACEOF
8887/* confdefs.h. */
8888_ACEOF
8889cat confdefs.h >>conftest.$ac_ext
8890cat >>conftest.$ac_ext <<_ACEOF
8891/* end confdefs.h. */
8892#include <$ac_header>
8893_ACEOF
8894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } >/dev/null; then
8902 if test -s conftest.err; then
8903 ac_cpp_err=$ac_c_preproc_warn_flag
8904 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8905 else
8906 ac_cpp_err=
8907 fi
8908else
8909 ac_cpp_err=yes
8910fi
8911if test -z "$ac_cpp_err"; then
8912 ac_header_preproc=yes
8913else
8914 echo "$as_me: failed program was:" >&5
8915sed 's/^/| /' conftest.$ac_ext >&5
8916
8917 ac_header_preproc=no
8918fi
8919rm -f conftest.err conftest.$ac_ext
8920echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8921echo "${ECHO_T}$ac_header_preproc" >&6
8922
8923# So? What about this header?
8924case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8925 yes:no: )
8926 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8927echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8929echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8930 ac_header_preproc=yes
8931 ;;
8932 no:yes:* )
8933 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8934echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8935 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8936echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8937 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8938echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8939 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8940echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8942echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8944echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8945 (
8946 cat <<\_ASBOX
8947## ------------------------------------------ ##
8948## Report this to the AC_PACKAGE_NAME lists. ##
8949## ------------------------------------------ ##
8950_ASBOX
8951 ) |
8952 sed "s/^/$as_me: WARNING: /" >&2
8953 ;;
8954esac
8955echo "$as_me:$LINENO: checking for $ac_header" >&5
8956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8957if eval "test \"\${$as_ac_Header+set}\" = set"; then
8958 echo $ECHO_N "(cached) $ECHO_C" >&6
8959else
8960 eval "$as_ac_Header=\$ac_header_preproc"
8961fi
8962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8964
8965fi
8966if test `eval echo '${'$as_ac_Header'}'` = yes; then
8967 cat >>confdefs.h <<_ACEOF
8968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8969_ACEOF
8970
8971fi
8972
Bram Moolenaar071d4272004-06-13 20:20:40 +00008973done
8974
8975 CPPFLAGS=$cppflags_save
8976fi
8977
8978if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008979 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
8980echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008981 enable_xim="no"
8982fi
8983if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008984 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
8985echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008986 enable_fontset="no"
8987fi
8988if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008989 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
8990echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008991 enable_fontset="no"
8992fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00008993
8994if test -z "$SKIP_PHOTON"; then
8995 GUITYPE=PHOTONGUI
8996fi
8997
8998
8999
9000
9001
9002
9003if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009004 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9005echo "$as_me: error: cannot use workshop without Motif" >&2;}
9006 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009007fi
9008
9009if test "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009010 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009011#define FEAT_XIM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009012_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009013
9014fi
9015if test "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009016 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009017#define FEAT_XFONTSET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009018_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009019
9020fi
9021
9022
9023
9024
9025if test "$enable_hangulinput" = "yes"; then
9026 if test "x$GUITYPE" = "xNONE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009027 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9028echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009029 enable_hangulinput=no
9030 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009031 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009032#define FEAT_HANGULIN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009033_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009034
9035 HANGULIN_SRC=hangulin.c
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009036
Bram Moolenaar071d4272004-06-13 20:20:40 +00009037 HANGULIN_OBJ=objects/hangulin.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009038
Bram Moolenaar071d4272004-06-13 20:20:40 +00009039 fi
9040fi
9041
9042
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009043echo "$as_me:$LINENO: checking quality of toupper" >&5
9044echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009045if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009046 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9047echo "$as_me: error: failed to compile test program" >&2;}
9048 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009049else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009050 cat >conftest.$ac_ext <<_ACEOF
9051/* confdefs.h. */
9052_ACEOF
9053cat confdefs.h >>conftest.$ac_ext
9054cat >>conftest.$ac_ext <<_ACEOF
9055/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009056#include <ctype.h>
9057main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009058_ACEOF
9059rm -f conftest$ac_exeext
9060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9061 (eval $ac_link) 2>&5
9062 ac_status=$?
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009071#define BROKEN_TOUPPER 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009072_ACEOF
9073 echo "$as_me:$LINENO: result: bad" >&5
9074echo "${ECHO_T}bad" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009075else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009076 echo "$as_me: program exited with status $ac_status" >&5
9077echo "$as_me: failed program was:" >&5
9078sed 's/^/| /' conftest.$ac_ext >&5
9079
9080( exit $ac_status )
9081echo "$as_me:$LINENO: result: good" >&5
9082echo "${ECHO_T}good" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009083fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009084rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009085fi
9086
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009087echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9088echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9089cat >conftest.$ac_ext <<_ACEOF
9090/* confdefs.h. */
9091_ACEOF
9092cat confdefs.h >>conftest.$ac_ext
9093cat >>conftest.$ac_ext <<_ACEOF
9094/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009095
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009096int
9097main ()
9098{
Bram Moolenaar071d4272004-06-13 20:20:40 +00009099printf("(" __DATE__ " " __TIME__ ")");
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009100 ;
9101 return 0;
9102}
9103_ACEOF
9104rm -f conftest.$ac_objext
9105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9106 (eval $ac_compile) 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag"
9114 || test ! -s conftest.err'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; } &&
9120 { ac_try='test -s conftest.$ac_objext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 echo "$as_me:$LINENO: result: yes" >&5
9127echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009128#define HAVE_DATE_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009129_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009130
9131else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009132 echo "$as_me: failed program was:" >&5
9133sed 's/^/| /' conftest.$ac_ext >&5
9134
9135echo "$as_me:$LINENO: result: no" >&5
9136echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009137fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009139
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009140if test "${ac_cv_header_elf_h+set}" = set; then
9141 echo "$as_me:$LINENO: checking for elf.h" >&5
9142echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9143if test "${ac_cv_header_elf_h+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145fi
9146echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9147echo "${ECHO_T}$ac_cv_header_elf_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009148else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009149 # Is the header compilable?
9150echo "$as_me:$LINENO: checking elf.h usability" >&5
9151echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9152cat >conftest.$ac_ext <<_ACEOF
9153/* confdefs.h. */
9154_ACEOF
9155cat confdefs.h >>conftest.$ac_ext
9156cat >>conftest.$ac_ext <<_ACEOF
9157/* end confdefs.h. */
9158$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +00009159#include <elf.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009160_ACEOF
9161rm -f conftest.$ac_objext
9162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9163 (eval $ac_compile) 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -z "$ac_c_werror_flag"
9171 || test ! -s conftest.err'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; } &&
9177 { ac_try='test -s conftest.$ac_objext'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 (eval $ac_try) 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; }; then
9183 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009184else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009185 echo "$as_me: failed program was:" >&5
9186sed 's/^/| /' conftest.$ac_ext >&5
9187
9188ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009189fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9191echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9192echo "${ECHO_T}$ac_header_compiler" >&6
9193
9194# Is the header present?
9195echo "$as_me:$LINENO: checking elf.h presence" >&5
9196echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9197cat >conftest.$ac_ext <<_ACEOF
9198/* confdefs.h. */
9199_ACEOF
9200cat confdefs.h >>conftest.$ac_ext
9201cat >>conftest.$ac_ext <<_ACEOF
9202/* end confdefs.h. */
9203#include <elf.h>
9204_ACEOF
9205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9207 ac_status=$?
9208 grep -v '^ *+' conftest.er1 >conftest.err
9209 rm -f conftest.er1
9210 cat conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } >/dev/null; then
9213 if test -s conftest.err; then
9214 ac_cpp_err=$ac_c_preproc_warn_flag
9215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9216 else
9217 ac_cpp_err=
9218 fi
9219else
9220 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009221fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009222if test -z "$ac_cpp_err"; then
9223 ac_header_preproc=yes
9224else
9225 echo "$as_me: failed program was:" >&5
9226sed 's/^/| /' conftest.$ac_ext >&5
9227
9228 ac_header_preproc=no
9229fi
9230rm -f conftest.err conftest.$ac_ext
9231echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9232echo "${ECHO_T}$ac_header_preproc" >&6
9233
9234# So? What about this header?
9235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9236 yes:no: )
9237 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9238echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9240echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9241 ac_header_preproc=yes
9242 ;;
9243 no:yes:* )
9244 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9245echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9247echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9249echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9251echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9252 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9253echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9254 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9255echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9256 (
9257 cat <<\_ASBOX
9258## ------------------------------------------ ##
9259## Report this to the AC_PACKAGE_NAME lists. ##
9260## ------------------------------------------ ##
9261_ASBOX
9262 ) |
9263 sed "s/^/$as_me: WARNING: /" >&2
9264 ;;
9265esac
9266echo "$as_me:$LINENO: checking for elf.h" >&5
9267echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9268if test "${ac_cv_header_elf_h+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270else
9271 ac_cv_header_elf_h=$ac_header_preproc
9272fi
9273echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9274echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9275
9276fi
9277if test $ac_cv_header_elf_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009278 HAS_ELF=1
Bram Moolenaar071d4272004-06-13 20:20:40 +00009279fi
9280
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009281
Bram Moolenaar071d4272004-06-13 20:20:40 +00009282if test "$HAS_ELF" = 1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009283
9284echo "$as_me:$LINENO: checking for main in -lelf" >&5
9285echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9286if test "${ac_cv_lib_elf_main+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009288else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009289 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009290LIBS="-lelf $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009291cat >conftest.$ac_ext <<_ACEOF
9292/* confdefs.h. */
9293_ACEOF
9294cat confdefs.h >>conftest.$ac_ext
9295cat >>conftest.$ac_ext <<_ACEOF
9296/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009297
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009298
9299int
9300main ()
9301{
9302main ();
9303 ;
9304 return 0;
9305}
9306_ACEOF
9307rm -f conftest.$ac_objext conftest$ac_exeext
9308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9309 (eval $ac_link) 2>conftest.er1
9310 ac_status=$?
9311 grep -v '^ *+' conftest.er1 >conftest.err
9312 rm -f conftest.er1
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -z "$ac_c_werror_flag"
9317 || test ! -s conftest.err'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 (eval $ac_try) 2>&5
9320 ac_status=$?
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; } &&
9323 { ac_try='test -s conftest$ac_exeext'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 (eval $ac_try) 2>&5
9326 ac_status=$?
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 ac_cv_lib_elf_main=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009330else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009331 echo "$as_me: failed program was:" >&5
9332sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009333
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009334ac_cv_lib_elf_main=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009335fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009336rm -f conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
9338LIBS=$ac_check_lib_save_LIBS
9339fi
9340echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9341echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9342if test $ac_cv_lib_elf_main = yes; then
9343 cat >>confdefs.h <<_ACEOF
9344#define HAVE_LIBELF 1
9345_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009346
9347 LIBS="-lelf $LIBS"
9348
Bram Moolenaar071d4272004-06-13 20:20:40 +00009349fi
9350
9351fi
9352
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009353
9354
9355
9356
9357
Bram Moolenaar071d4272004-06-13 20:20:40 +00009358ac_header_dirent=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009359for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9360 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9361echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9362echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9363if eval "test \"\${$as_ac_Header+set}\" = set"; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009365else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009366 cat >conftest.$ac_ext <<_ACEOF
9367/* confdefs.h. */
9368_ACEOF
9369cat confdefs.h >>conftest.$ac_ext
9370cat >>conftest.$ac_ext <<_ACEOF
9371/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009372#include <sys/types.h>
9373#include <$ac_hdr>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009374
9375int
9376main ()
9377{
9378if ((DIR *) 0)
9379return 0;
9380 ;
9381 return 0;
9382}
9383_ACEOF
9384rm -f conftest.$ac_objext
9385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9386 (eval $ac_compile) 2>conftest.er1
9387 ac_status=$?
9388 grep -v '^ *+' conftest.er1 >conftest.err
9389 rm -f conftest.er1
9390 cat conftest.err >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); } &&
9393 { ac_try='test -z "$ac_c_werror_flag"
9394 || test ! -s conftest.err'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; } &&
9400 { ac_try='test -s conftest.$ac_objext'
9401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402 (eval $ac_try) 2>&5
9403 ac_status=$?
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 eval "$as_ac_Header=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009407else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009408 echo "$as_me: failed program was:" >&5
9409sed 's/^/| /' conftest.$ac_ext >&5
9410
9411eval "$as_ac_Header=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009412fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009414fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9417if test `eval echo '${'$as_ac_Header'}'` = yes; then
9418 cat >>confdefs.h <<_ACEOF
9419#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9420_ACEOF
9421
9422ac_header_dirent=$ac_hdr; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009423fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009424
Bram Moolenaar071d4272004-06-13 20:20:40 +00009425done
9426# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9427if test $ac_header_dirent = dirent.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009428 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9429echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9430if test "${ac_cv_search_opendir+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009432else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009433 ac_func_search_save_LIBS=$LIBS
9434ac_cv_search_opendir=no
9435cat >conftest.$ac_ext <<_ACEOF
9436/* confdefs.h. */
9437_ACEOF
9438cat confdefs.h >>conftest.$ac_ext
9439cat >>conftest.$ac_ext <<_ACEOF
9440/* end confdefs.h. */
9441
Bram Moolenaar071d4272004-06-13 20:20:40 +00009442/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009443#ifdef __cplusplus
9444extern "C"
9445#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009446/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009447 builtin and then its argument prototype would still apply. */
9448char opendir ();
9449int
9450main ()
9451{
9452opendir ();
9453 ;
9454 return 0;
9455}
9456_ACEOF
9457rm -f conftest.$ac_objext conftest$ac_exeext
9458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>conftest.er1
9460 ac_status=$?
9461 grep -v '^ *+' conftest.er1 >conftest.err
9462 rm -f conftest.er1
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try='test -z "$ac_c_werror_flag"
9467 || test ! -s conftest.err'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 (eval $ac_try) 2>&5
9470 ac_status=$?
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; } &&
9473 { ac_try='test -s conftest$ac_exeext'
9474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 (eval $ac_try) 2>&5
9476 ac_status=$?
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9479 ac_cv_search_opendir="none required"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009480else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009481 echo "$as_me: failed program was:" >&5
9482sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009483
9484fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009485rm -f conftest.err conftest.$ac_objext \
9486 conftest$ac_exeext conftest.$ac_ext
9487if test "$ac_cv_search_opendir" = no; then
9488 for ac_lib in dir; do
9489 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9490 cat >conftest.$ac_ext <<_ACEOF
9491/* confdefs.h. */
9492_ACEOF
9493cat confdefs.h >>conftest.$ac_ext
9494cat >>conftest.$ac_ext <<_ACEOF
9495/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009496
Bram Moolenaar071d4272004-06-13 20:20:40 +00009497/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009498#ifdef __cplusplus
9499extern "C"
9500#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009501/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009502 builtin and then its argument prototype would still apply. */
9503char opendir ();
9504int
9505main ()
9506{
9507opendir ();
9508 ;
9509 return 0;
9510}
9511_ACEOF
9512rm -f conftest.$ac_objext conftest$ac_exeext
9513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514 (eval $ac_link) 2>conftest.er1
9515 ac_status=$?
9516 grep -v '^ *+' conftest.er1 >conftest.err
9517 rm -f conftest.er1
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } &&
9521 { ac_try='test -z "$ac_c_werror_flag"
9522 || test ! -s conftest.err'
9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 (eval $ac_try) 2>&5
9525 ac_status=$?
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); }; } &&
9528 { ac_try='test -s conftest$ac_exeext'
9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 (eval $ac_try) 2>&5
9531 ac_status=$?
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); }; }; then
9534 ac_cv_search_opendir="-l$ac_lib"
9535break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009536else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009537 echo "$as_me: failed program was:" >&5
9538sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009539
9540fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009541rm -f conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext conftest.$ac_ext
9543 done
9544fi
9545LIBS=$ac_func_search_save_LIBS
9546fi
9547echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9548echo "${ECHO_T}$ac_cv_search_opendir" >&6
9549if test "$ac_cv_search_opendir" != no; then
9550 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9551
9552fi
9553
Bram Moolenaar071d4272004-06-13 20:20:40 +00009554else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009555 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9556echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9557if test "${ac_cv_search_opendir+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009559else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009560 ac_func_search_save_LIBS=$LIBS
9561ac_cv_search_opendir=no
9562cat >conftest.$ac_ext <<_ACEOF
9563/* confdefs.h. */
9564_ACEOF
9565cat confdefs.h >>conftest.$ac_ext
9566cat >>conftest.$ac_ext <<_ACEOF
9567/* end confdefs.h. */
9568
9569/* Override any gcc2 internal prototype to avoid an error. */
9570#ifdef __cplusplus
9571extern "C"
9572#endif
9573/* We use char because int might match the return type of a gcc2
9574 builtin and then its argument prototype would still apply. */
9575char opendir ();
9576int
9577main ()
9578{
9579opendir ();
9580 ;
9581 return 0;
9582}
9583_ACEOF
9584rm -f conftest.$ac_objext conftest$ac_exeext
9585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9586 (eval $ac_link) 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } &&
9593 { ac_try='test -z "$ac_c_werror_flag"
9594 || test ! -s conftest.err'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596 (eval $ac_try) 2>&5
9597 ac_status=$?
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; } &&
9600 { ac_try='test -s conftest$ac_exeext'
9601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 (eval $ac_try) 2>&5
9603 ac_status=$?
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); }; }; then
9606 ac_cv_search_opendir="none required"
9607else
9608 echo "$as_me: failed program was:" >&5
9609sed 's/^/| /' conftest.$ac_ext >&5
9610
9611fi
9612rm -f conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614if test "$ac_cv_search_opendir" = no; then
9615 for ac_lib in x; do
9616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9617 cat >conftest.$ac_ext <<_ACEOF
9618/* confdefs.h. */
9619_ACEOF
9620cat confdefs.h >>conftest.$ac_ext
9621cat >>conftest.$ac_ext <<_ACEOF
9622/* end confdefs.h. */
9623
9624/* Override any gcc2 internal prototype to avoid an error. */
9625#ifdef __cplusplus
9626extern "C"
9627#endif
9628/* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9630char opendir ();
9631int
9632main ()
9633{
9634opendir ();
9635 ;
9636 return 0;
9637}
9638_ACEOF
9639rm -f conftest.$ac_objext conftest$ac_exeext
9640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9641 (eval $ac_link) 2>conftest.er1
9642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -z "$ac_c_werror_flag"
9649 || test ! -s conftest.err'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 (eval $ac_try) 2>&5
9652 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; } &&
9655 { ac_try='test -s conftest$ac_exeext'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; }; then
9661 ac_cv_search_opendir="-l$ac_lib"
9662break
9663else
9664 echo "$as_me: failed program was:" >&5
9665sed 's/^/| /' conftest.$ac_ext >&5
9666
9667fi
9668rm -f conftest.err conftest.$ac_objext \
9669 conftest$ac_exeext conftest.$ac_ext
9670 done
9671fi
9672LIBS=$ac_func_search_save_LIBS
9673fi
9674echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9675echo "${ECHO_T}$ac_cv_search_opendir" >&6
9676if test "$ac_cv_search_opendir" != no; then
9677 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9678
9679fi
9680
9681fi
9682
9683
9684echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9685echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9686if test "${ac_cv_header_stdc+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9688else
9689 cat >conftest.$ac_ext <<_ACEOF
9690/* confdefs.h. */
9691_ACEOF
9692cat confdefs.h >>conftest.$ac_ext
9693cat >>conftest.$ac_ext <<_ACEOF
9694/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009695#include <stdlib.h>
9696#include <stdarg.h>
9697#include <string.h>
9698#include <float.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009699
9700int
9701main ()
9702{
9703
9704 ;
9705 return 0;
9706}
9707_ACEOF
9708rm -f conftest.$ac_objext
9709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710 (eval $ac_compile) 2>conftest.er1
9711 ac_status=$?
9712 grep -v '^ *+' conftest.er1 >conftest.err
9713 rm -f conftest.er1
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 (eval $ac_try) 2>&5
9721 ac_status=$?
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest.$ac_objext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 (eval $ac_try) 2>&5
9727 ac_status=$?
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009730 ac_cv_header_stdc=yes
9731else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009732 echo "$as_me: failed program was:" >&5
9733sed 's/^/| /' conftest.$ac_ext >&5
9734
9735ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009736fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009738
9739if test $ac_cv_header_stdc = yes; then
9740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009741 cat >conftest.$ac_ext <<_ACEOF
9742/* confdefs.h. */
9743_ACEOF
9744cat confdefs.h >>conftest.$ac_ext
9745cat >>conftest.$ac_ext <<_ACEOF
9746/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009747#include <string.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009748
9749_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009751 $EGREP "memchr" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009752 :
9753else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009754 ac_cv_header_stdc=no
9755fi
9756rm -f conftest*
9757
9758fi
9759
9760if test $ac_cv_header_stdc = yes; then
9761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009762 cat >conftest.$ac_ext <<_ACEOF
9763/* confdefs.h. */
9764_ACEOF
9765cat confdefs.h >>conftest.$ac_ext
9766cat >>conftest.$ac_ext <<_ACEOF
9767/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009768#include <stdlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009769
9770_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009772 $EGREP "free" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009773 :
9774else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009775 ac_cv_header_stdc=no
9776fi
9777rm -f conftest*
9778
9779fi
9780
9781if test $ac_cv_header_stdc = yes; then
9782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009783 if test "$cross_compiling" = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009784 :
9785else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009786 cat >conftest.$ac_ext <<_ACEOF
9787/* confdefs.h. */
9788_ACEOF
9789cat confdefs.h >>conftest.$ac_ext
9790cat >>conftest.$ac_ext <<_ACEOF
9791/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009792#include <ctype.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009793#if ((' ' & 0x0FF) == 0x020)
9794# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9795# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9796#else
9797# define ISLOWER(c) \
9798 (('a' <= (c) && (c) <= 'i') \
9799 || ('j' <= (c) && (c) <= 'r') \
9800 || ('s' <= (c) && (c) <= 'z'))
9801# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9802#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009803
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009804#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9805int
9806main ()
9807{
9808 int i;
9809 for (i = 0; i < 256; i++)
9810 if (XOR (islower (i), ISLOWER (i))
9811 || toupper (i) != TOUPPER (i))
9812 exit(2);
9813 exit (0);
9814}
9815_ACEOF
9816rm -f conftest$ac_exeext
9817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818 (eval $ac_link) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9823 (eval $ac_try) 2>&5
9824 ac_status=$?
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009827 :
9828else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009829 echo "$as_me: program exited with status $ac_status" >&5
9830echo "$as_me: failed program was:" >&5
9831sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009832
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009833( exit $ac_status )
9834ac_cv_header_stdc=no
9835fi
9836rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009837fi
9838fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009839fi
9840echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9841echo "${ECHO_T}$ac_cv_header_stdc" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009842if test $ac_cv_header_stdc = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009843
9844cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009845#define STDC_HEADERS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009846_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009847
9848fi
9849
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009850echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9851echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9852if test "${ac_cv_header_sys_wait_h+set}" = set; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009854else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009855 cat >conftest.$ac_ext <<_ACEOF
9856/* confdefs.h. */
9857_ACEOF
9858cat confdefs.h >>conftest.$ac_ext
9859cat >>conftest.$ac_ext <<_ACEOF
9860/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009861#include <sys/types.h>
9862#include <sys/wait.h>
9863#ifndef WEXITSTATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009864# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
Bram Moolenaar071d4272004-06-13 20:20:40 +00009865#endif
9866#ifndef WIFEXITED
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009867# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +00009868#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009869
9870int
9871main ()
9872{
9873 int s;
9874 wait (&s);
9875 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9876 ;
9877 return 0;
9878}
9879_ACEOF
9880rm -f conftest.$ac_objext
9881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9882 (eval $ac_compile) 2>conftest.er1
9883 ac_status=$?
9884 grep -v '^ *+' conftest.er1 >conftest.err
9885 rm -f conftest.er1
9886 cat conftest.err >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); } &&
9889 { ac_try='test -z "$ac_c_werror_flag"
9890 || test ! -s conftest.err'
9891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892 (eval $ac_try) 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; } &&
9896 { ac_try='test -s conftest.$ac_objext'
9897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898 (eval $ac_try) 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009902 ac_cv_header_sys_wait_h=yes
9903else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009904 echo "$as_me: failed program was:" >&5
9905sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009906
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009907ac_cv_header_sys_wait_h=no
9908fi
9909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9910fi
9911echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9912echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009913if test $ac_cv_header_sys_wait_h = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009914
9915cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009916#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009917_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009918
9919fi
9920
9921
9922if test $ac_cv_header_sys_wait_h = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009923 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
9924echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
9925 cat >conftest.$ac_ext <<_ACEOF
9926/* confdefs.h. */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009931#include <sys/wait.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009932int
9933main ()
9934{
Bram Moolenaar071d4272004-06-13 20:20:40 +00009935union wait xx, yy; xx = yy
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009936 ;
9937 return 0;
9938}
9939_ACEOF
9940rm -f conftest.$ac_objext
9941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942 (eval $ac_compile) 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } &&
9949 { ac_try='test -z "$ac_c_werror_flag"
9950 || test ! -s conftest.err'
9951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952 (eval $ac_try) 2>&5
9953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest.$ac_objext'
9957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958 (eval $ac_try) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
9962 echo "$as_me:$LINENO: result: yes" >&5
9963echo "${ECHO_T}yes" >&6
9964 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009965#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009966_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009967
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009968 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009969#define HAVE_UNION_WAIT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009970_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009971
9972else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009973 echo "$as_me: failed program was:" >&5
9974sed 's/^/| /' conftest.$ac_ext >&5
9975
9976echo "$as_me:$LINENO: result: no" >&5
9977echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009978fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009980fi
9981
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010021
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010022for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010023 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10024 iconv.h langinfo.h unistd.h stropts.h errno.h \
10025 sys/resource.h sys/systeminfo.h locale.h \
10026 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10027 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010028 libgen.h util/debug.h util/msg18n.h frame.h \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010029 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010030do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010031as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10032if eval "test \"\${$as_ac_Header+set}\" = set"; then
10033 echo "$as_me:$LINENO: checking for $ac_header" >&5
10034echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10035if eval "test \"\${$as_ac_Header+set}\" = set"; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010037fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010040else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010041 # Is the header compilable?
10042echo "$as_me:$LINENO: checking $ac_header usability" >&5
10043echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10044cat >conftest.$ac_ext <<_ACEOF
10045/* confdefs.h. */
10046_ACEOF
10047cat confdefs.h >>conftest.$ac_ext
10048cat >>conftest.$ac_ext <<_ACEOF
10049/* end confdefs.h. */
10050$ac_includes_default
10051#include <$ac_header>
10052_ACEOF
10053rm -f conftest.$ac_objext
10054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10055 (eval $ac_compile) 2>conftest.er1
10056 ac_status=$?
10057 grep -v '^ *+' conftest.er1 >conftest.err
10058 rm -f conftest.er1
10059 cat conftest.err >&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } &&
10062 { ac_try='test -z "$ac_c_werror_flag"
10063 || test ! -s conftest.err'
10064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065 (eval $ac_try) 2>&5
10066 ac_status=$?
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; } &&
10069 { ac_try='test -s conftest.$ac_objext'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10072 ac_status=$?
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; }; then
10075 ac_header_compiler=yes
10076else
10077 echo "$as_me: failed program was:" >&5
10078sed 's/^/| /' conftest.$ac_ext >&5
10079
10080ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010081fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10083echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10084echo "${ECHO_T}$ac_header_compiler" >&6
10085
10086# Is the header present?
10087echo "$as_me:$LINENO: checking $ac_header presence" >&5
10088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10089cat >conftest.$ac_ext <<_ACEOF
10090/* confdefs.h. */
10091_ACEOF
10092cat confdefs.h >>conftest.$ac_ext
10093cat >>conftest.$ac_ext <<_ACEOF
10094/* end confdefs.h. */
10095#include <$ac_header>
10096_ACEOF
10097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } >/dev/null; then
10105 if test -s conftest.err; then
10106 ac_cpp_err=$ac_c_preproc_warn_flag
10107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10108 else
10109 ac_cpp_err=
10110 fi
10111else
10112 ac_cpp_err=yes
10113fi
10114if test -z "$ac_cpp_err"; then
10115 ac_header_preproc=yes
10116else
10117 echo "$as_me: failed program was:" >&5
10118sed 's/^/| /' conftest.$ac_ext >&5
10119
10120 ac_header_preproc=no
10121fi
10122rm -f conftest.err conftest.$ac_ext
10123echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10124echo "${ECHO_T}$ac_header_preproc" >&6
10125
10126# So? What about this header?
10127case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10128 yes:no: )
10129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10130echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10132echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10133 ac_header_preproc=yes
10134 ;;
10135 no:yes:* )
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10141echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10143echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10145echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10147echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10148 (
10149 cat <<\_ASBOX
10150## ------------------------------------------ ##
10151## Report this to the AC_PACKAGE_NAME lists. ##
10152## ------------------------------------------ ##
10153_ASBOX
10154 ) |
10155 sed "s/^/$as_me: WARNING: /" >&2
10156 ;;
10157esac
10158echo "$as_me:$LINENO: checking for $ac_header" >&5
10159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10160if eval "test \"\${$as_ac_Header+set}\" = set"; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10162else
10163 eval "$as_ac_Header=\$ac_header_preproc"
10164fi
10165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10167
10168fi
10169if test `eval echo '${'$as_ac_Header'}'` = yes; then
10170 cat >>confdefs.h <<_ACEOF
10171#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10172_ACEOF
10173
10174fi
10175
Bram Moolenaar071d4272004-06-13 20:20:40 +000010176done
10177
10178
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010179echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10180echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10181cat >conftest.$ac_ext <<_ACEOF
10182/* confdefs.h. */
10183_ACEOF
10184cat confdefs.h >>conftest.$ac_ext
10185cat >>conftest.$ac_ext <<_ACEOF
10186/* end confdefs.h. */
10187
10188#include <pthread.h>
10189#include <pthread_np.h>
10190int
10191main ()
10192{
10193int i; i = 0;
10194 ;
10195 return 0;
10196}
10197_ACEOF
10198rm -f conftest.$ac_objext
10199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10200 (eval $ac_compile) 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try='test -z "$ac_c_werror_flag"
10208 || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest.$ac_objext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 echo "$as_me:$LINENO: result: yes" >&5
10221echo "${ECHO_T}yes" >&6
10222 cat >>confdefs.h <<\_ACEOF
10223#define HAVE_PTHREAD_NP_H 1
10224_ACEOF
10225
10226else
10227 echo "$as_me: failed program was:" >&5
10228sed 's/^/| /' conftest.$ac_ext >&5
10229
10230echo "$as_me:$LINENO: result: no" >&5
10231echo "${ECHO_T}no" >&6
10232fi
10233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10234
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010235
10236for ac_header in strings.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010237do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010238as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10239if eval "test \"\${$as_ac_Header+set}\" = set"; then
10240 echo "$as_me:$LINENO: checking for $ac_header" >&5
10241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10242if eval "test \"\${$as_ac_Header+set}\" = set"; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010244fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10246echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010247else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010248 # Is the header compilable?
10249echo "$as_me:$LINENO: checking $ac_header usability" >&5
10250echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10251cat >conftest.$ac_ext <<_ACEOF
10252/* confdefs.h. */
10253_ACEOF
10254cat confdefs.h >>conftest.$ac_ext
10255cat >>conftest.$ac_ext <<_ACEOF
10256/* end confdefs.h. */
10257$ac_includes_default
10258#include <$ac_header>
10259_ACEOF
10260rm -f conftest.$ac_objext
10261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10262 (eval $ac_compile) 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try='test -z "$ac_c_werror_flag"
10270 || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_header_compiler=yes
10283else
10284 echo "$as_me: failed program was:" >&5
10285sed 's/^/| /' conftest.$ac_ext >&5
10286
10287ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010288fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10290echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10291echo "${ECHO_T}$ac_header_compiler" >&6
10292
10293# Is the header present?
10294echo "$as_me:$LINENO: checking $ac_header presence" >&5
10295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10296cat >conftest.$ac_ext <<_ACEOF
10297/* confdefs.h. */
10298_ACEOF
10299cat confdefs.h >>conftest.$ac_ext
10300cat >>conftest.$ac_ext <<_ACEOF
10301/* end confdefs.h. */
10302#include <$ac_header>
10303_ACEOF
10304if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } >/dev/null; then
10312 if test -s conftest.err; then
10313 ac_cpp_err=$ac_c_preproc_warn_flag
10314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10315 else
10316 ac_cpp_err=
10317 fi
10318else
10319 ac_cpp_err=yes
10320fi
10321if test -z "$ac_cpp_err"; then
10322 ac_header_preproc=yes
10323else
10324 echo "$as_me: failed program was:" >&5
10325sed 's/^/| /' conftest.$ac_ext >&5
10326
10327 ac_header_preproc=no
10328fi
10329rm -f conftest.err conftest.$ac_ext
10330echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10331echo "${ECHO_T}$ac_header_preproc" >&6
10332
10333# So? What about this header?
10334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10335 yes:no: )
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10340 ac_header_preproc=yes
10341 ;;
10342 no:yes:* )
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10355 (
10356 cat <<\_ASBOX
10357## ------------------------------------------ ##
10358## Report this to the AC_PACKAGE_NAME lists. ##
10359## ------------------------------------------ ##
10360_ASBOX
10361 ) |
10362 sed "s/^/$as_me: WARNING: /" >&2
10363 ;;
10364esac
10365echo "$as_me:$LINENO: checking for $ac_header" >&5
10366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10367if eval "test \"\${$as_ac_Header+set}\" = set"; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369else
10370 eval "$as_ac_Header=\$ac_header_preproc"
10371fi
10372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10374
10375fi
10376if test `eval echo '${'$as_ac_Header'}'` = yes; then
10377 cat >>confdefs.h <<_ACEOF
10378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10379_ACEOF
10380
10381fi
10382
Bram Moolenaar071d4272004-06-13 20:20:40 +000010383done
10384
Bram Moolenaar9372a112005-12-06 19:59:18 +000010385if test "x$MACOSX" = "xyes"; then
10386 cat >>confdefs.h <<\_ACEOF
10387#define NO_STRINGS_WITH_STRING_H 1
10388_ACEOF
10389
10390else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010391
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010392echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10393echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010394cppflags_save=$CPPFLAGS
10395CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010396cat >conftest.$ac_ext <<_ACEOF
10397/* confdefs.h. */
10398_ACEOF
10399cat confdefs.h >>conftest.$ac_ext
10400cat >>conftest.$ac_ext <<_ACEOF
10401/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010402
10403#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10404# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10405 /* but don't do it on AIX 5.1 (Uribarri) */
10406#endif
10407#ifdef HAVE_XM_XM_H
10408# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10409#endif
10410#ifdef HAVE_STRING_H
10411# include <string.h>
10412#endif
10413#if defined(HAVE_STRINGS_H)
10414# include <strings.h>
10415#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010416
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010417int
10418main ()
10419{
10420int i; i = 0;
10421 ;
10422 return 0;
10423}
10424_ACEOF
10425rm -f conftest.$ac_objext
10426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10427 (eval $ac_compile) 2>conftest.er1
10428 ac_status=$?
10429 grep -v '^ *+' conftest.er1 >conftest.err
10430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try='test -z "$ac_c_werror_flag"
10435 || test ! -s conftest.err'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } &&
10441 { ac_try='test -s conftest.$ac_objext'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447 echo "$as_me:$LINENO: result: yes" >&5
10448echo "${ECHO_T}yes" >&6
10449else
10450 echo "$as_me: failed program was:" >&5
10451sed 's/^/| /' conftest.$ac_ext >&5
10452
10453cat >>confdefs.h <<\_ACEOF
10454#define NO_STRINGS_WITH_STRING_H 1
10455_ACEOF
10456
10457 echo "$as_me:$LINENO: result: no" >&5
10458echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010459fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010461CPPFLAGS=$cppflags_save
Bram Moolenaar9372a112005-12-06 19:59:18 +000010462fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000010463
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010464if test $ac_cv_c_compiler_gnu = yes; then
10465 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10466echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10467if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010469else
10470 ac_pattern="Autoconf.*'x'"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010471 cat >conftest.$ac_ext <<_ACEOF
10472/* confdefs.h. */
10473_ACEOF
10474cat confdefs.h >>conftest.$ac_ext
10475cat >>conftest.$ac_ext <<_ACEOF
10476/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010477#include <sgtty.h>
10478Autoconf TIOCGETP
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010479_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010481 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010482 ac_cv_prog_gcc_traditional=yes
10483else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010484 ac_cv_prog_gcc_traditional=no
10485fi
10486rm -f conftest*
10487
10488
10489 if test $ac_cv_prog_gcc_traditional = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010490 cat >conftest.$ac_ext <<_ACEOF
10491/* confdefs.h. */
10492_ACEOF
10493cat confdefs.h >>conftest.$ac_ext
10494cat >>conftest.$ac_ext <<_ACEOF
10495/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010496#include <termio.h>
10497Autoconf TCGETA
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010498_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010500 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010501 ac_cv_prog_gcc_traditional=yes
10502fi
10503rm -f conftest*
10504
10505 fi
10506fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010507echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10508echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010509 if test $ac_cv_prog_gcc_traditional = yes; then
10510 CC="$CC -traditional"
10511 fi
10512fi
10513
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010514echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10515echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10516if test "${ac_cv_c_const+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010518else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010519 cat >conftest.$ac_ext <<_ACEOF
10520/* confdefs.h. */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010525
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010526int
10527main ()
10528{
10529/* FIXME: Include the comments suggested by Paul. */
10530#ifndef __cplusplus
10531 /* Ultrix mips cc rejects this. */
10532 typedef int charset[2];
10533 const charset x;
10534 /* SunOS 4.1.1 cc rejects this. */
10535 char const *const *ccp;
10536 char **p;
10537 /* NEC SVR4.0.2 mips cc rejects this. */
10538 struct point {int x, y;};
10539 static struct point const zero = {0,0};
10540 /* AIX XL C 1.02.0.0 rejects this.
10541 It does not let you subtract one const X* pointer from another in
10542 an arm of an if-expression whose if-part is not a constant
10543 expression */
10544 const char *g = "string";
10545 ccp = &g + (g ? g-g : 0);
10546 /* HPUX 7.0 cc rejects these. */
10547 ++ccp;
10548 p = (char**) ccp;
10549 ccp = (char const *const *) p;
10550 { /* SCO 3.2v4 cc rejects this. */
10551 char *t;
10552 char const *s = 0 ? (char *) 0 : (char const *) 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010553
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010554 *t++ = 0;
10555 }
10556 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10557 int x[] = {25, 17};
10558 const int *foo = &x[0];
10559 ++foo;
10560 }
10561 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10562 typedef const int *iptr;
10563 iptr p = 0;
10564 ++p;
10565 }
10566 { /* AIX XL C 1.02.0.0 rejects this saying
10567 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10568 struct s { int j; const int *ap[3]; };
10569 struct s *b; b->j = 5;
10570 }
10571 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10572 const int foo = 10;
10573 }
10574#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010575
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010576 ;
10577 return 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010578}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010579_ACEOF
10580rm -f conftest.$ac_objext
10581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582 (eval $ac_compile) 2>conftest.er1
10583 ac_status=$?
10584 grep -v '^ *+' conftest.er1 >conftest.err
10585 rm -f conftest.er1
10586 cat conftest.err >&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } &&
10589 { ac_try='test -z "$ac_c_werror_flag"
10590 || test ! -s conftest.err'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; } &&
10596 { ac_try='test -s conftest.$ac_objext'
10597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598 (eval $ac_try) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010602 ac_cv_c_const=yes
10603else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010604 echo "$as_me: failed program was:" >&5
10605sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010606
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010607ac_cv_c_const=no
10608fi
10609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10610fi
10611echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10612echo "${ECHO_T}$ac_cv_c_const" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010613if test $ac_cv_c_const = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010614
10615cat >>confdefs.h <<\_ACEOF
10616#define const
10617_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010618
10619fi
10620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010621echo "$as_me:$LINENO: checking for mode_t" >&5
10622echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10623if test "${ac_cv_type_mode_t+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010625else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010626 cat >conftest.$ac_ext <<_ACEOF
10627/* confdefs.h. */
10628_ACEOF
10629cat confdefs.h >>conftest.$ac_ext
10630cat >>conftest.$ac_ext <<_ACEOF
10631/* end confdefs.h. */
10632$ac_includes_default
10633int
10634main ()
10635{
10636if ((mode_t *) 0)
10637 return 0;
10638if (sizeof (mode_t))
10639 return 0;
10640 ;
10641 return 0;
10642}
10643_ACEOF
10644rm -f conftest.$ac_objext
10645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10646 (eval $ac_compile) 2>conftest.er1
10647 ac_status=$?
10648 grep -v '^ *+' conftest.er1 >conftest.err
10649 rm -f conftest.er1
10650 cat conftest.err >&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -z "$ac_c_werror_flag"
10654 || test ! -s conftest.err'
10655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656 (eval $ac_try) 2>&5
10657 ac_status=$?
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); }; } &&
10660 { ac_try='test -s conftest.$ac_objext'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010666 ac_cv_type_mode_t=yes
10667else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010668 echo "$as_me: failed program was:" >&5
10669sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010670
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010671ac_cv_type_mode_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010672fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010674fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010675echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10676echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10677if test $ac_cv_type_mode_t = yes; then
10678 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010679else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010680
10681cat >>confdefs.h <<_ACEOF
10682#define mode_t int
10683_ACEOF
10684
10685fi
10686
10687echo "$as_me:$LINENO: checking for off_t" >&5
10688echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10689if test "${ac_cv_type_off_t+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10691else
10692 cat >conftest.$ac_ext <<_ACEOF
10693/* confdefs.h. */
10694_ACEOF
10695cat confdefs.h >>conftest.$ac_ext
10696cat >>conftest.$ac_ext <<_ACEOF
10697/* end confdefs.h. */
10698$ac_includes_default
10699int
10700main ()
10701{
10702if ((off_t *) 0)
10703 return 0;
10704if (sizeof (off_t))
10705 return 0;
10706 ;
10707 return 0;
10708}
10709_ACEOF
10710rm -f conftest.$ac_objext
10711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10712 (eval $ac_compile) 2>conftest.er1
10713 ac_status=$?
10714 grep -v '^ *+' conftest.er1 >conftest.err
10715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } &&
10719 { ac_try='test -z "$ac_c_werror_flag"
10720 || test ! -s conftest.err'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try='test -s conftest.$ac_objext'
10727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728 (eval $ac_try) 2>&5
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010732 ac_cv_type_off_t=yes
10733else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010734 echo "$as_me: failed program was:" >&5
10735sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010736
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010737ac_cv_type_off_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010738fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010740fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010741echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10742echo "${ECHO_T}$ac_cv_type_off_t" >&6
10743if test $ac_cv_type_off_t = yes; then
10744 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010745else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010746
10747cat >>confdefs.h <<_ACEOF
10748#define off_t long
10749_ACEOF
10750
10751fi
10752
10753echo "$as_me:$LINENO: checking for pid_t" >&5
10754echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10755if test "${ac_cv_type_pid_t+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10757else
10758 cat >conftest.$ac_ext <<_ACEOF
10759/* confdefs.h. */
10760_ACEOF
10761cat confdefs.h >>conftest.$ac_ext
10762cat >>conftest.$ac_ext <<_ACEOF
10763/* end confdefs.h. */
10764$ac_includes_default
10765int
10766main ()
10767{
10768if ((pid_t *) 0)
10769 return 0;
10770if (sizeof (pid_t))
10771 return 0;
10772 ;
10773 return 0;
10774}
10775_ACEOF
10776rm -f conftest.$ac_objext
10777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10778 (eval $ac_compile) 2>conftest.er1
10779 ac_status=$?
10780 grep -v '^ *+' conftest.er1 >conftest.err
10781 rm -f conftest.er1
10782 cat conftest.err >&5
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try='test -z "$ac_c_werror_flag"
10786 || test ! -s conftest.err'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10789 ac_status=$?
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; } &&
10792 { ac_try='test -s conftest.$ac_objext'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010798 ac_cv_type_pid_t=yes
10799else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010800 echo "$as_me: failed program was:" >&5
10801sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010802
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010803ac_cv_type_pid_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010804fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010806fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010807echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10808echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10809if test $ac_cv_type_pid_t = yes; then
10810 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010811else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010812
10813cat >>confdefs.h <<_ACEOF
10814#define pid_t int
10815_ACEOF
10816
10817fi
10818
10819echo "$as_me:$LINENO: checking for size_t" >&5
10820echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10821if test "${ac_cv_type_size_t+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10823else
10824 cat >conftest.$ac_ext <<_ACEOF
10825/* confdefs.h. */
10826_ACEOF
10827cat confdefs.h >>conftest.$ac_ext
10828cat >>conftest.$ac_ext <<_ACEOF
10829/* end confdefs.h. */
10830$ac_includes_default
10831int
10832main ()
10833{
10834if ((size_t *) 0)
10835 return 0;
10836if (sizeof (size_t))
10837 return 0;
10838 ;
10839 return 0;
10840}
10841_ACEOF
10842rm -f conftest.$ac_objext
10843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10844 (eval $ac_compile) 2>conftest.er1
10845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
10851 { ac_try='test -z "$ac_c_werror_flag"
10852 || test ! -s conftest.err'
10853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10854 (eval $ac_try) 2>&5
10855 ac_status=$?
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest.$ac_objext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010864 ac_cv_type_size_t=yes
10865else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010866 echo "$as_me: failed program was:" >&5
10867sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010868
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010869ac_cv_type_size_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010870fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010872fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010873echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10874echo "${ECHO_T}$ac_cv_type_size_t" >&6
10875if test $ac_cv_type_size_t = yes; then
10876 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010877else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010878
10879cat >>confdefs.h <<_ACEOF
10880#define size_t unsigned
10881_ACEOF
10882
10883fi
10884
10885echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10886echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10887if test "${ac_cv_type_uid_t+set}" = set; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10889else
10890 cat >conftest.$ac_ext <<_ACEOF
10891/* confdefs.h. */
10892_ACEOF
10893cat confdefs.h >>conftest.$ac_ext
10894cat >>conftest.$ac_ext <<_ACEOF
10895/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010896#include <sys/types.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010897
10898_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010900 $EGREP "uid_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010901 ac_cv_type_uid_t=yes
10902else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010903 ac_cv_type_uid_t=no
10904fi
10905rm -f conftest*
10906
10907fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010908echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10909echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010910if test $ac_cv_type_uid_t = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010911
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010912cat >>confdefs.h <<\_ACEOF
10913#define uid_t int
10914_ACEOF
10915
10916
10917cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010918#define gid_t int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010919_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010920
10921fi
10922
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010923echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10924echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10925if test "${ac_cv_header_time+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010927else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010928 cat >conftest.$ac_ext <<_ACEOF
10929/* confdefs.h. */
10930_ACEOF
10931cat confdefs.h >>conftest.$ac_ext
10932cat >>conftest.$ac_ext <<_ACEOF
10933/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010934#include <sys/types.h>
10935#include <sys/time.h>
10936#include <time.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010937
10938int
10939main ()
10940{
10941if ((struct tm *) 0)
10942return 0;
10943 ;
10944 return 0;
10945}
10946_ACEOF
10947rm -f conftest.$ac_objext
10948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10949 (eval $ac_compile) 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try='test -z "$ac_c_werror_flag"
10957 || test ! -s conftest.err'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; } &&
10963 { ac_try='test -s conftest.$ac_objext'
10964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965 (eval $ac_try) 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010969 ac_cv_header_time=yes
10970else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010971 echo "$as_me: failed program was:" >&5
10972sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010973
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010974ac_cv_header_time=no
10975fi
10976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10977fi
10978echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10979echo "${ECHO_T}$ac_cv_header_time" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010980if test $ac_cv_header_time = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010981
10982cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010983#define TIME_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010984_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010985
10986fi
10987
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010988echo "$as_me:$LINENO: checking for ino_t" >&5
10989echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
10990if test "${ac_cv_type_ino_t+set}" = set; then
10991 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010992else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010993 cat >conftest.$ac_ext <<_ACEOF
10994/* confdefs.h. */
10995_ACEOF
10996cat confdefs.h >>conftest.$ac_ext
10997cat >>conftest.$ac_ext <<_ACEOF
10998/* end confdefs.h. */
10999$ac_includes_default
11000int
11001main ()
11002{
11003if ((ino_t *) 0)
11004 return 0;
11005if (sizeof (ino_t))
11006 return 0;
11007 ;
11008 return 0;
11009}
11010_ACEOF
11011rm -f conftest.$ac_objext
11012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11013 (eval $ac_compile) 2>conftest.er1
11014 ac_status=$?
11015 grep -v '^ *+' conftest.er1 >conftest.err
11016 rm -f conftest.er1
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try='test -z "$ac_c_werror_flag"
11021 || test ! -s conftest.err'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try='test -s conftest.$ac_objext'
11028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11029 (eval $ac_try) 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011033 ac_cv_type_ino_t=yes
11034else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011035 echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011037
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011038ac_cv_type_ino_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011039fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011041fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011042echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11043echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11044if test $ac_cv_type_ino_t = yes; then
11045 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011046else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011047
11048cat >>confdefs.h <<_ACEOF
11049#define ino_t long
11050_ACEOF
11051
11052fi
11053
11054echo "$as_me:$LINENO: checking for dev_t" >&5
11055echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11056if test "${ac_cv_type_dev_t+set}" = set; then
11057 echo $ECHO_N "(cached) $ECHO_C" >&6
11058else
11059 cat >conftest.$ac_ext <<_ACEOF
11060/* confdefs.h. */
11061_ACEOF
11062cat confdefs.h >>conftest.$ac_ext
11063cat >>conftest.$ac_ext <<_ACEOF
11064/* end confdefs.h. */
11065$ac_includes_default
11066int
11067main ()
11068{
11069if ((dev_t *) 0)
11070 return 0;
11071if (sizeof (dev_t))
11072 return 0;
11073 ;
11074 return 0;
11075}
11076_ACEOF
11077rm -f conftest.$ac_objext
11078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11079 (eval $ac_compile) 2>conftest.er1
11080 ac_status=$?
11081 grep -v '^ *+' conftest.er1 >conftest.err
11082 rm -f conftest.er1
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } &&
11086 { ac_try='test -z "$ac_c_werror_flag"
11087 || test ! -s conftest.err'
11088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11089 (eval $ac_try) 2>&5
11090 ac_status=$?
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; } &&
11093 { ac_try='test -s conftest.$ac_objext'
11094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095 (eval $ac_try) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011099 ac_cv_type_dev_t=yes
11100else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011101 echo "$as_me: failed program was:" >&5
11102sed 's/^/| /' conftest.$ac_ext >&5
11103
11104ac_cv_type_dev_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011105fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011107fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011108echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11109echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11110if test $ac_cv_type_dev_t = yes; then
11111 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011112else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011113
11114cat >>confdefs.h <<_ACEOF
11115#define dev_t unsigned
11116_ACEOF
11117
11118fi
11119
11120
11121echo "$as_me:$LINENO: checking for rlim_t" >&5
11122echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11123if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11124 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11125echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11126else
11127 cat >conftest.$ac_ext <<_ACEOF
11128/* confdefs.h. */
11129_ACEOF
11130cat confdefs.h >>conftest.$ac_ext
11131cat >>conftest.$ac_ext <<_ACEOF
11132/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011133
11134#include <sys/types.h>
11135#if STDC_HEADERS
11136#include <stdlib.h>
11137#include <stddef.h>
11138#endif
11139#ifdef HAVE_SYS_RESOURCE_H
11140#include <sys/resource.h>
11141#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011142
11143_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011145 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011146 ac_cv_type_rlim_t=yes
11147else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011148 ac_cv_type_rlim_t=no
11149fi
11150rm -f conftest*
11151
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011152 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11153echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011154fi
11155if test $ac_cv_type_rlim_t = no; then
11156 cat >> confdefs.h <<\EOF
11157#define rlim_t unsigned long
11158EOF
11159fi
11160
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011161echo "$as_me:$LINENO: checking for stack_t" >&5
11162echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011163if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011164 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11165echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011166else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011167 cat >conftest.$ac_ext <<_ACEOF
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011173
11174#include <sys/types.h>
11175#if STDC_HEADERS
11176#include <stdlib.h>
11177#include <stddef.h>
11178#endif
11179#include <signal.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011180
11181_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011183 $EGREP "stack_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011184 ac_cv_type_stack_t=yes
11185else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011186 ac_cv_type_stack_t=no
11187fi
11188rm -f conftest*
11189
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011190 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11191echo "${ECHO_T}$ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011192fi
11193if test $ac_cv_type_stack_t = no; then
11194 cat >> confdefs.h <<\EOF
11195#define stack_t struct sigaltstack
11196EOF
11197fi
11198
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011199echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11200echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11201cat >conftest.$ac_ext <<_ACEOF
11202/* confdefs.h. */
11203_ACEOF
11204cat confdefs.h >>conftest.$ac_ext
11205cat >>conftest.$ac_ext <<_ACEOF
11206/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011207
11208#include <sys/types.h>
11209#if STDC_HEADERS
11210#include <stdlib.h>
11211#include <stddef.h>
11212#endif
11213#include <signal.h>
11214#include "confdefs.h"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011215
11216int
11217main ()
11218{
11219stack_t sigstk; sigstk.ss_base = 0;
11220 ;
11221 return 0;
11222}
11223_ACEOF
11224rm -f conftest.$ac_objext
11225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226 (eval $ac_compile) 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -z "$ac_c_werror_flag"
11234 || test ! -s conftest.err'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest.$ac_objext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
11246 echo "$as_me:$LINENO: result: yes" >&5
11247echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011248#define HAVE_SS_BASE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011249_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011250
11251else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011252 echo "$as_me: failed program was:" >&5
11253sed 's/^/| /' conftest.$ac_ext >&5
11254
11255echo "$as_me:$LINENO: result: no" >&5
11256echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011257fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011259
11260olibs="$LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011261echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11262echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11263
Bram Moolenaar071d4272004-06-13 20:20:40 +000011264# Check whether --with-tlib or --without-tlib was given.
11265if test "${with_tlib+set}" = set; then
11266 withval="$with_tlib"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011267
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011268fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011269if test -n "$with_tlib"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011270 echo "$as_me:$LINENO: result: $with_tlib" >&5
11271echo "${ECHO_T}$with_tlib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011272 LIBS="$LIBS -l$with_tlib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011273 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11274echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11275 cat >conftest.$ac_ext <<_ACEOF
11276/* confdefs.h. */
11277_ACEOF
11278cat confdefs.h >>conftest.$ac_ext
11279cat >>conftest.$ac_ext <<_ACEOF
11280/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011281
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011282int
11283main ()
11284{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011285
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011286 ;
11287 return 0;
11288}
11289_ACEOF
11290rm -f conftest.$ac_objext conftest$ac_exeext
11291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>conftest.er1
11293 ac_status=$?
11294 grep -v '^ *+' conftest.er1 >conftest.err
11295 rm -f conftest.er1
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest$ac_exeext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 echo "$as_me:$LINENO: result: OK" >&5
11313echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011314else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011315 echo "$as_me: failed program was:" >&5
11316sed 's/^/| /' conftest.$ac_ext >&5
11317
11318{ { echo "$as_me:$LINENO: error: FAILED" >&5
11319echo "$as_me: error: FAILED" >&2;}
11320 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011321fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011322rm -f conftest.err conftest.$ac_objext \
11323 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011324 olibs="$LIBS"
11325else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011326 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11327echo "${ECHO_T}empty: automatic terminal library selection" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011328 case "`uname -s 2>/dev/null`" in
11329 OSF1) tlibs="ncurses curses termlib termcap";;
11330 *) tlibs="ncurses termlib termcap curses";;
11331 esac
11332 for libname in $tlibs; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011333
11334as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11335echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11336echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11337if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011339else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011340 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000011341LIBS="-l${libname} $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011342cat >conftest.$ac_ext <<_ACEOF
11343/* confdefs.h. */
11344_ACEOF
11345cat confdefs.h >>conftest.$ac_ext
11346cat >>conftest.$ac_ext <<_ACEOF
11347/* end confdefs.h. */
11348
Bram Moolenaar071d4272004-06-13 20:20:40 +000011349/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011350#ifdef __cplusplus
11351extern "C"
11352#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011353/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011354 builtin and then its argument prototype would still apply. */
11355char tgetent ();
11356int
11357main ()
11358{
11359tgetent ();
11360 ;
11361 return 0;
11362}
11363_ACEOF
11364rm -f conftest.$ac_objext conftest$ac_exeext
11365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11366 (eval $ac_link) 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
11373 { ac_try='test -z "$ac_c_werror_flag"
11374 || test ! -s conftest.err'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try='test -s conftest$ac_exeext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 eval "$as_ac_Lib=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011387else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011388 echo "$as_me: failed program was:" >&5
11389sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011390
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011391eval "$as_ac_Lib=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011392fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011393rm -f conftest.err conftest.$ac_objext \
11394 conftest$ac_exeext conftest.$ac_ext
11395LIBS=$ac_check_lib_save_LIBS
11396fi
11397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11398echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11399if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11400 cat >>confdefs.h <<_ACEOF
11401#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11402_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011403
11404 LIBS="-l${libname} $LIBS"
11405
Bram Moolenaar071d4272004-06-13 20:20:40 +000011406fi
11407
11408 if test "x$olibs" != "x$LIBS"; then
11409 if test "$cross_compiling" = yes; then
11410 res="FAIL"
11411else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011412 cat >conftest.$ac_ext <<_ACEOF
11413/* confdefs.h. */
11414_ACEOF
11415cat confdefs.h >>conftest.$ac_ext
11416cat >>conftest.$ac_ext <<_ACEOF
11417/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011418
11419#ifdef HAVE_TERMCAP_H
11420# include <termcap.h>
11421#endif
11422main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011423_ACEOF
11424rm -f conftest$ac_exeext
11425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11426 (eval $ac_link) 2>&5
11427 ac_status=$?
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011435 res="OK"
11436else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011437 echo "$as_me: program exited with status $ac_status" >&5
11438echo "$as_me: failed program was:" >&5
11439sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011440
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011441( exit $ac_status )
11442res="FAIL"
11443fi
11444rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11445fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011446 if test "$res" = "OK"; then
11447 break
11448 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011449 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11450echo "${ECHO_T}$libname library is not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011451 LIBS="$olibs"
11452 fi
11453 done
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011454 if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011455 echo "$as_me:$LINENO: result: no terminal library found" >&5
11456echo "${ECHO_T}no terminal library found" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011457 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011458fi
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011459
11460if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011461 echo "$as_me:$LINENO: checking for tgetent()" >&5
11462echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11463 cat >conftest.$ac_ext <<_ACEOF
11464/* confdefs.h. */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011469
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011470int
11471main ()
11472{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011473char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011474 ;
11475 return 0;
11476}
11477_ACEOF
11478rm -f conftest.$ac_objext conftest$ac_exeext
11479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11480 (eval $ac_link) 2>conftest.er1
11481 ac_status=$?
11482 grep -v '^ *+' conftest.er1 >conftest.err
11483 rm -f conftest.er1
11484 cat conftest.err >&5
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); } &&
11487 { ac_try='test -z "$ac_c_werror_flag"
11488 || test ! -s conftest.err'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11491 ac_status=$?
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; } &&
11494 { ac_try='test -s conftest$ac_exeext'
11495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11496 (eval $ac_try) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); }; }; then
11500 echo "$as_me:$LINENO: result: yes" >&5
11501echo "${ECHO_T}yes" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011502else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011503 echo "$as_me: failed program was:" >&5
11504sed 's/^/| /' conftest.$ac_ext >&5
11505
11506{ { echo "$as_me:$LINENO: error: NOT FOUND!
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011507 You need to install a terminal library; for example ncurses.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011508 Or specify the name of the library with --with-tlib." >&5
11509echo "$as_me: error: NOT FOUND!
11510 You need to install a terminal library; for example ncurses.
11511 Or specify the name of the library with --with-tlib." >&2;}
11512 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011513fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011514rm -f conftest.err conftest.$ac_objext \
11515 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011516fi
11517
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011518echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11519echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011520if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011521 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11522echo "$as_me: error: failed to compile test program." >&2;}
11523 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011524else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011525 cat >conftest.$ac_ext <<_ACEOF
11526/* confdefs.h. */
11527_ACEOF
11528cat confdefs.h >>conftest.$ac_ext
11529cat >>conftest.$ac_ext <<_ACEOF
11530/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011531
11532#ifdef HAVE_TERMCAP_H
11533# include <termcap.h>
11534#endif
11535main()
11536{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011537_ACEOF
11538rm -f conftest$ac_exeext
11539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11540 (eval $ac_link) 2>&5
11541 ac_status=$?
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11550echo "${ECHO_T}no -- we are in termcap land" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011551else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011552 echo "$as_me: program exited with status $ac_status" >&5
11553echo "$as_me: failed program was:" >&5
11554sed 's/^/| /' conftest.$ac_ext >&5
11555
11556( exit $ac_status )
11557echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11558echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011559#define TERMINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011560_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011561
11562fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011563rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011564fi
11565
Bram Moolenaar071d4272004-06-13 20:20:40 +000011566if test "x$olibs" != "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011567 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11568echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011569 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011570 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11571echo "$as_me: error: failed to compile test program." >&2;}
11572 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011573else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011574 cat >conftest.$ac_ext <<_ACEOF
11575/* confdefs.h. */
11576_ACEOF
11577cat confdefs.h >>conftest.$ac_ext
11578cat >>conftest.$ac_ext <<_ACEOF
11579/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011580
11581#ifdef HAVE_TERMCAP_H
11582# include <termcap.h>
11583#endif
11584main()
11585{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011586_ACEOF
11587rm -f conftest$ac_exeext
11588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11589 (eval $ac_link) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11594 (eval $ac_try) 2>&5
11595 ac_status=$?
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 echo "$as_me:$LINENO: result: zero" >&5
11599echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011600#define TGETENT_ZERO_ERR 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011601_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011602
11603else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011604 echo "$as_me: program exited with status $ac_status" >&5
11605echo "$as_me: failed program was:" >&5
11606sed 's/^/| /' conftest.$ac_ext >&5
11607
11608( exit $ac_status )
11609echo "$as_me:$LINENO: result: non-zero" >&5
11610echo "${ECHO_T}non-zero" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011611fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011612rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11613fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011614fi
11615
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011616echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11617echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11618cat >conftest.$ac_ext <<_ACEOF
11619/* confdefs.h. */
11620_ACEOF
11621cat confdefs.h >>conftest.$ac_ext
11622cat >>conftest.$ac_ext <<_ACEOF
11623/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011624
11625#ifdef HAVE_TERMCAP_H
11626# include <termcap.h>
11627#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011628
11629int
11630main ()
11631{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011632ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011633 ;
11634 return 0;
11635}
11636_ACEOF
11637rm -f conftest.$ac_objext conftest$ac_exeext
11638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>conftest.er1
11640 ac_status=$?
11641 grep -v '^ *+' conftest.er1 >conftest.err
11642 rm -f conftest.er1
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try='test -z "$ac_c_werror_flag"
11647 || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest$ac_exeext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 echo "$as_me:$LINENO: result: yes" >&5
11660echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011661#define HAVE_OSPEED 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011662_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011663
11664else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011665 echo "$as_me: failed program was:" >&5
11666sed 's/^/| /' conftest.$ac_ext >&5
11667
11668echo "$as_me:$LINENO: result: no" >&5
11669echo "${ECHO_T}no" >&6
11670 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11671echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11672 cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011678
11679#ifdef HAVE_TERMCAP_H
11680# include <termcap.h>
11681#endif
11682extern short ospeed;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011683
11684int
11685main ()
11686{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011687ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011688 ;
11689 return 0;
11690}
11691_ACEOF
11692rm -f conftest.$ac_objext conftest$ac_exeext
11693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11694 (eval $ac_link) 2>conftest.er1
11695 ac_status=$?
11696 grep -v '^ *+' conftest.er1 >conftest.err
11697 rm -f conftest.er1
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } &&
11701 { ac_try='test -z "$ac_c_werror_flag"
11702 || test ! -s conftest.err'
11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11705 ac_status=$?
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; } &&
11708 { ac_try='test -s conftest$ac_exeext'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 echo "$as_me:$LINENO: result: yes" >&5
11715echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011716#define OSPEED_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011717_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011718
11719else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011720 echo "$as_me: failed program was:" >&5
11721sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011722
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011723echo "$as_me:$LINENO: result: no" >&5
11724echo "${ECHO_T}no" >&6
11725fi
11726rm -f conftest.err conftest.$ac_objext \
11727 conftest$ac_exeext conftest.$ac_ext
11728
11729fi
11730rm -f conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732
11733echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11734echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11735cat >conftest.$ac_ext <<_ACEOF
11736/* confdefs.h. */
11737_ACEOF
11738cat confdefs.h >>conftest.$ac_ext
11739cat >>conftest.$ac_ext <<_ACEOF
11740/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011741
11742#ifdef HAVE_TERMCAP_H
11743# include <termcap.h>
11744#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011745
11746int
11747main ()
11748{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011749if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011750 ;
11751 return 0;
11752}
11753_ACEOF
11754rm -f conftest.$ac_objext conftest$ac_exeext
11755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11756 (eval $ac_link) 2>conftest.er1
11757 ac_status=$?
11758 grep -v '^ *+' conftest.er1 >conftest.err
11759 rm -f conftest.er1
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
11763 { ac_try='test -z "$ac_c_werror_flag"
11764 || test ! -s conftest.err'
11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11767 ac_status=$?
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; } &&
11770 { ac_try='test -s conftest$ac_exeext'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
11776 echo "$as_me:$LINENO: result: yes" >&5
11777echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011778#define HAVE_UP_BC_PC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011779_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011780
11781else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011782 echo "$as_me: failed program was:" >&5
11783sed 's/^/| /' conftest.$ac_ext >&5
11784
11785echo "$as_me:$LINENO: result: no" >&5
11786echo "${ECHO_T}no" >&6
11787 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
11788echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
11789 cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011795
11796#ifdef HAVE_TERMCAP_H
11797# include <termcap.h>
11798#endif
11799extern char *UP, *BC, PC;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011800
11801int
11802main ()
11803{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011804if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011805 ;
11806 return 0;
11807}
11808_ACEOF
11809rm -f conftest.$ac_objext conftest$ac_exeext
11810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811 (eval $ac_link) 2>conftest.er1
11812 ac_status=$?
11813 grep -v '^ *+' conftest.er1 >conftest.err
11814 rm -f conftest.er1
11815 cat conftest.err >&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } &&
11818 { ac_try='test -z "$ac_c_werror_flag"
11819 || test ! -s conftest.err'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try='test -s conftest$ac_exeext'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11828 ac_status=$?
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 echo "$as_me:$LINENO: result: yes" >&5
11832echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011833#define UP_BC_PC_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011834_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011835
11836else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011837 echo "$as_me: failed program was:" >&5
11838sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011839
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011840echo "$as_me:$LINENO: result: no" >&5
11841echo "${ECHO_T}no" >&6
11842fi
11843rm -f conftest.err conftest.$ac_objext \
11844 conftest$ac_exeext conftest.$ac_ext
11845
11846fi
11847rm -f conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11849
11850echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
11851echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
11852cat >conftest.$ac_ext <<_ACEOF
11853/* confdefs.h. */
11854_ACEOF
11855cat confdefs.h >>conftest.$ac_ext
11856cat >>conftest.$ac_ext <<_ACEOF
11857/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011858
11859#ifdef HAVE_TERMCAP_H
11860# include <termcap.h>
11861#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011862
11863int
11864main ()
11865{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011866extern int xx(); tputs("test", 1, (outfuntype)xx)
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011867 ;
11868 return 0;
11869}
11870_ACEOF
11871rm -f conftest.$ac_objext
11872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11873 (eval $ac_compile) 2>conftest.er1
11874 ac_status=$?
11875 grep -v '^ *+' conftest.er1 >conftest.err
11876 rm -f conftest.er1
11877 cat conftest.err >&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } &&
11880 { ac_try='test -z "$ac_c_werror_flag"
11881 || test ! -s conftest.err'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; } &&
11887 { ac_try='test -s conftest.$ac_objext'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; }; then
11893 echo "$as_me:$LINENO: result: yes" >&5
11894echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011895#define HAVE_OUTFUNTYPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011896_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011897
11898else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011899 echo "$as_me: failed program was:" >&5
11900sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011901
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011902echo "$as_me:$LINENO: result: no" >&5
11903echo "${ECHO_T}no" >&6
11904fi
11905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11906
11907echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
11908echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
11909cat >conftest.$ac_ext <<_ACEOF
11910/* confdefs.h. */
11911_ACEOF
11912cat confdefs.h >>conftest.$ac_ext
11913cat >>conftest.$ac_ext <<_ACEOF
11914/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011915
11916#include <sys/types.h>
11917#include <sys/time.h>
11918#include <sys/select.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011919int
11920main ()
11921{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011922
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011923 ;
11924 return 0;
11925}
11926_ACEOF
11927rm -f conftest.$ac_objext
11928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11929 (eval $ac_compile) 2>conftest.er1
11930 ac_status=$?
11931 grep -v '^ *+' conftest.er1 >conftest.err
11932 rm -f conftest.er1
11933 cat conftest.err >&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -z "$ac_c_werror_flag"
11937 || test ! -s conftest.err'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest.$ac_objext'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 echo "$as_me:$LINENO: result: yes" >&5
11950echo "${ECHO_T}yes" >&6
11951 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011952#define SYS_SELECT_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011953_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011954
11955else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011956 echo "$as_me: failed program was:" >&5
11957sed 's/^/| /' conftest.$ac_ext >&5
11958
11959echo "$as_me:$LINENO: result: no" >&5
11960echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011961fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011963
11964
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011965echo "$as_me:$LINENO: checking for /dev/ptc" >&5
11966echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011967if test -r /dev/ptc; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011968 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011969#define HAVE_DEV_PTC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011970_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011971
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011972 echo "$as_me:$LINENO: result: yes" >&5
11973echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011974else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011975 echo "$as_me:$LINENO: result: no" >&5
11976echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011977fi
11978
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011979echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
11980echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011981if test -c /dev/ptmx ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011982 cat >conftest.$ac_ext <<_ACEOF
11983/* confdefs.h. */
11984_ACEOF
11985cat confdefs.h >>conftest.$ac_ext
11986cat >>conftest.$ac_ext <<_ACEOF
11987/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011988
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011989int
11990main ()
11991{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011992ptsname(0);grantpt(0);unlockpt(0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011993 ;
11994 return 0;
11995}
11996_ACEOF
11997rm -f conftest.$ac_objext conftest$ac_exeext
11998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11999 (eval $ac_link) 2>conftest.er1
12000 ac_status=$?
12001 grep -v '^ *+' conftest.er1 >conftest.err
12002 rm -f conftest.er1
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_c_werror_flag"
12007 || test ! -s conftest.err'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; } &&
12013 { ac_try='test -s conftest$ac_exeext'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; }; then
12019 echo "$as_me:$LINENO: result: yes" >&5
12020echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012021#define HAVE_SVR4_PTYS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012022_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012023
12024else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012025 echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5
12027
12028echo "$as_me:$LINENO: result: no" >&5
12029echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012030fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012031rm -f conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012033else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012034 echo "$as_me:$LINENO: result: no" >&5
12035echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012036fi
12037
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012038echo "$as_me:$LINENO: checking for ptyranges" >&5
12039echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012040if test -d /dev/ptym ; then
12041 pdir='/dev/ptym'
12042else
12043 pdir='/dev'
12044fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012045cat >conftest.$ac_ext <<_ACEOF
12046/* confdefs.h. */
12047_ACEOF
12048cat confdefs.h >>conftest.$ac_ext
12049cat >>conftest.$ac_ext <<_ACEOF
12050/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012051#ifdef M_UNIX
12052 yes;
12053#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012054
12055_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012057 $EGREP "yes" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012058 ptys=`echo /dev/ptyp??`
12059else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012060 ptys=`echo $pdir/pty??`
12061fi
12062rm -f conftest*
12063
12064if test "$ptys" != "$pdir/pty??" ; then
12065 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12066 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012067 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012068#define PTYRANGE0 "$p0"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012069_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012070
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012071 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012072#define PTYRANGE1 "$p1"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012073_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012074
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012075 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12076echo "${ECHO_T}$p0 / $p1" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012077else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012078 echo "$as_me:$LINENO: result: don't know" >&5
12079echo "${ECHO_T}don't know" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012080fi
12081
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012082echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12083echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012084rm -f conftest_grp
12085if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012086 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12087echo "$as_me: error: failed to compile test program" >&2;}
12088 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012089else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012090 cat >conftest.$ac_ext <<_ACEOF
12091/* confdefs.h. */
12092_ACEOF
12093cat confdefs.h >>conftest.$ac_ext
12094cat >>conftest.$ac_ext <<_ACEOF
12095/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012096
12097#include <sys/types.h>
12098#include <sys/stat.h>
12099#include <stdio.h>
12100main()
12101{
12102 struct stat sb;
12103 char *x,*ttyname();
12104 int om, m;
12105 FILE *fp;
12106
12107 if (!(x = ttyname(0))) exit(1);
12108 if (stat(x, &sb)) exit(1);
12109 om = sb.st_mode;
12110 if (om & 002) exit(0);
12111 m = system("mesg y");
12112 if (m == -1 || m == 127) exit(1);
12113 if (stat(x, &sb)) exit(1);
12114 m = sb.st_mode;
12115 if (chmod(x, om)) exit(1);
12116 if (m & 002) exit(0);
12117 if (sb.st_gid == getgid()) exit(1);
12118 if (!(fp=fopen("conftest_grp", "w")))
12119 exit(1);
12120 fprintf(fp, "%d\n", sb.st_gid);
12121 fclose(fp);
12122 exit(0);
12123}
12124
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012125_ACEOF
12126rm -f conftest$ac_exeext
12127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128 (eval $ac_link) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137
Bram Moolenaar071d4272004-06-13 20:20:40 +000012138 if test -f conftest_grp; then
12139 ptygrp=`cat conftest_grp`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012140 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12141echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12142 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012143#define PTYMODE 0620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012144_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012145
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012146 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012147#define PTYGROUP $ptygrp
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012148_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012149
12150 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012151 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12152echo "${ECHO_T}ptys are world accessable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012153 fi
12154
12155else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012156 echo "$as_me: program exited with status $ac_status" >&5
12157echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012159
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012160( exit $ac_status )
12161echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12162echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12163fi
12164rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12165fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012166rm -f conftest_grp
12167
12168
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012169echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12170echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12171if test "${ac_cv_type_signal+set}" = set; then
12172 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012173else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012174 cat >conftest.$ac_ext <<_ACEOF
12175/* confdefs.h. */
12176_ACEOF
12177cat confdefs.h >>conftest.$ac_ext
12178cat >>conftest.$ac_ext <<_ACEOF
12179/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012180#include <sys/types.h>
12181#include <signal.h>
12182#ifdef signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012183# undef signal
Bram Moolenaar071d4272004-06-13 20:20:40 +000012184#endif
12185#ifdef __cplusplus
12186extern "C" void (*signal (int, void (*)(int)))(int);
12187#else
12188void (*signal ()) ();
12189#endif
12190
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012191int
12192main ()
12193{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012194int i;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012195 ;
12196 return 0;
12197}
12198_ACEOF
12199rm -f conftest.$ac_objext
12200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12201 (eval $ac_compile) 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } &&
12208 { ac_try='test -z "$ac_c_werror_flag"
12209 || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012221 ac_cv_type_signal=void
12222else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012223 echo "$as_me: failed program was:" >&5
12224sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012225
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012226ac_cv_type_signal=int
12227fi
12228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229fi
12230echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12231echo "${ECHO_T}$ac_cv_type_signal" >&6
12232
12233cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012234#define RETSIGTYPE $ac_cv_type_signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012235_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012236
12237
12238
12239if test $ac_cv_type_signal = void; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012240 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012241#define SIGRETURN return
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012242_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012243
12244else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012245 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012246#define SIGRETURN return 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012247_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012248
12249fi
12250
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012251echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12252echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12253cat >conftest.$ac_ext <<_ACEOF
12254/* confdefs.h. */
12255_ACEOF
12256cat confdefs.h >>conftest.$ac_ext
12257cat >>conftest.$ac_ext <<_ACEOF
12258/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012259
12260#include <signal.h>
12261test_sig()
12262{
12263 struct sigcontext *scont;
12264 scont = (struct sigcontext *)0;
12265 return 1;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012266}
12267int
12268main ()
12269{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012270
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012271 ;
12272 return 0;
12273}
12274_ACEOF
12275rm -f conftest.$ac_objext
12276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277 (eval $ac_compile) 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try='test -z "$ac_c_werror_flag"
12285 || test ! -s conftest.err'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; } &&
12291 { ac_try='test -s conftest.$ac_objext'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; }; then
12297 echo "$as_me:$LINENO: result: yes" >&5
12298echo "${ECHO_T}yes" >&6
12299 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012300#define HAVE_SIGCONTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012301_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012302
12303else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012304 echo "$as_me: failed program was:" >&5
12305sed 's/^/| /' conftest.$ac_ext >&5
12306
12307echo "$as_me:$LINENO: result: no" >&5
12308echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012309fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012311
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012312echo "$as_me:$LINENO: checking getcwd implementation" >&5
12313echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012314if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012315 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12316echo "$as_me: error: failed to compile test program" >&2;}
12317 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012318else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012319 cat >conftest.$ac_ext <<_ACEOF
12320/* confdefs.h. */
12321_ACEOF
12322cat confdefs.h >>conftest.$ac_ext
12323cat >>conftest.$ac_ext <<_ACEOF
12324/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012325
12326char *dagger[] = { "IFS=pwd", 0 };
12327main()
12328{
12329 char buffer[500];
12330 extern char **environ;
12331 environ = dagger;
12332 return getcwd(buffer, 500) ? 0 : 1;
12333}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012334_ACEOF
12335rm -f conftest$ac_exeext
12336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12337 (eval $ac_link) 2>&5
12338 ac_status=$?
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12342 (eval $ac_try) 2>&5
12343 ac_status=$?
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); }; }; then
12346 echo "$as_me:$LINENO: result: it is usable" >&5
12347echo "${ECHO_T}it is usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012348else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012349 echo "$as_me: program exited with status $ac_status" >&5
12350echo "$as_me: failed program was:" >&5
12351sed 's/^/| /' conftest.$ac_ext >&5
12352
12353( exit $ac_status )
12354echo "$as_me:$LINENO: result: it stinks" >&5
12355echo "${ECHO_T}it stinks" >&6
12356 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012357#define BAD_GETCWD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012358_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012359
12360fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012361rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012362fi
12363
12364
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
Bram Moolenaar071d4272004-06-13 20:20:40 +000012410for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12411 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12412 memset nanosleep opendir putenv qsort readlink select setenv \
12413 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000012414 sigvec strcasecmp strerror strftime stricmp strncasecmp \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000012415 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12416 usleep utime utimes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012417do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12419echo "$as_me:$LINENO: checking for $ac_func" >&5
12420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12421if eval "test \"\${$as_ac_var+set}\" = set"; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012423else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012424 cat >conftest.$ac_ext <<_ACEOF
12425/* confdefs.h. */
12426_ACEOF
12427cat confdefs.h >>conftest.$ac_ext
12428cat >>conftest.$ac_ext <<_ACEOF
12429/* end confdefs.h. */
12430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12432#define $ac_func innocuous_$ac_func
12433
Bram Moolenaar071d4272004-06-13 20:20:40 +000012434/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012435 which can conflict with char $ac_func (); below.
12436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12437 <limits.h> exists even on freestanding compilers. */
12438
12439#ifdef __STDC__
12440# include <limits.h>
12441#else
12442# include <assert.h>
12443#endif
12444
12445#undef $ac_func
12446
Bram Moolenaar071d4272004-06-13 20:20:40 +000012447/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012448#ifdef __cplusplus
12449extern "C"
12450{
12451#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012452/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012453 builtin and then its argument prototype would still apply. */
12454char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000012455/* The GNU C library defines this for functions which it implements
12456 to always fail with ENOSYS. Some functions are actually named
12457 something starting with __ and the normal name is an alias. */
12458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12459choke me
12460#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012461char (*f) () = $ac_func;
12462#endif
12463#ifdef __cplusplus
12464}
Bram Moolenaar071d4272004-06-13 20:20:40 +000012465#endif
12466
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012467int
12468main ()
12469{
12470return f != $ac_func;
12471 ;
12472 return 0;
12473}
12474_ACEOF
12475rm -f conftest.$ac_objext conftest$ac_exeext
12476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477 (eval $ac_link) 2>conftest.er1
12478 ac_status=$?
12479 grep -v '^ *+' conftest.er1 >conftest.err
12480 rm -f conftest.er1
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } &&
12484 { ac_try='test -z "$ac_c_werror_flag"
12485 || test ! -s conftest.err'
12486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; } &&
12491 { ac_try='test -s conftest$ac_exeext'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; }; then
12497 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012498else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012499 echo "$as_me: failed program was:" >&5
12500sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012501
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012502eval "$as_ac_var=no"
12503fi
12504rm -f conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12506fi
12507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12509if test `eval echo '${'$as_ac_var'}'` = yes; then
12510 cat >>confdefs.h <<_ACEOF
12511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12512_ACEOF
12513
Bram Moolenaar071d4272004-06-13 20:20:40 +000012514fi
12515done
12516
12517
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012518echo "$as_me:$LINENO: checking for st_blksize" >&5
12519echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12520cat >conftest.$ac_ext <<_ACEOF
12521/* confdefs.h. */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
12525/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012526#include <sys/types.h>
12527#include <sys/stat.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012528int
12529main ()
12530{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012531 struct stat st;
12532 int n;
12533
12534 stat("/", &st);
12535 n = (int)st.st_blksize;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012536 ;
12537 return 0;
12538}
12539_ACEOF
12540rm -f conftest.$ac_objext
12541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542 (eval $ac_compile) 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 echo "$as_me:$LINENO: result: yes" >&5
12563echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012564#define HAVE_ST_BLKSIZE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012565_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012566
12567else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012568 echo "$as_me: failed program was:" >&5
12569sed 's/^/| /' conftest.$ac_ext >&5
12570
12571echo "$as_me:$LINENO: result: no" >&5
12572echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012573fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012575
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012576echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12577echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012578if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012579 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12580echo "$as_me: error: failed to compile test program" >&2;}
12581 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012582else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012583 cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012589#include <sys/types.h>
12590#include <sys/stat.h>
12591main() {struct stat st; exit(stat("configure/", &st) != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012592_ACEOF
12593rm -f conftest$ac_exeext
12594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595 (eval $ac_link) 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; }; then
12604 echo "$as_me:$LINENO: result: yes" >&5
12605echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012606#define STAT_IGNORES_SLASH 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012607_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012608
12609else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012610 echo "$as_me: program exited with status $ac_status" >&5
12611echo "$as_me: failed program was:" >&5
12612sed 's/^/| /' conftest.$ac_ext >&5
12613
12614( exit $ac_status )
12615echo "$as_me:$LINENO: result: no" >&5
12616echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012617fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012618rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012619fi
12620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012621echo "$as_me:$LINENO: checking for iconv_open()" >&5
12622echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012623save_LIBS="$LIBS"
12624LIBS="$LIBS -liconv"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012625cat >conftest.$ac_ext <<_ACEOF
12626/* confdefs.h. */
12627_ACEOF
12628cat confdefs.h >>conftest.$ac_ext
12629cat >>conftest.$ac_ext <<_ACEOF
12630/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012631
12632#ifdef HAVE_ICONV_H
12633# include <iconv.h>
12634#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012635
12636int
12637main ()
12638{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012639iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012640 ;
12641 return 0;
12642}
12643_ACEOF
12644rm -f conftest.$ac_objext conftest$ac_exeext
12645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12646 (eval $ac_link) 2>conftest.er1
12647 ac_status=$?
12648 grep -v '^ *+' conftest.er1 >conftest.err
12649 rm -f conftest.er1
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } &&
12653 { ac_try='test -z "$ac_c_werror_flag"
12654 || test ! -s conftest.err'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; } &&
12660 { ac_try='test -s conftest$ac_exeext'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; }; then
12666 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12667echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012668#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012669_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012670
12671else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012672 echo "$as_me: failed program was:" >&5
12673sed 's/^/| /' conftest.$ac_ext >&5
12674
12675LIBS="$save_LIBS"
12676 cat >conftest.$ac_ext <<_ACEOF
12677/* confdefs.h. */
12678_ACEOF
12679cat confdefs.h >>conftest.$ac_ext
12680cat >>conftest.$ac_ext <<_ACEOF
12681/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012682
12683#ifdef HAVE_ICONV_H
12684# include <iconv.h>
12685#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012686
12687int
12688main ()
12689{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012690iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012691 ;
12692 return 0;
12693}
12694_ACEOF
12695rm -f conftest.$ac_objext conftest$ac_exeext
12696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12697 (eval $ac_link) 2>conftest.er1
12698 ac_status=$?
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try='test -z "$ac_c_werror_flag"
12705 || test ! -s conftest.err'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest$ac_exeext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 echo "$as_me:$LINENO: result: yes" >&5
12718echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012719#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012720_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012721
12722else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012723 echo "$as_me: failed program was:" >&5
12724sed 's/^/| /' conftest.$ac_ext >&5
12725
12726echo "$as_me:$LINENO: result: no" >&5
12727echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012728fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012729rm -f conftest.err conftest.$ac_objext \
12730 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012731fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012732rm -f conftest.err conftest.$ac_objext \
12733 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012734
12735
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012736echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12737echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12738cat >conftest.$ac_ext <<_ACEOF
12739/* confdefs.h. */
12740_ACEOF
12741cat confdefs.h >>conftest.$ac_ext
12742cat >>conftest.$ac_ext <<_ACEOF
12743/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012744
12745#ifdef HAVE_LANGINFO_H
12746# include <langinfo.h>
12747#endif
12748
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012749int
12750main ()
12751{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012752char *cs = nl_langinfo(CODESET);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012753 ;
12754 return 0;
12755}
12756_ACEOF
12757rm -f conftest.$ac_objext conftest$ac_exeext
12758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12759 (eval $ac_link) 2>conftest.er1
12760 ac_status=$?
12761 grep -v '^ *+' conftest.er1 >conftest.err
12762 rm -f conftest.er1
12763 cat conftest.err >&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } &&
12766 { ac_try='test -z "$ac_c_werror_flag"
12767 || test ! -s conftest.err'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; } &&
12773 { ac_try='test -s conftest$ac_exeext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
12779 echo "$as_me:$LINENO: result: yes" >&5
12780echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012781#define HAVE_NL_LANGINFO_CODESET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012782_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012783
12784else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012785 echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012787
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012788echo "$as_me:$LINENO: result: no" >&5
12789echo "${ECHO_T}no" >&6
12790fi
12791rm -f conftest.err conftest.$ac_objext \
12792 conftest$ac_exeext conftest.$ac_ext
12793
12794echo "$as_me:$LINENO: checking --disable-acl argument" >&5
12795echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012796# Check whether --enable-acl or --disable-acl was given.
12797if test "${enable_acl+set}" = set; then
12798 enableval="$enable_acl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012799
Bram Moolenaar071d4272004-06-13 20:20:40 +000012800else
12801 enable_acl="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012802fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000012803if test "$enable_acl" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012804echo "$as_me:$LINENO: result: no" >&5
12805echo "${ECHO_T}no" >&6
12806echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
12807echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
12808if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012810else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012811 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000012812LIBS="-lposix1e $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012813cat >conftest.$ac_ext <<_ACEOF
12814/* confdefs.h. */
12815_ACEOF
12816cat confdefs.h >>conftest.$ac_ext
12817cat >>conftest.$ac_ext <<_ACEOF
12818/* end confdefs.h. */
12819
Bram Moolenaar071d4272004-06-13 20:20:40 +000012820/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012821#ifdef __cplusplus
12822extern "C"
12823#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012824/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012825 builtin and then its argument prototype would still apply. */
12826char acl_get_file ();
12827int
12828main ()
12829{
12830acl_get_file ();
12831 ;
12832 return 0;
12833}
12834_ACEOF
12835rm -f conftest.$ac_objext conftest$ac_exeext
12836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837 (eval $ac_link) 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -z "$ac_c_werror_flag"
12845 || test ! -s conftest.err'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_lib_posix1e_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012858else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012859 echo "$as_me: failed program was:" >&5
12860sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012861
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012862ac_cv_lib_posix1e_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000012863fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012864rm -f conftest.err conftest.$ac_objext \
12865 conftest$ac_exeext conftest.$ac_ext
12866LIBS=$ac_check_lib_save_LIBS
12867fi
12868echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
12869echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
12870if test $ac_cv_lib_posix1e_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012871 LIBS="$LIBS -lposix1e"
12872else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012873 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
12874echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
12875if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012877else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012878 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000012879LIBS="-lacl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012880cat >conftest.$ac_ext <<_ACEOF
12881/* confdefs.h. */
12882_ACEOF
12883cat confdefs.h >>conftest.$ac_ext
12884cat >>conftest.$ac_ext <<_ACEOF
12885/* end confdefs.h. */
12886
Bram Moolenaar071d4272004-06-13 20:20:40 +000012887/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012888#ifdef __cplusplus
12889extern "C"
12890#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012891/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012892 builtin and then its argument prototype would still apply. */
12893char acl_get_file ();
12894int
12895main ()
12896{
12897acl_get_file ();
12898 ;
12899 return 0;
12900}
12901_ACEOF
12902rm -f conftest.$ac_objext conftest$ac_exeext
12903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12904 (eval $ac_link) 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -z "$ac_c_werror_flag"
12912 || test ! -s conftest.err'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; } &&
12918 { ac_try='test -s conftest$ac_exeext'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12921 ac_status=$?
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12924 ac_cv_lib_acl_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012925else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012926 echo "$as_me: failed program was:" >&5
12927sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012928
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012929ac_cv_lib_acl_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000012930fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012931rm -f conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933LIBS=$ac_check_lib_save_LIBS
12934fi
12935echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
12936echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
12937if test $ac_cv_lib_acl_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012938 LIBS="$LIBS -lacl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012939 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
12940echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
12941if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012943else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012944 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000012945LIBS="-lattr $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012946cat >conftest.$ac_ext <<_ACEOF
12947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
12952
Bram Moolenaar071d4272004-06-13 20:20:40 +000012953/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012954#ifdef __cplusplus
12955extern "C"
12956#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012957/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012958 builtin and then its argument prototype would still apply. */
12959char fgetxattr ();
12960int
12961main ()
12962{
12963fgetxattr ();
12964 ;
12965 return 0;
12966}
12967_ACEOF
12968rm -f conftest.$ac_objext conftest$ac_exeext
12969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12970 (eval $ac_link) 2>conftest.er1
12971 ac_status=$?
12972 grep -v '^ *+' conftest.er1 >conftest.err
12973 rm -f conftest.er1
12974 cat conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); } &&
12977 { ac_try='test -z "$ac_c_werror_flag"
12978 || test ! -s conftest.err'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest$ac_exeext'
12985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12986 (eval $ac_try) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; }; then
12990 ac_cv_lib_attr_fgetxattr=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012991else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012992 echo "$as_me: failed program was:" >&5
12993sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012994
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012995ac_cv_lib_attr_fgetxattr=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000012996fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012997rm -f conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
12999LIBS=$ac_check_lib_save_LIBS
13000fi
13001echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13002echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13003if test $ac_cv_lib_attr_fgetxattr = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013004 LIBS="$LIBS -lattr"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013005fi
13006
Bram Moolenaar071d4272004-06-13 20:20:40 +000013007fi
13008
13009fi
13010
13011
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013012echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13013echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13014cat >conftest.$ac_ext <<_ACEOF
13015/* confdefs.h. */
13016_ACEOF
13017cat confdefs.h >>conftest.$ac_ext
13018cat >>conftest.$ac_ext <<_ACEOF
13019/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013020
13021#include <sys/types.h>
13022#ifdef HAVE_SYS_ACL_H
13023# include <sys/acl.h>
13024#endif
13025acl_t acl;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013026int
13027main ()
13028{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013029acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13030 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13031 acl_free(acl);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013032 ;
13033 return 0;
13034}
13035_ACEOF
13036rm -f conftest.$ac_objext conftest$ac_exeext
13037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13038 (eval $ac_link) 2>conftest.er1
13039 ac_status=$?
13040 grep -v '^ *+' conftest.er1 >conftest.err
13041 rm -f conftest.er1
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -z "$ac_c_werror_flag"
13046 || test ! -s conftest.err'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest$ac_exeext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 echo "$as_me:$LINENO: result: yes" >&5
13059echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013060#define HAVE_POSIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013061_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013062
13063else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013064 echo "$as_me: failed program was:" >&5
13065sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013066
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013067echo "$as_me:$LINENO: result: no" >&5
13068echo "${ECHO_T}no" >&6
13069fi
13070rm -f conftest.err conftest.$ac_objext \
13071 conftest$ac_exeext conftest.$ac_ext
13072
13073echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13074echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13075cat >conftest.$ac_ext <<_ACEOF
13076/* confdefs.h. */
13077_ACEOF
13078cat confdefs.h >>conftest.$ac_ext
13079cat >>conftest.$ac_ext <<_ACEOF
13080/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013081
13082#ifdef HAVE_SYS_ACL_H
13083# include <sys/acl.h>
13084#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013085int
13086main ()
13087{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013088acl("foo", GETACLCNT, 0, NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013089
13090 ;
13091 return 0;
13092}
13093_ACEOF
13094rm -f conftest.$ac_objext conftest$ac_exeext
13095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13096 (eval $ac_link) 2>conftest.er1
13097 ac_status=$?
13098 grep -v '^ *+' conftest.er1 >conftest.err
13099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
13103 { ac_try='test -z "$ac_c_werror_flag"
13104 || test ! -s conftest.err'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13107 ac_status=$?
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; } &&
13110 { ac_try='test -s conftest$ac_exeext'
13111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13112 (eval $ac_try) 2>&5
13113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; }; then
13116 echo "$as_me:$LINENO: result: yes" >&5
13117echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013118#define HAVE_SOLARIS_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013119_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013120
13121else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013122 echo "$as_me: failed program was:" >&5
13123sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013124
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013125echo "$as_me:$LINENO: result: no" >&5
13126echo "${ECHO_T}no" >&6
13127fi
13128rm -f conftest.err conftest.$ac_objext \
13129 conftest$ac_exeext conftest.$ac_ext
13130
13131echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13132echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13133cat >conftest.$ac_ext <<_ACEOF
13134/* confdefs.h. */
13135_ACEOF
13136cat confdefs.h >>conftest.$ac_ext
13137cat >>conftest.$ac_ext <<_ACEOF
13138/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013139
13140#ifdef HAVE_SYS_ACL_H
13141# include <sys/acl.h>
13142#endif
13143#ifdef HAVE_SYS_ACCESS_H
13144# include <sys/access.h>
13145#endif
13146#define _ALL_SOURCE
13147
13148#include <sys/stat.h>
13149
13150int aclsize;
13151struct acl *aclent;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013152int
13153main ()
13154{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013155aclsize = sizeof(struct acl);
13156 aclent = (void *)malloc(aclsize);
13157 statacl("foo", STX_NORMAL, aclent, aclsize);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013158
13159 ;
13160 return 0;
13161}
13162_ACEOF
13163rm -f conftest.$ac_objext conftest$ac_exeext
13164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165 (eval $ac_link) 2>conftest.er1
13166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try='test -z "$ac_c_werror_flag"
13173 || test ! -s conftest.err'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; } &&
13179 { ac_try='test -s conftest$ac_exeext'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13185 echo "$as_me:$LINENO: result: yes" >&5
13186echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013187#define HAVE_AIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013188_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013189
13190else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013191 echo "$as_me: failed program was:" >&5
13192sed 's/^/| /' conftest.$ac_ext >&5
13193
13194echo "$as_me:$LINENO: result: no" >&5
13195echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013196fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013197rm -f conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013199else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013200 echo "$as_me:$LINENO: result: yes" >&5
13201echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013202fi
13203
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013204echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13205echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013206# Check whether --enable-gpm or --disable-gpm was given.
13207if test "${enable_gpm+set}" = set; then
13208 enableval="$enable_gpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013209
Bram Moolenaar071d4272004-06-13 20:20:40 +000013210else
13211 enable_gpm="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013212fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013213
13214if test "$enable_gpm" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013215 echo "$as_me:$LINENO: result: no" >&5
13216echo "${ECHO_T}no" >&6
13217 echo "$as_me:$LINENO: checking for gpm" >&5
13218echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13219if test "${vi_cv_have_gpm+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013221else
13222 olibs="$LIBS" ; LIBS="-lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013223 cat >conftest.$ac_ext <<_ACEOF
13224/* confdefs.h. */
13225_ACEOF
13226cat confdefs.h >>conftest.$ac_ext
13227cat >>conftest.$ac_ext <<_ACEOF
13228/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013229#include <gpm.h>
13230 #include <linux/keyboard.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013231int
13232main ()
13233{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013234Gpm_GetLibVersion(NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013235 ;
13236 return 0;
13237}
13238_ACEOF
13239rm -f conftest.$ac_objext conftest$ac_exeext
13240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13241 (eval $ac_link) 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -z "$ac_c_werror_flag"
13249 || test ! -s conftest.err'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13252 ac_status=$?
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013261 vi_cv_have_gpm=yes
13262else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013263 echo "$as_me: failed program was:" >&5
13264sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013265
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013266vi_cv_have_gpm=no
13267fi
13268rm -f conftest.err conftest.$ac_objext \
13269 conftest$ac_exeext conftest.$ac_ext
13270 LIBS="$olibs"
13271
13272fi
13273echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13274echo "${ECHO_T}$vi_cv_have_gpm" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013275 if test $vi_cv_have_gpm = yes; then
13276 LIBS="$LIBS -lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013277 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013278#define HAVE_GPM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013279_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013280
13281 fi
13282else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013283 echo "$as_me:$LINENO: result: yes" >&5
13284echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013285fi
13286
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013287echo "$as_me:$LINENO: checking for rename" >&5
13288echo $ECHO_N "checking for rename... $ECHO_C" >&6
13289cat >conftest.$ac_ext <<_ACEOF
13290/* confdefs.h. */
13291_ACEOF
13292cat confdefs.h >>conftest.$ac_ext
13293cat >>conftest.$ac_ext <<_ACEOF
13294/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013295#include <stdio.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013296int
13297main ()
13298{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013299rename("this", "that")
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013300 ;
13301 return 0;
13302}
13303_ACEOF
13304rm -f conftest.$ac_objext conftest$ac_exeext
13305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13306 (eval $ac_link) 2>conftest.er1
13307 ac_status=$?
13308 grep -v '^ *+' conftest.er1 >conftest.err
13309 rm -f conftest.er1
13310 cat conftest.err >&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
13313 { ac_try='test -z "$ac_c_werror_flag"
13314 || test ! -s conftest.err'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; } &&
13320 { ac_try='test -s conftest$ac_exeext'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; }; then
13326 echo "$as_me:$LINENO: result: yes" >&5
13327echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013328#define HAVE_RENAME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013329_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013330
13331else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013332 echo "$as_me: failed program was:" >&5
13333sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013334
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013335echo "$as_me:$LINENO: result: no" >&5
13336echo "${ECHO_T}no" >&6
13337fi
13338rm -f conftest.err conftest.$ac_objext \
13339 conftest$ac_exeext conftest.$ac_ext
13340
13341echo "$as_me:$LINENO: checking for sysctl" >&5
13342echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13343cat >conftest.$ac_ext <<_ACEOF
13344/* confdefs.h. */
13345_ACEOF
13346cat confdefs.h >>conftest.$ac_ext
13347cat >>conftest.$ac_ext <<_ACEOF
13348/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013349#include <sys/types.h>
13350#include <sys/sysctl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013351int
13352main ()
13353{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013354 int mib[2], r;
13355 size_t len;
13356
13357 mib[0] = CTL_HW;
13358 mib[1] = HW_USERMEM;
13359 len = sizeof(r);
13360 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013361
13362 ;
13363 return 0;
13364}
13365_ACEOF
13366rm -f conftest.$ac_objext
13367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13368 (eval $ac_compile) 2>conftest.er1
13369 ac_status=$?
13370 grep -v '^ *+' conftest.er1 >conftest.err
13371 rm -f conftest.er1
13372 cat conftest.err >&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try='test -z "$ac_c_werror_flag"
13376 || test ! -s conftest.err'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13379 ac_status=$?
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; } &&
13382 { ac_try='test -s conftest.$ac_objext'
13383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13384 (eval $ac_try) 2>&5
13385 ac_status=$?
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; }; then
13388 echo "$as_me:$LINENO: result: yes" >&5
13389echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013390#define HAVE_SYSCTL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013391_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013392
13393else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013394 echo "$as_me: failed program was:" >&5
13395sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013396
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013397echo "$as_me:$LINENO: result: not usable" >&5
13398echo "${ECHO_T}not usable" >&6
13399fi
13400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13401
13402echo "$as_me:$LINENO: checking for sysinfo" >&5
13403echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13404cat >conftest.$ac_ext <<_ACEOF
13405/* confdefs.h. */
13406_ACEOF
13407cat confdefs.h >>conftest.$ac_ext
13408cat >>conftest.$ac_ext <<_ACEOF
13409/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013410#include <sys/types.h>
13411#include <sys/sysinfo.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013412int
13413main ()
13414{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013415 struct sysinfo sinfo;
13416 int t;
13417
13418 (void)sysinfo(&sinfo);
13419 t = sinfo.totalram;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013420
13421 ;
13422 return 0;
13423}
13424_ACEOF
13425rm -f conftest.$ac_objext
13426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13427 (eval $ac_compile) 2>conftest.er1
13428 ac_status=$?
13429 grep -v '^ *+' conftest.er1 >conftest.err
13430 rm -f conftest.er1
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } &&
13434 { ac_try='test -z "$ac_c_werror_flag"
13435 || test ! -s conftest.err'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; } &&
13441 { ac_try='test -s conftest.$ac_objext'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; }; then
13447 echo "$as_me:$LINENO: result: yes" >&5
13448echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013449#define HAVE_SYSINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013450_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013451
13452else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013453 echo "$as_me: failed program was:" >&5
13454sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013455
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013456echo "$as_me:$LINENO: result: not usable" >&5
13457echo "${ECHO_T}not usable" >&6
13458fi
13459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13460
13461echo "$as_me:$LINENO: checking for sysconf" >&5
13462echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13463cat >conftest.$ac_ext <<_ACEOF
13464/* confdefs.h. */
13465_ACEOF
13466cat confdefs.h >>conftest.$ac_ext
13467cat >>conftest.$ac_ext <<_ACEOF
13468/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013469#include <unistd.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013470int
13471main ()
13472{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013473 (void)sysconf(_SC_PAGESIZE);
13474 (void)sysconf(_SC_PHYS_PAGES);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013475
13476 ;
13477 return 0;
13478}
13479_ACEOF
13480rm -f conftest.$ac_objext
13481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13482 (eval $ac_compile) 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } &&
13489 { ac_try='test -z "$ac_c_werror_flag"
13490 || test ! -s conftest.err'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; } &&
13496 { ac_try='test -s conftest.$ac_objext'
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 echo "$as_me:$LINENO: result: yes" >&5
13503echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013504#define HAVE_SYSCONF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013505_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013506
13507else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013508 echo "$as_me: failed program was:" >&5
13509sed 's/^/| /' conftest.$ac_ext >&5
13510
13511echo "$as_me:$LINENO: result: not usable" >&5
13512echo "${ECHO_T}not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013513fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013515
13516
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013517echo "$as_me:$LINENO: checking size of int" >&5
13518echo $ECHO_N "checking size of int... $ECHO_C" >&6
13519if test "${ac_cv_sizeof_int+set}" = set; then
13520 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013521else
13522 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013523 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13524echo "$as_me: error: failed to compile test program" >&2;}
13525 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013526else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013527 cat >conftest.$ac_ext <<_ACEOF
13528/* confdefs.h. */
13529_ACEOF
13530cat confdefs.h >>conftest.$ac_ext
13531cat >>conftest.$ac_ext <<_ACEOF
13532/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013533#include <stdio.h>
13534 main()
13535 {
13536 FILE *f=fopen("conftestval", "w");
13537 if (!f) exit(1);
13538 fprintf(f, "%d\n", (int)sizeof(int));
13539 exit(0);
13540 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013541_ACEOF
13542rm -f conftest$ac_exeext
13543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13544 (eval $ac_link) 2>&5
13545 ac_status=$?
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13550 ac_status=$?
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013553 ac_cv_sizeof_int=`cat conftestval`
13554else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013555 echo "$as_me: program exited with status $ac_status" >&5
13556echo "$as_me: failed program was:" >&5
13557sed 's/^/| /' conftest.$ac_ext >&5
13558
13559( exit $ac_status )
13560ac_cv_sizeof_int=0
Bram Moolenaar071d4272004-06-13 20:20:40 +000013561fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013562rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13563fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013564fi
13565
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013566echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13567echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13568cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013569#define SIZEOF_INT $ac_cv_sizeof_int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013570_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013571
13572
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013573echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13574echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013575bcopy_test_prog='
13576main() {
13577 char buf[10];
13578 strcpy(buf, "abcdefghi");
13579 mch_memmove(buf, buf + 2, 3);
13580 if (strncmp(buf, "ababcf", 6))
13581 exit(1);
13582 strcpy(buf, "abcdefghi");
13583 mch_memmove(buf + 2, buf, 3);
13584 if (strncmp(buf, "cdedef", 6))
13585 exit(1);
13586 exit(0); /* libc version works properly. */
13587}'
13588
13589
13590if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013591 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13592echo "$as_me: error: failed to compile test program" >&2;}
13593 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013594else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013595 cat >conftest.$ac_ext <<_ACEOF
13596/* confdefs.h. */
13597_ACEOF
13598cat confdefs.h >>conftest.$ac_ext
13599cat >>conftest.$ac_ext <<_ACEOF
13600/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013601#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013602_ACEOF
13603rm -f conftest$ac_exeext
13604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13605 (eval $ac_link) 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013615#define USEMEMMOVE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013616_ACEOF
13617 echo "$as_me:$LINENO: result: memmove does" >&5
13618echo "${ECHO_T}memmove does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013619else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013620 echo "$as_me: program exited with status $ac_status" >&5
13621echo "$as_me: failed program was:" >&5
13622sed 's/^/| /' conftest.$ac_ext >&5
13623
13624( exit $ac_status )
13625if test "$cross_compiling" = yes; then
13626 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13627echo "$as_me: error: failed to compile test program" >&2;}
13628 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013629else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013630 cat >conftest.$ac_ext <<_ACEOF
13631/* confdefs.h. */
13632_ACEOF
13633cat confdefs.h >>conftest.$ac_ext
13634cat >>conftest.$ac_ext <<_ACEOF
13635/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013636#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013637_ACEOF
13638rm -f conftest$ac_exeext
13639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13640 (eval $ac_link) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013650#define USEBCOPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013651_ACEOF
13652 echo "$as_me:$LINENO: result: bcopy does" >&5
13653echo "${ECHO_T}bcopy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013654else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013655 echo "$as_me: program exited with status $ac_status" >&5
13656echo "$as_me: failed program was:" >&5
13657sed 's/^/| /' conftest.$ac_ext >&5
13658
13659( exit $ac_status )
13660if test "$cross_compiling" = yes; then
13661 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13662echo "$as_me: error: failed to compile test program" >&2;}
13663 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013664else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013665 cat >conftest.$ac_ext <<_ACEOF
13666/* confdefs.h. */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
13670/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013671#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013672_ACEOF
13673rm -f conftest$ac_exeext
13674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13675 (eval $ac_link) 2>&5
13676 ac_status=$?
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013685#define USEMEMCPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013686_ACEOF
13687 echo "$as_me:$LINENO: result: memcpy does" >&5
13688echo "${ECHO_T}memcpy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013689else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013690 echo "$as_me: program exited with status $ac_status" >&5
13691echo "$as_me: failed program was:" >&5
13692sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013693
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013694( exit $ac_status )
13695echo "$as_me:$LINENO: result: no" >&5
13696echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013697fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013698rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013699fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013700fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013701rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013702fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013703fi
13704rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13705fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013706
13707
13708if test "$enable_multibyte" = "yes"; then
13709 cflags_save=$CFLAGS
13710 ldflags_save=$LDFLAGS
13711 if test -n "$x_includes" ; then
13712 CFLAGS="$CFLAGS -I$x_includes"
13713 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013714 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
13715echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
13716 cat >conftest.$ac_ext <<_ACEOF
13717/* confdefs.h. */
13718_ACEOF
13719cat confdefs.h >>conftest.$ac_ext
13720cat >>conftest.$ac_ext <<_ACEOF
13721/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013722#include <X11/Xlocale.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013723int
13724main ()
13725{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013726
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013727 ;
13728 return 0;
13729}
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 cat >conftest.$ac_ext <<_ACEOF
13754/* confdefs.h. */
13755_ACEOF
13756cat confdefs.h >>conftest.$ac_ext
13757cat >>conftest.$ac_ext <<_ACEOF
13758/* end confdefs.h. */
13759
Bram Moolenaar071d4272004-06-13 20:20:40 +000013760/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013761#ifdef __cplusplus
13762extern "C"
13763#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013764/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013765 builtin and then its argument prototype would still apply. */
13766char _Xsetlocale ();
13767int
13768main ()
13769{
13770_Xsetlocale ();
13771 ;
13772 return 0;
13773}
13774_ACEOF
13775rm -f conftest.$ac_objext conftest$ac_exeext
13776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13777 (eval $ac_link) 2>conftest.er1
13778 ac_status=$?
13779 grep -v '^ *+' conftest.er1 >conftest.err
13780 rm -f conftest.er1
13781 cat conftest.err >&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } &&
13784 { ac_try='test -z "$ac_c_werror_flag"
13785 || test ! -s conftest.err'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; } &&
13791 { ac_try='test -s conftest$ac_exeext'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13797 echo "$as_me:$LINENO: result: yes" >&5
13798echo "${ECHO_T}yes" >&6
13799 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013800#define X_LOCALE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013801_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013802
13803else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013804 echo "$as_me: failed program was:" >&5
13805sed 's/^/| /' conftest.$ac_ext >&5
13806
13807echo "$as_me:$LINENO: result: no" >&5
13808echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013809fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013810rm -f conftest.err conftest.$ac_objext \
13811 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013812else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013813 echo "$as_me: failed program was:" >&5
13814sed 's/^/| /' conftest.$ac_ext >&5
13815
13816echo "$as_me:$LINENO: result: no" >&5
13817echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013818fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013820 fi
13821 CFLAGS=$cflags_save
13822 LDFLAGS=$ldflags_save
13823fi
13824
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013825echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
13826echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
13827if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
13828 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013829else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013830 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013831LIBS="-lxpg4 $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013832cat >conftest.$ac_ext <<_ACEOF
13833/* confdefs.h. */
13834_ACEOF
13835cat confdefs.h >>conftest.$ac_ext
13836cat >>conftest.$ac_ext <<_ACEOF
13837/* end confdefs.h. */
13838
Bram Moolenaar071d4272004-06-13 20:20:40 +000013839/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013840#ifdef __cplusplus
13841extern "C"
13842#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013843/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013844 builtin and then its argument prototype would still apply. */
13845char _xpg4_setrunelocale ();
13846int
13847main ()
13848{
13849_xpg4_setrunelocale ();
13850 ;
13851 return 0;
13852}
13853_ACEOF
13854rm -f conftest.$ac_objext conftest$ac_exeext
13855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13856 (eval $ac_link) 2>conftest.er1
13857 ac_status=$?
13858 grep -v '^ *+' conftest.er1 >conftest.err
13859 rm -f conftest.er1
13860 cat conftest.err >&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } &&
13863 { ac_try='test -z "$ac_c_werror_flag"
13864 || test ! -s conftest.err'
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13867 ac_status=$?
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; } &&
13870 { ac_try='test -s conftest$ac_exeext'
13871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13873 ac_status=$?
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }; then
13876 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013877else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013878 echo "$as_me: failed program was:" >&5
13879sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013880
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013881ac_cv_lib_xpg4__xpg4_setrunelocale=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013882fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013883rm -f conftest.err conftest.$ac_objext \
13884 conftest$ac_exeext conftest.$ac_ext
13885LIBS=$ac_check_lib_save_LIBS
13886fi
13887echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
13888echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
13889if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013890 LIBS="$LIBS -lxpg4"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013891fi
13892
13893
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013894echo "$as_me:$LINENO: checking how to create tags" >&5
13895echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013896test -f tags && mv tags tags.save
13897if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
Bram Moolenaar78984f52005-08-01 07:19:10 +000013898 TAGPRG="ctags -I INIT+"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013899else
13900 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
13901 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
13902 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
13903 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
13904 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
13905 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
13906 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
13907fi
13908test -f tags.save && mv tags.save tags
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013909echo "$as_me:$LINENO: result: $TAGPRG" >&5
13910echo "${ECHO_T}$TAGPRG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013911
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013912echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
13913echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013914MANDEF="man"
13915(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013916echo "$as_me:$LINENO: result: $MANDEF" >&5
13917echo "${ECHO_T}$MANDEF" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013918if test "$MANDEF" = "man -s"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013919 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013920#define USEMAN_S 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013921_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013922
13923fi
13924
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013925echo "$as_me:$LINENO: checking --disable-nls argument" >&5
13926echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013927# Check whether --enable-nls or --disable-nls was given.
13928if test "${enable_nls+set}" = set; then
13929 enableval="$enable_nls"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013930
Bram Moolenaar071d4272004-06-13 20:20:40 +000013931else
13932 enable_nls="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013933fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013934
13935if test "$enable_nls" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013936 echo "$as_me:$LINENO: result: no" >&5
13937echo "${ECHO_T}no" >&6
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000013938
13939 INSTALL_LANGS=install-languages
13940
13941 INSTALL_TOOL_LANGS=install-tool-languages
13942
13943
Bram Moolenaar071d4272004-06-13 20:20:40 +000013944 # Extract the first word of "msgfmt", so it can be a program name with args.
13945set dummy msgfmt; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013946echo "$as_me:$LINENO: checking for $ac_word" >&5
13947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13948if test "${ac_cv_prog_MSGFMT+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013950else
13951 if test -n "$MSGFMT"; then
13952 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
13953else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13955for as_dir in $PATH
13956do
13957 IFS=$as_save_IFS
13958 test -z "$as_dir" && as_dir=.
13959 for ac_exec_ext in '' $ac_executable_extensions; do
13960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13961 ac_cv_prog_MSGFMT="msgfmt"
13962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13963 break 2
13964 fi
13965done
13966done
13967
Bram Moolenaar071d4272004-06-13 20:20:40 +000013968fi
13969fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013970MSGFMT=$ac_cv_prog_MSGFMT
Bram Moolenaar071d4272004-06-13 20:20:40 +000013971if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013972 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13973echo "${ECHO_T}$MSGFMT" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013974else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013975 echo "$as_me:$LINENO: result: no" >&5
13976echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013977fi
13978
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013979 echo "$as_me:$LINENO: checking for NLS" >&5
13980echo $ECHO_N "checking for NLS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013981 if test -f po/Makefile; then
13982 have_gettext="no"
13983 if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013984 cat >conftest.$ac_ext <<_ACEOF
13985/* confdefs.h. */
13986_ACEOF
13987cat confdefs.h >>conftest.$ac_ext
13988cat >>conftest.$ac_ext <<_ACEOF
13989/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013990#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013991int
13992main ()
13993{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013994gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013995 ;
13996 return 0;
13997}
13998_ACEOF
13999rm -f conftest.$ac_objext conftest$ac_exeext
14000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14001 (eval $ac_link) 2>conftest.er1
14002 ac_status=$?
14003 grep -v '^ *+' conftest.er1 >conftest.err
14004 rm -f conftest.er1
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
14008 { ac_try='test -z "$ac_c_werror_flag"
14009 || test ! -s conftest.err'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14012 ac_status=$?
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; } &&
14015 { ac_try='test -s conftest$ac_exeext'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14021 echo "$as_me:$LINENO: result: gettext() works" >&5
14022echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014023else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014024 echo "$as_me: failed program was:" >&5
14025sed 's/^/| /' conftest.$ac_ext >&5
14026
14027olibs=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014028 LIBS="$LIBS -lintl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014029 cat >conftest.$ac_ext <<_ACEOF
14030/* confdefs.h. */
14031_ACEOF
14032cat confdefs.h >>conftest.$ac_ext
14033cat >>conftest.$ac_ext <<_ACEOF
14034/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014035#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014036int
14037main ()
14038{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014039gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014040 ;
14041 return 0;
14042}
14043_ACEOF
14044rm -f conftest.$ac_objext conftest$ac_exeext
14045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14046 (eval $ac_link) 2>conftest.er1
14047 ac_status=$?
14048 grep -v '^ *+' conftest.er1 >conftest.err
14049 rm -f conftest.er1
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try='test -z "$ac_c_werror_flag"
14054 || test ! -s conftest.err'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; } &&
14060 { ac_try='test -s conftest$ac_exeext'
14061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14063 ac_status=$?
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14067echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014068else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014069 echo "$as_me: failed program was:" >&5
14070sed 's/^/| /' conftest.$ac_ext >&5
14071
14072echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14073echo "${ECHO_T}gettext() doesn't work" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014074 LIBS=$olibs
14075fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014076rm -f conftest.err conftest.$ac_objext \
14077 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014078fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014079rm -f conftest.err conftest.$ac_objext \
14080 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014081 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014082 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14083echo "${ECHO_T}msgfmt not found - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014084 fi
14085 if test $have_gettext = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014086 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014087#define HAVE_GETTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014088_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014089
14090 MAKEMO=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014091
14092
14093for ac_func in bind_textdomain_codeset
Bram Moolenaar071d4272004-06-13 20:20:40 +000014094do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014095as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14096echo "$as_me:$LINENO: checking for $ac_func" >&5
14097echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14098if eval "test \"\${$as_ac_var+set}\" = set"; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014100else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014101 cat >conftest.$ac_ext <<_ACEOF
14102/* confdefs.h. */
14103_ACEOF
14104cat confdefs.h >>conftest.$ac_ext
14105cat >>conftest.$ac_ext <<_ACEOF
14106/* end confdefs.h. */
14107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14109#define $ac_func innocuous_$ac_func
14110
Bram Moolenaar071d4272004-06-13 20:20:40 +000014111/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014112 which can conflict with char $ac_func (); below.
14113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14114 <limits.h> exists even on freestanding compilers. */
14115
14116#ifdef __STDC__
14117# include <limits.h>
14118#else
14119# include <assert.h>
14120#endif
14121
14122#undef $ac_func
14123
Bram Moolenaar071d4272004-06-13 20:20:40 +000014124/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014125#ifdef __cplusplus
14126extern "C"
14127{
14128#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014129/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014130 builtin and then its argument prototype would still apply. */
14131char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000014132/* The GNU C library defines this for functions which it implements
14133 to always fail with ENOSYS. Some functions are actually named
14134 something starting with __ and the normal name is an alias. */
14135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14136choke me
14137#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014138char (*f) () = $ac_func;
14139#endif
14140#ifdef __cplusplus
14141}
Bram Moolenaar071d4272004-06-13 20:20:40 +000014142#endif
14143
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014144int
14145main ()
14146{
14147return f != $ac_func;
14148 ;
14149 return 0;
14150}
14151_ACEOF
14152rm -f conftest.$ac_objext conftest$ac_exeext
14153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14154 (eval $ac_link) 2>conftest.er1
14155 ac_status=$?
14156 grep -v '^ *+' conftest.er1 >conftest.err
14157 rm -f conftest.er1
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } &&
14161 { ac_try='test -z "$ac_c_werror_flag"
14162 || test ! -s conftest.err'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest$ac_exeext'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14174 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014175else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014176 echo "$as_me: failed program was:" >&5
14177sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014178
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014179eval "$as_ac_var=no"
14180fi
14181rm -f conftest.err conftest.$ac_objext \
14182 conftest$ac_exeext conftest.$ac_ext
14183fi
14184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14185echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14186if test `eval echo '${'$as_ac_var'}'` = yes; then
14187 cat >>confdefs.h <<_ACEOF
14188#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14189_ACEOF
14190
Bram Moolenaar071d4272004-06-13 20:20:40 +000014191fi
14192done
14193
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014194 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14195echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14196 cat >conftest.$ac_ext <<_ACEOF
14197/* confdefs.h. */
14198_ACEOF
14199cat confdefs.h >>conftest.$ac_ext
14200cat >>conftest.$ac_ext <<_ACEOF
14201/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014202#include <libintl.h>
14203 extern int _nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014204int
14205main ()
14206{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014207++_nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014208 ;
14209 return 0;
14210}
14211_ACEOF
14212rm -f conftest.$ac_objext conftest$ac_exeext
14213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14214 (eval $ac_link) 2>conftest.er1
14215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } &&
14221 { ac_try='test -z "$ac_c_werror_flag"
14222 || test ! -s conftest.err'
14223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14225 ac_status=$?
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; } &&
14228 { ac_try='test -s conftest$ac_exeext'
14229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14230 (eval $ac_try) 2>&5
14231 ac_status=$?
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 echo "$as_me:$LINENO: result: yes" >&5
14235echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014236#define HAVE_NL_MSG_CAT_CNTR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014237_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014238
14239else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014240 echo "$as_me: failed program was:" >&5
14241sed 's/^/| /' conftest.$ac_ext >&5
14242
14243echo "$as_me:$LINENO: result: no" >&5
14244echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014245fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014246rm -f conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014248 fi
14249 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014250 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14251echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014252 fi
14253else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014254 echo "$as_me:$LINENO: result: yes" >&5
14255echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014256fi
14257
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014258if test "${ac_cv_header_dlfcn_h+set}" = set; then
14259 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14260echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14261if test "${ac_cv_header_dlfcn_h+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263fi
14264echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14265echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014266else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014267 # Is the header compilable?
14268echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14269echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14270cat >conftest.$ac_ext <<_ACEOF
14271/* confdefs.h. */
14272_ACEOF
14273cat confdefs.h >>conftest.$ac_ext
14274cat >>conftest.$ac_ext <<_ACEOF
14275/* end confdefs.h. */
14276$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014277#include <dlfcn.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014278_ACEOF
14279rm -f conftest.$ac_objext
14280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14281 (eval $ac_compile) 2>conftest.er1
14282 ac_status=$?
14283 grep -v '^ *+' conftest.er1 >conftest.err
14284 rm -f conftest.er1
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } &&
14288 { ac_try='test -z "$ac_c_werror_flag"
14289 || test ! -s conftest.err'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14292 ac_status=$?
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; } &&
14295 { ac_try='test -s conftest.$ac_objext'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14298 ac_status=$?
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }; then
14301 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014302else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014303 echo "$as_me: failed program was:" >&5
14304sed 's/^/| /' conftest.$ac_ext >&5
14305
14306ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014307fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14309echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14310echo "${ECHO_T}$ac_header_compiler" >&6
14311
14312# Is the header present?
14313echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14314echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14315cat >conftest.$ac_ext <<_ACEOF
14316/* confdefs.h. */
14317_ACEOF
14318cat confdefs.h >>conftest.$ac_ext
14319cat >>conftest.$ac_ext <<_ACEOF
14320/* end confdefs.h. */
14321#include <dlfcn.h>
14322_ACEOF
14323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14325 ac_status=$?
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } >/dev/null; then
14331 if test -s conftest.err; then
14332 ac_cpp_err=$ac_c_preproc_warn_flag
14333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14334 else
14335 ac_cpp_err=
14336 fi
14337else
14338 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014339fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014340if test -z "$ac_cpp_err"; then
14341 ac_header_preproc=yes
14342else
14343 echo "$as_me: failed program was:" >&5
14344sed 's/^/| /' conftest.$ac_ext >&5
14345
14346 ac_header_preproc=no
14347fi
14348rm -f conftest.err conftest.$ac_ext
14349echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14350echo "${ECHO_T}$ac_header_preproc" >&6
14351
14352# So? What about this header?
14353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14354 yes:no: )
14355 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14356echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14357 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14358echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14359 ac_header_preproc=yes
14360 ;;
14361 no:yes:* )
14362 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14363echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14364 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14365echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14366 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14367echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14368 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14369echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14370 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14371echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14372 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14373echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14374 (
14375 cat <<\_ASBOX
14376## ------------------------------------------ ##
14377## Report this to the AC_PACKAGE_NAME lists. ##
14378## ------------------------------------------ ##
14379_ASBOX
14380 ) |
14381 sed "s/^/$as_me: WARNING: /" >&2
14382 ;;
14383esac
14384echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14385echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14386if test "${ac_cv_header_dlfcn_h+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14388else
14389 ac_cv_header_dlfcn_h=$ac_header_preproc
14390fi
14391echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14392echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14393
14394fi
14395if test $ac_cv_header_dlfcn_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014396 DLL=dlfcn.h
14397else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014398 if test "${ac_cv_header_dl_h+set}" = set; then
14399 echo "$as_me:$LINENO: checking for dl.h" >&5
14400echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14401if test "${ac_cv_header_dl_h+set}" = set; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14403fi
14404echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14405echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014406else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014407 # Is the header compilable?
14408echo "$as_me:$LINENO: checking dl.h usability" >&5
14409echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14410cat >conftest.$ac_ext <<_ACEOF
14411/* confdefs.h. */
14412_ACEOF
14413cat confdefs.h >>conftest.$ac_ext
14414cat >>conftest.$ac_ext <<_ACEOF
14415/* end confdefs.h. */
14416$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014417#include <dl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014418_ACEOF
14419rm -f conftest.$ac_objext
14420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421 (eval $ac_compile) 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
14428 { ac_try='test -z "$ac_c_werror_flag"
14429 || test ! -s conftest.err'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; } &&
14435 { ac_try='test -s conftest.$ac_objext'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14441 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014442else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014443 echo "$as_me: failed program was:" >&5
14444sed 's/^/| /' conftest.$ac_ext >&5
14445
14446ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014447fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14450echo "${ECHO_T}$ac_header_compiler" >&6
14451
14452# Is the header present?
14453echo "$as_me:$LINENO: checking dl.h presence" >&5
14454echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14455cat >conftest.$ac_ext <<_ACEOF
14456/* confdefs.h. */
14457_ACEOF
14458cat confdefs.h >>conftest.$ac_ext
14459cat >>conftest.$ac_ext <<_ACEOF
14460/* end confdefs.h. */
14461#include <dl.h>
14462_ACEOF
14463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14465 ac_status=$?
14466 grep -v '^ *+' conftest.er1 >conftest.err
14467 rm -f conftest.er1
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } >/dev/null; then
14471 if test -s conftest.err; then
14472 ac_cpp_err=$ac_c_preproc_warn_flag
14473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14474 else
14475 ac_cpp_err=
14476 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014477else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014478 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014479fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014480if test -z "$ac_cpp_err"; then
14481 ac_header_preproc=yes
14482else
14483 echo "$as_me: failed program was:" >&5
14484sed 's/^/| /' conftest.$ac_ext >&5
14485
14486 ac_header_preproc=no
14487fi
14488rm -f conftest.err conftest.$ac_ext
14489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14490echo "${ECHO_T}$ac_header_preproc" >&6
14491
14492# So? What about this header?
14493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14494 yes:no: )
14495 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14496echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14497 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14498echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14499 ac_header_preproc=yes
14500 ;;
14501 no:yes:* )
14502 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14503echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14504 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14505echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14506 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14507echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14508 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14509echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14511echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14513echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14514 (
14515 cat <<\_ASBOX
14516## ------------------------------------------ ##
14517## Report this to the AC_PACKAGE_NAME lists. ##
14518## ------------------------------------------ ##
14519_ASBOX
14520 ) |
14521 sed "s/^/$as_me: WARNING: /" >&2
14522 ;;
14523esac
14524echo "$as_me:$LINENO: checking for dl.h" >&5
14525echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14526if test "${ac_cv_header_dl_h+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528else
14529 ac_cv_header_dl_h=$ac_header_preproc
14530fi
14531echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14532echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014533
14534fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014535if test $ac_cv_header_dl_h = yes; then
14536 DLL=dl.h
14537fi
14538
14539
14540fi
14541
Bram Moolenaar071d4272004-06-13 20:20:40 +000014542
14543if test x${DLL} = xdlfcn.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014544
14545cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014546#define HAVE_DLFCN_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014547_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014548
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014549 echo "$as_me:$LINENO: checking for dlopen()" >&5
14550echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14551 cat >conftest.$ac_ext <<_ACEOF
14552/* confdefs.h. */
14553_ACEOF
14554cat confdefs.h >>conftest.$ac_ext
14555cat >>conftest.$ac_ext <<_ACEOF
14556/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014557
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014558int
14559main ()
14560{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014561
14562 extern void* dlopen();
14563 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014564
14565 ;
14566 return 0;
14567}
14568_ACEOF
14569rm -f conftest.$ac_objext conftest$ac_exeext
14570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14571 (eval $ac_link) 2>conftest.er1
14572 ac_status=$?
14573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
14578 { ac_try='test -z "$ac_c_werror_flag"
14579 || test ! -s conftest.err'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14582 ac_status=$?
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; } &&
14585 { ac_try='test -s conftest$ac_exeext'
14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14587 (eval $ac_try) 2>&5
14588 ac_status=$?
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); }; }; then
14591 echo "$as_me:$LINENO: result: yes" >&5
14592echo "${ECHO_T}yes" >&6;
14593
14594cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014595#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014596_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014597
14598else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014599 echo "$as_me: failed program was:" >&5
14600sed 's/^/| /' conftest.$ac_ext >&5
14601
14602echo "$as_me:$LINENO: result: no" >&5
14603echo "${ECHO_T}no" >&6;
14604 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14605echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014606 olibs=$LIBS
14607 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014608 cat >conftest.$ac_ext <<_ACEOF
14609/* confdefs.h. */
14610_ACEOF
14611cat confdefs.h >>conftest.$ac_ext
14612cat >>conftest.$ac_ext <<_ACEOF
14613/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014614
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014615int
14616main ()
14617{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014618
14619 extern void* dlopen();
14620 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014621
14622 ;
14623 return 0;
14624}
14625_ACEOF
14626rm -f conftest.$ac_objext conftest$ac_exeext
14627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14628 (eval $ac_link) 2>conftest.er1
14629 ac_status=$?
14630 grep -v '^ *+' conftest.er1 >conftest.err
14631 rm -f conftest.er1
14632 cat conftest.err >&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
14635 { ac_try='test -z "$ac_c_werror_flag"
14636 || test ! -s conftest.err'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14639 ac_status=$?
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; } &&
14642 { ac_try='test -s conftest$ac_exeext'
14643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14644 (eval $ac_try) 2>&5
14645 ac_status=$?
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 echo "$as_me:$LINENO: result: yes" >&5
14649echo "${ECHO_T}yes" >&6;
14650
14651cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014652#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014653_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014654
14655else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014656 echo "$as_me: failed program was:" >&5
14657sed 's/^/| /' conftest.$ac_ext >&5
14658
14659echo "$as_me:$LINENO: result: no" >&5
14660echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014661 LIBS=$olibs
14662fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014663rm -f conftest.err conftest.$ac_objext \
14664 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014665fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014666rm -f conftest.err conftest.$ac_objext \
14667 conftest$ac_exeext conftest.$ac_ext
14668 echo "$as_me:$LINENO: checking for dlsym()" >&5
14669echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14670 cat >conftest.$ac_ext <<_ACEOF
14671/* confdefs.h. */
14672_ACEOF
14673cat confdefs.h >>conftest.$ac_ext
14674cat >>conftest.$ac_ext <<_ACEOF
14675/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014676
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014677int
14678main ()
14679{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014680
14681 extern void* dlsym();
14682 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014683
14684 ;
14685 return 0;
14686}
14687_ACEOF
14688rm -f conftest.$ac_objext conftest$ac_exeext
14689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14690 (eval $ac_link) 2>conftest.er1
14691 ac_status=$?
14692 grep -v '^ *+' conftest.er1 >conftest.err
14693 rm -f conftest.er1
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } &&
14697 { ac_try='test -z "$ac_c_werror_flag"
14698 || test ! -s conftest.err'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; } &&
14704 { ac_try='test -s conftest$ac_exeext'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; }; then
14710 echo "$as_me:$LINENO: result: yes" >&5
14711echo "${ECHO_T}yes" >&6;
14712
14713cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014714#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014715_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014716
14717else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014718 echo "$as_me: failed program was:" >&5
14719sed 's/^/| /' conftest.$ac_ext >&5
14720
14721echo "$as_me:$LINENO: result: no" >&5
14722echo "${ECHO_T}no" >&6;
14723 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
14724echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014725 olibs=$LIBS
14726 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014727 cat >conftest.$ac_ext <<_ACEOF
14728/* confdefs.h. */
14729_ACEOF
14730cat confdefs.h >>conftest.$ac_ext
14731cat >>conftest.$ac_ext <<_ACEOF
14732/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014733
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014734int
14735main ()
14736{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014737
14738 extern void* dlsym();
14739 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014740
14741 ;
14742 return 0;
14743}
14744_ACEOF
14745rm -f conftest.$ac_objext conftest$ac_exeext
14746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14747 (eval $ac_link) 2>conftest.er1
14748 ac_status=$?
14749 grep -v '^ *+' conftest.er1 >conftest.err
14750 rm -f conftest.er1
14751 cat conftest.err >&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } &&
14754 { ac_try='test -z "$ac_c_werror_flag"
14755 || test ! -s conftest.err'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; } &&
14761 { ac_try='test -s conftest$ac_exeext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 echo "$as_me:$LINENO: result: yes" >&5
14768echo "${ECHO_T}yes" >&6;
14769
14770cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014771#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014772_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014773
14774else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014775 echo "$as_me: failed program was:" >&5
14776sed 's/^/| /' conftest.$ac_ext >&5
14777
14778echo "$as_me:$LINENO: result: no" >&5
14779echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014780 LIBS=$olibs
14781fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014782rm -f conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014784fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014785rm -f conftest.err conftest.$ac_objext \
14786 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014787elif test x${DLL} = xdl.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014788
14789cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014790#define HAVE_DL_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014791_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014792
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014793 echo "$as_me:$LINENO: checking for shl_load()" >&5
14794echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
14795 cat >conftest.$ac_ext <<_ACEOF
14796/* confdefs.h. */
14797_ACEOF
14798cat confdefs.h >>conftest.$ac_ext
14799cat >>conftest.$ac_ext <<_ACEOF
14800/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014801
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014802int
14803main ()
14804{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014805
14806 extern void* shl_load();
14807 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014808
14809 ;
14810 return 0;
14811}
14812_ACEOF
14813rm -f conftest.$ac_objext conftest$ac_exeext
14814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14815 (eval $ac_link) 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag"
14823 || test ! -s conftest.err'
14824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825 (eval $ac_try) 2>&5
14826 ac_status=$?
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); }; } &&
14829 { ac_try='test -s conftest$ac_exeext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14832 ac_status=$?
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 echo "$as_me:$LINENO: result: yes" >&5
14836echo "${ECHO_T}yes" >&6;
14837
14838cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014839#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014840_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014841
14842else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014843 echo "$as_me: failed program was:" >&5
14844sed 's/^/| /' conftest.$ac_ext >&5
14845
14846echo "$as_me:$LINENO: result: no" >&5
14847echo "${ECHO_T}no" >&6;
14848 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
14849echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014850 olibs=$LIBS
14851 LIBS="$LIBS -ldld"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014852 cat >conftest.$ac_ext <<_ACEOF
14853/* confdefs.h. */
14854_ACEOF
14855cat confdefs.h >>conftest.$ac_ext
14856cat >>conftest.$ac_ext <<_ACEOF
14857/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014858
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014859int
14860main ()
14861{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014862
14863 extern void* shl_load();
14864 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014865
14866 ;
14867 return 0;
14868}
14869_ACEOF
14870rm -f conftest.$ac_objext conftest$ac_exeext
14871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14872 (eval $ac_link) 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
14879 { ac_try='test -z "$ac_c_werror_flag"
14880 || test ! -s conftest.err'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; } &&
14886 { ac_try='test -s conftest$ac_exeext'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14889 ac_status=$?
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; }; then
14892 echo "$as_me:$LINENO: result: yes" >&5
14893echo "${ECHO_T}yes" >&6;
14894
14895cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014896#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014897_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014898
14899else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014900 echo "$as_me: failed program was:" >&5
14901sed 's/^/| /' conftest.$ac_ext >&5
14902
14903echo "$as_me:$LINENO: result: no" >&5
14904echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014905 LIBS=$olibs
14906fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014907rm -f conftest.err conftest.$ac_objext \
14908 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014909fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014910rm -f conftest.err conftest.$ac_objext \
14911 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014912fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014913
14914for ac_header in setjmp.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000014915do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14917if eval "test \"\${$as_ac_Header+set}\" = set"; then
14918 echo "$as_me:$LINENO: checking for $ac_header" >&5
14919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14920if eval "test \"\${$as_ac_Header+set}\" = set"; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014922fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014925else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014926 # Is the header compilable?
14927echo "$as_me:$LINENO: checking $ac_header usability" >&5
14928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14929cat >conftest.$ac_ext <<_ACEOF
14930/* confdefs.h. */
14931_ACEOF
14932cat confdefs.h >>conftest.$ac_ext
14933cat >>conftest.$ac_ext <<_ACEOF
14934/* end confdefs.h. */
14935$ac_includes_default
14936#include <$ac_header>
14937_ACEOF
14938rm -f conftest.$ac_objext
14939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940 (eval $ac_compile) 2>conftest.er1
14941 ac_status=$?
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
14947 { ac_try='test -z "$ac_c_werror_flag"
14948 || test ! -s conftest.err'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest.$ac_objext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_header_compiler=yes
14961else
14962 echo "$as_me: failed program was:" >&5
14963sed 's/^/| /' conftest.$ac_ext >&5
14964
14965ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014966fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14969echo "${ECHO_T}$ac_header_compiler" >&6
14970
14971# Is the header present?
14972echo "$as_me:$LINENO: checking $ac_header presence" >&5
14973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14974cat >conftest.$ac_ext <<_ACEOF
14975/* confdefs.h. */
14976_ACEOF
14977cat confdefs.h >>conftest.$ac_ext
14978cat >>conftest.$ac_ext <<_ACEOF
14979/* end confdefs.h. */
14980#include <$ac_header>
14981_ACEOF
14982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14984 ac_status=$?
14985 grep -v '^ *+' conftest.er1 >conftest.err
14986 rm -f conftest.er1
14987 cat conftest.err >&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } >/dev/null; then
14990 if test -s conftest.err; then
14991 ac_cpp_err=$ac_c_preproc_warn_flag
14992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14993 else
14994 ac_cpp_err=
14995 fi
14996else
14997 ac_cpp_err=yes
14998fi
14999if test -z "$ac_cpp_err"; then
15000 ac_header_preproc=yes
15001else
15002 echo "$as_me: failed program was:" >&5
15003sed 's/^/| /' conftest.$ac_ext >&5
15004
15005 ac_header_preproc=no
15006fi
15007rm -f conftest.err conftest.$ac_ext
15008echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15009echo "${ECHO_T}$ac_header_preproc" >&6
15010
15011# So? What about this header?
15012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15013 yes:no: )
15014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15018 ac_header_preproc=yes
15019 ;;
15020 no:yes:* )
15021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15033 (
15034 cat <<\_ASBOX
15035## ------------------------------------------ ##
15036## Report this to the AC_PACKAGE_NAME lists. ##
15037## ------------------------------------------ ##
15038_ASBOX
15039 ) |
15040 sed "s/^/$as_me: WARNING: /" >&2
15041 ;;
15042esac
15043echo "$as_me:$LINENO: checking for $ac_header" >&5
15044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15045if eval "test \"\${$as_ac_Header+set}\" = set"; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15047else
15048 eval "$as_ac_Header=\$ac_header_preproc"
15049fi
15050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15052
15053fi
15054if test `eval echo '${'$as_ac_Header'}'` = yes; then
15055 cat >>confdefs.h <<_ACEOF
15056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15057_ACEOF
15058
15059fi
15060
Bram Moolenaar071d4272004-06-13 20:20:40 +000015061done
15062
15063
15064if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15065 if echo $LIBS | grep -e '-ldl' >/dev/null; then
15066 LIBS=`echo $LIBS | sed s/-ldl//`
15067 PERL_LIBS="$PERL_LIBS -ldl"
15068 fi
15069fi
15070
15071if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15072 && test "x$GUITYPE" != "xCARBONGUI"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015073 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15074echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015075 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
15076 || test "x$features" = "xhuge"; then
15077 LIBS="$LIBS -framework Carbon"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015078 echo "$as_me:$LINENO: result: yes" >&5
15079echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015080 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015081 echo "$as_me:$LINENO: result: no" >&5
15082echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015083 fi
15084fi
15085
Bram Moolenaara5792f52005-11-23 21:25:05 +000015086echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15087echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015088DEPEND_CFLAGS_FILTER=
15089if test "$GCC" = yes; then
Bram Moolenaara5792f52005-11-23 21:25:05 +000015090 gccmajor=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([1-9]\)\.[0-9.]*.*$/\1/g'`
15091 if test "$gccmajor" > "2"; then
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015092 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15093 fi
15094fi
Bram Moolenaara5792f52005-11-23 21:25:05 +000015095if test "$DEPEND_CFLAGS_FILTER" = ""; then
15096 echo "$as_me:$LINENO: result: no" >&5
15097echo "${ECHO_T}no" >&6
15098else
15099 echo "$as_me:$LINENO: result: yes" >&5
15100echo "${ECHO_T}yes" >&6
15101fi
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015102
Bram Moolenaar071d4272004-06-13 20:20:40 +000015103
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015104 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15105cat >confcache <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015106# This file is a shell script that caches the results of configure
15107# tests run on this system so they can be shared between configure
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015108# scripts and configure runs, see configure's option --config-cache.
15109# It is not useful on other systems. If it contains results you don't
15110# want to keep, you may remove or edit it.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015111#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015112# config.status only pays attention to the cache file if you give it
15113# the --recheck option to rerun configure.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015114#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015115# `ac_cv_env_foo' variables (set or unset) will be overridden when
15116# loading this file, other *unset* `ac_cv_foo' will be assigned the
15117# following values.
15118
15119_ACEOF
15120
Bram Moolenaar071d4272004-06-13 20:20:40 +000015121# The following way of writing the cache mishandles newlines in values,
15122# but we know of no workaround that is simple, portable, and efficient.
15123# So, don't put newlines in cache variables' values.
15124# Ultrix sh set writes to stderr and can't be redirected directly,
15125# and sets the high bit in the cache file unless we assign to the vars.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015126{
15127 (set) 2>&1 |
15128 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15129 *ac_space=\ *)
15130 # `set' does not quote correctly, so add quotes (double-quote
15131 # substitution turns \\\\ into \\, and sed turns \\ into \).
15132 sed -n \
15133 "s/'/'\\\\''/g;
15134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15135 ;;
15136 *)
15137 # `set' quotes correctly as required by POSIX, so do not add quotes.
15138 sed -n \
15139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15140 ;;
15141 esac;
15142} |
15143 sed '
15144 t clear
15145 : clear
15146 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15147 t end
15148 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15149 : end' >>confcache
15150if diff $cache_file confcache >/dev/null 2>&1; then :; else
Bram Moolenaar071d4272004-06-13 20:20:40 +000015151 if test -w $cache_file; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015152 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15153 cat confcache >$cache_file
Bram Moolenaar071d4272004-06-13 20:20:40 +000015154 else
15155 echo "not updating unwritable cache $cache_file"
15156 fi
15157fi
15158rm -f confcache
15159
Bram Moolenaar071d4272004-06-13 20:20:40 +000015160test "x$prefix" = xNONE && prefix=$ac_default_prefix
15161# Let make expand exec_prefix.
15162test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15163
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015164# VPATH may cause trouble with some makes, so we remove $(srcdir),
15165# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15166# trailing colons and then remove the whole line if VPATH becomes empty
15167# (actually we leave an empty line to preserve line numbers).
Bram Moolenaar071d4272004-06-13 20:20:40 +000015168if test "x$srcdir" = x.; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015169 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15170s/:*\$(srcdir):*/:/;
15171s/:*\${srcdir}:*/:/;
15172s/:*@srcdir@:*/:/;
15173s/^\([^=]*=[ ]*\):*/\1/;
15174s/:*$//;
15175s/^[^=]*=[ ]*$//;
15176}'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015177fi
15178
Bram Moolenaar071d4272004-06-13 20:20:40 +000015179DEFS=-DHAVE_CONFIG_H
15180
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015181ac_libobjs=
15182ac_ltlibobjs=
15183for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15184 # 1. Remove the extension, and $U if already installed.
15185 ac_i=`echo "$ac_i" |
15186 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15187 # 2. Add them.
15188 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15189 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15190done
15191LIBOBJS=$ac_libobjs
15192
15193LTLIBOBJS=$ac_ltlibobjs
15194
15195
15196
Bram Moolenaar071d4272004-06-13 20:20:40 +000015197: ${CONFIG_STATUS=./config.status}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015198ac_clean_files_save=$ac_clean_files
15199ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15200{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15201echo "$as_me: creating $CONFIG_STATUS" >&6;}
15202cat >$CONFIG_STATUS <<_ACEOF
15203#! $SHELL
15204# Generated by $as_me.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015205# Run this file to recreate the current configuration.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015206# Compiler output produced by configure, useful for debugging
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015207# configure, is in config.log if it exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015208
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015209debug=false
15210ac_cs_recheck=false
15211ac_cs_silent=false
15212SHELL=\${CONFIG_SHELL-$SHELL}
15213_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015214
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015215cat >>$CONFIG_STATUS <<\_ACEOF
15216## --------------------- ##
15217## M4sh Initialization. ##
15218## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000015219
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015220# Be Bourne compatible
15221if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15222 emulate sh
15223 NULLCMD=:
15224 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15225 # is contrary to our usage. Disable this feature.
15226 alias -g '${1+"$@"}'='"$@"'
15227elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15228 set -o posix
Bram Moolenaar071d4272004-06-13 20:20:40 +000015229fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015230DUALCASE=1; export DUALCASE # for MKS sh
Bram Moolenaar071d4272004-06-13 20:20:40 +000015231
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015232# Support unset when possible.
15233if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15234 as_unset=unset
15235else
15236 as_unset=false
15237fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015238
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015239
15240# Work around bugs in pre-3.0 UWIN ksh.
15241$as_unset ENV MAIL MAILPATH
15242PS1='$ '
15243PS2='> '
15244PS4='+ '
15245
15246# NLS nuisances.
15247for as_var in \
15248 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15249 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15250 LC_TELEPHONE LC_TIME
15251do
15252 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15253 eval $as_var=C; export $as_var
15254 else
15255 $as_unset $as_var
15256 fi
15257done
15258
15259# Required to use basename.
15260if expr a : '\(a\)' >/dev/null 2>&1; then
15261 as_expr=expr
15262else
15263 as_expr=false
15264fi
15265
15266if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15267 as_basename=basename
15268else
15269 as_basename=false
15270fi
15271
15272
15273# Name of the executable.
15274as_me=`$as_basename "$0" ||
15275$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15276 X"$0" : 'X\(//\)$' \| \
15277 X"$0" : 'X\(/\)$' \| \
15278 . : '\(.\)' 2>/dev/null ||
15279echo X/"$0" |
15280 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15281 /^X\/\(\/\/\)$/{ s//\1/; q; }
15282 /^X\/\(\/\).*/{ s//\1/; q; }
15283 s/.*/./; q'`
15284
15285
15286# PATH needs CR, and LINENO needs CR and PATH.
15287# Avoid depending upon Character Ranges.
15288as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15289as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15290as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15291as_cr_digits='0123456789'
15292as_cr_alnum=$as_cr_Letters$as_cr_digits
15293
15294# The user is always right.
15295if test "${PATH_SEPARATOR+set}" != set; then
15296 echo "#! /bin/sh" >conf$$.sh
15297 echo "exit 0" >>conf$$.sh
15298 chmod +x conf$$.sh
15299 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15300 PATH_SEPARATOR=';'
15301 else
15302 PATH_SEPARATOR=:
15303 fi
15304 rm -f conf$$.sh
15305fi
15306
15307
15308 as_lineno_1=$LINENO
15309 as_lineno_2=$LINENO
15310 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15311 test "x$as_lineno_1" != "x$as_lineno_2" &&
15312 test "x$as_lineno_3" = "x$as_lineno_2" || {
15313 # Find who we are. Look in the path if we contain no path at all
15314 # relative or not.
15315 case $0 in
15316 *[\\/]* ) as_myself=$0 ;;
15317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15318for as_dir in $PATH
15319do
15320 IFS=$as_save_IFS
15321 test -z "$as_dir" && as_dir=.
15322 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15323done
15324
15325 ;;
15326 esac
15327 # We did not find ourselves, most probably we were run as `sh COMMAND'
15328 # in which case we are not to be found in the path.
15329 if test "x$as_myself" = x; then
15330 as_myself=$0
15331 fi
15332 if test ! -f "$as_myself"; then
15333 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15334echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15335 { (exit 1); exit 1; }; }
15336 fi
15337 case $CONFIG_SHELL in
15338 '')
15339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15340for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15341do
15342 IFS=$as_save_IFS
15343 test -z "$as_dir" && as_dir=.
15344 for as_base in sh bash ksh sh5; do
15345 case $as_dir in
15346 /*)
15347 if ("$as_dir/$as_base" -c '
15348 as_lineno_1=$LINENO
15349 as_lineno_2=$LINENO
15350 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15351 test "x$as_lineno_1" != "x$as_lineno_2" &&
15352 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15353 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15354 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15355 CONFIG_SHELL=$as_dir/$as_base
15356 export CONFIG_SHELL
15357 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15358 fi;;
15359 esac
15360 done
15361done
15362;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015363 esac
15364
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015365 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15366 # uniformly replaced by the line number. The first 'sed' inserts a
15367 # line-number line before each line; the second 'sed' does the real
15368 # work. The second script uses 'N' to pair each line-number line
15369 # with the numbered line, and appends trailing '-' during
15370 # substitution so that $LINENO is not a special case at line end.
15371 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15372 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15373 sed '=' <$as_myself |
15374 sed '
15375 N
15376 s,$,-,
15377 : loop
15378 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15379 t loop
15380 s,-$,,
15381 s,^['$as_cr_digits']*\n,,
15382 ' >$as_me.lineno &&
15383 chmod +x $as_me.lineno ||
15384 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15385echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15386 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000015387
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015388 # Don't try to exec as it changes $[0], causing all sort of problems
15389 # (the dirname of $[0] is not the place where we might find the
15390 # original and so on. Autoconf is especially sensible to this).
15391 . ./$as_me.lineno
15392 # Exit status is that of the last command.
15393 exit
15394}
15395
15396
15397case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15398 *c*,-n*) ECHO_N= ECHO_C='
15399' ECHO_T=' ' ;;
15400 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15401 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15402esac
15403
15404if expr a : '\(a\)' >/dev/null 2>&1; then
15405 as_expr=expr
15406else
15407 as_expr=false
15408fi
15409
15410rm -f conf$$ conf$$.exe conf$$.file
15411echo >conf$$.file
15412if ln -s conf$$.file conf$$ 2>/dev/null; then
15413 # We could just check for DJGPP; but this test a) works b) is more generic
15414 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15415 if test -f conf$$.exe; then
15416 # Don't use ln at all; we don't have any links
15417 as_ln_s='cp -p'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015418 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015419 as_ln_s='ln -s'
15420 fi
15421elif ln conf$$.file conf$$ 2>/dev/null; then
15422 as_ln_s=ln
15423else
15424 as_ln_s='cp -p'
15425fi
15426rm -f conf$$ conf$$.exe conf$$.file
15427
15428if mkdir -p . 2>/dev/null; then
15429 as_mkdir_p=:
15430else
15431 test -d ./-p && rmdir ./-p
15432 as_mkdir_p=false
15433fi
15434
15435as_executable_p="test -f"
15436
15437# Sed expression to map a string onto a valid CPP name.
15438as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15439
15440# Sed expression to map a string onto a valid variable name.
15441as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15442
15443
15444# IFS
15445# We need space, tab and new line, in precisely that order.
15446as_nl='
15447'
15448IFS=" $as_nl"
15449
15450# CDPATH.
15451$as_unset CDPATH
15452
15453exec 6>&1
15454
15455# Open the log real soon, to keep \$[0] and so on meaningful, and to
15456# report actual input values of CONFIG_FILES etc. instead of their
15457# values after options handling. Logging --version etc. is OK.
Bram Moolenaarc7453f52006-02-10 23:20:28 +000015458exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015459{
15460 echo
15461 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15462## Running $as_me. ##
15463_ASBOX
15464} >&5
15465cat >&5 <<_CSEOF
15466
15467This file was extended by $as_me, which was
15468generated by GNU Autoconf 2.59. Invocation command line was
15469
15470 CONFIG_FILES = $CONFIG_FILES
15471 CONFIG_HEADERS = $CONFIG_HEADERS
15472 CONFIG_LINKS = $CONFIG_LINKS
15473 CONFIG_COMMANDS = $CONFIG_COMMANDS
15474 $ $0 $@
15475
15476_CSEOF
15477echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15478echo >&5
15479_ACEOF
15480
15481# Files that config.status was made for.
15482if test -n "$ac_config_files"; then
15483 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15484fi
15485
15486if test -n "$ac_config_headers"; then
15487 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15488fi
15489
15490if test -n "$ac_config_links"; then
15491 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15492fi
15493
15494if test -n "$ac_config_commands"; then
15495 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15496fi
15497
15498cat >>$CONFIG_STATUS <<\_ACEOF
15499
15500ac_cs_usage="\
15501\`$as_me' instantiates files from templates according to the
15502current configuration.
15503
15504Usage: $0 [OPTIONS] [FILE]...
15505
15506 -h, --help print this help, then exit
15507 -V, --version print version number, then exit
15508 -q, --quiet do not print progress messages
15509 -d, --debug don't remove temporary files
15510 --recheck update $as_me by reconfiguring in the same conditions
15511 --file=FILE[:TEMPLATE]
15512 instantiate the configuration file FILE
15513 --header=FILE[:TEMPLATE]
15514 instantiate the configuration header FILE
15515
15516Configuration files:
15517$config_files
15518
15519Configuration headers:
15520$config_headers
15521
15522Report bugs to <bug-autoconf@gnu.org>."
15523_ACEOF
15524
15525cat >>$CONFIG_STATUS <<_ACEOF
15526ac_cs_version="\\
15527config.status
15528configured by $0, generated by GNU Autoconf 2.59,
15529 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15530
15531Copyright (C) 2003 Free Software Foundation, Inc.
15532This config.status script is free software; the Free Software Foundation
15533gives unlimited permission to copy, distribute and modify it."
15534srcdir=$srcdir
15535_ACEOF
15536
15537cat >>$CONFIG_STATUS <<\_ACEOF
15538# If no file are specified by the user, then we need to provide default
15539# value. By we need to know if files were specified by the user.
15540ac_need_defaults=:
15541while test $# != 0
15542do
15543 case $1 in
15544 --*=*)
15545 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15546 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15547 ac_shift=:
15548 ;;
15549 -*)
15550 ac_option=$1
15551 ac_optarg=$2
15552 ac_shift=shift
15553 ;;
15554 *) # This is not an option, so the user has probably given explicit
15555 # arguments.
15556 ac_option=$1
15557 ac_need_defaults=false;;
15558 esac
15559
15560 case $ac_option in
15561 # Handling of the options.
15562_ACEOF
15563cat >>$CONFIG_STATUS <<\_ACEOF
15564 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15565 ac_cs_recheck=: ;;
15566 --version | --vers* | -V )
15567 echo "$ac_cs_version"; exit 0 ;;
15568 --he | --h)
15569 # Conflict between --help and --header
15570 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15571Try \`$0 --help' for more information." >&5
15572echo "$as_me: error: ambiguous option: $1
15573Try \`$0 --help' for more information." >&2;}
15574 { (exit 1); exit 1; }; };;
15575 --help | --hel | -h )
15576 echo "$ac_cs_usage"; exit 0 ;;
15577 --debug | --d* | -d )
15578 debug=: ;;
15579 --file | --fil | --fi | --f )
15580 $ac_shift
15581 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15582 ac_need_defaults=false;;
15583 --header | --heade | --head | --hea )
15584 $ac_shift
15585 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15586 ac_need_defaults=false;;
15587 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15588 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15589 ac_cs_silent=: ;;
15590
15591 # This is an error.
15592 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15593Try \`$0 --help' for more information." >&5
15594echo "$as_me: error: unrecognized option: $1
15595Try \`$0 --help' for more information." >&2;}
15596 { (exit 1); exit 1; }; } ;;
15597
15598 *) ac_config_targets="$ac_config_targets $1" ;;
15599
15600 esac
15601 shift
15602done
15603
15604ac_configure_extra_args=
15605
15606if $ac_cs_silent; then
15607 exec 6>/dev/null
15608 ac_configure_extra_args="$ac_configure_extra_args --silent"
15609fi
15610
15611_ACEOF
15612cat >>$CONFIG_STATUS <<_ACEOF
15613if \$ac_cs_recheck; then
15614 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15615 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15616fi
15617
15618_ACEOF
15619
15620
15621
15622
15623
15624cat >>$CONFIG_STATUS <<\_ACEOF
15625for ac_config_target in $ac_config_targets
15626do
15627 case "$ac_config_target" in
15628 # Handling of arguments.
15629 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15630 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15631 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15632echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15633 { (exit 1); exit 1; }; };;
15634 esac
15635done
15636
15637# If the user did not use the arguments to specify the items to instantiate,
15638# then the envvar interface is used. Set only those that are not.
15639# We use the long form for the default assignment because of an extremely
15640# bizarre bug on SunOS 4.1.3.
15641if $ac_need_defaults; then
15642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15643 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15644fi
15645
15646# Have a temporary directory for convenience. Make it in the build tree
15647# simply because there is no reason to put it here, and in addition,
15648# creating and moving files from /tmp can sometimes cause problems.
15649# Create a temporary directory, and hook for its removal unless debugging.
15650$debug ||
15651{
15652 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15653 trap '{ (exit 1); exit 1; }' 1 2 13 15
15654}
15655
15656# Create a (secure) tmp directory for tmp files.
15657
15658{
15659 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15660 test -n "$tmp" && test -d "$tmp"
15661} ||
15662{
15663 tmp=./confstat$$-$RANDOM
15664 (umask 077 && mkdir $tmp)
15665} ||
15666{
15667 echo "$me: cannot create a temporary directory in ." >&2
15668 { (exit 1); exit 1; }
15669}
15670
15671_ACEOF
15672
15673cat >>$CONFIG_STATUS <<_ACEOF
15674
15675#
15676# CONFIG_FILES section.
15677#
15678
15679# No need to generate the scripts if there are no CONFIG_FILES.
15680# This happens for instance when ./config.status config.h
15681if test -n "\$CONFIG_FILES"; then
15682 # Protect against being on the right side of a sed subst in config.status.
15683 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15684 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15685s,@SHELL@,$SHELL,;t t
15686s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15687s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15688s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15689s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15690s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15691s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15692s,@exec_prefix@,$exec_prefix,;t t
15693s,@prefix@,$prefix,;t t
15694s,@program_transform_name@,$program_transform_name,;t t
15695s,@bindir@,$bindir,;t t
15696s,@sbindir@,$sbindir,;t t
15697s,@libexecdir@,$libexecdir,;t t
15698s,@datadir@,$datadir,;t t
15699s,@sysconfdir@,$sysconfdir,;t t
15700s,@sharedstatedir@,$sharedstatedir,;t t
15701s,@localstatedir@,$localstatedir,;t t
15702s,@libdir@,$libdir,;t t
15703s,@includedir@,$includedir,;t t
15704s,@oldincludedir@,$oldincludedir,;t t
15705s,@infodir@,$infodir,;t t
15706s,@mandir@,$mandir,;t t
15707s,@build_alias@,$build_alias,;t t
15708s,@host_alias@,$host_alias,;t t
15709s,@target_alias@,$target_alias,;t t
15710s,@DEFS@,$DEFS,;t t
15711s,@ECHO_C@,$ECHO_C,;t t
15712s,@ECHO_N@,$ECHO_N,;t t
15713s,@ECHO_T@,$ECHO_T,;t t
15714s,@LIBS@,$LIBS,;t t
15715s,@SET_MAKE@,$SET_MAKE,;t t
15716s,@CC@,$CC,;t t
15717s,@CFLAGS@,$CFLAGS,;t t
15718s,@LDFLAGS@,$LDFLAGS,;t t
15719s,@CPPFLAGS@,$CPPFLAGS,;t t
15720s,@ac_ct_CC@,$ac_ct_CC,;t t
15721s,@EXEEXT@,$EXEEXT,;t t
15722s,@OBJEXT@,$OBJEXT,;t t
15723s,@CPP@,$CPP,;t t
15724s,@EGREP@,$EGREP,;t t
15725s,@AWK@,$AWK,;t t
15726s,@STRIP@,$STRIP,;t t
15727s,@CPP_MM@,$CPP_MM,;t t
15728s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
15729s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
15730s,@VIMNAME@,$VIMNAME,;t t
15731s,@EXNAME@,$EXNAME,;t t
15732s,@VIEWNAME@,$VIEWNAME,;t t
15733s,@line_break@,$line_break,;t t
15734s,@dovimdiff@,$dovimdiff,;t t
15735s,@dogvimdiff@,$dogvimdiff,;t t
15736s,@compiledby@,$compiledby,;t t
15737s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
15738s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
15739s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
15740s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
15741s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
15742s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
15743s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
15744s,@vi_cv_perllib@,$vi_cv_perllib,;t t
15745s,@shrpenv@,$shrpenv,;t t
15746s,@PERL_SRC@,$PERL_SRC,;t t
15747s,@PERL_OBJ@,$PERL_OBJ,;t t
15748s,@PERL_PRO@,$PERL_PRO,;t t
15749s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
15750s,@PERL_LIBS@,$PERL_LIBS,;t t
15751s,@vi_cv_path_python@,$vi_cv_path_python,;t t
15752s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
15753s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
15754s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
15755s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
15756s,@PYTHON_SRC@,$PYTHON_SRC,;t t
15757s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
15758s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
15759s,@TCL_SRC@,$TCL_SRC,;t t
15760s,@TCL_OBJ@,$TCL_OBJ,;t t
15761s,@TCL_PRO@,$TCL_PRO,;t t
15762s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
15763s,@TCL_LIBS@,$TCL_LIBS,;t t
15764s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
15765s,@RUBY_SRC@,$RUBY_SRC,;t t
15766s,@RUBY_OBJ@,$RUBY_OBJ,;t t
15767s,@RUBY_PRO@,$RUBY_PRO,;t t
15768s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
15769s,@RUBY_LIBS@,$RUBY_LIBS,;t t
15770s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
15771s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
15772s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
15773s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
15774s,@SNIFF_SRC@,$SNIFF_SRC,;t t
15775s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
15776s,@xmkmfpath@,$xmkmfpath,;t t
15777s,@X_CFLAGS@,$X_CFLAGS,;t t
15778s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15779s,@X_LIBS@,$X_LIBS,;t t
15780s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15781s,@X_LIB@,$X_LIB,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015782s,@GTK_CONFIG@,$GTK_CONFIG,;t t
15783s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
15784s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15785s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15786s,@GTK_LIBS@,$GTK_LIBS,;t t
15787s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
15788s,@GNOME_LIBS@,$GNOME_LIBS,;t t
15789s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
15790s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
15791s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
15792s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
15793s,@NARROW_PROTO@,$NARROW_PROTO,;t t
15794s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
15795s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
15796s,@GUITYPE@,$GUITYPE,;t t
15797s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
15798s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
15799s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
15800s,@TAGPRG@,$TAGPRG,;t t
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000015801s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
15802s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015803s,@MSGFMT@,$MSGFMT,;t t
15804s,@MAKEMO@,$MAKEMO,;t t
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015805s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015806s,@LIBOBJS@,$LIBOBJS,;t t
15807s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15808CEOF
15809
15810_ACEOF
15811
15812 cat >>$CONFIG_STATUS <<\_ACEOF
15813 # Split the substitutions into bite-sized pieces for seds with
15814 # small command number limits, like on Digital OSF/1 and HP-UX.
15815 ac_max_sed_lines=48
15816 ac_sed_frag=1 # Number of current file.
15817 ac_beg=1 # First line for current file.
15818 ac_end=$ac_max_sed_lines # Line after last line for current file.
15819 ac_more_lines=:
15820 ac_sed_cmds=
15821 while $ac_more_lines; do
15822 if test $ac_beg -gt 1; then
15823 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15824 else
15825 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15826 fi
15827 if test ! -s $tmp/subs.frag; then
15828 ac_more_lines=false
15829 else
15830 # The purpose of the label and of the branching condition is to
15831 # speed up the sed processing (if there are no `@' at all, there
15832 # is no need to browse any of the substitutions).
15833 # These are the two extra sed commands mentioned above.
15834 (echo ':t
15835 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15836 if test -z "$ac_sed_cmds"; then
15837 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15838 else
15839 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15840 fi
15841 ac_sed_frag=`expr $ac_sed_frag + 1`
15842 ac_beg=$ac_end
15843 ac_end=`expr $ac_end + $ac_max_sed_lines`
15844 fi
15845 done
15846 if test -z "$ac_sed_cmds"; then
15847 ac_sed_cmds=cat
15848 fi
15849fi # test -n "$CONFIG_FILES"
15850
15851_ACEOF
15852cat >>$CONFIG_STATUS <<\_ACEOF
15853for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15854 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15855 case $ac_file in
15856 - | *:- | *:-:* ) # input from stdin
15857 cat >$tmp/stdin
15858 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15859 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15860 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15861 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15862 * ) ac_file_in=$ac_file.in ;;
15863 esac
15864
15865 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15866 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15867$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15868 X"$ac_file" : 'X\(//\)[^/]' \| \
15869 X"$ac_file" : 'X\(//\)$' \| \
15870 X"$ac_file" : 'X\(/\)' \| \
15871 . : '\(.\)' 2>/dev/null ||
15872echo X"$ac_file" |
15873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15875 /^X\(\/\/\)$/{ s//\1/; q; }
15876 /^X\(\/\).*/{ s//\1/; q; }
15877 s/.*/./; q'`
15878 { if $as_mkdir_p; then
15879 mkdir -p "$ac_dir"
15880 else
15881 as_dir="$ac_dir"
15882 as_dirs=
15883 while test ! -d "$as_dir"; do
15884 as_dirs="$as_dir $as_dirs"
15885 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15886$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15887 X"$as_dir" : 'X\(//\)[^/]' \| \
15888 X"$as_dir" : 'X\(//\)$' \| \
15889 X"$as_dir" : 'X\(/\)' \| \
15890 . : '\(.\)' 2>/dev/null ||
15891echo X"$as_dir" |
15892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15893 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15894 /^X\(\/\/\)$/{ s//\1/; q; }
15895 /^X\(\/\).*/{ s//\1/; q; }
15896 s/.*/./; q'`
15897 done
15898 test ! -n "$as_dirs" || mkdir $as_dirs
15899 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15900echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15901 { (exit 1); exit 1; }; }; }
15902
15903 ac_builddir=.
15904
15905if test "$ac_dir" != .; then
15906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15907 # A "../" for each directory in $ac_dir_suffix.
15908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15909else
15910 ac_dir_suffix= ac_top_builddir=
15911fi
15912
15913case $srcdir in
15914 .) # No --srcdir option. We are building in place.
15915 ac_srcdir=.
15916 if test -z "$ac_top_builddir"; then
15917 ac_top_srcdir=.
15918 else
15919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15920 fi ;;
15921 [\\/]* | ?:[\\/]* ) # Absolute path.
15922 ac_srcdir=$srcdir$ac_dir_suffix;
15923 ac_top_srcdir=$srcdir ;;
15924 *) # Relative path.
15925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15927esac
15928
15929# Do not use `cd foo && pwd` to compute absolute paths, because
15930# the directories may not exist.
15931case `pwd` in
15932.) ac_abs_builddir="$ac_dir";;
15933*)
15934 case "$ac_dir" in
15935 .) ac_abs_builddir=`pwd`;;
15936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15938 esac;;
15939esac
15940case $ac_abs_builddir in
15941.) ac_abs_top_builddir=${ac_top_builddir}.;;
15942*)
15943 case ${ac_top_builddir}. in
15944 .) ac_abs_top_builddir=$ac_abs_builddir;;
15945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15947 esac;;
15948esac
15949case $ac_abs_builddir in
15950.) ac_abs_srcdir=$ac_srcdir;;
15951*)
15952 case $ac_srcdir in
15953 .) ac_abs_srcdir=$ac_abs_builddir;;
15954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15956 esac;;
15957esac
15958case $ac_abs_builddir in
15959.) ac_abs_top_srcdir=$ac_top_srcdir;;
15960*)
15961 case $ac_top_srcdir in
15962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15965 esac;;
15966esac
15967
15968
15969
15970 if test x"$ac_file" != x-; then
15971 { echo "$as_me:$LINENO: creating $ac_file" >&5
15972echo "$as_me: creating $ac_file" >&6;}
15973 rm -f "$ac_file"
15974 fi
15975 # Let's still pretend it is `configure' which instantiates (i.e., don't
15976 # use $as_me), people would be surprised to read:
15977 # /* config.h. Generated by config.status. */
15978 if test x"$ac_file" = x-; then
15979 configure_input=
15980 else
15981 configure_input="$ac_file. "
15982 fi
15983 configure_input=$configure_input"Generated from `echo $ac_file_in |
15984 sed 's,.*/,,'` by configure."
15985
15986 # First look for the input files in the build tree, otherwise in the
15987 # src tree.
15988 ac_file_inputs=`IFS=:
15989 for f in $ac_file_in; do
15990 case $f in
15991 -) echo $tmp/stdin ;;
15992 [\\/$]*)
15993 # Absolute (can't be DOS-style, as IFS=:)
15994 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15995echo "$as_me: error: cannot find input file: $f" >&2;}
15996 { (exit 1); exit 1; }; }
15997 echo "$f";;
15998 *) # Relative
15999 if test -f "$f"; then
16000 # Build tree
16001 echo "$f"
16002 elif test -f "$srcdir/$f"; then
16003 # Source tree
16004 echo "$srcdir/$f"
16005 else
16006 # /dev/null tree
16007 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16008echo "$as_me: error: cannot find input file: $f" >&2;}
16009 { (exit 1); exit 1; }; }
16010 fi;;
16011 esac
16012 done` || { (exit 1); exit 1; }
16013_ACEOF
16014cat >>$CONFIG_STATUS <<_ACEOF
16015 sed "$ac_vpsub
16016$extrasub
16017_ACEOF
16018cat >>$CONFIG_STATUS <<\_ACEOF
16019:t
16020/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16021s,@configure_input@,$configure_input,;t t
16022s,@srcdir@,$ac_srcdir,;t t
16023s,@abs_srcdir@,$ac_abs_srcdir,;t t
16024s,@top_srcdir@,$ac_top_srcdir,;t t
16025s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16026s,@builddir@,$ac_builddir,;t t
16027s,@abs_builddir@,$ac_abs_builddir,;t t
16028s,@top_builddir@,$ac_top_builddir,;t t
16029s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16030" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16031 rm -f $tmp/stdin
16032 if test x"$ac_file" != x-; then
16033 mv $tmp/out $ac_file
16034 else
16035 cat $tmp/out
16036 rm -f $tmp/out
Bram Moolenaar071d4272004-06-13 20:20:40 +000016037 fi
16038
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016039done
16040_ACEOF
16041cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016042
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016043#
16044# CONFIG_HEADER section.
16045#
Bram Moolenaar071d4272004-06-13 20:20:40 +000016046
16047# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16048# NAME is the cpp macro being defined and VALUE is the value it is being given.
16049#
16050# ac_d sets the value in "#define NAME VALUE" lines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016051ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16052ac_dB='[ ].*$,\1#\2'
16053ac_dC=' '
16054ac_dD=',;t'
16055# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16056ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16057ac_uB='$,\1#\2define\3'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016058ac_uC=' '
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016059ac_uD=',;t'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016060
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016061for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Bram Moolenaar071d4272004-06-13 20:20:40 +000016062 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016063 case $ac_file in
16064 - | *:- | *:-:* ) # input from stdin
16065 cat >$tmp/stdin
16066 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16067 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16068 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16069 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16070 * ) ac_file_in=$ac_file.in ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000016071 esac
16072
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016073 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16074echo "$as_me: creating $ac_file" >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +000016075
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016076 # First look for the input files in the build tree, otherwise in the
16077 # src tree.
16078 ac_file_inputs=`IFS=:
16079 for f in $ac_file_in; do
16080 case $f in
16081 -) echo $tmp/stdin ;;
16082 [\\/$]*)
16083 # Absolute (can't be DOS-style, as IFS=:)
16084 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16085echo "$as_me: error: cannot find input file: $f" >&2;}
16086 { (exit 1); exit 1; }; }
16087 # Do quote $f, to prevent DOS paths from being IFS'd.
16088 echo "$f";;
16089 *) # Relative
16090 if test -f "$f"; then
16091 # Build tree
16092 echo "$f"
16093 elif test -f "$srcdir/$f"; then
16094 # Source tree
16095 echo "$srcdir/$f"
16096 else
16097 # /dev/null tree
16098 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16099echo "$as_me: error: cannot find input file: $f" >&2;}
16100 { (exit 1); exit 1; }; }
16101 fi;;
16102 esac
16103 done` || { (exit 1); exit 1; }
16104 # Remove the trailing spaces.
16105 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Bram Moolenaar071d4272004-06-13 20:20:40 +000016106
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016107_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016108
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016109# Transform confdefs.h into two sed scripts, `conftest.defines' and
16110# `conftest.undefs', that substitutes the proper values into
16111# config.h.in to produce config.h. The first handles `#define'
16112# templates, and the second `#undef' templates.
16113# And first: Protect against being on the right side of a sed subst in
16114# config.status. Protect against being in an unquoted here document
16115# in config.status.
16116rm -f conftest.defines conftest.undefs
16117# Using a here document instead of a string reduces the quoting nightmare.
16118# Putting comments in sed scripts is not portable.
16119#
16120# `end' is used to avoid that the second main sed command (meant for
16121# 0-ary CPP macros) applies to n-ary macro definitions.
16122# See the Autoconf documentation for `clear'.
16123cat >confdef2sed.sed <<\_ACEOF
16124s/[\\&,]/\\&/g
16125s,[\\$`],\\&,g
16126t clear
16127: clear
16128s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16129t end
16130s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16131: end
16132_ACEOF
16133# If some macros were called several times there might be several times
16134# the same #defines, which is useless. Nevertheless, we may not want to
16135# sort them, since we want the *last* AC-DEFINE to be honored.
16136uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16137sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16138rm -f confdef2sed.sed
Bram Moolenaar071d4272004-06-13 20:20:40 +000016139
16140# This sed command replaces #undef with comments. This is necessary, for
16141# example, in the case of _POSIX_SOURCE, which is predefined and required
16142# on some systems where configure will not decide to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016143cat >>conftest.undefs <<\_ACEOF
16144s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16145_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016146
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016147# Break up conftest.defines because some shells have a limit on the size
16148# of here documents, and old seds have small limits too (100 cmds).
16149echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16150echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16151echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16152echo ' :' >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016153rm -f conftest.tail
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016154while grep . conftest.defines >/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +000016155do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016156 # Write a limited-size here document to $tmp/defines.sed.
16157 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16158 # Speed up: don't consider the non `#define' lines.
16159 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16160 # Work around the forget-to-reset-the-flag bug.
16161 echo 't clr' >>$CONFIG_STATUS
16162 echo ': clr' >>$CONFIG_STATUS
16163 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016164 echo 'CEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016165 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16166 rm -f $tmp/in
16167 mv $tmp/out $tmp/in
16168' >>$CONFIG_STATUS
16169 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16170 rm -f conftest.defines
16171 mv conftest.tail conftest.defines
Bram Moolenaar071d4272004-06-13 20:20:40 +000016172done
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016173rm -f conftest.defines
16174echo ' fi # grep' >>$CONFIG_STATUS
16175echo >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016176
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016177# Break up conftest.undefs because some shells have a limit on the size
16178# of here documents, and old seds have small limits too (100 cmds).
16179echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16180rm -f conftest.tail
16181while grep . conftest.undefs >/dev/null
16182do
16183 # Write a limited-size here document to $tmp/undefs.sed.
16184 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16185 # Speed up: don't consider the non `#undef'
16186 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16187 # Work around the forget-to-reset-the-flag bug.
16188 echo 't clr' >>$CONFIG_STATUS
16189 echo ': clr' >>$CONFIG_STATUS
16190 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16191 echo 'CEOF
16192 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16193 rm -f $tmp/in
16194 mv $tmp/out $tmp/in
16195' >>$CONFIG_STATUS
16196 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16197 rm -f conftest.undefs
16198 mv conftest.tail conftest.undefs
16199done
16200rm -f conftest.undefs
16201
16202cat >>$CONFIG_STATUS <<\_ACEOF
16203 # Let's still pretend it is `configure' which instantiates (i.e., don't
16204 # use $as_me), people would be surprised to read:
16205 # /* config.h. Generated by config.status. */
16206 if test x"$ac_file" = x-; then
16207 echo "/* Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016208 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016209 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016210 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016211 cat $tmp/in >>$tmp/config.h
16212 rm -f $tmp/in
16213 if test x"$ac_file" != x-; then
16214 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16215 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16216echo "$as_me: $ac_file is unchanged" >&6;}
16217 else
16218 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16219$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16220 X"$ac_file" : 'X\(//\)[^/]' \| \
16221 X"$ac_file" : 'X\(//\)$' \| \
16222 X"$ac_file" : 'X\(/\)' \| \
16223 . : '\(.\)' 2>/dev/null ||
16224echo X"$ac_file" |
16225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16227 /^X\(\/\/\)$/{ s//\1/; q; }
16228 /^X\(\/\).*/{ s//\1/; q; }
16229 s/.*/./; q'`
16230 { if $as_mkdir_p; then
16231 mkdir -p "$ac_dir"
16232 else
16233 as_dir="$ac_dir"
16234 as_dirs=
16235 while test ! -d "$as_dir"; do
16236 as_dirs="$as_dir $as_dirs"
16237 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16238$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16239 X"$as_dir" : 'X\(//\)[^/]' \| \
16240 X"$as_dir" : 'X\(//\)$' \| \
16241 X"$as_dir" : 'X\(/\)' \| \
16242 . : '\(.\)' 2>/dev/null ||
16243echo X"$as_dir" |
16244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16245 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16246 /^X\(\/\/\)$/{ s//\1/; q; }
16247 /^X\(\/\).*/{ s//\1/; q; }
16248 s/.*/./; q'`
16249 done
16250 test ! -n "$as_dirs" || mkdir $as_dirs
16251 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16252echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16253 { (exit 1); exit 1; }; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000016254
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016255 rm -f $ac_file
16256 mv $tmp/config.h $ac_file
16257 fi
16258 else
16259 cat $tmp/config.h
16260 rm -f $tmp/config.h
16261 fi
16262done
16263_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016264
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016265cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016266
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016267{ (exit 0); exit 0; }
16268_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016269chmod +x $CONFIG_STATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016270ac_clean_files=$ac_clean_files_save
16271
16272
16273# configure is writing to config.log, and then calls config.status.
16274# config.status does its own redirection, appending to config.log.
16275# Unfortunately, on DOS this fails, as config.log is still kept open
16276# by configure, so config.status won't be able to write to it; its
16277# output is simply discarded. So we exec the FD to /dev/null,
16278# effectively closing config.log, so it can be properly (re)opened and
16279# appended to by config.status. When coming back to configure, we
16280# need to make the FD available again.
16281if test "$no_create" != yes; then
16282 ac_cs_success=:
16283 ac_config_status_args=
16284 test "$silent" = yes &&
16285 ac_config_status_args="$ac_config_status_args --quiet"
16286 exec 5>/dev/null
16287 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Bram Moolenaarc7453f52006-02-10 23:20:28 +000016288 exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016289 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16290 # would make configure fail if this is the last instruction.
16291 $ac_cs_success || { (exit 1); exit 1; }
16292fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000016293
16294