blob: a3ccfd790b1eb98ed54e64c7948e6c0b25112e2c [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)
Bram Moolenaar899dddf2006-03-26 21:06:50 +0000879 --with-mac-arch=ARCH current, intel, ppc or both
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000880 --with-vim-name=NAME what to call the Vim executable
881 --with-ex-name=NAME what to call the Ex executable
882 --with-view-name=NAME what to call the View executable
883 --with-global-runtime=DIR global runtime directory in 'runtimepath'
884 --with-modified-by=NAME name of who modified a release version
885 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
886 --with-compiledby=NAME name to show in :version message
887 --with-plthome=PLTHOME Use PLTHOME.
888 --with-python-config-dir=PATH Python's config directory
889 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
890 --with-x use the X Window System
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000891 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
892 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
893 --with-gnome-includes=DIR Specify location of GNOME headers
894 --with-gnome-libs=DIR Specify location of GNOME libs
895 --with-gnome Specify prefix for GNOME files
896 --with-motif-lib=STRING Library for Motif
897 --with-tlib=library terminal library to be used
898
899Some influential environment variables:
900 CC C compiler command
901 CFLAGS C compiler flags
902 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903 nonstandard directory <lib dir>
904 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905 headers in a nonstandard directory <include dir>
906 CPP C preprocessor
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000907
908Use these variables to override the choices made by `configure' or to help
909it to find libraries and programs with nonstandard names/locations.
910
911_ACEOF
912fi
913
914if test "$ac_init_help" = "recursive"; then
915 # If there are subdirs, report their specific --help.
916 ac_popdir=`pwd`
917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918 test -d $ac_dir || continue
919 ac_builddir=.
920
921if test "$ac_dir" != .; then
922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923 # A "../" for each directory in $ac_dir_suffix.
924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
925else
926 ac_dir_suffix= ac_top_builddir=
927fi
928
929case $srcdir in
930 .) # No --srcdir option. We are building in place.
931 ac_srcdir=.
932 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=.
934 else
935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
936 fi ;;
937 [\\/]* | ?:[\\/]* ) # Absolute path.
938 ac_srcdir=$srcdir$ac_dir_suffix;
939 ac_top_srcdir=$srcdir ;;
940 *) # Relative path.
941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
943esac
944
945# Do not use `cd foo && pwd` to compute absolute paths, because
946# the directories may not exist.
947case `pwd` in
948.) ac_abs_builddir="$ac_dir";;
949*)
950 case "$ac_dir" in
951 .) ac_abs_builddir=`pwd`;;
952 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
953 *) ac_abs_builddir=`pwd`/"$ac_dir";;
954 esac;;
955esac
956case $ac_abs_builddir in
957.) ac_abs_top_builddir=${ac_top_builddir}.;;
958*)
959 case ${ac_top_builddir}. in
960 .) ac_abs_top_builddir=$ac_abs_builddir;;
961 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
963 esac;;
964esac
965case $ac_abs_builddir in
966.) ac_abs_srcdir=$ac_srcdir;;
967*)
968 case $ac_srcdir in
969 .) ac_abs_srcdir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
971 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
972 esac;;
973esac
974case $ac_abs_builddir in
975.) ac_abs_top_srcdir=$ac_top_srcdir;;
976*)
977 case $ac_top_srcdir in
978 .) ac_abs_top_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
981 esac;;
982esac
983
984 cd $ac_dir
985 # Check for guested configure; otherwise get Cygnus style configure.
986 if test -f $ac_srcdir/configure.gnu; then
987 echo
988 $SHELL $ac_srcdir/configure.gnu --help=recursive
989 elif test -f $ac_srcdir/configure; then
990 echo
991 $SHELL $ac_srcdir/configure --help=recursive
992 elif test -f $ac_srcdir/configure.ac ||
993 test -f $ac_srcdir/configure.in; then
994 echo
995 $ac_configure --help
996 else
997 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998 fi
999 cd $ac_popdir
1000 done
1001fi
1002
1003test -n "$ac_init_help" && exit 0
1004if $ac_init_version; then
1005 cat <<\_ACEOF
1006
1007Copyright (C) 2003 Free Software Foundation, Inc.
1008This configure script is free software; the Free Software Foundation
1009gives unlimited permission to copy, distribute and modify it.
1010_ACEOF
1011 exit 0
1012fi
Bram Moolenaarc7453f52006-02-10 23:20:28 +00001013exec 5>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001014cat >&5 <<_ACEOF
1015This file contains any messages produced by compilers while
1016running configure, to aid debugging if configure makes a mistake.
1017
1018It was created by $as_me, which was
1019generated by GNU Autoconf 2.59. Invocation command line was
1020
1021 $ $0 $@
1022
1023_ACEOF
1024{
1025cat <<_ASUNAME
1026## --------- ##
1027## Platform. ##
1028## --------- ##
1029
1030hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035
1036/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1038
1039/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1040/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1041/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1043/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1044/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1045/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1046
1047_ASUNAME
1048
1049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050for as_dir in $PATH
1051do
1052 IFS=$as_save_IFS
1053 test -z "$as_dir" && as_dir=.
1054 echo "PATH: $as_dir"
1055done
1056
1057} >&5
1058
1059cat >&5 <<_ACEOF
1060
1061
1062## ----------- ##
1063## Core tests. ##
1064## ----------- ##
1065
1066_ACEOF
1067
1068
1069# Keep a trace of the command line.
1070# Strip out --no-create and --no-recursion so they do not pile up.
1071# Strip out --silent because we don't want to record it for future runs.
1072# Also quote any args containing shell meta-characters.
1073# Make two passes to allow for proper duplicate-argument suppression.
1074ac_configure_args=
1075ac_configure_args0=
1076ac_configure_args1=
1077ac_sep=
1078ac_must_keep_next=false
1079for ac_pass in 1 2
1080do
1081 for ac_arg
1082 do
1083 case $ac_arg in
1084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 continue ;;
1088 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090 esac
1091 case $ac_pass in
1092 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093 2)
1094 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095 if test $ac_must_keep_next = true; then
1096 ac_must_keep_next=false # Got value, back to normal.
1097 else
1098 case $ac_arg in
1099 *=* | --config-cache | -C | -disable-* | --disable-* \
1100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102 | -with-* | --with-* | -without-* | --without-* | --x)
1103 case "$ac_configure_args0 " in
1104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105 esac
1106 ;;
1107 -* ) ac_must_keep_next=true ;;
1108 esac
1109 fi
1110 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111 # Get rid of the leading space.
1112 ac_sep=" "
1113 ;;
1114 esac
1115 done
1116done
1117$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119
1120# When interrupted or exit'd, cleanup temporary files, and complete
1121# config.log. We remove comments because anyway the quotes in there
1122# would cause problems or look ugly.
1123# WARNING: Be sure not to use single quotes in there, as some shells,
1124# such as our DU 5.0 friend, will then `close' the trap.
1125trap 'exit_status=$?
1126 # Save into config.log some information that might help in debugging.
1127 {
1128 echo
1129
1130 cat <<\_ASBOX
1131## ---------------- ##
1132## Cache variables. ##
1133## ---------------- ##
1134_ASBOX
1135 echo
1136 # The following way of writing the cache mishandles newlines in values,
1137{
1138 (set) 2>&1 |
1139 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140 *ac_space=\ *)
1141 sed -n \
1142 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144 ;;
1145 *)
1146 sed -n \
1147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148 ;;
1149 esac;
1150}
1151 echo
1152
1153 cat <<\_ASBOX
1154## ----------------- ##
1155## Output variables. ##
1156## ----------------- ##
1157_ASBOX
1158 echo
1159 for ac_var in $ac_subst_vars
1160 do
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1163 done | sort
1164 echo
1165
1166 if test -n "$ac_subst_files"; then
1167 cat <<\_ASBOX
1168## ------------- ##
1169## Output files. ##
1170## ------------- ##
1171_ASBOX
1172 echo
1173 for ac_var in $ac_subst_files
1174 do
1175 eval ac_val=$`echo $ac_var`
1176 echo "$ac_var='"'"'$ac_val'"'"'"
1177 done | sort
1178 echo
1179 fi
1180
1181 if test -s confdefs.h; then
1182 cat <<\_ASBOX
1183## ----------- ##
1184## confdefs.h. ##
1185## ----------- ##
1186_ASBOX
1187 echo
1188 sed "/^$/d" confdefs.h | sort
1189 echo
1190 fi
1191 test "$ac_signal" != 0 &&
1192 echo "$as_me: caught signal $ac_signal"
1193 echo "$as_me: exit $exit_status"
1194 } >&5
1195 rm -f core *.core &&
1196 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197 exit $exit_status
1198 ' 0
1199for ac_signal in 1 2 13 15; do
1200 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201done
1202ac_signal=0
1203
1204# confdefs.h avoids OS command line length limits that DEFS can exceed.
1205rm -rf conftest* confdefs.h
1206# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207echo >confdefs.h
1208
1209# Predefined preprocessor variables.
1210
1211cat >>confdefs.h <<_ACEOF
1212#define PACKAGE_NAME "$PACKAGE_NAME"
1213_ACEOF
1214
1215
1216cat >>confdefs.h <<_ACEOF
1217#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218_ACEOF
1219
1220
1221cat >>confdefs.h <<_ACEOF
1222#define PACKAGE_VERSION "$PACKAGE_VERSION"
1223_ACEOF
1224
1225
1226cat >>confdefs.h <<_ACEOF
1227#define PACKAGE_STRING "$PACKAGE_STRING"
1228_ACEOF
1229
1230
1231cat >>confdefs.h <<_ACEOF
1232#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233_ACEOF
1234
1235
1236# Let the site file select an alternate cache file if it wants to.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001237# Prefer explicitly selected file to automatically selected ones.
1238if test -z "$CONFIG_SITE"; then
1239 if test "x$prefix" != xNONE; then
1240 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241 else
1242 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243 fi
1244fi
1245for ac_site_file in $CONFIG_SITE; do
1246 if test -r "$ac_site_file"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001247 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248echo "$as_me: loading site script $ac_site_file" >&6;}
1249 sed 's/^/| /' "$ac_site_file" >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00001250 . "$ac_site_file"
1251 fi
1252done
1253
1254if test -r "$cache_file"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001255 # Some versions of bash will fail to source /dev/null (special
1256 # files actually), so we avoid doing that.
1257 if test -f "$cache_file"; then
1258 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259echo "$as_me: loading cache $cache_file" >&6;}
1260 case $cache_file in
1261 [\\/]* | ?:[\\/]* ) . $cache_file;;
1262 *) . ./$cache_file;;
1263 esac
1264 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001265else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001266 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267echo "$as_me: creating cache $cache_file" >&6;}
1268 >$cache_file
1269fi
1270
1271# Check that the precious variables saved in the cache have kept the same
1272# value.
1273ac_cache_corrupted=false
1274for ac_var in `(set) 2>&1 |
1275 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277 eval ac_new_set=\$ac_env_${ac_var}_set
1278 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279 eval ac_new_val="\$ac_env_${ac_var}_value"
1280 case $ac_old_set,$ac_new_set in
1281 set,)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,set)
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1289 ,);;
1290 *)
1291 if test "x$ac_old_val" != "x$ac_new_val"; then
1292 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1295echo "$as_me: former value: $ac_old_val" >&2;}
1296 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1297echo "$as_me: current value: $ac_new_val" >&2;}
1298 ac_cache_corrupted=:
1299 fi;;
1300 esac
1301 # Pass precious variables to config.status.
1302 if test "$ac_new_set" = set; then
1303 case $ac_new_val in
1304 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306 *) ac_arg=$ac_var=$ac_new_val ;;
1307 esac
1308 case " $ac_configure_args " in
1309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1310 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311 esac
1312 fi
1313done
1314if $ac_cache_corrupted; then
1315 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00001320fi
1321
1322ac_ext=c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001323ac_cpp='$CPP $CPPFLAGS'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bram Moolenaar071d4272004-06-13 20:20:40 +00001327
1328
1329
1330
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1347
1348
1349cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001350#define UNIX 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001351_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001352
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001353echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1354echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1355set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1356if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001358else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001359 cat >conftest.make <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001360all:
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001361 @echo 'ac_maketemp="$(MAKE)"'
1362_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001363# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001364eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Bram Moolenaar071d4272004-06-13 20:20:40 +00001365if test -n "$ac_maketemp"; then
1366 eval ac_cv_prog_make_${ac_make}_set=yes
1367else
1368 eval ac_cv_prog_make_${ac_make}_set=no
1369fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001370rm -f conftest.make
Bram Moolenaar071d4272004-06-13 20:20:40 +00001371fi
1372if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001373 echo "$as_me:$LINENO: result: yes" >&5
1374echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001375 SET_MAKE=
1376else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001377 echo "$as_me:$LINENO: result: no" >&5
1378echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001379 SET_MAKE="MAKE=${MAKE-make}"
1380fi
1381
1382
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001383ac_ext=c
1384ac_cpp='$CPP $CPPFLAGS'
1385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1387ac_compiler_gnu=$ac_cv_c_compiler_gnu
1388if test -n "$ac_tool_prefix"; then
1389 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1390set dummy ${ac_tool_prefix}gcc; ac_word=$2
1391echo "$as_me:$LINENO: checking for $ac_word" >&5
1392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393if test "${ac_cv_prog_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001395else
1396 if test -n "$CC"; then
1397 ac_cv_prog_CC="$CC" # Let the user override the test.
1398else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400for as_dir in $PATH
1401do
1402 IFS=$as_save_IFS
1403 test -z "$as_dir" && as_dir=.
1404 for ac_exec_ext in '' $ac_executable_extensions; do
1405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1406 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408 break 2
1409 fi
1410done
1411done
1412
Bram Moolenaar071d4272004-06-13 20:20:40 +00001413fi
1414fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001415CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001416if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001417 echo "$as_me:$LINENO: result: $CC" >&5
1418echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001419else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001420 echo "$as_me:$LINENO: result: no" >&5
1421echo "${ECHO_T}no" >&6
1422fi
1423
1424fi
1425if test -z "$ac_cv_prog_CC"; then
1426 ac_ct_CC=$CC
1427 # Extract the first word of "gcc", so it can be a program name with args.
1428set dummy gcc; ac_word=$2
1429echo "$as_me:$LINENO: checking for $ac_word" >&5
1430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1433else
1434 if test -n "$ac_ct_CC"; then
1435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1436else
1437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438for as_dir in $PATH
1439do
1440 IFS=$as_save_IFS
1441 test -z "$as_dir" && as_dir=.
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444 ac_cv_prog_ac_ct_CC="gcc"
1445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446 break 2
1447 fi
1448done
1449done
1450
1451fi
1452fi
1453ac_ct_CC=$ac_cv_prog_ac_ct_CC
1454if test -n "$ac_ct_CC"; then
1455 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1456echo "${ECHO_T}$ac_ct_CC" >&6
1457else
1458 echo "$as_me:$LINENO: result: no" >&5
1459echo "${ECHO_T}no" >&6
1460fi
1461
1462 CC=$ac_ct_CC
1463else
1464 CC="$ac_cv_prog_CC"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001465fi
1466
1467if test -z "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001468 if test -n "$ac_tool_prefix"; then
1469 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1470set dummy ${ac_tool_prefix}cc; ac_word=$2
1471echo "$as_me:$LINENO: checking for $ac_word" >&5
1472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473if test "${ac_cv_prog_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001475else
1476 if test -n "$CC"; then
1477 ac_cv_prog_CC="$CC" # Let the user override the test.
1478else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480for as_dir in $PATH
1481do
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_CC="${ac_tool_prefix}cc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 break 2
1489 fi
1490done
1491done
1492
1493fi
1494fi
1495CC=$ac_cv_prog_CC
1496if test -n "$CC"; then
1497 echo "$as_me:$LINENO: result: $CC" >&5
1498echo "${ECHO_T}$CC" >&6
1499else
1500 echo "$as_me:$LINENO: result: no" >&5
1501echo "${ECHO_T}no" >&6
1502fi
1503
1504fi
1505if test -z "$ac_cv_prog_CC"; then
1506 ac_ct_CC=$CC
1507 # Extract the first word of "cc", so it can be a program name with args.
1508set dummy cc; ac_word=$2
1509echo "$as_me:$LINENO: checking for $ac_word" >&5
1510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514 if test -n "$ac_ct_CC"; then
1515 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1516else
1517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518for as_dir in $PATH
1519do
1520 IFS=$as_save_IFS
1521 test -z "$as_dir" && as_dir=.
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524 ac_cv_prog_ac_ct_CC="cc"
1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526 break 2
1527 fi
1528done
1529done
1530
1531fi
1532fi
1533ac_ct_CC=$ac_cv_prog_ac_ct_CC
1534if test -n "$ac_ct_CC"; then
1535 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1536echo "${ECHO_T}$ac_ct_CC" >&6
1537else
1538 echo "$as_me:$LINENO: result: no" >&5
1539echo "${ECHO_T}no" >&6
1540fi
1541
1542 CC=$ac_ct_CC
1543else
1544 CC="$ac_cv_prog_CC"
1545fi
1546
1547fi
1548if test -z "$CC"; then
1549 # Extract the first word of "cc", so it can be a program name with args.
1550set dummy cc; ac_word=$2
1551echo "$as_me:$LINENO: checking for $ac_word" >&5
1552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553if test "${ac_cv_prog_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556 if test -n "$CC"; then
1557 ac_cv_prog_CC="$CC" # Let the user override the test.
1558else
Bram Moolenaar071d4272004-06-13 20:20:40 +00001559 ac_prog_rejected=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561for as_dir in $PATH
1562do
1563 IFS=$as_save_IFS
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1568 ac_prog_rejected=yes
1569 continue
1570 fi
1571 ac_cv_prog_CC="cc"
1572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573 break 2
1574 fi
1575done
1576done
1577
Bram Moolenaar071d4272004-06-13 20:20:40 +00001578if test $ac_prog_rejected = yes; then
1579 # We found a bogon in the path, so make sure we never use it.
1580 set dummy $ac_cv_prog_CC
1581 shift
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001582 if test $# != 0; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00001583 # We chose a different compiler from the bogus one.
1584 # However, it has the same basename, so the bogon will be chosen
1585 # first if we set CC to just the basename; use the full file name.
1586 shift
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001588 fi
1589fi
1590fi
1591fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001592CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001593if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001594 echo "$as_me:$LINENO: result: $CC" >&5
1595echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001596else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001597 echo "$as_me:$LINENO: result: no" >&5
1598echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001599fi
1600
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001601fi
1602if test -z "$CC"; then
1603 if test -n "$ac_tool_prefix"; then
1604 for ac_prog in cl
1605 do
1606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1608echo "$as_me:$LINENO: checking for $ac_word" >&5
1609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001612else
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1615else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617for as_dir in $PATH
1618do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1626 fi
1627done
1628done
1629
Bram Moolenaar071d4272004-06-13 20:20:40 +00001630fi
1631fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001632CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001633if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001634 echo "$as_me:$LINENO: result: $CC" >&5
1635echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001636else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001637 echo "$as_me:$LINENO: result: no" >&5
1638echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001639fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001640
1641 test -n "$CC" && break
1642 done
1643fi
1644if test -z "$CC"; then
1645 ac_ct_CC=$CC
1646 for ac_prog in cl
1647do
1648 # Extract the first word of "$ac_prog", so it can be a program name with args.
1649set dummy $ac_prog; ac_word=$2
1650echo "$as_me:$LINENO: checking for $ac_word" >&5
1651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655 if test -n "$ac_ct_CC"; then
1656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657else
1658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659for as_dir in $PATH
1660do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_ac_ct_CC="$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
Bram Moolenaar071d4272004-06-13 20:20:40 +00001668 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001669done
1670done
1671
1672fi
1673fi
1674ac_ct_CC=$ac_cv_prog_ac_ct_CC
1675if test -n "$ac_ct_CC"; then
1676 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1677echo "${ECHO_T}$ac_ct_CC" >&6
1678else
1679 echo "$as_me:$LINENO: result: no" >&5
1680echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001681fi
1682
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001683 test -n "$ac_ct_CC" && break
1684done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001685
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001686 CC=$ac_ct_CC
1687fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001688
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001689fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001690
Bram Moolenaar071d4272004-06-13 20:20:40 +00001691
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001692test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1693See \`config.log' for more details." >&5
1694echo "$as_me: error: no acceptable C compiler found in \$PATH
1695See \`config.log' for more details." >&2;}
1696 { (exit 1); exit 1; }; }
1697
1698# Provide some information about the compiler.
1699echo "$as_me:$LINENO:" \
1700 "checking for C compiler version" >&5
1701ac_compiler=`set X $ac_compile; echo $2`
1702{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1703 (eval $ac_compiler --version </dev/null >&5) 2>&5
1704 ac_status=$?
1705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706 (exit $ac_status); }
1707{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1708 (eval $ac_compiler -v </dev/null >&5) 2>&5
1709 ac_status=$?
1710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711 (exit $ac_status); }
1712{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1713 (eval $ac_compiler -V </dev/null >&5) 2>&5
1714 ac_status=$?
1715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1716 (exit $ac_status); }
1717
1718cat >conftest.$ac_ext <<_ACEOF
1719/* confdefs.h. */
1720_ACEOF
1721cat confdefs.h >>conftest.$ac_ext
1722cat >>conftest.$ac_ext <<_ACEOF
1723/* end confdefs.h. */
1724
1725int
1726main ()
1727{
1728
1729 ;
1730 return 0;
1731}
1732_ACEOF
1733ac_clean_files_save=$ac_clean_files
1734ac_clean_files="$ac_clean_files a.out a.exe b.out"
1735# Try to create an executable without -o first, disregard a.out.
1736# It will help us diagnose broken compilers, and finding out an intuition
1737# of exeext.
1738echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1739echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1740ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1741if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1742 (eval $ac_link_default) 2>&5
1743 ac_status=$?
1744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1745 (exit $ac_status); }; then
1746 # Find the output, starting from the most likely. This scheme is
1747# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1748# resort.
1749
1750# Be careful to initialize this variable, since it used to be cached.
1751# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1752ac_cv_exeext=
1753# b.out is created by i960 compilers.
1754for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1755do
1756 test -f "$ac_file" || continue
1757 case $ac_file in
1758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1759 ;;
1760 conftest.$ac_ext )
1761 # This is the source file.
1762 ;;
1763 [ab].out )
1764 # We found the default executable, but exeext='' is most
1765 # certainly right.
1766 break;;
1767 *.* )
1768 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1769 # FIXME: I believe we export ac_cv_exeext for Libtool,
1770 # but it would be cool to find out if it's true. Does anybody
1771 # maintain Libtool? --akim.
1772 export ac_cv_exeext
1773 break;;
1774 * )
1775 break;;
1776 esac
1777done
1778else
1779 echo "$as_me: failed program was:" >&5
1780sed 's/^/| /' conftest.$ac_ext >&5
1781
1782{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1783See \`config.log' for more details." >&5
1784echo "$as_me: error: C compiler cannot create executables
1785See \`config.log' for more details." >&2;}
1786 { (exit 77); exit 77; }; }
1787fi
1788
1789ac_exeext=$ac_cv_exeext
1790echo "$as_me:$LINENO: result: $ac_file" >&5
1791echo "${ECHO_T}$ac_file" >&6
1792
1793# Check the compiler produces executables we can run. If not, either
1794# the compiler is broken, or we cross compile.
1795echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1796echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1797# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1798# If not cross compiling, check that we can run a simple program.
1799if test "$cross_compiling" != yes; then
1800 if { ac_try='./$ac_file'
1801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1802 (eval $ac_try) 2>&5
1803 ac_status=$?
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1806 cross_compiling=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00001807 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001808 if test "$cross_compiling" = maybe; then
1809 cross_compiling=yes
1810 else
1811 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1812If you meant to cross compile, use \`--host'.
1813See \`config.log' for more details." >&5
1814echo "$as_me: error: cannot run C compiled programs.
1815If you meant to cross compile, use \`--host'.
1816See \`config.log' for more details." >&2;}
1817 { (exit 1); exit 1; }; }
1818 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001819 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001820fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001821echo "$as_me:$LINENO: result: yes" >&5
1822echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001823
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001824rm -f a.out a.exe conftest$ac_cv_exeext b.out
1825ac_clean_files=$ac_clean_files_save
1826# Check the compiler produces executables we can run. If not, either
1827# the compiler is broken, or we cross compile.
1828echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1829echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1830echo "$as_me:$LINENO: result: $cross_compiling" >&5
1831echo "${ECHO_T}$cross_compiling" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001832
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001833echo "$as_me:$LINENO: checking for suffix of executables" >&5
1834echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1836 (eval $ac_link) 2>&5
1837 ac_status=$?
1838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839 (exit $ac_status); }; then
1840 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1841# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1842# work properly (i.e., refer to `conftest.exe'), while it won't with
1843# `rm'.
1844for ac_file in conftest.exe conftest conftest.*; do
1845 test -f "$ac_file" || continue
1846 case $ac_file in
1847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1848 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1849 export ac_cv_exeext
1850 break;;
1851 * ) break;;
1852 esac
1853done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001854else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001855 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1856See \`config.log' for more details." >&5
1857echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1858See \`config.log' for more details." >&2;}
1859 { (exit 1); exit 1; }; }
1860fi
1861
1862rm -f conftest$ac_cv_exeext
1863echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1864echo "${ECHO_T}$ac_cv_exeext" >&6
1865
1866rm -f conftest.$ac_ext
1867EXEEXT=$ac_cv_exeext
1868ac_exeext=$EXEEXT
1869echo "$as_me:$LINENO: checking for suffix of object files" >&5
1870echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1871if test "${ac_cv_objext+set}" = set; then
1872 echo $ECHO_N "(cached) $ECHO_C" >&6
1873else
1874 cat >conftest.$ac_ext <<_ACEOF
1875/* confdefs.h. */
1876_ACEOF
1877cat confdefs.h >>conftest.$ac_ext
1878cat >>conftest.$ac_ext <<_ACEOF
1879/* end confdefs.h. */
1880
1881int
1882main ()
1883{
1884
1885 ;
1886 return 0;
1887}
1888_ACEOF
1889rm -f conftest.o conftest.obj
1890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1891 (eval $ac_compile) 2>&5
1892 ac_status=$?
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; then
1895 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1896 case $ac_file in
1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1898 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1899 break;;
1900 esac
1901done
1902else
1903 echo "$as_me: failed program was:" >&5
1904sed 's/^/| /' conftest.$ac_ext >&5
1905
1906{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1907See \`config.log' for more details." >&5
1908echo "$as_me: error: cannot compute suffix of object files: cannot compile
1909See \`config.log' for more details." >&2;}
1910 { (exit 1); exit 1; }; }
1911fi
1912
1913rm -f conftest.$ac_cv_objext conftest.$ac_ext
1914fi
1915echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1916echo "${ECHO_T}$ac_cv_objext" >&6
1917OBJEXT=$ac_cv_objext
1918ac_objext=$OBJEXT
1919echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1920echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1921if test "${ac_cv_c_compiler_gnu+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 cat >conftest.$ac_ext <<_ACEOF
1925/* confdefs.h. */
1926_ACEOF
1927cat confdefs.h >>conftest.$ac_ext
1928cat >>conftest.$ac_ext <<_ACEOF
1929/* end confdefs.h. */
1930
1931int
1932main ()
1933{
1934#ifndef __GNUC__
1935 choke me
Bram Moolenaar071d4272004-06-13 20:20:40 +00001936#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00001937
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001938 ;
1939 return 0;
1940}
1941_ACEOF
1942rm -f conftest.$ac_objext
1943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>conftest.er1
1945 ac_status=$?
1946 grep -v '^ *+' conftest.er1 >conftest.err
1947 rm -f conftest.er1
1948 cat conftest.err >&5
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); } &&
1951 { ac_try='test -z "$ac_c_werror_flag"
1952 || test ! -s conftest.err'
1953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1954 (eval $ac_try) 2>&5
1955 ac_status=$?
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }; } &&
1958 { ac_try='test -s conftest.$ac_objext'
1959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960 (eval $ac_try) 2>&5
1961 ac_status=$?
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }; }; then
1964 ac_compiler_gnu=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00001965else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001966 echo "$as_me: failed program was:" >&5
1967sed 's/^/| /' conftest.$ac_ext >&5
1968
1969ac_compiler_gnu=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00001970fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1972ac_cv_c_compiler_gnu=$ac_compiler_gnu
Bram Moolenaar071d4272004-06-13 20:20:40 +00001973
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001974fi
1975echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1976echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1977GCC=`test $ac_compiler_gnu = yes && echo yes`
1978ac_test_CFLAGS=${CFLAGS+set}
1979ac_save_CFLAGS=$CFLAGS
1980CFLAGS="-g"
1981echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1982echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1983if test "${ac_cv_prog_cc_g+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001985else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001986 cat >conftest.$ac_ext <<_ACEOF
1987/* confdefs.h. */
1988_ACEOF
1989cat confdefs.h >>conftest.$ac_ext
1990cat >>conftest.$ac_ext <<_ACEOF
1991/* end confdefs.h. */
1992
1993int
1994main ()
1995{
1996
1997 ;
1998 return 0;
1999}
2000_ACEOF
2001rm -f conftest.$ac_objext
2002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2003 (eval $ac_compile) 2>conftest.er1
2004 ac_status=$?
2005 grep -v '^ *+' conftest.er1 >conftest.err
2006 rm -f conftest.er1
2007 cat conftest.err >&5
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); } &&
2010 { ac_try='test -z "$ac_c_werror_flag"
2011 || test ! -s conftest.err'
2012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2013 (eval $ac_try) 2>&5
2014 ac_status=$?
2015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016 (exit $ac_status); }; } &&
2017 { ac_try='test -s conftest.$ac_objext'
2018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2019 (eval $ac_try) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00002023 ac_cv_prog_cc_g=yes
2024else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002025 echo "$as_me: failed program was:" >&5
2026sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00002027
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002028ac_cv_prog_cc_g=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00002029fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2033echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002034if test "$ac_test_CFLAGS" = set; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002035 CFLAGS=$ac_save_CFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00002036elif test $ac_cv_prog_cc_g = yes; then
2037 if test "$GCC" = yes; then
2038 CFLAGS="-g -O2"
2039 else
2040 CFLAGS="-g"
2041 fi
2042else
2043 if test "$GCC" = yes; then
2044 CFLAGS="-O2"
2045 else
2046 CFLAGS=
2047 fi
2048fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002049echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2050echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2051if test "${ac_cv_prog_cc_stdc+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053else
2054 ac_cv_prog_cc_stdc=no
2055ac_save_CC=$CC
2056cat >conftest.$ac_ext <<_ACEOF
2057/* confdefs.h. */
2058_ACEOF
2059cat confdefs.h >>conftest.$ac_ext
2060cat >>conftest.$ac_ext <<_ACEOF
2061/* end confdefs.h. */
2062#include <stdarg.h>
2063#include <stdio.h>
2064#include <sys/types.h>
2065#include <sys/stat.h>
2066/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2067struct buf { int x; };
2068FILE * (*rcsopen) (struct buf *, struct stat *, int);
2069static char *e (p, i)
2070 char **p;
2071 int i;
2072{
2073 return p[i];
2074}
2075static char *f (char * (*g) (char **, int), char **p, ...)
2076{
2077 char *s;
2078 va_list v;
2079 va_start (v,p);
2080 s = g (p, va_arg (v,int));
2081 va_end (v);
2082 return s;
2083}
2084
2085/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2086 function prototypes and stuff, but not '\xHH' hex character constants.
2087 These don't provoke an error unfortunately, instead are silently treated
2088 as 'x'. The following induces an error, until -std1 is added to get
2089 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2090 array size at least. It's necessary to write '\x00'==0 to get something
2091 that's true only with -std1. */
2092int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2093
2094int test (int i, double x);
2095struct s1 {int (*f) (int a);};
2096struct s2 {int (*f) (double a);};
2097int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2098int argc;
2099char **argv;
2100int
2101main ()
2102{
2103return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108# Don't try gcc -ansi; that turns off useful extensions and
2109# breaks some systems' header files.
2110# AIX -qlanglvl=ansi
2111# Ultrix and OSF/1 -std1
2112# HP-UX 10.20 and later -Ae
2113# HP-UX older versions -Aa -D_HPUX_SOURCE
2114# SVR4 -Xc -D__EXTENSIONS__
2115for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2116do
2117 CC="$ac_save_CC $ac_arg"
2118 rm -f conftest.$ac_objext
2119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2120 (eval $ac_compile) 2>conftest.er1
2121 ac_status=$?
2122 grep -v '^ *+' conftest.er1 >conftest.err
2123 rm -f conftest.er1
2124 cat conftest.err >&5
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); } &&
2127 { ac_try='test -z "$ac_c_werror_flag"
2128 || test ! -s conftest.err'
2129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2130 (eval $ac_try) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }; } &&
2134 { ac_try='test -s conftest.$ac_objext'
2135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2136 (eval $ac_try) 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; }; then
2140 ac_cv_prog_cc_stdc=$ac_arg
2141break
2142else
2143 echo "$as_me: failed program was:" >&5
2144sed 's/^/| /' conftest.$ac_ext >&5
2145
2146fi
2147rm -f conftest.err conftest.$ac_objext
2148done
2149rm -f conftest.$ac_ext conftest.$ac_objext
2150CC=$ac_save_CC
2151
2152fi
2153
2154case "x$ac_cv_prog_cc_stdc" in
2155 x|xno)
2156 echo "$as_me:$LINENO: result: none needed" >&5
2157echo "${ECHO_T}none needed" >&6 ;;
2158 *)
2159 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2160echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2161 CC="$CC $ac_cv_prog_cc_stdc" ;;
2162esac
2163
2164# Some people use a C++ compiler to compile C. Since we use `exit',
2165# in C++ we need to declare it. In case someone uses the same compiler
2166# for both compiling C and C++ we need to have the C++ compiler decide
2167# the declaration of exit, since it's the most demanding environment.
2168cat >conftest.$ac_ext <<_ACEOF
2169#ifndef __cplusplus
2170 choke me
2171#endif
2172_ACEOF
2173rm -f conftest.$ac_objext
2174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2175 (eval $ac_compile) 2>conftest.er1
2176 ac_status=$?
2177 grep -v '^ *+' conftest.er1 >conftest.err
2178 rm -f conftest.er1
2179 cat conftest.err >&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); } &&
2182 { ac_try='test -z "$ac_c_werror_flag"
2183 || test ! -s conftest.err'
2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2185 (eval $ac_try) 2>&5
2186 ac_status=$?
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; } &&
2189 { ac_try='test -s conftest.$ac_objext'
2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191 (eval $ac_try) 2>&5
2192 ac_status=$?
2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194 (exit $ac_status); }; }; then
2195 for ac_declaration in \
2196 '' \
2197 'extern "C" void std::exit (int) throw (); using std::exit;' \
2198 'extern "C" void std::exit (int); using std::exit;' \
2199 'extern "C" void exit (int) throw ();' \
2200 'extern "C" void exit (int);' \
2201 'void exit (int);'
2202do
2203 cat >conftest.$ac_ext <<_ACEOF
2204/* confdefs.h. */
2205_ACEOF
2206cat confdefs.h >>conftest.$ac_ext
2207cat >>conftest.$ac_ext <<_ACEOF
2208/* end confdefs.h. */
2209$ac_declaration
2210#include <stdlib.h>
2211int
2212main ()
2213{
2214exit (42);
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2222 ac_status=$?
2223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -z "$ac_c_werror_flag"
2229 || test ! -s conftest.err'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 :
2242else
2243 echo "$as_me: failed program was:" >&5
2244sed 's/^/| /' conftest.$ac_ext >&5
2245
2246continue
2247fi
2248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2249 cat >conftest.$ac_ext <<_ACEOF
2250/* confdefs.h. */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h. */
2255$ac_declaration
2256int
2257main ()
2258{
2259exit (42);
2260 ;
2261 return 0;
2262}
2263_ACEOF
2264rm -f conftest.$ac_objext
2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>conftest.er1
2267 ac_status=$?
2268 grep -v '^ *+' conftest.er1 >conftest.err
2269 rm -f conftest.er1
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -z "$ac_c_werror_flag"
2274 || test ! -s conftest.err'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 break
2287else
2288 echo "$as_me: failed program was:" >&5
2289sed 's/^/| /' conftest.$ac_ext >&5
2290
2291fi
2292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293done
2294rm -f conftest*
2295if test -n "$ac_declaration"; then
2296 echo '#ifdef __cplusplus' >>confdefs.h
2297 echo $ac_declaration >>confdefs.h
2298 echo '#endif' >>confdefs.h
2299fi
2300
2301else
2302 echo "$as_me: failed program was:" >&5
2303sed 's/^/| /' conftest.$ac_ext >&5
2304
2305fi
2306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2307ac_ext=c
2308ac_cpp='$CPP $CPPFLAGS'
2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312 ac_ext=c
2313ac_cpp='$CPP $CPPFLAGS'
2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2318echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002319# On Suns, sometimes $CPP names a directory.
2320if test -n "$CPP" && test -d "$CPP"; then
2321 CPP=
2322fi
2323if test -z "$CPP"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002324 if test "${ac_cv_prog_CPP+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002326else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002327 # Double quotes because CPP needs to be expanded
2328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2329 do
2330 ac_preproc_ok=false
2331for ac_c_preproc_warn_flag in '' yes
2332do
2333 # Use a header file that comes with gcc, so configuring glibc
2334 # with a fresh cross-compiler works.
2335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2336 # <limits.h> exists even on freestanding compilers.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002337 # On the NeXT, cc -E runs the code through the compiler's parser,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002338 # not just through cpp. "Syntax error" is here to catch this case.
2339 cat >conftest.$ac_ext <<_ACEOF
2340/* confdefs.h. */
2341_ACEOF
2342cat confdefs.h >>conftest.$ac_ext
2343cat >>conftest.$ac_ext <<_ACEOF
2344/* end confdefs.h. */
2345#ifdef __STDC__
2346# include <limits.h>
2347#else
2348# include <assert.h>
2349#endif
2350 Syntax error
2351_ACEOF
2352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2354 ac_status=$?
2355 grep -v '^ *+' conftest.er1 >conftest.err
2356 rm -f conftest.er1
2357 cat conftest.err >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } >/dev/null; then
2360 if test -s conftest.err; then
2361 ac_cpp_err=$ac_c_preproc_warn_flag
2362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Bram Moolenaar071d4272004-06-13 20:20:40 +00002363 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002364 ac_cpp_err=
Bram Moolenaar071d4272004-06-13 20:20:40 +00002365 fi
2366else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002367 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002368fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002369if test -z "$ac_cpp_err"; then
2370 :
2371else
2372 echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375 # Broken: fails on valid input.
2376continue
2377fi
2378rm -f conftest.err conftest.$ac_ext
2379
2380 # OK, works on sane cases. Now check whether non-existent headers
2381 # can be detected and how.
2382 cat >conftest.$ac_ext <<_ACEOF
2383/* confdefs.h. */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h. */
2388#include <ac_nonexistent.h>
2389_ACEOF
2390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2392 ac_status=$?
2393 grep -v '^ *+' conftest.er1 >conftest.err
2394 rm -f conftest.er1
2395 cat conftest.err >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); } >/dev/null; then
2398 if test -s conftest.err; then
2399 ac_cpp_err=$ac_c_preproc_warn_flag
2400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2401 else
2402 ac_cpp_err=
2403 fi
2404else
2405 ac_cpp_err=yes
2406fi
2407if test -z "$ac_cpp_err"; then
2408 # Broken: success on invalid input.
2409continue
2410else
2411 echo "$as_me: failed program was:" >&5
2412sed 's/^/| /' conftest.$ac_ext >&5
2413
2414 # Passes both tests.
2415ac_preproc_ok=:
2416break
2417fi
2418rm -f conftest.err conftest.$ac_ext
2419
2420done
2421# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2422rm -f conftest.err conftest.$ac_ext
2423if $ac_preproc_ok; then
2424 break
2425fi
2426
2427 done
2428 ac_cv_prog_CPP=$CPP
2429
2430fi
2431 CPP=$ac_cv_prog_CPP
2432else
2433 ac_cv_prog_CPP=$CPP
2434fi
2435echo "$as_me:$LINENO: result: $CPP" >&5
2436echo "${ECHO_T}$CPP" >&6
2437ac_preproc_ok=false
2438for ac_c_preproc_warn_flag in '' yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002439do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002440 # Use a header file that comes with gcc, so configuring glibc
2441 # with a fresh cross-compiler works.
2442 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2443 # <limits.h> exists even on freestanding compilers.
2444 # On the NeXT, cc -E runs the code through the compiler's parser,
2445 # not just through cpp. "Syntax error" is here to catch this case.
2446 cat >conftest.$ac_ext <<_ACEOF
2447/* confdefs.h. */
2448_ACEOF
2449cat confdefs.h >>conftest.$ac_ext
2450cat >>conftest.$ac_ext <<_ACEOF
2451/* end confdefs.h. */
2452#ifdef __STDC__
2453# include <limits.h>
2454#else
2455# include <assert.h>
2456#endif
2457 Syntax error
2458_ACEOF
2459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } >/dev/null; then
2467 if test -s conftest.err; then
2468 ac_cpp_err=$ac_c_preproc_warn_flag
2469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2470 else
2471 ac_cpp_err=
2472 fi
2473else
2474 ac_cpp_err=yes
2475fi
2476if test -z "$ac_cpp_err"; then
2477 :
2478else
2479 echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 # Broken: fails on valid input.
2483continue
2484fi
2485rm -f conftest.err conftest.$ac_ext
2486
2487 # OK, works on sane cases. Now check whether non-existent headers
2488 # can be detected and how.
2489 cat >conftest.$ac_ext <<_ACEOF
2490/* confdefs.h. */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
2494/* end confdefs.h. */
2495#include <ac_nonexistent.h>
2496_ACEOF
2497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2499 ac_status=$?
2500 grep -v '^ *+' conftest.er1 >conftest.err
2501 rm -f conftest.er1
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } >/dev/null; then
2505 if test -s conftest.err; then
2506 ac_cpp_err=$ac_c_preproc_warn_flag
2507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2508 else
2509 ac_cpp_err=
2510 fi
2511else
2512 ac_cpp_err=yes
2513fi
2514if test -z "$ac_cpp_err"; then
2515 # Broken: success on invalid input.
2516continue
2517else
2518 echo "$as_me: failed program was:" >&5
2519sed 's/^/| /' conftest.$ac_ext >&5
2520
2521 # Passes both tests.
2522ac_preproc_ok=:
2523break
2524fi
2525rm -f conftest.err conftest.$ac_ext
2526
2527done
2528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2529rm -f conftest.err conftest.$ac_ext
2530if $ac_preproc_ok; then
2531 :
2532else
2533 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2534See \`config.log' for more details." >&5
2535echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2536See \`config.log' for more details." >&2;}
2537 { (exit 1); exit 1; }; }
2538fi
2539
2540ac_ext=c
2541ac_cpp='$CPP $CPPFLAGS'
2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545
2546
2547echo "$as_me:$LINENO: checking for egrep" >&5
2548echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2549if test "${ac_cv_prog_egrep+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551else
2552 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2553 then ac_cv_prog_egrep='grep -E'
2554 else ac_cv_prog_egrep='egrep'
2555 fi
2556fi
2557echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2558echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2559 EGREP=$ac_cv_prog_egrep
2560
2561
2562cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h. */
2568
2569_ACEOF
2570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2571 $EGREP "" >/dev/null 2>&1; then
2572 :
2573fi
2574rm -f conftest*
2575 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2576echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2577if test "${ac_cv_search_strerror+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579else
2580 ac_func_search_save_LIBS=$LIBS
2581ac_cv_search_strerror=no
2582cat >conftest.$ac_ext <<_ACEOF
2583/* confdefs.h. */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h. */
2588
2589/* Override any gcc2 internal prototype to avoid an error. */
2590#ifdef __cplusplus
2591extern "C"
2592#endif
2593/* We use char because int might match the return type of a gcc2
2594 builtin and then its argument prototype would still apply. */
2595char strerror ();
2596int
2597main ()
2598{
2599strerror ();
2600 ;
2601 return 0;
2602}
2603_ACEOF
2604rm -f conftest.$ac_objext conftest$ac_exeext
2605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2606 (eval $ac_link) 2>conftest.er1
2607 ac_status=$?
2608 grep -v '^ *+' conftest.er1 >conftest.err
2609 rm -f conftest.er1
2610 cat conftest.err >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); } &&
2613 { ac_try='test -z "$ac_c_werror_flag"
2614 || test ! -s conftest.err'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; } &&
2620 { ac_try='test -s conftest$ac_exeext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_cv_search_strerror="none required"
2627else
2628 echo "$as_me: failed program was:" >&5
2629sed 's/^/| /' conftest.$ac_ext >&5
2630
2631fi
2632rm -f conftest.err conftest.$ac_objext \
2633 conftest$ac_exeext conftest.$ac_ext
2634if test "$ac_cv_search_strerror" = no; then
2635 for ac_lib in cposix; do
2636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2637 cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h. */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h. */
2643
2644/* Override any gcc2 internal prototype to avoid an error. */
2645#ifdef __cplusplus
2646extern "C"
2647#endif
2648/* We use char because int might match the return type of a gcc2
2649 builtin and then its argument prototype would still apply. */
2650char strerror ();
2651int
2652main ()
2653{
2654strerror ();
2655 ;
2656 return 0;
2657}
2658_ACEOF
2659rm -f conftest.$ac_objext conftest$ac_exeext
2660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2661 (eval $ac_link) 2>conftest.er1
2662 ac_status=$?
2663 grep -v '^ *+' conftest.er1 >conftest.err
2664 rm -f conftest.er1
2665 cat conftest.err >&5
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); } &&
2668 { ac_try='test -z "$ac_c_werror_flag"
2669 || test ! -s conftest.err'
2670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671 (eval $ac_try) 2>&5
2672 ac_status=$?
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; } &&
2675 { ac_try='test -s conftest$ac_exeext'
2676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 (eval $ac_try) 2>&5
2678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; }; then
2681 ac_cv_search_strerror="-l$ac_lib"
2682break
2683else
2684 echo "$as_me: failed program was:" >&5
2685sed 's/^/| /' conftest.$ac_ext >&5
2686
2687fi
2688rm -f conftest.err conftest.$ac_objext \
2689 conftest$ac_exeext conftest.$ac_ext
2690 done
2691fi
2692LIBS=$ac_func_search_save_LIBS
2693fi
2694echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2695echo "${ECHO_T}$ac_cv_search_strerror" >&6
2696if test "$ac_cv_search_strerror" != no; then
2697 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2698
2699fi
2700 for ac_prog in gawk mawk nawk awk
2701do
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002703set dummy $ac_prog; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002704echo "$as_me:$LINENO: checking for $ac_word" >&5
2705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2706if test "${ac_cv_prog_AWK+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002708else
2709 if test -n "$AWK"; then
2710 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2711else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719 ac_cv_prog_AWK="$ac_prog"
2720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2722 fi
2723done
2724done
2725
Bram Moolenaar071d4272004-06-13 20:20:40 +00002726fi
2727fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002728AWK=$ac_cv_prog_AWK
Bram Moolenaar071d4272004-06-13 20:20:40 +00002729if test -n "$AWK"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002730 echo "$as_me:$LINENO: result: $AWK" >&5
2731echo "${ECHO_T}$AWK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002732else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002733 echo "$as_me:$LINENO: result: no" >&5
2734echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002735fi
2736
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002737 test -n "$AWK" && break
Bram Moolenaar071d4272004-06-13 20:20:40 +00002738done
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002739
Bram Moolenaar071d4272004-06-13 20:20:40 +00002740# Extract the first word of "strip", so it can be a program name with args.
2741set dummy strip; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002742echo "$as_me:$LINENO: checking for $ac_word" >&5
2743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744if test "${ac_cv_prog_STRIP+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002746else
2747 if test -n "$STRIP"; then
2748 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2749else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751for as_dir in $PATH
2752do
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_STRIP="strip"
2758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761done
2762done
2763
Bram Moolenaar071d4272004-06-13 20:20:40 +00002764 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2765fi
2766fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002767STRIP=$ac_cv_prog_STRIP
Bram Moolenaar071d4272004-06-13 20:20:40 +00002768if test -n "$STRIP"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002769 echo "$as_me:$LINENO: result: $STRIP" >&5
2770echo "${ECHO_T}$STRIP" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002771else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002772 echo "$as_me:$LINENO: result: no" >&5
2773echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002774fi
2775
2776
Bram Moolenaar071d4272004-06-13 20:20:40 +00002777
2778
2779if test -z "$CFLAGS"; then
2780 CFLAGS="-O"
2781 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
2782fi
2783if test "$GCC" = yes; then
Bram Moolenaar910f66f2006-04-05 20:41:53 +00002784 gccversion=`"$CC" -dumpversion`
2785 if test "x$gccversion" = "x"; then
2786 gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
2787 fi
Bram Moolenaara5792f52005-11-23 21:25:05 +00002788 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002789 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
Bram Moolenaar071d4272004-06-13 20:20:40 +00002790 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2791 else
2792 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2793 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2794 CFLAGS="$CFLAGS -fno-strength-reduce"
2795 fi
2796 fi
2797fi
2798
2799if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002800 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2801 (cross compiling doesn't work)" >&5
2802echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2803 (cross compiling doesn't work)" >&2;}
2804 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00002805fi
2806
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002807test "$GCC" = yes && CPP_MM=M;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002808
2809if test -f ./toolcheck; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002810 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2811echo "$as_me: checking for buggy tools..." >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +00002812 sh ./toolcheck 1>&6
2813fi
2814
2815OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2816
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002817echo "$as_me:$LINENO: checking for BeOS" >&5
2818echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002819case `uname` in
2820 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002821 BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2822echo "${ECHO_T}yes" >&6;;
2823 *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2824echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002825esac
2826
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002827echo "$as_me:$LINENO: checking for QNX" >&5
2828echo $ECHO_N "checking for QNX... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002829case `uname` in
2830 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2831 test -z "$with_x" && with_x=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002832 QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2833echo "${ECHO_T}yes" >&6;;
2834 *) QNX=no; echo "$as_me:$LINENO: result: no" >&5
2835echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002836esac
2837
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002838echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2839echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002840if test "`(uname) 2>/dev/null`" = Darwin; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002841 echo "$as_me:$LINENO: result: yes" >&5
2842echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002843
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002844 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2845echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002846 # Check whether --enable-darwin or --disable-darwin was given.
2847if test "${enable_darwin+set}" = set; then
2848 enableval="$enable_darwin"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002849
Bram Moolenaar071d4272004-06-13 20:20:40 +00002850else
2851 enable_darwin="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002852fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002853 if test "$enable_darwin" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002854 echo "$as_me:$LINENO: result: no" >&5
2855echo "${ECHO_T}no" >&6
2856 echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2857echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002858 if test -f os_macosx.c; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002859 echo "$as_me:$LINENO: result: yes" >&5
2860echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002861 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002862 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2863echo "${ECHO_T}no, Darwin support disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002864 enable_darwin=no
2865 fi
2866 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002867 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2868echo "${ECHO_T}yes, Darwin support excluded" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002869 fi
2870
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002871 echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
2872echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6
2873
2874# Check whether --with-mac-arch or --without-mac-arch was given.
2875if test "${with_mac_arch+set}" = set; then
2876 withval="$with_mac_arch"
2877 MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5
2878echo "${ECHO_T}$MACARCH" >&6
2879else
Bram Moolenaar899dddf2006-03-26 21:06:50 +00002880 MACARCH="current"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002881echo "${ECHO_T}defaulting to $MACARCH" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002882fi;
2883
2884 if test "x$MACARCH" = "xboth"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002885 echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
2886echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6
2887 save_cppflags="$CPPFLAGS"
2888 save_cflags="$CFLAGS"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002889 save_ldflags="$LDFLAGS"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002890 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002891 cat >conftest.$ac_ext <<_ACEOF
2892/* confdefs.h. */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h. */
2897
2898int
2899main ()
2900{
2901
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906rm -f conftest.$ac_objext conftest$ac_exeext
2907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2908 (eval $ac_link) 2>conftest.er1
2909 ac_status=$?
2910 grep -v '^ *+' conftest.er1 >conftest.err
2911 rm -f conftest.er1
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_c_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 (eval $ac_try) 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest$ac_exeext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002928 echo "$as_me:$LINENO: result: found" >&5
2929echo "${ECHO_T}found" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002930else
2931 echo "$as_me: failed program was:" >&5
2932sed 's/^/| /' conftest.$ac_ext >&5
2933
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002934echo "$as_me:$LINENO: result: not found" >&5
2935echo "${ECHO_T}not found" >&6
Bram Moolenaar1f35bf92006-03-07 22:38:47 +00002936 CFLAGS="$save_cflags"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002937 echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002938echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002939 CPPFLAGS="$CPPFLAGS -arch i386"
2940 LDFLAGS="$save_ldflags -arch i386"
2941 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002942/* confdefs.h. */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h. */
2947
2948int
2949main ()
2950{
2951
2952 ;
2953 return 0;
2954}
2955_ACEOF
2956rm -f conftest.$ac_objext conftest$ac_exeext
2957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2958 (eval $ac_link) 2>conftest.er1
2959 ac_status=$?
2960 grep -v '^ *+' conftest.er1 >conftest.err
2961 rm -f conftest.er1
2962 cat conftest.err >&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); } &&
2965 { ac_try='test -z "$ac_c_werror_flag"
2966 || test ! -s conftest.err'
2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 (eval $ac_try) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; } &&
2972 { ac_try='test -s conftest$ac_exeext'
2973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 (eval $ac_try) 2>&5
2975 ac_status=$?
2976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2978 echo "$as_me:$LINENO: result: yes" >&5
2979echo "${ECHO_T}yes" >&6; MACARCH="intel"
2980else
2981 echo "$as_me: failed program was:" >&5
2982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984echo "$as_me:$LINENO: result: no" >&5
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002985echo "${ECHO_T}no" >&6
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00002986 MACARCH="ppc"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002987 CPPFLAGS="$save_cppflags -arch ppc"
2988 LDFLAGS="$save_ldflags -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002989fi
2990rm -f conftest.err conftest.$ac_objext \
2991 conftest$ac_exeext conftest.$ac_ext
2992fi
2993rm -f conftest.err conftest.$ac_objext \
2994 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002995 elif test "x$MACARCH" = "xintel"; then
2996 CPPFLAGS="$CPPFLAGS -arch intel"
2997 LDFLAGS="$LDFLAGS -arch intel"
Bram Moolenaare2f98b92006-03-29 21:18:24 +00002998 elif test "x$MACARCH" = "xppc"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002999 CPPFLAGS="$CPPFLAGS -arch ppc"
3000 LDFLAGS="$LDFLAGS -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00003001 fi
3002
Bram Moolenaar071d4272004-06-13 20:20:40 +00003003 if test "$enable_darwin" = "yes"; then
3004 MACOSX=yes
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003005 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3006 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003007 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3008 if test "x$MACARCH" = "xboth"; then
3009 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3010 else
3011 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3012 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00003013
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003014 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3015echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3016if test "${ac_cv_header_stdc+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003018else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003019 cat >conftest.$ac_ext <<_ACEOF
3020/* confdefs.h. */
3021_ACEOF
3022cat confdefs.h >>conftest.$ac_ext
3023cat >>conftest.$ac_ext <<_ACEOF
3024/* end confdefs.h. */
3025#include <stdlib.h>
3026#include <stdarg.h>
3027#include <string.h>
3028#include <float.h>
3029
3030int
3031main ()
3032{
3033
3034 ;
3035 return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext
3039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_c_werror_flag"
3048 || test ! -s conftest.err'
3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050 (eval $ac_try) 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }; } &&
3054 { ac_try='test -s conftest.$ac_objext'
3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056 (eval $ac_try) 2>&5
3057 ac_status=$?
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }; }; then
3060 ac_cv_header_stdc=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003061else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003062 echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065ac_cv_header_stdc=no
3066fi
3067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3068
3069if test $ac_cv_header_stdc = yes; then
3070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3071 cat >conftest.$ac_ext <<_ACEOF
3072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
3077#include <string.h>
3078
3079_ACEOF
3080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3081 $EGREP "memchr" >/dev/null 2>&1; then
3082 :
3083else
3084 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003085fi
3086rm -f conftest*
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003087
Bram Moolenaar071d4272004-06-13 20:20:40 +00003088fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003089
3090if test $ac_cv_header_stdc = yes; then
3091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3092 cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h. */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h. */
3098#include <stdlib.h>
3099
3100_ACEOF
3101if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3102 $EGREP "free" >/dev/null 2>&1; then
3103 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00003104else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003105 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003106fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003107rm -f conftest*
3108
3109fi
3110
3111if test $ac_cv_header_stdc = yes; then
3112 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3113 if test "$cross_compiling" = yes; then
3114 :
3115else
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122#include <ctype.h>
3123#if ((' ' & 0x0FF) == 0x020)
3124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3126#else
3127# define ISLOWER(c) \
3128 (('a' <= (c) && (c) <= 'i') \
3129 || ('j' <= (c) && (c) <= 'r') \
3130 || ('s' <= (c) && (c) <= 'z'))
3131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3132#endif
3133
3134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3135int
3136main ()
3137{
3138 int i;
3139 for (i = 0; i < 256; i++)
3140 if (XOR (islower (i), ISLOWER (i))
3141 || toupper (i) != TOUPPER (i))
3142 exit(2);
3143 exit (0);
3144}
3145_ACEOF
3146rm -f conftest$ac_exeext
3147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3148 (eval $ac_link) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 (eval $ac_try) 2>&5
3154 ac_status=$?
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3157 :
3158else
3159 echo "$as_me: program exited with status $ac_status" >&5
3160echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163( exit $ac_status )
3164ac_cv_header_stdc=no
3165fi
3166rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3167fi
3168fi
3169fi
3170echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3171echo "${ECHO_T}$ac_cv_header_stdc" >&6
3172if test $ac_cv_header_stdc = yes; then
3173
3174cat >>confdefs.h <<\_ACEOF
3175#define STDC_HEADERS 1
3176_ACEOF
3177
3178fi
3179
3180# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3191 inttypes.h stdint.h unistd.h
3192do
3193as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3194echo "$as_me:$LINENO: checking for $ac_header" >&5
3195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3196if eval "test \"\${$as_ac_Header+set}\" = set"; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199 cat >conftest.$ac_ext <<_ACEOF
3200/* confdefs.h. */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
3204/* end confdefs.h. */
3205$ac_includes_default
3206
3207#include <$ac_header>
3208_ACEOF
3209rm -f conftest.$ac_objext
3210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3211 (eval $ac_compile) 2>conftest.er1
3212 ac_status=$?
3213 grep -v '^ *+' conftest.er1 >conftest.err
3214 rm -f conftest.er1
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } &&
3218 { ac_try='test -z "$ac_c_werror_flag"
3219 || test ! -s conftest.err'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221 (eval $ac_try) 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 (eval $ac_try) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3231 eval "$as_ac_Header=yes"
3232else
3233 echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236eval "$as_ac_Header=no"
3237fi
3238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3239fi
3240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3242if test `eval echo '${'$as_ac_Header'}'` = yes; then
3243 cat >>confdefs.h <<_ACEOF
3244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3245_ACEOF
3246
3247fi
3248
3249done
3250
3251
3252if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3253 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3254echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3255if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257fi
3258echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3259echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3260else
3261 # Is the header compilable?
3262echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3263echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3264cat >conftest.$ac_ext <<_ACEOF
3265/* confdefs.h. */
3266_ACEOF
3267cat confdefs.h >>conftest.$ac_ext
3268cat >>conftest.$ac_ext <<_ACEOF
3269/* end confdefs.h. */
3270$ac_includes_default
3271#include <Carbon/Carbon.h>
3272_ACEOF
3273rm -f conftest.$ac_objext
3274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3275 (eval $ac_compile) 2>conftest.er1
3276 ac_status=$?
3277 grep -v '^ *+' conftest.er1 >conftest.err
3278 rm -f conftest.er1
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -z "$ac_c_werror_flag"
3283 || test ! -s conftest.err'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try='test -s conftest.$ac_objext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 ac_header_compiler=yes
3296else
3297 echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300ac_header_compiler=no
3301fi
3302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3303echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3304echo "${ECHO_T}$ac_header_compiler" >&6
3305
3306# Is the header present?
3307echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3308echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3309cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h. */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h. */
3315#include <Carbon/Carbon.h>
3316_ACEOF
3317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } >/dev/null; then
3325 if test -s conftest.err; then
3326 ac_cpp_err=$ac_c_preproc_warn_flag
3327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3328 else
3329 ac_cpp_err=
3330 fi
3331else
3332 ac_cpp_err=yes
3333fi
3334if test -z "$ac_cpp_err"; then
3335 ac_header_preproc=yes
3336else
3337 echo "$as_me: failed program was:" >&5
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 ac_header_preproc=no
3341fi
3342rm -f conftest.err conftest.$ac_ext
3343echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3344echo "${ECHO_T}$ac_header_preproc" >&6
3345
3346# So? What about this header?
3347case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3348 yes:no: )
3349 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3350echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3351 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3352echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3353 ac_header_preproc=yes
3354 ;;
3355 no:yes:* )
3356 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3357echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3358 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
3359echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
3360 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3361echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3362 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
3363echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
3364 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3365echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3366 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3367echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3368 (
3369 cat <<\_ASBOX
3370## ------------------------------------------ ##
3371## Report this to the AC_PACKAGE_NAME lists. ##
3372## ------------------------------------------ ##
3373_ASBOX
3374 ) |
3375 sed "s/^/$as_me: WARNING: /" >&2
3376 ;;
3377esac
3378echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3379echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3380if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3384fi
3385echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3386echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3387
3388fi
3389if test $ac_cv_header_Carbon_Carbon_h = yes; then
3390 CARBON=yes
3391fi
3392
Bram Moolenaar071d4272004-06-13 20:20:40 +00003393
3394 if test "x$CARBON" = "xyes"; then
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003395 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 +00003396 with_x=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003397 fi
3398 fi
3399 fi
Bram Moolenaara23ccb82006-02-27 00:08:02 +00003400
Bram Moolenaarfd2ac762006-03-01 22:09:21 +00003401 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003402 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3403 fi
3404
Bram Moolenaar071d4272004-06-13 20:20:40 +00003405else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003406 echo "$as_me:$LINENO: result: no" >&5
3407echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003408fi
3409
3410
3411
3412
3413have_local_include=''
3414have_local_lib=''
3415if test "$GCC" = yes; then
3416 echo 'void f(){}' > conftest.c
3417 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3418 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3419 rm -f conftest.c conftest.o
3420fi
3421if test -z "$have_local_lib" -a -d /usr/local/lib; then
3422 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3423 if test "$tt" = "$LDFLAGS"; then
3424 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3425 fi
3426fi
3427if test -z "$have_local_include" -a -d /usr/local/include; then
3428 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3429 if test "$tt" = "$CPPFLAGS"; then
3430 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3431 fi
3432fi
3433
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003434echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3435echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3436
Bram Moolenaar071d4272004-06-13 20:20:40 +00003437# Check whether --with-vim-name or --without-vim-name was given.
3438if test "${with_vim_name+set}" = set; then
3439 withval="$with_vim_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003440 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3441echo "${ECHO_T}$VIMNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003442else
Bram Moolenaare344bea2005-09-01 20:46:49 +00003443 VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003444echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3445fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003446
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003447echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3448echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003449
Bram Moolenaar071d4272004-06-13 20:20:40 +00003450# Check whether --with-ex-name or --without-ex-name was given.
3451if test "${with_ex_name+set}" = set; then
3452 withval="$with_ex_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003453 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3454echo "${ECHO_T}$EXNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003455else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003456 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3457echo "${ECHO_T}Defaulting to ex" >&6
3458fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003459
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003460echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3461echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003462
Bram Moolenaar071d4272004-06-13 20:20:40 +00003463# Check whether --with-view-name or --without-view-name was given.
3464if test "${with_view_name+set}" = set; then
3465 withval="$with_view_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003466 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3467echo "${ECHO_T}$VIEWNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003468else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003469 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3470echo "${ECHO_T}Defaulting to view" >&6
3471fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003472
3473
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003474echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3475echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003476
Bram Moolenaar071d4272004-06-13 20:20:40 +00003477# Check whether --with-global-runtime or --without-global-runtime was given.
3478if test "${with_global_runtime+set}" = set; then
3479 withval="$with_global_runtime"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003480 echo "$as_me:$LINENO: result: $withval" >&5
3481echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003482#define RUNTIME_GLOBAL "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003483_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003484
3485else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003486 echo "$as_me:$LINENO: result: no" >&5
3487echo "${ECHO_T}no" >&6
3488fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003489
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003490echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3491echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003492
Bram Moolenaar071d4272004-06-13 20:20:40 +00003493# Check whether --with-modified-by or --without-modified-by was given.
3494if test "${with_modified_by+set}" = set; then
3495 withval="$with_modified_by"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003496 echo "$as_me:$LINENO: result: $withval" >&5
3497echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003498#define MODIFIED_BY "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003499_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003500
3501else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003502 echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
3504fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003505
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003506echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3507echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3508cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h. */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003514
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003515int
3516main ()
3517{
Bram Moolenaar071d4272004-06-13 20:20:40 +00003518 /* TryCompile function for CharSet.
3519 Treat any failure as ASCII for compatibility with existing art.
3520 Use compile-time rather than run-time tests for cross-compiler
3521 tolerance. */
3522#if '0'!=240
3523make an error "Character set is not EBCDIC"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003524#endif
3525 ;
3526 return 0;
3527}
3528_ACEOF
3529rm -f conftest.$ac_objext
3530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>conftest.er1
3532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } &&
3538 { ac_try='test -z "$ac_c_werror_flag"
3539 || test ! -s conftest.err'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; } &&
3545 { ac_try='test -s conftest.$ac_objext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00003551 # TryCompile action if true
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003552cf_cv_ebcdic=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003553else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003554 echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 # TryCompile action if false
Bram Moolenaar071d4272004-06-13 20:20:40 +00003558cf_cv_ebcdic=no
3559fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003561# end of TryCompile ])
3562# end of CacheVal CvEbcdic
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003563echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3564echo "${ECHO_T}$cf_cv_ebcdic" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003565case "$cf_cv_ebcdic" in #(vi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003566 yes) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003567#define EBCDIC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003568_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003569
3570 line_break='"\\n"'
3571 ;;
3572 *) line_break='"\\012"';;
3573esac
3574
3575
3576if test "$cf_cv_ebcdic" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003577echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3578echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003579case `uname` in
3580 OS/390) OS390Unix="yes";
3581 if test "$CC" = "cc"; then
3582 ccm="$_CC_CCMODE"
3583 ccn="CC"
3584 else
3585 if test "$CC" = "c89"; then
3586 ccm="$_CC_C89MODE"
3587 ccn="C89"
3588 else
3589 ccm=1
3590 fi
3591 fi
3592 if test "$ccm" != "1"; then
3593 echo ""
3594 echo "------------------------------------------"
3595 echo " On OS/390 Unix, the environment variable"
3596 echo " __CC_${ccn}MODE must be set to \"1\"!"
3597 echo " Do:"
3598 echo " export _CC_${ccn}MODE=1"
3599 echo " and then call configure again."
3600 echo "------------------------------------------"
3601 exit 1
3602 fi
3603 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003604 echo "$as_me:$LINENO: result: yes" >&5
3605echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003606 ;;
3607 *) OS390Unix="no";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003608 echo "$as_me:$LINENO: result: no" >&5
3609echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003610 ;;
3611esac
3612fi
3613
3614
3615
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003616echo "$as_me:$LINENO: checking --with-features argument" >&5
3617echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3618
Bram Moolenaar071d4272004-06-13 20:20:40 +00003619# Check whether --with-features or --without-features was given.
3620if test "${with_features+set}" = set; then
3621 withval="$with_features"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003622 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3623echo "${ECHO_T}$features" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003624else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003625 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3626echo "${ECHO_T}Defaulting to normal" >&6
3627fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003628
3629dovimdiff=""
3630dogvimdiff=""
3631case "$features" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003632 tiny) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003633#define FEAT_TINY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003634_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003635 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003636 small) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003637#define FEAT_SMALL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003638_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003639 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003640 normal) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003641#define FEAT_NORMAL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003642_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003643 dovimdiff="installvimdiff";
3644 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003645 big) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003646#define FEAT_BIG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003647_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003648 dovimdiff="installvimdiff";
3649 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003650 huge) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003651#define FEAT_HUGE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003652_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003653 dovimdiff="installvimdiff";
3654 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003655 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3656echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003657esac
3658
3659
3660
3661
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003662echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3663echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3664
Bram Moolenaar071d4272004-06-13 20:20:40 +00003665# Check whether --with-compiledby or --without-compiledby was given.
3666if test "${with_compiledby+set}" = set; then
3667 withval="$with_compiledby"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003668 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3669echo "${ECHO_T}$withval" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003670else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003671 compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3672echo "${ECHO_T}no" >&6
3673fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003674
3675
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003676echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3677echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003678# Check whether --enable-xsmp or --disable-xsmp was given.
3679if test "${enable_xsmp+set}" = set; then
3680 enableval="$enable_xsmp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003681
Bram Moolenaar071d4272004-06-13 20:20:40 +00003682else
3683 enable_xsmp="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003684fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003685
3686if test "$enable_xsmp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003687 echo "$as_me:$LINENO: result: no" >&5
3688echo "${ECHO_T}no" >&6
3689 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3690echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003691 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3692if test "${enable_xsmp_interact+set}" = set; then
3693 enableval="$enable_xsmp_interact"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003694
Bram Moolenaar071d4272004-06-13 20:20:40 +00003695else
3696 enable_xsmp_interact="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003697fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003698 if test "$enable_xsmp_interact" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003699 echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003702#define USE_XSMP_INTERACT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003703_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003704
3705 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003706 echo "$as_me:$LINENO: result: yes" >&5
3707echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003708 fi
3709else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003710 echo "$as_me:$LINENO: result: yes" >&5
3711echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003712fi
3713
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003714echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3715echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003716# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3717if test "${enable_mzschemeinterp+set}" = set; then
3718 enableval="$enable_mzschemeinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003719
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003720else
3721 enable_mzschemeinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003722fi;
3723echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3724echo "${ECHO_T}$enable_mzschemeinterp" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003725
3726if test "$enable_mzschemeinterp" = "yes"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003727
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003728
3729 echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3730echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3731
3732# Check whether --with-plthome or --without-plthome was given.
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003733if test "${with_plthome+set}" = set; then
3734 withval="$with_plthome"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003735 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3736echo "${ECHO_T}$with_plthome" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003737else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003738 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3739echo "${ECHO_T}\"no\"" >&6
3740fi;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003741
3742 if test "X$with_plthome" != "X"; then
3743 vi_cv_path_mzscheme_pfx="$with_plthome"
3744 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003745 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3746echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003747 if test "X$PLTHOME" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003748 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3749echo "${ECHO_T}\"$PLTHOME\"" >&6
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003750 vi_cv_path_mzscheme_pfx="$PLTHOME"
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003751 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003752 echo "$as_me:$LINENO: result: \"not set\"" >&5
3753echo "${ECHO_T}\"not set\"" >&6
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003754 # Extract the first word of "mzscheme", so it can be a program name with args.
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003755set dummy mzscheme; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003756echo "$as_me:$LINENO: checking for $ac_word" >&5
3757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3758if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003760else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003761 case $vi_cv_path_mzscheme in
3762 [\\/]* | ?:[\\/]*)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003763 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3764 ;;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003765 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3776 fi
3777done
3778done
3779
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003780 ;;
3781esac
3782fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003783vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3784
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003785if test -n "$vi_cv_path_mzscheme"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003786 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3787echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003788else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003789 echo "$as_me:$LINENO: result: no" >&5
3790echo "${ECHO_T}no" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003791fi
3792
3793
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003794 if test "X$vi_cv_path_mzscheme" != "X"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003795 lsout=`ls -l $vi_cv_path_mzscheme`
3796 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3797 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3798 fi
3799 fi
3800
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003801 if test "X$vi_cv_path_mzscheme" != "X"; then
3802 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003803echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3804if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003806else
3807 vi_cv_path_mzscheme_pfx=`
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003808 ${vi_cv_path_mzscheme} -evm \
3809 "(display (simplify-path \
3810 (build-path (call-with-values \
3811 (lambda () (split-path (find-system-path (quote exec-file)))) \
3812 (lambda (base name must-be-dir?) base)) (quote up))))"`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003813fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003814echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3815echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003816 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003817 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003818 fi
3819 fi
3820
Bram Moolenaarff4a37e2007-05-06 13:18:29 +00003821 SCHEME_INC=
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003822 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003823 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3824echo $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 +00003825 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003826 echo "$as_me:$LINENO: result: \"yes\"" >&5
3827echo "${ECHO_T}\"yes\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003828 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003829 echo "$as_me:$LINENO: result: \"no\"" >&5
3830echo "${ECHO_T}\"no\"" >&6
Bram Moolenaarff4a37e2007-05-06 13:18:29 +00003831 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5
3832echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... $ECHO_C" >&6
3833 if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then
3834 echo "$as_me:$LINENO: result: \"yes\"" >&5
3835echo "${ECHO_T}\"yes\"" >&6
3836 SCHEME_INC=/plt
3837 else
3838 echo "$as_me:$LINENO: result: \"no\"" >&5
3839echo "${ECHO_T}\"no\"" >&6
3840 vi_cv_path_mzscheme_pfx=
3841 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003842 fi
3843 fi
3844
3845 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
Bram Moolenaarf15f9432007-06-28 11:07:21 +00003846 if test "x$MACOSX" = "xyes"; then
3847 MZSCHEME_LIBS="-framework PLT_MzScheme"
3848 elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
Bram Moolenaare0d7b3c2007-05-12 14:23:41 +00003849 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003850 else
Bram Moolenaare0d7b3c2007-05-12 14:23:41 +00003851 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003852 if test "$GCC" = yes; then
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00003853 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar21cf8232004-07-16 20:18:37 +00003854 elif test "`(uname) 2>/dev/null`" = SunOS &&
3855 uname -r | grep '^5' >/dev/null; then
3856 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003857 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003858 fi
Bram Moolenaarff4a37e2007-05-06 13:18:29 +00003859 if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then
3860 SCHEME_COLLECTS=lib/plt/
3861 fi
3862 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \
3863 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'"
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003864 MZSCHEME_SRC="if_mzsch.c"
3865 MZSCHEME_OBJ="objects/if_mzsch.o"
3866 MZSCHEME_PRO="if_mzsch.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003867 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003868#define FEAT_MZSCHEME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003869_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003870
3871 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003872
3873
3874
3875
3876
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003877fi
3878
3879
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003880echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3881echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003882# Check whether --enable-perlinterp or --disable-perlinterp was given.
3883if test "${enable_perlinterp+set}" = set; then
3884 enableval="$enable_perlinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003885
Bram Moolenaar071d4272004-06-13 20:20:40 +00003886else
3887 enable_perlinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003888fi;
3889echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3890echo "${ECHO_T}$enable_perlinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003891if test "$enable_perlinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003892
Bram Moolenaar071d4272004-06-13 20:20:40 +00003893 # Extract the first word of "perl", so it can be a program name with args.
3894set dummy perl; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003895echo "$as_me:$LINENO: checking for $ac_word" >&5
3896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3897if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003899else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003900 case $vi_cv_path_perl in
3901 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003902 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3903 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003904 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916done
3917done
3918
Bram Moolenaar071d4272004-06-13 20:20:40 +00003919 ;;
3920esac
3921fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003922vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3923
Bram Moolenaar071d4272004-06-13 20:20:40 +00003924if test -n "$vi_cv_path_perl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003925 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3926echo "${ECHO_T}$vi_cv_path_perl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003927else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003928 echo "$as_me:$LINENO: result: no" >&5
3929echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003930fi
3931
3932 if test "X$vi_cv_path_perl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003933 echo "$as_me:$LINENO: checking Perl version" >&5
3934echo $ECHO_N "checking Perl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003935 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3936 eval `$vi_cv_path_perl -V:usethreads`
3937 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3938 badthreads=no
3939 else
3940 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3941 eval `$vi_cv_path_perl -V:use5005threads`
3942 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3943 badthreads=no
3944 else
3945 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003946 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3947echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003948 fi
3949 else
3950 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003951 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3952echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003953 fi
3954 fi
3955 if test $badthreads = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003956 echo "$as_me:$LINENO: result: OK" >&5
3957echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003958 eval `$vi_cv_path_perl -V:shrpenv`
3959 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3960 shrpenv=""
3961 fi
3962 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003963
Bram Moolenaar071d4272004-06-13 20:20:40 +00003964 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3965 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3966 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3967 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3968 -e 's/-bE:perl.exp//' -e 's/-lc //'`
3969 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3970 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3971
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003972 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3973echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003974 cflags_save=$CFLAGS
3975 libs_save=$LIBS
3976 ldflags_save=$LDFLAGS
3977 CFLAGS="$CFLAGS $perlcppflags"
3978 LIBS="$LIBS $perllibs"
3979 LDFLAGS="$perlldflags $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003980 cat >conftest.$ac_ext <<_ACEOF
3981/* confdefs.h. */
3982_ACEOF
3983cat confdefs.h >>conftest.$ac_ext
3984cat >>conftest.$ac_ext <<_ACEOF
3985/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003986
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003987int
3988main ()
3989{
3990
3991 ;
3992 return 0;
3993}
3994_ACEOF
3995rm -f conftest.$ac_objext conftest$ac_exeext
3996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3997 (eval $ac_link) 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } &&
4004 { ac_try='test -z "$ac_c_werror_flag"
4005 || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 echo "$as_me:$LINENO: result: yes" >&5
4018echo "${ECHO_T}yes" >&6; perl_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004019else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004020 echo "$as_me: failed program was:" >&5
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
4023echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4024echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004025fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004026rm -f conftest.err conftest.$ac_objext \
4027 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004028 CFLAGS=$cflags_save
4029 LIBS=$libs_save
4030 LDFLAGS=$ldflags_save
4031 if test $perl_ok = yes; then
4032 if test "X$perlcppflags" != "X"; then
Bram Moolenaarff4a37e2007-05-06 13:18:29 +00004033 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004034 fi
4035 if test "X$perlldflags" != "X"; then
4036 LDFLAGS="$perlldflags $LDFLAGS"
4037 fi
4038 PERL_LIBS=$perllibs
4039 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4040 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4041 PERL_PRO="if_perl.pro if_perlsfio.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004042 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004043#define FEAT_PERL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004044_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004045
4046 fi
4047 fi
4048 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004049 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4050echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004051 fi
4052 fi
4053
4054 if test "x$MACOSX" = "xyes"; then
4055 dir=/System/Library/Perl
4056 darwindir=$dir/darwin
4057 if test -d $darwindir; then
4058 PERL=/usr/bin/perl
4059 else
4060 dir=/System/Library/Perl/5.8.1
4061 darwindir=$dir/darwin-thread-multi-2level
4062 if test -d $darwindir; then
4063 PERL=/usr/bin/perl
4064 fi
4065 fi
4066 if test -n "$PERL"; then
4067 PERL_DIR="$dir"
4068 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4069 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4070 PERL_LIBS="-L$darwindir/CORE -lperl"
4071 fi
4072 fi
4073fi
4074
4075
4076
4077
4078
4079
4080
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004081echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4082echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004083# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4084if test "${enable_pythoninterp+set}" = set; then
4085 enableval="$enable_pythoninterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004086
Bram Moolenaar071d4272004-06-13 20:20:40 +00004087else
4088 enable_pythoninterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004089fi;
4090echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4091echo "${ECHO_T}$enable_pythoninterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004092if test "$enable_pythoninterp" = "yes"; then
4093 # Extract the first word of "python", so it can be a program name with args.
4094set dummy python; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004095echo "$as_me:$LINENO: checking for $ac_word" >&5
4096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004099else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004100 case $vi_cv_path_python in
4101 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004102 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4103 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004104 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH
4107do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116done
4117done
4118
Bram Moolenaar071d4272004-06-13 20:20:40 +00004119 ;;
4120esac
4121fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004122vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4123
Bram Moolenaar071d4272004-06-13 20:20:40 +00004124if test -n "$vi_cv_path_python"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004125 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4126echo "${ECHO_T}$vi_cv_path_python" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004127else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004128 echo "$as_me:$LINENO: result: no" >&5
4129echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004130fi
4131
4132 if test "X$vi_cv_path_python" != "X"; then
4133
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004134 echo "$as_me:$LINENO: checking Python version" >&5
4135echo $ECHO_N "checking Python version... $ECHO_C" >&6
4136if test "${vi_cv_var_python_version+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004138else
4139 vi_cv_var_python_version=`
4140 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004141
Bram Moolenaar071d4272004-06-13 20:20:40 +00004142fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004143echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4144echo "${ECHO_T}$vi_cv_var_python_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004145
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004146 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4147echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004148 if ${vi_cv_path_python} -c \
4149 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4150 then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004151 echo "$as_me:$LINENO: result: yep" >&5
4152echo "${ECHO_T}yep" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004153
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004154 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4155echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4156if test "${vi_cv_path_python_pfx+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004158else
4159 vi_cv_path_python_pfx=`
4160 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004161 "import sys; print sys.prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004162fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004163echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4164echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004165
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004166 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4167echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4168if test "${vi_cv_path_python_epfx+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004170else
4171 vi_cv_path_python_epfx=`
4172 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004173 "import sys; print sys.exec_prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004174fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004175echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4176echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004177
Bram Moolenaar071d4272004-06-13 20:20:40 +00004178
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004179 if test "${vi_cv_path_pythonpath+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004181else
4182 vi_cv_path_pythonpath=`
4183 unset PYTHONPATH;
4184 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004185 "import sys, string; print string.join(sys.path,':')"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004186fi
4187
4188
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004189
4190
4191# Check whether --with-python-config-dir or --without-python-config-dir was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004192if test "${with_python_config_dir+set}" = set; then
4193 withval="$with_python_config_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004194 vi_cv_path_python_conf="${withval}"
4195fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004196
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004197 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4198echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4199if test "${vi_cv_path_python_conf+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004201else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004202
Bram Moolenaar071d4272004-06-13 20:20:40 +00004203 vi_cv_path_python_conf=
4204 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4205 for subdir in lib share; do
4206 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4207 if test -d "$d" && test -f "$d/config.c"; then
4208 vi_cv_path_python_conf="$d"
4209 fi
4210 done
4211 done
Bram Moolenaar071d4272004-06-13 20:20:40 +00004212
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004213fi
4214echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4215echo "${ECHO_T}$vi_cv_path_python_conf" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004216
4217 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4218
4219 if test "X$PYTHON_CONFDIR" = "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004220 echo "$as_me:$LINENO: result: can't find it!" >&5
4221echo "${ECHO_T}can't find it!" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004222 else
4223
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004224 if test "${vi_cv_path_python_plibs+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004226else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004227
Bram Moolenaar071d4272004-06-13 20:20:40 +00004228 tmp_mkf="/tmp/Makefile-conf$$"
4229 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4230__:
4231 @echo "python_MODLIBS='$(MODLIBS)'"
4232 @echo "python_LIBS='$(LIBS)'"
4233 @echo "python_SYSLIBS='$(SYSLIBS)'"
4234 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4235eof
4236 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4237 rm -f ${tmp_mkf}
4238 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4239 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4240 vi_cv_path_python_plibs="-framework Python"
4241 else
4242 if test "${vi_cv_var_python_version}" = "1.4"; then
4243 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4244 else
4245 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4246 fi
4247 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4248 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4249 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004250
Bram Moolenaar071d4272004-06-13 20:20:40 +00004251fi
4252
4253
4254 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4255 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4256 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4257 else
4258 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}"
4259 fi
4260 PYTHON_SRC="if_python.c"
4261 if test "x$MACOSX" = "xyes"; then
4262 PYTHON_OBJ="objects/if_python.o"
4263 else
4264 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4265 fi
4266 if test "${vi_cv_var_python_version}" = "1.4"; then
4267 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4268 fi
4269 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4270
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004271 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4272echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004273 threadsafe_flag=
4274 thread_lib=
Bram Moolenaara1b5aa52006-10-10 09:41:28 +00004275 if test "`(uname) 2>/dev/null`" != Darwin; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004276 test "$GCC" = yes && threadsafe_flag="-pthread"
4277 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4278 threadsafe_flag="-D_THREAD_SAFE"
4279 thread_lib="-pthread"
4280 fi
4281 fi
4282 libs_save_old=$LIBS
4283 if test -n "$threadsafe_flag"; then
4284 cflags_save=$CFLAGS
4285 CFLAGS="$CFLAGS $threadsafe_flag"
4286 LIBS="$LIBS $thread_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004287 cat >conftest.$ac_ext <<_ACEOF
4288/* confdefs.h. */
4289_ACEOF
4290cat confdefs.h >>conftest.$ac_ext
4291cat >>conftest.$ac_ext <<_ACEOF
4292/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004293
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004294int
4295main ()
4296{
4297
4298 ;
4299 return 0;
4300}
4301_ACEOF
4302rm -f conftest.$ac_objext conftest$ac_exeext
4303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4304 (eval $ac_link) 2>conftest.er1
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag"
4312 || test ! -s conftest.err'
4313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4314 (eval $ac_try) 2>&5
4315 ac_status=$?
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); }; } &&
4318 { ac_try='test -s conftest$ac_exeext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 echo "$as_me:$LINENO: result: yes" >&5
4325echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004326else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004327 echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330echo "$as_me:$LINENO: result: no" >&5
4331echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4332
Bram Moolenaar071d4272004-06-13 20:20:40 +00004333fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004334rm -f conftest.err conftest.$ac_objext \
4335 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004336 CFLAGS=$cflags_save
4337 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004338 echo "$as_me:$LINENO: result: no" >&5
4339echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004340 fi
4341
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004342 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4343echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004344 cflags_save=$CFLAGS
4345 libs_save=$LIBS
4346 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4347 LIBS="$LIBS $PYTHON_LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004348 cat >conftest.$ac_ext <<_ACEOF
4349/* confdefs.h. */
4350_ACEOF
4351cat confdefs.h >>conftest.$ac_ext
4352cat >>conftest.$ac_ext <<_ACEOF
4353/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004354
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004355int
4356main ()
4357{
4358
4359 ;
4360 return 0;
4361}
4362_ACEOF
4363rm -f conftest.$ac_objext conftest$ac_exeext
4364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest$ac_exeext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 (eval $ac_try) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385 echo "$as_me:$LINENO: result: yes" >&5
4386echo "${ECHO_T}yes" >&6; python_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004387else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004388 echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4392echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004393fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004394rm -f conftest.err conftest.$ac_objext \
4395 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004396 CFLAGS=$cflags_save
4397 LIBS=$libs_save
4398 if test $python_ok = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004399 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004400#define FEAT_PYTHON 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004401_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004402
4403 else
4404 LIBS=$libs_save_old
4405 PYTHON_SRC=
4406 PYTHON_OBJ=
4407 PYTHON_LIBS=
4408 PYTHON_CFLAGS=
4409 fi
4410
4411 fi
4412 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004413 echo "$as_me:$LINENO: result: too old" >&5
4414echo "${ECHO_T}too old" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004415 fi
4416 fi
4417fi
4418
4419
4420
4421
4422
4423
4424
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004425echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4426echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004427# Check whether --enable-tclinterp or --disable-tclinterp was given.
4428if test "${enable_tclinterp+set}" = set; then
4429 enableval="$enable_tclinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004430
Bram Moolenaar071d4272004-06-13 20:20:40 +00004431else
4432 enable_tclinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004433fi;
4434echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4435echo "${ECHO_T}$enable_tclinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004436
4437if test "$enable_tclinterp" = "yes"; then
4438
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004439 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4440echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4441
4442# Check whether --with-tclsh or --without-tclsh was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004443if test "${with_tclsh+set}" = set; then
4444 withval="$with_tclsh"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004445 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4446echo "${ECHO_T}$tclsh_name" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004447else
Bram Moolenaar9b5d4dd2008-01-01 15:26:45 +00004448 tclsh_name="tclsh8.5"; echo "$as_me:$LINENO: result: no" >&5
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004449echo "${ECHO_T}no" >&6
4450fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004451 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4452set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004453echo "$as_me:$LINENO: checking for $ac_word" >&5
4454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4455if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004457else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004458 case $vi_cv_path_tcl in
4459 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004460 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4461 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004462 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4473 fi
4474done
4475done
4476
Bram Moolenaar071d4272004-06-13 20:20:40 +00004477 ;;
4478esac
4479fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004480vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4481
Bram Moolenaar071d4272004-06-13 20:20:40 +00004482if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004483 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4484echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004485else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004486 echo "$as_me:$LINENO: result: no" >&5
4487echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004488fi
4489
Bram Moolenaar071d4272004-06-13 20:20:40 +00004490
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004491
Bram Moolenaar9b5d4dd2008-01-01 15:26:45 +00004492 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then
4493 tclsh_name="tclsh8.4"
4494 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4495set dummy $tclsh_name; ac_word=$2
4496echo "$as_me:$LINENO: checking for $ac_word" >&5
4497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4498if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500else
4501 case $vi_cv_path_tcl in
4502 [\\/]* | ?:[\\/]*)
4503 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4504 ;;
4505 *)
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507for as_dir in $PATH
4508do
4509 IFS=$as_save_IFS
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 break 2
4516 fi
4517done
4518done
4519
4520 ;;
4521esac
4522fi
4523vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4524
4525if test -n "$vi_cv_path_tcl"; then
4526 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4527echo "${ECHO_T}$vi_cv_path_tcl" >&6
4528else
4529 echo "$as_me:$LINENO: result: no" >&5
4530echo "${ECHO_T}no" >&6
4531fi
4532
4533 fi
4534 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004535 tclsh_name="tclsh8.2"
4536 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4537set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004538echo "$as_me:$LINENO: checking for $ac_word" >&5
4539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004542else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004543 case $vi_cv_path_tcl in
4544 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004545 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4546 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004547 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549for as_dir in $PATH
4550do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4558 fi
4559done
4560done
4561
Bram Moolenaar071d4272004-06-13 20:20:40 +00004562 ;;
4563esac
4564fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004565vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4566
Bram Moolenaar071d4272004-06-13 20:20:40 +00004567if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004568 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4569echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004570else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004571 echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6
4573fi
4574
4575 fi
4576 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4577 tclsh_name="tclsh8.0"
4578 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4579set dummy $tclsh_name; ac_word=$2
4580echo "$as_me:$LINENO: checking for $ac_word" >&5
4581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585 case $vi_cv_path_tcl in
4586 [\\/]* | ?:[\\/]*)
4587 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4588 ;;
4589 *)
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601done
4602done
4603
4604 ;;
4605esac
4606fi
4607vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4608
4609if test -n "$vi_cv_path_tcl"; then
4610 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4611echo "${ECHO_T}$vi_cv_path_tcl" >&6
4612else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004615fi
4616
4617 fi
4618 if test "X$vi_cv_path_tcl" = "X"; then
4619 tclsh_name="tclsh"
4620 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4621set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004622echo "$as_me:$LINENO: checking for $ac_word" >&5
4623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4624if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004626else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004627 case $vi_cv_path_tcl in
4628 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004629 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4630 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004631 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4642 fi
4643done
4644done
4645
Bram Moolenaar071d4272004-06-13 20:20:40 +00004646 ;;
4647esac
4648fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004649vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4650
Bram Moolenaar071d4272004-06-13 20:20:40 +00004651if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004652 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4653echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004654else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004655 echo "$as_me:$LINENO: result: no" >&5
4656echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004657fi
4658
4659 fi
4660 if test "X$vi_cv_path_tcl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004661 echo "$as_me:$LINENO: checking Tcl version" >&5
4662echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004663 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4664 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004665 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4666echo "${ECHO_T}$tclver - OK" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004667 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 -`
4668
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004669 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4670echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004671 if test "x$MACOSX" != "xyes"; then
Bram Moolenaar47136d72004-10-12 20:02:24 +00004672 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004673 else
4674 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4675 fi
4676 for try in $tclinc; do
4677 if test -f "$try/tcl.h"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004678 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4679echo "${ECHO_T}$try/tcl.h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004680 TCL_INC=$try
4681 break
4682 fi
4683 done
4684 if test -z "$TCL_INC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004685 echo "$as_me:$LINENO: result: <not found>" >&5
4686echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004687 SKIP_TCL=YES
4688 fi
4689 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004690 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4691echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004692 if test "x$MACOSX" != "xyes"; then
4693 tclcnf=`echo $tclinc | sed s/include/lib/g`
Bram Moolenaar9b5d4dd2008-01-01 15:26:45 +00004694 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004695 else
4696 tclcnf="/System/Library/Frameworks/Tcl.framework"
4697 fi
4698 for try in $tclcnf; do
4699 if test -f $try/tclConfig.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004700 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4701echo "${ECHO_T}$try/tclConfig.sh" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004702 . $try/tclConfig.sh
4703 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
Bram Moolenaar9372a112005-12-06 19:59:18 +00004704 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 +00004705 break
4706 fi
4707 done
4708 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004709 echo "$as_me:$LINENO: result: <not found>" >&5
4710echo "${ECHO_T}<not found>" >&6
4711 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4712echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004713 tcllib=`echo $tclinc | sed s/include/lib/g`
Bram Moolenaar9b5d4dd2008-01-01 15:26:45 +00004714 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004715 for ext in .so .a ; do
4716 for ver in "" $tclver ; do
4717 for try in $tcllib ; do
4718 trylib=tcl$ver$ext
4719 if test -f $try/lib$trylib ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004720 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4721echo "${ECHO_T}$try/lib$trylib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004722 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4723 if test "`(uname) 2>/dev/null`" = SunOS &&
4724 uname -r | grep '^5' >/dev/null; then
4725 TCL_LIBS="$TCL_LIBS -R $try"
4726 fi
4727 break 3
4728 fi
4729 done
4730 done
4731 done
4732 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004733 echo "$as_me:$LINENO: result: <not found>" >&5
4734echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004735 SKIP_TCL=YES
4736 fi
4737 fi
4738 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004739 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004740#define FEAT_TCL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004741_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004742
4743 TCL_SRC=if_tcl.c
4744 TCL_OBJ=objects/if_tcl.o
4745 TCL_PRO=if_tcl.pro
4746 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4747 fi
4748 fi
4749 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004750 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4751echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004752 fi
4753 fi
4754fi
4755
4756
4757
4758
4759
4760
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004761echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4762echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004763# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4764if test "${enable_rubyinterp+set}" = set; then
4765 enableval="$enable_rubyinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004766
Bram Moolenaar071d4272004-06-13 20:20:40 +00004767else
4768 enable_rubyinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004769fi;
4770echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4771echo "${ECHO_T}$enable_rubyinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004772if test "$enable_rubyinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004773
Bram Moolenaar071d4272004-06-13 20:20:40 +00004774 # Extract the first word of "ruby", so it can be a program name with args.
4775set dummy ruby; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004776echo "$as_me:$LINENO: checking for $ac_word" >&5
4777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004780else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004781 case $vi_cv_path_ruby in
4782 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004783 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4784 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004785 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797done
4798done
4799
Bram Moolenaar071d4272004-06-13 20:20:40 +00004800 ;;
4801esac
4802fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004803vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4804
Bram Moolenaar071d4272004-06-13 20:20:40 +00004805if test -n "$vi_cv_path_ruby"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004806 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4807echo "${ECHO_T}$vi_cv_path_ruby" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004808else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004809 echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004811fi
4812
4813 if test "X$vi_cv_path_ruby" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004814 echo "$as_me:$LINENO: checking Ruby version" >&5
4815echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
Bram Moolenaar0cb032e2005-04-23 20:52:00 +00004816 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 +00004817 echo "$as_me:$LINENO: result: OK" >&5
4818echo "${ECHO_T}OK" >&6
4819 echo "$as_me:$LINENO: checking Ruby header files" >&5
4820echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004821 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4822 if test "X$rubyhdrdir" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004823 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4824echo "${ECHO_T}$rubyhdrdir" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004825 RUBY_CFLAGS="-I$rubyhdrdir"
4826 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4827 if test "X$rubylibs" != "X"; then
4828 RUBY_LIBS="$rubylibs"
4829 fi
4830 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4831 if test -f "$rubyhdrdir/$librubyarg"; then
4832 librubyarg="$rubyhdrdir/$librubyarg"
4833 else
4834 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4835 if test -f "$rubylibdir/$librubyarg"; then
4836 librubyarg="$rubylibdir/$librubyarg"
4837 elif test "$librubyarg" = "libruby.a"; then
4838 librubyarg="-lruby"
4839 else
4840 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4841 fi
4842 fi
4843
4844 if test "X$librubyarg" != "X"; then
4845 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4846 fi
4847 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4848 if test "X$rubyldflags" != "X"; then
4849 LDFLAGS="$rubyldflags $LDFLAGS"
4850 fi
4851 RUBY_SRC="if_ruby.c"
4852 RUBY_OBJ="objects/if_ruby.o"
4853 RUBY_PRO="if_ruby.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004854 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004855#define FEAT_RUBY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004856_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004857
4858 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004859 echo "$as_me:$LINENO: result: not found" >&5
4860echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004861 fi
4862 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004863 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4864echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004865 fi
4866 fi
4867fi
4868
4869
4870
4871
4872
4873
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004874echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4875echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004876# Check whether --enable-cscope or --disable-cscope was given.
4877if test "${enable_cscope+set}" = set; then
4878 enableval="$enable_cscope"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004879
Bram Moolenaar071d4272004-06-13 20:20:40 +00004880else
4881 enable_cscope="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004882fi;
4883echo "$as_me:$LINENO: result: $enable_cscope" >&5
4884echo "${ECHO_T}$enable_cscope" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004885if test "$enable_cscope" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004886 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004887#define FEAT_CSCOPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004888_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004889
4890fi
4891
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004892echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4893echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004894# Check whether --enable-workshop or --disable-workshop was given.
4895if test "${enable_workshop+set}" = set; then
4896 enableval="$enable_workshop"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004897
Bram Moolenaar071d4272004-06-13 20:20:40 +00004898else
4899 enable_workshop="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004900fi;
4901echo "$as_me:$LINENO: result: $enable_workshop" >&5
4902echo "${ECHO_T}$enable_workshop" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004903if test "$enable_workshop" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004904 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004905#define FEAT_SUN_WORKSHOP 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004906_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004907
4908 WORKSHOP_SRC="workshop.c integration.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004909
Bram Moolenaar071d4272004-06-13 20:20:40 +00004910 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004911
Bram Moolenaar071d4272004-06-13 20:20:40 +00004912 if test "${enable_gui-xxx}" = xxx; then
4913 enable_gui=motif
4914 fi
4915fi
4916
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004917echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4918echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004919# Check whether --enable-netbeans or --disable-netbeans was given.
4920if test "${enable_netbeans+set}" = set; then
4921 enableval="$enable_netbeans"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004922
Bram Moolenaar071d4272004-06-13 20:20:40 +00004923else
4924 enable_netbeans="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004925fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004926if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004927 echo "$as_me:$LINENO: result: no" >&5
4928echo "${ECHO_T}no" >&6
4929
4930echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4931echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4932if test "${ac_cv_lib_socket_socket+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004934else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004935 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004936LIBS="-lsocket $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004937cat >conftest.$ac_ext <<_ACEOF
4938/* confdefs.h. */
4939_ACEOF
4940cat confdefs.h >>conftest.$ac_ext
4941cat >>conftest.$ac_ext <<_ACEOF
4942/* end confdefs.h. */
4943
Bram Moolenaar071d4272004-06-13 20:20:40 +00004944/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004945#ifdef __cplusplus
4946extern "C"
4947#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004948/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004949 builtin and then its argument prototype would still apply. */
4950char socket ();
4951int
4952main ()
4953{
4954socket ();
4955 ;
4956 return 0;
4957}
4958_ACEOF
4959rm -f conftest.$ac_objext conftest$ac_exeext
4960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } &&
4968 { ac_try='test -z "$ac_c_werror_flag"
4969 || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4971 (eval $ac_try) 2>&5
4972 ac_status=$?
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest$ac_exeext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977 (eval $ac_try) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 ac_cv_lib_socket_socket=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004982else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004983 echo "$as_me: failed program was:" >&5
4984sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004985
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004986ac_cv_lib_socket_socket=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004987fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004988rm -f conftest.err conftest.$ac_objext \
4989 conftest$ac_exeext conftest.$ac_ext
4990LIBS=$ac_check_lib_save_LIBS
4991fi
4992echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4993echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4994if test $ac_cv_lib_socket_socket = yes; then
4995 cat >>confdefs.h <<_ACEOF
4996#define HAVE_LIBSOCKET 1
4997_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004998
4999 LIBS="-lsocket $LIBS"
5000
Bram Moolenaar071d4272004-06-13 20:20:40 +00005001fi
5002
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005003
5004echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5005echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5006if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005008else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005009 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005010LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005011cat >conftest.$ac_ext <<_ACEOF
5012/* confdefs.h. */
5013_ACEOF
5014cat confdefs.h >>conftest.$ac_ext
5015cat >>conftest.$ac_ext <<_ACEOF
5016/* end confdefs.h. */
5017
Bram Moolenaar071d4272004-06-13 20:20:40 +00005018/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005019#ifdef __cplusplus
5020extern "C"
5021#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005022/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005023 builtin and then its argument prototype would still apply. */
5024char gethostbyname ();
5025int
5026main ()
5027{
5028gethostbyname ();
5029 ;
5030 return 0;
5031}
5032_ACEOF
5033rm -f conftest.$ac_objext conftest$ac_exeext
5034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5035 (eval $ac_link) 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } &&
5042 { ac_try='test -z "$ac_c_werror_flag"
5043 || test ! -s conftest.err'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; } &&
5049 { ac_try='test -s conftest$ac_exeext'
5050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051 (eval $ac_try) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005056else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005057 echo "$as_me: failed program was:" >&5
5058sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005059
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005060ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005061fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005062rm -f conftest.err conftest.$ac_objext \
5063 conftest$ac_exeext conftest.$ac_ext
5064LIBS=$ac_check_lib_save_LIBS
5065fi
5066echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5067echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5068if test $ac_cv_lib_nsl_gethostbyname = yes; then
5069 cat >>confdefs.h <<_ACEOF
5070#define HAVE_LIBNSL 1
5071_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005072
5073 LIBS="-lnsl $LIBS"
5074
Bram Moolenaar071d4272004-06-13 20:20:40 +00005075fi
5076
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005077 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5078echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5079 cat >conftest.$ac_ext <<_ACEOF
5080/* confdefs.h. */
5081_ACEOF
5082cat confdefs.h >>conftest.$ac_ext
5083cat >>conftest.$ac_ext <<_ACEOF
5084/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005085
5086#include <stdio.h>
5087#include <stdlib.h>
5088#include <stdarg.h>
5089#include <fcntl.h>
5090#include <netdb.h>
5091#include <netinet/in.h>
5092#include <errno.h>
5093#include <sys/types.h>
5094#include <sys/socket.h>
5095 /* Check bitfields */
5096 struct nbbuf {
5097 unsigned int initDone:1;
5098 ushort signmaplen;
5099 };
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005100
5101int
5102main ()
5103{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005104
5105 /* Check creating a socket. */
5106 struct sockaddr_in server;
5107 (void)socket(AF_INET, SOCK_STREAM, 0);
5108 (void)htons(100);
5109 (void)gethostbyname("microsoft.com");
5110 if (errno == ECONNREFUSED)
5111 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005112
5113 ;
5114 return 0;
5115}
5116_ACEOF
5117rm -f conftest.$ac_objext conftest$ac_exeext
5118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119 (eval $ac_link) 2>conftest.er1
5120 ac_status=$?
5121 grep -v '^ *+' conftest.er1 >conftest.err
5122 rm -f conftest.er1
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } &&
5126 { ac_try='test -z "$ac_c_werror_flag"
5127 || test ! -s conftest.err'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; } &&
5133 { ac_try='test -s conftest$ac_exeext'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; }; then
5139 echo "$as_me:$LINENO: result: yes" >&5
5140echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005141else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005142 echo "$as_me: failed program was:" >&5
5143sed 's/^/| /' conftest.$ac_ext >&5
5144
5145echo "$as_me:$LINENO: result: no" >&5
5146echo "${ECHO_T}no" >&6; enable_netbeans="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005147fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005148rm -f conftest.err conftest.$ac_objext \
5149 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005150else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005151 echo "$as_me:$LINENO: result: yes" >&5
5152echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005153fi
5154if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005155 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005156#define FEAT_NETBEANS_INTG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005157_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005158
5159 NETBEANS_SRC="netbeans.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005160
Bram Moolenaar071d4272004-06-13 20:20:40 +00005161 NETBEANS_OBJ="objects/netbeans.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005162
Bram Moolenaar071d4272004-06-13 20:20:40 +00005163fi
5164
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005165echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5166echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005167# Check whether --enable-sniff or --disable-sniff was given.
5168if test "${enable_sniff+set}" = set; then
5169 enableval="$enable_sniff"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005170
Bram Moolenaar071d4272004-06-13 20:20:40 +00005171else
5172 enable_sniff="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005173fi;
5174echo "$as_me:$LINENO: result: $enable_sniff" >&5
5175echo "${ECHO_T}$enable_sniff" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005176if test "$enable_sniff" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005177 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005178#define FEAT_SNIFF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005179_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005180
5181 SNIFF_SRC="if_sniff.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005182
Bram Moolenaar071d4272004-06-13 20:20:40 +00005183 SNIFF_OBJ="objects/if_sniff.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005184
Bram Moolenaar071d4272004-06-13 20:20:40 +00005185fi
5186
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005187echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5188echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005189# Check whether --enable-multibyte or --disable-multibyte was given.
5190if test "${enable_multibyte+set}" = set; then
5191 enableval="$enable_multibyte"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005192
Bram Moolenaar071d4272004-06-13 20:20:40 +00005193else
5194 enable_multibyte="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005195fi;
5196echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5197echo "${ECHO_T}$enable_multibyte" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005198if test "$enable_multibyte" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005199 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005200#define FEAT_MBYTE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005201_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005202
5203fi
5204
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005205echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5206echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005207# Check whether --enable-hangulinput or --disable-hangulinput was given.
5208if test "${enable_hangulinput+set}" = set; then
5209 enableval="$enable_hangulinput"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005210
Bram Moolenaar071d4272004-06-13 20:20:40 +00005211else
5212 enable_hangulinput="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005213fi;
5214echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5215echo "${ECHO_T}$enable_hangulinput" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005216
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005217echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5218echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005219# Check whether --enable-xim or --disable-xim was given.
5220if test "${enable_xim+set}" = set; then
5221 enableval="$enable_xim"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005222 echo "$as_me:$LINENO: result: $enable_xim" >&5
5223echo "${ECHO_T}$enable_xim" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005224else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005225 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5226echo "${ECHO_T}defaulting to auto" >&6
5227fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005228
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005229echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5230echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005231# Check whether --enable-fontset or --disable-fontset was given.
5232if test "${enable_fontset+set}" = set; then
5233 enableval="$enable_fontset"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005234
Bram Moolenaar071d4272004-06-13 20:20:40 +00005235else
5236 enable_fontset="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005237fi;
5238echo "$as_me:$LINENO: result: $enable_fontset" >&5
5239echo "${ECHO_T}$enable_fontset" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005240
5241test -z "$with_x" && with_x=yes
5242test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5243if test "$with_x" = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005244 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5245echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005246else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005247
Bram Moolenaar071d4272004-06-13 20:20:40 +00005248 # Extract the first word of "xmkmf", so it can be a program name with args.
5249set dummy xmkmf; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005250echo "$as_me:$LINENO: checking for $ac_word" >&5
5251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5252if test "${ac_cv_path_xmkmfpath+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005254else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005255 case $xmkmfpath in
5256 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005257 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5258 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005259 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5270 fi
5271done
5272done
5273
Bram Moolenaar071d4272004-06-13 20:20:40 +00005274 ;;
5275esac
5276fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005277xmkmfpath=$ac_cv_path_xmkmfpath
5278
Bram Moolenaar071d4272004-06-13 20:20:40 +00005279if test -n "$xmkmfpath"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005280 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5281echo "${ECHO_T}$xmkmfpath" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005282else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005283 echo "$as_me:$LINENO: result: no" >&5
5284echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005285fi
5286
5287
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005288 echo "$as_me:$LINENO: checking for X" >&5
5289echo $ECHO_N "checking for X... $ECHO_C" >&6
5290
Bram Moolenaar071d4272004-06-13 20:20:40 +00005291
5292# Check whether --with-x or --without-x was given.
5293if test "${with_x+set}" = set; then
5294 withval="$with_x"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005295
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005296fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005297# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5298if test "x$with_x" = xno; then
5299 # The user explicitly disabled X.
5300 have_x=disabled
5301else
5302 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5303 # Both variables are already set.
5304 have_x=yes
5305 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005306 if test "${ac_cv_have_x+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005308else
5309 # One or both of the vars are not set, and there is no cached value.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005310ac_x_includes=no ac_x_libraries=no
5311rm -fr conftest.dir
5312if mkdir conftest.dir; then
5313 cd conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005314 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005315 cat >Imakefile <<'_ACEOF'
Bram Moolenaar071d4272004-06-13 20:20:40 +00005316acfindx:
5317 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005318_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005319 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5320 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5321 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5322 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5323 for ac_extension in a so sl; do
5324 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005325 test -f $ac_im_libdir/libX11.$ac_extension; then
5326 ac_im_usrlibdir=$ac_im_libdir; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00005327 fi
5328 done
5329 # Screen out bogus values from the imake configuration. They are
5330 # bogus both because they are the default anyway, and because
5331 # using them would break gcc on systems where it needs fixed includes.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005332 case $ac_im_incroot in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005333 /usr/include) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005334 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005335 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005336 case $ac_im_usrlibdir in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005337 /usr/lib | /lib) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005338 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005339 esac
5340 fi
5341 cd ..
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005342 rm -fr conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005343fi
5344
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005345# Standard set of common directories for X headers.
5346# Check X11 before X11Rn because it is often a symlink to the current release.
5347ac_x_header_dirs='
5348/usr/X11/include
5349/usr/X11R6/include
5350/usr/X11R5/include
5351/usr/X11R4/include
Bram Moolenaar071d4272004-06-13 20:20:40 +00005352
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005353/usr/include/X11
5354/usr/include/X11R6
5355/usr/include/X11R5
5356/usr/include/X11R4
5357
5358/usr/local/X11/include
5359/usr/local/X11R6/include
5360/usr/local/X11R5/include
5361/usr/local/X11R4/include
5362
5363/usr/local/include/X11
5364/usr/local/include/X11R6
5365/usr/local/include/X11R5
5366/usr/local/include/X11R4
5367
5368/usr/X386/include
5369/usr/x386/include
5370/usr/XFree86/include/X11
5371
5372/usr/include
5373/usr/local/include
5374/usr/unsupported/include
5375/usr/athena/include
5376/usr/local/x11r5/include
5377/usr/lpp/Xamples/include
5378
5379/usr/openwin/include
5380/usr/openwin/share/include'
5381
5382if test "$ac_x_includes" = no; then
5383 # Guess where to find include files, by looking for Intrinsic.h.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005384 # First, try using that file with no special directory specified.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005385 cat >conftest.$ac_ext <<_ACEOF
5386/* confdefs.h. */
5387_ACEOF
5388cat confdefs.h >>conftest.$ac_ext
5389cat >>conftest.$ac_ext <<_ACEOF
5390/* end confdefs.h. */
5391#include <X11/Intrinsic.h>
5392_ACEOF
5393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5395 ac_status=$?
5396 grep -v '^ *+' conftest.er1 >conftest.err
5397 rm -f conftest.er1
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } >/dev/null; then
5401 if test -s conftest.err; then
5402 ac_cpp_err=$ac_c_preproc_warn_flag
5403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5404 else
5405 ac_cpp_err=
5406 fi
5407else
5408 ac_cpp_err=yes
5409fi
5410if test -z "$ac_cpp_err"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005411 # We can compile using X headers with no special include directory.
5412ac_x_includes=
5413else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005414 echo "$as_me: failed program was:" >&5
5415sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 for ac_dir in $ac_x_header_dirs; do
5418 if test -r "$ac_dir/X11/Intrinsic.h"; then
5419 ac_x_includes=$ac_dir
5420 break
5421 fi
5422done
Bram Moolenaar071d4272004-06-13 20:20:40 +00005423fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005424rm -f conftest.err conftest.$ac_ext
5425fi # $ac_x_includes = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005426
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005427if test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005428 # Check for the libraries.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005429 # See if we find them without any special options.
5430 # Don't add to $LIBS permanently.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005431 ac_save_LIBS=$LIBS
5432 LIBS="-lXt $LIBS"
5433 cat >conftest.$ac_ext <<_ACEOF
5434/* confdefs.h. */
5435_ACEOF
5436cat confdefs.h >>conftest.$ac_ext
5437cat >>conftest.$ac_ext <<_ACEOF
5438/* end confdefs.h. */
5439#include <X11/Intrinsic.h>
5440int
5441main ()
5442{
5443XtMalloc (0)
5444 ;
5445 return 0;
5446}
5447_ACEOF
5448rm -f conftest.$ac_objext conftest$ac_exeext
5449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5450 (eval $ac_link) 2>conftest.er1
5451 ac_status=$?
5452 grep -v '^ *+' conftest.er1 >conftest.err
5453 rm -f conftest.er1
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } &&
5457 { ac_try='test -z "$ac_c_werror_flag"
5458 || test ! -s conftest.err'
5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 (eval $ac_try) 2>&5
5461 ac_status=$?
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); }; } &&
5464 { ac_try='test -s conftest$ac_exeext'
5465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 (eval $ac_try) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }; }; then
5470 LIBS=$ac_save_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005471# We can link X programs with no special library path.
5472ac_x_libraries=
5473else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005474 echo "$as_me: failed program was:" >&5
5475sed 's/^/| /' conftest.$ac_ext >&5
5476
5477LIBS=$ac_save_LIBS
5478for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Bram Moolenaar071d4272004-06-13 20:20:40 +00005479do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005480 # Don't even attempt the hair of trying to link an X program!
Bram Moolenaar071d4272004-06-13 20:20:40 +00005481 for ac_extension in a so sl; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005482 if test -r $ac_dir/libXt.$ac_extension; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005483 ac_x_libraries=$ac_dir
5484 break 2
5485 fi
5486 done
5487done
5488fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005489rm -f conftest.err conftest.$ac_objext \
5490 conftest$ac_exeext conftest.$ac_ext
5491fi # $ac_x_libraries = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005492
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005493if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005494 # Didn't find X anywhere. Cache the known absence of X.
5495 ac_cv_have_x="have_x=no"
5496else
5497 # Record where we found X for the cache.
5498 ac_cv_have_x="have_x=yes \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005499 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005500fi
5501fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005502
Bram Moolenaar071d4272004-06-13 20:20:40 +00005503 fi
5504 eval "$ac_cv_have_x"
5505fi # $with_x != no
5506
5507if test "$have_x" != yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005508 echo "$as_me:$LINENO: result: $have_x" >&5
5509echo "${ECHO_T}$have_x" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005510 no_x=yes
5511else
5512 # If each of the values was on the command line, it overrides each guess.
5513 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5514 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5515 # Update the cache value to reflect the command line values.
5516 ac_cv_have_x="have_x=yes \
5517 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005518 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5519echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005520fi
5521
5522if test "$no_x" = yes; then
5523 # Not all programs may use this symbol, but it does not hurt to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005524
5525cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005526#define X_DISPLAY_MISSING 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005527_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005528
5529 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5530else
5531 if test -n "$x_includes"; then
5532 X_CFLAGS="$X_CFLAGS -I$x_includes"
5533 fi
5534
5535 # It would also be nice to do this for all -L options, not just this one.
5536 if test -n "$x_libraries"; then
5537 X_LIBS="$X_LIBS -L$x_libraries"
5538 # For Solaris; some versions of Sun CC require a space after -R and
5539 # others require no space. Words are not sufficient . . . .
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005540 case `(uname -sr) 2>/dev/null` in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005541 "SunOS 5"*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005542 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5543echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5544 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5545 cat >conftest.$ac_ext <<_ACEOF
5546/* confdefs.h. */
5547_ACEOF
5548cat confdefs.h >>conftest.$ac_ext
5549cat >>conftest.$ac_ext <<_ACEOF
5550/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005551
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005552int
5553main ()
5554{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005555
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005556 ;
5557 return 0;
5558}
5559_ACEOF
5560rm -f conftest.$ac_objext conftest$ac_exeext
5561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562 (eval $ac_link) 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
5569 { ac_try='test -z "$ac_c_werror_flag"
5570 || test ! -s conftest.err'
5571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 (eval $ac_try) 2>&5
5573 ac_status=$?
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); }; } &&
5576 { ac_try='test -s conftest$ac_exeext'
5577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578 (eval $ac_try) 2>&5
5579 ac_status=$?
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005582 ac_R_nospace=yes
5583else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005584 echo "$as_me: failed program was:" >&5
5585sed 's/^/| /' conftest.$ac_ext >&5
5586
5587ac_R_nospace=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005588fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005589rm -f conftest.err conftest.$ac_objext \
5590 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005591 if test $ac_R_nospace = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005592 echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005594 X_LIBS="$X_LIBS -R$x_libraries"
5595 else
5596 LIBS="$ac_xsave_LIBS -R $x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005597 cat >conftest.$ac_ext <<_ACEOF
5598/* confdefs.h. */
5599_ACEOF
5600cat confdefs.h >>conftest.$ac_ext
5601cat >>conftest.$ac_ext <<_ACEOF
5602/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005603
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005604int
5605main ()
5606{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005607
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005608 ;
5609 return 0;
5610}
5611_ACEOF
5612rm -f conftest.$ac_objext conftest$ac_exeext
5613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5614 (eval $ac_link) 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try='test -z "$ac_c_werror_flag"
5622 || test ! -s conftest.err'
5623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 (eval $ac_try) 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; } &&
5628 { ac_try='test -s conftest$ac_exeext'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005634 ac_R_space=yes
5635else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005636 echo "$as_me: failed program was:" >&5
5637sed 's/^/| /' conftest.$ac_ext >&5
5638
5639ac_R_space=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005640fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005641rm -f conftest.err conftest.$ac_objext \
5642 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005643 if test $ac_R_space = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005644 echo "$as_me:$LINENO: result: yes" >&5
5645echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005646 X_LIBS="$X_LIBS -R $x_libraries"
5647 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005648 echo "$as_me:$LINENO: result: neither works" >&5
5649echo "${ECHO_T}neither works" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005650 fi
5651 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005652 LIBS=$ac_xsave_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005653 esac
5654 fi
5655
5656 # Check for system-dependent libraries X programs must link with.
5657 # Do this before checking for the system-independent R6 libraries
5658 # (-lICE), since we may need -lsocket or whatever for X linking.
5659
5660 if test "$ISC" = yes; then
5661 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5662 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005663 # Martyn Johnson says this is needed for Ultrix, if the X
5664 # libraries were built with DECnet support. And Karl Berry says
Bram Moolenaar071d4272004-06-13 20:20:40 +00005665 # the Alpha needs dnet_stub (dnet does not exist).
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005666 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5667 cat >conftest.$ac_ext <<_ACEOF
5668/* confdefs.h. */
5669_ACEOF
5670cat confdefs.h >>conftest.$ac_ext
5671cat >>conftest.$ac_ext <<_ACEOF
5672/* end confdefs.h. */
5673
Bram Moolenaar071d4272004-06-13 20:20:40 +00005674/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005675#ifdef __cplusplus
5676extern "C"
5677#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005678/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005679 builtin and then its argument prototype would still apply. */
5680char XOpenDisplay ();
5681int
5682main ()
5683{
5684XOpenDisplay ();
5685 ;
5686 return 0;
5687}
5688_ACEOF
5689rm -f conftest.$ac_objext conftest$ac_exeext
5690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5691 (eval $ac_link) 2>conftest.er1
5692 ac_status=$?
5693 grep -v '^ *+' conftest.er1 >conftest.err
5694 rm -f conftest.er1
5695 cat conftest.err >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try='test -z "$ac_c_werror_flag"
5699 || test ! -s conftest.err'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701 (eval $ac_try) 2>&5
5702 ac_status=$?
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; } &&
5705 { ac_try='test -s conftest$ac_exeext'
5706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 (eval $ac_try) 2>&5
5708 ac_status=$?
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); }; }; then
5711 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00005712else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005713 echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005715
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005716echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5717echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5718if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5720else
5721 ac_check_lib_save_LIBS=$LIBS
5722LIBS="-ldnet $LIBS"
5723cat >conftest.$ac_ext <<_ACEOF
5724/* confdefs.h. */
5725_ACEOF
5726cat confdefs.h >>conftest.$ac_ext
5727cat >>conftest.$ac_ext <<_ACEOF
5728/* end confdefs.h. */
5729
5730/* Override any gcc2 internal prototype to avoid an error. */
5731#ifdef __cplusplus
5732extern "C"
5733#endif
5734/* We use char because int might match the return type of a gcc2
5735 builtin and then its argument prototype would still apply. */
5736char dnet_ntoa ();
5737int
5738main ()
5739{
5740dnet_ntoa ();
5741 ;
5742 return 0;
5743}
5744_ACEOF
5745rm -f conftest.$ac_objext conftest$ac_exeext
5746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5747 (eval $ac_link) 2>conftest.er1
5748 ac_status=$?
5749 grep -v '^ *+' conftest.er1 >conftest.err
5750 rm -f conftest.er1
5751 cat conftest.err >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } &&
5754 { ac_try='test -z "$ac_c_werror_flag"
5755 || test ! -s conftest.err'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 (eval $ac_try) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; } &&
5761 { ac_try='test -s conftest$ac_exeext'
5762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 (eval $ac_try) 2>&5
5764 ac_status=$?
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); }; }; then
5767 ac_cv_lib_dnet_dnet_ntoa=yes
5768else
5769 echo "$as_me: failed program was:" >&5
5770sed 's/^/| /' conftest.$ac_ext >&5
5771
5772ac_cv_lib_dnet_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005773fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005774rm -f conftest.err conftest.$ac_objext \
5775 conftest$ac_exeext conftest.$ac_ext
5776LIBS=$ac_check_lib_save_LIBS
5777fi
5778echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5779echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5780if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005781 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005782fi
5783
5784 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005785 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5786echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5787if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005789else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005790 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005791LIBS="-ldnet_stub $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005792cat >conftest.$ac_ext <<_ACEOF
5793/* confdefs.h. */
5794_ACEOF
5795cat confdefs.h >>conftest.$ac_ext
5796cat >>conftest.$ac_ext <<_ACEOF
5797/* end confdefs.h. */
5798
Bram Moolenaar071d4272004-06-13 20:20:40 +00005799/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005800#ifdef __cplusplus
5801extern "C"
5802#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005803/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005804 builtin and then its argument prototype would still apply. */
5805char dnet_ntoa ();
5806int
5807main ()
5808{
5809dnet_ntoa ();
5810 ;
5811 return 0;
5812}
5813_ACEOF
5814rm -f conftest.$ac_objext conftest$ac_exeext
5815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5816 (eval $ac_link) 2>conftest.er1
5817 ac_status=$?
5818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } &&
5823 { ac_try='test -z "$ac_c_werror_flag"
5824 || test ! -s conftest.err'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; } &&
5830 { ac_try='test -s conftest$ac_exeext'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5832 (eval $ac_try) 2>&5
5833 ac_status=$?
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5836 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005837else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005838 echo "$as_me: failed program was:" >&5
5839sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005840
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005841ac_cv_lib_dnet_stub_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005842fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005843rm -f conftest.err conftest.$ac_objext \
5844 conftest$ac_exeext conftest.$ac_ext
5845LIBS=$ac_check_lib_save_LIBS
5846fi
5847echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5848echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5849if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005850 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005851fi
5852
5853 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005854fi
5855rm -f conftest.err conftest.$ac_objext \
5856 conftest$ac_exeext conftest.$ac_ext
5857 LIBS="$ac_xsave_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005858
5859 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5860 # to get the SysV transport functions.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005861 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005862 # needs -lnsl.
5863 # The nsl library prevents programs from opening the X display
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005864 # on Irix 5.2, according to T.E. Dickey.
5865 # The functions gethostbyname, getservbyname, and inet_addr are
5866 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5867 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5868echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5869if test "${ac_cv_func_gethostbyname+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005871else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005872 cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h. */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h. */
5878/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5880#define gethostbyname innocuous_gethostbyname
5881
Bram Moolenaar071d4272004-06-13 20:20:40 +00005882/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005883 which can conflict with char gethostbyname (); below.
5884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5885 <limits.h> exists even on freestanding compilers. */
5886
5887#ifdef __STDC__
5888# include <limits.h>
5889#else
5890# include <assert.h>
5891#endif
5892
5893#undef gethostbyname
5894
Bram Moolenaar071d4272004-06-13 20:20:40 +00005895/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005896#ifdef __cplusplus
5897extern "C"
5898{
5899#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005900/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005901 builtin and then its argument prototype would still apply. */
5902char gethostbyname ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005903/* The GNU C library defines this for functions which it implements
5904 to always fail with ENOSYS. Some functions are actually named
5905 something starting with __ and the normal name is an alias. */
5906#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5907choke me
5908#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005909char (*f) () = gethostbyname;
5910#endif
5911#ifdef __cplusplus
5912}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005913#endif
5914
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005915int
5916main ()
5917{
5918return f != gethostbyname;
5919 ;
5920 return 0;
5921}
5922_ACEOF
5923rm -f conftest.$ac_objext conftest$ac_exeext
5924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5925 (eval $ac_link) 2>conftest.er1
5926 ac_status=$?
5927 grep -v '^ *+' conftest.er1 >conftest.err
5928 rm -f conftest.er1
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } &&
5932 { ac_try='test -z "$ac_c_werror_flag"
5933 || test ! -s conftest.err'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try='test -s conftest$ac_exeext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_cv_func_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005946else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005947 echo "$as_me: failed program was:" >&5
5948sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005949
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005950ac_cv_func_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005951fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005952rm -f conftest.err conftest.$ac_objext \
5953 conftest$ac_exeext conftest.$ac_ext
5954fi
5955echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5956echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005957
5958 if test $ac_cv_func_gethostbyname = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005959 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5960echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5961if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005963else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005964 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005965LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005966cat >conftest.$ac_ext <<_ACEOF
5967/* confdefs.h. */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
5971/* end confdefs.h. */
5972
Bram Moolenaar071d4272004-06-13 20:20:40 +00005973/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005974#ifdef __cplusplus
5975extern "C"
5976#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005977/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005978 builtin and then its argument prototype would still apply. */
5979char gethostbyname ();
5980int
5981main ()
5982{
5983gethostbyname ();
5984 ;
5985 return 0;
5986}
5987_ACEOF
5988rm -f conftest.$ac_objext conftest$ac_exeext
5989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5990 (eval $ac_link) 2>conftest.er1
5991 ac_status=$?
5992 grep -v '^ *+' conftest.er1 >conftest.err
5993 rm -f conftest.er1
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } &&
5997 { ac_try='test -z "$ac_c_werror_flag"
5998 || test ! -s conftest.err'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000 (eval $ac_try) 2>&5
6001 ac_status=$?
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; } &&
6004 { ac_try='test -s conftest$ac_exeext'
6005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 (eval $ac_try) 2>&5
6007 ac_status=$?
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; }; then
6010 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006011else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006012 echo "$as_me: failed program was:" >&5
6013sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006014
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006015ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006016fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006017rm -f conftest.err conftest.$ac_objext \
6018 conftest$ac_exeext conftest.$ac_ext
6019LIBS=$ac_check_lib_save_LIBS
6020fi
6021echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6022echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6023if test $ac_cv_lib_nsl_gethostbyname = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006025fi
6026
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006027 if test $ac_cv_lib_nsl_gethostbyname = no; then
6028 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6029echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6030if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033 ac_check_lib_save_LIBS=$LIBS
6034LIBS="-lbsd $LIBS"
6035cat >conftest.$ac_ext <<_ACEOF
6036/* confdefs.h. */
6037_ACEOF
6038cat confdefs.h >>conftest.$ac_ext
6039cat >>conftest.$ac_ext <<_ACEOF
6040/* end confdefs.h. */
6041
6042/* Override any gcc2 internal prototype to avoid an error. */
6043#ifdef __cplusplus
6044extern "C"
6045#endif
6046/* We use char because int might match the return type of a gcc2
6047 builtin and then its argument prototype would still apply. */
6048char gethostbyname ();
6049int
6050main ()
6051{
6052gethostbyname ();
6053 ;
6054 return 0;
6055}
6056_ACEOF
6057rm -f conftest.$ac_objext conftest$ac_exeext
6058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6059 (eval $ac_link) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest$ac_exeext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_cv_lib_bsd_gethostbyname=yes
6080else
6081 echo "$as_me: failed program was:" >&5
6082sed 's/^/| /' conftest.$ac_ext >&5
6083
6084ac_cv_lib_bsd_gethostbyname=no
6085fi
6086rm -f conftest.err conftest.$ac_objext \
6087 conftest$ac_exeext conftest.$ac_ext
6088LIBS=$ac_check_lib_save_LIBS
6089fi
6090echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6091echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6092if test $ac_cv_lib_bsd_gethostbyname = yes; then
6093 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6094fi
6095
6096 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00006097 fi
6098
6099 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6100 # socket/setsockopt and other routines are undefined under SCO ODT
6101 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006102 # on later versions), says Simon Leinen: it contains gethostby*
6103 # variants that don't use the name server (or something). -lsocket
6104 # must be given before -lnsl if both are needed. We assume that
6105 # if connect needs -lnsl, so does gethostbyname.
6106 echo "$as_me:$LINENO: checking for connect" >&5
6107echo $ECHO_N "checking for connect... $ECHO_C" >&6
6108if test "${ac_cv_func_connect+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006110else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006111 cat >conftest.$ac_ext <<_ACEOF
6112/* confdefs.h. */
6113_ACEOF
6114cat confdefs.h >>conftest.$ac_ext
6115cat >>conftest.$ac_ext <<_ACEOF
6116/* end confdefs.h. */
6117/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6119#define connect innocuous_connect
6120
Bram Moolenaar071d4272004-06-13 20:20:40 +00006121/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006122 which can conflict with char connect (); below.
6123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6124 <limits.h> exists even on freestanding compilers. */
6125
6126#ifdef __STDC__
6127# include <limits.h>
6128#else
6129# include <assert.h>
6130#endif
6131
6132#undef connect
6133
Bram Moolenaar071d4272004-06-13 20:20:40 +00006134/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006135#ifdef __cplusplus
6136extern "C"
6137{
6138#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006139/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006140 builtin and then its argument prototype would still apply. */
6141char connect ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006142/* The GNU C library defines this for functions which it implements
6143 to always fail with ENOSYS. Some functions are actually named
6144 something starting with __ and the normal name is an alias. */
6145#if defined (__stub_connect) || defined (__stub___connect)
6146choke me
6147#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006148char (*f) () = connect;
6149#endif
6150#ifdef __cplusplus
6151}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006152#endif
6153
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006154int
6155main ()
6156{
6157return f != connect;
6158 ;
6159 return 0;
6160}
6161_ACEOF
6162rm -f conftest.$ac_objext conftest$ac_exeext
6163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6164 (eval $ac_link) 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try='test -z "$ac_c_werror_flag"
6172 || test ! -s conftest.err'
6173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6174 (eval $ac_try) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try='test -s conftest$ac_exeext'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6184 ac_cv_func_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006185else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006186 echo "$as_me: failed program was:" >&5
6187sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006188
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006189ac_cv_func_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006190fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006191rm -f conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193fi
6194echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6195echo "${ECHO_T}$ac_cv_func_connect" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006196
6197 if test $ac_cv_func_connect = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006198 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6199echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6200if test "${ac_cv_lib_socket_connect+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006202else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006203 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006204LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006205cat >conftest.$ac_ext <<_ACEOF
6206/* confdefs.h. */
6207_ACEOF
6208cat confdefs.h >>conftest.$ac_ext
6209cat >>conftest.$ac_ext <<_ACEOF
6210/* end confdefs.h. */
6211
Bram Moolenaar071d4272004-06-13 20:20:40 +00006212/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006213#ifdef __cplusplus
6214extern "C"
6215#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006216/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006217 builtin and then its argument prototype would still apply. */
6218char connect ();
6219int
6220main ()
6221{
6222connect ();
6223 ;
6224 return 0;
6225}
6226_ACEOF
6227rm -f conftest.$ac_objext conftest$ac_exeext
6228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6229 (eval $ac_link) 2>conftest.er1
6230 ac_status=$?
6231 grep -v '^ *+' conftest.er1 >conftest.err
6232 rm -f conftest.er1
6233 cat conftest.err >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } &&
6236 { ac_try='test -z "$ac_c_werror_flag"
6237 || test ! -s conftest.err'
6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6239 (eval $ac_try) 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; } &&
6243 { ac_try='test -s conftest$ac_exeext'
6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6245 (eval $ac_try) 2>&5
6246 ac_status=$?
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); }; }; then
6249 ac_cv_lib_socket_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006250else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006251 echo "$as_me: failed program was:" >&5
6252sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006253
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006254ac_cv_lib_socket_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006255fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006256rm -f conftest.err conftest.$ac_objext \
6257 conftest$ac_exeext conftest.$ac_ext
6258LIBS=$ac_check_lib_save_LIBS
6259fi
6260echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6261echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6262if test $ac_cv_lib_socket_connect = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006263 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006264fi
6265
6266 fi
6267
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006268 # Guillermo Gomez says -lposix is necessary on A/UX.
6269 echo "$as_me:$LINENO: checking for remove" >&5
6270echo $ECHO_N "checking for remove... $ECHO_C" >&6
6271if test "${ac_cv_func_remove+set}" = set; then
6272 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006273else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006274 cat >conftest.$ac_ext <<_ACEOF
6275/* confdefs.h. */
6276_ACEOF
6277cat confdefs.h >>conftest.$ac_ext
6278cat >>conftest.$ac_ext <<_ACEOF
6279/* end confdefs.h. */
6280/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6282#define remove innocuous_remove
6283
Bram Moolenaar071d4272004-06-13 20:20:40 +00006284/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006285 which can conflict with char remove (); below.
6286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6287 <limits.h> exists even on freestanding compilers. */
6288
6289#ifdef __STDC__
6290# include <limits.h>
6291#else
6292# include <assert.h>
6293#endif
6294
6295#undef remove
6296
Bram Moolenaar071d4272004-06-13 20:20:40 +00006297/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006298#ifdef __cplusplus
6299extern "C"
6300{
6301#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006302/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006303 builtin and then its argument prototype would still apply. */
6304char remove ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006305/* The GNU C library defines this for functions which it implements
6306 to always fail with ENOSYS. Some functions are actually named
6307 something starting with __ and the normal name is an alias. */
6308#if defined (__stub_remove) || defined (__stub___remove)
6309choke me
6310#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006311char (*f) () = remove;
6312#endif
6313#ifdef __cplusplus
6314}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006315#endif
6316
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006317int
6318main ()
6319{
6320return f != remove;
6321 ;
6322 return 0;
6323}
6324_ACEOF
6325rm -f conftest.$ac_objext conftest$ac_exeext
6326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6327 (eval $ac_link) 2>conftest.er1
6328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try='test -z "$ac_c_werror_flag"
6335 || test ! -s conftest.err'
6336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 (eval $ac_try) 2>&5
6338 ac_status=$?
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); }; } &&
6341 { ac_try='test -s conftest$ac_exeext'
6342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 (eval $ac_try) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; }; then
6347 ac_cv_func_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006348else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006349 echo "$as_me: failed program was:" >&5
6350sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006351
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006352ac_cv_func_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006353fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006354rm -f conftest.err conftest.$ac_objext \
6355 conftest$ac_exeext conftest.$ac_ext
6356fi
6357echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6358echo "${ECHO_T}$ac_cv_func_remove" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006359
6360 if test $ac_cv_func_remove = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006361 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6362echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6363if test "${ac_cv_lib_posix_remove+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006365else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006366 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006367LIBS="-lposix $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006368cat >conftest.$ac_ext <<_ACEOF
6369/* confdefs.h. */
6370_ACEOF
6371cat confdefs.h >>conftest.$ac_ext
6372cat >>conftest.$ac_ext <<_ACEOF
6373/* end confdefs.h. */
6374
Bram Moolenaar071d4272004-06-13 20:20:40 +00006375/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006376#ifdef __cplusplus
6377extern "C"
6378#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006379/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006380 builtin and then its argument prototype would still apply. */
6381char remove ();
6382int
6383main ()
6384{
6385remove ();
6386 ;
6387 return 0;
6388}
6389_ACEOF
6390rm -f conftest.$ac_objext conftest$ac_exeext
6391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6392 (eval $ac_link) 2>conftest.er1
6393 ac_status=$?
6394 grep -v '^ *+' conftest.er1 >conftest.err
6395 rm -f conftest.er1
6396 cat conftest.err >&5
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); } &&
6399 { ac_try='test -z "$ac_c_werror_flag"
6400 || test ! -s conftest.err'
6401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402 (eval $ac_try) 2>&5
6403 ac_status=$?
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; } &&
6406 { ac_try='test -s conftest$ac_exeext'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6412 ac_cv_lib_posix_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006413else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006414 echo "$as_me: failed program was:" >&5
6415sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006416
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006417ac_cv_lib_posix_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006418fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006419rm -f conftest.err conftest.$ac_objext \
6420 conftest$ac_exeext conftest.$ac_ext
6421LIBS=$ac_check_lib_save_LIBS
6422fi
6423echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6424echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6425if test $ac_cv_lib_posix_remove = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006427fi
6428
6429 fi
6430
6431 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006432 echo "$as_me:$LINENO: checking for shmat" >&5
6433echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6434if test "${ac_cv_func_shmat+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006436else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006437 cat >conftest.$ac_ext <<_ACEOF
6438/* confdefs.h. */
6439_ACEOF
6440cat confdefs.h >>conftest.$ac_ext
6441cat >>conftest.$ac_ext <<_ACEOF
6442/* end confdefs.h. */
6443/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6445#define shmat innocuous_shmat
6446
Bram Moolenaar071d4272004-06-13 20:20:40 +00006447/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006448 which can conflict with char shmat (); below.
6449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6450 <limits.h> exists even on freestanding compilers. */
6451
6452#ifdef __STDC__
6453# include <limits.h>
6454#else
6455# include <assert.h>
6456#endif
6457
6458#undef shmat
6459
Bram Moolenaar071d4272004-06-13 20:20:40 +00006460/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006461#ifdef __cplusplus
6462extern "C"
6463{
6464#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006465/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006466 builtin and then its argument prototype would still apply. */
6467char shmat ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006468/* The GNU C library defines this for functions which it implements
6469 to always fail with ENOSYS. Some functions are actually named
6470 something starting with __ and the normal name is an alias. */
6471#if defined (__stub_shmat) || defined (__stub___shmat)
6472choke me
6473#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006474char (*f) () = shmat;
6475#endif
6476#ifdef __cplusplus
6477}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006478#endif
6479
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006480int
6481main ()
6482{
6483return f != shmat;
6484 ;
6485 return 0;
6486}
6487_ACEOF
6488rm -f conftest.$ac_objext conftest$ac_exeext
6489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6490 (eval $ac_link) 2>conftest.er1
6491 ac_status=$?
6492 grep -v '^ *+' conftest.er1 >conftest.err
6493 rm -f conftest.er1
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -z "$ac_c_werror_flag"
6498 || test ! -s conftest.err'
6499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 (eval $ac_try) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try='test -s conftest$ac_exeext'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_cv_func_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006511else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006512 echo "$as_me: failed program was:" >&5
6513sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006514
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006515ac_cv_func_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006516fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006517rm -f conftest.err conftest.$ac_objext \
6518 conftest$ac_exeext conftest.$ac_ext
6519fi
6520echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6521echo "${ECHO_T}$ac_cv_func_shmat" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006522
6523 if test $ac_cv_func_shmat = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006524 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6525echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6526if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006528else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006529 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006530LIBS="-lipc $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006531cat >conftest.$ac_ext <<_ACEOF
6532/* confdefs.h. */
6533_ACEOF
6534cat confdefs.h >>conftest.$ac_ext
6535cat >>conftest.$ac_ext <<_ACEOF
6536/* end confdefs.h. */
6537
Bram Moolenaar071d4272004-06-13 20:20:40 +00006538/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006539#ifdef __cplusplus
6540extern "C"
6541#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006542/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006543 builtin and then its argument prototype would still apply. */
6544char shmat ();
6545int
6546main ()
6547{
6548shmat ();
6549 ;
6550 return 0;
6551}
6552_ACEOF
6553rm -f conftest.$ac_objext conftest$ac_exeext
6554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6555 (eval $ac_link) 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try='test -z "$ac_c_werror_flag"
6563 || test ! -s conftest.err'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; } &&
6569 { ac_try='test -s conftest$ac_exeext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 ac_cv_lib_ipc_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006576else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006577 echo "$as_me: failed program was:" >&5
6578sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006579
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006580ac_cv_lib_ipc_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006581fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006582rm -f conftest.err conftest.$ac_objext \
6583 conftest$ac_exeext conftest.$ac_ext
6584LIBS=$ac_check_lib_save_LIBS
6585fi
6586echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6587echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6588if test $ac_cv_lib_ipc_shmat = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006589 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006590fi
6591
6592 fi
6593 fi
6594
6595 # Check for libraries that X11R6 Xt/Xaw programs need.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006596 ac_save_LDFLAGS=$LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006597 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6598 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6599 # check for ICE first), but we must link in the order -lSM -lICE or
6600 # we get undefined symbols. So assume we have SM if we have ICE.
6601 # These have to be linked with before -lX11, unlike the other
6602 # libraries we check for below, so use a different variable.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006603 # John Interrante, Karl Berry
6604 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6605echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6606if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006608else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006609 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006610LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006611cat >conftest.$ac_ext <<_ACEOF
6612/* confdefs.h. */
6613_ACEOF
6614cat confdefs.h >>conftest.$ac_ext
6615cat >>conftest.$ac_ext <<_ACEOF
6616/* end confdefs.h. */
6617
Bram Moolenaar071d4272004-06-13 20:20:40 +00006618/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006619#ifdef __cplusplus
6620extern "C"
6621#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006622/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006623 builtin and then its argument prototype would still apply. */
6624char IceConnectionNumber ();
6625int
6626main ()
6627{
6628IceConnectionNumber ();
6629 ;
6630 return 0;
6631}
6632_ACEOF
6633rm -f conftest.$ac_objext conftest$ac_exeext
6634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6635 (eval $ac_link) 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try='test -z "$ac_c_werror_flag"
6643 || test ! -s conftest.err'
6644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645 (eval $ac_try) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); }; } &&
6649 { ac_try='test -s conftest$ac_exeext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 ac_cv_lib_ICE_IceConnectionNumber=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006656else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006657 echo "$as_me: failed program was:" >&5
6658sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006659
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006660ac_cv_lib_ICE_IceConnectionNumber=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006661fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006662rm -f conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6664LIBS=$ac_check_lib_save_LIBS
6665fi
6666echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6667echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6668if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006669 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006670fi
6671
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006672 LDFLAGS=$ac_save_LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006673
6674fi
6675
6676
6677 if test "$OS390Unix" = "yes"; then
6678 CFLAGS="$CFLAGS -W c,dll"
6679 LDFLAGS="$LDFLAGS -W l,dll"
6680 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6681 fi
6682
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006683
Bram Moolenaar071d4272004-06-13 20:20:40 +00006684 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6685 x_libraries=`echo "$x_includes" | sed s/include/lib/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006686 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6687echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006688 X_LIBS="$X_LIBS -L$x_libraries"
6689 if test "`(uname) 2>/dev/null`" = SunOS &&
6690 uname -r | grep '^5' >/dev/null; then
6691 X_LIBS="$X_LIBS -R $x_libraries"
6692 fi
6693 fi
6694
6695 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6696 x_includes=`echo "$x_libraries" | sed s/lib/include/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006697 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6698echo "${ECHO_T}Corrected X includes to $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006699 X_CFLAGS="$X_CFLAGS -I$x_includes"
6700 fi
6701
6702 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6703 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6704 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6705
6706
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006707 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6708echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006709 cflags_save=$CFLAGS
6710 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006711 cat >conftest.$ac_ext <<_ACEOF
6712/* confdefs.h. */
6713_ACEOF
6714cat confdefs.h >>conftest.$ac_ext
6715cat >>conftest.$ac_ext <<_ACEOF
6716/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006717#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006718int
6719main ()
6720{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006721
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006722 ;
6723 return 0;
6724}
6725_ACEOF
6726rm -f conftest.$ac_objext
6727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6728 (eval $ac_compile) 2>conftest.er1
6729 ac_status=$?
6730 grep -v '^ *+' conftest.er1 >conftest.err
6731 rm -f conftest.er1
6732 cat conftest.err >&5
6733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734 (exit $ac_status); } &&
6735 { ac_try='test -z "$ac_c_werror_flag"
6736 || test ! -s conftest.err'
6737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6738 (eval $ac_try) 2>&5
6739 ac_status=$?
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); }; } &&
6742 { ac_try='test -s conftest.$ac_objext'
6743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 (eval $ac_try) 2>&5
6745 ac_status=$?
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6748 echo "$as_me:$LINENO: result: yes" >&5
6749echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006750else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006751 echo "$as_me: failed program was:" >&5
6752sed 's/^/| /' conftest.$ac_ext >&5
6753
6754echo "$as_me:$LINENO: result: no" >&5
6755echo "${ECHO_T}no" >&6; no_x=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006756fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006758 CFLAGS=$cflags_save
6759
6760 if test "${no_x-no}" = yes; then
6761 with_x=no
6762 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006763 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006764#define HAVE_X11 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006765_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006766
6767 X_LIB="-lXt -lX11";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006768
Bram Moolenaar071d4272004-06-13 20:20:40 +00006769
6770 ac_save_LDFLAGS="$LDFLAGS"
6771 LDFLAGS="-L$x_libraries $LDFLAGS"
6772
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006773 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6774echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6775if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006777else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006778 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006779LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006780cat >conftest.$ac_ext <<_ACEOF
6781/* confdefs.h. */
6782_ACEOF
6783cat confdefs.h >>conftest.$ac_ext
6784cat >>conftest.$ac_ext <<_ACEOF
6785/* end confdefs.h. */
6786
Bram Moolenaar071d4272004-06-13 20:20:40 +00006787/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006788#ifdef __cplusplus
6789extern "C"
6790#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006791/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006792 builtin and then its argument prototype would still apply. */
6793char _XdmcpAuthDoIt ();
6794int
6795main ()
6796{
6797_XdmcpAuthDoIt ();
6798 ;
6799 return 0;
6800}
6801_ACEOF
6802rm -f conftest.$ac_objext conftest$ac_exeext
6803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804 (eval $ac_link) 2>conftest.er1
6805 ac_status=$?
6806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 { ac_try='test -z "$ac_c_werror_flag"
6812 || test ! -s conftest.err'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; } &&
6818 { ac_try='test -s conftest$ac_exeext'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006825else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006826 echo "$as_me: failed program was:" >&5
6827sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006828
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006829ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006830fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006831rm -f conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833LIBS=$ac_check_lib_save_LIBS
6834fi
6835echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6836echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6837if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006838 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006839fi
6840
6841
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006842 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6843echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6844if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006846else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006847 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006848LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006849cat >conftest.$ac_ext <<_ACEOF
6850/* confdefs.h. */
6851_ACEOF
6852cat confdefs.h >>conftest.$ac_ext
6853cat >>conftest.$ac_ext <<_ACEOF
6854/* end confdefs.h. */
6855
Bram Moolenaar071d4272004-06-13 20:20:40 +00006856/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006857#ifdef __cplusplus
6858extern "C"
6859#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006860/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006861 builtin and then its argument prototype would still apply. */
6862char IceOpenConnection ();
6863int
6864main ()
6865{
6866IceOpenConnection ();
6867 ;
6868 return 0;
6869}
6870_ACEOF
6871rm -f conftest.$ac_objext conftest$ac_exeext
6872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6873 (eval $ac_link) 2>conftest.er1
6874 ac_status=$?
6875 grep -v '^ *+' conftest.er1 >conftest.err
6876 rm -f conftest.er1
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -z "$ac_c_werror_flag"
6881 || test ! -s conftest.err'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; } &&
6887 { ac_try='test -s conftest$ac_exeext'
6888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 (eval $ac_try) 2>&5
6890 ac_status=$?
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 ac_cv_lib_ICE_IceOpenConnection=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006894else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006895 echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006897
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006898ac_cv_lib_ICE_IceOpenConnection=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006899fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006900rm -f conftest.err conftest.$ac_objext \
6901 conftest$ac_exeext conftest.$ac_ext
6902LIBS=$ac_check_lib_save_LIBS
6903fi
6904echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6905echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6906if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006907 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006908fi
6909
6910
6911 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006912 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6913echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6914if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006916else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006917 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006918LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006919cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h. */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
6924/* end confdefs.h. */
6925
Bram Moolenaar071d4272004-06-13 20:20:40 +00006926/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006927#ifdef __cplusplus
6928extern "C"
6929#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006930/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006931 builtin and then its argument prototype would still apply. */
6932char XpmCreatePixmapFromData ();
6933int
6934main ()
6935{
6936XpmCreatePixmapFromData ();
6937 ;
6938 return 0;
6939}
6940_ACEOF
6941rm -f conftest.$ac_objext conftest$ac_exeext
6942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag"
6951 || test ! -s conftest.err'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 (eval $ac_try) 2>&5
6954 ac_status=$?
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; } &&
6957 { ac_try='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 (eval $ac_try) 2>&5
6960 ac_status=$?
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6963 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006964else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006965 echo "$as_me: failed program was:" >&5
6966sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006967
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006968ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006969fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006970rm -f conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
6972LIBS=$ac_check_lib_save_LIBS
6973fi
6974echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6975echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6976if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006977 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006978fi
6979
6980
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006981 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6982echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006983 cflags_save=$CFLAGS
6984 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006985 cat >conftest.$ac_ext <<_ACEOF
6986/* confdefs.h. */
6987_ACEOF
6988cat confdefs.h >>conftest.$ac_ext
6989cat >>conftest.$ac_ext <<_ACEOF
6990/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006991#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006992int
6993main ()
6994{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006995
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006996 ;
6997 return 0;
6998}
6999_ACEOF
7000rm -f conftest.$ac_objext
7001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7002 (eval $ac_compile) 2>conftest.er1
7003 ac_status=$?
7004 grep -v '^ *+' conftest.er1 >conftest.err
7005 rm -f conftest.er1
7006 cat conftest.err >&5
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -z "$ac_c_werror_flag"
7010 || test ! -s conftest.err'
7011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 (eval $ac_try) 2>&5
7013 ac_status=$?
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); }; } &&
7016 { ac_try='test -s conftest.$ac_objext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7018 (eval $ac_try) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007024else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007025 echo "$as_me: failed program was:" >&5
7026sed 's/^/| /' conftest.$ac_ext >&5
7027
7028CFLAGS="$CFLAGS -Wno-implicit-int"
7029 cat >conftest.$ac_ext <<_ACEOF
7030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
7034/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007035#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007036int
7037main ()
7038{
Bram Moolenaar071d4272004-06-13 20:20:40 +00007039
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007040 ;
7041 return 0;
7042}
7043_ACEOF
7044rm -f conftest.$ac_objext
7045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7046 (eval $ac_compile) 2>conftest.er1
7047 ac_status=$?
7048 grep -v '^ *+' conftest.er1 >conftest.err
7049 rm -f conftest.er1
7050 cat conftest.err >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } &&
7053 { ac_try='test -z "$ac_c_werror_flag"
7054 || test ! -s conftest.err'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } &&
7060 { ac_try='test -s conftest.$ac_objext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 echo "$as_me:$LINENO: result: yes" >&5
7067echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007068else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007069 echo "$as_me: failed program was:" >&5
7070sed 's/^/| /' conftest.$ac_ext >&5
7071
7072echo "$as_me:$LINENO: result: test failed" >&5
7073echo "${ECHO_T}test failed" >&6
7074
Bram Moolenaar071d4272004-06-13 20:20:40 +00007075fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7077
Bram Moolenaar071d4272004-06-13 20:20:40 +00007078fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00007080 CFLAGS=$cflags_save
7081
7082 LDFLAGS="$ac_save_LDFLAGS"
7083
7084 fi
7085fi
7086
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00007087test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00007088
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007089echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7090echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007091# Check whether --enable-gui or --disable-gui was given.
7092if test "${enable_gui+set}" = set; then
7093 enableval="$enable_gui"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007094
Bram Moolenaar071d4272004-06-13 20:20:40 +00007095else
7096 enable_gui="auto"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007097fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007098
7099enable_gui_canon=`echo "_$enable_gui" | \
7100 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7101
7102SKIP_GTK=YES
7103SKIP_GTK2=YES
7104SKIP_GNOME=YES
7105SKIP_MOTIF=YES
7106SKIP_ATHENA=YES
7107SKIP_NEXTAW=YES
7108SKIP_PHOTON=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00007109SKIP_CARBON=YES
7110GUITYPE=NONE
7111
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007112if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007113 SKIP_PHOTON=
7114 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007115 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7116echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007117 SKIP_PHOTON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007118 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7119echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7120 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7121echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7122 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
7123echo "${ECHO_T}Photon GUI support" >&6 ;;
7124 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7125echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007126 SKIP_PHOTON=YES ;;
7127 esac
7128
7129elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7130 SKIP_CARBON=
7131 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007132 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7133echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007134 SKIP_CARBON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007135 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7136echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7137 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7138echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7139 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7140echo "${ECHO_T}Carbon GUI support" >&6 ;;
7141 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7142echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007143 SKIP_CARBON=YES ;;
7144 esac
7145
7146else
7147
Bram Moolenaar071d4272004-06-13 20:20:40 +00007148 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007149 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
7150echo "${ECHO_T}no GUI support" >&6 ;;
7151 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7152echo "${ECHO_T}yes/auto - automatic GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007153 SKIP_GTK=
7154 SKIP_GTK2=
7155 SKIP_GNOME=
7156 SKIP_MOTIF=
7157 SKIP_ATHENA=
7158 SKIP_NEXTAW=
7159 SKIP_CARBON=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007160 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7161echo "${ECHO_T}GTK+ 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007162 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007163 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7164echo "${ECHO_T}GTK+ 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007165 SKIP_GTK=
7166 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007167 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7168echo "${ECHO_T}GNOME 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007169 SKIP_GNOME=
7170 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007171 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7172echo "${ECHO_T}GNOME 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007173 SKIP_GNOME=
7174 SKIP_GTK=
7175 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007176 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
7177echo "${ECHO_T}Motif GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007178 SKIP_MOTIF=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007179 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
7180echo "${ECHO_T}Athena GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007181 SKIP_ATHENA=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007182 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7183echo "${ECHO_T}neXtaw GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007184 SKIP_NEXTAW=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007185 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7186echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007187 esac
7188
7189fi
7190
7191if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007192 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7193echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007194 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7195if test "${enable_gtk_check+set}" = set; then
7196 enableval="$enable_gtk_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007197
Bram Moolenaar071d4272004-06-13 20:20:40 +00007198else
7199 enable_gtk_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007200fi;
7201 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7202echo "${ECHO_T}$enable_gtk_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007203 if test "x$enable_gtk_check" = "xno"; then
7204 SKIP_GTK=YES
7205 SKIP_GNOME=YES
7206 fi
7207fi
7208
7209if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7210 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007211 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7212echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007213 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7214if test "${enable_gtk2_check+set}" = set; then
7215 enableval="$enable_gtk2_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007216
Bram Moolenaar071d4272004-06-13 20:20:40 +00007217else
7218 enable_gtk2_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007219fi;
7220 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7221echo "${ECHO_T}$enable_gtk2_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007222 if test "x$enable_gtk2_check" = "xno"; then
7223 SKIP_GTK2=YES
7224 fi
7225fi
7226
7227if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7228 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007229 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7230echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007231 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7232if test "${enable_gnome_check+set}" = set; then
7233 enableval="$enable_gnome_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007234
Bram Moolenaar071d4272004-06-13 20:20:40 +00007235else
7236 enable_gnome_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007237fi;
7238 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7239echo "${ECHO_T}$enable_gnome_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007240 if test "x$enable_gnome_check" = "xno"; then
7241 SKIP_GNOME=YES
7242 fi
7243fi
7244
7245if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007246 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7247echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007248 # Check whether --enable-motif-check or --disable-motif-check was given.
7249if test "${enable_motif_check+set}" = set; then
7250 enableval="$enable_motif_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007251
Bram Moolenaar071d4272004-06-13 20:20:40 +00007252else
7253 enable_motif_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007254fi;
7255 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7256echo "${ECHO_T}$enable_motif_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007257 if test "x$enable_motif_check" = "xno"; then
7258 SKIP_MOTIF=YES
7259 fi
7260fi
7261
7262if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007263 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7264echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007265 # Check whether --enable-athena-check or --disable-athena-check was given.
7266if test "${enable_athena_check+set}" = set; then
7267 enableval="$enable_athena_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007268
Bram Moolenaar071d4272004-06-13 20:20:40 +00007269else
7270 enable_athena_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007271fi;
7272 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7273echo "${ECHO_T}$enable_athena_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007274 if test "x$enable_athena_check" = "xno"; then
7275 SKIP_ATHENA=YES
7276 fi
7277fi
7278
7279if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007280 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7281echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007282 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7283if test "${enable_nextaw_check+set}" = set; then
7284 enableval="$enable_nextaw_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007285
Bram Moolenaar071d4272004-06-13 20:20:40 +00007286else
7287 enable_nextaw_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007288fi;
7289 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7290echo "${ECHO_T}$enable_nextaw_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007291 if test "x$enable_nextaw_check" = "xno"; then
7292 SKIP_NEXTAW=YES
7293 fi
7294fi
7295
7296if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007297 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7298echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007299 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7300if test "${enable_carbon_check+set}" = set; then
7301 enableval="$enable_carbon_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007302
Bram Moolenaar071d4272004-06-13 20:20:40 +00007303else
7304 enable_carbon_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007305fi;
7306 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7307echo "${ECHO_T}$enable_carbon_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007308 if test "x$enable_carbon_check" = "xno"; then
7309 SKIP_CARBON=YES
7310 fi
7311fi
7312
Bram Moolenaar843ee412004-06-30 16:16:41 +00007313
Bram Moolenaar071d4272004-06-13 20:20:40 +00007314if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007315 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7316echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7317 echo "$as_me:$LINENO: result: yes" >&5
7318echo "${ECHO_T}yes" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007319 GUITYPE=CARBONGUI
Bram Moolenaare344bea2005-09-01 20:46:49 +00007320 if test "$VIMNAME" = "vim"; then
7321 VIMNAME=Vim
7322 fi
Bram Moolenaar14716812006-05-04 21:54:08 +00007323
7324 if test x$prefix = xNONE; then
7325 prefix=/Applications
7326 fi
7327
7328 datadir='${prefix}/Vim.app/Contents/Resources'
7329
Bram Moolenaar071d4272004-06-13 20:20:40 +00007330 SKIP_GTK=YES;
7331 SKIP_GTK2=YES;
7332 SKIP_GNOME=YES;
7333 SKIP_MOTIF=YES;
7334 SKIP_ATHENA=YES;
7335 SKIP_NEXTAW=YES;
7336 SKIP_PHOTON=YES;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007337 SKIP_CARBON=YES
7338fi
7339
7340
7341
7342
7343
7344
7345
7346
7347
Bram Moolenaar071d4272004-06-13 20:20:40 +00007348if test -z "$SKIP_GTK"; then
7349
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007350 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7351echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7352
7353# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007354if test "${with_gtk_prefix+set}" = set; then
7355 withval="$with_gtk_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007356 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7357echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007358else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007359 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7360echo "${ECHO_T}no" >&6
7361fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007362
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007363 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7364echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007365
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007366# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007367if test "${with_gtk_exec_prefix+set}" = set; then
7368 withval="$with_gtk_exec_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007369 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7370echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007371else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007372 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7373echo "${ECHO_T}no" >&6
7374fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007375
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007376 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7377echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007378 # Check whether --enable-gtktest or --disable-gtktest was given.
7379if test "${enable_gtktest+set}" = set; then
7380 enableval="$enable_gtktest"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007381
Bram Moolenaar071d4272004-06-13 20:20:40 +00007382else
7383 enable_gtktest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007384fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007385 if test "x$enable_gtktest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007386 echo "$as_me:$LINENO: result: gtk test enabled" >&5
7387echo "${ECHO_T}gtk test enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007388 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007389 echo "$as_me:$LINENO: result: gtk test disabled" >&5
7390echo "${ECHO_T}gtk test disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007391 fi
7392
7393 if test "x$gtk_config_prefix" != "x" ; then
7394 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7395 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7396 fi
7397 if test "x$gtk_config_exec_prefix" != "x" ; then
7398 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7399 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7400 fi
7401 if test "X$GTK_CONFIG" = "X"; then
7402 # Extract the first word of "gtk-config", so it can be a program name with args.
7403set dummy gtk-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007404echo "$as_me:$LINENO: checking for $ac_word" >&5
7405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7406if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007408else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007409 case $GTK_CONFIG in
7410 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007411 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7412 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007413 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7424 fi
7425done
7426done
7427
Bram Moolenaar071d4272004-06-13 20:20:40 +00007428 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7429 ;;
7430esac
7431fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007432GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7433
Bram Moolenaar071d4272004-06-13 20:20:40 +00007434if test -n "$GTK_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007435 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7436echo "${ECHO_T}$GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007437else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007438 echo "$as_me:$LINENO: result: no" >&5
7439echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007440fi
7441
7442 if test "X$GTK_CONFIG" = "Xno"; then
7443 # Extract the first word of "gtk12-config", so it can be a program name with args.
7444set dummy gtk12-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007445echo "$as_me:$LINENO: checking for $ac_word" >&5
7446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7447if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007449else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007450 case $GTK12_CONFIG in
7451 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007452 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7453 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007454 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456for as_dir in $PATH
7457do
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7465 fi
7466done
7467done
7468
Bram Moolenaar071d4272004-06-13 20:20:40 +00007469 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7470 ;;
7471esac
7472fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007473GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7474
Bram Moolenaar071d4272004-06-13 20:20:40 +00007475if test -n "$GTK12_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007476 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7477echo "${ECHO_T}$GTK12_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007478else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007479 echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007481fi
7482
7483 GTK_CONFIG="$GTK12_CONFIG"
7484 fi
7485 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007486 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7487echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007488 fi
7489 if test "X$PKG_CONFIG" = "X"; then
7490 # Extract the first word of "pkg-config", so it can be a program name with args.
7491set dummy pkg-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007492echo "$as_me:$LINENO: checking for $ac_word" >&5
7493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7494if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007496else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007497 case $PKG_CONFIG in
7498 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007499 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7500 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007501 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 break 2
7512 fi
7513done
7514done
7515
Bram Moolenaar071d4272004-06-13 20:20:40 +00007516 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7517 ;;
7518esac
7519fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007520PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7521
Bram Moolenaar071d4272004-06-13 20:20:40 +00007522if test -n "$PKG_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007523 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7524echo "${ECHO_T}$PKG_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007525else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007526 echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007528fi
7529
7530 fi
7531
7532 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7533 if test "X$SKIP_GTK2" != "XYES"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007534
Bram Moolenaar071d4272004-06-13 20:20:40 +00007535 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7536 {
7537 min_gtk_version=2.2.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007538 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7539echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007540 no_gtk=""
7541 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7542 && $PKG_CONFIG --exists gtk+-2.0; then
7543 {
7544 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007545 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007546 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7547 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7548 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7549 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7550 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7551 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7552 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7553 }
7554 elif test "X$GTK_CONFIG" != "Xno"; then
7555 {
7556 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007557 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007558 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7559 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7560 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7561 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7562 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7563 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7564 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7565 }
7566 else
7567 no_gtk=yes
7568 fi
7569
7570 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7571 {
7572 ac_save_CFLAGS="$CFLAGS"
7573 ac_save_LIBS="$LIBS"
7574 CFLAGS="$CFLAGS $GTK_CFLAGS"
7575 LIBS="$LIBS $GTK_LIBS"
7576
7577 rm -f conf.gtktest
7578 if test "$cross_compiling" = yes; then
7579 echo $ac_n "cross compiling; assumed OK... $ac_c"
7580else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007581 cat >conftest.$ac_ext <<_ACEOF
7582/* confdefs.h. */
7583_ACEOF
7584cat confdefs.h >>conftest.$ac_ext
7585cat >>conftest.$ac_ext <<_ACEOF
7586/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007587
7588#include <gtk/gtk.h>
7589#include <stdio.h>
7590
7591int
7592main ()
7593{
7594int major, minor, micro;
7595char *tmp_version;
7596
7597system ("touch conf.gtktest");
7598
7599/* HP/UX 9 (%@#!) writes to sscanf strings */
7600tmp_version = g_strdup("$min_gtk_version");
7601if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7602 printf("%s, bad version string\n", "$min_gtk_version");
7603 exit(1);
7604 }
7605
7606if ((gtk_major_version > major) ||
7607 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7608 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7609 (gtk_micro_version >= micro)))
7610{
7611 return 0;
7612}
7613return 1;
7614}
7615
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007616_ACEOF
7617rm -f conftest$ac_exeext
7618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7619 (eval $ac_link) 2>&5
7620 ac_status=$?
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007628 :
7629else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007630 echo "$as_me: program exited with status $ac_status" >&5
7631echo "$as_me: failed program was:" >&5
7632sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007633
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007634( exit $ac_status )
7635no_gtk=yes
7636fi
7637rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7638fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007639 CFLAGS="$ac_save_CFLAGS"
7640 LIBS="$ac_save_LIBS"
7641 }
7642 fi
7643 if test "x$no_gtk" = x ; then
7644 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007645 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7646echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007647 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007648 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7649echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007650 fi
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007651 GUI_LIB_LOC="$GTK_LIBDIR"
7652 GTK_LIBNAME="$GTK_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007653 GUI_INC_LOC="$GTK_CFLAGS"
7654 else
7655 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007656 echo "$as_me:$LINENO: result: no" >&5
7657echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007658 GTK_CFLAGS=""
7659 GTK_LIBS=""
7660 :
7661 }
7662 fi
7663 }
7664 else
7665 GTK_CFLAGS=""
7666 GTK_LIBS=""
7667 :
7668 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007669
7670
Bram Moolenaar071d4272004-06-13 20:20:40 +00007671 rm -f conf.gtktest
7672
7673 if test "x$GTK_CFLAGS" != "x"; then
7674 SKIP_ATHENA=YES
7675 SKIP_NEXTAW=YES
7676 SKIP_MOTIF=YES
7677 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007678
Bram Moolenaar071d4272004-06-13 20:20:40 +00007679 fi
7680 fi
7681
7682 if test "x$GUITYPE" != "xGTK"; then
7683 SKIP_GTK2=YES
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007684
Bram Moolenaar071d4272004-06-13 20:20:40 +00007685 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7686 {
7687 min_gtk_version=1.1.16
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007688 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7689echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007690 no_gtk=""
7691 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7692 && $PKG_CONFIG --exists gtk+-2.0; then
7693 {
7694 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007695 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007696 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7697 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7698 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7699 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7700 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7701 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7702 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7703 }
7704 elif test "X$GTK_CONFIG" != "Xno"; then
7705 {
7706 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007707 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007708 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7709 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7710 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7711 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7712 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7713 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7714 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7715 }
7716 else
7717 no_gtk=yes
7718 fi
7719
7720 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7721 {
7722 ac_save_CFLAGS="$CFLAGS"
7723 ac_save_LIBS="$LIBS"
7724 CFLAGS="$CFLAGS $GTK_CFLAGS"
7725 LIBS="$LIBS $GTK_LIBS"
7726
7727 rm -f conf.gtktest
7728 if test "$cross_compiling" = yes; then
7729 echo $ac_n "cross compiling; assumed OK... $ac_c"
7730else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007731 cat >conftest.$ac_ext <<_ACEOF
7732/* confdefs.h. */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007737
7738#include <gtk/gtk.h>
7739#include <stdio.h>
7740
7741int
7742main ()
7743{
7744int major, minor, micro;
7745char *tmp_version;
7746
7747system ("touch conf.gtktest");
7748
7749/* HP/UX 9 (%@#!) writes to sscanf strings */
7750tmp_version = g_strdup("$min_gtk_version");
7751if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7752 printf("%s, bad version string\n", "$min_gtk_version");
7753 exit(1);
7754 }
7755
7756if ((gtk_major_version > major) ||
7757 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7758 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7759 (gtk_micro_version >= micro)))
7760{
7761 return 0;
7762}
7763return 1;
7764}
7765
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007766_ACEOF
7767rm -f conftest$ac_exeext
7768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769 (eval $ac_link) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 (eval $ac_try) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007778 :
7779else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007780 echo "$as_me: program exited with status $ac_status" >&5
7781echo "$as_me: failed program was:" >&5
7782sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007783
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007784( exit $ac_status )
7785no_gtk=yes
7786fi
7787rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7788fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007789 CFLAGS="$ac_save_CFLAGS"
7790 LIBS="$ac_save_LIBS"
7791 }
7792 fi
7793 if test "x$no_gtk" = x ; then
7794 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007795 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7796echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007797 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007798 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7799echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007800 fi
7801 GTK_LIBNAME="$GTK_LIBS"
7802 GUI_INC_LOC="$GTK_CFLAGS"
7803 else
7804 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007805 echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007807 GTK_CFLAGS=""
7808 GTK_LIBS=""
7809 :
7810 }
7811 fi
7812 }
7813 else
7814 GTK_CFLAGS=""
7815 GTK_LIBS=""
7816 :
7817 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007818
7819
Bram Moolenaar071d4272004-06-13 20:20:40 +00007820 rm -f conf.gtktest
7821
7822 if test "x$GTK_CFLAGS" != "x"; then
7823 SKIP_ATHENA=YES
7824 SKIP_NEXTAW=YES
7825 SKIP_MOTIF=YES
7826 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007827
Bram Moolenaar071d4272004-06-13 20:20:40 +00007828 fi
7829 fi
7830 fi
7831 if test "x$GUITYPE" = "xGTK"; then
7832 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7833 -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 +00007834 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7835echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007836 else
7837 {
7838 if test "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007839 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007840#define HAVE_GTK2 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007841_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007842
7843 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7844 || test "0$gtk_minor_version" -ge 2 \
7845 || test "0$gtk_major_version" -gt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007846 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007847#define HAVE_GTK_MULTIHEAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007848_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007849
7850 fi
7851 fi
7852 if test -z "$SKIP_GNOME"; then
7853 {
Bram Moolenaar071d4272004-06-13 20:20:40 +00007854
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007855
7856
7857
7858
7859
7860# Check whether --with-gnome-includes or --without-gnome-includes was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007861if test "${with_gnome_includes+set}" = set; then
7862 withval="$with_gnome_includes"
7863 CFLAGS="$CFLAGS -I$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007864
7865fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007866
7867
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007868# Check whether --with-gnome-libs or --without-gnome-libs was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007869if test "${with_gnome_libs+set}" = set; then
7870 withval="$with_gnome_libs"
7871 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007872
7873fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007874
7875
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007876# Check whether --with-gnome or --without-gnome was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007877if test "${with_gnome+set}" = set; then
7878 withval="$with_gnome"
7879 if test x$withval = xyes; then
7880 want_gnome=yes
7881 have_gnome=yes
7882 else
7883 if test "x$withval" = xno; then
7884 want_gnome=no
7885 else
7886 want_gnome=yes
7887 LDFLAGS="$LDFLAGS -L$withval/lib"
7888 CFLAGS="$CFLAGS -I$withval/include"
7889 gnome_prefix=$withval/lib
7890 fi
7891 fi
7892else
7893 want_gnome=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007894fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007895
7896 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7897 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007898 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7899echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007900 if $PKG_CONFIG --exists libgnomeui-2.0; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007901 echo "$as_me:$LINENO: result: yes" >&5
7902echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007903 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7904 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7905 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
Bram Moolenaar97b2ad32006-03-18 21:40:56 +00007906
7907 echo "$as_me:$LINENO: checking for FreeBSD" >&5
7908echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
7909 if test "`(uname) 2>/dev/null`" = FreeBSD; then
7910 echo "$as_me:$LINENO: result: yes" >&5
7911echo "${ECHO_T}yes" >&6
Bram Moolenaarc9b4b052006-04-30 18:54:39 +00007912 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
Bram Moolenaar97b2ad32006-03-18 21:40:56 +00007913 GNOME_LIBS="$GNOME_LIBS -pthread"
7914 else
7915 echo "$as_me:$LINENO: result: no" >&5
7916echo "${ECHO_T}no" >&6
7917 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007918 have_gnome=yes
7919 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007920 echo "$as_me:$LINENO: result: not found" >&5
7921echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007922 if test "x" = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007923 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7924echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7925 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007926 fi
7927 fi
7928 }
7929 elif test "x$want_gnome" = xyes; then
7930 {
7931 # Extract the first word of "gnome-config", so it can be a program name with args.
7932set dummy gnome-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007933echo "$as_me:$LINENO: checking for $ac_word" >&5
7934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7935if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007937else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007938 case $GNOME_CONFIG in
7939 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007940 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7941 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007942 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7953 fi
7954done
7955done
7956
Bram Moolenaar071d4272004-06-13 20:20:40 +00007957 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7958 ;;
7959esac
7960fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007961GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7962
Bram Moolenaar071d4272004-06-13 20:20:40 +00007963if test -n "$GNOME_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007964 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7965echo "${ECHO_T}$GNOME_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007966else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007967 echo "$as_me:$LINENO: result: no" >&5
7968echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007969fi
7970
7971 if test "$GNOME_CONFIG" = "no"; then
7972 no_gnome_config="yes"
7973 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007974 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7975echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007976 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007977 echo "$as_me:$LINENO: result: yes" >&5
7978echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007979 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7980 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7981 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7982 have_gnome=yes
7983 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007984 echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007986 no_gnome_config="yes"
7987 fi
7988 fi
7989
7990 if test x$exec_prefix = xNONE; then
7991 if test x$prefix = xNONE; then
7992 gnome_prefix=$ac_default_prefix/lib
7993 else
7994 gnome_prefix=$prefix/lib
7995 fi
7996 else
7997 gnome_prefix=`eval echo \`echo $libdir\``
7998 fi
7999
8000 if test "$no_gnome_config" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008001 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8002echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008003 if test -f $gnome_prefix/gnomeConf.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008004 echo "$as_me:$LINENO: result: found" >&5
8005echo "${ECHO_T}found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008006 echo "loading gnome configuration from" \
8007 "$gnome_prefix/gnomeConf.sh"
8008 . $gnome_prefix/gnomeConf.sh
8009 have_gnome=yes
8010 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008011 echo "$as_me:$LINENO: result: not found" >&5
8012echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008013 if test x = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008014 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8015echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8016 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00008017 fi
8018 fi
8019 fi
8020 }
8021 fi
8022
8023 if test x$have_gnome = xyes ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008024 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008025#define FEAT_GUI_GNOME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008026_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008027
8028 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8029 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8030 fi
8031 }
8032 fi
8033 }
8034 fi
8035 fi
8036fi
8037
8038
8039if test -z "$SKIP_MOTIF"; then
8040 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"
8041 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8042
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008043 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8044echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008045 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8046 GUI_INC_LOC=
8047 for try in $gui_includes; do
8048 if test -f "$try/Xm/Xm.h"; then
8049 GUI_INC_LOC=$try
8050 fi
8051 done
8052 if test -n "$GUI_INC_LOC"; then
8053 if test "$GUI_INC_LOC" = /usr/include; then
8054 GUI_INC_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008055 echo "$as_me:$LINENO: result: in default path" >&5
8056echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008057 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008058 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8059echo "${ECHO_T}$GUI_INC_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008060 fi
8061 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008062 echo "$as_me:$LINENO: result: <not found>" >&5
8063echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008064 SKIP_MOTIF=YES
8065 fi
8066fi
8067
8068
8069if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008070 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8071echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8072
8073# Check whether --with-motif-lib or --without-motif-lib was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008074if test "${with_motif_lib+set}" = set; then
8075 withval="$with_motif_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008076 MOTIF_LIBNAME="${withval}"
8077fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008078
8079 if test -n "$MOTIF_LIBNAME"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008080 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8081echo "${ECHO_T}$MOTIF_LIBNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008082 GUI_LIB_LOC=
8083 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008084 echo "$as_me:$LINENO: result: no" >&5
8085echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008086
8087 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8088
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008089 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8090echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008091 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"
8092 GUI_LIB_LOC=
8093 for try in $gui_libs; do
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008094 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
Bram Moolenaar071d4272004-06-13 20:20:40 +00008095 if test -f "$libtry"; then
8096 GUI_LIB_LOC=$try
8097 fi
8098 done
8099 done
8100 if test -n "$GUI_LIB_LOC"; then
8101 if test "$GUI_LIB_LOC" = /usr/lib; then
8102 GUI_LIB_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008103 echo "$as_me:$LINENO: result: in default path" >&5
8104echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008105 else
8106 if test -n "$GUI_LIB_LOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008107 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8108echo "${ECHO_T}$GUI_LIB_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008109 if test "`(uname) 2>/dev/null`" = SunOS &&
8110 uname -r | grep '^5' >/dev/null; then
8111 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8112 fi
8113 fi
8114 fi
8115 MOTIF_LIBNAME=-lXm
8116 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008117 echo "$as_me:$LINENO: result: <not found>" >&5
8118echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008119 SKIP_MOTIF=YES
8120 fi
8121 fi
8122fi
8123
8124if test -z "$SKIP_MOTIF"; then
8125 SKIP_ATHENA=YES
8126 SKIP_NEXTAW=YES
8127 GUITYPE=MOTIF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008128
Bram Moolenaar071d4272004-06-13 20:20:40 +00008129fi
8130
8131
8132GUI_X_LIBS=
8133
8134if test -z "$SKIP_ATHENA"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008135 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8136echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008137 cflags_save=$CFLAGS
8138 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008139 cat >conftest.$ac_ext <<_ACEOF
8140/* confdefs.h. */
8141_ACEOF
8142cat confdefs.h >>conftest.$ac_ext
8143cat >>conftest.$ac_ext <<_ACEOF
8144/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008145
8146#include <X11/Intrinsic.h>
8147#include <X11/Xaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008148int
8149main ()
8150{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008151
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008152 ;
8153 return 0;
8154}
8155_ACEOF
8156rm -f conftest.$ac_objext
8157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8158 (eval $ac_compile) 2>conftest.er1
8159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } &&
8165 { ac_try='test -z "$ac_c_werror_flag"
8166 || test ! -s conftest.err'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 (eval $ac_try) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; } &&
8172 { ac_try='test -s conftest.$ac_objext'
8173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 (eval $ac_try) 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; }; then
8178 echo "$as_me:$LINENO: result: yes" >&5
8179echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008180else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008181 echo "$as_me: failed program was:" >&5
8182sed 's/^/| /' conftest.$ac_ext >&5
8183
8184echo "$as_me:$LINENO: result: no" >&5
8185echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008186fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008188 CFLAGS=$cflags_save
8189fi
8190
8191if test -z "$SKIP_ATHENA"; then
8192 GUITYPE=ATHENA
8193fi
8194
8195if test -z "$SKIP_NEXTAW"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008196 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8197echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008198 cflags_save=$CFLAGS
8199 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008200 cat >conftest.$ac_ext <<_ACEOF
8201/* confdefs.h. */
8202_ACEOF
8203cat confdefs.h >>conftest.$ac_ext
8204cat >>conftest.$ac_ext <<_ACEOF
8205/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008206
8207#include <X11/Intrinsic.h>
8208#include <X11/neXtaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008209int
8210main ()
8211{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008212
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008213 ;
8214 return 0;
8215}
8216_ACEOF
8217rm -f conftest.$ac_objext
8218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8219 (eval $ac_compile) 2>conftest.er1
8220 ac_status=$?
8221 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1
8223 cat conftest.err >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } &&
8226 { ac_try='test -z "$ac_c_werror_flag"
8227 || test ! -s conftest.err'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; } &&
8233 { ac_try='test -s conftest.$ac_objext'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 (eval $ac_try) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 echo "$as_me:$LINENO: result: yes" >&5
8240echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008241else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008242 echo "$as_me: failed program was:" >&5
8243sed 's/^/| /' conftest.$ac_ext >&5
8244
8245echo "$as_me:$LINENO: result: no" >&5
8246echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008247fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008249 CFLAGS=$cflags_save
8250fi
8251
8252if test -z "$SKIP_NEXTAW"; then
8253 GUITYPE=NEXTAW
8254fi
8255
8256if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8257 if test -n "$GUI_INC_LOC"; then
8258 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8259 fi
8260 if test -n "$GUI_LIB_LOC"; then
8261 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8262 fi
8263
8264 ldflags_save=$LDFLAGS
8265 LDFLAGS="$X_LIBS $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008266 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8267echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8268if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008270else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008271 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008272LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008273cat >conftest.$ac_ext <<_ACEOF
8274/* confdefs.h. */
8275_ACEOF
8276cat confdefs.h >>conftest.$ac_ext
8277cat >>conftest.$ac_ext <<_ACEOF
8278/* end confdefs.h. */
8279
Bram Moolenaar071d4272004-06-13 20:20:40 +00008280/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008281#ifdef __cplusplus
8282extern "C"
8283#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008284/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008285 builtin and then its argument prototype would still apply. */
8286char XShapeQueryExtension ();
8287int
8288main ()
8289{
8290XShapeQueryExtension ();
8291 ;
8292 return 0;
8293}
8294_ACEOF
8295rm -f conftest.$ac_objext conftest$ac_exeext
8296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8297 (eval $ac_link) 2>conftest.er1
8298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -z "$ac_c_werror_flag"
8305 || test ! -s conftest.err'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 (eval $ac_try) 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; } &&
8311 { ac_try='test -s conftest$ac_exeext'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313 (eval $ac_try) 2>&5
8314 ac_status=$?
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8317 ac_cv_lib_Xext_XShapeQueryExtension=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008318else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008319 echo "$as_me: failed program was:" >&5
8320sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008321
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008322ac_cv_lib_Xext_XShapeQueryExtension=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008323fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008324rm -f conftest.err conftest.$ac_objext \
8325 conftest$ac_exeext conftest.$ac_ext
8326LIBS=$ac_check_lib_save_LIBS
8327fi
8328echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8329echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8330if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008331 GUI_X_LIBS="-lXext"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008332fi
8333
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008334 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8335echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8336if test "${ac_cv_lib_w_wslen+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008338else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008339 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008340LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008341cat >conftest.$ac_ext <<_ACEOF
8342/* confdefs.h. */
8343_ACEOF
8344cat confdefs.h >>conftest.$ac_ext
8345cat >>conftest.$ac_ext <<_ACEOF
8346/* end confdefs.h. */
8347
Bram Moolenaar071d4272004-06-13 20:20:40 +00008348/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008349#ifdef __cplusplus
8350extern "C"
8351#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008352/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008353 builtin and then its argument prototype would still apply. */
8354char wslen ();
8355int
8356main ()
8357{
8358wslen ();
8359 ;
8360 return 0;
8361}
8362_ACEOF
8363rm -f conftest.$ac_objext conftest$ac_exeext
8364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8365 (eval $ac_link) 2>conftest.er1
8366 ac_status=$?
8367 grep -v '^ *+' conftest.er1 >conftest.err
8368 rm -f conftest.er1
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -z "$ac_c_werror_flag"
8373 || test ! -s conftest.err'
8374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8375 (eval $ac_try) 2>&5
8376 ac_status=$?
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); }; } &&
8379 { ac_try='test -s conftest$ac_exeext'
8380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 (eval $ac_try) 2>&5
8382 ac_status=$?
8383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 ac_cv_lib_w_wslen=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008386else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008387 echo "$as_me: failed program was:" >&5
8388sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008389
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008390ac_cv_lib_w_wslen=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008391fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008392rm -f conftest.err conftest.$ac_objext \
8393 conftest$ac_exeext conftest.$ac_ext
8394LIBS=$ac_check_lib_save_LIBS
8395fi
8396echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8397echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8398if test $ac_cv_lib_w_wslen = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008399 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008400fi
8401
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008402 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8403echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8404if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008406else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008407 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008408LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008409cat >conftest.$ac_ext <<_ACEOF
8410/* confdefs.h. */
8411_ACEOF
8412cat confdefs.h >>conftest.$ac_ext
8413cat >>conftest.$ac_ext <<_ACEOF
8414/* end confdefs.h. */
8415
Bram Moolenaar071d4272004-06-13 20:20:40 +00008416/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008417#ifdef __cplusplus
8418extern "C"
8419#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008420/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008421 builtin and then its argument prototype would still apply. */
8422char dlsym ();
8423int
8424main ()
8425{
8426dlsym ();
8427 ;
8428 return 0;
8429}
8430_ACEOF
8431rm -f conftest.$ac_objext conftest$ac_exeext
8432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433 (eval $ac_link) 2>conftest.er1
8434 ac_status=$?
8435 grep -v '^ *+' conftest.er1 >conftest.err
8436 rm -f conftest.er1
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } &&
8440 { ac_try='test -z "$ac_c_werror_flag"
8441 || test ! -s conftest.err'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 (eval $ac_try) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; } &&
8447 { ac_try='test -s conftest$ac_exeext'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 ac_cv_lib_dl_dlsym=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008454else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008455 echo "$as_me: failed program was:" >&5
8456sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008457
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008458ac_cv_lib_dl_dlsym=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008459fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008460rm -f conftest.err conftest.$ac_objext \
8461 conftest$ac_exeext conftest.$ac_ext
8462LIBS=$ac_check_lib_save_LIBS
8463fi
8464echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8465echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8466if test $ac_cv_lib_dl_dlsym = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008468fi
8469
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008470 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8471echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8472if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8473 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008474else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008475 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008476LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008477cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
8483
Bram Moolenaar071d4272004-06-13 20:20:40 +00008484/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008485#ifdef __cplusplus
8486extern "C"
8487#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008488/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008489 builtin and then its argument prototype would still apply. */
8490char XmuCreateStippledPixmap ();
8491int
8492main ()
8493{
8494XmuCreateStippledPixmap ();
8495 ;
8496 return 0;
8497}
8498_ACEOF
8499rm -f conftest.$ac_objext conftest$ac_exeext
8500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } &&
8508 { ac_try='test -z "$ac_c_werror_flag"
8509 || test ! -s conftest.err'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511 (eval $ac_try) 2>&5
8512 ac_status=$?
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; } &&
8515 { ac_try='test -s conftest$ac_exeext'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517 (eval $ac_try) 2>&5
8518 ac_status=$?
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8521 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008522else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008523 echo "$as_me: failed program was:" >&5
8524sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008525
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008526ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008527fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008528rm -f conftest.err conftest.$ac_objext \
8529 conftest$ac_exeext conftest.$ac_ext
8530LIBS=$ac_check_lib_save_LIBS
8531fi
8532echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8533echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8534if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008535 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008536fi
8537
8538 if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008539 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8540echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8541if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008543else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008544 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008545LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008546cat >conftest.$ac_ext <<_ACEOF
8547/* confdefs.h. */
8548_ACEOF
8549cat confdefs.h >>conftest.$ac_ext
8550cat >>conftest.$ac_ext <<_ACEOF
8551/* end confdefs.h. */
8552
Bram Moolenaar071d4272004-06-13 20:20:40 +00008553/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008554#ifdef __cplusplus
8555extern "C"
8556#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008557/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008558 builtin and then its argument prototype would still apply. */
8559char XpEndJob ();
8560int
8561main ()
8562{
8563XpEndJob ();
8564 ;
8565 return 0;
8566}
8567_ACEOF
8568rm -f conftest.$ac_objext conftest$ac_exeext
8569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570 (eval $ac_link) 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } &&
8577 { ac_try='test -z "$ac_c_werror_flag"
8578 || test ! -s conftest.err'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580 (eval $ac_try) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; } &&
8584 { ac_try='test -s conftest$ac_exeext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_cv_lib_Xp_XpEndJob=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008591else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008592 echo "$as_me: failed program was:" >&5
8593sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008594
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008595ac_cv_lib_Xp_XpEndJob=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008596fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008597rm -f conftest.err conftest.$ac_objext \
8598 conftest$ac_exeext conftest.$ac_ext
8599LIBS=$ac_check_lib_save_LIBS
8600fi
8601echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8602echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8603if test $ac_cv_lib_Xp_XpEndJob = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008604 GUI_X_LIBS="-lXp $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008605fi
8606
8607 fi
8608 LDFLAGS=$ldflags_save
8609
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008610 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8611echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008612 NARROW_PROTO=
8613 rm -fr conftestdir
8614 if mkdir conftestdir; then
8615 cd conftestdir
8616 cat > Imakefile <<'EOF'
8617acfindx:
8618 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8619EOF
8620 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8621 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8622 fi
8623 cd ..
8624 rm -fr conftestdir
8625 fi
8626 if test -z "$NARROW_PROTO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008627 echo "$as_me:$LINENO: result: no" >&5
8628echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008629 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008630 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8631echo "${ECHO_T}$NARROW_PROTO" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008632 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008633
Bram Moolenaar071d4272004-06-13 20:20:40 +00008634fi
8635
8636if test "$enable_xsmp" = "yes"; then
8637 cppflags_save=$CPPFLAGS
8638 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008639
8640for ac_header in X11/SM/SMlib.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008641do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8643if eval "test \"\${$as_ac_Header+set}\" = set"; then
8644 echo "$as_me:$LINENO: checking for $ac_header" >&5
8645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8646if eval "test \"\${$as_ac_Header+set}\" = set"; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008648fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008651else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008652 # Is the header compilable?
8653echo "$as_me:$LINENO: checking $ac_header usability" >&5
8654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8655cat >conftest.$ac_ext <<_ACEOF
8656/* confdefs.h. */
8657_ACEOF
8658cat confdefs.h >>conftest.$ac_ext
8659cat >>conftest.$ac_ext <<_ACEOF
8660/* end confdefs.h. */
8661$ac_includes_default
8662#include <$ac_header>
8663_ACEOF
8664rm -f conftest.$ac_objext
8665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666 (eval $ac_compile) 2>conftest.er1
8667 ac_status=$?
8668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag"
8674 || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 (eval $ac_try) 2>&5
8677 ac_status=$?
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try='test -s conftest.$ac_objext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8682 (eval $ac_try) 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_header_compiler=yes
8687else
8688 echo "$as_me: failed program was:" >&5
8689sed 's/^/| /' conftest.$ac_ext >&5
8690
8691ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008692fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8694echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8695echo "${ECHO_T}$ac_header_compiler" >&6
8696
8697# Is the header present?
8698echo "$as_me:$LINENO: checking $ac_header presence" >&5
8699echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8700cat >conftest.$ac_ext <<_ACEOF
8701/* confdefs.h. */
8702_ACEOF
8703cat confdefs.h >>conftest.$ac_ext
8704cat >>conftest.$ac_ext <<_ACEOF
8705/* end confdefs.h. */
8706#include <$ac_header>
8707_ACEOF
8708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } >/dev/null; then
8716 if test -s conftest.err; then
8717 ac_cpp_err=$ac_c_preproc_warn_flag
8718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8719 else
8720 ac_cpp_err=
8721 fi
8722else
8723 ac_cpp_err=yes
8724fi
8725if test -z "$ac_cpp_err"; then
8726 ac_header_preproc=yes
8727else
8728 echo "$as_me: failed program was:" >&5
8729sed 's/^/| /' conftest.$ac_ext >&5
8730
8731 ac_header_preproc=no
8732fi
8733rm -f conftest.err conftest.$ac_ext
8734echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8735echo "${ECHO_T}$ac_header_preproc" >&6
8736
8737# So? What about this header?
8738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8739 yes:no: )
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8741echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8743echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8744 ac_header_preproc=yes
8745 ;;
8746 no:yes:* )
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8748echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8750echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8752echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8754echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8756echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8758echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8759 (
8760 cat <<\_ASBOX
8761## ------------------------------------------ ##
8762## Report this to the AC_PACKAGE_NAME lists. ##
8763## ------------------------------------------ ##
8764_ASBOX
8765 ) |
8766 sed "s/^/$as_me: WARNING: /" >&2
8767 ;;
8768esac
8769echo "$as_me:$LINENO: checking for $ac_header" >&5
8770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8771if eval "test \"\${$as_ac_Header+set}\" = set"; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773else
8774 eval "$as_ac_Header=\$ac_header_preproc"
8775fi
8776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8778
8779fi
8780if test `eval echo '${'$as_ac_Header'}'` = yes; then
8781 cat >>confdefs.h <<_ACEOF
8782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8783_ACEOF
8784
8785fi
8786
Bram Moolenaar071d4272004-06-13 20:20:40 +00008787done
8788
8789 CPPFLAGS=$cppflags_save
8790fi
8791
8792
8793if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8794 cppflags_save=$CPPFLAGS
8795 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008796
8797
8798for ac_header in X11/xpm.h X11/Sunkeysym.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008799do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8801if eval "test \"\${$as_ac_Header+set}\" = set"; then
8802 echo "$as_me:$LINENO: checking for $ac_header" >&5
8803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8804if eval "test \"\${$as_ac_Header+set}\" = set"; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008806fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008809else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008810 # Is the header compilable?
8811echo "$as_me:$LINENO: checking $ac_header usability" >&5
8812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8813cat >conftest.$ac_ext <<_ACEOF
8814/* confdefs.h. */
8815_ACEOF
8816cat confdefs.h >>conftest.$ac_ext
8817cat >>conftest.$ac_ext <<_ACEOF
8818/* end confdefs.h. */
8819$ac_includes_default
8820#include <$ac_header>
8821_ACEOF
8822rm -f conftest.$ac_objext
8823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8824 (eval $ac_compile) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest.$ac_objext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_header_compiler=yes
8845else
8846 echo "$as_me: failed program was:" >&5
8847sed 's/^/| /' conftest.$ac_ext >&5
8848
8849ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008850fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8853echo "${ECHO_T}$ac_header_compiler" >&6
8854
8855# Is the header present?
8856echo "$as_me:$LINENO: checking $ac_header presence" >&5
8857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8858cat >conftest.$ac_ext <<_ACEOF
8859/* confdefs.h. */
8860_ACEOF
8861cat confdefs.h >>conftest.$ac_ext
8862cat >>conftest.$ac_ext <<_ACEOF
8863/* end confdefs.h. */
8864#include <$ac_header>
8865_ACEOF
8866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8868 ac_status=$?
8869 grep -v '^ *+' conftest.er1 >conftest.err
8870 rm -f conftest.er1
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } >/dev/null; then
8874 if test -s conftest.err; then
8875 ac_cpp_err=$ac_c_preproc_warn_flag
8876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8877 else
8878 ac_cpp_err=
8879 fi
8880else
8881 ac_cpp_err=yes
8882fi
8883if test -z "$ac_cpp_err"; then
8884 ac_header_preproc=yes
8885else
8886 echo "$as_me: failed program was:" >&5
8887sed 's/^/| /' conftest.$ac_ext >&5
8888
8889 ac_header_preproc=no
8890fi
8891rm -f conftest.err conftest.$ac_ext
8892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8893echo "${ECHO_T}$ac_header_preproc" >&6
8894
8895# So? What about this header?
8896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8897 yes:no: )
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8901echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8902 ac_header_preproc=yes
8903 ;;
8904 no:yes:* )
8905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8910echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8912echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8916echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8917 (
8918 cat <<\_ASBOX
8919## ------------------------------------------ ##
8920## Report this to the AC_PACKAGE_NAME lists. ##
8921## ------------------------------------------ ##
8922_ASBOX
8923 ) |
8924 sed "s/^/$as_me: WARNING: /" >&2
8925 ;;
8926esac
8927echo "$as_me:$LINENO: checking for $ac_header" >&5
8928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8929if eval "test \"\${$as_ac_Header+set}\" = set"; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8931else
8932 eval "$as_ac_Header=\$ac_header_preproc"
8933fi
8934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8936
8937fi
8938if test `eval echo '${'$as_ac_Header'}'` = yes; then
8939 cat >>confdefs.h <<_ACEOF
8940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8941_ACEOF
8942
8943fi
8944
Bram Moolenaar071d4272004-06-13 20:20:40 +00008945done
8946
8947
8948 if test ! "$enable_xim" = "no"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008949 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8950echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8951 cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h. */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008957#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008958_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008960 $EGREP "XIMText" >/dev/null 2>&1; then
8961 echo "$as_me:$LINENO: result: yes" >&5
8962echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008963else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008964 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8965echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008966fi
8967rm -f conftest*
8968
8969 fi
8970 CPPFLAGS=$cppflags_save
8971
8972 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8973 -a "x$GUITYPE" != "xNONE" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008974 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8975echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008976 enable_xim="yes"
8977 fi
8978fi
8979
8980if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8981 cppflags_save=$CPPFLAGS
8982 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008983 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8984echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8985 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008986/* confdefs.h. */
8987_ACEOF
8988cat confdefs.h >>conftest.$ac_ext
8989cat >>conftest.$ac_ext <<_ACEOF
8990/* end confdefs.h. */
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008991
8992#include <X11/Intrinsic.h>
8993#include <X11/Xmu/Editres.h>
8994int
8995main ()
8996{
8997int i; i = 0;
8998 ;
8999 return 0;
9000}
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009001_ACEOF
9002rm -f conftest.$ac_objext
9003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9004 (eval $ac_compile) 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
9011 { ac_try='test -z "$ac_c_werror_flag"
9012 || test ! -s conftest.err'
9013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014 (eval $ac_try) 2>&5
9015 ac_status=$?
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); }; } &&
9018 { ac_try='test -s conftest.$ac_objext'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; }; then
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009024 echo "$as_me:$LINENO: result: yes" >&5
9025echo "${ECHO_T}yes" >&6
9026 cat >>confdefs.h <<\_ACEOF
9027#define HAVE_X11_XMU_EDITRES_H 1
9028_ACEOF
9029
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009030else
9031 echo "$as_me: failed program was:" >&5
9032sed 's/^/| /' conftest.$ac_ext >&5
9033
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009034echo "$as_me:$LINENO: result: no" >&5
9035echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009036fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009038 CPPFLAGS=$cppflags_save
9039fi
9040
9041if test -z "$SKIP_MOTIF"; then
9042 cppflags_save=$CPPFLAGS
9043 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009044
9045
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009046
9047
9048
9049
Bram Moolenaarfc1421e2006-04-20 22:17:20 +00009050
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009051for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
Bram Moolenaarfc1421e2006-04-20 22:17:20 +00009052 Xm/UnhighlightT.h Xm/Notebook.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00009053do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9055if eval "test \"\${$as_ac_Header+set}\" = set"; then
9056 echo "$as_me:$LINENO: checking for $ac_header" >&5
9057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9058if eval "test \"\${$as_ac_Header+set}\" = set"; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009060fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009063else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009064 # Is the header compilable?
9065echo "$as_me:$LINENO: checking $ac_header usability" >&5
9066echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9067cat >conftest.$ac_ext <<_ACEOF
9068/* confdefs.h. */
9069_ACEOF
9070cat confdefs.h >>conftest.$ac_ext
9071cat >>conftest.$ac_ext <<_ACEOF
9072/* end confdefs.h. */
9073$ac_includes_default
9074#include <$ac_header>
9075_ACEOF
9076rm -f conftest.$ac_objext
9077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9078 (eval $ac_compile) 2>conftest.er1
9079 ac_status=$?
9080 grep -v '^ *+' conftest.er1 >conftest.err
9081 rm -f conftest.er1
9082 cat conftest.err >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); } &&
9085 { ac_try='test -z "$ac_c_werror_flag"
9086 || test ! -s conftest.err'
9087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 (eval $ac_try) 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); }; } &&
9092 { ac_try='test -s conftest.$ac_objext'
9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 ac_header_compiler=yes
9099else
9100 echo "$as_me: failed program was:" >&5
9101sed 's/^/| /' conftest.$ac_ext >&5
9102
9103ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009104fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9106echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9107echo "${ECHO_T}$ac_header_compiler" >&6
9108
9109# Is the header present?
9110echo "$as_me:$LINENO: checking $ac_header presence" >&5
9111echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9112cat >conftest.$ac_ext <<_ACEOF
9113/* confdefs.h. */
9114_ACEOF
9115cat confdefs.h >>conftest.$ac_ext
9116cat >>conftest.$ac_ext <<_ACEOF
9117/* end confdefs.h. */
9118#include <$ac_header>
9119_ACEOF
9120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9122 ac_status=$?
9123 grep -v '^ *+' conftest.er1 >conftest.err
9124 rm -f conftest.er1
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } >/dev/null; then
9128 if test -s conftest.err; then
9129 ac_cpp_err=$ac_c_preproc_warn_flag
9130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9131 else
9132 ac_cpp_err=
9133 fi
9134else
9135 ac_cpp_err=yes
9136fi
9137if test -z "$ac_cpp_err"; then
9138 ac_header_preproc=yes
9139else
9140 echo "$as_me: failed program was:" >&5
9141sed 's/^/| /' conftest.$ac_ext >&5
9142
9143 ac_header_preproc=no
9144fi
9145rm -f conftest.err conftest.$ac_ext
9146echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9147echo "${ECHO_T}$ac_header_preproc" >&6
9148
9149# So? What about this header?
9150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9151 yes:no: )
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9153echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9155echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9156 ac_header_preproc=yes
9157 ;;
9158 no:yes:* )
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9160echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9162echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9163 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9164echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9165 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9166echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9170echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9171 (
9172 cat <<\_ASBOX
9173## ------------------------------------------ ##
9174## Report this to the AC_PACKAGE_NAME lists. ##
9175## ------------------------------------------ ##
9176_ASBOX
9177 ) |
9178 sed "s/^/$as_me: WARNING: /" >&2
9179 ;;
9180esac
9181echo "$as_me:$LINENO: checking for $ac_header" >&5
9182echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9183if eval "test \"\${$as_ac_Header+set}\" = set"; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185else
9186 eval "$as_ac_Header=\$ac_header_preproc"
9187fi
9188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9190
9191fi
9192if test `eval echo '${'$as_ac_Header'}'` = yes; then
9193 cat >>confdefs.h <<_ACEOF
9194#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9195_ACEOF
9196
9197fi
9198
Bram Moolenaar071d4272004-06-13 20:20:40 +00009199done
9200
Bram Moolenaar910f66f2006-04-05 20:41:53 +00009201
9202 if test $ac_cv_header_Xm_XpmP_h = yes; then
9203 echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5
9204echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6
9205 cat >conftest.$ac_ext <<_ACEOF
9206/* confdefs.h. */
9207_ACEOF
9208cat confdefs.h >>conftest.$ac_ext
9209cat >>conftest.$ac_ext <<_ACEOF
9210/* end confdefs.h. */
9211#include <Xm/XpmP.h>
9212int
9213main ()
9214{
9215XpmAttributes_21 attr;
9216 ;
9217 return 0;
9218}
9219_ACEOF
9220rm -f conftest.$ac_objext
9221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9222 (eval $ac_compile) 2>conftest.er1
9223 ac_status=$?
9224 grep -v '^ *+' conftest.er1 >conftest.err
9225 rm -f conftest.er1
9226 cat conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } &&
9229 { ac_try='test -z "$ac_c_werror_flag"
9230 || test ! -s conftest.err'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; } &&
9236 { ac_try='test -s conftest.$ac_objext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 echo "$as_me:$LINENO: result: yes" >&5
9243echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
9244#define XPMATTRIBUTES_TYPE XpmAttributes_21
9245_ACEOF
9246
9247else
9248 echo "$as_me: failed program was:" >&5
9249sed 's/^/| /' conftest.$ac_ext >&5
9250
9251echo "$as_me:$LINENO: result: no" >&5
9252echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF
9253#define XPMATTRIBUTES_TYPE XpmAttributes
9254_ACEOF
9255
9256
9257fi
9258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9259 else
9260 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar57657d82006-04-21 22:12:41 +00009261#define XPMATTRIBUTES_TYPE XpmAttributes
Bram Moolenaar910f66f2006-04-05 20:41:53 +00009262_ACEOF
9263
9264 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009265 CPPFLAGS=$cppflags_save
9266fi
9267
9268if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009269 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9270echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009271 enable_xim="no"
9272fi
9273if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009274 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9275echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009276 enable_fontset="no"
9277fi
9278if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009279 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9280echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009281 enable_fontset="no"
9282fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009283
9284if test -z "$SKIP_PHOTON"; then
9285 GUITYPE=PHOTONGUI
9286fi
9287
9288
9289
9290
9291
9292
9293if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009294 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9295echo "$as_me: error: cannot use workshop without Motif" >&2;}
9296 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009297fi
9298
9299if test "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009300 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009301#define FEAT_XIM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009302_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009303
9304fi
9305if test "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009306 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009307#define FEAT_XFONTSET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009308_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009309
9310fi
9311
9312
9313
9314
9315if test "$enable_hangulinput" = "yes"; then
9316 if test "x$GUITYPE" = "xNONE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009317 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9318echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009319 enable_hangulinput=no
9320 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009321 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009322#define FEAT_HANGULIN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009323_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009324
9325 HANGULIN_SRC=hangulin.c
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009326
Bram Moolenaar071d4272004-06-13 20:20:40 +00009327 HANGULIN_OBJ=objects/hangulin.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009328
Bram Moolenaar071d4272004-06-13 20:20:40 +00009329 fi
9330fi
9331
9332
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009333echo "$as_me:$LINENO: checking quality of toupper" >&5
9334echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009335if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009336 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9337echo "$as_me: error: failed to compile test program" >&2;}
9338 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009339else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009340 cat >conftest.$ac_ext <<_ACEOF
9341/* confdefs.h. */
9342_ACEOF
9343cat confdefs.h >>conftest.$ac_ext
9344cat >>conftest.$ac_ext <<_ACEOF
9345/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009346#include <ctype.h>
9347main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009348_ACEOF
9349rm -f conftest$ac_exeext
9350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356 (eval $ac_try) 2>&5
9357 ac_status=$?
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009361#define BROKEN_TOUPPER 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009362_ACEOF
9363 echo "$as_me:$LINENO: result: bad" >&5
9364echo "${ECHO_T}bad" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009365else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009366 echo "$as_me: program exited with status $ac_status" >&5
9367echo "$as_me: failed program was:" >&5
9368sed 's/^/| /' conftest.$ac_ext >&5
9369
9370( exit $ac_status )
9371echo "$as_me:$LINENO: result: good" >&5
9372echo "${ECHO_T}good" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009373fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009374rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009375fi
9376
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009377echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9378echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9379cat >conftest.$ac_ext <<_ACEOF
9380/* confdefs.h. */
9381_ACEOF
9382cat confdefs.h >>conftest.$ac_ext
9383cat >>conftest.$ac_ext <<_ACEOF
9384/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009385
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009386int
9387main ()
9388{
Bram Moolenaar071d4272004-06-13 20:20:40 +00009389printf("(" __DATE__ " " __TIME__ ")");
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009390 ;
9391 return 0;
9392}
9393_ACEOF
9394rm -f conftest.$ac_objext
9395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9396 (eval $ac_compile) 2>conftest.er1
9397 ac_status=$?
9398 grep -v '^ *+' conftest.er1 >conftest.err
9399 rm -f conftest.er1
9400 cat conftest.err >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -z "$ac_c_werror_flag"
9404 || test ! -s conftest.err'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416 echo "$as_me:$LINENO: result: yes" >&5
9417echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009418#define HAVE_DATE_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009419_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009420
9421else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009422 echo "$as_me: failed program was:" >&5
9423sed 's/^/| /' conftest.$ac_ext >&5
9424
9425echo "$as_me:$LINENO: result: no" >&5
9426echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009427fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009429
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009430if test "${ac_cv_header_elf_h+set}" = set; then
9431 echo "$as_me:$LINENO: checking for elf.h" >&5
9432echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9433if test "${ac_cv_header_elf_h+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
9435fi
9436echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9437echo "${ECHO_T}$ac_cv_header_elf_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009438else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009439 # Is the header compilable?
9440echo "$as_me:$LINENO: checking elf.h usability" >&5
9441echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9442cat >conftest.$ac_ext <<_ACEOF
9443/* confdefs.h. */
9444_ACEOF
9445cat confdefs.h >>conftest.$ac_ext
9446cat >>conftest.$ac_ext <<_ACEOF
9447/* end confdefs.h. */
9448$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +00009449#include <elf.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009450_ACEOF
9451rm -f conftest.$ac_objext
9452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9453 (eval $ac_compile) 2>conftest.er1
9454 ac_status=$?
9455 grep -v '^ *+' conftest.er1 >conftest.err
9456 rm -f conftest.er1
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } &&
9460 { ac_try='test -z "$ac_c_werror_flag"
9461 || test ! -s conftest.err'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; } &&
9467 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9473 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009474else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009475 echo "$as_me: failed program was:" >&5
9476sed 's/^/| /' conftest.$ac_ext >&5
9477
9478ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009479fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9481echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9482echo "${ECHO_T}$ac_header_compiler" >&6
9483
9484# Is the header present?
9485echo "$as_me:$LINENO: checking elf.h presence" >&5
9486echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9487cat >conftest.$ac_ext <<_ACEOF
9488/* confdefs.h. */
9489_ACEOF
9490cat confdefs.h >>conftest.$ac_ext
9491cat >>conftest.$ac_ext <<_ACEOF
9492/* end confdefs.h. */
9493#include <elf.h>
9494_ACEOF
9495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9497 ac_status=$?
9498 grep -v '^ *+' conftest.er1 >conftest.err
9499 rm -f conftest.er1
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } >/dev/null; then
9503 if test -s conftest.err; then
9504 ac_cpp_err=$ac_c_preproc_warn_flag
9505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9506 else
9507 ac_cpp_err=
9508 fi
9509else
9510 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009511fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009512if test -z "$ac_cpp_err"; then
9513 ac_header_preproc=yes
9514else
9515 echo "$as_me: failed program was:" >&5
9516sed 's/^/| /' conftest.$ac_ext >&5
9517
9518 ac_header_preproc=no
9519fi
9520rm -f conftest.err conftest.$ac_ext
9521echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9522echo "${ECHO_T}$ac_header_preproc" >&6
9523
9524# So? What about this header?
9525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9526 yes:no: )
9527 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9528echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9530echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9531 ac_header_preproc=yes
9532 ;;
9533 no:yes:* )
9534 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9535echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9536 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9537echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9538 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9539echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9540 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9541echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9542 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9543echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9544 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9545echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9546 (
9547 cat <<\_ASBOX
9548## ------------------------------------------ ##
9549## Report this to the AC_PACKAGE_NAME lists. ##
9550## ------------------------------------------ ##
9551_ASBOX
9552 ) |
9553 sed "s/^/$as_me: WARNING: /" >&2
9554 ;;
9555esac
9556echo "$as_me:$LINENO: checking for elf.h" >&5
9557echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9558if test "${ac_cv_header_elf_h+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9560else
9561 ac_cv_header_elf_h=$ac_header_preproc
9562fi
9563echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9564echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9565
9566fi
9567if test $ac_cv_header_elf_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009568 HAS_ELF=1
Bram Moolenaar071d4272004-06-13 20:20:40 +00009569fi
9570
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009571
Bram Moolenaar071d4272004-06-13 20:20:40 +00009572if test "$HAS_ELF" = 1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009573
9574echo "$as_me:$LINENO: checking for main in -lelf" >&5
9575echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9576if test "${ac_cv_lib_elf_main+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009578else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009579 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009580LIBS="-lelf $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009581cat >conftest.$ac_ext <<_ACEOF
9582/* confdefs.h. */
9583_ACEOF
9584cat confdefs.h >>conftest.$ac_ext
9585cat >>conftest.$ac_ext <<_ACEOF
9586/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009587
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009588
9589int
9590main ()
9591{
9592main ();
9593 ;
9594 return 0;
9595}
9596_ACEOF
9597rm -f conftest.$ac_objext conftest$ac_exeext
9598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599 (eval $ac_link) 2>conftest.er1
9600 ac_status=$?
9601 grep -v '^ *+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -z "$ac_c_werror_flag"
9607 || test ! -s conftest.err'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 (eval $ac_try) 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; } &&
9613 { ac_try='test -s conftest$ac_exeext'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 (eval $ac_try) 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_cv_lib_elf_main=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009620else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009621 echo "$as_me: failed program was:" >&5
9622sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009623
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009624ac_cv_lib_elf_main=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009625fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009626rm -f conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628LIBS=$ac_check_lib_save_LIBS
9629fi
9630echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9631echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9632if test $ac_cv_lib_elf_main = yes; then
9633 cat >>confdefs.h <<_ACEOF
9634#define HAVE_LIBELF 1
9635_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009636
9637 LIBS="-lelf $LIBS"
9638
Bram Moolenaar071d4272004-06-13 20:20:40 +00009639fi
9640
9641fi
9642
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009643
9644
9645
9646
9647
Bram Moolenaar071d4272004-06-13 20:20:40 +00009648ac_header_dirent=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009649for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9650 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9651echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9652echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9653if eval "test \"\${$as_ac_Header+set}\" = set"; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009655else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009656 cat >conftest.$ac_ext <<_ACEOF
9657/* confdefs.h. */
9658_ACEOF
9659cat confdefs.h >>conftest.$ac_ext
9660cat >>conftest.$ac_ext <<_ACEOF
9661/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009662#include <sys/types.h>
9663#include <$ac_hdr>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009664
9665int
9666main ()
9667{
9668if ((DIR *) 0)
9669return 0;
9670 ;
9671 return 0;
9672}
9673_ACEOF
9674rm -f conftest.$ac_objext
9675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9676 (eval $ac_compile) 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } &&
9683 { ac_try='test -z "$ac_c_werror_flag"
9684 || test ! -s conftest.err'
9685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 (eval $ac_try) 2>&5
9687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; } &&
9690 { ac_try='test -s conftest.$ac_objext'
9691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692 (eval $ac_try) 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); }; }; then
9696 eval "$as_ac_Header=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009697else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009698 echo "$as_me: failed program was:" >&5
9699sed 's/^/| /' conftest.$ac_ext >&5
9700
9701eval "$as_ac_Header=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009702fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009704fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9707if test `eval echo '${'$as_ac_Header'}'` = yes; then
9708 cat >>confdefs.h <<_ACEOF
9709#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9710_ACEOF
9711
9712ac_header_dirent=$ac_hdr; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009713fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009714
Bram Moolenaar071d4272004-06-13 20:20:40 +00009715done
9716# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9717if test $ac_header_dirent = dirent.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009718 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9719echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9720if test "${ac_cv_search_opendir+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009722else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009723 ac_func_search_save_LIBS=$LIBS
9724ac_cv_search_opendir=no
9725cat >conftest.$ac_ext <<_ACEOF
9726/* confdefs.h. */
9727_ACEOF
9728cat confdefs.h >>conftest.$ac_ext
9729cat >>conftest.$ac_ext <<_ACEOF
9730/* end confdefs.h. */
9731
Bram Moolenaar071d4272004-06-13 20:20:40 +00009732/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009733#ifdef __cplusplus
9734extern "C"
9735#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009736/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009737 builtin and then its argument prototype would still apply. */
9738char opendir ();
9739int
9740main ()
9741{
9742opendir ();
9743 ;
9744 return 0;
9745}
9746_ACEOF
9747rm -f conftest.$ac_objext conftest$ac_exeext
9748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9749 (eval $ac_link) 2>conftest.er1
9750 ac_status=$?
9751 grep -v '^ *+' conftest.er1 >conftest.err
9752 rm -f conftest.er1
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } &&
9756 { ac_try='test -z "$ac_c_werror_flag"
9757 || test ! -s conftest.err'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; } &&
9763 { ac_try='test -s conftest$ac_exeext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9765 (eval $ac_try) 2>&5
9766 ac_status=$?
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_search_opendir="none required"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009770else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009771 echo "$as_me: failed program was:" >&5
9772sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009773
9774fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009775rm -f conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9777if test "$ac_cv_search_opendir" = no; then
9778 for ac_lib in dir; do
9779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9780 cat >conftest.$ac_ext <<_ACEOF
9781/* confdefs.h. */
9782_ACEOF
9783cat confdefs.h >>conftest.$ac_ext
9784cat >>conftest.$ac_ext <<_ACEOF
9785/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009786
Bram Moolenaar071d4272004-06-13 20:20:40 +00009787/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009788#ifdef __cplusplus
9789extern "C"
9790#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009791/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009792 builtin and then its argument prototype would still apply. */
9793char opendir ();
9794int
9795main ()
9796{
9797opendir ();
9798 ;
9799 return 0;
9800}
9801_ACEOF
9802rm -f conftest.$ac_objext conftest$ac_exeext
9803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9804 (eval $ac_link) 2>conftest.er1
9805 ac_status=$?
9806 grep -v '^ *+' conftest.er1 >conftest.err
9807 rm -f conftest.er1
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } &&
9811 { ac_try='test -z "$ac_c_werror_flag"
9812 || test ! -s conftest.err'
9813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9814 (eval $ac_try) 2>&5
9815 ac_status=$?
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); }; } &&
9818 { ac_try='test -s conftest$ac_exeext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 (eval $ac_try) 2>&5
9821 ac_status=$?
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9824 ac_cv_search_opendir="-l$ac_lib"
9825break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009826else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009827 echo "$as_me: failed program was:" >&5
9828sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009829
9830fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009831rm -f conftest.err conftest.$ac_objext \
9832 conftest$ac_exeext conftest.$ac_ext
9833 done
9834fi
9835LIBS=$ac_func_search_save_LIBS
9836fi
9837echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9838echo "${ECHO_T}$ac_cv_search_opendir" >&6
9839if test "$ac_cv_search_opendir" != no; then
9840 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9841
9842fi
9843
Bram Moolenaar071d4272004-06-13 20:20:40 +00009844else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009845 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9846echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9847if test "${ac_cv_search_opendir+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009849else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009850 ac_func_search_save_LIBS=$LIBS
9851ac_cv_search_opendir=no
9852cat >conftest.$ac_ext <<_ACEOF
9853/* confdefs.h. */
9854_ACEOF
9855cat confdefs.h >>conftest.$ac_ext
9856cat >>conftest.$ac_ext <<_ACEOF
9857/* end confdefs.h. */
9858
9859/* Override any gcc2 internal prototype to avoid an error. */
9860#ifdef __cplusplus
9861extern "C"
9862#endif
9863/* We use char because int might match the return type of a gcc2
9864 builtin and then its argument prototype would still apply. */
9865char opendir ();
9866int
9867main ()
9868{
9869opendir ();
9870 ;
9871 return 0;
9872}
9873_ACEOF
9874rm -f conftest.$ac_objext conftest$ac_exeext
9875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9876 (eval $ac_link) 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } &&
9883 { ac_try='test -z "$ac_c_werror_flag"
9884 || test ! -s conftest.err'
9885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 (eval $ac_try) 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); }; } &&
9890 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9896 ac_cv_search_opendir="none required"
9897else
9898 echo "$as_me: failed program was:" >&5
9899sed 's/^/| /' conftest.$ac_ext >&5
9900
9901fi
9902rm -f conftest.err conftest.$ac_objext \
9903 conftest$ac_exeext conftest.$ac_ext
9904if test "$ac_cv_search_opendir" = no; then
9905 for ac_lib in x; do
9906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9907 cat >conftest.$ac_ext <<_ACEOF
9908/* confdefs.h. */
9909_ACEOF
9910cat confdefs.h >>conftest.$ac_ext
9911cat >>conftest.$ac_ext <<_ACEOF
9912/* end confdefs.h. */
9913
9914/* Override any gcc2 internal prototype to avoid an error. */
9915#ifdef __cplusplus
9916extern "C"
9917#endif
9918/* We use char because int might match the return type of a gcc2
9919 builtin and then its argument prototype would still apply. */
9920char opendir ();
9921int
9922main ()
9923{
9924opendir ();
9925 ;
9926 return 0;
9927}
9928_ACEOF
9929rm -f conftest.$ac_objext conftest$ac_exeext
9930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9931 (eval $ac_link) 2>conftest.er1
9932 ac_status=$?
9933 grep -v '^ *+' conftest.er1 >conftest.err
9934 rm -f conftest.er1
9935 cat conftest.err >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } &&
9938 { ac_try='test -z "$ac_c_werror_flag"
9939 || test ! -s conftest.err'
9940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 (eval $ac_try) 2>&5
9942 ac_status=$?
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); }; } &&
9945 { ac_try='test -s conftest$ac_exeext'
9946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9947 (eval $ac_try) 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; }; then
9951 ac_cv_search_opendir="-l$ac_lib"
9952break
9953else
9954 echo "$as_me: failed program was:" >&5
9955sed 's/^/| /' conftest.$ac_ext >&5
9956
9957fi
9958rm -f conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960 done
9961fi
9962LIBS=$ac_func_search_save_LIBS
9963fi
9964echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9965echo "${ECHO_T}$ac_cv_search_opendir" >&6
9966if test "$ac_cv_search_opendir" != no; then
9967 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9968
9969fi
9970
9971fi
9972
9973
9974echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9975echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9976if test "${ac_cv_header_stdc+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9978else
9979 cat >conftest.$ac_ext <<_ACEOF
9980/* confdefs.h. */
9981_ACEOF
9982cat confdefs.h >>conftest.$ac_ext
9983cat >>conftest.$ac_ext <<_ACEOF
9984/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009985#include <stdlib.h>
9986#include <stdarg.h>
9987#include <string.h>
9988#include <float.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009989
9990int
9991main ()
9992{
9993
9994 ;
9995 return 0;
9996}
9997_ACEOF
9998rm -f conftest.$ac_objext
9999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10000 (eval $ac_compile) 2>conftest.er1
10001 ac_status=$?
10002 grep -v '^ *+' conftest.er1 >conftest.err
10003 rm -f conftest.er1
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -z "$ac_c_werror_flag"
10008 || test ! -s conftest.err'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10011 ac_status=$?
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; } &&
10014 { ac_try='test -s conftest.$ac_objext'
10015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10017 ac_status=$?
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010020 ac_cv_header_stdc=yes
10021else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010022 echo "$as_me: failed program was:" >&5
10023sed 's/^/| /' conftest.$ac_ext >&5
10024
10025ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010026fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010028
10029if test $ac_cv_header_stdc = yes; then
10030 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010031 cat >conftest.$ac_ext <<_ACEOF
10032/* confdefs.h. */
10033_ACEOF
10034cat confdefs.h >>conftest.$ac_ext
10035cat >>conftest.$ac_ext <<_ACEOF
10036/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010037#include <string.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010038
10039_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010040if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010041 $EGREP "memchr" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010042 :
10043else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010044 ac_cv_header_stdc=no
10045fi
10046rm -f conftest*
10047
10048fi
10049
10050if test $ac_cv_header_stdc = yes; then
10051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010052 cat >conftest.$ac_ext <<_ACEOF
10053/* confdefs.h. */
10054_ACEOF
10055cat confdefs.h >>conftest.$ac_ext
10056cat >>conftest.$ac_ext <<_ACEOF
10057/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010058#include <stdlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010059
10060_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010062 $EGREP "free" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010063 :
10064else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010065 ac_cv_header_stdc=no
10066fi
10067rm -f conftest*
10068
10069fi
10070
10071if test $ac_cv_header_stdc = yes; then
10072 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010073 if test "$cross_compiling" = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010074 :
10075else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010076 cat >conftest.$ac_ext <<_ACEOF
10077/* confdefs.h. */
10078_ACEOF
10079cat confdefs.h >>conftest.$ac_ext
10080cat >>conftest.$ac_ext <<_ACEOF
10081/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010082#include <ctype.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010083#if ((' ' & 0x0FF) == 0x020)
10084# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10085# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10086#else
10087# define ISLOWER(c) \
10088 (('a' <= (c) && (c) <= 'i') \
10089 || ('j' <= (c) && (c) <= 'r') \
10090 || ('s' <= (c) && (c) <= 'z'))
10091# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10092#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010093
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010094#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10095int
10096main ()
10097{
10098 int i;
10099 for (i = 0; i < 256; i++)
10100 if (XOR (islower (i), ISLOWER (i))
10101 || toupper (i) != TOUPPER (i))
10102 exit(2);
10103 exit (0);
10104}
10105_ACEOF
10106rm -f conftest$ac_exeext
10107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108 (eval $ac_link) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010117 :
10118else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010119 echo "$as_me: program exited with status $ac_status" >&5
10120echo "$as_me: failed program was:" >&5
10121sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010122
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010123( exit $ac_status )
10124ac_cv_header_stdc=no
10125fi
10126rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010127fi
10128fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010129fi
10130echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10131echo "${ECHO_T}$ac_cv_header_stdc" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010132if test $ac_cv_header_stdc = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010133
10134cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010135#define STDC_HEADERS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010136_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010137
10138fi
10139
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010140echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10141echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10142if test "${ac_cv_header_sys_wait_h+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010144else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010145 cat >conftest.$ac_ext <<_ACEOF
10146/* confdefs.h. */
10147_ACEOF
10148cat confdefs.h >>conftest.$ac_ext
10149cat >>conftest.$ac_ext <<_ACEOF
10150/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010151#include <sys/types.h>
10152#include <sys/wait.h>
10153#ifndef WEXITSTATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010154# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010155#endif
10156#ifndef WIFEXITED
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010157# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010158#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010159
10160int
10161main ()
10162{
10163 int s;
10164 wait (&s);
10165 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10166 ;
10167 return 0;
10168}
10169_ACEOF
10170rm -f conftest.$ac_objext
10171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172 (eval $ac_compile) 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } &&
10179 { ac_try='test -z "$ac_c_werror_flag"
10180 || test ! -s conftest.err'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; } &&
10186 { ac_try='test -s conftest.$ac_objext'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010192 ac_cv_header_sys_wait_h=yes
10193else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010194 echo "$as_me: failed program was:" >&5
10195sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010196
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010197ac_cv_header_sys_wait_h=no
10198fi
10199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10200fi
10201echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10202echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010203if test $ac_cv_header_sys_wait_h = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010204
10205cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010206#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010207_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010208
10209fi
10210
10211
10212if test $ac_cv_header_sys_wait_h = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010213 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10214echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10215 cat >conftest.$ac_ext <<_ACEOF
10216/* confdefs.h. */
10217_ACEOF
10218cat confdefs.h >>conftest.$ac_ext
10219cat >>conftest.$ac_ext <<_ACEOF
10220/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010221#include <sys/wait.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010222int
10223main ()
10224{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010225union wait xx, yy; xx = yy
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010226 ;
10227 return 0;
10228}
10229_ACEOF
10230rm -f conftest.$ac_objext
10231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 (eval $ac_compile) 2>conftest.er1
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } &&
10239 { ac_try='test -z "$ac_c_werror_flag"
10240 || test ! -s conftest.err'
10241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242 (eval $ac_try) 2>&5
10243 ac_status=$?
10244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245 (exit $ac_status); }; } &&
10246 { ac_try='test -s conftest.$ac_objext'
10247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248 (eval $ac_try) 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
10252 echo "$as_me:$LINENO: result: yes" >&5
10253echo "${ECHO_T}yes" >&6
10254 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010255#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010256_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010257
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010258 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010259#define HAVE_UNION_WAIT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010260_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010261
10262else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
10266echo "$as_me:$LINENO: result: no" >&5
10267echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010268fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010270fi
10271
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010311
Bram Moolenaare74455a2007-11-04 14:36:18 +000010312
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010313for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Bram Moolenaare74455a2007-11-04 14:36:18 +000010314 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010315 iconv.h langinfo.h unistd.h stropts.h errno.h \
10316 sys/resource.h sys/systeminfo.h locale.h \
10317 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10318 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010319 libgen.h util/debug.h util/msg18n.h frame.h \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010320 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010321do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010322as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10323if eval "test \"\${$as_ac_Header+set}\" = set"; then
10324 echo "$as_me:$LINENO: checking for $ac_header" >&5
10325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10326if eval "test \"\${$as_ac_Header+set}\" = set"; then
10327 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010328fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010329echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10330echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010331else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010332 # Is the header compilable?
10333echo "$as_me:$LINENO: checking $ac_header usability" >&5
10334echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10335cat >conftest.$ac_ext <<_ACEOF
10336/* confdefs.h. */
10337_ACEOF
10338cat confdefs.h >>conftest.$ac_ext
10339cat >>conftest.$ac_ext <<_ACEOF
10340/* end confdefs.h. */
10341$ac_includes_default
10342#include <$ac_header>
10343_ACEOF
10344rm -f conftest.$ac_objext
10345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10346 (eval $ac_compile) 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -z "$ac_c_werror_flag"
10354 || test ! -s conftest.err'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; } &&
10360 { ac_try='test -s conftest.$ac_objext'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 ac_header_compiler=yes
10367else
10368 echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5
10370
10371ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010372fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10374echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10375echo "${ECHO_T}$ac_header_compiler" >&6
10376
10377# Is the header present?
10378echo "$as_me:$LINENO: checking $ac_header presence" >&5
10379echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10380cat >conftest.$ac_ext <<_ACEOF
10381/* confdefs.h. */
10382_ACEOF
10383cat confdefs.h >>conftest.$ac_ext
10384cat >>conftest.$ac_ext <<_ACEOF
10385/* end confdefs.h. */
10386#include <$ac_header>
10387_ACEOF
10388if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10390 ac_status=$?
10391 grep -v '^ *+' conftest.er1 >conftest.err
10392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } >/dev/null; then
10396 if test -s conftest.err; then
10397 ac_cpp_err=$ac_c_preproc_warn_flag
10398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10399 else
10400 ac_cpp_err=
10401 fi
10402else
10403 ac_cpp_err=yes
10404fi
10405if test -z "$ac_cpp_err"; then
10406 ac_header_preproc=yes
10407else
10408 echo "$as_me: failed program was:" >&5
10409sed 's/^/| /' conftest.$ac_ext >&5
10410
10411 ac_header_preproc=no
10412fi
10413rm -f conftest.err conftest.$ac_ext
10414echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10415echo "${ECHO_T}$ac_header_preproc" >&6
10416
10417# So? What about this header?
10418case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10419 yes:no: )
10420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10421echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10423echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10424 ac_header_preproc=yes
10425 ;;
10426 no:yes:* )
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10428echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10430echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10432echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10434echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10436echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10438echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10439 (
10440 cat <<\_ASBOX
10441## ------------------------------------------ ##
10442## Report this to the AC_PACKAGE_NAME lists. ##
10443## ------------------------------------------ ##
10444_ASBOX
10445 ) |
10446 sed "s/^/$as_me: WARNING: /" >&2
10447 ;;
10448esac
10449echo "$as_me:$LINENO: checking for $ac_header" >&5
10450echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10451if eval "test \"\${$as_ac_Header+set}\" = set"; then
10452 echo $ECHO_N "(cached) $ECHO_C" >&6
10453else
10454 eval "$as_ac_Header=\$ac_header_preproc"
10455fi
10456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10458
10459fi
10460if test `eval echo '${'$as_ac_Header'}'` = yes; then
10461 cat >>confdefs.h <<_ACEOF
10462#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10463_ACEOF
10464
10465fi
10466
Bram Moolenaar071d4272004-06-13 20:20:40 +000010467done
10468
10469
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010470echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10471echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10472cat >conftest.$ac_ext <<_ACEOF
10473/* confdefs.h. */
10474_ACEOF
10475cat confdefs.h >>conftest.$ac_ext
10476cat >>conftest.$ac_ext <<_ACEOF
10477/* end confdefs.h. */
10478
10479#include <pthread.h>
10480#include <pthread_np.h>
10481int
10482main ()
10483{
10484int i; i = 0;
10485 ;
10486 return 0;
10487}
10488_ACEOF
10489rm -f conftest.$ac_objext
10490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491 (eval $ac_compile) 2>conftest.er1
10492 ac_status=$?
10493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
10498 { ac_try='test -z "$ac_c_werror_flag"
10499 || test ! -s conftest.err'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest.$ac_objext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 echo "$as_me:$LINENO: result: yes" >&5
10512echo "${ECHO_T}yes" >&6
10513 cat >>confdefs.h <<\_ACEOF
10514#define HAVE_PTHREAD_NP_H 1
10515_ACEOF
10516
10517else
10518 echo "$as_me: failed program was:" >&5
10519sed 's/^/| /' conftest.$ac_ext >&5
10520
10521echo "$as_me:$LINENO: result: no" >&5
10522echo "${ECHO_T}no" >&6
10523fi
10524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10525
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010526
10527for ac_header in strings.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010528do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10530if eval "test \"\${$as_ac_Header+set}\" = set"; then
10531 echo "$as_me:$LINENO: checking for $ac_header" >&5
10532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10533if eval "test \"\${$as_ac_Header+set}\" = set"; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010535fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010538else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010539 # Is the header compilable?
10540echo "$as_me:$LINENO: checking $ac_header usability" >&5
10541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10542cat >conftest.$ac_ext <<_ACEOF
10543/* confdefs.h. */
10544_ACEOF
10545cat confdefs.h >>conftest.$ac_ext
10546cat >>conftest.$ac_ext <<_ACEOF
10547/* end confdefs.h. */
10548$ac_includes_default
10549#include <$ac_header>
10550_ACEOF
10551rm -f conftest.$ac_objext
10552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10553 (eval $ac_compile) 2>conftest.er1
10554 ac_status=$?
10555 grep -v '^ *+' conftest.er1 >conftest.err
10556 rm -f conftest.er1
10557 cat conftest.err >&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } &&
10560 { ac_try='test -z "$ac_c_werror_flag"
10561 || test ! -s conftest.err'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; } &&
10567 { ac_try='test -s conftest.$ac_objext'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }; then
10573 ac_header_compiler=yes
10574else
10575 echo "$as_me: failed program was:" >&5
10576sed 's/^/| /' conftest.$ac_ext >&5
10577
10578ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010579fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10582echo "${ECHO_T}$ac_header_compiler" >&6
10583
10584# Is the header present?
10585echo "$as_me:$LINENO: checking $ac_header presence" >&5
10586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10587cat >conftest.$ac_ext <<_ACEOF
10588/* confdefs.h. */
10589_ACEOF
10590cat confdefs.h >>conftest.$ac_ext
10591cat >>conftest.$ac_ext <<_ACEOF
10592/* end confdefs.h. */
10593#include <$ac_header>
10594_ACEOF
10595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10597 ac_status=$?
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } >/dev/null; then
10603 if test -s conftest.err; then
10604 ac_cpp_err=$ac_c_preproc_warn_flag
10605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10606 else
10607 ac_cpp_err=
10608 fi
10609else
10610 ac_cpp_err=yes
10611fi
10612if test -z "$ac_cpp_err"; then
10613 ac_header_preproc=yes
10614else
10615 echo "$as_me: failed program was:" >&5
10616sed 's/^/| /' conftest.$ac_ext >&5
10617
10618 ac_header_preproc=no
10619fi
10620rm -f conftest.err conftest.$ac_ext
10621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10622echo "${ECHO_T}$ac_header_preproc" >&6
10623
10624# So? What about this header?
10625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10626 yes:no: )
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10631 ac_header_preproc=yes
10632 ;;
10633 no:yes:* )
10634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10646 (
10647 cat <<\_ASBOX
10648## ------------------------------------------ ##
10649## Report this to the AC_PACKAGE_NAME lists. ##
10650## ------------------------------------------ ##
10651_ASBOX
10652 ) |
10653 sed "s/^/$as_me: WARNING: /" >&2
10654 ;;
10655esac
10656echo "$as_me:$LINENO: checking for $ac_header" >&5
10657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10658if eval "test \"\${$as_ac_Header+set}\" = set"; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660else
10661 eval "$as_ac_Header=\$ac_header_preproc"
10662fi
10663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10665
10666fi
10667if test `eval echo '${'$as_ac_Header'}'` = yes; then
10668 cat >>confdefs.h <<_ACEOF
10669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10670_ACEOF
10671
10672fi
10673
Bram Moolenaar071d4272004-06-13 20:20:40 +000010674done
10675
Bram Moolenaar9372a112005-12-06 19:59:18 +000010676if test "x$MACOSX" = "xyes"; then
10677 cat >>confdefs.h <<\_ACEOF
10678#define NO_STRINGS_WITH_STRING_H 1
10679_ACEOF
10680
10681else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010682
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010683echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10684echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010685cppflags_save=$CPPFLAGS
10686CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010687cat >conftest.$ac_ext <<_ACEOF
10688/* confdefs.h. */
10689_ACEOF
10690cat confdefs.h >>conftest.$ac_ext
10691cat >>conftest.$ac_ext <<_ACEOF
10692/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010693
10694#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10695# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10696 /* but don't do it on AIX 5.1 (Uribarri) */
10697#endif
10698#ifdef HAVE_XM_XM_H
10699# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10700#endif
10701#ifdef HAVE_STRING_H
10702# include <string.h>
10703#endif
10704#if defined(HAVE_STRINGS_H)
10705# include <strings.h>
10706#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010707
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010708int
10709main ()
10710{
10711int i; i = 0;
10712 ;
10713 return 0;
10714}
10715_ACEOF
10716rm -f conftest.$ac_objext
10717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10718 (eval $ac_compile) 2>conftest.er1
10719 ac_status=$?
10720 grep -v '^ *+' conftest.er1 >conftest.err
10721 rm -f conftest.er1
10722 cat conftest.err >&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); } &&
10725 { ac_try='test -z "$ac_c_werror_flag"
10726 || test ! -s conftest.err'
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); }; } &&
10732 { ac_try='test -s conftest.$ac_objext'
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 echo "$as_me:$LINENO: result: yes" >&5
10739echo "${ECHO_T}yes" >&6
10740else
10741 echo "$as_me: failed program was:" >&5
10742sed 's/^/| /' conftest.$ac_ext >&5
10743
10744cat >>confdefs.h <<\_ACEOF
10745#define NO_STRINGS_WITH_STRING_H 1
10746_ACEOF
10747
10748 echo "$as_me:$LINENO: result: no" >&5
10749echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010750fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010752CPPFLAGS=$cppflags_save
Bram Moolenaar9372a112005-12-06 19:59:18 +000010753fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000010754
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010755if test $ac_cv_c_compiler_gnu = yes; then
10756 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10757echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10758if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010760else
10761 ac_pattern="Autoconf.*'x'"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010762 cat >conftest.$ac_ext <<_ACEOF
10763/* confdefs.h. */
10764_ACEOF
10765cat confdefs.h >>conftest.$ac_ext
10766cat >>conftest.$ac_ext <<_ACEOF
10767/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010768#include <sgtty.h>
10769Autoconf TIOCGETP
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010770_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010772 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010773 ac_cv_prog_gcc_traditional=yes
10774else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010775 ac_cv_prog_gcc_traditional=no
10776fi
10777rm -f conftest*
10778
10779
10780 if test $ac_cv_prog_gcc_traditional = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010781 cat >conftest.$ac_ext <<_ACEOF
10782/* confdefs.h. */
10783_ACEOF
10784cat confdefs.h >>conftest.$ac_ext
10785cat >>conftest.$ac_ext <<_ACEOF
10786/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010787#include <termio.h>
10788Autoconf TCGETA
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010789_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010791 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010792 ac_cv_prog_gcc_traditional=yes
10793fi
10794rm -f conftest*
10795
10796 fi
10797fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010798echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10799echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010800 if test $ac_cv_prog_gcc_traditional = yes; then
10801 CC="$CC -traditional"
10802 fi
10803fi
10804
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010805echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10806echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10807if test "${ac_cv_c_const+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010809else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010810 cat >conftest.$ac_ext <<_ACEOF
10811/* confdefs.h. */
10812_ACEOF
10813cat confdefs.h >>conftest.$ac_ext
10814cat >>conftest.$ac_ext <<_ACEOF
10815/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010816
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010817int
10818main ()
10819{
10820/* FIXME: Include the comments suggested by Paul. */
10821#ifndef __cplusplus
10822 /* Ultrix mips cc rejects this. */
10823 typedef int charset[2];
10824 const charset x;
10825 /* SunOS 4.1.1 cc rejects this. */
10826 char const *const *ccp;
10827 char **p;
10828 /* NEC SVR4.0.2 mips cc rejects this. */
10829 struct point {int x, y;};
10830 static struct point const zero = {0,0};
10831 /* AIX XL C 1.02.0.0 rejects this.
10832 It does not let you subtract one const X* pointer from another in
10833 an arm of an if-expression whose if-part is not a constant
10834 expression */
10835 const char *g = "string";
10836 ccp = &g + (g ? g-g : 0);
10837 /* HPUX 7.0 cc rejects these. */
10838 ++ccp;
10839 p = (char**) ccp;
10840 ccp = (char const *const *) p;
10841 { /* SCO 3.2v4 cc rejects this. */
10842 char *t;
10843 char const *s = 0 ? (char *) 0 : (char const *) 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010844
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010845 *t++ = 0;
10846 }
10847 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10848 int x[] = {25, 17};
10849 const int *foo = &x[0];
10850 ++foo;
10851 }
10852 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10853 typedef const int *iptr;
10854 iptr p = 0;
10855 ++p;
10856 }
10857 { /* AIX XL C 1.02.0.0 rejects this saying
10858 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10859 struct s { int j; const int *ap[3]; };
10860 struct s *b; b->j = 5;
10861 }
10862 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10863 const int foo = 10;
10864 }
10865#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010866
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010867 ;
10868 return 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010869}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010870_ACEOF
10871rm -f conftest.$ac_objext
10872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10873 (eval $ac_compile) 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try='test -z "$ac_c_werror_flag"
10881 || test ! -s conftest.err'
10882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; } &&
10887 { ac_try='test -s conftest.$ac_objext'
10888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10889 (eval $ac_try) 2>&5
10890 ac_status=$?
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010893 ac_cv_c_const=yes
10894else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010895 echo "$as_me: failed program was:" >&5
10896sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010897
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010898ac_cv_c_const=no
10899fi
10900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10901fi
10902echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10903echo "${ECHO_T}$ac_cv_c_const" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010904if test $ac_cv_c_const = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010905
10906cat >>confdefs.h <<\_ACEOF
10907#define const
10908_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010909
10910fi
10911
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010912echo "$as_me:$LINENO: checking for mode_t" >&5
10913echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10914if test "${ac_cv_type_mode_t+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010916else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010917 cat >conftest.$ac_ext <<_ACEOF
10918/* confdefs.h. */
10919_ACEOF
10920cat confdefs.h >>conftest.$ac_ext
10921cat >>conftest.$ac_ext <<_ACEOF
10922/* end confdefs.h. */
10923$ac_includes_default
10924int
10925main ()
10926{
10927if ((mode_t *) 0)
10928 return 0;
10929if (sizeof (mode_t))
10930 return 0;
10931 ;
10932 return 0;
10933}
10934_ACEOF
10935rm -f conftest.$ac_objext
10936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag"
10945 || test ! -s conftest.err'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010957 ac_cv_type_mode_t=yes
10958else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010959 echo "$as_me: failed program was:" >&5
10960sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010961
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010962ac_cv_type_mode_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010963fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010965fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010966echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10967echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10968if test $ac_cv_type_mode_t = yes; then
10969 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010970else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010971
10972cat >>confdefs.h <<_ACEOF
10973#define mode_t int
10974_ACEOF
10975
10976fi
10977
10978echo "$as_me:$LINENO: checking for off_t" >&5
10979echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10980if test "${ac_cv_type_off_t+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982else
10983 cat >conftest.$ac_ext <<_ACEOF
10984/* confdefs.h. */
10985_ACEOF
10986cat confdefs.h >>conftest.$ac_ext
10987cat >>conftest.$ac_ext <<_ACEOF
10988/* end confdefs.h. */
10989$ac_includes_default
10990int
10991main ()
10992{
10993if ((off_t *) 0)
10994 return 0;
10995if (sizeof (off_t))
10996 return 0;
10997 ;
10998 return 0;
10999}
11000_ACEOF
11001rm -f conftest.$ac_objext
11002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11003 (eval $ac_compile) 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } &&
11010 { ac_try='test -z "$ac_c_werror_flag"
11011 || test ! -s conftest.err'
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011023 ac_cv_type_off_t=yes
11024else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011025 echo "$as_me: failed program was:" >&5
11026sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011027
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011028ac_cv_type_off_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011029fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011031fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011032echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11033echo "${ECHO_T}$ac_cv_type_off_t" >&6
11034if test $ac_cv_type_off_t = yes; then
11035 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011036else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011037
11038cat >>confdefs.h <<_ACEOF
11039#define off_t long
11040_ACEOF
11041
11042fi
11043
11044echo "$as_me:$LINENO: checking for pid_t" >&5
11045echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11046if test "${ac_cv_type_pid_t+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048else
11049 cat >conftest.$ac_ext <<_ACEOF
11050/* confdefs.h. */
11051_ACEOF
11052cat confdefs.h >>conftest.$ac_ext
11053cat >>conftest.$ac_ext <<_ACEOF
11054/* end confdefs.h. */
11055$ac_includes_default
11056int
11057main ()
11058{
11059if ((pid_t *) 0)
11060 return 0;
11061if (sizeof (pid_t))
11062 return 0;
11063 ;
11064 return 0;
11065}
11066_ACEOF
11067rm -f conftest.$ac_objext
11068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11069 (eval $ac_compile) 2>conftest.er1
11070 ac_status=$?
11071 grep -v '^ *+' conftest.er1 >conftest.err
11072 rm -f conftest.er1
11073 cat conftest.err >&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); } &&
11076 { ac_try='test -z "$ac_c_werror_flag"
11077 || test ! -s conftest.err'
11078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11080 ac_status=$?
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); }; } &&
11083 { ac_try='test -s conftest.$ac_objext'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011089 ac_cv_type_pid_t=yes
11090else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011091 echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011093
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011094ac_cv_type_pid_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011095fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011097fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011098echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11099echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11100if test $ac_cv_type_pid_t = yes; then
11101 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011102else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011103
11104cat >>confdefs.h <<_ACEOF
11105#define pid_t int
11106_ACEOF
11107
11108fi
11109
11110echo "$as_me:$LINENO: checking for size_t" >&5
11111echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11112if test "${ac_cv_type_size_t+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11114else
11115 cat >conftest.$ac_ext <<_ACEOF
11116/* confdefs.h. */
11117_ACEOF
11118cat confdefs.h >>conftest.$ac_ext
11119cat >>conftest.$ac_ext <<_ACEOF
11120/* end confdefs.h. */
11121$ac_includes_default
11122int
11123main ()
11124{
11125if ((size_t *) 0)
11126 return 0;
11127if (sizeof (size_t))
11128 return 0;
11129 ;
11130 return 0;
11131}
11132_ACEOF
11133rm -f conftest.$ac_objext
11134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11135 (eval $ac_compile) 2>conftest.er1
11136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } &&
11142 { ac_try='test -z "$ac_c_werror_flag"
11143 || test ! -s conftest.err'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest.$ac_objext'
11150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151 (eval $ac_try) 2>&5
11152 ac_status=$?
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011155 ac_cv_type_size_t=yes
11156else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011157 echo "$as_me: failed program was:" >&5
11158sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011159
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011160ac_cv_type_size_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011161fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011163fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011164echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11165echo "${ECHO_T}$ac_cv_type_size_t" >&6
11166if test $ac_cv_type_size_t = yes; then
11167 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011168else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011169
11170cat >>confdefs.h <<_ACEOF
11171#define size_t unsigned
11172_ACEOF
11173
11174fi
11175
11176echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11177echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11178if test "${ac_cv_type_uid_t+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180else
11181 cat >conftest.$ac_ext <<_ACEOF
11182/* confdefs.h. */
11183_ACEOF
11184cat confdefs.h >>conftest.$ac_ext
11185cat >>conftest.$ac_ext <<_ACEOF
11186/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011187#include <sys/types.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011188
11189_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011190if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011191 $EGREP "uid_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011192 ac_cv_type_uid_t=yes
11193else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011194 ac_cv_type_uid_t=no
11195fi
11196rm -f conftest*
11197
11198fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011199echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11200echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011201if test $ac_cv_type_uid_t = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011202
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011203cat >>confdefs.h <<\_ACEOF
11204#define uid_t int
11205_ACEOF
11206
11207
11208cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011209#define gid_t int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011210_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011211
11212fi
11213
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011214echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11215echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11216if test "${ac_cv_header_time+set}" = set; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011218else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011219 cat >conftest.$ac_ext <<_ACEOF
11220/* confdefs.h. */
11221_ACEOF
11222cat confdefs.h >>conftest.$ac_ext
11223cat >>conftest.$ac_ext <<_ACEOF
11224/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011225#include <sys/types.h>
11226#include <sys/time.h>
11227#include <time.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011228
11229int
11230main ()
11231{
11232if ((struct tm *) 0)
11233return 0;
11234 ;
11235 return 0;
11236}
11237_ACEOF
11238rm -f conftest.$ac_objext
11239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11240 (eval $ac_compile) 2>conftest.er1
11241 ac_status=$?
11242 grep -v '^ *+' conftest.er1 >conftest.err
11243 rm -f conftest.er1
11244 cat conftest.err >&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try='test -z "$ac_c_werror_flag"
11248 || test ! -s conftest.err'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try='test -s conftest.$ac_objext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11257 ac_status=$?
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011260 ac_cv_header_time=yes
11261else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011262 echo "$as_me: failed program was:" >&5
11263sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011264
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011265ac_cv_header_time=no
11266fi
11267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11268fi
11269echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11270echo "${ECHO_T}$ac_cv_header_time" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011271if test $ac_cv_header_time = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011272
11273cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011274#define TIME_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011275_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011276
11277fi
11278
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011279echo "$as_me:$LINENO: checking for ino_t" >&5
11280echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11281if test "${ac_cv_type_ino_t+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011283else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011284 cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
11290$ac_includes_default
11291int
11292main ()
11293{
11294if ((ino_t *) 0)
11295 return 0;
11296if (sizeof (ino_t))
11297 return 0;
11298 ;
11299 return 0;
11300}
11301_ACEOF
11302rm -f conftest.$ac_objext
11303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304 (eval $ac_compile) 2>conftest.er1
11305 ac_status=$?
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
11311 { ac_try='test -z "$ac_c_werror_flag"
11312 || test ! -s conftest.err'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try='test -s conftest.$ac_objext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011324 ac_cv_type_ino_t=yes
11325else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011326 echo "$as_me: failed program was:" >&5
11327sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011328
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011329ac_cv_type_ino_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011330fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011332fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011333echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11334echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11335if test $ac_cv_type_ino_t = yes; then
11336 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011337else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011338
11339cat >>confdefs.h <<_ACEOF
11340#define ino_t long
11341_ACEOF
11342
11343fi
11344
11345echo "$as_me:$LINENO: checking for dev_t" >&5
11346echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11347if test "${ac_cv_type_dev_t+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349else
11350 cat >conftest.$ac_ext <<_ACEOF
11351/* confdefs.h. */
11352_ACEOF
11353cat confdefs.h >>conftest.$ac_ext
11354cat >>conftest.$ac_ext <<_ACEOF
11355/* end confdefs.h. */
11356$ac_includes_default
11357int
11358main ()
11359{
11360if ((dev_t *) 0)
11361 return 0;
11362if (sizeof (dev_t))
11363 return 0;
11364 ;
11365 return 0;
11366}
11367_ACEOF
11368rm -f conftest.$ac_objext
11369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>conftest.er1
11371 ac_status=$?
11372 grep -v '^ *+' conftest.er1 >conftest.err
11373 rm -f conftest.er1
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -z "$ac_c_werror_flag"
11378 || test ! -s conftest.err'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11381 ac_status=$?
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; } &&
11384 { ac_try='test -s conftest.$ac_objext'
11385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11386 (eval $ac_try) 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011390 ac_cv_type_dev_t=yes
11391else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011392 echo "$as_me: failed program was:" >&5
11393sed 's/^/| /' conftest.$ac_ext >&5
11394
11395ac_cv_type_dev_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011396fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011398fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011399echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11400echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11401if test $ac_cv_type_dev_t = yes; then
11402 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011403else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011404
11405cat >>confdefs.h <<_ACEOF
11406#define dev_t unsigned
11407_ACEOF
11408
11409fi
11410
11411
11412echo "$as_me:$LINENO: checking for rlim_t" >&5
11413echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11414if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11415 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11416echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11417else
11418 cat >conftest.$ac_ext <<_ACEOF
11419/* confdefs.h. */
11420_ACEOF
11421cat confdefs.h >>conftest.$ac_ext
11422cat >>conftest.$ac_ext <<_ACEOF
11423/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011424
11425#include <sys/types.h>
11426#if STDC_HEADERS
11427#include <stdlib.h>
11428#include <stddef.h>
11429#endif
11430#ifdef HAVE_SYS_RESOURCE_H
11431#include <sys/resource.h>
11432#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011433
11434_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011436 $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 +000011437 ac_cv_type_rlim_t=yes
11438else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011439 ac_cv_type_rlim_t=no
11440fi
11441rm -f conftest*
11442
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011443 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11444echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011445fi
11446if test $ac_cv_type_rlim_t = no; then
11447 cat >> confdefs.h <<\EOF
11448#define rlim_t unsigned long
11449EOF
11450fi
11451
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011452echo "$as_me:$LINENO: checking for stack_t" >&5
11453echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011454if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011455 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11456echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011457else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011458 cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h. */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011464
11465#include <sys/types.h>
11466#if STDC_HEADERS
11467#include <stdlib.h>
11468#include <stddef.h>
11469#endif
11470#include <signal.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011471
11472_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011474 $EGREP "stack_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011475 ac_cv_type_stack_t=yes
11476else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011477 ac_cv_type_stack_t=no
11478fi
11479rm -f conftest*
11480
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011481 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11482echo "${ECHO_T}$ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011483fi
11484if test $ac_cv_type_stack_t = no; then
11485 cat >> confdefs.h <<\EOF
11486#define stack_t struct sigaltstack
11487EOF
11488fi
11489
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011490echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11491echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11492cat >conftest.$ac_ext <<_ACEOF
11493/* confdefs.h. */
11494_ACEOF
11495cat confdefs.h >>conftest.$ac_ext
11496cat >>conftest.$ac_ext <<_ACEOF
11497/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011498
11499#include <sys/types.h>
11500#if STDC_HEADERS
11501#include <stdlib.h>
11502#include <stddef.h>
11503#endif
11504#include <signal.h>
11505#include "confdefs.h"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011506
11507int
11508main ()
11509{
11510stack_t sigstk; sigstk.ss_base = 0;
11511 ;
11512 return 0;
11513}
11514_ACEOF
11515rm -f conftest.$ac_objext
11516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11517 (eval $ac_compile) 2>conftest.er1
11518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -z "$ac_c_werror_flag"
11525 || test ! -s conftest.err'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; } &&
11531 { ac_try='test -s conftest.$ac_objext'
11532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11533 (eval $ac_try) 2>&5
11534 ac_status=$?
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); }; }; then
11537 echo "$as_me:$LINENO: result: yes" >&5
11538echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011539#define HAVE_SS_BASE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011540_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011541
11542else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011543 echo "$as_me: failed program was:" >&5
11544sed 's/^/| /' conftest.$ac_ext >&5
11545
11546echo "$as_me:$LINENO: result: no" >&5
11547echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011548fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011550
11551olibs="$LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011552echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11553echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11554
Bram Moolenaar071d4272004-06-13 20:20:40 +000011555# Check whether --with-tlib or --without-tlib was given.
11556if test "${with_tlib+set}" = set; then
11557 withval="$with_tlib"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011558
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011559fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011560if test -n "$with_tlib"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011561 echo "$as_me:$LINENO: result: $with_tlib" >&5
11562echo "${ECHO_T}$with_tlib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011563 LIBS="$LIBS -l$with_tlib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011564 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11565echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11566 cat >conftest.$ac_ext <<_ACEOF
11567/* confdefs.h. */
11568_ACEOF
11569cat confdefs.h >>conftest.$ac_ext
11570cat >>conftest.$ac_ext <<_ACEOF
11571/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011572
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011573int
11574main ()
11575{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011576
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011577 ;
11578 return 0;
11579}
11580_ACEOF
11581rm -f conftest.$ac_objext conftest$ac_exeext
11582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11583 (eval $ac_link) 2>conftest.er1
11584 ac_status=$?
11585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -f conftest.er1
11587 cat conftest.err >&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
11590 { ac_try='test -z "$ac_c_werror_flag"
11591 || test ! -s conftest.err'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; } &&
11597 { ac_try='test -s conftest$ac_exeext'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 echo "$as_me:$LINENO: result: OK" >&5
11604echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011605else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011606 echo "$as_me: failed program was:" >&5
11607sed 's/^/| /' conftest.$ac_ext >&5
11608
11609{ { echo "$as_me:$LINENO: error: FAILED" >&5
11610echo "$as_me: error: FAILED" >&2;}
11611 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011612fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011613rm -f conftest.err conftest.$ac_objext \
11614 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011615 olibs="$LIBS"
11616else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011617 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11618echo "${ECHO_T}empty: automatic terminal library selection" >&6
Bram Moolenaara1b5aa52006-10-10 09:41:28 +000011619 case "`uname -s 2>/dev/null`" in
11620 OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011621 *) tlibs="ncurses termlib termcap curses";;
11622 esac
11623 for libname in $tlibs; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011624
11625as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11626echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11627echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11628if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011630else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011631 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000011632LIBS="-l${libname} $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011633cat >conftest.$ac_ext <<_ACEOF
11634/* confdefs.h. */
11635_ACEOF
11636cat confdefs.h >>conftest.$ac_ext
11637cat >>conftest.$ac_ext <<_ACEOF
11638/* end confdefs.h. */
11639
Bram Moolenaar071d4272004-06-13 20:20:40 +000011640/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011641#ifdef __cplusplus
11642extern "C"
11643#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011644/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011645 builtin and then its argument prototype would still apply. */
11646char tgetent ();
11647int
11648main ()
11649{
11650tgetent ();
11651 ;
11652 return 0;
11653}
11654_ACEOF
11655rm -f conftest.$ac_objext conftest$ac_exeext
11656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11657 (eval $ac_link) 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } &&
11664 { ac_try='test -z "$ac_c_werror_flag"
11665 || test ! -s conftest.err'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; } &&
11671 { ac_try='test -s conftest$ac_exeext'
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; }; then
11677 eval "$as_ac_Lib=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011678else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011679 echo "$as_me: failed program was:" >&5
11680sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011681
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011682eval "$as_ac_Lib=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011683fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011684rm -f conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686LIBS=$ac_check_lib_save_LIBS
11687fi
11688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11689echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11690if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11691 cat >>confdefs.h <<_ACEOF
11692#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11693_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011694
11695 LIBS="-l${libname} $LIBS"
11696
Bram Moolenaar071d4272004-06-13 20:20:40 +000011697fi
11698
11699 if test "x$olibs" != "x$LIBS"; then
11700 if test "$cross_compiling" = yes; then
11701 res="FAIL"
11702else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011703 cat >conftest.$ac_ext <<_ACEOF
11704/* confdefs.h. */
11705_ACEOF
11706cat confdefs.h >>conftest.$ac_ext
11707cat >>conftest.$ac_ext <<_ACEOF
11708/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011709
11710#ifdef HAVE_TERMCAP_H
11711# include <termcap.h>
11712#endif
11713main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011714_ACEOF
11715rm -f conftest$ac_exeext
11716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11717 (eval $ac_link) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11723 ac_status=$?
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011726 res="OK"
11727else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011728 echo "$as_me: program exited with status $ac_status" >&5
11729echo "$as_me: failed program was:" >&5
11730sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011731
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011732( exit $ac_status )
11733res="FAIL"
11734fi
11735rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11736fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011737 if test "$res" = "OK"; then
11738 break
11739 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011740 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11741echo "${ECHO_T}$libname library is not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011742 LIBS="$olibs"
11743 fi
11744 done
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011745 if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011746 echo "$as_me:$LINENO: result: no terminal library found" >&5
11747echo "${ECHO_T}no terminal library found" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011748 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011749fi
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011750
11751if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011752 echo "$as_me:$LINENO: checking for tgetent()" >&5
11753echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11754 cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h. */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011760
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011761int
11762main ()
11763{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011764char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011765 ;
11766 return 0;
11767}
11768_ACEOF
11769rm -f conftest.$ac_objext conftest$ac_exeext
11770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11771 (eval $ac_link) 2>conftest.er1
11772 ac_status=$?
11773 grep -v '^ *+' conftest.er1 >conftest.err
11774 rm -f conftest.er1
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try='test -z "$ac_c_werror_flag"
11779 || test ! -s conftest.err'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest$ac_exeext'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }; then
11791 echo "$as_me:$LINENO: result: yes" >&5
11792echo "${ECHO_T}yes" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011793else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011794 echo "$as_me: failed program was:" >&5
11795sed 's/^/| /' conftest.$ac_ext >&5
11796
11797{ { echo "$as_me:$LINENO: error: NOT FOUND!
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011798 You need to install a terminal library; for example ncurses.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011799 Or specify the name of the library with --with-tlib." >&5
11800echo "$as_me: error: NOT FOUND!
11801 You need to install a terminal library; for example ncurses.
11802 Or specify the name of the library with --with-tlib." >&2;}
11803 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011804fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011805rm -f conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011807fi
11808
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011809echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11810echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011811if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011812 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11813echo "$as_me: error: failed to compile test program." >&2;}
11814 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011815else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011816 cat >conftest.$ac_ext <<_ACEOF
11817/* confdefs.h. */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011822
11823#ifdef HAVE_TERMCAP_H
11824# include <termcap.h>
11825#endif
11826main()
11827{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011828_ACEOF
11829rm -f conftest$ac_exeext
11830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11831 (eval $ac_link) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11841echo "${ECHO_T}no -- we are in termcap land" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011842else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011843 echo "$as_me: program exited with status $ac_status" >&5
11844echo "$as_me: failed program was:" >&5
11845sed 's/^/| /' conftest.$ac_ext >&5
11846
11847( exit $ac_status )
11848echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11849echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011850#define TERMINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011851_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011852
11853fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011854rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011855fi
11856
Bram Moolenaar071d4272004-06-13 20:20:40 +000011857if test "x$olibs" != "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011858 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11859echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011860 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011861 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11862echo "$as_me: error: failed to compile test program." >&2;}
11863 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011864else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011865 cat >conftest.$ac_ext <<_ACEOF
11866/* confdefs.h. */
11867_ACEOF
11868cat confdefs.h >>conftest.$ac_ext
11869cat >>conftest.$ac_ext <<_ACEOF
11870/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011871
11872#ifdef HAVE_TERMCAP_H
11873# include <termcap.h>
11874#endif
11875main()
11876{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011877_ACEOF
11878rm -f conftest$ac_exeext
11879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880 (eval $ac_link) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 echo "$as_me:$LINENO: result: zero" >&5
11890echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011891#define TGETENT_ZERO_ERR 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011892_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011893
11894else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011895 echo "$as_me: program exited with status $ac_status" >&5
11896echo "$as_me: failed program was:" >&5
11897sed 's/^/| /' conftest.$ac_ext >&5
11898
11899( exit $ac_status )
11900echo "$as_me:$LINENO: result: non-zero" >&5
11901echo "${ECHO_T}non-zero" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011902fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011903rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11904fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011905fi
11906
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011907echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11908echo $ECHO_N "checking whether termcap.h contains ospeed... $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#ifdef HAVE_TERMCAP_H
11917# include <termcap.h>
11918#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011919
11920int
11921main ()
11922{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011923ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011924 ;
11925 return 0;
11926}
11927_ACEOF
11928rm -f conftest.$ac_objext conftest$ac_exeext
11929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11930 (eval $ac_link) 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -z "$ac_c_werror_flag"
11938 || test ! -s conftest.err'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; } &&
11944 { ac_try='test -s conftest$ac_exeext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 echo "$as_me:$LINENO: result: yes" >&5
11951echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011952#define HAVE_OSPEED 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
11961 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11962echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11963 cat >conftest.$ac_ext <<_ACEOF
11964/* confdefs.h. */
11965_ACEOF
11966cat confdefs.h >>conftest.$ac_ext
11967cat >>conftest.$ac_ext <<_ACEOF
11968/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011969
11970#ifdef HAVE_TERMCAP_H
11971# include <termcap.h>
11972#endif
11973extern short ospeed;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011974
11975int
11976main ()
11977{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011978ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011979 ;
11980 return 0;
11981}
11982_ACEOF
11983rm -f conftest.$ac_objext conftest$ac_exeext
11984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11985 (eval $ac_link) 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest$ac_exeext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 echo "$as_me:$LINENO: result: yes" >&5
12006echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012007#define OSPEED_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012008_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012009
12010else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012011 echo "$as_me: failed program was:" >&5
12012sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012013
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012014echo "$as_me:$LINENO: result: no" >&5
12015echo "${ECHO_T}no" >&6
12016fi
12017rm -f conftest.err conftest.$ac_objext \
12018 conftest$ac_exeext conftest.$ac_ext
12019
12020fi
12021rm -f conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023
12024echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12025echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
12026cat >conftest.$ac_ext <<_ACEOF
12027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012032
12033#ifdef HAVE_TERMCAP_H
12034# include <termcap.h>
12035#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012036
12037int
12038main ()
12039{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012040if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012041 ;
12042 return 0;
12043}
12044_ACEOF
12045rm -f conftest.$ac_objext conftest$ac_exeext
12046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12047 (eval $ac_link) 2>conftest.er1
12048 ac_status=$?
12049 grep -v '^ *+' conftest.er1 >conftest.err
12050 rm -f conftest.er1
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } &&
12054 { ac_try='test -z "$ac_c_werror_flag"
12055 || test ! -s conftest.err'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest$ac_exeext'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 echo "$as_me:$LINENO: result: yes" >&5
12068echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012069#define HAVE_UP_BC_PC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012070_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012071
12072else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012073 echo "$as_me: failed program was:" >&5
12074sed 's/^/| /' conftest.$ac_ext >&5
12075
12076echo "$as_me:$LINENO: result: no" >&5
12077echo "${ECHO_T}no" >&6
12078 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12079echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12080 cat >conftest.$ac_ext <<_ACEOF
12081/* confdefs.h. */
12082_ACEOF
12083cat confdefs.h >>conftest.$ac_ext
12084cat >>conftest.$ac_ext <<_ACEOF
12085/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012086
12087#ifdef HAVE_TERMCAP_H
12088# include <termcap.h>
12089#endif
12090extern char *UP, *BC, PC;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012091
12092int
12093main ()
12094{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012095if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012096 ;
12097 return 0;
12098}
12099_ACEOF
12100rm -f conftest.$ac_objext conftest$ac_exeext
12101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12102 (eval $ac_link) 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest$ac_exeext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 echo "$as_me:$LINENO: result: yes" >&5
12123echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012124#define UP_BC_PC_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012125_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012126
12127else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012128 echo "$as_me: failed program was:" >&5
12129sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012130
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012131echo "$as_me:$LINENO: result: no" >&5
12132echo "${ECHO_T}no" >&6
12133fi
12134rm -f conftest.err conftest.$ac_objext \
12135 conftest$ac_exeext conftest.$ac_ext
12136
12137fi
12138rm -f conftest.err conftest.$ac_objext \
12139 conftest$ac_exeext conftest.$ac_ext
12140
12141echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12142echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12143cat >conftest.$ac_ext <<_ACEOF
12144/* confdefs.h. */
12145_ACEOF
12146cat confdefs.h >>conftest.$ac_ext
12147cat >>conftest.$ac_ext <<_ACEOF
12148/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012149
12150#ifdef HAVE_TERMCAP_H
12151# include <termcap.h>
12152#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012153
12154int
12155main ()
12156{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012157extern int xx(); tputs("test", 1, (outfuntype)xx)
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012158 ;
12159 return 0;
12160}
12161_ACEOF
12162rm -f conftest.$ac_objext
12163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12164 (eval $ac_compile) 2>conftest.er1
12165 ac_status=$?
12166 grep -v '^ *+' conftest.er1 >conftest.err
12167 rm -f conftest.er1
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
12171 { ac_try='test -z "$ac_c_werror_flag"
12172 || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12175 ac_status=$?
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest.$ac_objext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 echo "$as_me:$LINENO: result: yes" >&5
12185echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012186#define HAVE_OUTFUNTYPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012187_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012188
12189else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012190 echo "$as_me: failed program was:" >&5
12191sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012192
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012193echo "$as_me:$LINENO: result: no" >&5
12194echo "${ECHO_T}no" >&6
12195fi
12196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12197
12198echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12199echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12200cat >conftest.$ac_ext <<_ACEOF
12201/* confdefs.h. */
12202_ACEOF
12203cat confdefs.h >>conftest.$ac_ext
12204cat >>conftest.$ac_ext <<_ACEOF
12205/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012206
12207#include <sys/types.h>
12208#include <sys/time.h>
12209#include <sys/select.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012210int
12211main ()
12212{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012213
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012214 ;
12215 return 0;
12216}
12217_ACEOF
12218rm -f conftest.$ac_objext
12219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12220 (eval $ac_compile) 2>conftest.er1
12221 ac_status=$?
12222 grep -v '^ *+' conftest.er1 >conftest.err
12223 rm -f conftest.er1
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } &&
12227 { ac_try='test -z "$ac_c_werror_flag"
12228 || test ! -s conftest.err'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; } &&
12234 { ac_try='test -s conftest.$ac_objext'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12237 ac_status=$?
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 echo "$as_me:$LINENO: result: yes" >&5
12241echo "${ECHO_T}yes" >&6
12242 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012243#define SYS_SELECT_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012244_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012245
12246else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012247 echo "$as_me: failed program was:" >&5
12248sed 's/^/| /' conftest.$ac_ext >&5
12249
12250echo "$as_me:$LINENO: result: no" >&5
12251echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012252fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012254
12255
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012256echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12257echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012258if test -r /dev/ptc; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012259 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012260#define HAVE_DEV_PTC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012261_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012262
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012263 echo "$as_me:$LINENO: result: yes" >&5
12264echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012265else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012266 echo "$as_me:$LINENO: result: no" >&5
12267echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012268fi
12269
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012270echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12271echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012272if test -c /dev/ptmx ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012273 cat >conftest.$ac_ext <<_ACEOF
12274/* confdefs.h. */
12275_ACEOF
12276cat confdefs.h >>conftest.$ac_ext
12277cat >>conftest.$ac_ext <<_ACEOF
12278/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012279
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012280int
12281main ()
12282{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012283ptsname(0);grantpt(0);unlockpt(0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012284 ;
12285 return 0;
12286}
12287_ACEOF
12288rm -f conftest.$ac_objext conftest$ac_exeext
12289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290 (eval $ac_link) 2>conftest.er1
12291 ac_status=$?
12292 grep -v '^ *+' conftest.er1 >conftest.err
12293 rm -f conftest.er1
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -z "$ac_c_werror_flag"
12298 || test ! -s conftest.err'
12299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300 (eval $ac_try) 2>&5
12301 ac_status=$?
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; } &&
12304 { ac_try='test -s conftest$ac_exeext'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12307 ac_status=$?
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12310 echo "$as_me:$LINENO: result: yes" >&5
12311echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012312#define HAVE_SVR4_PTYS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012313_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012314
12315else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012316 echo "$as_me: failed program was:" >&5
12317sed 's/^/| /' conftest.$ac_ext >&5
12318
12319echo "$as_me:$LINENO: result: no" >&5
12320echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012321fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012322rm -f conftest.err conftest.$ac_objext \
12323 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012324else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012325 echo "$as_me:$LINENO: result: no" >&5
12326echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012327fi
12328
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012329echo "$as_me:$LINENO: checking for ptyranges" >&5
12330echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012331if test -d /dev/ptym ; then
12332 pdir='/dev/ptym'
12333else
12334 pdir='/dev'
12335fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012336cat >conftest.$ac_ext <<_ACEOF
12337/* confdefs.h. */
12338_ACEOF
12339cat confdefs.h >>conftest.$ac_ext
12340cat >>conftest.$ac_ext <<_ACEOF
12341/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012342#ifdef M_UNIX
12343 yes;
12344#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012345
12346_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012347if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012348 $EGREP "yes" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012349 ptys=`echo /dev/ptyp??`
12350else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012351 ptys=`echo $pdir/pty??`
12352fi
12353rm -f conftest*
12354
12355if test "$ptys" != "$pdir/pty??" ; then
12356 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12357 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012358 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012359#define PTYRANGE0 "$p0"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012360_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012361
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012362 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012363#define PTYRANGE1 "$p1"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012364_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012365
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012366 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12367echo "${ECHO_T}$p0 / $p1" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012368else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012369 echo "$as_me:$LINENO: result: don't know" >&5
12370echo "${ECHO_T}don't know" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012371fi
12372
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012373echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12374echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012375rm -f conftest_grp
12376if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012377 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12378echo "$as_me: error: failed to compile test program" >&2;}
12379 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012380else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012381 cat >conftest.$ac_ext <<_ACEOF
12382/* confdefs.h. */
12383_ACEOF
12384cat confdefs.h >>conftest.$ac_ext
12385cat >>conftest.$ac_ext <<_ACEOF
12386/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012387
12388#include <sys/types.h>
12389#include <sys/stat.h>
12390#include <stdio.h>
12391main()
12392{
12393 struct stat sb;
12394 char *x,*ttyname();
12395 int om, m;
12396 FILE *fp;
12397
12398 if (!(x = ttyname(0))) exit(1);
12399 if (stat(x, &sb)) exit(1);
12400 om = sb.st_mode;
12401 if (om & 002) exit(0);
12402 m = system("mesg y");
12403 if (m == -1 || m == 127) exit(1);
12404 if (stat(x, &sb)) exit(1);
12405 m = sb.st_mode;
12406 if (chmod(x, om)) exit(1);
12407 if (m & 002) exit(0);
12408 if (sb.st_gid == getgid()) exit(1);
12409 if (!(fp=fopen("conftest_grp", "w")))
12410 exit(1);
12411 fprintf(fp, "%d\n", sb.st_gid);
12412 fclose(fp);
12413 exit(0);
12414}
12415
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012416_ACEOF
12417rm -f conftest$ac_exeext
12418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419 (eval $ac_link) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; }; then
12428
Bram Moolenaar071d4272004-06-13 20:20:40 +000012429 if test -f conftest_grp; then
12430 ptygrp=`cat conftest_grp`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012431 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12432echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12433 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012434#define PTYMODE 0620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012435_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012436
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012437 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012438#define PTYGROUP $ptygrp
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012439_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012440
12441 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012442 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12443echo "${ECHO_T}ptys are world accessable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012444 fi
12445
12446else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012447 echo "$as_me: program exited with status $ac_status" >&5
12448echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012450
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012451( exit $ac_status )
12452echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12453echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12454fi
12455rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12456fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012457rm -f conftest_grp
12458
12459
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012460echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12461echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12462if test "${ac_cv_type_signal+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012464else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012465 cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h. */
12467_ACEOF
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012471#include <sys/types.h>
12472#include <signal.h>
12473#ifdef signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012474# undef signal
Bram Moolenaar071d4272004-06-13 20:20:40 +000012475#endif
12476#ifdef __cplusplus
12477extern "C" void (*signal (int, void (*)(int)))(int);
12478#else
12479void (*signal ()) ();
12480#endif
12481
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012482int
12483main ()
12484{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012485int i;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012486 ;
12487 return 0;
12488}
12489_ACEOF
12490rm -f conftest.$ac_objext
12491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12492 (eval $ac_compile) 2>conftest.er1
12493 ac_status=$?
12494 grep -v '^ *+' conftest.er1 >conftest.err
12495 rm -f conftest.er1
12496 cat conftest.err >&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } &&
12499 { ac_try='test -z "$ac_c_werror_flag"
12500 || test ! -s conftest.err'
12501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502 (eval $ac_try) 2>&5
12503 ac_status=$?
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); }; } &&
12506 { ac_try='test -s conftest.$ac_objext'
12507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12509 ac_status=$?
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012512 ac_cv_type_signal=void
12513else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012514 echo "$as_me: failed program was:" >&5
12515sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012516
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012517ac_cv_type_signal=int
12518fi
12519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12520fi
12521echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12522echo "${ECHO_T}$ac_cv_type_signal" >&6
12523
12524cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012525#define RETSIGTYPE $ac_cv_type_signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012526_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012527
12528
12529
12530if test $ac_cv_type_signal = void; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012531 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012532#define SIGRETURN return
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012533_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012534
12535else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012536 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012537#define SIGRETURN return 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012538_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012539
12540fi
12541
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012542echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12543echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12544cat >conftest.$ac_ext <<_ACEOF
12545/* confdefs.h. */
12546_ACEOF
12547cat confdefs.h >>conftest.$ac_ext
12548cat >>conftest.$ac_ext <<_ACEOF
12549/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012550
12551#include <signal.h>
12552test_sig()
12553{
12554 struct sigcontext *scont;
12555 scont = (struct sigcontext *)0;
12556 return 1;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012557}
12558int
12559main ()
12560{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012561
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012562 ;
12563 return 0;
12564}
12565_ACEOF
12566rm -f conftest.$ac_objext
12567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12568 (eval $ac_compile) 2>conftest.er1
12569 ac_status=$?
12570 grep -v '^ *+' conftest.er1 >conftest.err
12571 rm -f conftest.er1
12572 cat conftest.err >&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -z "$ac_c_werror_flag"
12576 || test ! -s conftest.err'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; } &&
12582 { ac_try='test -s conftest.$ac_objext'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12585 ac_status=$?
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12588 echo "$as_me:$LINENO: result: yes" >&5
12589echo "${ECHO_T}yes" >&6
12590 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012591#define HAVE_SIGCONTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012592_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012593
12594else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012595 echo "$as_me: failed program was:" >&5
12596sed 's/^/| /' conftest.$ac_ext >&5
12597
12598echo "$as_me:$LINENO: result: no" >&5
12599echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012600fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012602
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012603echo "$as_me:$LINENO: checking getcwd implementation" >&5
12604echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012605if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012606 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12607echo "$as_me: error: failed to compile test program" >&2;}
12608 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012609else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012610 cat >conftest.$ac_ext <<_ACEOF
12611/* confdefs.h. */
12612_ACEOF
12613cat confdefs.h >>conftest.$ac_ext
12614cat >>conftest.$ac_ext <<_ACEOF
12615/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012616
12617char *dagger[] = { "IFS=pwd", 0 };
12618main()
12619{
12620 char buffer[500];
12621 extern char **environ;
12622 environ = dagger;
12623 return getcwd(buffer, 500) ? 0 : 1;
12624}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012625_ACEOF
12626rm -f conftest$ac_exeext
12627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12628 (eval $ac_link) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 echo "$as_me:$LINENO: result: it is usable" >&5
12638echo "${ECHO_T}it is usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012639else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012640 echo "$as_me: program exited with status $ac_status" >&5
12641echo "$as_me: failed program was:" >&5
12642sed 's/^/| /' conftest.$ac_ext >&5
12643
12644( exit $ac_status )
12645echo "$as_me:$LINENO: result: it stinks" >&5
12646echo "${ECHO_T}it stinks" >&6
12647 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012648#define BAD_GETCWD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012649_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012650
12651fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012652rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012653fi
12654
12655
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
Bram Moolenaar071d4272004-06-13 20:20:40 +000012701for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12702 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12703 memset nanosleep opendir putenv qsort readlink select setenv \
12704 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000012705 sigvec strcasecmp strerror strftime stricmp strncasecmp \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000012706 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12707 usleep utime utimes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012708do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012709as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12710echo "$as_me:$LINENO: checking for $ac_func" >&5
12711echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12712if eval "test \"\${$as_ac_var+set}\" = set"; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012714else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012715 cat >conftest.$ac_ext <<_ACEOF
12716/* confdefs.h. */
12717_ACEOF
12718cat confdefs.h >>conftest.$ac_ext
12719cat >>conftest.$ac_ext <<_ACEOF
12720/* end confdefs.h. */
12721/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12723#define $ac_func innocuous_$ac_func
12724
Bram Moolenaar071d4272004-06-13 20:20:40 +000012725/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012726 which can conflict with char $ac_func (); below.
12727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12728 <limits.h> exists even on freestanding compilers. */
12729
12730#ifdef __STDC__
12731# include <limits.h>
12732#else
12733# include <assert.h>
12734#endif
12735
12736#undef $ac_func
12737
Bram Moolenaar071d4272004-06-13 20:20:40 +000012738/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012739#ifdef __cplusplus
12740extern "C"
12741{
12742#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012743/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012744 builtin and then its argument prototype would still apply. */
12745char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000012746/* The GNU C library defines this for functions which it implements
12747 to always fail with ENOSYS. Some functions are actually named
12748 something starting with __ and the normal name is an alias. */
12749#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12750choke me
12751#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012752char (*f) () = $ac_func;
12753#endif
12754#ifdef __cplusplus
12755}
Bram Moolenaar071d4272004-06-13 20:20:40 +000012756#endif
12757
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012758int
12759main ()
12760{
12761return f != $ac_func;
12762 ;
12763 return 0;
12764}
12765_ACEOF
12766rm -f conftest.$ac_objext conftest$ac_exeext
12767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768 (eval $ac_link) 2>conftest.er1
12769 ac_status=$?
12770 grep -v '^ *+' conftest.er1 >conftest.err
12771 rm -f conftest.er1
12772 cat conftest.err >&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } &&
12775 { ac_try='test -z "$ac_c_werror_flag"
12776 || test ! -s conftest.err'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest$ac_exeext'
12783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12784 (eval $ac_try) 2>&5
12785 ac_status=$?
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); }; }; then
12788 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012789else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012790 echo "$as_me: failed program was:" >&5
12791sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012792
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012793eval "$as_ac_var=no"
12794fi
12795rm -f conftest.err conftest.$ac_objext \
12796 conftest$ac_exeext conftest.$ac_ext
12797fi
12798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12799echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12800if test `eval echo '${'$as_ac_var'}'` = yes; then
12801 cat >>confdefs.h <<_ACEOF
12802#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12803_ACEOF
12804
Bram Moolenaar071d4272004-06-13 20:20:40 +000012805fi
12806done
12807
12808
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012809echo "$as_me:$LINENO: checking for st_blksize" >&5
12810echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12811cat >conftest.$ac_ext <<_ACEOF
12812/* confdefs.h. */
12813_ACEOF
12814cat confdefs.h >>conftest.$ac_ext
12815cat >>conftest.$ac_ext <<_ACEOF
12816/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012817#include <sys/types.h>
12818#include <sys/stat.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012819int
12820main ()
12821{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012822 struct stat st;
12823 int n;
12824
12825 stat("/", &st);
12826 n = (int)st.st_blksize;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012827 ;
12828 return 0;
12829}
12830_ACEOF
12831rm -f conftest.$ac_objext
12832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12833 (eval $ac_compile) 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } &&
12840 { ac_try='test -z "$ac_c_werror_flag"
12841 || test ! -s conftest.err'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; } &&
12847 { ac_try='test -s conftest.$ac_objext'
12848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12849 (eval $ac_try) 2>&5
12850 ac_status=$?
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); }; }; then
12853 echo "$as_me:$LINENO: result: yes" >&5
12854echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012855#define HAVE_ST_BLKSIZE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012856_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012857
12858else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012859 echo "$as_me: failed program was:" >&5
12860sed 's/^/| /' conftest.$ac_ext >&5
12861
12862echo "$as_me:$LINENO: result: no" >&5
12863echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012864fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012866
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012867echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12868echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012869if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012870 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12871echo "$as_me: error: failed to compile test program" >&2;}
12872 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012873else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012874 cat >conftest.$ac_ext <<_ACEOF
12875/* confdefs.h. */
12876_ACEOF
12877cat confdefs.h >>conftest.$ac_ext
12878cat >>conftest.$ac_ext <<_ACEOF
12879/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012880#include <sys/types.h>
12881#include <sys/stat.h>
12882main() {struct stat st; exit(stat("configure/", &st) != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012883_ACEOF
12884rm -f conftest$ac_exeext
12885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12886 (eval $ac_link) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12892 ac_status=$?
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12895 echo "$as_me:$LINENO: result: yes" >&5
12896echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012897#define STAT_IGNORES_SLASH 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012898_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012899
12900else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012901 echo "$as_me: program exited with status $ac_status" >&5
12902echo "$as_me: failed program was:" >&5
12903sed 's/^/| /' conftest.$ac_ext >&5
12904
12905( exit $ac_status )
12906echo "$as_me:$LINENO: result: no" >&5
12907echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012908fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012909rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012910fi
12911
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012912echo "$as_me:$LINENO: checking for iconv_open()" >&5
12913echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012914save_LIBS="$LIBS"
12915LIBS="$LIBS -liconv"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012916cat >conftest.$ac_ext <<_ACEOF
12917/* confdefs.h. */
12918_ACEOF
12919cat confdefs.h >>conftest.$ac_ext
12920cat >>conftest.$ac_ext <<_ACEOF
12921/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012922
12923#ifdef HAVE_ICONV_H
12924# include <iconv.h>
12925#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012926
12927int
12928main ()
12929{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012930iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012931 ;
12932 return 0;
12933}
12934_ACEOF
12935rm -f conftest.$ac_objext conftest$ac_exeext
12936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12937 (eval $ac_link) 2>conftest.er1
12938 ac_status=$?
12939 grep -v '^ *+' conftest.er1 >conftest.err
12940 rm -f conftest.er1
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } &&
12944 { ac_try='test -z "$ac_c_werror_flag"
12945 || test ! -s conftest.err'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; } &&
12951 { ac_try='test -s conftest$ac_exeext'
12952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12957 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12958echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012959#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012960_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012961
12962else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012963 echo "$as_me: failed program was:" >&5
12964sed 's/^/| /' conftest.$ac_ext >&5
12965
12966LIBS="$save_LIBS"
12967 cat >conftest.$ac_ext <<_ACEOF
12968/* confdefs.h. */
12969_ACEOF
12970cat confdefs.h >>conftest.$ac_ext
12971cat >>conftest.$ac_ext <<_ACEOF
12972/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012973
12974#ifdef HAVE_ICONV_H
12975# include <iconv.h>
12976#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012977
12978int
12979main ()
12980{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012981iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012982 ;
12983 return 0;
12984}
12985_ACEOF
12986rm -f conftest.$ac_objext conftest$ac_exeext
12987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12988 (eval $ac_link) 2>conftest.er1
12989 ac_status=$?
12990 grep -v '^ *+' conftest.er1 >conftest.err
12991 rm -f conftest.er1
12992 cat conftest.err >&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -z "$ac_c_werror_flag"
12996 || test ! -s conftest.err'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest$ac_exeext'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 echo "$as_me:$LINENO: result: yes" >&5
13009echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013010#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013011_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013012
13013else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013014 echo "$as_me: failed program was:" >&5
13015sed 's/^/| /' conftest.$ac_ext >&5
13016
13017echo "$as_me:$LINENO: result: no" >&5
13018echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013019fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013020rm -f conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013022fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013023rm -f conftest.err conftest.$ac_objext \
13024 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013025
13026
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013027echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
13028echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
13029cat >conftest.$ac_ext <<_ACEOF
13030/* confdefs.h. */
13031_ACEOF
13032cat confdefs.h >>conftest.$ac_ext
13033cat >>conftest.$ac_ext <<_ACEOF
13034/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013035
13036#ifdef HAVE_LANGINFO_H
13037# include <langinfo.h>
13038#endif
13039
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013040int
13041main ()
13042{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013043char *cs = nl_langinfo(CODESET);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013044 ;
13045 return 0;
13046}
13047_ACEOF
13048rm -f conftest.$ac_objext conftest$ac_exeext
13049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050 (eval $ac_link) 2>conftest.er1
13051 ac_status=$?
13052 grep -v '^ *+' conftest.er1 >conftest.err
13053 rm -f conftest.er1
13054 cat conftest.err >&5
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); } &&
13057 { ac_try='test -z "$ac_c_werror_flag"
13058 || test ! -s conftest.err'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; } &&
13064 { ac_try='test -s conftest$ac_exeext'
13065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066 (eval $ac_try) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; }; then
13070 echo "$as_me:$LINENO: result: yes" >&5
13071echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013072#define HAVE_NL_LANGINFO_CODESET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013073_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013074
13075else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013076 echo "$as_me: failed program was:" >&5
13077sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013078
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013079echo "$as_me:$LINENO: result: no" >&5
13080echo "${ECHO_T}no" >&6
13081fi
13082rm -f conftest.err conftest.$ac_objext \
13083 conftest$ac_exeext conftest.$ac_ext
13084
13085echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13086echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013087# Check whether --enable-acl or --disable-acl was given.
13088if test "${enable_acl+set}" = set; then
13089 enableval="$enable_acl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013090
Bram Moolenaar071d4272004-06-13 20:20:40 +000013091else
13092 enable_acl="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013093fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013094if test "$enable_acl" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013095echo "$as_me:$LINENO: result: no" >&5
13096echo "${ECHO_T}no" >&6
13097echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13098echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13099if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013101else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013102 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013103LIBS="-lposix1e $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013104cat >conftest.$ac_ext <<_ACEOF
13105/* confdefs.h. */
13106_ACEOF
13107cat confdefs.h >>conftest.$ac_ext
13108cat >>conftest.$ac_ext <<_ACEOF
13109/* end confdefs.h. */
13110
Bram Moolenaar071d4272004-06-13 20:20:40 +000013111/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013112#ifdef __cplusplus
13113extern "C"
13114#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013115/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013116 builtin and then its argument prototype would still apply. */
13117char acl_get_file ();
13118int
13119main ()
13120{
13121acl_get_file ();
13122 ;
13123 return 0;
13124}
13125_ACEOF
13126rm -f conftest.$ac_objext conftest$ac_exeext
13127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13128 (eval $ac_link) 2>conftest.er1
13129 ac_status=$?
13130 grep -v '^ *+' conftest.er1 >conftest.err
13131 rm -f conftest.er1
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } &&
13135 { ac_try='test -z "$ac_c_werror_flag"
13136 || test ! -s conftest.err'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_cv_lib_posix1e_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013149else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013150 echo "$as_me: failed program was:" >&5
13151sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013152
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013153ac_cv_lib_posix1e_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013154fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013155rm -f conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157LIBS=$ac_check_lib_save_LIBS
13158fi
13159echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13160echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13161if test $ac_cv_lib_posix1e_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013162 LIBS="$LIBS -lposix1e"
13163else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013164 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13165echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13166if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13167 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013168else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013169 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013170LIBS="-lacl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013171cat >conftest.$ac_ext <<_ACEOF
13172/* confdefs.h. */
13173_ACEOF
13174cat confdefs.h >>conftest.$ac_ext
13175cat >>conftest.$ac_ext <<_ACEOF
13176/* end confdefs.h. */
13177
Bram Moolenaar071d4272004-06-13 20:20:40 +000013178/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013179#ifdef __cplusplus
13180extern "C"
13181#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013182/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013183 builtin and then its argument prototype would still apply. */
13184char acl_get_file ();
13185int
13186main ()
13187{
13188acl_get_file ();
13189 ;
13190 return 0;
13191}
13192_ACEOF
13193rm -f conftest.$ac_objext conftest$ac_exeext
13194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13195 (eval $ac_link) 2>conftest.er1
13196 ac_status=$?
13197 grep -v '^ *+' conftest.er1 >conftest.err
13198 rm -f conftest.er1
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -z "$ac_c_werror_flag"
13203 || test ! -s conftest.err'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; } &&
13209 { ac_try='test -s conftest$ac_exeext'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13212 ac_status=$?
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 ac_cv_lib_acl_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013216else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013217 echo "$as_me: failed program was:" >&5
13218sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013219
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013220ac_cv_lib_acl_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013221fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013222rm -f conftest.err conftest.$ac_objext \
13223 conftest$ac_exeext conftest.$ac_ext
13224LIBS=$ac_check_lib_save_LIBS
13225fi
13226echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13227echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13228if test $ac_cv_lib_acl_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013229 LIBS="$LIBS -lacl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013230 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13231echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13232if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013234else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013235 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013236LIBS="-lattr $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013237cat >conftest.$ac_ext <<_ACEOF
13238/* confdefs.h. */
13239_ACEOF
13240cat confdefs.h >>conftest.$ac_ext
13241cat >>conftest.$ac_ext <<_ACEOF
13242/* end confdefs.h. */
13243
Bram Moolenaar071d4272004-06-13 20:20:40 +000013244/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013245#ifdef __cplusplus
13246extern "C"
13247#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013248/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013249 builtin and then its argument prototype would still apply. */
13250char fgetxattr ();
13251int
13252main ()
13253{
13254fgetxattr ();
13255 ;
13256 return 0;
13257}
13258_ACEOF
13259rm -f conftest.$ac_objext conftest$ac_exeext
13260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13261 (eval $ac_link) 2>conftest.er1
13262 ac_status=$?
13263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
13268 { ac_try='test -z "$ac_c_werror_flag"
13269 || test ! -s conftest.err'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13272 ac_status=$?
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; } &&
13275 { ac_try='test -s conftest$ac_exeext'
13276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13278 ac_status=$?
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13281 ac_cv_lib_attr_fgetxattr=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013282else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013283 echo "$as_me: failed program was:" >&5
13284sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013285
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013286ac_cv_lib_attr_fgetxattr=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013287fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013288rm -f conftest.err conftest.$ac_objext \
13289 conftest$ac_exeext conftest.$ac_ext
13290LIBS=$ac_check_lib_save_LIBS
13291fi
13292echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13293echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13294if test $ac_cv_lib_attr_fgetxattr = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013295 LIBS="$LIBS -lattr"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013296fi
13297
Bram Moolenaar071d4272004-06-13 20:20:40 +000013298fi
13299
13300fi
13301
13302
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013303echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13304echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13305cat >conftest.$ac_ext <<_ACEOF
13306/* confdefs.h. */
13307_ACEOF
13308cat confdefs.h >>conftest.$ac_ext
13309cat >>conftest.$ac_ext <<_ACEOF
13310/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013311
13312#include <sys/types.h>
13313#ifdef HAVE_SYS_ACL_H
13314# include <sys/acl.h>
13315#endif
13316acl_t acl;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013317int
13318main ()
13319{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013320acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13321 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13322 acl_free(acl);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013323 ;
13324 return 0;
13325}
13326_ACEOF
13327rm -f conftest.$ac_objext conftest$ac_exeext
13328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13329 (eval $ac_link) 2>conftest.er1
13330 ac_status=$?
13331 grep -v '^ *+' conftest.er1 >conftest.err
13332 rm -f conftest.er1
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } &&
13336 { ac_try='test -z "$ac_c_werror_flag"
13337 || test ! -s conftest.err'
13338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13339 (eval $ac_try) 2>&5
13340 ac_status=$?
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; } &&
13343 { ac_try='test -s conftest$ac_exeext'
13344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 (eval $ac_try) 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; }; then
13349 echo "$as_me:$LINENO: result: yes" >&5
13350echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013351#define HAVE_POSIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013352_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013353
13354else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013355 echo "$as_me: failed program was:" >&5
13356sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013357
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013358echo "$as_me:$LINENO: result: no" >&5
13359echo "${ECHO_T}no" >&6
13360fi
13361rm -f conftest.err conftest.$ac_objext \
13362 conftest$ac_exeext conftest.$ac_ext
13363
13364echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13365echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13366cat >conftest.$ac_ext <<_ACEOF
13367/* confdefs.h. */
13368_ACEOF
13369cat confdefs.h >>conftest.$ac_ext
13370cat >>conftest.$ac_ext <<_ACEOF
13371/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013372
13373#ifdef HAVE_SYS_ACL_H
13374# include <sys/acl.h>
13375#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013376int
13377main ()
13378{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013379acl("foo", GETACLCNT, 0, NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013380
13381 ;
13382 return 0;
13383}
13384_ACEOF
13385rm -f conftest.$ac_objext conftest$ac_exeext
13386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13387 (eval $ac_link) 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag"
13395 || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest$ac_exeext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 echo "$as_me:$LINENO: result: yes" >&5
13408echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013409#define HAVE_SOLARIS_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013410_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013411
13412else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013413 echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013415
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013416echo "$as_me:$LINENO: result: no" >&5
13417echo "${ECHO_T}no" >&6
13418fi
13419rm -f conftest.err conftest.$ac_objext \
13420 conftest$ac_exeext conftest.$ac_ext
13421
13422echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13423echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13424cat >conftest.$ac_ext <<_ACEOF
13425/* confdefs.h. */
13426_ACEOF
13427cat confdefs.h >>conftest.$ac_ext
13428cat >>conftest.$ac_ext <<_ACEOF
13429/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013430
13431#ifdef HAVE_SYS_ACL_H
13432# include <sys/acl.h>
13433#endif
13434#ifdef HAVE_SYS_ACCESS_H
13435# include <sys/access.h>
13436#endif
13437#define _ALL_SOURCE
13438
13439#include <sys/stat.h>
13440
13441int aclsize;
13442struct acl *aclent;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013443int
13444main ()
13445{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013446aclsize = sizeof(struct acl);
13447 aclent = (void *)malloc(aclsize);
13448 statacl("foo", STX_NORMAL, aclent, aclsize);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013449
13450 ;
13451 return 0;
13452}
13453_ACEOF
13454rm -f conftest.$ac_objext conftest$ac_exeext
13455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13456 (eval $ac_link) 2>conftest.er1
13457 ac_status=$?
13458 grep -v '^ *+' conftest.er1 >conftest.err
13459 rm -f conftest.er1
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
13463 { ac_try='test -z "$ac_c_werror_flag"
13464 || test ! -s conftest.err'
13465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13466 (eval $ac_try) 2>&5
13467 ac_status=$?
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); }; } &&
13470 { ac_try='test -s conftest$ac_exeext'
13471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13472 (eval $ac_try) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; }; then
13476 echo "$as_me:$LINENO: result: yes" >&5
13477echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013478#define HAVE_AIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013479_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013480
13481else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013482 echo "$as_me: failed program was:" >&5
13483sed 's/^/| /' conftest.$ac_ext >&5
13484
13485echo "$as_me:$LINENO: result: no" >&5
13486echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013487fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013488rm -f conftest.err conftest.$ac_objext \
13489 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013490else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013491 echo "$as_me:$LINENO: result: yes" >&5
13492echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013493fi
13494
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013495echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13496echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013497# Check whether --enable-gpm or --disable-gpm was given.
13498if test "${enable_gpm+set}" = set; then
13499 enableval="$enable_gpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013500
Bram Moolenaar071d4272004-06-13 20:20:40 +000013501else
13502 enable_gpm="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013503fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013504
13505if test "$enable_gpm" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013506 echo "$as_me:$LINENO: result: no" >&5
13507echo "${ECHO_T}no" >&6
13508 echo "$as_me:$LINENO: checking for gpm" >&5
13509echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13510if test "${vi_cv_have_gpm+set}" = set; then
13511 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013512else
13513 olibs="$LIBS" ; LIBS="-lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013514 cat >conftest.$ac_ext <<_ACEOF
13515/* confdefs.h. */
13516_ACEOF
13517cat confdefs.h >>conftest.$ac_ext
13518cat >>conftest.$ac_ext <<_ACEOF
13519/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013520#include <gpm.h>
13521 #include <linux/keyboard.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013522int
13523main ()
13524{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013525Gpm_GetLibVersion(NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013526 ;
13527 return 0;
13528}
13529_ACEOF
13530rm -f conftest.$ac_objext conftest$ac_exeext
13531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13532 (eval $ac_link) 2>conftest.er1
13533 ac_status=$?
13534 grep -v '^ *+' conftest.er1 >conftest.err
13535 rm -f conftest.er1
13536 cat conftest.err >&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } &&
13539 { ac_try='test -z "$ac_c_werror_flag"
13540 || test ! -s conftest.err'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; } &&
13546 { ac_try='test -s conftest$ac_exeext'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013552 vi_cv_have_gpm=yes
13553else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013554 echo "$as_me: failed program was:" >&5
13555sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013556
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013557vi_cv_have_gpm=no
13558fi
13559rm -f conftest.err conftest.$ac_objext \
13560 conftest$ac_exeext conftest.$ac_ext
13561 LIBS="$olibs"
13562
13563fi
13564echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13565echo "${ECHO_T}$vi_cv_have_gpm" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013566 if test $vi_cv_have_gpm = yes; then
13567 LIBS="$LIBS -lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013568 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013569#define HAVE_GPM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013570_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013571
13572 fi
13573else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013574 echo "$as_me:$LINENO: result: yes" >&5
13575echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013576fi
13577
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013578echo "$as_me:$LINENO: checking for rename" >&5
13579echo $ECHO_N "checking for rename... $ECHO_C" >&6
13580cat >conftest.$ac_ext <<_ACEOF
13581/* confdefs.h. */
13582_ACEOF
13583cat confdefs.h >>conftest.$ac_ext
13584cat >>conftest.$ac_ext <<_ACEOF
13585/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013586#include <stdio.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013587int
13588main ()
13589{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013590rename("this", "that")
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013591 ;
13592 return 0;
13593}
13594_ACEOF
13595rm -f conftest.$ac_objext conftest$ac_exeext
13596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13597 (eval $ac_link) 2>conftest.er1
13598 ac_status=$?
13599 grep -v '^ *+' conftest.er1 >conftest.err
13600 rm -f conftest.er1
13601 cat conftest.err >&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -z "$ac_c_werror_flag"
13605 || test ! -s conftest.err'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest$ac_exeext'
13612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13613 (eval $ac_try) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }; }; then
13617 echo "$as_me:$LINENO: result: yes" >&5
13618echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013619#define HAVE_RENAME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013620_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013621
13622else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013623 echo "$as_me: failed program was:" >&5
13624sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013625
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013626echo "$as_me:$LINENO: result: no" >&5
13627echo "${ECHO_T}no" >&6
13628fi
13629rm -f conftest.err conftest.$ac_objext \
13630 conftest$ac_exeext conftest.$ac_ext
13631
13632echo "$as_me:$LINENO: checking for sysctl" >&5
13633echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13634cat >conftest.$ac_ext <<_ACEOF
13635/* confdefs.h. */
13636_ACEOF
13637cat confdefs.h >>conftest.$ac_ext
13638cat >>conftest.$ac_ext <<_ACEOF
13639/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013640#include <sys/types.h>
13641#include <sys/sysctl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013642int
13643main ()
13644{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013645 int mib[2], r;
13646 size_t len;
13647
13648 mib[0] = CTL_HW;
13649 mib[1] = HW_USERMEM;
13650 len = sizeof(r);
13651 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013652
13653 ;
13654 return 0;
13655}
13656_ACEOF
13657rm -f conftest.$ac_objext
13658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13659 (eval $ac_compile) 2>conftest.er1
13660 ac_status=$?
13661 grep -v '^ *+' conftest.er1 >conftest.err
13662 rm -f conftest.er1
13663 cat conftest.err >&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try='test -z "$ac_c_werror_flag"
13667 || test ! -s conftest.err'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; } &&
13673 { ac_try='test -s conftest.$ac_objext'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13676 ac_status=$?
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13679 echo "$as_me:$LINENO: result: yes" >&5
13680echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013681#define HAVE_SYSCTL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013682_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013683
13684else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013685 echo "$as_me: failed program was:" >&5
13686sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013687
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013688echo "$as_me:$LINENO: result: not usable" >&5
13689echo "${ECHO_T}not usable" >&6
13690fi
13691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13692
13693echo "$as_me:$LINENO: checking for sysinfo" >&5
13694echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13695cat >conftest.$ac_ext <<_ACEOF
13696/* confdefs.h. */
13697_ACEOF
13698cat confdefs.h >>conftest.$ac_ext
13699cat >>conftest.$ac_ext <<_ACEOF
13700/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013701#include <sys/types.h>
13702#include <sys/sysinfo.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013703int
13704main ()
13705{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013706 struct sysinfo sinfo;
13707 int t;
13708
13709 (void)sysinfo(&sinfo);
13710 t = sinfo.totalram;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013711
13712 ;
13713 return 0;
13714}
13715_ACEOF
13716rm -f conftest.$ac_objext
13717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718 (eval $ac_compile) 2>conftest.er1
13719 ac_status=$?
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -z "$ac_c_werror_flag"
13726 || test ! -s conftest.err'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest.$ac_objext'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 echo "$as_me:$LINENO: result: yes" >&5
13739echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013740#define HAVE_SYSINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013741_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013742
13743else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013744 echo "$as_me: failed program was:" >&5
13745sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013746
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013747echo "$as_me:$LINENO: result: not usable" >&5
13748echo "${ECHO_T}not usable" >&6
13749fi
13750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13751
Bram Moolenaar914572a2007-05-01 11:37:47 +000013752echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5
13753echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6
13754cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h. */
13760#include <sys/types.h>
13761#include <sys/sysinfo.h>
13762int
13763main ()
13764{
13765 struct sysinfo sinfo;
13766 sinfo.mem_unit = 1;
13767
13768 ;
13769 return 0;
13770}
13771_ACEOF
13772rm -f conftest.$ac_objext
13773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13774 (eval $ac_compile) 2>conftest.er1
13775 ac_status=$?
13776 grep -v '^ *+' conftest.er1 >conftest.err
13777 rm -f conftest.er1
13778 cat conftest.err >&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } &&
13781 { ac_try='test -z "$ac_c_werror_flag"
13782 || test ! -s conftest.err'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest.$ac_objext'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 echo "$as_me:$LINENO: result: yes" >&5
13795echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
13796#define HAVE_SYSINFO_MEM_UNIT 1
13797_ACEOF
13798
13799else
13800 echo "$as_me: failed program was:" >&5
13801sed 's/^/| /' conftest.$ac_ext >&5
13802
13803echo "$as_me:$LINENO: result: no" >&5
13804echo "${ECHO_T}no" >&6
13805fi
13806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13807
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013808echo "$as_me:$LINENO: checking for sysconf" >&5
13809echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13810cat >conftest.$ac_ext <<_ACEOF
13811/* confdefs.h. */
13812_ACEOF
13813cat confdefs.h >>conftest.$ac_ext
13814cat >>conftest.$ac_ext <<_ACEOF
13815/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013816#include <unistd.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013817int
13818main ()
13819{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013820 (void)sysconf(_SC_PAGESIZE);
13821 (void)sysconf(_SC_PHYS_PAGES);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013822
13823 ;
13824 return 0;
13825}
13826_ACEOF
13827rm -f conftest.$ac_objext
13828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13829 (eval $ac_compile) 2>conftest.er1
13830 ac_status=$?
13831 grep -v '^ *+' conftest.er1 >conftest.err
13832 rm -f conftest.er1
13833 cat conftest.err >&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try='test -z "$ac_c_werror_flag"
13837 || test ! -s conftest.err'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try='test -s conftest.$ac_objext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 echo "$as_me:$LINENO: result: yes" >&5
13850echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013851#define HAVE_SYSCONF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013852_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013853
13854else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013855 echo "$as_me: failed program was:" >&5
13856sed 's/^/| /' conftest.$ac_ext >&5
13857
13858echo "$as_me:$LINENO: result: not usable" >&5
13859echo "${ECHO_T}not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013860fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013862
13863
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013864echo "$as_me:$LINENO: checking size of int" >&5
13865echo $ECHO_N "checking size of int... $ECHO_C" >&6
13866if test "${ac_cv_sizeof_int+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013868else
13869 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013870 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13871echo "$as_me: error: failed to compile test program" >&2;}
13872 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013873else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013874 cat >conftest.$ac_ext <<_ACEOF
13875/* confdefs.h. */
13876_ACEOF
13877cat confdefs.h >>conftest.$ac_ext
13878cat >>conftest.$ac_ext <<_ACEOF
13879/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013880#include <stdio.h>
13881 main()
13882 {
13883 FILE *f=fopen("conftestval", "w");
13884 if (!f) exit(1);
13885 fprintf(f, "%d\n", (int)sizeof(int));
13886 exit(0);
13887 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013888_ACEOF
13889rm -f conftest$ac_exeext
13890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13891 (eval $ac_link) 2>&5
13892 ac_status=$?
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013900 ac_cv_sizeof_int=`cat conftestval`
13901else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013902 echo "$as_me: program exited with status $ac_status" >&5
13903echo "$as_me: failed program was:" >&5
13904sed 's/^/| /' conftest.$ac_ext >&5
13905
13906( exit $ac_status )
13907ac_cv_sizeof_int=0
Bram Moolenaar071d4272004-06-13 20:20:40 +000013908fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013909rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13910fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013911fi
13912
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013913echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13914echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13915cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013916#define SIZEOF_INT $ac_cv_sizeof_int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013917_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013918
13919
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013920echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13921echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013922bcopy_test_prog='
13923main() {
13924 char buf[10];
13925 strcpy(buf, "abcdefghi");
13926 mch_memmove(buf, buf + 2, 3);
13927 if (strncmp(buf, "ababcf", 6))
13928 exit(1);
13929 strcpy(buf, "abcdefghi");
13930 mch_memmove(buf + 2, buf, 3);
13931 if (strncmp(buf, "cdedef", 6))
13932 exit(1);
13933 exit(0); /* libc version works properly. */
13934}'
13935
13936
13937if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013938 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13939echo "$as_me: error: failed to compile test program" >&2;}
13940 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013941else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013942 cat >conftest.$ac_ext <<_ACEOF
13943/* confdefs.h. */
13944_ACEOF
13945cat confdefs.h >>conftest.$ac_ext
13946cat >>conftest.$ac_ext <<_ACEOF
13947/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013948#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013949_ACEOF
13950rm -f conftest$ac_exeext
13951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13952 (eval $ac_link) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13958 ac_status=$?
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; }; then
13961 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013962#define USEMEMMOVE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013963_ACEOF
13964 echo "$as_me:$LINENO: result: memmove does" >&5
13965echo "${ECHO_T}memmove does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013966else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013967 echo "$as_me: program exited with status $ac_status" >&5
13968echo "$as_me: failed program was:" >&5
13969sed 's/^/| /' conftest.$ac_ext >&5
13970
13971( exit $ac_status )
13972if test "$cross_compiling" = yes; then
13973 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13974echo "$as_me: error: failed to compile test program" >&2;}
13975 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013976else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013977 cat >conftest.$ac_ext <<_ACEOF
13978/* confdefs.h. */
13979_ACEOF
13980cat confdefs.h >>conftest.$ac_ext
13981cat >>conftest.$ac_ext <<_ACEOF
13982/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013983#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013984_ACEOF
13985rm -f conftest$ac_exeext
13986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13987 (eval $ac_link) 2>&5
13988 ac_status=$?
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13993 ac_status=$?
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013997#define USEBCOPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013998_ACEOF
13999 echo "$as_me:$LINENO: result: bcopy does" >&5
14000echo "${ECHO_T}bcopy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014001else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014002 echo "$as_me: program exited with status $ac_status" >&5
14003echo "$as_me: failed program was:" >&5
14004sed 's/^/| /' conftest.$ac_ext >&5
14005
14006( exit $ac_status )
14007if test "$cross_compiling" = yes; then
14008 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14009echo "$as_me: error: failed to compile test program" >&2;}
14010 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000014011else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014012 cat >conftest.$ac_ext <<_ACEOF
14013/* confdefs.h. */
14014_ACEOF
14015cat confdefs.h >>conftest.$ac_ext
14016cat >>conftest.$ac_ext <<_ACEOF
14017/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014018#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014019_ACEOF
14020rm -f conftest$ac_exeext
14021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14022 (eval $ac_link) 2>&5
14023 ac_status=$?
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; }; then
14031 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014032#define USEMEMCPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014033_ACEOF
14034 echo "$as_me:$LINENO: result: memcpy does" >&5
14035echo "${ECHO_T}memcpy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014036else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014037 echo "$as_me: program exited with status $ac_status" >&5
14038echo "$as_me: failed program was:" >&5
14039sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014040
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014041( exit $ac_status )
14042echo "$as_me:$LINENO: result: no" >&5
14043echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014044fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014045rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014046fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014047fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014048rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014049fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014050fi
14051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14052fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014053
14054
14055if test "$enable_multibyte" = "yes"; then
14056 cflags_save=$CFLAGS
14057 ldflags_save=$LDFLAGS
14058 if test -n "$x_includes" ; then
14059 CFLAGS="$CFLAGS -I$x_includes"
14060 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014061 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
14062echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
14063 cat >conftest.$ac_ext <<_ACEOF
14064/* confdefs.h. */
14065_ACEOF
14066cat confdefs.h >>conftest.$ac_ext
14067cat >>conftest.$ac_ext <<_ACEOF
14068/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014069#include <X11/Xlocale.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014070int
14071main ()
14072{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014073
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014074 ;
14075 return 0;
14076}
14077_ACEOF
14078rm -f conftest.$ac_objext
14079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080 (eval $ac_compile) 2>conftest.er1
14081 ac_status=$?
14082 grep -v '^ *+' conftest.er1 >conftest.err
14083 rm -f conftest.er1
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
14087 { ac_try='test -z "$ac_c_werror_flag"
14088 || test ! -s conftest.err'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14091 ac_status=$?
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; } &&
14094 { ac_try='test -s conftest.$ac_objext'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
14100 cat >conftest.$ac_ext <<_ACEOF
14101/* confdefs.h. */
14102_ACEOF
14103cat confdefs.h >>conftest.$ac_ext
14104cat >>conftest.$ac_ext <<_ACEOF
14105/* end confdefs.h. */
14106
Bram Moolenaar071d4272004-06-13 20:20:40 +000014107/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014108#ifdef __cplusplus
14109extern "C"
14110#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014111/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014112 builtin and then its argument prototype would still apply. */
14113char _Xsetlocale ();
14114int
14115main ()
14116{
14117_Xsetlocale ();
14118 ;
14119 return 0;
14120}
14121_ACEOF
14122rm -f conftest.$ac_objext conftest$ac_exeext
14123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14124 (eval $ac_link) 2>conftest.er1
14125 ac_status=$?
14126 grep -v '^ *+' conftest.er1 >conftest.err
14127 rm -f conftest.er1
14128 cat conftest.err >&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } &&
14131 { ac_try='test -z "$ac_c_werror_flag"
14132 || test ! -s conftest.err'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14135 ac_status=$?
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; } &&
14138 { ac_try='test -s conftest$ac_exeext'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 echo "$as_me:$LINENO: result: yes" >&5
14145echo "${ECHO_T}yes" >&6
14146 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014147#define X_LOCALE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014148_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014149
14150else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014151 echo "$as_me: failed program was:" >&5
14152sed 's/^/| /' conftest.$ac_ext >&5
14153
14154echo "$as_me:$LINENO: result: no" >&5
14155echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014156fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014157rm -f conftest.err conftest.$ac_objext \
14158 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014159else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014160 echo "$as_me: failed program was:" >&5
14161sed 's/^/| /' conftest.$ac_ext >&5
14162
14163echo "$as_me:$LINENO: result: no" >&5
14164echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014165fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014167 fi
14168 CFLAGS=$cflags_save
14169 LDFLAGS=$ldflags_save
14170fi
14171
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014172echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14173echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14174if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14175 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014176else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014177 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014178LIBS="-lxpg4 $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014179cat >conftest.$ac_ext <<_ACEOF
14180/* confdefs.h. */
14181_ACEOF
14182cat confdefs.h >>conftest.$ac_ext
14183cat >>conftest.$ac_ext <<_ACEOF
14184/* end confdefs.h. */
14185
Bram Moolenaar071d4272004-06-13 20:20:40 +000014186/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014187#ifdef __cplusplus
14188extern "C"
14189#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014190/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014191 builtin and then its argument prototype would still apply. */
14192char _xpg4_setrunelocale ();
14193int
14194main ()
14195{
14196_xpg4_setrunelocale ();
14197 ;
14198 return 0;
14199}
14200_ACEOF
14201rm -f conftest.$ac_objext conftest$ac_exeext
14202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14203 (eval $ac_link) 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } &&
14210 { ac_try='test -z "$ac_c_werror_flag"
14211 || test ! -s conftest.err'
14212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }; } &&
14217 { ac_try='test -s conftest$ac_exeext'
14218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14219 (eval $ac_try) 2>&5
14220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14223 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014224else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014225 echo "$as_me: failed program was:" >&5
14226sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014227
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014228ac_cv_lib_xpg4__xpg4_setrunelocale=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014229fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014230rm -f conftest.err conftest.$ac_objext \
14231 conftest$ac_exeext conftest.$ac_ext
14232LIBS=$ac_check_lib_save_LIBS
14233fi
14234echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14235echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14236if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014237 LIBS="$LIBS -lxpg4"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014238fi
14239
14240
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014241echo "$as_me:$LINENO: checking how to create tags" >&5
14242echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014243test -f tags && mv tags tags.save
14244if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
Bram Moolenaarb21e5842006-04-16 18:30:08 +000014245 TAGPRG="ctags -I INIT+ --fields=+S"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014246else
14247 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14248 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14249 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14250 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14251 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14252 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14253 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14254fi
14255test -f tags.save && mv tags.save tags
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014256echo "$as_me:$LINENO: result: $TAGPRG" >&5
14257echo "${ECHO_T}$TAGPRG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014258
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014259echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14260echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014261MANDEF="man"
Bram Moolenaar8b131502008-02-13 09:28:19 +000014262(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014263echo "$as_me:$LINENO: result: $MANDEF" >&5
14264echo "${ECHO_T}$MANDEF" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014265if test "$MANDEF" = "man -s"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014266 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014267#define USEMAN_S 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014268_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014269
14270fi
14271
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014272echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14273echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014274# Check whether --enable-nls or --disable-nls was given.
14275if test "${enable_nls+set}" = set; then
14276 enableval="$enable_nls"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014277
Bram Moolenaar071d4272004-06-13 20:20:40 +000014278else
14279 enable_nls="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014280fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014281
14282if test "$enable_nls" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014283 echo "$as_me:$LINENO: result: no" >&5
14284echo "${ECHO_T}no" >&6
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000014285
14286 INSTALL_LANGS=install-languages
14287
14288 INSTALL_TOOL_LANGS=install-tool-languages
14289
14290
Bram Moolenaar071d4272004-06-13 20:20:40 +000014291 # Extract the first word of "msgfmt", so it can be a program name with args.
14292set dummy msgfmt; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014293echo "$as_me:$LINENO: checking for $ac_word" >&5
14294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14295if test "${ac_cv_prog_MSGFMT+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014297else
14298 if test -n "$MSGFMT"; then
14299 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14300else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14302for as_dir in $PATH
14303do
14304 IFS=$as_save_IFS
14305 test -z "$as_dir" && as_dir=.
14306 for ac_exec_ext in '' $ac_executable_extensions; do
14307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14308 ac_cv_prog_MSGFMT="msgfmt"
14309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14310 break 2
14311 fi
14312done
14313done
14314
Bram Moolenaar071d4272004-06-13 20:20:40 +000014315fi
14316fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014317MSGFMT=$ac_cv_prog_MSGFMT
Bram Moolenaar071d4272004-06-13 20:20:40 +000014318if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014319 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14320echo "${ECHO_T}$MSGFMT" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014321else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014322 echo "$as_me:$LINENO: result: no" >&5
14323echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014324fi
14325
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014326 echo "$as_me:$LINENO: checking for NLS" >&5
14327echo $ECHO_N "checking for NLS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014328 if test -f po/Makefile; then
14329 have_gettext="no"
14330 if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014331 cat >conftest.$ac_ext <<_ACEOF
14332/* confdefs.h. */
14333_ACEOF
14334cat confdefs.h >>conftest.$ac_ext
14335cat >>conftest.$ac_ext <<_ACEOF
14336/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014337#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014338int
14339main ()
14340{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014341gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014342 ;
14343 return 0;
14344}
14345_ACEOF
14346rm -f conftest.$ac_objext conftest$ac_exeext
14347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14348 (eval $ac_link) 2>conftest.er1
14349 ac_status=$?
14350 grep -v '^ *+' conftest.er1 >conftest.err
14351 rm -f conftest.er1
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
14355 { ac_try='test -z "$ac_c_werror_flag"
14356 || test ! -s conftest.err'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; } &&
14362 { ac_try='test -s conftest$ac_exeext'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 echo "$as_me:$LINENO: result: gettext() works" >&5
14369echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014370else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014371 echo "$as_me: failed program was:" >&5
14372sed 's/^/| /' conftest.$ac_ext >&5
14373
14374olibs=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014375 LIBS="$LIBS -lintl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014376 cat >conftest.$ac_ext <<_ACEOF
14377/* confdefs.h. */
14378_ACEOF
14379cat confdefs.h >>conftest.$ac_ext
14380cat >>conftest.$ac_ext <<_ACEOF
14381/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014382#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014383int
14384main ()
14385{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014386gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014387 ;
14388 return 0;
14389}
14390_ACEOF
14391rm -f conftest.$ac_objext conftest$ac_exeext
14392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14393 (eval $ac_link) 2>conftest.er1
14394 ac_status=$?
14395 grep -v '^ *+' conftest.er1 >conftest.err
14396 rm -f conftest.er1
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } &&
14400 { ac_try='test -z "$ac_c_werror_flag"
14401 || test ! -s conftest.err'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest$ac_exeext'
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
14413 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14414echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014415else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014416 echo "$as_me: failed program was:" >&5
14417sed 's/^/| /' conftest.$ac_ext >&5
14418
14419echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14420echo "${ECHO_T}gettext() doesn't work" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014421 LIBS=$olibs
14422fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014423rm -f conftest.err conftest.$ac_objext \
14424 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014425fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014426rm -f conftest.err conftest.$ac_objext \
14427 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014428 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014429 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14430echo "${ECHO_T}msgfmt not found - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014431 fi
14432 if test $have_gettext = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014433 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014434#define HAVE_GETTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014435_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014436
14437 MAKEMO=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014438
14439
14440for ac_func in bind_textdomain_codeset
Bram Moolenaar071d4272004-06-13 20:20:40 +000014441do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014442as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14443echo "$as_me:$LINENO: checking for $ac_func" >&5
14444echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14445if eval "test \"\${$as_ac_var+set}\" = set"; then
14446 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014447else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014448 cat >conftest.$ac_ext <<_ACEOF
14449/* confdefs.h. */
14450_ACEOF
14451cat confdefs.h >>conftest.$ac_ext
14452cat >>conftest.$ac_ext <<_ACEOF
14453/* end confdefs.h. */
14454/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14456#define $ac_func innocuous_$ac_func
14457
Bram Moolenaar071d4272004-06-13 20:20:40 +000014458/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014459 which can conflict with char $ac_func (); below.
14460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14461 <limits.h> exists even on freestanding compilers. */
14462
14463#ifdef __STDC__
14464# include <limits.h>
14465#else
14466# include <assert.h>
14467#endif
14468
14469#undef $ac_func
14470
Bram Moolenaar071d4272004-06-13 20:20:40 +000014471/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014472#ifdef __cplusplus
14473extern "C"
14474{
14475#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014476/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014477 builtin and then its argument prototype would still apply. */
14478char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000014479/* The GNU C library defines this for functions which it implements
14480 to always fail with ENOSYS. Some functions are actually named
14481 something starting with __ and the normal name is an alias. */
14482#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14483choke me
14484#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014485char (*f) () = $ac_func;
14486#endif
14487#ifdef __cplusplus
14488}
Bram Moolenaar071d4272004-06-13 20:20:40 +000014489#endif
14490
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014491int
14492main ()
14493{
14494return f != $ac_func;
14495 ;
14496 return 0;
14497}
14498_ACEOF
14499rm -f conftest.$ac_objext conftest$ac_exeext
14500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14501 (eval $ac_link) 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } &&
14508 { ac_try='test -z "$ac_c_werror_flag"
14509 || test ! -s conftest.err'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest$ac_exeext'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014522else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014523 echo "$as_me: failed program was:" >&5
14524sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014525
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014526eval "$as_ac_var=no"
14527fi
14528rm -f conftest.err conftest.$ac_objext \
14529 conftest$ac_exeext conftest.$ac_ext
14530fi
14531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14532echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14533if test `eval echo '${'$as_ac_var'}'` = yes; then
14534 cat >>confdefs.h <<_ACEOF
14535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14536_ACEOF
14537
Bram Moolenaar071d4272004-06-13 20:20:40 +000014538fi
14539done
14540
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014541 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14542echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14543 cat >conftest.$ac_ext <<_ACEOF
14544/* confdefs.h. */
14545_ACEOF
14546cat confdefs.h >>conftest.$ac_ext
14547cat >>conftest.$ac_ext <<_ACEOF
14548/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014549#include <libintl.h>
14550 extern int _nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014551int
14552main ()
14553{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014554++_nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014555 ;
14556 return 0;
14557}
14558_ACEOF
14559rm -f conftest.$ac_objext conftest$ac_exeext
14560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14561 (eval $ac_link) 2>conftest.er1
14562 ac_status=$?
14563 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
14568 { ac_try='test -z "$ac_c_werror_flag"
14569 || test ! -s conftest.err'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try='test -s conftest$ac_exeext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 echo "$as_me:$LINENO: result: yes" >&5
14582echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014583#define HAVE_NL_MSG_CAT_CNTR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014584_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014585
14586else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014587 echo "$as_me: failed program was:" >&5
14588sed 's/^/| /' conftest.$ac_ext >&5
14589
14590echo "$as_me:$LINENO: result: no" >&5
14591echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014592fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014593rm -f conftest.err conftest.$ac_objext \
14594 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014595 fi
14596 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014597 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14598echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014599 fi
14600else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014601 echo "$as_me:$LINENO: result: yes" >&5
14602echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014603fi
14604
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014605if test "${ac_cv_header_dlfcn_h+set}" = set; then
14606 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14607echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14608if test "${ac_cv_header_dlfcn_h+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14610fi
14611echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14612echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014613else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014614 # Is the header compilable?
14615echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14616echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14617cat >conftest.$ac_ext <<_ACEOF
14618/* confdefs.h. */
14619_ACEOF
14620cat confdefs.h >>conftest.$ac_ext
14621cat >>conftest.$ac_ext <<_ACEOF
14622/* end confdefs.h. */
14623$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014624#include <dlfcn.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014625_ACEOF
14626rm -f conftest.$ac_objext
14627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14628 (eval $ac_compile) 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_objext'
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 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014649else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014650 echo "$as_me: failed program was:" >&5
14651sed 's/^/| /' conftest.$ac_ext >&5
14652
14653ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014654fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14656echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657echo "${ECHO_T}$ac_header_compiler" >&6
14658
14659# Is the header present?
14660echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14661echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14662cat >conftest.$ac_ext <<_ACEOF
14663/* confdefs.h. */
14664_ACEOF
14665cat confdefs.h >>conftest.$ac_ext
14666cat >>conftest.$ac_ext <<_ACEOF
14667/* end confdefs.h. */
14668#include <dlfcn.h>
14669_ACEOF
14670if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14672 ac_status=$?
14673 grep -v '^ *+' conftest.er1 >conftest.err
14674 rm -f conftest.er1
14675 cat conftest.err >&5
14676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } >/dev/null; then
14678 if test -s conftest.err; then
14679 ac_cpp_err=$ac_c_preproc_warn_flag
14680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14681 else
14682 ac_cpp_err=
14683 fi
14684else
14685 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014686fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014687if test -z "$ac_cpp_err"; then
14688 ac_header_preproc=yes
14689else
14690 echo "$as_me: failed program was:" >&5
14691sed 's/^/| /' conftest.$ac_ext >&5
14692
14693 ac_header_preproc=no
14694fi
14695rm -f conftest.err conftest.$ac_ext
14696echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14697echo "${ECHO_T}$ac_header_preproc" >&6
14698
14699# So? What about this header?
14700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14701 yes:no: )
14702 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14703echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14705echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14706 ac_header_preproc=yes
14707 ;;
14708 no:yes:* )
14709 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14710echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14711 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14712echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14714echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14716echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14718echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14720echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14721 (
14722 cat <<\_ASBOX
14723## ------------------------------------------ ##
14724## Report this to the AC_PACKAGE_NAME lists. ##
14725## ------------------------------------------ ##
14726_ASBOX
14727 ) |
14728 sed "s/^/$as_me: WARNING: /" >&2
14729 ;;
14730esac
14731echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14732echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14733if test "${ac_cv_header_dlfcn_h+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14735else
14736 ac_cv_header_dlfcn_h=$ac_header_preproc
14737fi
14738echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14739echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14740
14741fi
14742if test $ac_cv_header_dlfcn_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014743 DLL=dlfcn.h
14744else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014745 if test "${ac_cv_header_dl_h+set}" = set; then
14746 echo "$as_me:$LINENO: checking for dl.h" >&5
14747echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14748if test "${ac_cv_header_dl_h+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750fi
14751echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14752echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014753else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014754 # Is the header compilable?
14755echo "$as_me:$LINENO: checking dl.h usability" >&5
14756echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14757cat >conftest.$ac_ext <<_ACEOF
14758/* confdefs.h. */
14759_ACEOF
14760cat confdefs.h >>conftest.$ac_ext
14761cat >>conftest.$ac_ext <<_ACEOF
14762/* end confdefs.h. */
14763$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014764#include <dl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014765_ACEOF
14766rm -f conftest.$ac_objext
14767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14768 (eval $ac_compile) 2>conftest.er1
14769 ac_status=$?
14770 grep -v '^ *+' conftest.er1 >conftest.err
14771 rm -f conftest.er1
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -z "$ac_c_werror_flag"
14776 || test ! -s conftest.err'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014789else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014790 echo "$as_me: failed program was:" >&5
14791sed 's/^/| /' conftest.$ac_ext >&5
14792
14793ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014794fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14797echo "${ECHO_T}$ac_header_compiler" >&6
14798
14799# Is the header present?
14800echo "$as_me:$LINENO: checking dl.h presence" >&5
14801echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14802cat >conftest.$ac_ext <<_ACEOF
14803/* confdefs.h. */
14804_ACEOF
14805cat confdefs.h >>conftest.$ac_ext
14806cat >>conftest.$ac_ext <<_ACEOF
14807/* end confdefs.h. */
14808#include <dl.h>
14809_ACEOF
14810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14812 ac_status=$?
14813 grep -v '^ *+' conftest.er1 >conftest.err
14814 rm -f conftest.er1
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } >/dev/null; then
14818 if test -s conftest.err; then
14819 ac_cpp_err=$ac_c_preproc_warn_flag
14820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14821 else
14822 ac_cpp_err=
14823 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014824else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014825 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014826fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014827if test -z "$ac_cpp_err"; then
14828 ac_header_preproc=yes
14829else
14830 echo "$as_me: failed program was:" >&5
14831sed 's/^/| /' conftest.$ac_ext >&5
14832
14833 ac_header_preproc=no
14834fi
14835rm -f conftest.err conftest.$ac_ext
14836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14837echo "${ECHO_T}$ac_header_preproc" >&6
14838
14839# So? What about this header?
14840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14841 yes:no: )
14842 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14843echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14844 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14845echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14846 ac_header_preproc=yes
14847 ;;
14848 no:yes:* )
14849 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14850echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14852echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14854echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14856echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14858echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14860echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14861 (
14862 cat <<\_ASBOX
14863## ------------------------------------------ ##
14864## Report this to the AC_PACKAGE_NAME lists. ##
14865## ------------------------------------------ ##
14866_ASBOX
14867 ) |
14868 sed "s/^/$as_me: WARNING: /" >&2
14869 ;;
14870esac
14871echo "$as_me:$LINENO: checking for dl.h" >&5
14872echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14873if test "${ac_cv_header_dl_h+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14875else
14876 ac_cv_header_dl_h=$ac_header_preproc
14877fi
14878echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14879echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014880
14881fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014882if test $ac_cv_header_dl_h = yes; then
14883 DLL=dl.h
14884fi
14885
14886
14887fi
14888
Bram Moolenaar071d4272004-06-13 20:20:40 +000014889
14890if test x${DLL} = xdlfcn.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014891
14892cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014893#define HAVE_DLFCN_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014894_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014895
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014896 echo "$as_me:$LINENO: checking for dlopen()" >&5
14897echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14898 cat >conftest.$ac_ext <<_ACEOF
14899/* confdefs.h. */
14900_ACEOF
14901cat confdefs.h >>conftest.$ac_ext
14902cat >>conftest.$ac_ext <<_ACEOF
14903/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014904
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014905int
14906main ()
14907{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014908
14909 extern void* dlopen();
14910 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014911
14912 ;
14913 return 0;
14914}
14915_ACEOF
14916rm -f conftest.$ac_objext conftest$ac_exeext
14917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14918 (eval $ac_link) 2>conftest.er1
14919 ac_status=$?
14920 grep -v '^ *+' conftest.er1 >conftest.err
14921 rm -f conftest.er1
14922 cat conftest.err >&5
14923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924 (exit $ac_status); } &&
14925 { ac_try='test -z "$ac_c_werror_flag"
14926 || test ! -s conftest.err'
14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14928 (eval $ac_try) 2>&5
14929 ac_status=$?
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); }; } &&
14932 { ac_try='test -s conftest$ac_exeext'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14935 ac_status=$?
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
14938 echo "$as_me:$LINENO: result: yes" >&5
14939echo "${ECHO_T}yes" >&6;
14940
14941cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014942#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014943_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014944
14945else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014946 echo "$as_me: failed program was:" >&5
14947sed 's/^/| /' conftest.$ac_ext >&5
14948
14949echo "$as_me:$LINENO: result: no" >&5
14950echo "${ECHO_T}no" >&6;
14951 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14952echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014953 olibs=$LIBS
14954 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014955 cat >conftest.$ac_ext <<_ACEOF
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014961
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014962int
14963main ()
14964{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014965
14966 extern void* dlopen();
14967 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014968
14969 ;
14970 return 0;
14971}
14972_ACEOF
14973rm -f conftest.$ac_objext conftest$ac_exeext
14974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14975 (eval $ac_link) 2>conftest.er1
14976 ac_status=$?
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } &&
14982 { ac_try='test -z "$ac_c_werror_flag"
14983 || test ! -s conftest.err'
14984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985 (eval $ac_try) 2>&5
14986 ac_status=$?
14987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988 (exit $ac_status); }; } &&
14989 { ac_try='test -s conftest$ac_exeext'
14990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14992 ac_status=$?
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 echo "$as_me:$LINENO: result: yes" >&5
14996echo "${ECHO_T}yes" >&6;
14997
14998cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014999#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015000_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015001
15002else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015003 echo "$as_me: failed program was:" >&5
15004sed 's/^/| /' conftest.$ac_ext >&5
15005
15006echo "$as_me:$LINENO: result: no" >&5
15007echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015008 LIBS=$olibs
15009fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015010rm -f conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015012fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015013rm -f conftest.err conftest.$ac_objext \
15014 conftest$ac_exeext conftest.$ac_ext
15015 echo "$as_me:$LINENO: checking for dlsym()" >&5
15016echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
15017 cat >conftest.$ac_ext <<_ACEOF
15018/* confdefs.h. */
15019_ACEOF
15020cat confdefs.h >>conftest.$ac_ext
15021cat >>conftest.$ac_ext <<_ACEOF
15022/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015023
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015024int
15025main ()
15026{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015027
15028 extern void* dlsym();
15029 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015030
15031 ;
15032 return 0;
15033}
15034_ACEOF
15035rm -f conftest.$ac_objext conftest$ac_exeext
15036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15037 (eval $ac_link) 2>conftest.er1
15038 ac_status=$?
15039 grep -v '^ *+' conftest.er1 >conftest.err
15040 rm -f conftest.er1
15041 cat conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); } &&
15044 { ac_try='test -z "$ac_c_werror_flag"
15045 || test ! -s conftest.err'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; } &&
15051 { ac_try='test -s conftest$ac_exeext'
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15057 echo "$as_me:$LINENO: result: yes" >&5
15058echo "${ECHO_T}yes" >&6;
15059
15060cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015061#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015062_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015063
15064else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015065 echo "$as_me: failed program was:" >&5
15066sed 's/^/| /' conftest.$ac_ext >&5
15067
15068echo "$as_me:$LINENO: result: no" >&5
15069echo "${ECHO_T}no" >&6;
15070 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
15071echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015072 olibs=$LIBS
15073 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015074 cat >conftest.$ac_ext <<_ACEOF
15075/* confdefs.h. */
15076_ACEOF
15077cat confdefs.h >>conftest.$ac_ext
15078cat >>conftest.$ac_ext <<_ACEOF
15079/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015080
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015081int
15082main ()
15083{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015084
15085 extern void* dlsym();
15086 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015087
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092rm -f conftest.$ac_objext conftest$ac_exeext
15093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15094 (eval $ac_link) 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag"
15102 || test ! -s conftest.err'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest$ac_exeext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 echo "$as_me:$LINENO: result: yes" >&5
15115echo "${ECHO_T}yes" >&6;
15116
15117cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015118#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015119_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015120
15121else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015122 echo "$as_me: failed program was:" >&5
15123sed 's/^/| /' conftest.$ac_ext >&5
15124
15125echo "$as_me:$LINENO: result: no" >&5
15126echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015127 LIBS=$olibs
15128fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015129rm -f conftest.err conftest.$ac_objext \
15130 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015131fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015132rm -f conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015134elif test x${DLL} = xdl.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015135
15136cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015137#define HAVE_DL_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015138_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015139
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015140 echo "$as_me:$LINENO: checking for shl_load()" >&5
15141echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15142 cat >conftest.$ac_ext <<_ACEOF
15143/* confdefs.h. */
15144_ACEOF
15145cat confdefs.h >>conftest.$ac_ext
15146cat >>conftest.$ac_ext <<_ACEOF
15147/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015148
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015149int
15150main ()
15151{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015152
15153 extern void* shl_load();
15154 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015155
15156 ;
15157 return 0;
15158}
15159_ACEOF
15160rm -f conftest.$ac_objext conftest$ac_exeext
15161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15162 (eval $ac_link) 2>conftest.er1
15163 ac_status=$?
15164 grep -v '^ *+' conftest.er1 >conftest.err
15165 rm -f conftest.er1
15166 cat conftest.err >&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -z "$ac_c_werror_flag"
15170 || test ! -s conftest.err'
15171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15173 ac_status=$?
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; } &&
15176 { ac_try='test -s conftest$ac_exeext'
15177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15179 ac_status=$?
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); }; }; then
15182 echo "$as_me:$LINENO: result: yes" >&5
15183echo "${ECHO_T}yes" >&6;
15184
15185cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015186#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015187_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015188
15189else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015190 echo "$as_me: failed program was:" >&5
15191sed 's/^/| /' conftest.$ac_ext >&5
15192
15193echo "$as_me:$LINENO: result: no" >&5
15194echo "${ECHO_T}no" >&6;
15195 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15196echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015197 olibs=$LIBS
15198 LIBS="$LIBS -ldld"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015199 cat >conftest.$ac_ext <<_ACEOF
15200/* confdefs.h. */
15201_ACEOF
15202cat confdefs.h >>conftest.$ac_ext
15203cat >>conftest.$ac_ext <<_ACEOF
15204/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015205
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015206int
15207main ()
15208{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015209
15210 extern void* shl_load();
15211 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015212
15213 ;
15214 return 0;
15215}
15216_ACEOF
15217rm -f conftest.$ac_objext conftest$ac_exeext
15218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15219 (eval $ac_link) 2>conftest.er1
15220 ac_status=$?
15221 grep -v '^ *+' conftest.er1 >conftest.err
15222 rm -f conftest.er1
15223 cat conftest.err >&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } &&
15226 { ac_try='test -z "$ac_c_werror_flag"
15227 || test ! -s conftest.err'
15228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; } &&
15233 { ac_try='test -s conftest$ac_exeext'
15234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15235 (eval $ac_try) 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; }; then
15239 echo "$as_me:$LINENO: result: yes" >&5
15240echo "${ECHO_T}yes" >&6;
15241
15242cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015243#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015244_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015245
15246else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015247 echo "$as_me: failed program was:" >&5
15248sed 's/^/| /' conftest.$ac_ext >&5
15249
15250echo "$as_me:$LINENO: result: no" >&5
15251echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015252 LIBS=$olibs
15253fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015254rm -f conftest.err conftest.$ac_objext \
15255 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015256fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015257rm -f conftest.err conftest.$ac_objext \
15258 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015259fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015260
15261for ac_header in setjmp.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000015262do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15264if eval "test \"\${$as_ac_Header+set}\" = set"; then
15265 echo "$as_me:$LINENO: checking for $ac_header" >&5
15266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15267if eval "test \"\${$as_ac_Header+set}\" = set"; then
15268 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015269fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015272else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015273 # Is the header compilable?
15274echo "$as_me:$LINENO: checking $ac_header usability" >&5
15275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15276cat >conftest.$ac_ext <<_ACEOF
15277/* confdefs.h. */
15278_ACEOF
15279cat confdefs.h >>conftest.$ac_ext
15280cat >>conftest.$ac_ext <<_ACEOF
15281/* end confdefs.h. */
15282$ac_includes_default
15283#include <$ac_header>
15284_ACEOF
15285rm -f conftest.$ac_objext
15286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15287 (eval $ac_compile) 2>conftest.er1
15288 ac_status=$?
15289 grep -v '^ *+' conftest.er1 >conftest.err
15290 rm -f conftest.er1
15291 cat conftest.err >&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -z "$ac_c_werror_flag"
15295 || test ! -s conftest.err'
15296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15297 (eval $ac_try) 2>&5
15298 ac_status=$?
15299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300 (exit $ac_status); }; } &&
15301 { ac_try='test -s conftest.$ac_objext'
15302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15304 ac_status=$?
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15307 ac_header_compiler=yes
15308else
15309 echo "$as_me: failed program was:" >&5
15310sed 's/^/| /' conftest.$ac_ext >&5
15311
15312ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015313fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15315echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15316echo "${ECHO_T}$ac_header_compiler" >&6
15317
15318# Is the header present?
15319echo "$as_me:$LINENO: checking $ac_header presence" >&5
15320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15321cat >conftest.$ac_ext <<_ACEOF
15322/* confdefs.h. */
15323_ACEOF
15324cat confdefs.h >>conftest.$ac_ext
15325cat >>conftest.$ac_ext <<_ACEOF
15326/* end confdefs.h. */
15327#include <$ac_header>
15328_ACEOF
15329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15331 ac_status=$?
15332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } >/dev/null; then
15337 if test -s conftest.err; then
15338 ac_cpp_err=$ac_c_preproc_warn_flag
15339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15340 else
15341 ac_cpp_err=
15342 fi
15343else
15344 ac_cpp_err=yes
15345fi
15346if test -z "$ac_cpp_err"; then
15347 ac_header_preproc=yes
15348else
15349 echo "$as_me: failed program was:" >&5
15350sed 's/^/| /' conftest.$ac_ext >&5
15351
15352 ac_header_preproc=no
15353fi
15354rm -f conftest.err conftest.$ac_ext
15355echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15356echo "${ECHO_T}$ac_header_preproc" >&6
15357
15358# So? What about this header?
15359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15360 yes:no: )
15361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15365 ac_header_preproc=yes
15366 ;;
15367 no:yes:* )
15368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15380 (
15381 cat <<\_ASBOX
15382## ------------------------------------------ ##
15383## Report this to the AC_PACKAGE_NAME lists. ##
15384## ------------------------------------------ ##
15385_ASBOX
15386 ) |
15387 sed "s/^/$as_me: WARNING: /" >&2
15388 ;;
15389esac
15390echo "$as_me:$LINENO: checking for $ac_header" >&5
15391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15392if eval "test \"\${$as_ac_Header+set}\" = set"; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15394else
15395 eval "$as_ac_Header=\$ac_header_preproc"
15396fi
15397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15399
15400fi
15401if test `eval echo '${'$as_ac_Header'}'` = yes; then
15402 cat >>confdefs.h <<_ACEOF
15403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15404_ACEOF
15405
15406fi
15407
Bram Moolenaar071d4272004-06-13 20:20:40 +000015408done
15409
15410
15411if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15412 if echo $LIBS | grep -e '-ldl' >/dev/null; then
15413 LIBS=`echo $LIBS | sed s/-ldl//`
15414 PERL_LIBS="$PERL_LIBS -ldl"
15415 fi
15416fi
15417
15418if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15419 && test "x$GUITYPE" != "xCARBONGUI"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015420 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15421echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
Bram Moolenaarb90daee2006-10-17 09:49:09 +000015422 if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \
Bram Moolenaar071d4272004-06-13 20:20:40 +000015423 || test "x$features" = "xhuge"; then
15424 LIBS="$LIBS -framework Carbon"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015425 echo "$as_me:$LINENO: result: yes" >&5
15426echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015427 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015428 echo "$as_me:$LINENO: result: no" >&5
15429echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015430 fi
15431fi
Bram Moolenaare224ffa2006-03-01 00:01:28 +000015432if test "x$MACARCH" = "xboth"; then
15433 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15434fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015435
Bram Moolenaara5792f52005-11-23 21:25:05 +000015436echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15437echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015438DEPEND_CFLAGS_FILTER=
15439if test "$GCC" = yes; then
Bram Moolenaar2217cae2006-03-25 21:55:52 +000015440 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'`
Bram Moolenaarf740b292006-02-16 22:11:02 +000015441 if test "$gccmajor" -gt "2"; then
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015442 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15443 fi
15444fi
Bram Moolenaara5792f52005-11-23 21:25:05 +000015445if test "$DEPEND_CFLAGS_FILTER" = ""; then
15446 echo "$as_me:$LINENO: result: no" >&5
15447echo "${ECHO_T}no" >&6
15448else
15449 echo "$as_me:$LINENO: result: yes" >&5
15450echo "${ECHO_T}yes" >&6
15451fi
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015452
Bram Moolenaar071d4272004-06-13 20:20:40 +000015453
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015454 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15455cat >confcache <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015456# This file is a shell script that caches the results of configure
15457# tests run on this system so they can be shared between configure
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015458# scripts and configure runs, see configure's option --config-cache.
15459# It is not useful on other systems. If it contains results you don't
15460# want to keep, you may remove or edit it.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015461#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015462# config.status only pays attention to the cache file if you give it
15463# the --recheck option to rerun configure.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015464#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015465# `ac_cv_env_foo' variables (set or unset) will be overridden when
15466# loading this file, other *unset* `ac_cv_foo' will be assigned the
15467# following values.
15468
15469_ACEOF
15470
Bram Moolenaar071d4272004-06-13 20:20:40 +000015471# The following way of writing the cache mishandles newlines in values,
15472# but we know of no workaround that is simple, portable, and efficient.
15473# So, don't put newlines in cache variables' values.
15474# Ultrix sh set writes to stderr and can't be redirected directly,
15475# and sets the high bit in the cache file unless we assign to the vars.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015476{
15477 (set) 2>&1 |
15478 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15479 *ac_space=\ *)
15480 # `set' does not quote correctly, so add quotes (double-quote
15481 # substitution turns \\\\ into \\, and sed turns \\ into \).
15482 sed -n \
15483 "s/'/'\\\\''/g;
15484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15485 ;;
15486 *)
15487 # `set' quotes correctly as required by POSIX, so do not add quotes.
15488 sed -n \
15489 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15490 ;;
15491 esac;
15492} |
15493 sed '
15494 t clear
15495 : clear
15496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15497 t end
15498 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15499 : end' >>confcache
15500if diff $cache_file confcache >/dev/null 2>&1; then :; else
Bram Moolenaar071d4272004-06-13 20:20:40 +000015501 if test -w $cache_file; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015502 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15503 cat confcache >$cache_file
Bram Moolenaar071d4272004-06-13 20:20:40 +000015504 else
15505 echo "not updating unwritable cache $cache_file"
15506 fi
15507fi
15508rm -f confcache
15509
Bram Moolenaar071d4272004-06-13 20:20:40 +000015510test "x$prefix" = xNONE && prefix=$ac_default_prefix
15511# Let make expand exec_prefix.
15512test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15513
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015514# VPATH may cause trouble with some makes, so we remove $(srcdir),
15515# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15516# trailing colons and then remove the whole line if VPATH becomes empty
15517# (actually we leave an empty line to preserve line numbers).
Bram Moolenaar071d4272004-06-13 20:20:40 +000015518if test "x$srcdir" = x.; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015519 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15520s/:*\$(srcdir):*/:/;
15521s/:*\${srcdir}:*/:/;
15522s/:*@srcdir@:*/:/;
15523s/^\([^=]*=[ ]*\):*/\1/;
15524s/:*$//;
15525s/^[^=]*=[ ]*$//;
15526}'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015527fi
15528
Bram Moolenaar071d4272004-06-13 20:20:40 +000015529DEFS=-DHAVE_CONFIG_H
15530
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015531ac_libobjs=
15532ac_ltlibobjs=
15533for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15534 # 1. Remove the extension, and $U if already installed.
15535 ac_i=`echo "$ac_i" |
15536 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15537 # 2. Add them.
15538 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15539 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15540done
15541LIBOBJS=$ac_libobjs
15542
15543LTLIBOBJS=$ac_ltlibobjs
15544
15545
15546
Bram Moolenaar071d4272004-06-13 20:20:40 +000015547: ${CONFIG_STATUS=./config.status}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015548ac_clean_files_save=$ac_clean_files
15549ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15550{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15551echo "$as_me: creating $CONFIG_STATUS" >&6;}
15552cat >$CONFIG_STATUS <<_ACEOF
15553#! $SHELL
15554# Generated by $as_me.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015555# Run this file to recreate the current configuration.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015556# Compiler output produced by configure, useful for debugging
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015557# configure, is in config.log if it exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015558
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015559debug=false
15560ac_cs_recheck=false
15561ac_cs_silent=false
15562SHELL=\${CONFIG_SHELL-$SHELL}
15563_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015564
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015565cat >>$CONFIG_STATUS <<\_ACEOF
15566## --------------------- ##
15567## M4sh Initialization. ##
15568## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000015569
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015570# Be Bourne compatible
15571if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15572 emulate sh
15573 NULLCMD=:
15574 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15575 # is contrary to our usage. Disable this feature.
15576 alias -g '${1+"$@"}'='"$@"'
15577elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15578 set -o posix
Bram Moolenaar071d4272004-06-13 20:20:40 +000015579fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015580DUALCASE=1; export DUALCASE # for MKS sh
Bram Moolenaar071d4272004-06-13 20:20:40 +000015581
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015582# Support unset when possible.
15583if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15584 as_unset=unset
15585else
15586 as_unset=false
15587fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015588
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015589
15590# Work around bugs in pre-3.0 UWIN ksh.
15591$as_unset ENV MAIL MAILPATH
15592PS1='$ '
15593PS2='> '
15594PS4='+ '
15595
15596# NLS nuisances.
15597for as_var in \
15598 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15599 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15600 LC_TELEPHONE LC_TIME
15601do
15602 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15603 eval $as_var=C; export $as_var
15604 else
15605 $as_unset $as_var
15606 fi
15607done
15608
15609# Required to use basename.
15610if expr a : '\(a\)' >/dev/null 2>&1; then
15611 as_expr=expr
15612else
15613 as_expr=false
15614fi
15615
15616if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15617 as_basename=basename
15618else
15619 as_basename=false
15620fi
15621
15622
15623# Name of the executable.
15624as_me=`$as_basename "$0" ||
15625$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15626 X"$0" : 'X\(//\)$' \| \
15627 X"$0" : 'X\(/\)$' \| \
15628 . : '\(.\)' 2>/dev/null ||
15629echo X/"$0" |
15630 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15631 /^X\/\(\/\/\)$/{ s//\1/; q; }
15632 /^X\/\(\/\).*/{ s//\1/; q; }
15633 s/.*/./; q'`
15634
15635
15636# PATH needs CR, and LINENO needs CR and PATH.
15637# Avoid depending upon Character Ranges.
15638as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15639as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15640as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15641as_cr_digits='0123456789'
15642as_cr_alnum=$as_cr_Letters$as_cr_digits
15643
15644# The user is always right.
15645if test "${PATH_SEPARATOR+set}" != set; then
15646 echo "#! /bin/sh" >conf$$.sh
15647 echo "exit 0" >>conf$$.sh
15648 chmod +x conf$$.sh
15649 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15650 PATH_SEPARATOR=';'
15651 else
15652 PATH_SEPARATOR=:
15653 fi
15654 rm -f conf$$.sh
15655fi
15656
15657
15658 as_lineno_1=$LINENO
15659 as_lineno_2=$LINENO
15660 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15661 test "x$as_lineno_1" != "x$as_lineno_2" &&
15662 test "x$as_lineno_3" = "x$as_lineno_2" || {
15663 # Find who we are. Look in the path if we contain no path at all
15664 # relative or not.
15665 case $0 in
15666 *[\\/]* ) as_myself=$0 ;;
15667 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15668for as_dir in $PATH
15669do
15670 IFS=$as_save_IFS
15671 test -z "$as_dir" && as_dir=.
15672 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15673done
15674
15675 ;;
15676 esac
15677 # We did not find ourselves, most probably we were run as `sh COMMAND'
15678 # in which case we are not to be found in the path.
15679 if test "x$as_myself" = x; then
15680 as_myself=$0
15681 fi
15682 if test ! -f "$as_myself"; then
15683 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15684echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15685 { (exit 1); exit 1; }; }
15686 fi
15687 case $CONFIG_SHELL in
15688 '')
15689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15690for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15691do
15692 IFS=$as_save_IFS
15693 test -z "$as_dir" && as_dir=.
15694 for as_base in sh bash ksh sh5; do
15695 case $as_dir in
15696 /*)
15697 if ("$as_dir/$as_base" -c '
15698 as_lineno_1=$LINENO
15699 as_lineno_2=$LINENO
15700 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15701 test "x$as_lineno_1" != "x$as_lineno_2" &&
15702 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15703 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15704 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15705 CONFIG_SHELL=$as_dir/$as_base
15706 export CONFIG_SHELL
15707 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15708 fi;;
15709 esac
15710 done
15711done
15712;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015713 esac
15714
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015715 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15716 # uniformly replaced by the line number. The first 'sed' inserts a
15717 # line-number line before each line; the second 'sed' does the real
15718 # work. The second script uses 'N' to pair each line-number line
15719 # with the numbered line, and appends trailing '-' during
15720 # substitution so that $LINENO is not a special case at line end.
15721 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15722 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15723 sed '=' <$as_myself |
15724 sed '
15725 N
15726 s,$,-,
15727 : loop
15728 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15729 t loop
15730 s,-$,,
15731 s,^['$as_cr_digits']*\n,,
15732 ' >$as_me.lineno &&
15733 chmod +x $as_me.lineno ||
15734 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15735echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15736 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000015737
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015738 # Don't try to exec as it changes $[0], causing all sort of problems
15739 # (the dirname of $[0] is not the place where we might find the
15740 # original and so on. Autoconf is especially sensible to this).
15741 . ./$as_me.lineno
15742 # Exit status is that of the last command.
15743 exit
15744}
15745
15746
15747case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15748 *c*,-n*) ECHO_N= ECHO_C='
15749' ECHO_T=' ' ;;
15750 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15751 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15752esac
15753
15754if expr a : '\(a\)' >/dev/null 2>&1; then
15755 as_expr=expr
15756else
15757 as_expr=false
15758fi
15759
15760rm -f conf$$ conf$$.exe conf$$.file
15761echo >conf$$.file
15762if ln -s conf$$.file conf$$ 2>/dev/null; then
15763 # We could just check for DJGPP; but this test a) works b) is more generic
15764 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15765 if test -f conf$$.exe; then
15766 # Don't use ln at all; we don't have any links
15767 as_ln_s='cp -p'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015768 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015769 as_ln_s='ln -s'
15770 fi
15771elif ln conf$$.file conf$$ 2>/dev/null; then
15772 as_ln_s=ln
15773else
15774 as_ln_s='cp -p'
15775fi
15776rm -f conf$$ conf$$.exe conf$$.file
15777
15778if mkdir -p . 2>/dev/null; then
15779 as_mkdir_p=:
15780else
15781 test -d ./-p && rmdir ./-p
15782 as_mkdir_p=false
15783fi
15784
15785as_executable_p="test -f"
15786
15787# Sed expression to map a string onto a valid CPP name.
15788as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15789
15790# Sed expression to map a string onto a valid variable name.
15791as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15792
15793
15794# IFS
15795# We need space, tab and new line, in precisely that order.
15796as_nl='
15797'
15798IFS=" $as_nl"
15799
15800# CDPATH.
15801$as_unset CDPATH
15802
15803exec 6>&1
15804
15805# Open the log real soon, to keep \$[0] and so on meaningful, and to
15806# report actual input values of CONFIG_FILES etc. instead of their
15807# values after options handling. Logging --version etc. is OK.
Bram Moolenaarc7453f52006-02-10 23:20:28 +000015808exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015809{
15810 echo
15811 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15812## Running $as_me. ##
15813_ASBOX
15814} >&5
15815cat >&5 <<_CSEOF
15816
15817This file was extended by $as_me, which was
15818generated by GNU Autoconf 2.59. Invocation command line was
15819
15820 CONFIG_FILES = $CONFIG_FILES
15821 CONFIG_HEADERS = $CONFIG_HEADERS
15822 CONFIG_LINKS = $CONFIG_LINKS
15823 CONFIG_COMMANDS = $CONFIG_COMMANDS
15824 $ $0 $@
15825
15826_CSEOF
15827echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15828echo >&5
15829_ACEOF
15830
15831# Files that config.status was made for.
15832if test -n "$ac_config_files"; then
15833 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15834fi
15835
15836if test -n "$ac_config_headers"; then
15837 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15838fi
15839
15840if test -n "$ac_config_links"; then
15841 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15842fi
15843
15844if test -n "$ac_config_commands"; then
15845 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15846fi
15847
15848cat >>$CONFIG_STATUS <<\_ACEOF
15849
15850ac_cs_usage="\
15851\`$as_me' instantiates files from templates according to the
15852current configuration.
15853
15854Usage: $0 [OPTIONS] [FILE]...
15855
15856 -h, --help print this help, then exit
15857 -V, --version print version number, then exit
15858 -q, --quiet do not print progress messages
15859 -d, --debug don't remove temporary files
15860 --recheck update $as_me by reconfiguring in the same conditions
15861 --file=FILE[:TEMPLATE]
15862 instantiate the configuration file FILE
15863 --header=FILE[:TEMPLATE]
15864 instantiate the configuration header FILE
15865
15866Configuration files:
15867$config_files
15868
15869Configuration headers:
15870$config_headers
15871
15872Report bugs to <bug-autoconf@gnu.org>."
15873_ACEOF
15874
15875cat >>$CONFIG_STATUS <<_ACEOF
15876ac_cs_version="\\
15877config.status
15878configured by $0, generated by GNU Autoconf 2.59,
15879 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15880
15881Copyright (C) 2003 Free Software Foundation, Inc.
15882This config.status script is free software; the Free Software Foundation
15883gives unlimited permission to copy, distribute and modify it."
15884srcdir=$srcdir
15885_ACEOF
15886
15887cat >>$CONFIG_STATUS <<\_ACEOF
15888# If no file are specified by the user, then we need to provide default
15889# value. By we need to know if files were specified by the user.
15890ac_need_defaults=:
15891while test $# != 0
15892do
15893 case $1 in
15894 --*=*)
15895 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15896 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15897 ac_shift=:
15898 ;;
15899 -*)
15900 ac_option=$1
15901 ac_optarg=$2
15902 ac_shift=shift
15903 ;;
15904 *) # This is not an option, so the user has probably given explicit
15905 # arguments.
15906 ac_option=$1
15907 ac_need_defaults=false;;
15908 esac
15909
15910 case $ac_option in
15911 # Handling of the options.
15912_ACEOF
15913cat >>$CONFIG_STATUS <<\_ACEOF
15914 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15915 ac_cs_recheck=: ;;
15916 --version | --vers* | -V )
15917 echo "$ac_cs_version"; exit 0 ;;
15918 --he | --h)
15919 # Conflict between --help and --header
15920 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15921Try \`$0 --help' for more information." >&5
15922echo "$as_me: error: ambiguous option: $1
15923Try \`$0 --help' for more information." >&2;}
15924 { (exit 1); exit 1; }; };;
15925 --help | --hel | -h )
15926 echo "$ac_cs_usage"; exit 0 ;;
15927 --debug | --d* | -d )
15928 debug=: ;;
15929 --file | --fil | --fi | --f )
15930 $ac_shift
15931 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15932 ac_need_defaults=false;;
15933 --header | --heade | --head | --hea )
15934 $ac_shift
15935 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15936 ac_need_defaults=false;;
15937 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15938 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15939 ac_cs_silent=: ;;
15940
15941 # This is an error.
15942 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15943Try \`$0 --help' for more information." >&5
15944echo "$as_me: error: unrecognized option: $1
15945Try \`$0 --help' for more information." >&2;}
15946 { (exit 1); exit 1; }; } ;;
15947
15948 *) ac_config_targets="$ac_config_targets $1" ;;
15949
15950 esac
15951 shift
15952done
15953
15954ac_configure_extra_args=
15955
15956if $ac_cs_silent; then
15957 exec 6>/dev/null
15958 ac_configure_extra_args="$ac_configure_extra_args --silent"
15959fi
15960
15961_ACEOF
15962cat >>$CONFIG_STATUS <<_ACEOF
15963if \$ac_cs_recheck; then
15964 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15965 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15966fi
15967
15968_ACEOF
15969
15970
15971
15972
15973
15974cat >>$CONFIG_STATUS <<\_ACEOF
15975for ac_config_target in $ac_config_targets
15976do
15977 case "$ac_config_target" in
15978 # Handling of arguments.
15979 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15980 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15981 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15982echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15983 { (exit 1); exit 1; }; };;
15984 esac
15985done
15986
15987# If the user did not use the arguments to specify the items to instantiate,
15988# then the envvar interface is used. Set only those that are not.
15989# We use the long form for the default assignment because of an extremely
15990# bizarre bug on SunOS 4.1.3.
15991if $ac_need_defaults; then
15992 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15993 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15994fi
15995
15996# Have a temporary directory for convenience. Make it in the build tree
15997# simply because there is no reason to put it here, and in addition,
15998# creating and moving files from /tmp can sometimes cause problems.
15999# Create a temporary directory, and hook for its removal unless debugging.
16000$debug ||
16001{
16002 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16003 trap '{ (exit 1); exit 1; }' 1 2 13 15
16004}
16005
16006# Create a (secure) tmp directory for tmp files.
16007
16008{
16009 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16010 test -n "$tmp" && test -d "$tmp"
16011} ||
16012{
16013 tmp=./confstat$$-$RANDOM
16014 (umask 077 && mkdir $tmp)
16015} ||
16016{
16017 echo "$me: cannot create a temporary directory in ." >&2
16018 { (exit 1); exit 1; }
16019}
16020
16021_ACEOF
16022
16023cat >>$CONFIG_STATUS <<_ACEOF
16024
16025#
16026# CONFIG_FILES section.
16027#
16028
16029# No need to generate the scripts if there are no CONFIG_FILES.
16030# This happens for instance when ./config.status config.h
16031if test -n "\$CONFIG_FILES"; then
16032 # Protect against being on the right side of a sed subst in config.status.
16033 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16034 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16035s,@SHELL@,$SHELL,;t t
16036s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16037s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16038s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16039s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16040s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16041s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16042s,@exec_prefix@,$exec_prefix,;t t
16043s,@prefix@,$prefix,;t t
16044s,@program_transform_name@,$program_transform_name,;t t
16045s,@bindir@,$bindir,;t t
16046s,@sbindir@,$sbindir,;t t
16047s,@libexecdir@,$libexecdir,;t t
16048s,@datadir@,$datadir,;t t
16049s,@sysconfdir@,$sysconfdir,;t t
16050s,@sharedstatedir@,$sharedstatedir,;t t
16051s,@localstatedir@,$localstatedir,;t t
16052s,@libdir@,$libdir,;t t
16053s,@includedir@,$includedir,;t t
16054s,@oldincludedir@,$oldincludedir,;t t
16055s,@infodir@,$infodir,;t t
16056s,@mandir@,$mandir,;t t
16057s,@build_alias@,$build_alias,;t t
16058s,@host_alias@,$host_alias,;t t
16059s,@target_alias@,$target_alias,;t t
16060s,@DEFS@,$DEFS,;t t
16061s,@ECHO_C@,$ECHO_C,;t t
16062s,@ECHO_N@,$ECHO_N,;t t
16063s,@ECHO_T@,$ECHO_T,;t t
16064s,@LIBS@,$LIBS,;t t
16065s,@SET_MAKE@,$SET_MAKE,;t t
16066s,@CC@,$CC,;t t
16067s,@CFLAGS@,$CFLAGS,;t t
16068s,@LDFLAGS@,$LDFLAGS,;t t
16069s,@CPPFLAGS@,$CPPFLAGS,;t t
16070s,@ac_ct_CC@,$ac_ct_CC,;t t
16071s,@EXEEXT@,$EXEEXT,;t t
16072s,@OBJEXT@,$OBJEXT,;t t
16073s,@CPP@,$CPP,;t t
16074s,@EGREP@,$EGREP,;t t
16075s,@AWK@,$AWK,;t t
16076s,@STRIP@,$STRIP,;t t
16077s,@CPP_MM@,$CPP_MM,;t t
16078s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
16079s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
16080s,@VIMNAME@,$VIMNAME,;t t
16081s,@EXNAME@,$EXNAME,;t t
16082s,@VIEWNAME@,$VIEWNAME,;t t
16083s,@line_break@,$line_break,;t t
16084s,@dovimdiff@,$dovimdiff,;t t
16085s,@dogvimdiff@,$dogvimdiff,;t t
16086s,@compiledby@,$compiledby,;t t
16087s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
16088s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
16089s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
16090s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
16091s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
16092s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
16093s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
16094s,@vi_cv_perllib@,$vi_cv_perllib,;t t
16095s,@shrpenv@,$shrpenv,;t t
16096s,@PERL_SRC@,$PERL_SRC,;t t
16097s,@PERL_OBJ@,$PERL_OBJ,;t t
16098s,@PERL_PRO@,$PERL_PRO,;t t
16099s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
16100s,@PERL_LIBS@,$PERL_LIBS,;t t
16101s,@vi_cv_path_python@,$vi_cv_path_python,;t t
16102s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
16103s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
16104s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
16105s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
16106s,@PYTHON_SRC@,$PYTHON_SRC,;t t
16107s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
16108s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
16109s,@TCL_SRC@,$TCL_SRC,;t t
16110s,@TCL_OBJ@,$TCL_OBJ,;t t
16111s,@TCL_PRO@,$TCL_PRO,;t t
16112s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
16113s,@TCL_LIBS@,$TCL_LIBS,;t t
16114s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
16115s,@RUBY_SRC@,$RUBY_SRC,;t t
16116s,@RUBY_OBJ@,$RUBY_OBJ,;t t
16117s,@RUBY_PRO@,$RUBY_PRO,;t t
16118s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16119s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16120s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16121s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16122s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16123s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16124s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16125s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16126s,@xmkmfpath@,$xmkmfpath,;t t
16127s,@X_CFLAGS@,$X_CFLAGS,;t t
16128s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16129s,@X_LIBS@,$X_LIBS,;t t
16130s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16131s,@X_LIB@,$X_LIB,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016132s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16133s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16134s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16135s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16136s,@GTK_LIBS@,$GTK_LIBS,;t t
16137s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16138s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16139s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16140s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16141s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16142s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16143s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16144s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16145s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16146s,@GUITYPE@,$GUITYPE,;t t
16147s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16148s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16149s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16150s,@TAGPRG@,$TAGPRG,;t t
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000016151s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
16152s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016153s,@MSGFMT@,$MSGFMT,;t t
16154s,@MAKEMO@,$MAKEMO,;t t
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000016155s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016156s,@LIBOBJS@,$LIBOBJS,;t t
16157s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16158CEOF
16159
16160_ACEOF
16161
16162 cat >>$CONFIG_STATUS <<\_ACEOF
16163 # Split the substitutions into bite-sized pieces for seds with
16164 # small command number limits, like on Digital OSF/1 and HP-UX.
16165 ac_max_sed_lines=48
16166 ac_sed_frag=1 # Number of current file.
16167 ac_beg=1 # First line for current file.
16168 ac_end=$ac_max_sed_lines # Line after last line for current file.
16169 ac_more_lines=:
16170 ac_sed_cmds=
16171 while $ac_more_lines; do
16172 if test $ac_beg -gt 1; then
16173 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16174 else
16175 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16176 fi
16177 if test ! -s $tmp/subs.frag; then
16178 ac_more_lines=false
16179 else
16180 # The purpose of the label and of the branching condition is to
16181 # speed up the sed processing (if there are no `@' at all, there
16182 # is no need to browse any of the substitutions).
16183 # These are the two extra sed commands mentioned above.
16184 (echo ':t
16185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16186 if test -z "$ac_sed_cmds"; then
16187 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16188 else
16189 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16190 fi
16191 ac_sed_frag=`expr $ac_sed_frag + 1`
16192 ac_beg=$ac_end
16193 ac_end=`expr $ac_end + $ac_max_sed_lines`
16194 fi
16195 done
16196 if test -z "$ac_sed_cmds"; then
16197 ac_sed_cmds=cat
16198 fi
16199fi # test -n "$CONFIG_FILES"
16200
16201_ACEOF
16202cat >>$CONFIG_STATUS <<\_ACEOF
16203for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16204 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16205 case $ac_file in
16206 - | *:- | *:-:* ) # input from stdin
16207 cat >$tmp/stdin
16208 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16209 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16210 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16211 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16212 * ) ac_file_in=$ac_file.in ;;
16213 esac
16214
16215 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16216 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16217$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16218 X"$ac_file" : 'X\(//\)[^/]' \| \
16219 X"$ac_file" : 'X\(//\)$' \| \
16220 X"$ac_file" : 'X\(/\)' \| \
16221 . : '\(.\)' 2>/dev/null ||
16222echo X"$ac_file" |
16223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16224 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16225 /^X\(\/\/\)$/{ s//\1/; q; }
16226 /^X\(\/\).*/{ s//\1/; q; }
16227 s/.*/./; q'`
16228 { if $as_mkdir_p; then
16229 mkdir -p "$ac_dir"
16230 else
16231 as_dir="$ac_dir"
16232 as_dirs=
16233 while test ! -d "$as_dir"; do
16234 as_dirs="$as_dir $as_dirs"
16235 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16236$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16237 X"$as_dir" : 'X\(//\)[^/]' \| \
16238 X"$as_dir" : 'X\(//\)$' \| \
16239 X"$as_dir" : 'X\(/\)' \| \
16240 . : '\(.\)' 2>/dev/null ||
16241echo X"$as_dir" |
16242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16243 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16244 /^X\(\/\/\)$/{ s//\1/; q; }
16245 /^X\(\/\).*/{ s//\1/; q; }
16246 s/.*/./; q'`
16247 done
16248 test ! -n "$as_dirs" || mkdir $as_dirs
16249 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16250echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16251 { (exit 1); exit 1; }; }; }
16252
16253 ac_builddir=.
16254
16255if test "$ac_dir" != .; then
16256 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16257 # A "../" for each directory in $ac_dir_suffix.
16258 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16259else
16260 ac_dir_suffix= ac_top_builddir=
16261fi
16262
16263case $srcdir in
16264 .) # No --srcdir option. We are building in place.
16265 ac_srcdir=.
16266 if test -z "$ac_top_builddir"; then
16267 ac_top_srcdir=.
16268 else
16269 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16270 fi ;;
16271 [\\/]* | ?:[\\/]* ) # Absolute path.
16272 ac_srcdir=$srcdir$ac_dir_suffix;
16273 ac_top_srcdir=$srcdir ;;
16274 *) # Relative path.
16275 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16276 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16277esac
16278
16279# Do not use `cd foo && pwd` to compute absolute paths, because
16280# the directories may not exist.
16281case `pwd` in
16282.) ac_abs_builddir="$ac_dir";;
16283*)
16284 case "$ac_dir" in
16285 .) ac_abs_builddir=`pwd`;;
16286 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16287 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16288 esac;;
16289esac
16290case $ac_abs_builddir in
16291.) ac_abs_top_builddir=${ac_top_builddir}.;;
16292*)
16293 case ${ac_top_builddir}. in
16294 .) ac_abs_top_builddir=$ac_abs_builddir;;
16295 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16296 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16297 esac;;
16298esac
16299case $ac_abs_builddir in
16300.) ac_abs_srcdir=$ac_srcdir;;
16301*)
16302 case $ac_srcdir in
16303 .) ac_abs_srcdir=$ac_abs_builddir;;
16304 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16305 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16306 esac;;
16307esac
16308case $ac_abs_builddir in
16309.) ac_abs_top_srcdir=$ac_top_srcdir;;
16310*)
16311 case $ac_top_srcdir in
16312 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16313 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16314 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16315 esac;;
16316esac
16317
16318
16319
16320 if test x"$ac_file" != x-; then
16321 { echo "$as_me:$LINENO: creating $ac_file" >&5
16322echo "$as_me: creating $ac_file" >&6;}
16323 rm -f "$ac_file"
16324 fi
16325 # Let's still pretend it is `configure' which instantiates (i.e., don't
16326 # use $as_me), people would be surprised to read:
16327 # /* config.h. Generated by config.status. */
16328 if test x"$ac_file" = x-; then
16329 configure_input=
16330 else
16331 configure_input="$ac_file. "
16332 fi
16333 configure_input=$configure_input"Generated from `echo $ac_file_in |
16334 sed 's,.*/,,'` by configure."
16335
16336 # First look for the input files in the build tree, otherwise in the
16337 # src tree.
16338 ac_file_inputs=`IFS=:
16339 for f in $ac_file_in; do
16340 case $f in
16341 -) echo $tmp/stdin ;;
16342 [\\/$]*)
16343 # Absolute (can't be DOS-style, as IFS=:)
16344 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16345echo "$as_me: error: cannot find input file: $f" >&2;}
16346 { (exit 1); exit 1; }; }
16347 echo "$f";;
16348 *) # Relative
16349 if test -f "$f"; then
16350 # Build tree
16351 echo "$f"
16352 elif test -f "$srcdir/$f"; then
16353 # Source tree
16354 echo "$srcdir/$f"
16355 else
16356 # /dev/null tree
16357 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16358echo "$as_me: error: cannot find input file: $f" >&2;}
16359 { (exit 1); exit 1; }; }
16360 fi;;
16361 esac
16362 done` || { (exit 1); exit 1; }
16363_ACEOF
16364cat >>$CONFIG_STATUS <<_ACEOF
16365 sed "$ac_vpsub
16366$extrasub
16367_ACEOF
16368cat >>$CONFIG_STATUS <<\_ACEOF
16369:t
16370/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16371s,@configure_input@,$configure_input,;t t
16372s,@srcdir@,$ac_srcdir,;t t
16373s,@abs_srcdir@,$ac_abs_srcdir,;t t
16374s,@top_srcdir@,$ac_top_srcdir,;t t
16375s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16376s,@builddir@,$ac_builddir,;t t
16377s,@abs_builddir@,$ac_abs_builddir,;t t
16378s,@top_builddir@,$ac_top_builddir,;t t
16379s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16380" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16381 rm -f $tmp/stdin
16382 if test x"$ac_file" != x-; then
16383 mv $tmp/out $ac_file
16384 else
16385 cat $tmp/out
16386 rm -f $tmp/out
Bram Moolenaar071d4272004-06-13 20:20:40 +000016387 fi
16388
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016389done
16390_ACEOF
16391cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016392
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016393#
16394# CONFIG_HEADER section.
16395#
Bram Moolenaar071d4272004-06-13 20:20:40 +000016396
16397# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16398# NAME is the cpp macro being defined and VALUE is the value it is being given.
16399#
16400# ac_d sets the value in "#define NAME VALUE" lines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016401ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16402ac_dB='[ ].*$,\1#\2'
16403ac_dC=' '
16404ac_dD=',;t'
16405# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16406ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16407ac_uB='$,\1#\2define\3'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016408ac_uC=' '
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016409ac_uD=',;t'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016410
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016411for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Bram Moolenaar071d4272004-06-13 20:20:40 +000016412 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016413 case $ac_file in
16414 - | *:- | *:-:* ) # input from stdin
16415 cat >$tmp/stdin
16416 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16417 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16418 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16419 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16420 * ) ac_file_in=$ac_file.in ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000016421 esac
16422
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016423 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16424echo "$as_me: creating $ac_file" >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +000016425
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016426 # First look for the input files in the build tree, otherwise in the
16427 # src tree.
16428 ac_file_inputs=`IFS=:
16429 for f in $ac_file_in; do
16430 case $f in
16431 -) echo $tmp/stdin ;;
16432 [\\/$]*)
16433 # Absolute (can't be DOS-style, as IFS=:)
16434 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16435echo "$as_me: error: cannot find input file: $f" >&2;}
16436 { (exit 1); exit 1; }; }
16437 # Do quote $f, to prevent DOS paths from being IFS'd.
16438 echo "$f";;
16439 *) # Relative
16440 if test -f "$f"; then
16441 # Build tree
16442 echo "$f"
16443 elif test -f "$srcdir/$f"; then
16444 # Source tree
16445 echo "$srcdir/$f"
16446 else
16447 # /dev/null tree
16448 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16449echo "$as_me: error: cannot find input file: $f" >&2;}
16450 { (exit 1); exit 1; }; }
16451 fi;;
16452 esac
16453 done` || { (exit 1); exit 1; }
16454 # Remove the trailing spaces.
16455 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Bram Moolenaar071d4272004-06-13 20:20:40 +000016456
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016457_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016458
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016459# Transform confdefs.h into two sed scripts, `conftest.defines' and
16460# `conftest.undefs', that substitutes the proper values into
16461# config.h.in to produce config.h. The first handles `#define'
16462# templates, and the second `#undef' templates.
16463# And first: Protect against being on the right side of a sed subst in
16464# config.status. Protect against being in an unquoted here document
16465# in config.status.
16466rm -f conftest.defines conftest.undefs
16467# Using a here document instead of a string reduces the quoting nightmare.
16468# Putting comments in sed scripts is not portable.
16469#
16470# `end' is used to avoid that the second main sed command (meant for
16471# 0-ary CPP macros) applies to n-ary macro definitions.
16472# See the Autoconf documentation for `clear'.
16473cat >confdef2sed.sed <<\_ACEOF
16474s/[\\&,]/\\&/g
16475s,[\\$`],\\&,g
16476t clear
16477: clear
16478s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16479t end
16480s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16481: end
16482_ACEOF
16483# If some macros were called several times there might be several times
16484# the same #defines, which is useless. Nevertheless, we may not want to
16485# sort them, since we want the *last* AC-DEFINE to be honored.
16486uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16487sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16488rm -f confdef2sed.sed
Bram Moolenaar071d4272004-06-13 20:20:40 +000016489
16490# This sed command replaces #undef with comments. This is necessary, for
16491# example, in the case of _POSIX_SOURCE, which is predefined and required
16492# on some systems where configure will not decide to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016493cat >>conftest.undefs <<\_ACEOF
16494s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16495_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016496
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016497# Break up conftest.defines because some shells have a limit on the size
16498# of here documents, and old seds have small limits too (100 cmds).
16499echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16500echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16501echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16502echo ' :' >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016503rm -f conftest.tail
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016504while grep . conftest.defines >/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +000016505do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016506 # Write a limited-size here document to $tmp/defines.sed.
16507 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16508 # Speed up: don't consider the non `#define' lines.
16509 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16510 # Work around the forget-to-reset-the-flag bug.
16511 echo 't clr' >>$CONFIG_STATUS
16512 echo ': clr' >>$CONFIG_STATUS
16513 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016514 echo 'CEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016515 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16516 rm -f $tmp/in
16517 mv $tmp/out $tmp/in
16518' >>$CONFIG_STATUS
16519 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16520 rm -f conftest.defines
16521 mv conftest.tail conftest.defines
Bram Moolenaar071d4272004-06-13 20:20:40 +000016522done
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016523rm -f conftest.defines
16524echo ' fi # grep' >>$CONFIG_STATUS
16525echo >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016526
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016527# Break up conftest.undefs because some shells have a limit on the size
16528# of here documents, and old seds have small limits too (100 cmds).
16529echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16530rm -f conftest.tail
16531while grep . conftest.undefs >/dev/null
16532do
16533 # Write a limited-size here document to $tmp/undefs.sed.
16534 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16535 # Speed up: don't consider the non `#undef'
16536 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16537 # Work around the forget-to-reset-the-flag bug.
16538 echo 't clr' >>$CONFIG_STATUS
16539 echo ': clr' >>$CONFIG_STATUS
16540 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16541 echo 'CEOF
16542 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16543 rm -f $tmp/in
16544 mv $tmp/out $tmp/in
16545' >>$CONFIG_STATUS
16546 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16547 rm -f conftest.undefs
16548 mv conftest.tail conftest.undefs
16549done
16550rm -f conftest.undefs
16551
16552cat >>$CONFIG_STATUS <<\_ACEOF
16553 # Let's still pretend it is `configure' which instantiates (i.e., don't
16554 # use $as_me), people would be surprised to read:
16555 # /* config.h. Generated by config.status. */
16556 if test x"$ac_file" = x-; then
16557 echo "/* Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016558 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016559 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016560 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016561 cat $tmp/in >>$tmp/config.h
16562 rm -f $tmp/in
16563 if test x"$ac_file" != x-; then
16564 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16565 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16566echo "$as_me: $ac_file is unchanged" >&6;}
16567 else
16568 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16569$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16570 X"$ac_file" : 'X\(//\)[^/]' \| \
16571 X"$ac_file" : 'X\(//\)$' \| \
16572 X"$ac_file" : 'X\(/\)' \| \
16573 . : '\(.\)' 2>/dev/null ||
16574echo X"$ac_file" |
16575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16576 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16577 /^X\(\/\/\)$/{ s//\1/; q; }
16578 /^X\(\/\).*/{ s//\1/; q; }
16579 s/.*/./; q'`
16580 { if $as_mkdir_p; then
16581 mkdir -p "$ac_dir"
16582 else
16583 as_dir="$ac_dir"
16584 as_dirs=
16585 while test ! -d "$as_dir"; do
16586 as_dirs="$as_dir $as_dirs"
16587 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16588$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16589 X"$as_dir" : 'X\(//\)[^/]' \| \
16590 X"$as_dir" : 'X\(//\)$' \| \
16591 X"$as_dir" : 'X\(/\)' \| \
16592 . : '\(.\)' 2>/dev/null ||
16593echo X"$as_dir" |
16594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16596 /^X\(\/\/\)$/{ s//\1/; q; }
16597 /^X\(\/\).*/{ s//\1/; q; }
16598 s/.*/./; q'`
16599 done
16600 test ! -n "$as_dirs" || mkdir $as_dirs
16601 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16602echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16603 { (exit 1); exit 1; }; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000016604
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016605 rm -f $ac_file
16606 mv $tmp/config.h $ac_file
16607 fi
16608 else
16609 cat $tmp/config.h
16610 rm -f $tmp/config.h
16611 fi
16612done
16613_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016614
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016615cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016616
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016617{ (exit 0); exit 0; }
16618_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016619chmod +x $CONFIG_STATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016620ac_clean_files=$ac_clean_files_save
16621
16622
16623# configure is writing to config.log, and then calls config.status.
16624# config.status does its own redirection, appending to config.log.
16625# Unfortunately, on DOS this fails, as config.log is still kept open
16626# by configure, so config.status won't be able to write to it; its
16627# output is simply discarded. So we exec the FD to /dev/null,
16628# effectively closing config.log, so it can be properly (re)opened and
16629# appended to by config.status. When coming back to configure, we
16630# need to make the FD available again.
16631if test "$no_create" != yes; then
16632 ac_cs_success=:
16633 ac_config_status_args=
16634 test "$silent" = yes &&
16635 ac_config_status_args="$ac_config_status_args --quiet"
16636 exec 5>/dev/null
16637 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Bram Moolenaarc7453f52006-02-10 23:20:28 +000016638 exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016639 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16640 # would make configure fail if this is the last instruction.
16641 $ac_cs_success || { (exit 1); exit 1; }
16642fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000016643
16644