blob: 20668eb29439c733dd5cd21bac137575de4dc0be [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 Moolenaara23ccb82006-02-27 00:08:02 +0000879 --with-mac-arch=ARCH 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 Moolenaar32466aa2006-02-24 23:53:04 +00002784 gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\(darwin.[^0-9]*\)*\([0-9]\.[0-9.]*\).*$/\2/g'`
Bram Moolenaara5792f52005-11-23 21:25:05 +00002785 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002786 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"'
Bram Moolenaar071d4272004-06-13 20:20:40 +00002787 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2788 else
2789 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2790 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2791 CFLAGS="$CFLAGS -fno-strength-reduce"
2792 fi
2793 fi
2794fi
2795
2796if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002797 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2798 (cross compiling doesn't work)" >&5
2799echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2800 (cross compiling doesn't work)" >&2;}
2801 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00002802fi
2803
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002804test "$GCC" = yes && CPP_MM=M;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002805
2806if test -f ./toolcheck; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002807 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2808echo "$as_me: checking for buggy tools..." >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +00002809 sh ./toolcheck 1>&6
2810fi
2811
2812OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2813
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002814echo "$as_me:$LINENO: checking for BeOS" >&5
2815echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002816case `uname` in
2817 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002818 BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2819echo "${ECHO_T}yes" >&6;;
2820 *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2821echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002822esac
2823
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002824echo "$as_me:$LINENO: checking for QNX" >&5
2825echo $ECHO_N "checking for QNX... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002826case `uname` in
2827 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2828 test -z "$with_x" && with_x=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002829 QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2830echo "${ECHO_T}yes" >&6;;
2831 *) QNX=no; echo "$as_me:$LINENO: result: no" >&5
2832echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002833esac
2834
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002835echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2836echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002837if test "`(uname) 2>/dev/null`" = Darwin; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002838 echo "$as_me:$LINENO: result: yes" >&5
2839echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002840
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002841 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2842echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002843 # Check whether --enable-darwin or --disable-darwin was given.
2844if test "${enable_darwin+set}" = set; then
2845 enableval="$enable_darwin"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002846
Bram Moolenaar071d4272004-06-13 20:20:40 +00002847else
2848 enable_darwin="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002849fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002850 if test "$enable_darwin" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002851 echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
2853 echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2854echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002855 if test -f os_macosx.c; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002856 echo "$as_me:$LINENO: result: yes" >&5
2857echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002858 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002859 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2860echo "${ECHO_T}no, Darwin support disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002861 enable_darwin=no
2862 fi
2863 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002864 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2865echo "${ECHO_T}yes, Darwin support excluded" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002866 fi
2867
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002868 echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
2869echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6
2870
2871# Check whether --with-mac-arch or --without-mac-arch was given.
2872if test "${with_mac_arch+set}" = set; then
2873 withval="$with_mac_arch"
2874 MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5
2875echo "${ECHO_T}$MACARCH" >&6
2876else
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002877 MACARCH="both"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
2878echo "${ECHO_T}defaulting to $MACARCH" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002879fi;
2880
2881 if test "x$MACARCH" = "xboth"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002882 echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
2883echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6
2884 save_cppflags="$CPPFLAGS"
2885 save_cflags="$CFLAGS"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002886 save_ldflags="$LDFLAGS"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002887 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002888 cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h. */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h. */
2894
2895int
2896main ()
2897{
2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903rm -f conftest.$ac_objext conftest$ac_exeext
2904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2905 (eval $ac_link) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest$ac_exeext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002925 echo "$as_me:$LINENO: result: found" >&5
2926echo "${ECHO_T}found" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002927else
2928 echo "$as_me: failed program was:" >&5
2929sed 's/^/| /' conftest.$ac_ext >&5
2930
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002931echo "$as_me:$LINENO: result: not found" >&5
2932echo "${ECHO_T}not found" >&6
Bram Moolenaar1f35bf92006-03-07 22:38:47 +00002933 CFLAGS="$save_cflags"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002934 echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002935echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002936 CPPFLAGS="$CPPFLAGS -arch i386"
2937 LDFLAGS="$save_ldflags -arch i386"
2938 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002939/* confdefs.h. */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h. */
2944
2945int
2946main ()
2947{
2948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953rm -f conftest.$ac_objext conftest$ac_exeext
2954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2955 (eval $ac_link) 2>conftest.er1
2956 ac_status=$?
2957 grep -v '^ *+' conftest.er1 >conftest.err
2958 rm -f conftest.er1
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -z "$ac_c_werror_flag"
2963 || test ! -s conftest.err'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 (eval $ac_try) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; } &&
2969 { ac_try='test -s conftest$ac_exeext'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 (eval $ac_try) 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 echo "$as_me:$LINENO: result: yes" >&5
2976echo "${ECHO_T}yes" >&6; MACARCH="intel"
2977else
2978 echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981echo "$as_me:$LINENO: result: no" >&5
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002982echo "${ECHO_T}no" >&6
2983 MACARCH="ppc"
2984 CPPFLAGS="$save_cppflags -arch ppc"
2985 LDFLAGS="$save_ldflags -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002986fi
2987rm -f conftest.err conftest.$ac_objext \
2988 conftest$ac_exeext conftest.$ac_ext
2989fi
2990rm -f conftest.err conftest.$ac_objext \
2991 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002992 elif test "x$MACARCH" = "xintel"; then
2993 CPPFLAGS="$CPPFLAGS -arch intel"
2994 LDFLAGS="$LDFLAGS -arch intel"
2995 else
2996 CPPFLAGS="$CPPFLAGS -arch ppc"
2997 LDFLAGS="$LDFLAGS -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002998 fi
2999
Bram Moolenaar071d4272004-06-13 20:20:40 +00003000 if test "$enable_darwin" = "yes"; then
3001 MACOSX=yes
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003002 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3003 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003004 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3005 if test "x$MACARCH" = "xboth"; then
3006 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3007 else
3008 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3009 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00003010
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003011 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3012echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3013if test "${ac_cv_header_stdc+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003015else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003016 cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */
3022#include <stdlib.h>
3023#include <stdarg.h>
3024#include <string.h>
3025#include <float.h>
3026
3027int
3028main ()
3029{
3030
3031 ;
3032 return 0;
3033}
3034_ACEOF
3035rm -f conftest.$ac_objext
3036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3037 (eval $ac_compile) 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -z "$ac_c_werror_flag"
3045 || test ! -s conftest.err'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 ac_cv_header_stdc=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003058else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003059 echo "$as_me: failed program was:" >&5
3060sed 's/^/| /' conftest.$ac_ext >&5
3061
3062ac_cv_header_stdc=no
3063fi
3064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3065
3066if test $ac_cv_header_stdc = yes; then
3067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3068 cat >conftest.$ac_ext <<_ACEOF
3069/* confdefs.h. */
3070_ACEOF
3071cat confdefs.h >>conftest.$ac_ext
3072cat >>conftest.$ac_ext <<_ACEOF
3073/* end confdefs.h. */
3074#include <string.h>
3075
3076_ACEOF
3077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3078 $EGREP "memchr" >/dev/null 2>&1; then
3079 :
3080else
3081 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003082fi
3083rm -f conftest*
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003084
Bram Moolenaar071d4272004-06-13 20:20:40 +00003085fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003086
3087if test $ac_cv_header_stdc = yes; then
3088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3089 cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h. */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h. */
3095#include <stdlib.h>
3096
3097_ACEOF
3098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3099 $EGREP "free" >/dev/null 2>&1; then
3100 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00003101else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003102 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003103fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003104rm -f conftest*
3105
3106fi
3107
3108if test $ac_cv_header_stdc = yes; then
3109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3110 if test "$cross_compiling" = yes; then
3111 :
3112else
3113 cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
3119#include <ctype.h>
3120#if ((' ' & 0x0FF) == 0x020)
3121# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3122# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3123#else
3124# define ISLOWER(c) \
3125 (('a' <= (c) && (c) <= 'i') \
3126 || ('j' <= (c) && (c) <= 'r') \
3127 || ('s' <= (c) && (c) <= 'z'))
3128# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3129#endif
3130
3131#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3132int
3133main ()
3134{
3135 int i;
3136 for (i = 0; i < 256; i++)
3137 if (XOR (islower (i), ISLOWER (i))
3138 || toupper (i) != TOUPPER (i))
3139 exit(2);
3140 exit (0);
3141}
3142_ACEOF
3143rm -f conftest$ac_exeext
3144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3145 (eval $ac_link) 2>&5
3146 ac_status=$?
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3150 (eval $ac_try) 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3154 :
3155else
3156 echo "$as_me: program exited with status $ac_status" >&5
3157echo "$as_me: failed program was:" >&5
3158sed 's/^/| /' conftest.$ac_ext >&5
3159
3160( exit $ac_status )
3161ac_cv_header_stdc=no
3162fi
3163rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3164fi
3165fi
3166fi
3167echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3168echo "${ECHO_T}$ac_cv_header_stdc" >&6
3169if test $ac_cv_header_stdc = yes; then
3170
3171cat >>confdefs.h <<\_ACEOF
3172#define STDC_HEADERS 1
3173_ACEOF
3174
3175fi
3176
3177# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3188 inttypes.h stdint.h unistd.h
3189do
3190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3191echo "$as_me:$LINENO: checking for $ac_header" >&5
3192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3193if eval "test \"\${$as_ac_Header+set}\" = set"; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196 cat >conftest.$ac_ext <<_ACEOF
3197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
3202$ac_includes_default
3203
3204#include <$ac_header>
3205_ACEOF
3206rm -f conftest.$ac_objext
3207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3208 (eval $ac_compile) 2>conftest.er1
3209 ac_status=$?
3210 grep -v '^ *+' conftest.er1 >conftest.err
3211 rm -f conftest.er1
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } &&
3215 { ac_try='test -z "$ac_c_werror_flag"
3216 || test ! -s conftest.err'
3217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 (eval $ac_try) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3224 (eval $ac_try) 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3228 eval "$as_ac_Header=yes"
3229else
3230 echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233eval "$as_ac_Header=no"
3234fi
3235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3236fi
3237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3239if test `eval echo '${'$as_ac_Header'}'` = yes; then
3240 cat >>confdefs.h <<_ACEOF
3241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3242_ACEOF
3243
3244fi
3245
3246done
3247
3248
3249if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3250 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3251echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3252if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254fi
3255echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3256echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3257else
3258 # Is the header compilable?
3259echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3260echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3261cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h. */
3267$ac_includes_default
3268#include <Carbon/Carbon.h>
3269_ACEOF
3270rm -f conftest.$ac_objext
3271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272 (eval $ac_compile) 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } &&
3279 { ac_try='test -z "$ac_c_werror_flag"
3280 || test ! -s conftest.err'
3281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 (eval $ac_try) 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; } &&
3286 { ac_try='test -s conftest.$ac_objext'
3287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 (eval $ac_try) 2>&5
3289 ac_status=$?
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 ac_header_compiler=yes
3293else
3294 echo "$as_me: failed program was:" >&5
3295sed 's/^/| /' conftest.$ac_ext >&5
3296
3297ac_header_compiler=no
3298fi
3299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3300echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3301echo "${ECHO_T}$ac_header_compiler" >&6
3302
3303# Is the header present?
3304echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3305echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3306cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h. */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h. */
3312#include <Carbon/Carbon.h>
3313_ACEOF
3314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3316 ac_status=$?
3317 grep -v '^ *+' conftest.er1 >conftest.err
3318 rm -f conftest.er1
3319 cat conftest.err >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); } >/dev/null; then
3322 if test -s conftest.err; then
3323 ac_cpp_err=$ac_c_preproc_warn_flag
3324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3325 else
3326 ac_cpp_err=
3327 fi
3328else
3329 ac_cpp_err=yes
3330fi
3331if test -z "$ac_cpp_err"; then
3332 ac_header_preproc=yes
3333else
3334 echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337 ac_header_preproc=no
3338fi
3339rm -f conftest.err conftest.$ac_ext
3340echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3341echo "${ECHO_T}$ac_header_preproc" >&6
3342
3343# So? What about this header?
3344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3345 yes:no: )
3346 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3347echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3348 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3349echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3350 ac_header_preproc=yes
3351 ;;
3352 no:yes:* )
3353 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3354echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3355 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
3356echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
3357 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3358echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3359 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
3360echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
3361 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3362echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3363 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3364echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3365 (
3366 cat <<\_ASBOX
3367## ------------------------------------------ ##
3368## Report this to the AC_PACKAGE_NAME lists. ##
3369## ------------------------------------------ ##
3370_ASBOX
3371 ) |
3372 sed "s/^/$as_me: WARNING: /" >&2
3373 ;;
3374esac
3375echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3376echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3377if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379else
3380 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3381fi
3382echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3383echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3384
3385fi
3386if test $ac_cv_header_Carbon_Carbon_h = yes; then
3387 CARBON=yes
3388fi
3389
Bram Moolenaar071d4272004-06-13 20:20:40 +00003390
3391 if test "x$CARBON" = "xyes"; then
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003392 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 +00003393 with_x=no
Bram Moolenaarefd2bf12006-03-16 21:41:35 +00003394
3395 if test x$prefix = xNONE; then
3396 prefix=/Applications
3397 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00003398 fi
3399 fi
3400 fi
Bram Moolenaara23ccb82006-02-27 00:08:02 +00003401
Bram Moolenaarfd2ac762006-03-01 22:09:21 +00003402 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003403 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'`
3404 fi
3405
Bram Moolenaar071d4272004-06-13 20:20:40 +00003406else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003407 echo "$as_me:$LINENO: result: no" >&5
3408echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003409fi
3410
3411
3412
3413
3414have_local_include=''
3415have_local_lib=''
3416if test "$GCC" = yes; then
3417 echo 'void f(){}' > conftest.c
3418 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3419 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3420 rm -f conftest.c conftest.o
3421fi
3422if test -z "$have_local_lib" -a -d /usr/local/lib; then
3423 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3424 if test "$tt" = "$LDFLAGS"; then
3425 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3426 fi
3427fi
3428if test -z "$have_local_include" -a -d /usr/local/include; then
3429 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3430 if test "$tt" = "$CPPFLAGS"; then
3431 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3432 fi
3433fi
3434
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003435echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3436echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3437
Bram Moolenaar071d4272004-06-13 20:20:40 +00003438# Check whether --with-vim-name or --without-vim-name was given.
3439if test "${with_vim_name+set}" = set; then
3440 withval="$with_vim_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003441 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3442echo "${ECHO_T}$VIMNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003443else
Bram Moolenaare344bea2005-09-01 20:46:49 +00003444 VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003445echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3446fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003447
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003448echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3449echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003450
Bram Moolenaar071d4272004-06-13 20:20:40 +00003451# Check whether --with-ex-name or --without-ex-name was given.
3452if test "${with_ex_name+set}" = set; then
3453 withval="$with_ex_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003454 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3455echo "${ECHO_T}$EXNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003456else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003457 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3458echo "${ECHO_T}Defaulting to ex" >&6
3459fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003460
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003461echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3462echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003463
Bram Moolenaar071d4272004-06-13 20:20:40 +00003464# Check whether --with-view-name or --without-view-name was given.
3465if test "${with_view_name+set}" = set; then
3466 withval="$with_view_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003467 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3468echo "${ECHO_T}$VIEWNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003469else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003470 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3471echo "${ECHO_T}Defaulting to view" >&6
3472fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003473
3474
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003475echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3476echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003477
Bram Moolenaar071d4272004-06-13 20:20:40 +00003478# Check whether --with-global-runtime or --without-global-runtime was given.
3479if test "${with_global_runtime+set}" = set; then
3480 withval="$with_global_runtime"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003481 echo "$as_me:$LINENO: result: $withval" >&5
3482echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003483#define RUNTIME_GLOBAL "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003484_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003485
3486else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003487 echo "$as_me:$LINENO: result: no" >&5
3488echo "${ECHO_T}no" >&6
3489fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003490
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003491echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3492echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003493
Bram Moolenaar071d4272004-06-13 20:20:40 +00003494# Check whether --with-modified-by or --without-modified-by was given.
3495if test "${with_modified_by+set}" = set; then
3496 withval="$with_modified_by"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003497 echo "$as_me:$LINENO: result: $withval" >&5
3498echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003499#define MODIFIED_BY "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003500_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003501
3502else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003503 echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003506
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003507echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3508echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3509cat >conftest.$ac_ext <<_ACEOF
3510/* confdefs.h. */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
3514/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003515
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003516int
3517main ()
3518{
Bram Moolenaar071d4272004-06-13 20:20:40 +00003519 /* TryCompile function for CharSet.
3520 Treat any failure as ASCII for compatibility with existing art.
3521 Use compile-time rather than run-time tests for cross-compiler
3522 tolerance. */
3523#if '0'!=240
3524make an error "Character set is not EBCDIC"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003525#endif
3526 ;
3527 return 0;
3528}
3529_ACEOF
3530rm -f conftest.$ac_objext
3531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>conftest.er1
3533 ac_status=$?
3534 grep -v '^ *+' conftest.er1 >conftest.err
3535 rm -f conftest.er1
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -z "$ac_c_werror_flag"
3540 || test ! -s conftest.err'
3541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542 (eval $ac_try) 2>&5
3543 ac_status=$?
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; } &&
3546 { ac_try='test -s conftest.$ac_objext'
3547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548 (eval $ac_try) 2>&5
3549 ac_status=$?
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00003552 # TryCompile action if true
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003553cf_cv_ebcdic=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003554else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003555 echo "$as_me: failed program was:" >&5
3556sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 # TryCompile action if false
Bram Moolenaar071d4272004-06-13 20:20:40 +00003559cf_cv_ebcdic=no
3560fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003562# end of TryCompile ])
3563# end of CacheVal CvEbcdic
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003564echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3565echo "${ECHO_T}$cf_cv_ebcdic" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003566case "$cf_cv_ebcdic" in #(vi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003567 yes) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003568#define EBCDIC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003569_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003570
3571 line_break='"\\n"'
3572 ;;
3573 *) line_break='"\\012"';;
3574esac
3575
3576
3577if test "$cf_cv_ebcdic" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003578echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3579echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003580case `uname` in
3581 OS/390) OS390Unix="yes";
3582 if test "$CC" = "cc"; then
3583 ccm="$_CC_CCMODE"
3584 ccn="CC"
3585 else
3586 if test "$CC" = "c89"; then
3587 ccm="$_CC_C89MODE"
3588 ccn="C89"
3589 else
3590 ccm=1
3591 fi
3592 fi
3593 if test "$ccm" != "1"; then
3594 echo ""
3595 echo "------------------------------------------"
3596 echo " On OS/390 Unix, the environment variable"
3597 echo " __CC_${ccn}MODE must be set to \"1\"!"
3598 echo " Do:"
3599 echo " export _CC_${ccn}MODE=1"
3600 echo " and then call configure again."
3601 echo "------------------------------------------"
3602 exit 1
3603 fi
3604 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003605 echo "$as_me:$LINENO: result: yes" >&5
3606echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003607 ;;
3608 *) OS390Unix="no";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003609 echo "$as_me:$LINENO: result: no" >&5
3610echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003611 ;;
3612esac
3613fi
3614
3615
3616
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003617echo "$as_me:$LINENO: checking --with-features argument" >&5
3618echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3619
Bram Moolenaar071d4272004-06-13 20:20:40 +00003620# Check whether --with-features or --without-features was given.
3621if test "${with_features+set}" = set; then
3622 withval="$with_features"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003623 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3624echo "${ECHO_T}$features" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003625else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003626 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3627echo "${ECHO_T}Defaulting to normal" >&6
3628fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003629
3630dovimdiff=""
3631dogvimdiff=""
3632case "$features" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003633 tiny) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003634#define FEAT_TINY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003635_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003636 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003637 small) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003638#define FEAT_SMALL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003639_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003640 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003641 normal) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003642#define FEAT_NORMAL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003643_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003644 dovimdiff="installvimdiff";
3645 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003646 big) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003647#define FEAT_BIG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003648_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003649 dovimdiff="installvimdiff";
3650 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003651 huge) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003652#define FEAT_HUGE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003653_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003654 dovimdiff="installvimdiff";
3655 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003656 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3657echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003658esac
3659
3660
3661
3662
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003663echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3664echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3665
Bram Moolenaar071d4272004-06-13 20:20:40 +00003666# Check whether --with-compiledby or --without-compiledby was given.
3667if test "${with_compiledby+set}" = set; then
3668 withval="$with_compiledby"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003669 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3670echo "${ECHO_T}$withval" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003671else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003672 compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3673echo "${ECHO_T}no" >&6
3674fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003675
3676
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003677echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3678echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003679# Check whether --enable-xsmp or --disable-xsmp was given.
3680if test "${enable_xsmp+set}" = set; then
3681 enableval="$enable_xsmp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003682
Bram Moolenaar071d4272004-06-13 20:20:40 +00003683else
3684 enable_xsmp="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003685fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003686
3687if test "$enable_xsmp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003688 echo "$as_me:$LINENO: result: no" >&5
3689echo "${ECHO_T}no" >&6
3690 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3691echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003692 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3693if test "${enable_xsmp_interact+set}" = set; then
3694 enableval="$enable_xsmp_interact"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003695
Bram Moolenaar071d4272004-06-13 20:20:40 +00003696else
3697 enable_xsmp_interact="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003698fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003699 if test "$enable_xsmp_interact" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003700 echo "$as_me:$LINENO: result: no" >&5
3701echo "${ECHO_T}no" >&6
3702 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003703#define USE_XSMP_INTERACT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003704_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003705
3706 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003707 echo "$as_me:$LINENO: result: yes" >&5
3708echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003709 fi
3710else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003711 echo "$as_me:$LINENO: result: yes" >&5
3712echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003713fi
3714
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003715echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3716echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003717# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3718if test "${enable_mzschemeinterp+set}" = set; then
3719 enableval="$enable_mzschemeinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003720
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003721else
3722 enable_mzschemeinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003723fi;
3724echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3725echo "${ECHO_T}$enable_mzschemeinterp" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003726
3727if test "$enable_mzschemeinterp" = "yes"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003728
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003729
3730 echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3731echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3732
3733# Check whether --with-plthome or --without-plthome was given.
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003734if test "${with_plthome+set}" = set; then
3735 withval="$with_plthome"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003736 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3737echo "${ECHO_T}$with_plthome" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003738else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003739 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3740echo "${ECHO_T}\"no\"" >&6
3741fi;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003742
3743 if test "X$with_plthome" != "X"; then
3744 vi_cv_path_mzscheme_pfx="$with_plthome"
3745 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003746 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3747echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003748 if test "X$PLTHOME" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003749 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3750echo "${ECHO_T}\"$PLTHOME\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003751 vi_cv_path_mzscheme_pfx="$PLTHOME"
3752 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003753 echo "$as_me:$LINENO: result: \"not set\"" >&5
3754echo "${ECHO_T}\"not set\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003755 # Extract the first word of "mzscheme", so it can be a program name with args.
3756set dummy mzscheme; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003757echo "$as_me:$LINENO: checking for $ac_word" >&5
3758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3759if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003761else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003762 case $vi_cv_path_mzscheme in
3763 [\\/]* | ?:[\\/]*)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003764 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3765 ;;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003766 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3774 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778done
3779done
3780
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003781 ;;
3782esac
3783fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003784vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3785
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003786if test -n "$vi_cv_path_mzscheme"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003787 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3788echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003789else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003790 echo "$as_me:$LINENO: result: no" >&5
3791echo "${ECHO_T}no" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003792fi
3793
3794
3795 if test "X$vi_cv_path_mzscheme" != "X"; then
3796 lsout=`ls -l $vi_cv_path_mzscheme`
3797 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3798 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3799 fi
3800 fi
3801
3802 if test "X$vi_cv_path_mzscheme" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003803 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3804echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3805if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003807else
3808 vi_cv_path_mzscheme_pfx=`
3809 ${vi_cv_path_mzscheme} -evm \
3810 "(display (simplify-path \
3811 (build-path (call-with-values \
3812 (lambda () (split-path (find-system-path (quote exec-file)))) \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003813 (lambda (base name must-be-dir?) base)) (quote up))))"`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003814fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003815echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3816echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003817 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3818 fi
3819 fi
3820 fi
3821
3822 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 Moolenaar325b7a22004-07-05 15:58:32 +00003831 vi_cv_path_mzscheme_pfx=
3832 fi
3833 fi
3834
3835 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3836 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3837 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3838 else
3839 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003840 if test "$GCC" = yes; then
3841 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar21cf8232004-07-16 20:18:37 +00003842 elif test "`(uname) 2>/dev/null`" = SunOS &&
3843 uname -r | grep '^5' >/dev/null; then
3844 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003845 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003846 fi
3847 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \
3848 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
3849 MZSCHEME_SRC="if_mzsch.c"
3850 MZSCHEME_OBJ="objects/if_mzsch.o"
3851 MZSCHEME_PRO="if_mzsch.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003852 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003853#define FEAT_MZSCHEME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003854_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003855
3856 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003857
3858
3859
3860
3861
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003862fi
3863
3864
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003865echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3866echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003867# Check whether --enable-perlinterp or --disable-perlinterp was given.
3868if test "${enable_perlinterp+set}" = set; then
3869 enableval="$enable_perlinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003870
Bram Moolenaar071d4272004-06-13 20:20:40 +00003871else
3872 enable_perlinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003873fi;
3874echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3875echo "${ECHO_T}$enable_perlinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003876if test "$enable_perlinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003877
Bram Moolenaar071d4272004-06-13 20:20:40 +00003878 # Extract the first word of "perl", so it can be a program name with args.
3879set dummy perl; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003880echo "$as_me:$LINENO: checking for $ac_word" >&5
3881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3882if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3883 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003884else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003885 case $vi_cv_path_perl in
3886 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003887 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3888 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003889 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH
3892do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3900 fi
3901done
3902done
3903
Bram Moolenaar071d4272004-06-13 20:20:40 +00003904 ;;
3905esac
3906fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003907vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3908
Bram Moolenaar071d4272004-06-13 20:20:40 +00003909if test -n "$vi_cv_path_perl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003910 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3911echo "${ECHO_T}$vi_cv_path_perl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003912else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003913 echo "$as_me:$LINENO: result: no" >&5
3914echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003915fi
3916
3917 if test "X$vi_cv_path_perl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003918 echo "$as_me:$LINENO: checking Perl version" >&5
3919echo $ECHO_N "checking Perl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003920 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3921 eval `$vi_cv_path_perl -V:usethreads`
3922 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3923 badthreads=no
3924 else
3925 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3926 eval `$vi_cv_path_perl -V:use5005threads`
3927 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3928 badthreads=no
3929 else
3930 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003931 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3932echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003933 fi
3934 else
3935 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003936 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3937echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003938 fi
3939 fi
3940 if test $badthreads = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003941 echo "$as_me:$LINENO: result: OK" >&5
3942echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003943 eval `$vi_cv_path_perl -V:shrpenv`
3944 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3945 shrpenv=""
3946 fi
3947 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003948
Bram Moolenaar071d4272004-06-13 20:20:40 +00003949 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3950 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3951 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3952 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3953 -e 's/-bE:perl.exp//' -e 's/-lc //'`
3954 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3955 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3956
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003957 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3958echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003959 cflags_save=$CFLAGS
3960 libs_save=$LIBS
3961 ldflags_save=$LDFLAGS
3962 CFLAGS="$CFLAGS $perlcppflags"
3963 LIBS="$LIBS $perllibs"
3964 LDFLAGS="$perlldflags $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003965 cat >conftest.$ac_ext <<_ACEOF
3966/* confdefs.h. */
3967_ACEOF
3968cat confdefs.h >>conftest.$ac_ext
3969cat >>conftest.$ac_ext <<_ACEOF
3970/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003971
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003972int
3973main ()
3974{
3975
3976 ;
3977 return 0;
3978}
3979_ACEOF
3980rm -f conftest.$ac_objext conftest$ac_exeext
3981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3982 (eval $ac_link) 2>conftest.er1
3983 ac_status=$?
3984 grep -v '^ *+' conftest.er1 >conftest.err
3985 rm -f conftest.er1
3986 cat conftest.err >&5
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } &&
3989 { ac_try='test -z "$ac_c_werror_flag"
3990 || test ! -s conftest.err'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; } &&
3996 { ac_try='test -s conftest$ac_exeext'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4002 echo "$as_me:$LINENO: result: yes" >&5
4003echo "${ECHO_T}yes" >&6; perl_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004004else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004005 echo "$as_me: failed program was:" >&5
4006sed 's/^/| /' conftest.$ac_ext >&5
4007
4008echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4009echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004010fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004011rm -f conftest.err conftest.$ac_objext \
4012 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004013 CFLAGS=$cflags_save
4014 LIBS=$libs_save
4015 LDFLAGS=$ldflags_save
4016 if test $perl_ok = yes; then
4017 if test "X$perlcppflags" != "X"; then
4018 PERL_CFLAGS="$perlcppflags"
4019 fi
4020 if test "X$perlldflags" != "X"; then
4021 LDFLAGS="$perlldflags $LDFLAGS"
4022 fi
4023 PERL_LIBS=$perllibs
4024 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4025 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4026 PERL_PRO="if_perl.pro if_perlsfio.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004027 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004028#define FEAT_PERL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004029_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004030
4031 fi
4032 fi
4033 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004034 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4035echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004036 fi
4037 fi
4038
4039 if test "x$MACOSX" = "xyes"; then
4040 dir=/System/Library/Perl
4041 darwindir=$dir/darwin
4042 if test -d $darwindir; then
4043 PERL=/usr/bin/perl
4044 else
4045 dir=/System/Library/Perl/5.8.1
4046 darwindir=$dir/darwin-thread-multi-2level
4047 if test -d $darwindir; then
4048 PERL=/usr/bin/perl
4049 fi
4050 fi
4051 if test -n "$PERL"; then
4052 PERL_DIR="$dir"
4053 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4054 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4055 PERL_LIBS="-L$darwindir/CORE -lperl"
4056 fi
4057 fi
4058fi
4059
4060
4061
4062
4063
4064
4065
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004066echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4067echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004068# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4069if test "${enable_pythoninterp+set}" = set; then
4070 enableval="$enable_pythoninterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004071
Bram Moolenaar071d4272004-06-13 20:20:40 +00004072else
4073 enable_pythoninterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004074fi;
4075echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4076echo "${ECHO_T}$enable_pythoninterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004077if test "$enable_pythoninterp" = "yes"; then
4078 # Extract the first word of "python", so it can be a program name with args.
4079set dummy python; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004080echo "$as_me:$LINENO: checking for $ac_word" >&5
4081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004084else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004085 case $vi_cv_path_python in
4086 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004087 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4088 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004089 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101done
4102done
4103
Bram Moolenaar071d4272004-06-13 20:20:40 +00004104 ;;
4105esac
4106fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004107vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4108
Bram Moolenaar071d4272004-06-13 20:20:40 +00004109if test -n "$vi_cv_path_python"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004110 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4111echo "${ECHO_T}$vi_cv_path_python" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004112else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004113 echo "$as_me:$LINENO: result: no" >&5
4114echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004115fi
4116
4117 if test "X$vi_cv_path_python" != "X"; then
4118
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004119 echo "$as_me:$LINENO: checking Python version" >&5
4120echo $ECHO_N "checking Python version... $ECHO_C" >&6
4121if test "${vi_cv_var_python_version+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004123else
4124 vi_cv_var_python_version=`
4125 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004126
Bram Moolenaar071d4272004-06-13 20:20:40 +00004127fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004128echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4129echo "${ECHO_T}$vi_cv_var_python_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004130
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004131 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4132echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004133 if ${vi_cv_path_python} -c \
4134 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4135 then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004136 echo "$as_me:$LINENO: result: yep" >&5
4137echo "${ECHO_T}yep" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004138
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004139 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4140echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4141if test "${vi_cv_path_python_pfx+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004143else
4144 vi_cv_path_python_pfx=`
4145 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004146 "import sys; print sys.prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004147fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004148echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4149echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004150
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004151 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4152echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4153if test "${vi_cv_path_python_epfx+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004155else
4156 vi_cv_path_python_epfx=`
4157 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004158 "import sys; print sys.exec_prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004159fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004160echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4161echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004162
Bram Moolenaar071d4272004-06-13 20:20:40 +00004163
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004164 if test "${vi_cv_path_pythonpath+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004166else
4167 vi_cv_path_pythonpath=`
4168 unset PYTHONPATH;
4169 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004170 "import sys, string; print string.join(sys.path,':')"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004171fi
4172
4173
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004174
4175
4176# Check whether --with-python-config-dir or --without-python-config-dir was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004177if test "${with_python_config_dir+set}" = set; then
4178 withval="$with_python_config_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004179 vi_cv_path_python_conf="${withval}"
4180fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004181
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004182 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4183echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4184if test "${vi_cv_path_python_conf+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004186else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004187
Bram Moolenaar071d4272004-06-13 20:20:40 +00004188 vi_cv_path_python_conf=
4189 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4190 for subdir in lib share; do
4191 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4192 if test -d "$d" && test -f "$d/config.c"; then
4193 vi_cv_path_python_conf="$d"
4194 fi
4195 done
4196 done
Bram Moolenaar071d4272004-06-13 20:20:40 +00004197
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004198fi
4199echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4200echo "${ECHO_T}$vi_cv_path_python_conf" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004201
4202 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4203
4204 if test "X$PYTHON_CONFDIR" = "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004205 echo "$as_me:$LINENO: result: can't find it!" >&5
4206echo "${ECHO_T}can't find it!" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004207 else
4208
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004209 if test "${vi_cv_path_python_plibs+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004211else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004212
Bram Moolenaar071d4272004-06-13 20:20:40 +00004213 tmp_mkf="/tmp/Makefile-conf$$"
4214 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4215__:
4216 @echo "python_MODLIBS='$(MODLIBS)'"
4217 @echo "python_LIBS='$(LIBS)'"
4218 @echo "python_SYSLIBS='$(SYSLIBS)'"
4219 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4220eof
4221 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4222 rm -f ${tmp_mkf}
4223 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4224 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4225 vi_cv_path_python_plibs="-framework Python"
4226 else
4227 if test "${vi_cv_var_python_version}" = "1.4"; then
4228 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4229 else
4230 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4231 fi
4232 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4233 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4234 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004235
Bram Moolenaar071d4272004-06-13 20:20:40 +00004236fi
4237
4238
4239 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4240 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4241 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4242 else
4243 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}"
4244 fi
4245 PYTHON_SRC="if_python.c"
4246 if test "x$MACOSX" = "xyes"; then
4247 PYTHON_OBJ="objects/if_python.o"
4248 else
4249 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4250 fi
4251 if test "${vi_cv_var_python_version}" = "1.4"; then
4252 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4253 fi
4254 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4255
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004256 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4257echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004258 threadsafe_flag=
4259 thread_lib=
4260 if test "x$MACOSX" != "xyes"; then
4261 test "$GCC" = yes && threadsafe_flag="-pthread"
4262 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4263 threadsafe_flag="-D_THREAD_SAFE"
4264 thread_lib="-pthread"
4265 fi
4266 fi
4267 libs_save_old=$LIBS
4268 if test -n "$threadsafe_flag"; then
4269 cflags_save=$CFLAGS
4270 CFLAGS="$CFLAGS $threadsafe_flag"
4271 LIBS="$LIBS $thread_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004272 cat >conftest.$ac_ext <<_ACEOF
4273/* confdefs.h. */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004278
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004279int
4280main ()
4281{
4282
4283 ;
4284 return 0;
4285}
4286_ACEOF
4287rm -f conftest.$ac_objext conftest$ac_exeext
4288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4289 (eval $ac_link) 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag"
4297 || test ! -s conftest.err'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; } &&
4303 { ac_try='test -s conftest$ac_exeext'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4309 echo "$as_me:$LINENO: result: yes" >&5
4310echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004311else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004312 echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315echo "$as_me:$LINENO: result: no" >&5
4316echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4317
Bram Moolenaar071d4272004-06-13 20:20:40 +00004318fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004319rm -f conftest.err conftest.$ac_objext \
4320 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004321 CFLAGS=$cflags_save
4322 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004323 echo "$as_me:$LINENO: result: no" >&5
4324echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004325 fi
4326
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004327 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4328echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004329 cflags_save=$CFLAGS
4330 libs_save=$LIBS
4331 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4332 LIBS="$LIBS $PYTHON_LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004333 cat >conftest.$ac_ext <<_ACEOF
4334/* confdefs.h. */
4335_ACEOF
4336cat confdefs.h >>conftest.$ac_ext
4337cat >>conftest.$ac_ext <<_ACEOF
4338/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004339
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004340int
4341main ()
4342{
4343
4344 ;
4345 return 0;
4346}
4347_ACEOF
4348rm -f conftest.$ac_objext conftest$ac_exeext
4349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4350 (eval $ac_link) 2>conftest.er1
4351 ac_status=$?
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } &&
4357 { ac_try='test -z "$ac_c_werror_flag"
4358 || test ! -s conftest.err'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest$ac_exeext'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4370 echo "$as_me:$LINENO: result: yes" >&5
4371echo "${ECHO_T}yes" >&6; python_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004372else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004373 echo "$as_me: failed program was:" >&5
4374sed 's/^/| /' conftest.$ac_ext >&5
4375
4376echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4377echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004378fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004379rm -f conftest.err conftest.$ac_objext \
4380 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004381 CFLAGS=$cflags_save
4382 LIBS=$libs_save
4383 if test $python_ok = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004384 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004385#define FEAT_PYTHON 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004386_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004387
4388 else
4389 LIBS=$libs_save_old
4390 PYTHON_SRC=
4391 PYTHON_OBJ=
4392 PYTHON_LIBS=
4393 PYTHON_CFLAGS=
4394 fi
4395
4396 fi
4397 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004398 echo "$as_me:$LINENO: result: too old" >&5
4399echo "${ECHO_T}too old" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004400 fi
4401 fi
4402fi
4403
4404
4405
4406
4407
4408
4409
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004410echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4411echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004412# Check whether --enable-tclinterp or --disable-tclinterp was given.
4413if test "${enable_tclinterp+set}" = set; then
4414 enableval="$enable_tclinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004415
Bram Moolenaar071d4272004-06-13 20:20:40 +00004416else
4417 enable_tclinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004418fi;
4419echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4420echo "${ECHO_T}$enable_tclinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004421
4422if test "$enable_tclinterp" = "yes"; then
4423
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004424 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4425echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4426
4427# Check whether --with-tclsh or --without-tclsh was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004428if test "${with_tclsh+set}" = set; then
4429 withval="$with_tclsh"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004430 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4431echo "${ECHO_T}$tclsh_name" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004432else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004433 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4434echo "${ECHO_T}no" >&6
4435fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004436 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4437set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004438echo "$as_me:$LINENO: checking for $ac_word" >&5
4439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004442else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004443 case $vi_cv_path_tcl in
4444 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004445 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4446 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004447 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459done
4460done
4461
Bram Moolenaar071d4272004-06-13 20:20:40 +00004462 ;;
4463esac
4464fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004465vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4466
Bram Moolenaar071d4272004-06-13 20:20:40 +00004467if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004468 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4469echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004470else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004471 echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004473fi
4474
Bram Moolenaar071d4272004-06-13 20:20:40 +00004475
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004476
4477 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004478 tclsh_name="tclsh8.2"
4479 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4480set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004481echo "$as_me:$LINENO: checking for $ac_word" >&5
4482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4483if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004485else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004486 case $vi_cv_path_tcl in
4487 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004488 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4489 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004490 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492for as_dir in $PATH
4493do
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4498 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4501 fi
4502done
4503done
4504
Bram Moolenaar071d4272004-06-13 20:20:40 +00004505 ;;
4506esac
4507fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004508vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4509
Bram Moolenaar071d4272004-06-13 20:20:40 +00004510if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004511 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4512echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004513else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004514 echo "$as_me:$LINENO: result: no" >&5
4515echo "${ECHO_T}no" >&6
4516fi
4517
4518 fi
4519 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4520 tclsh_name="tclsh8.0"
4521 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4522set dummy $tclsh_name; ac_word=$2
4523echo "$as_me:$LINENO: checking for $ac_word" >&5
4524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4525if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527else
4528 case $vi_cv_path_tcl in
4529 [\\/]* | ?:[\\/]*)
4530 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4531 ;;
4532 *)
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4543 fi
4544done
4545done
4546
4547 ;;
4548esac
4549fi
4550vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4551
4552if test -n "$vi_cv_path_tcl"; then
4553 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4554echo "${ECHO_T}$vi_cv_path_tcl" >&6
4555else
4556 echo "$as_me:$LINENO: result: no" >&5
4557echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004558fi
4559
4560 fi
4561 if test "X$vi_cv_path_tcl" = "X"; then
4562 tclsh_name="tclsh"
4563 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4564set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004565echo "$as_me:$LINENO: checking for $ac_word" >&5
4566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4567if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004569else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004570 case $vi_cv_path_tcl in
4571 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004572 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4573 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004574 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4585 fi
4586done
4587done
4588
Bram Moolenaar071d4272004-06-13 20:20:40 +00004589 ;;
4590esac
4591fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004592vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4593
Bram Moolenaar071d4272004-06-13 20:20:40 +00004594if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004595 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4596echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004597else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004598 echo "$as_me:$LINENO: result: no" >&5
4599echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004600fi
4601
4602 fi
4603 if test "X$vi_cv_path_tcl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004604 echo "$as_me:$LINENO: checking Tcl version" >&5
4605echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004606 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4607 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004608 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4609echo "${ECHO_T}$tclver - OK" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004610 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 -`
4611
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004612 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4613echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004614 if test "x$MACOSX" != "xyes"; then
Bram Moolenaar47136d72004-10-12 20:02:24 +00004615 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004616 else
4617 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4618 fi
4619 for try in $tclinc; do
4620 if test -f "$try/tcl.h"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004621 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4622echo "${ECHO_T}$try/tcl.h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004623 TCL_INC=$try
4624 break
4625 fi
4626 done
4627 if test -z "$TCL_INC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004628 echo "$as_me:$LINENO: result: <not found>" >&5
4629echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004630 SKIP_TCL=YES
4631 fi
4632 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004633 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4634echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004635 if test "x$MACOSX" != "xyes"; then
4636 tclcnf=`echo $tclinc | sed s/include/lib/g`
4637 else
4638 tclcnf="/System/Library/Frameworks/Tcl.framework"
4639 fi
4640 for try in $tclcnf; do
4641 if test -f $try/tclConfig.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004642 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4643echo "${ECHO_T}$try/tclConfig.sh" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004644 . $try/tclConfig.sh
4645 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
Bram Moolenaar9372a112005-12-06 19:59:18 +00004646 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 +00004647 break
4648 fi
4649 done
4650 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004651 echo "$as_me:$LINENO: result: <not found>" >&5
4652echo "${ECHO_T}<not found>" >&6
4653 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4654echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004655 tcllib=`echo $tclinc | sed s/include/lib/g`
4656 for ext in .so .a ; do
4657 for ver in "" $tclver ; do
4658 for try in $tcllib ; do
4659 trylib=tcl$ver$ext
4660 if test -f $try/lib$trylib ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004661 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4662echo "${ECHO_T}$try/lib$trylib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004663 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4664 if test "`(uname) 2>/dev/null`" = SunOS &&
4665 uname -r | grep '^5' >/dev/null; then
4666 TCL_LIBS="$TCL_LIBS -R $try"
4667 fi
4668 break 3
4669 fi
4670 done
4671 done
4672 done
4673 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004674 echo "$as_me:$LINENO: result: <not found>" >&5
4675echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004676 SKIP_TCL=YES
4677 fi
4678 fi
4679 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004680 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004681#define FEAT_TCL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004682_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004683
4684 TCL_SRC=if_tcl.c
4685 TCL_OBJ=objects/if_tcl.o
4686 TCL_PRO=if_tcl.pro
4687 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4688 fi
4689 fi
4690 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004691 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4692echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004693 fi
4694 fi
4695fi
4696
4697
4698
4699
4700
4701
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004702echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4703echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004704# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4705if test "${enable_rubyinterp+set}" = set; then
4706 enableval="$enable_rubyinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004707
Bram Moolenaar071d4272004-06-13 20:20:40 +00004708else
4709 enable_rubyinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004710fi;
4711echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4712echo "${ECHO_T}$enable_rubyinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004713if test "$enable_rubyinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004714
Bram Moolenaar071d4272004-06-13 20:20:40 +00004715 # Extract the first word of "ruby", so it can be a program name with args.
4716set dummy ruby; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004717echo "$as_me:$LINENO: checking for $ac_word" >&5
4718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4719if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004721else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004722 case $vi_cv_path_ruby in
4723 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004724 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4725 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004726 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728for as_dir in $PATH
4729do
4730 IFS=$as_save_IFS
4731 test -z "$as_dir" && as_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4734 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 break 2
4737 fi
4738done
4739done
4740
Bram Moolenaar071d4272004-06-13 20:20:40 +00004741 ;;
4742esac
4743fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004744vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4745
Bram Moolenaar071d4272004-06-13 20:20:40 +00004746if test -n "$vi_cv_path_ruby"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004747 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4748echo "${ECHO_T}$vi_cv_path_ruby" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004749else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004750 echo "$as_me:$LINENO: result: no" >&5
4751echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004752fi
4753
4754 if test "X$vi_cv_path_ruby" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004755 echo "$as_me:$LINENO: checking Ruby version" >&5
4756echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
Bram Moolenaar0cb032e2005-04-23 20:52:00 +00004757 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 +00004758 echo "$as_me:$LINENO: result: OK" >&5
4759echo "${ECHO_T}OK" >&6
4760 echo "$as_me:$LINENO: checking Ruby header files" >&5
4761echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004762 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4763 if test "X$rubyhdrdir" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004764 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4765echo "${ECHO_T}$rubyhdrdir" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004766 RUBY_CFLAGS="-I$rubyhdrdir"
4767 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4768 if test "X$rubylibs" != "X"; then
4769 RUBY_LIBS="$rubylibs"
4770 fi
4771 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4772 if test -f "$rubyhdrdir/$librubyarg"; then
4773 librubyarg="$rubyhdrdir/$librubyarg"
4774 else
4775 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4776 if test -f "$rubylibdir/$librubyarg"; then
4777 librubyarg="$rubylibdir/$librubyarg"
4778 elif test "$librubyarg" = "libruby.a"; then
4779 librubyarg="-lruby"
4780 else
4781 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4782 fi
4783 fi
4784
4785 if test "X$librubyarg" != "X"; then
4786 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4787 fi
4788 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4789 if test "X$rubyldflags" != "X"; then
4790 LDFLAGS="$rubyldflags $LDFLAGS"
4791 fi
4792 RUBY_SRC="if_ruby.c"
4793 RUBY_OBJ="objects/if_ruby.o"
4794 RUBY_PRO="if_ruby.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004795 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004796#define FEAT_RUBY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004797_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004798
4799 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004800 echo "$as_me:$LINENO: result: not found" >&5
4801echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004802 fi
4803 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004804 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4805echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004806 fi
4807 fi
4808fi
4809
4810
4811
4812
4813
4814
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004815echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4816echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004817# Check whether --enable-cscope or --disable-cscope was given.
4818if test "${enable_cscope+set}" = set; then
4819 enableval="$enable_cscope"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004820
Bram Moolenaar071d4272004-06-13 20:20:40 +00004821else
4822 enable_cscope="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004823fi;
4824echo "$as_me:$LINENO: result: $enable_cscope" >&5
4825echo "${ECHO_T}$enable_cscope" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004826if test "$enable_cscope" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004827 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004828#define FEAT_CSCOPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004829_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004830
4831fi
4832
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004833echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4834echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004835# Check whether --enable-workshop or --disable-workshop was given.
4836if test "${enable_workshop+set}" = set; then
4837 enableval="$enable_workshop"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004838
Bram Moolenaar071d4272004-06-13 20:20:40 +00004839else
4840 enable_workshop="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004841fi;
4842echo "$as_me:$LINENO: result: $enable_workshop" >&5
4843echo "${ECHO_T}$enable_workshop" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004844if test "$enable_workshop" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004845 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004846#define FEAT_SUN_WORKSHOP 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004847_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004848
4849 WORKSHOP_SRC="workshop.c integration.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004850
Bram Moolenaar071d4272004-06-13 20:20:40 +00004851 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004852
Bram Moolenaar071d4272004-06-13 20:20:40 +00004853 if test "${enable_gui-xxx}" = xxx; then
4854 enable_gui=motif
4855 fi
4856fi
4857
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004858echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4859echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004860# Check whether --enable-netbeans or --disable-netbeans was given.
4861if test "${enable_netbeans+set}" = set; then
4862 enableval="$enable_netbeans"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004863
Bram Moolenaar071d4272004-06-13 20:20:40 +00004864else
4865 enable_netbeans="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004866fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004867if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004868 echo "$as_me:$LINENO: result: no" >&5
4869echo "${ECHO_T}no" >&6
4870
4871echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4872echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4873if test "${ac_cv_lib_socket_socket+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004875else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004876 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004877LIBS="-lsocket $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004878cat >conftest.$ac_ext <<_ACEOF
4879/* confdefs.h. */
4880_ACEOF
4881cat confdefs.h >>conftest.$ac_ext
4882cat >>conftest.$ac_ext <<_ACEOF
4883/* end confdefs.h. */
4884
Bram Moolenaar071d4272004-06-13 20:20:40 +00004885/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004886#ifdef __cplusplus
4887extern "C"
4888#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004889/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004890 builtin and then its argument prototype would still apply. */
4891char socket ();
4892int
4893main ()
4894{
4895socket ();
4896 ;
4897 return 0;
4898}
4899_ACEOF
4900rm -f conftest.$ac_objext conftest$ac_exeext
4901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4902 (eval $ac_link) 2>conftest.er1
4903 ac_status=$?
4904 grep -v '^ *+' conftest.er1 >conftest.err
4905 rm -f conftest.er1
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } &&
4909 { ac_try='test -z "$ac_c_werror_flag"
4910 || test ! -s conftest.err'
4911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4912 (eval $ac_try) 2>&5
4913 ac_status=$?
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); }; } &&
4916 { ac_try='test -s conftest$ac_exeext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 ac_cv_lib_socket_socket=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004923else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004924 echo "$as_me: failed program was:" >&5
4925sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004926
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004927ac_cv_lib_socket_socket=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004928fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004929rm -f conftest.err conftest.$ac_objext \
4930 conftest$ac_exeext conftest.$ac_ext
4931LIBS=$ac_check_lib_save_LIBS
4932fi
4933echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4934echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4935if test $ac_cv_lib_socket_socket = yes; then
4936 cat >>confdefs.h <<_ACEOF
4937#define HAVE_LIBSOCKET 1
4938_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004939
4940 LIBS="-lsocket $LIBS"
4941
Bram Moolenaar071d4272004-06-13 20:20:40 +00004942fi
4943
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004944
4945echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4946echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4947if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004949else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004950 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004951LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004952cat >conftest.$ac_ext <<_ACEOF
4953/* confdefs.h. */
4954_ACEOF
4955cat confdefs.h >>conftest.$ac_ext
4956cat >>conftest.$ac_ext <<_ACEOF
4957/* end confdefs.h. */
4958
Bram Moolenaar071d4272004-06-13 20:20:40 +00004959/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004960#ifdef __cplusplus
4961extern "C"
4962#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004963/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004964 builtin and then its argument prototype would still apply. */
4965char gethostbyname ();
4966int
4967main ()
4968{
4969gethostbyname ();
4970 ;
4971 return 0;
4972}
4973_ACEOF
4974rm -f conftest.$ac_objext conftest$ac_exeext
4975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976 (eval $ac_link) 2>conftest.er1
4977 ac_status=$?
4978 grep -v '^ *+' conftest.er1 >conftest.err
4979 rm -f conftest.er1
4980 cat conftest.err >&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } &&
4983 { ac_try='test -z "$ac_c_werror_flag"
4984 || test ! -s conftest.err'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 (eval $ac_try) 2>&5
4987 ac_status=$?
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; } &&
4990 { ac_try='test -s conftest$ac_exeext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 (eval $ac_try) 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4996 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004997else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004998 echo "$as_me: failed program was:" >&5
4999sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005000
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005001ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005002fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005003rm -f conftest.err conftest.$ac_objext \
5004 conftest$ac_exeext conftest.$ac_ext
5005LIBS=$ac_check_lib_save_LIBS
5006fi
5007echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5008echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5009if test $ac_cv_lib_nsl_gethostbyname = yes; then
5010 cat >>confdefs.h <<_ACEOF
5011#define HAVE_LIBNSL 1
5012_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005013
5014 LIBS="-lnsl $LIBS"
5015
Bram Moolenaar071d4272004-06-13 20:20:40 +00005016fi
5017
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005018 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5019echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5020 cat >conftest.$ac_ext <<_ACEOF
5021/* confdefs.h. */
5022_ACEOF
5023cat confdefs.h >>conftest.$ac_ext
5024cat >>conftest.$ac_ext <<_ACEOF
5025/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005026
5027#include <stdio.h>
5028#include <stdlib.h>
5029#include <stdarg.h>
5030#include <fcntl.h>
5031#include <netdb.h>
5032#include <netinet/in.h>
5033#include <errno.h>
5034#include <sys/types.h>
5035#include <sys/socket.h>
5036 /* Check bitfields */
5037 struct nbbuf {
5038 unsigned int initDone:1;
5039 ushort signmaplen;
5040 };
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005041
5042int
5043main ()
5044{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005045
5046 /* Check creating a socket. */
5047 struct sockaddr_in server;
5048 (void)socket(AF_INET, SOCK_STREAM, 0);
5049 (void)htons(100);
5050 (void)gethostbyname("microsoft.com");
5051 if (errno == ECONNREFUSED)
5052 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005053
5054 ;
5055 return 0;
5056}
5057_ACEOF
5058rm -f conftest.$ac_objext conftest$ac_exeext
5059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5060 (eval $ac_link) 2>conftest.er1
5061 ac_status=$?
5062 grep -v '^ *+' conftest.er1 >conftest.err
5063 rm -f conftest.er1
5064 cat conftest.err >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try='test -z "$ac_c_werror_flag"
5068 || test ! -s conftest.err'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070 (eval $ac_try) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; } &&
5074 { ac_try='test -s conftest$ac_exeext'
5075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
5080 echo "$as_me:$LINENO: result: yes" >&5
5081echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005082else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005083 echo "$as_me: failed program was:" >&5
5084sed 's/^/| /' conftest.$ac_ext >&5
5085
5086echo "$as_me:$LINENO: result: no" >&5
5087echo "${ECHO_T}no" >&6; enable_netbeans="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005088fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005089rm -f conftest.err conftest.$ac_objext \
5090 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005091else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005092 echo "$as_me:$LINENO: result: yes" >&5
5093echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005094fi
5095if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005096 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005097#define FEAT_NETBEANS_INTG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005098_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005099
5100 NETBEANS_SRC="netbeans.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005101
Bram Moolenaar071d4272004-06-13 20:20:40 +00005102 NETBEANS_OBJ="objects/netbeans.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005103
Bram Moolenaar071d4272004-06-13 20:20:40 +00005104fi
5105
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005106echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5107echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005108# Check whether --enable-sniff or --disable-sniff was given.
5109if test "${enable_sniff+set}" = set; then
5110 enableval="$enable_sniff"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005111
Bram Moolenaar071d4272004-06-13 20:20:40 +00005112else
5113 enable_sniff="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005114fi;
5115echo "$as_me:$LINENO: result: $enable_sniff" >&5
5116echo "${ECHO_T}$enable_sniff" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005117if test "$enable_sniff" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005118 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005119#define FEAT_SNIFF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005120_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005121
5122 SNIFF_SRC="if_sniff.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005123
Bram Moolenaar071d4272004-06-13 20:20:40 +00005124 SNIFF_OBJ="objects/if_sniff.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005125
Bram Moolenaar071d4272004-06-13 20:20:40 +00005126fi
5127
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005128echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5129echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005130# Check whether --enable-multibyte or --disable-multibyte was given.
5131if test "${enable_multibyte+set}" = set; then
5132 enableval="$enable_multibyte"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005133
Bram Moolenaar071d4272004-06-13 20:20:40 +00005134else
5135 enable_multibyte="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005136fi;
5137echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5138echo "${ECHO_T}$enable_multibyte" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005139if test "$enable_multibyte" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005140 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005141#define FEAT_MBYTE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005142_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005143
5144fi
5145
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005146echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5147echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005148# Check whether --enable-hangulinput or --disable-hangulinput was given.
5149if test "${enable_hangulinput+set}" = set; then
5150 enableval="$enable_hangulinput"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005151
Bram Moolenaar071d4272004-06-13 20:20:40 +00005152else
5153 enable_hangulinput="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005154fi;
5155echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5156echo "${ECHO_T}$enable_hangulinput" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005157
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005158echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5159echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005160# Check whether --enable-xim or --disable-xim was given.
5161if test "${enable_xim+set}" = set; then
5162 enableval="$enable_xim"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005163 echo "$as_me:$LINENO: result: $enable_xim" >&5
5164echo "${ECHO_T}$enable_xim" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005165else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005166 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5167echo "${ECHO_T}defaulting to auto" >&6
5168fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005169
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005170echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5171echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005172# Check whether --enable-fontset or --disable-fontset was given.
5173if test "${enable_fontset+set}" = set; then
5174 enableval="$enable_fontset"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005175
Bram Moolenaar071d4272004-06-13 20:20:40 +00005176else
5177 enable_fontset="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005178fi;
5179echo "$as_me:$LINENO: result: $enable_fontset" >&5
5180echo "${ECHO_T}$enable_fontset" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005181
5182test -z "$with_x" && with_x=yes
5183test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5184if test "$with_x" = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005185 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5186echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005187else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005188
Bram Moolenaar071d4272004-06-13 20:20:40 +00005189 # Extract the first word of "xmkmf", so it can be a program name with args.
5190set dummy xmkmf; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005191echo "$as_me:$LINENO: checking for $ac_word" >&5
5192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5193if test "${ac_cv_path_xmkmfpath+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005195else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005196 case $xmkmfpath in
5197 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005198 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5199 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005200 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212done
5213done
5214
Bram Moolenaar071d4272004-06-13 20:20:40 +00005215 ;;
5216esac
5217fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005218xmkmfpath=$ac_cv_path_xmkmfpath
5219
Bram Moolenaar071d4272004-06-13 20:20:40 +00005220if test -n "$xmkmfpath"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005221 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5222echo "${ECHO_T}$xmkmfpath" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005223else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005226fi
5227
5228
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005229 echo "$as_me:$LINENO: checking for X" >&5
5230echo $ECHO_N "checking for X... $ECHO_C" >&6
5231
Bram Moolenaar071d4272004-06-13 20:20:40 +00005232
5233# Check whether --with-x or --without-x was given.
5234if test "${with_x+set}" = set; then
5235 withval="$with_x"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005236
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005237fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005238# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5239if test "x$with_x" = xno; then
5240 # The user explicitly disabled X.
5241 have_x=disabled
5242else
5243 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5244 # Both variables are already set.
5245 have_x=yes
5246 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005247 if test "${ac_cv_have_x+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005249else
5250 # One or both of the vars are not set, and there is no cached value.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005251ac_x_includes=no ac_x_libraries=no
5252rm -fr conftest.dir
5253if mkdir conftest.dir; then
5254 cd conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005255 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005256 cat >Imakefile <<'_ACEOF'
Bram Moolenaar071d4272004-06-13 20:20:40 +00005257acfindx:
5258 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005259_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005260 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5261 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5262 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5263 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5264 for ac_extension in a so sl; do
5265 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005266 test -f $ac_im_libdir/libX11.$ac_extension; then
5267 ac_im_usrlibdir=$ac_im_libdir; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00005268 fi
5269 done
5270 # Screen out bogus values from the imake configuration. They are
5271 # bogus both because they are the default anyway, and because
5272 # using them would break gcc on systems where it needs fixed includes.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005273 case $ac_im_incroot in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005274 /usr/include) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005275 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005276 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005277 case $ac_im_usrlibdir in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005278 /usr/lib | /lib) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005279 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005280 esac
5281 fi
5282 cd ..
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005283 rm -fr conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005284fi
5285
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005286# Standard set of common directories for X headers.
5287# Check X11 before X11Rn because it is often a symlink to the current release.
5288ac_x_header_dirs='
5289/usr/X11/include
5290/usr/X11R6/include
5291/usr/X11R5/include
5292/usr/X11R4/include
Bram Moolenaar071d4272004-06-13 20:20:40 +00005293
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005294/usr/include/X11
5295/usr/include/X11R6
5296/usr/include/X11R5
5297/usr/include/X11R4
5298
5299/usr/local/X11/include
5300/usr/local/X11R6/include
5301/usr/local/X11R5/include
5302/usr/local/X11R4/include
5303
5304/usr/local/include/X11
5305/usr/local/include/X11R6
5306/usr/local/include/X11R5
5307/usr/local/include/X11R4
5308
5309/usr/X386/include
5310/usr/x386/include
5311/usr/XFree86/include/X11
5312
5313/usr/include
5314/usr/local/include
5315/usr/unsupported/include
5316/usr/athena/include
5317/usr/local/x11r5/include
5318/usr/lpp/Xamples/include
5319
5320/usr/openwin/include
5321/usr/openwin/share/include'
5322
5323if test "$ac_x_includes" = no; then
5324 # Guess where to find include files, by looking for Intrinsic.h.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005325 # First, try using that file with no special directory specified.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005326 cat >conftest.$ac_ext <<_ACEOF
5327/* confdefs.h. */
5328_ACEOF
5329cat confdefs.h >>conftest.$ac_ext
5330cat >>conftest.$ac_ext <<_ACEOF
5331/* end confdefs.h. */
5332#include <X11/Intrinsic.h>
5333_ACEOF
5334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } >/dev/null; then
5342 if test -s conftest.err; then
5343 ac_cpp_err=$ac_c_preproc_warn_flag
5344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5345 else
5346 ac_cpp_err=
5347 fi
5348else
5349 ac_cpp_err=yes
5350fi
5351if test -z "$ac_cpp_err"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005352 # We can compile using X headers with no special include directory.
5353ac_x_includes=
5354else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005355 echo "$as_me: failed program was:" >&5
5356sed 's/^/| /' conftest.$ac_ext >&5
5357
5358 for ac_dir in $ac_x_header_dirs; do
5359 if test -r "$ac_dir/X11/Intrinsic.h"; then
5360 ac_x_includes=$ac_dir
5361 break
5362 fi
5363done
Bram Moolenaar071d4272004-06-13 20:20:40 +00005364fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005365rm -f conftest.err conftest.$ac_ext
5366fi # $ac_x_includes = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005367
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005368if test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005369 # Check for the libraries.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005370 # See if we find them without any special options.
5371 # Don't add to $LIBS permanently.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005372 ac_save_LIBS=$LIBS
5373 LIBS="-lXt $LIBS"
5374 cat >conftest.$ac_ext <<_ACEOF
5375/* confdefs.h. */
5376_ACEOF
5377cat confdefs.h >>conftest.$ac_ext
5378cat >>conftest.$ac_ext <<_ACEOF
5379/* end confdefs.h. */
5380#include <X11/Intrinsic.h>
5381int
5382main ()
5383{
5384XtMalloc (0)
5385 ;
5386 return 0;
5387}
5388_ACEOF
5389rm -f conftest.$ac_objext conftest$ac_exeext
5390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5391 (eval $ac_link) 2>conftest.er1
5392 ac_status=$?
5393 grep -v '^ *+' conftest.er1 >conftest.err
5394 rm -f conftest.er1
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } &&
5398 { ac_try='test -z "$ac_c_werror_flag"
5399 || test ! -s conftest.err'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 (eval $ac_try) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; } &&
5405 { ac_try='test -s conftest$ac_exeext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 (eval $ac_try) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 LIBS=$ac_save_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005412# We can link X programs with no special library path.
5413ac_x_libraries=
5414else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005415 echo "$as_me: failed program was:" >&5
5416sed 's/^/| /' conftest.$ac_ext >&5
5417
5418LIBS=$ac_save_LIBS
5419for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Bram Moolenaar071d4272004-06-13 20:20:40 +00005420do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005421 # Don't even attempt the hair of trying to link an X program!
Bram Moolenaar071d4272004-06-13 20:20:40 +00005422 for ac_extension in a so sl; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005423 if test -r $ac_dir/libXt.$ac_extension; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005424 ac_x_libraries=$ac_dir
5425 break 2
5426 fi
5427 done
5428done
5429fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005430rm -f conftest.err conftest.$ac_objext \
5431 conftest$ac_exeext conftest.$ac_ext
5432fi # $ac_x_libraries = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005433
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005434if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005435 # Didn't find X anywhere. Cache the known absence of X.
5436 ac_cv_have_x="have_x=no"
5437else
5438 # Record where we found X for the cache.
5439 ac_cv_have_x="have_x=yes \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005440 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005441fi
5442fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005443
Bram Moolenaar071d4272004-06-13 20:20:40 +00005444 fi
5445 eval "$ac_cv_have_x"
5446fi # $with_x != no
5447
5448if test "$have_x" != yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005449 echo "$as_me:$LINENO: result: $have_x" >&5
5450echo "${ECHO_T}$have_x" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005451 no_x=yes
5452else
5453 # If each of the values was on the command line, it overrides each guess.
5454 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5455 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5456 # Update the cache value to reflect the command line values.
5457 ac_cv_have_x="have_x=yes \
5458 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005459 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5460echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005461fi
5462
5463if test "$no_x" = yes; then
5464 # Not all programs may use this symbol, but it does not hurt to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005465
5466cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005467#define X_DISPLAY_MISSING 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005468_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005469
5470 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5471else
5472 if test -n "$x_includes"; then
5473 X_CFLAGS="$X_CFLAGS -I$x_includes"
5474 fi
5475
5476 # It would also be nice to do this for all -L options, not just this one.
5477 if test -n "$x_libraries"; then
5478 X_LIBS="$X_LIBS -L$x_libraries"
5479 # For Solaris; some versions of Sun CC require a space after -R and
5480 # others require no space. Words are not sufficient . . . .
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005481 case `(uname -sr) 2>/dev/null` in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005482 "SunOS 5"*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005483 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5484echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5485 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5486 cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h. */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005492
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005493int
5494main ()
5495{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005496
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005497 ;
5498 return 0;
5499}
5500_ACEOF
5501rm -f conftest.$ac_objext conftest$ac_exeext
5502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5503 (eval $ac_link) 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } &&
5510 { ac_try='test -z "$ac_c_werror_flag"
5511 || test ! -s conftest.err'
5512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 (eval $ac_try) 2>&5
5514 ac_status=$?
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); }; } &&
5517 { ac_try='test -s conftest$ac_exeext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005523 ac_R_nospace=yes
5524else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005525 echo "$as_me: failed program was:" >&5
5526sed 's/^/| /' conftest.$ac_ext >&5
5527
5528ac_R_nospace=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005529fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005530rm -f conftest.err conftest.$ac_objext \
5531 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005532 if test $ac_R_nospace = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005533 echo "$as_me:$LINENO: result: no" >&5
5534echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005535 X_LIBS="$X_LIBS -R$x_libraries"
5536 else
5537 LIBS="$ac_xsave_LIBS -R $x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005538 cat >conftest.$ac_ext <<_ACEOF
5539/* confdefs.h. */
5540_ACEOF
5541cat confdefs.h >>conftest.$ac_ext
5542cat >>conftest.$ac_ext <<_ACEOF
5543/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005544
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005545int
5546main ()
5547{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005548
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005549 ;
5550 return 0;
5551}
5552_ACEOF
5553rm -f conftest.$ac_objext conftest$ac_exeext
5554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5555 (eval $ac_link) 2>conftest.er1
5556 ac_status=$?
5557 grep -v '^ *+' conftest.er1 >conftest.err
5558 rm -f conftest.er1
5559 cat conftest.err >&5
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); } &&
5562 { ac_try='test -z "$ac_c_werror_flag"
5563 || test ! -s conftest.err'
5564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5565 (eval $ac_try) 2>&5
5566 ac_status=$?
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }; } &&
5569 { ac_try='test -s conftest$ac_exeext'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005575 ac_R_space=yes
5576else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005577 echo "$as_me: failed program was:" >&5
5578sed 's/^/| /' conftest.$ac_ext >&5
5579
5580ac_R_space=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005581fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005582rm -f conftest.err conftest.$ac_objext \
5583 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005584 if test $ac_R_space = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005585 echo "$as_me:$LINENO: result: yes" >&5
5586echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005587 X_LIBS="$X_LIBS -R $x_libraries"
5588 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005589 echo "$as_me:$LINENO: result: neither works" >&5
5590echo "${ECHO_T}neither works" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005591 fi
5592 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005593 LIBS=$ac_xsave_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005594 esac
5595 fi
5596
5597 # Check for system-dependent libraries X programs must link with.
5598 # Do this before checking for the system-independent R6 libraries
5599 # (-lICE), since we may need -lsocket or whatever for X linking.
5600
5601 if test "$ISC" = yes; then
5602 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5603 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005604 # Martyn Johnson says this is needed for Ultrix, if the X
5605 # libraries were built with DECnet support. And Karl Berry says
Bram Moolenaar071d4272004-06-13 20:20:40 +00005606 # the Alpha needs dnet_stub (dnet does not exist).
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005607 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5608 cat >conftest.$ac_ext <<_ACEOF
5609/* confdefs.h. */
5610_ACEOF
5611cat confdefs.h >>conftest.$ac_ext
5612cat >>conftest.$ac_ext <<_ACEOF
5613/* end confdefs.h. */
5614
Bram Moolenaar071d4272004-06-13 20:20:40 +00005615/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005616#ifdef __cplusplus
5617extern "C"
5618#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005619/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005620 builtin and then its argument prototype would still apply. */
5621char XOpenDisplay ();
5622int
5623main ()
5624{
5625XOpenDisplay ();
5626 ;
5627 return 0;
5628}
5629_ACEOF
5630rm -f conftest.$ac_objext conftest$ac_exeext
5631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try='test -z "$ac_c_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest$ac_exeext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00005653else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005654 echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005656
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005657echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5658echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5659if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662 ac_check_lib_save_LIBS=$LIBS
5663LIBS="-ldnet $LIBS"
5664cat >conftest.$ac_ext <<_ACEOF
5665/* confdefs.h. */
5666_ACEOF
5667cat confdefs.h >>conftest.$ac_ext
5668cat >>conftest.$ac_ext <<_ACEOF
5669/* end confdefs.h. */
5670
5671/* Override any gcc2 internal prototype to avoid an error. */
5672#ifdef __cplusplus
5673extern "C"
5674#endif
5675/* We use char because int might match the return type of a gcc2
5676 builtin and then its argument prototype would still apply. */
5677char dnet_ntoa ();
5678int
5679main ()
5680{
5681dnet_ntoa ();
5682 ;
5683 return 0;
5684}
5685_ACEOF
5686rm -f conftest.$ac_objext conftest$ac_exeext
5687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5688 (eval $ac_link) 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } &&
5695 { ac_try='test -z "$ac_c_werror_flag"
5696 || test ! -s conftest.err'
5697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 (eval $ac_try) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); }; } &&
5702 { ac_try='test -s conftest$ac_exeext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_cv_lib_dnet_dnet_ntoa=yes
5709else
5710 echo "$as_me: failed program was:" >&5
5711sed 's/^/| /' conftest.$ac_ext >&5
5712
5713ac_cv_lib_dnet_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005714fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005715rm -f conftest.err conftest.$ac_objext \
5716 conftest$ac_exeext conftest.$ac_ext
5717LIBS=$ac_check_lib_save_LIBS
5718fi
5719echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5720echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5721if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005722 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005723fi
5724
5725 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005726 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5727echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5728if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005730else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005731 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005732LIBS="-ldnet_stub $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005733cat >conftest.$ac_ext <<_ACEOF
5734/* confdefs.h. */
5735_ACEOF
5736cat confdefs.h >>conftest.$ac_ext
5737cat >>conftest.$ac_ext <<_ACEOF
5738/* end confdefs.h. */
5739
Bram Moolenaar071d4272004-06-13 20:20:40 +00005740/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005741#ifdef __cplusplus
5742extern "C"
5743#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005744/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005745 builtin and then its argument prototype would still apply. */
5746char dnet_ntoa ();
5747int
5748main ()
5749{
5750dnet_ntoa ();
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755rm -f conftest.$ac_objext conftest$ac_exeext
5756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757 (eval $ac_link) 2>conftest.er1
5758 ac_status=$?
5759 grep -v '^ *+' conftest.er1 >conftest.err
5760 rm -f conftest.er1
5761 cat conftest.err >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -z "$ac_c_werror_flag"
5765 || test ! -s conftest.err'
5766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 (eval $ac_try) 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; } &&
5771 { ac_try='test -s conftest$ac_exeext'
5772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 (eval $ac_try) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; }; then
5777 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005778else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005779 echo "$as_me: failed program was:" >&5
5780sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005781
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005782ac_cv_lib_dnet_stub_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005783fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005784rm -f conftest.err conftest.$ac_objext \
5785 conftest$ac_exeext conftest.$ac_ext
5786LIBS=$ac_check_lib_save_LIBS
5787fi
5788echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5789echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5790if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005791 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005792fi
5793
5794 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005795fi
5796rm -f conftest.err conftest.$ac_objext \
5797 conftest$ac_exeext conftest.$ac_ext
5798 LIBS="$ac_xsave_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005799
5800 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5801 # to get the SysV transport functions.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005802 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005803 # needs -lnsl.
5804 # The nsl library prevents programs from opening the X display
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005805 # on Irix 5.2, according to T.E. Dickey.
5806 # The functions gethostbyname, getservbyname, and inet_addr are
5807 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5808 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5809echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5810if test "${ac_cv_func_gethostbyname+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005812else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005813 cat >conftest.$ac_ext <<_ACEOF
5814/* confdefs.h. */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h. */
5819/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5821#define gethostbyname innocuous_gethostbyname
5822
Bram Moolenaar071d4272004-06-13 20:20:40 +00005823/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005824 which can conflict with char gethostbyname (); below.
5825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5826 <limits.h> exists even on freestanding compilers. */
5827
5828#ifdef __STDC__
5829# include <limits.h>
5830#else
5831# include <assert.h>
5832#endif
5833
5834#undef gethostbyname
5835
Bram Moolenaar071d4272004-06-13 20:20:40 +00005836/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005837#ifdef __cplusplus
5838extern "C"
5839{
5840#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005841/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005842 builtin and then its argument prototype would still apply. */
5843char gethostbyname ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005844/* The GNU C library defines this for functions which it implements
5845 to always fail with ENOSYS. Some functions are actually named
5846 something starting with __ and the normal name is an alias. */
5847#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5848choke me
5849#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005850char (*f) () = gethostbyname;
5851#endif
5852#ifdef __cplusplus
5853}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005854#endif
5855
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005856int
5857main ()
5858{
5859return f != gethostbyname;
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext conftest$ac_exeext
5865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest$ac_exeext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_func_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005887else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005888 echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005890
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005891ac_cv_func_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005892fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005893rm -f conftest.err conftest.$ac_objext \
5894 conftest$ac_exeext conftest.$ac_ext
5895fi
5896echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5897echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005898
5899 if test $ac_cv_func_gethostbyname = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005900 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5901echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5902if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005904else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005905 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005906LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005907cat >conftest.$ac_ext <<_ACEOF
5908/* confdefs.h. */
5909_ACEOF
5910cat confdefs.h >>conftest.$ac_ext
5911cat >>conftest.$ac_ext <<_ACEOF
5912/* end confdefs.h. */
5913
Bram Moolenaar071d4272004-06-13 20:20:40 +00005914/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005915#ifdef __cplusplus
5916extern "C"
5917#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005918/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005919 builtin and then its argument prototype would still apply. */
5920char gethostbyname ();
5921int
5922main ()
5923{
5924gethostbyname ();
5925 ;
5926 return 0;
5927}
5928_ACEOF
5929rm -f conftest.$ac_objext conftest$ac_exeext
5930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931 (eval $ac_link) 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag"
5939 || test ! -s conftest.err'
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); }; } &&
5945 { ac_try='test -s conftest$ac_exeext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005952else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005953 echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005955
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005956ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005957fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005958rm -f conftest.err conftest.$ac_objext \
5959 conftest$ac_exeext conftest.$ac_ext
5960LIBS=$ac_check_lib_save_LIBS
5961fi
5962echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5963echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5964if test $ac_cv_lib_nsl_gethostbyname = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005965 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005966fi
5967
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005968 if test $ac_cv_lib_nsl_gethostbyname = no; then
5969 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5970echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5971if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5973else
5974 ac_check_lib_save_LIBS=$LIBS
5975LIBS="-lbsd $LIBS"
5976cat >conftest.$ac_ext <<_ACEOF
5977/* confdefs.h. */
5978_ACEOF
5979cat confdefs.h >>conftest.$ac_ext
5980cat >>conftest.$ac_ext <<_ACEOF
5981/* end confdefs.h. */
5982
5983/* Override any gcc2 internal prototype to avoid an error. */
5984#ifdef __cplusplus
5985extern "C"
5986#endif
5987/* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5989char gethostbyname ();
5990int
5991main ()
5992{
5993gethostbyname ();
5994 ;
5995 return 0;
5996}
5997_ACEOF
5998rm -f conftest.$ac_objext conftest$ac_exeext
5999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6000 (eval $ac_link) 2>conftest.er1
6001 ac_status=$?
6002 grep -v '^ *+' conftest.er1 >conftest.err
6003 rm -f conftest.er1
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -z "$ac_c_werror_flag"
6008 || test ! -s conftest.err'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010 (eval $ac_try) 2>&5
6011 ac_status=$?
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; } &&
6014 { ac_try='test -s conftest$ac_exeext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016 (eval $ac_try) 2>&5
6017 ac_status=$?
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6020 ac_cv_lib_bsd_gethostbyname=yes
6021else
6022 echo "$as_me: failed program was:" >&5
6023sed 's/^/| /' conftest.$ac_ext >&5
6024
6025ac_cv_lib_bsd_gethostbyname=no
6026fi
6027rm -f conftest.err conftest.$ac_objext \
6028 conftest$ac_exeext conftest.$ac_ext
6029LIBS=$ac_check_lib_save_LIBS
6030fi
6031echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6032echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6033if test $ac_cv_lib_bsd_gethostbyname = yes; then
6034 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6035fi
6036
6037 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00006038 fi
6039
6040 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6041 # socket/setsockopt and other routines are undefined under SCO ODT
6042 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006043 # on later versions), says Simon Leinen: it contains gethostby*
6044 # variants that don't use the name server (or something). -lsocket
6045 # must be given before -lnsl if both are needed. We assume that
6046 # if connect needs -lnsl, so does gethostbyname.
6047 echo "$as_me:$LINENO: checking for connect" >&5
6048echo $ECHO_N "checking for connect... $ECHO_C" >&6
6049if test "${ac_cv_func_connect+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006051else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006052 cat >conftest.$ac_ext <<_ACEOF
6053/* confdefs.h. */
6054_ACEOF
6055cat confdefs.h >>conftest.$ac_ext
6056cat >>conftest.$ac_ext <<_ACEOF
6057/* end confdefs.h. */
6058/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6060#define connect innocuous_connect
6061
Bram Moolenaar071d4272004-06-13 20:20:40 +00006062/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006063 which can conflict with char connect (); below.
6064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6065 <limits.h> exists even on freestanding compilers. */
6066
6067#ifdef __STDC__
6068# include <limits.h>
6069#else
6070# include <assert.h>
6071#endif
6072
6073#undef connect
6074
Bram Moolenaar071d4272004-06-13 20:20:40 +00006075/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006076#ifdef __cplusplus
6077extern "C"
6078{
6079#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006080/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006081 builtin and then its argument prototype would still apply. */
6082char connect ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006083/* The GNU C library defines this for functions which it implements
6084 to always fail with ENOSYS. Some functions are actually named
6085 something starting with __ and the normal name is an alias. */
6086#if defined (__stub_connect) || defined (__stub___connect)
6087choke me
6088#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006089char (*f) () = connect;
6090#endif
6091#ifdef __cplusplus
6092}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006093#endif
6094
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006095int
6096main ()
6097{
6098return f != connect;
6099 ;
6100 return 0;
6101}
6102_ACEOF
6103rm -f conftest.$ac_objext conftest$ac_exeext
6104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6105 (eval $ac_link) 2>conftest.er1
6106 ac_status=$?
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try='test -z "$ac_c_werror_flag"
6113 || test ! -s conftest.err'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115 (eval $ac_try) 2>&5
6116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; } &&
6119 { ac_try='test -s conftest$ac_exeext'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121 (eval $ac_try) 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6125 ac_cv_func_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006126else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006127 echo "$as_me: failed program was:" >&5
6128sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006129
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006130ac_cv_func_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006131fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006132rm -f conftest.err conftest.$ac_objext \
6133 conftest$ac_exeext conftest.$ac_ext
6134fi
6135echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6136echo "${ECHO_T}$ac_cv_func_connect" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006137
6138 if test $ac_cv_func_connect = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006139 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6140echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6141if test "${ac_cv_lib_socket_connect+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006143else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006144 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006145LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006146cat >conftest.$ac_ext <<_ACEOF
6147/* confdefs.h. */
6148_ACEOF
6149cat confdefs.h >>conftest.$ac_ext
6150cat >>conftest.$ac_ext <<_ACEOF
6151/* end confdefs.h. */
6152
Bram Moolenaar071d4272004-06-13 20:20:40 +00006153/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006154#ifdef __cplusplus
6155extern "C"
6156#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006157/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006158 builtin and then its argument prototype would still apply. */
6159char connect ();
6160int
6161main ()
6162{
6163connect ();
6164 ;
6165 return 0;
6166}
6167_ACEOF
6168rm -f conftest.$ac_objext conftest$ac_exeext
6169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>conftest.er1
6171 ac_status=$?
6172 grep -v '^ *+' conftest.er1 >conftest.err
6173 rm -f conftest.er1
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try='test -z "$ac_c_werror_flag"
6178 || test ! -s conftest.err'
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); }; } &&
6184 { ac_try='test -s conftest$ac_exeext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 ac_cv_lib_socket_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006191else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006192 echo "$as_me: failed program was:" >&5
6193sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006194
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006195ac_cv_lib_socket_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006196fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006197rm -f conftest.err conftest.$ac_objext \
6198 conftest$ac_exeext conftest.$ac_ext
6199LIBS=$ac_check_lib_save_LIBS
6200fi
6201echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6202echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6203if test $ac_cv_lib_socket_connect = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006204 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006205fi
6206
6207 fi
6208
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006209 # Guillermo Gomez says -lposix is necessary on A/UX.
6210 echo "$as_me:$LINENO: checking for remove" >&5
6211echo $ECHO_N "checking for remove... $ECHO_C" >&6
6212if test "${ac_cv_func_remove+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006214else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006215 cat >conftest.$ac_ext <<_ACEOF
6216/* confdefs.h. */
6217_ACEOF
6218cat confdefs.h >>conftest.$ac_ext
6219cat >>conftest.$ac_ext <<_ACEOF
6220/* end confdefs.h. */
6221/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6223#define remove innocuous_remove
6224
Bram Moolenaar071d4272004-06-13 20:20:40 +00006225/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006226 which can conflict with char remove (); below.
6227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6228 <limits.h> exists even on freestanding compilers. */
6229
6230#ifdef __STDC__
6231# include <limits.h>
6232#else
6233# include <assert.h>
6234#endif
6235
6236#undef remove
6237
Bram Moolenaar071d4272004-06-13 20:20:40 +00006238/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006239#ifdef __cplusplus
6240extern "C"
6241{
6242#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006243/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006244 builtin and then its argument prototype would still apply. */
6245char remove ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006246/* The GNU C library defines this for functions which it implements
6247 to always fail with ENOSYS. Some functions are actually named
6248 something starting with __ and the normal name is an alias. */
6249#if defined (__stub_remove) || defined (__stub___remove)
6250choke me
6251#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006252char (*f) () = remove;
6253#endif
6254#ifdef __cplusplus
6255}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006256#endif
6257
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006258int
6259main ()
6260{
6261return f != remove;
6262 ;
6263 return 0;
6264}
6265_ACEOF
6266rm -f conftest.$ac_objext conftest$ac_exeext
6267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6268 (eval $ac_link) 2>conftest.er1
6269 ac_status=$?
6270 grep -v '^ *+' conftest.er1 >conftest.err
6271 rm -f conftest.er1
6272 cat conftest.err >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } &&
6275 { ac_try='test -z "$ac_c_werror_flag"
6276 || test ! -s conftest.err'
6277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278 (eval $ac_try) 2>&5
6279 ac_status=$?
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); }; } &&
6282 { ac_try='test -s conftest$ac_exeext'
6283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284 (eval $ac_try) 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; }; then
6288 ac_cv_func_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006289else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006290 echo "$as_me: failed program was:" >&5
6291sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006292
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006293ac_cv_func_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006294fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006295rm -f conftest.err conftest.$ac_objext \
6296 conftest$ac_exeext conftest.$ac_ext
6297fi
6298echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6299echo "${ECHO_T}$ac_cv_func_remove" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006300
6301 if test $ac_cv_func_remove = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006302 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6303echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6304if test "${ac_cv_lib_posix_remove+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006306else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006307 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006308LIBS="-lposix $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006309cat >conftest.$ac_ext <<_ACEOF
6310/* confdefs.h. */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h. */
6315
Bram Moolenaar071d4272004-06-13 20:20:40 +00006316/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006317#ifdef __cplusplus
6318extern "C"
6319#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006320/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006321 builtin and then its argument prototype would still apply. */
6322char remove ();
6323int
6324main ()
6325{
6326remove ();
6327 ;
6328 return 0;
6329}
6330_ACEOF
6331rm -f conftest.$ac_objext conftest$ac_exeext
6332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6333 (eval $ac_link) 2>conftest.er1
6334 ac_status=$?
6335 grep -v '^ *+' conftest.er1 >conftest.err
6336 rm -f conftest.er1
6337 cat conftest.err >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try='test -z "$ac_c_werror_flag"
6341 || test ! -s conftest.err'
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); }; } &&
6347 { ac_try='test -s conftest$ac_exeext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 ac_cv_lib_posix_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006354else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006355 echo "$as_me: failed program was:" >&5
6356sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006357
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006358ac_cv_lib_posix_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006359fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006360rm -f conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
6362LIBS=$ac_check_lib_save_LIBS
6363fi
6364echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6365echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6366if test $ac_cv_lib_posix_remove = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006368fi
6369
6370 fi
6371
6372 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006373 echo "$as_me:$LINENO: checking for shmat" >&5
6374echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6375if test "${ac_cv_func_shmat+set}" = set; then
6376 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006377else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006378 cat >conftest.$ac_ext <<_ACEOF
6379/* confdefs.h. */
6380_ACEOF
6381cat confdefs.h >>conftest.$ac_ext
6382cat >>conftest.$ac_ext <<_ACEOF
6383/* end confdefs.h. */
6384/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6386#define shmat innocuous_shmat
6387
Bram Moolenaar071d4272004-06-13 20:20:40 +00006388/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006389 which can conflict with char shmat (); below.
6390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6391 <limits.h> exists even on freestanding compilers. */
6392
6393#ifdef __STDC__
6394# include <limits.h>
6395#else
6396# include <assert.h>
6397#endif
6398
6399#undef shmat
6400
Bram Moolenaar071d4272004-06-13 20:20:40 +00006401/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006402#ifdef __cplusplus
6403extern "C"
6404{
6405#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006406/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006407 builtin and then its argument prototype would still apply. */
6408char shmat ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006409/* The GNU C library defines this for functions which it implements
6410 to always fail with ENOSYS. Some functions are actually named
6411 something starting with __ and the normal name is an alias. */
6412#if defined (__stub_shmat) || defined (__stub___shmat)
6413choke me
6414#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006415char (*f) () = shmat;
6416#endif
6417#ifdef __cplusplus
6418}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006419#endif
6420
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006421int
6422main ()
6423{
6424return f != shmat;
6425 ;
6426 return 0;
6427}
6428_ACEOF
6429rm -f conftest.$ac_objext conftest$ac_exeext
6430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6431 (eval $ac_link) 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } &&
6438 { ac_try='test -z "$ac_c_werror_flag"
6439 || test ! -s conftest.err'
6440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441 (eval $ac_try) 2>&5
6442 ac_status=$?
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; } &&
6445 { ac_try='test -s conftest$ac_exeext'
6446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6447 (eval $ac_try) 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_cv_func_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006452else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006453 echo "$as_me: failed program was:" >&5
6454sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006455
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006456ac_cv_func_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006457fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006458rm -f conftest.err conftest.$ac_objext \
6459 conftest$ac_exeext conftest.$ac_ext
6460fi
6461echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6462echo "${ECHO_T}$ac_cv_func_shmat" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006463
6464 if test $ac_cv_func_shmat = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006465 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6466echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6467if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006469else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006470 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006471LIBS="-lipc $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006472cat >conftest.$ac_ext <<_ACEOF
6473/* confdefs.h. */
6474_ACEOF
6475cat confdefs.h >>conftest.$ac_ext
6476cat >>conftest.$ac_ext <<_ACEOF
6477/* end confdefs.h. */
6478
Bram Moolenaar071d4272004-06-13 20:20:40 +00006479/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006480#ifdef __cplusplus
6481extern "C"
6482#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006483/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006484 builtin and then its argument prototype would still apply. */
6485char shmat ();
6486int
6487main ()
6488{
6489shmat ();
6490 ;
6491 return 0;
6492}
6493_ACEOF
6494rm -f conftest.$ac_objext conftest$ac_exeext
6495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -z "$ac_c_werror_flag"
6504 || test ! -s conftest.err'
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); }; } &&
6510 { ac_try='test -s conftest$ac_exeext'
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 (eval $ac_try) 2>&5
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; }; then
6516 ac_cv_lib_ipc_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006517else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006518 echo "$as_me: failed program was:" >&5
6519sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006520
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006521ac_cv_lib_ipc_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006522fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006523rm -f conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext conftest.$ac_ext
6525LIBS=$ac_check_lib_save_LIBS
6526fi
6527echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6528echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6529if test $ac_cv_lib_ipc_shmat = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006530 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006531fi
6532
6533 fi
6534 fi
6535
6536 # Check for libraries that X11R6 Xt/Xaw programs need.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006537 ac_save_LDFLAGS=$LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006538 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6539 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6540 # check for ICE first), but we must link in the order -lSM -lICE or
6541 # we get undefined symbols. So assume we have SM if we have ICE.
6542 # These have to be linked with before -lX11, unlike the other
6543 # libraries we check for below, so use a different variable.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006544 # John Interrante, Karl Berry
6545 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6546echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6547if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006549else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006550 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006551LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006552cat >conftest.$ac_ext <<_ACEOF
6553/* confdefs.h. */
6554_ACEOF
6555cat confdefs.h >>conftest.$ac_ext
6556cat >>conftest.$ac_ext <<_ACEOF
6557/* end confdefs.h. */
6558
Bram Moolenaar071d4272004-06-13 20:20:40 +00006559/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006560#ifdef __cplusplus
6561extern "C"
6562#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006563/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006564 builtin and then its argument prototype would still apply. */
6565char IceConnectionNumber ();
6566int
6567main ()
6568{
6569IceConnectionNumber ();
6570 ;
6571 return 0;
6572}
6573_ACEOF
6574rm -f conftest.$ac_objext conftest$ac_exeext
6575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6576 (eval $ac_link) 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -z "$ac_c_werror_flag"
6584 || test ! -s conftest.err'
6585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 (eval $ac_try) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); }; } &&
6590 { ac_try='test -s conftest$ac_exeext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 ac_cv_lib_ICE_IceConnectionNumber=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006597else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006598 echo "$as_me: failed program was:" >&5
6599sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006600
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006601ac_cv_lib_ICE_IceConnectionNumber=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006602fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006603rm -f conftest.err conftest.$ac_objext \
6604 conftest$ac_exeext conftest.$ac_ext
6605LIBS=$ac_check_lib_save_LIBS
6606fi
6607echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6608echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6609if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006610 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006611fi
6612
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006613 LDFLAGS=$ac_save_LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006614
6615fi
6616
6617
6618 if test "$OS390Unix" = "yes"; then
6619 CFLAGS="$CFLAGS -W c,dll"
6620 LDFLAGS="$LDFLAGS -W l,dll"
6621 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6622 fi
6623
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006624
Bram Moolenaar071d4272004-06-13 20:20:40 +00006625 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6626 x_libraries=`echo "$x_includes" | sed s/include/lib/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006627 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6628echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006629 X_LIBS="$X_LIBS -L$x_libraries"
6630 if test "`(uname) 2>/dev/null`" = SunOS &&
6631 uname -r | grep '^5' >/dev/null; then
6632 X_LIBS="$X_LIBS -R $x_libraries"
6633 fi
6634 fi
6635
6636 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6637 x_includes=`echo "$x_libraries" | sed s/lib/include/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006638 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6639echo "${ECHO_T}Corrected X includes to $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006640 X_CFLAGS="$X_CFLAGS -I$x_includes"
6641 fi
6642
6643 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6644 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6645 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6646
6647
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006648 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6649echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006650 cflags_save=$CFLAGS
6651 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006652 cat >conftest.$ac_ext <<_ACEOF
6653/* confdefs.h. */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006658#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006659int
6660main ()
6661{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006662
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006663 ;
6664 return 0;
6665}
6666_ACEOF
6667rm -f conftest.$ac_objext
6668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag"
6677 || test ! -s conftest.err'
6678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 (eval $ac_try) 2>&5
6680 ac_status=$?
6681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682 (exit $ac_status); }; } &&
6683 { ac_try='test -s conftest.$ac_objext'
6684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685 (eval $ac_try) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); }; }; then
6689 echo "$as_me:$LINENO: result: yes" >&5
6690echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006691else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006692 echo "$as_me: failed program was:" >&5
6693sed 's/^/| /' conftest.$ac_ext >&5
6694
6695echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6; no_x=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006697fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006699 CFLAGS=$cflags_save
6700
6701 if test "${no_x-no}" = yes; then
6702 with_x=no
6703 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006704 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006705#define HAVE_X11 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006706_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006707
6708 X_LIB="-lXt -lX11";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006709
Bram Moolenaar071d4272004-06-13 20:20:40 +00006710
6711 ac_save_LDFLAGS="$LDFLAGS"
6712 LDFLAGS="-L$x_libraries $LDFLAGS"
6713
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006714 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6715echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6716if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6717 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006718else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006719 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006720LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006721cat >conftest.$ac_ext <<_ACEOF
6722/* confdefs.h. */
6723_ACEOF
6724cat confdefs.h >>conftest.$ac_ext
6725cat >>conftest.$ac_ext <<_ACEOF
6726/* end confdefs.h. */
6727
Bram Moolenaar071d4272004-06-13 20:20:40 +00006728/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006729#ifdef __cplusplus
6730extern "C"
6731#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006732/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006733 builtin and then its argument prototype would still apply. */
6734char _XdmcpAuthDoIt ();
6735int
6736main ()
6737{
6738_XdmcpAuthDoIt ();
6739 ;
6740 return 0;
6741}
6742_ACEOF
6743rm -f conftest.$ac_objext conftest$ac_exeext
6744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6745 (eval $ac_link) 2>conftest.er1
6746 ac_status=$?
6747 grep -v '^ *+' conftest.er1 >conftest.err
6748 rm -f conftest.er1
6749 cat conftest.err >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); } &&
6752 { ac_try='test -z "$ac_c_werror_flag"
6753 || test ! -s conftest.err'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 (eval $ac_try) 2>&5
6756 ac_status=$?
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; } &&
6759 { ac_try='test -s conftest$ac_exeext'
6760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 (eval $ac_try) 2>&5
6762 ac_status=$?
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); }; }; then
6765 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006766else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006767 echo "$as_me: failed program was:" >&5
6768sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006769
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006770ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006771fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006772rm -f conftest.err conftest.$ac_objext \
6773 conftest$ac_exeext conftest.$ac_ext
6774LIBS=$ac_check_lib_save_LIBS
6775fi
6776echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6777echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6778if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006779 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006780fi
6781
6782
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006783 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6784echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6785if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6786 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006787else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006788 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006789LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006790cat >conftest.$ac_ext <<_ACEOF
6791/* confdefs.h. */
6792_ACEOF
6793cat confdefs.h >>conftest.$ac_ext
6794cat >>conftest.$ac_ext <<_ACEOF
6795/* end confdefs.h. */
6796
Bram Moolenaar071d4272004-06-13 20:20:40 +00006797/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006798#ifdef __cplusplus
6799extern "C"
6800#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006801/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006802 builtin and then its argument prototype would still apply. */
6803char IceOpenConnection ();
6804int
6805main ()
6806{
6807IceOpenConnection ();
6808 ;
6809 return 0;
6810}
6811_ACEOF
6812rm -f conftest.$ac_objext conftest$ac_exeext
6813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6814 (eval $ac_link) 2>conftest.er1
6815 ac_status=$?
6816 grep -v '^ *+' conftest.er1 >conftest.err
6817 rm -f conftest.er1
6818 cat conftest.err >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } &&
6821 { ac_try='test -z "$ac_c_werror_flag"
6822 || test ! -s conftest.err'
6823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 (eval $ac_try) 2>&5
6825 ac_status=$?
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); }; } &&
6828 { ac_try='test -s conftest$ac_exeext'
6829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 (eval $ac_try) 2>&5
6831 ac_status=$?
6832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 (exit $ac_status); }; }; then
6834 ac_cv_lib_ICE_IceOpenConnection=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006835else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006836 echo "$as_me: failed program was:" >&5
6837sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006838
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006839ac_cv_lib_ICE_IceOpenConnection=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006840fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006841rm -f conftest.err conftest.$ac_objext \
6842 conftest$ac_exeext conftest.$ac_ext
6843LIBS=$ac_check_lib_save_LIBS
6844fi
6845echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6846echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6847if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006848 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006849fi
6850
6851
6852 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006853 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6854echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6855if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006857else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006858 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006859LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006860cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h. */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h. */
6866
Bram Moolenaar071d4272004-06-13 20:20:40 +00006867/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006868#ifdef __cplusplus
6869extern "C"
6870#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006871/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006872 builtin and then its argument prototype would still apply. */
6873char XpmCreatePixmapFromData ();
6874int
6875main ()
6876{
6877XpmCreatePixmapFromData ();
6878 ;
6879 return 0;
6880}
6881_ACEOF
6882rm -f conftest.$ac_objext conftest$ac_exeext
6883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884 (eval $ac_link) 2>conftest.er1
6885 ac_status=$?
6886 grep -v '^ *+' conftest.er1 >conftest.err
6887 rm -f conftest.er1
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try='test -z "$ac_c_werror_flag"
6892 || test ! -s conftest.err'
6893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6894 (eval $ac_try) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); }; } &&
6898 { ac_try='test -s conftest$ac_exeext'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 (eval $ac_try) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006905else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006906 echo "$as_me: failed program was:" >&5
6907sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006908
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006909ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006910fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006911rm -f conftest.err conftest.$ac_objext \
6912 conftest$ac_exeext conftest.$ac_ext
6913LIBS=$ac_check_lib_save_LIBS
6914fi
6915echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6916echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6917if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006918 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006919fi
6920
6921
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006922 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6923echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006924 cflags_save=$CFLAGS
6925 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006926 cat >conftest.$ac_ext <<_ACEOF
6927/* confdefs.h. */
6928_ACEOF
6929cat confdefs.h >>conftest.$ac_ext
6930cat >>conftest.$ac_ext <<_ACEOF
6931/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006932#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006933int
6934main ()
6935{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006936
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006937 ;
6938 return 0;
6939}
6940_ACEOF
6941rm -f conftest.$ac_objext
6942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943 (eval $ac_compile) 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_objext'
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 echo "$as_me:$LINENO: result: no" >&5
6964echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006965else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006966 echo "$as_me: failed program was:" >&5
6967sed 's/^/| /' conftest.$ac_ext >&5
6968
6969CFLAGS="$CFLAGS -Wno-implicit-int"
6970 cat >conftest.$ac_ext <<_ACEOF
6971/* confdefs.h. */
6972_ACEOF
6973cat confdefs.h >>conftest.$ac_ext
6974cat >>conftest.$ac_ext <<_ACEOF
6975/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006976#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006977int
6978main ()
6979{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006980
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006981 ;
6982 return 0;
6983}
6984_ACEOF
6985rm -f conftest.$ac_objext
6986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6987 (eval $ac_compile) 2>conftest.er1
6988 ac_status=$?
6989 grep -v '^ *+' conftest.er1 >conftest.err
6990 rm -f conftest.er1
6991 cat conftest.err >&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -z "$ac_c_werror_flag"
6995 || test ! -s conftest.err'
6996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 (eval $ac_try) 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; } &&
7001 { ac_try='test -s conftest.$ac_objext'
7002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 (eval $ac_try) 2>&5
7004 ac_status=$?
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 echo "$as_me:$LINENO: result: yes" >&5
7008echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007009else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007010 echo "$as_me: failed program was:" >&5
7011sed 's/^/| /' conftest.$ac_ext >&5
7012
7013echo "$as_me:$LINENO: result: test failed" >&5
7014echo "${ECHO_T}test failed" >&6
7015
Bram Moolenaar071d4272004-06-13 20:20:40 +00007016fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7018
Bram Moolenaar071d4272004-06-13 20:20:40 +00007019fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00007021 CFLAGS=$cflags_save
7022
7023 LDFLAGS="$ac_save_LDFLAGS"
7024
7025 fi
7026fi
7027
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00007028test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00007029
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007030echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7031echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007032# Check whether --enable-gui or --disable-gui was given.
7033if test "${enable_gui+set}" = set; then
7034 enableval="$enable_gui"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007035
Bram Moolenaar071d4272004-06-13 20:20:40 +00007036else
7037 enable_gui="auto"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007038fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007039
7040enable_gui_canon=`echo "_$enable_gui" | \
7041 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7042
7043SKIP_GTK=YES
7044SKIP_GTK2=YES
7045SKIP_GNOME=YES
7046SKIP_MOTIF=YES
7047SKIP_ATHENA=YES
7048SKIP_NEXTAW=YES
7049SKIP_PHOTON=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00007050SKIP_CARBON=YES
7051GUITYPE=NONE
7052
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007053if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007054 SKIP_PHOTON=
7055 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007056 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7057echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007058 SKIP_PHOTON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007059 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7060echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7061 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7062echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7063 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
7064echo "${ECHO_T}Photon GUI support" >&6 ;;
7065 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7066echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007067 SKIP_PHOTON=YES ;;
7068 esac
7069
7070elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7071 SKIP_CARBON=
7072 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007073 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7074echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007075 SKIP_CARBON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007076 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7077echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7078 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7079echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7080 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7081echo "${ECHO_T}Carbon GUI support" >&6 ;;
7082 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7083echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007084 SKIP_CARBON=YES ;;
7085 esac
7086
7087else
7088
Bram Moolenaar071d4272004-06-13 20:20:40 +00007089 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007090 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
7091echo "${ECHO_T}no GUI support" >&6 ;;
7092 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7093echo "${ECHO_T}yes/auto - automatic GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007094 SKIP_GTK=
7095 SKIP_GTK2=
7096 SKIP_GNOME=
7097 SKIP_MOTIF=
7098 SKIP_ATHENA=
7099 SKIP_NEXTAW=
7100 SKIP_CARBON=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007101 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7102echo "${ECHO_T}GTK+ 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007103 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007104 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7105echo "${ECHO_T}GTK+ 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007106 SKIP_GTK=
7107 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007108 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7109echo "${ECHO_T}GNOME 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007110 SKIP_GNOME=
7111 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007112 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7113echo "${ECHO_T}GNOME 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007114 SKIP_GNOME=
7115 SKIP_GTK=
7116 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007117 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
7118echo "${ECHO_T}Motif GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007119 SKIP_MOTIF=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007120 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
7121echo "${ECHO_T}Athena GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007122 SKIP_ATHENA=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007123 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7124echo "${ECHO_T}neXtaw GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007125 SKIP_NEXTAW=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007126 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7127echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007128 esac
7129
7130fi
7131
7132if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007133 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7134echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007135 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7136if test "${enable_gtk_check+set}" = set; then
7137 enableval="$enable_gtk_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007138
Bram Moolenaar071d4272004-06-13 20:20:40 +00007139else
7140 enable_gtk_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007141fi;
7142 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7143echo "${ECHO_T}$enable_gtk_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007144 if test "x$enable_gtk_check" = "xno"; then
7145 SKIP_GTK=YES
7146 SKIP_GNOME=YES
7147 fi
7148fi
7149
7150if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7151 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007152 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7153echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007154 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7155if test "${enable_gtk2_check+set}" = set; then
7156 enableval="$enable_gtk2_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007157
Bram Moolenaar071d4272004-06-13 20:20:40 +00007158else
7159 enable_gtk2_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007160fi;
7161 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7162echo "${ECHO_T}$enable_gtk2_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007163 if test "x$enable_gtk2_check" = "xno"; then
7164 SKIP_GTK2=YES
7165 fi
7166fi
7167
7168if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7169 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007170 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7171echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007172 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7173if test "${enable_gnome_check+set}" = set; then
7174 enableval="$enable_gnome_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007175
Bram Moolenaar071d4272004-06-13 20:20:40 +00007176else
7177 enable_gnome_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007178fi;
7179 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7180echo "${ECHO_T}$enable_gnome_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007181 if test "x$enable_gnome_check" = "xno"; then
7182 SKIP_GNOME=YES
7183 fi
7184fi
7185
7186if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007187 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7188echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007189 # Check whether --enable-motif-check or --disable-motif-check was given.
7190if test "${enable_motif_check+set}" = set; then
7191 enableval="$enable_motif_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007192
Bram Moolenaar071d4272004-06-13 20:20:40 +00007193else
7194 enable_motif_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007195fi;
7196 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7197echo "${ECHO_T}$enable_motif_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007198 if test "x$enable_motif_check" = "xno"; then
7199 SKIP_MOTIF=YES
7200 fi
7201fi
7202
7203if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007204 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7205echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007206 # Check whether --enable-athena-check or --disable-athena-check was given.
7207if test "${enable_athena_check+set}" = set; then
7208 enableval="$enable_athena_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007209
Bram Moolenaar071d4272004-06-13 20:20:40 +00007210else
7211 enable_athena_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007212fi;
7213 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7214echo "${ECHO_T}$enable_athena_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007215 if test "x$enable_athena_check" = "xno"; then
7216 SKIP_ATHENA=YES
7217 fi
7218fi
7219
7220if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007221 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7222echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007223 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7224if test "${enable_nextaw_check+set}" = set; then
7225 enableval="$enable_nextaw_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007226
Bram Moolenaar071d4272004-06-13 20:20:40 +00007227else
7228 enable_nextaw_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007229fi;
7230 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7231echo "${ECHO_T}$enable_nextaw_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007232 if test "x$enable_nextaw_check" = "xno"; then
7233 SKIP_NEXTAW=YES
7234 fi
7235fi
7236
7237if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007238 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7239echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007240 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7241if test "${enable_carbon_check+set}" = set; then
7242 enableval="$enable_carbon_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007243
Bram Moolenaar071d4272004-06-13 20:20:40 +00007244else
7245 enable_carbon_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007246fi;
7247 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7248echo "${ECHO_T}$enable_carbon_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007249 if test "x$enable_carbon_check" = "xno"; then
7250 SKIP_CARBON=YES
7251 fi
7252fi
7253
Bram Moolenaar843ee412004-06-30 16:16:41 +00007254
Bram Moolenaar071d4272004-06-13 20:20:40 +00007255if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007256 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7257echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7258 echo "$as_me:$LINENO: result: yes" >&5
7259echo "${ECHO_T}yes" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007260 GUITYPE=CARBONGUI
Bram Moolenaare344bea2005-09-01 20:46:49 +00007261 if test "$VIMNAME" = "vim"; then
7262 VIMNAME=Vim
7263 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007264 SKIP_GTK=YES;
7265 SKIP_GTK2=YES;
7266 SKIP_GNOME=YES;
7267 SKIP_MOTIF=YES;
7268 SKIP_ATHENA=YES;
7269 SKIP_NEXTAW=YES;
7270 SKIP_PHOTON=YES;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007271 SKIP_CARBON=YES
7272fi
7273
7274
7275
7276
7277
7278
7279
7280
7281
Bram Moolenaar071d4272004-06-13 20:20:40 +00007282if test -z "$SKIP_GTK"; then
7283
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007284 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7285echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7286
7287# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007288if test "${with_gtk_prefix+set}" = set; then
7289 withval="$with_gtk_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007290 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7291echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007292else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007293 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7294echo "${ECHO_T}no" >&6
7295fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007296
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007297 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7298echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007299
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007300# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007301if test "${with_gtk_exec_prefix+set}" = set; then
7302 withval="$with_gtk_exec_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007303 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7304echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007305else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007306 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7307echo "${ECHO_T}no" >&6
7308fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007309
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007310 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7311echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007312 # Check whether --enable-gtktest or --disable-gtktest was given.
7313if test "${enable_gtktest+set}" = set; then
7314 enableval="$enable_gtktest"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007315
Bram Moolenaar071d4272004-06-13 20:20:40 +00007316else
7317 enable_gtktest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007318fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007319 if test "x$enable_gtktest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007320 echo "$as_me:$LINENO: result: gtk test enabled" >&5
7321echo "${ECHO_T}gtk test enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007322 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007323 echo "$as_me:$LINENO: result: gtk test disabled" >&5
7324echo "${ECHO_T}gtk test disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007325 fi
7326
7327 if test "x$gtk_config_prefix" != "x" ; then
7328 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7329 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7330 fi
7331 if test "x$gtk_config_exec_prefix" != "x" ; then
7332 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7333 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7334 fi
7335 if test "X$GTK_CONFIG" = "X"; then
7336 # Extract the first word of "gtk-config", so it can be a program name with args.
7337set dummy gtk-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007338echo "$as_me:$LINENO: checking for $ac_word" >&5
7339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7340if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7341 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007342else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007343 case $GTK_CONFIG in
7344 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007345 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7346 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007347 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_exec_ext in '' $ac_executable_extensions; do
7354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7355 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 break 2
7358 fi
7359done
7360done
7361
Bram Moolenaar071d4272004-06-13 20:20:40 +00007362 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7363 ;;
7364esac
7365fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007366GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7367
Bram Moolenaar071d4272004-06-13 20:20:40 +00007368if test -n "$GTK_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007369 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7370echo "${ECHO_T}$GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007371else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007372 echo "$as_me:$LINENO: result: no" >&5
7373echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007374fi
7375
7376 if test "X$GTK_CONFIG" = "Xno"; then
7377 # Extract the first word of "gtk12-config", so it can be a program name with args.
7378set dummy gtk12-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007379echo "$as_me:$LINENO: checking for $ac_word" >&5
7380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7381if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007383else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007384 case $GTK12_CONFIG in
7385 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007386 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7387 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007388 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400done
7401done
7402
Bram Moolenaar071d4272004-06-13 20:20:40 +00007403 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7404 ;;
7405esac
7406fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007407GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7408
Bram Moolenaar071d4272004-06-13 20:20:40 +00007409if test -n "$GTK12_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007410 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7411echo "${ECHO_T}$GTK12_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007412else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007413 echo "$as_me:$LINENO: result: no" >&5
7414echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007415fi
7416
7417 GTK_CONFIG="$GTK12_CONFIG"
7418 fi
7419 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007420 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7421echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007422 fi
7423 if test "X$PKG_CONFIG" = "X"; then
7424 # Extract the first word of "pkg-config", so it can be a program name with args.
7425set dummy pkg-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007426echo "$as_me:$LINENO: checking for $ac_word" >&5
7427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7428if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007430else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007431 case $PKG_CONFIG in
7432 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007433 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7434 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007435 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437for as_dir in $PATH
7438do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447done
7448done
7449
Bram Moolenaar071d4272004-06-13 20:20:40 +00007450 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7451 ;;
7452esac
7453fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007454PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7455
Bram Moolenaar071d4272004-06-13 20:20:40 +00007456if test -n "$PKG_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007457 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7458echo "${ECHO_T}$PKG_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007459else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007460 echo "$as_me:$LINENO: result: no" >&5
7461echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007462fi
7463
7464 fi
7465
7466 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7467 if test "X$SKIP_GTK2" != "XYES"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007468
Bram Moolenaar071d4272004-06-13 20:20:40 +00007469 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7470 {
7471 min_gtk_version=2.2.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007472 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7473echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007474 no_gtk=""
7475 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7476 && $PKG_CONFIG --exists gtk+-2.0; then
7477 {
7478 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007479 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007480 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7481 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7482 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7483 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7484 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7485 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7486 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7487 }
7488 elif test "X$GTK_CONFIG" != "Xno"; then
7489 {
7490 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007491 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007492 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7493 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7494 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7495 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7496 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7497 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7498 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7499 }
7500 else
7501 no_gtk=yes
7502 fi
7503
7504 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7505 {
7506 ac_save_CFLAGS="$CFLAGS"
7507 ac_save_LIBS="$LIBS"
7508 CFLAGS="$CFLAGS $GTK_CFLAGS"
7509 LIBS="$LIBS $GTK_LIBS"
7510
7511 rm -f conf.gtktest
7512 if test "$cross_compiling" = yes; then
7513 echo $ac_n "cross compiling; assumed OK... $ac_c"
7514else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007515 cat >conftest.$ac_ext <<_ACEOF
7516/* confdefs.h. */
7517_ACEOF
7518cat confdefs.h >>conftest.$ac_ext
7519cat >>conftest.$ac_ext <<_ACEOF
7520/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007521
7522#include <gtk/gtk.h>
7523#include <stdio.h>
7524
7525int
7526main ()
7527{
7528int major, minor, micro;
7529char *tmp_version;
7530
7531system ("touch conf.gtktest");
7532
7533/* HP/UX 9 (%@#!) writes to sscanf strings */
7534tmp_version = g_strdup("$min_gtk_version");
7535if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7536 printf("%s, bad version string\n", "$min_gtk_version");
7537 exit(1);
7538 }
7539
7540if ((gtk_major_version > major) ||
7541 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7542 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7543 (gtk_micro_version >= micro)))
7544{
7545 return 0;
7546}
7547return 1;
7548}
7549
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007550_ACEOF
7551rm -f conftest$ac_exeext
7552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553 (eval $ac_link) 2>&5
7554 ac_status=$?
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558 (eval $ac_try) 2>&5
7559 ac_status=$?
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007562 :
7563else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007564 echo "$as_me: program exited with status $ac_status" >&5
7565echo "$as_me: failed program was:" >&5
7566sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007567
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007568( exit $ac_status )
7569no_gtk=yes
7570fi
7571rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7572fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007573 CFLAGS="$ac_save_CFLAGS"
7574 LIBS="$ac_save_LIBS"
7575 }
7576 fi
7577 if test "x$no_gtk" = x ; then
7578 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007579 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7580echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007581 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007582 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7583echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007584 fi
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007585 GUI_LIB_LOC="$GTK_LIBDIR"
7586 GTK_LIBNAME="$GTK_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007587 GUI_INC_LOC="$GTK_CFLAGS"
7588 else
7589 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007590 echo "$as_me:$LINENO: result: no" >&5
7591echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007592 GTK_CFLAGS=""
7593 GTK_LIBS=""
7594 :
7595 }
7596 fi
7597 }
7598 else
7599 GTK_CFLAGS=""
7600 GTK_LIBS=""
7601 :
7602 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007603
7604
Bram Moolenaar071d4272004-06-13 20:20:40 +00007605 rm -f conf.gtktest
7606
7607 if test "x$GTK_CFLAGS" != "x"; then
7608 SKIP_ATHENA=YES
7609 SKIP_NEXTAW=YES
7610 SKIP_MOTIF=YES
7611 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007612
Bram Moolenaar071d4272004-06-13 20:20:40 +00007613 fi
7614 fi
7615
7616 if test "x$GUITYPE" != "xGTK"; then
7617 SKIP_GTK2=YES
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007618
Bram Moolenaar071d4272004-06-13 20:20:40 +00007619 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7620 {
7621 min_gtk_version=1.1.16
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007622 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7623echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007624 no_gtk=""
7625 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7626 && $PKG_CONFIG --exists gtk+-2.0; then
7627 {
7628 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007629 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007630 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7631 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7632 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7633 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7634 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7635 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7636 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7637 }
7638 elif test "X$GTK_CONFIG" != "Xno"; then
7639 {
7640 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007641 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007642 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7643 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7644 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7645 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7646 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7647 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7648 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7649 }
7650 else
7651 no_gtk=yes
7652 fi
7653
7654 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7655 {
7656 ac_save_CFLAGS="$CFLAGS"
7657 ac_save_LIBS="$LIBS"
7658 CFLAGS="$CFLAGS $GTK_CFLAGS"
7659 LIBS="$LIBS $GTK_LIBS"
7660
7661 rm -f conf.gtktest
7662 if test "$cross_compiling" = yes; then
7663 echo $ac_n "cross compiling; assumed OK... $ac_c"
7664else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007665 cat >conftest.$ac_ext <<_ACEOF
7666/* confdefs.h. */
7667_ACEOF
7668cat confdefs.h >>conftest.$ac_ext
7669cat >>conftest.$ac_ext <<_ACEOF
7670/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007671
7672#include <gtk/gtk.h>
7673#include <stdio.h>
7674
7675int
7676main ()
7677{
7678int major, minor, micro;
7679char *tmp_version;
7680
7681system ("touch conf.gtktest");
7682
7683/* HP/UX 9 (%@#!) writes to sscanf strings */
7684tmp_version = g_strdup("$min_gtk_version");
7685if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7686 printf("%s, bad version string\n", "$min_gtk_version");
7687 exit(1);
7688 }
7689
7690if ((gtk_major_version > major) ||
7691 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7692 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7693 (gtk_micro_version >= micro)))
7694{
7695 return 0;
7696}
7697return 1;
7698}
7699
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007700_ACEOF
7701rm -f conftest$ac_exeext
7702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7703 (eval $ac_link) 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 (eval $ac_try) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007712 :
7713else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007714 echo "$as_me: program exited with status $ac_status" >&5
7715echo "$as_me: failed program was:" >&5
7716sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007717
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007718( exit $ac_status )
7719no_gtk=yes
7720fi
7721rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7722fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007723 CFLAGS="$ac_save_CFLAGS"
7724 LIBS="$ac_save_LIBS"
7725 }
7726 fi
7727 if test "x$no_gtk" = x ; then
7728 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007729 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7730echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007731 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007732 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7733echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007734 fi
7735 GTK_LIBNAME="$GTK_LIBS"
7736 GUI_INC_LOC="$GTK_CFLAGS"
7737 else
7738 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007739 echo "$as_me:$LINENO: result: no" >&5
7740echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007741 GTK_CFLAGS=""
7742 GTK_LIBS=""
7743 :
7744 }
7745 fi
7746 }
7747 else
7748 GTK_CFLAGS=""
7749 GTK_LIBS=""
7750 :
7751 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007752
7753
Bram Moolenaar071d4272004-06-13 20:20:40 +00007754 rm -f conf.gtktest
7755
7756 if test "x$GTK_CFLAGS" != "x"; then
7757 SKIP_ATHENA=YES
7758 SKIP_NEXTAW=YES
7759 SKIP_MOTIF=YES
7760 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007761
Bram Moolenaar071d4272004-06-13 20:20:40 +00007762 fi
7763 fi
7764 fi
7765 if test "x$GUITYPE" = "xGTK"; then
7766 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7767 -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 +00007768 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7769echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007770 else
7771 {
7772 if test "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007773 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007774#define HAVE_GTK2 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007775_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007776
7777 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7778 || test "0$gtk_minor_version" -ge 2 \
7779 || test "0$gtk_major_version" -gt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007780 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007781#define HAVE_GTK_MULTIHEAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007782_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007783
7784 fi
7785 fi
7786 if test -z "$SKIP_GNOME"; then
7787 {
Bram Moolenaar071d4272004-06-13 20:20:40 +00007788
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007789
7790
7791
7792
7793
7794# Check whether --with-gnome-includes or --without-gnome-includes was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007795if test "${with_gnome_includes+set}" = set; then
7796 withval="$with_gnome_includes"
7797 CFLAGS="$CFLAGS -I$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007798
7799fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007800
7801
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007802# Check whether --with-gnome-libs or --without-gnome-libs was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007803if test "${with_gnome_libs+set}" = set; then
7804 withval="$with_gnome_libs"
7805 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007806
7807fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007808
7809
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007810# Check whether --with-gnome or --without-gnome was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007811if test "${with_gnome+set}" = set; then
7812 withval="$with_gnome"
7813 if test x$withval = xyes; then
7814 want_gnome=yes
7815 have_gnome=yes
7816 else
7817 if test "x$withval" = xno; then
7818 want_gnome=no
7819 else
7820 want_gnome=yes
7821 LDFLAGS="$LDFLAGS -L$withval/lib"
7822 CFLAGS="$CFLAGS -I$withval/include"
7823 gnome_prefix=$withval/lib
7824 fi
7825 fi
7826else
7827 want_gnome=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007828fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007829
7830 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7831 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007832 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7833echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007834 if $PKG_CONFIG --exists libgnomeui-2.0; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007835 echo "$as_me:$LINENO: result: yes" >&5
7836echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007837 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7838 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7839 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
Bram Moolenaar97b2ad32006-03-18 21:40:56 +00007840
7841 echo "$as_me:$LINENO: checking for FreeBSD" >&5
7842echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6
7843 if test "`(uname) 2>/dev/null`" = FreeBSD; then
7844 echo "$as_me:$LINENO: result: yes" >&5
7845echo "${ECHO_T}yes" >&6
7846 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE"
7847 GNOME_LIBS="$GNOME_LIBS -pthread"
7848 else
7849 echo "$as_me:$LINENO: result: no" >&5
7850echo "${ECHO_T}no" >&6
7851 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007852 have_gnome=yes
7853 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007854 echo "$as_me:$LINENO: result: not found" >&5
7855echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007856 if test "x" = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007857 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7858echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7859 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007860 fi
7861 fi
7862 }
7863 elif test "x$want_gnome" = xyes; then
7864 {
7865 # Extract the first word of "gnome-config", so it can be a program name with args.
7866set dummy gnome-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007867echo "$as_me:$LINENO: checking for $ac_word" >&5
7868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7869if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007871else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007872 case $GNOME_CONFIG in
7873 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007874 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7875 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007876 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7884 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7887 fi
7888done
7889done
7890
Bram Moolenaar071d4272004-06-13 20:20:40 +00007891 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7892 ;;
7893esac
7894fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007895GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7896
Bram Moolenaar071d4272004-06-13 20:20:40 +00007897if test -n "$GNOME_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007898 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7899echo "${ECHO_T}$GNOME_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007900else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007901 echo "$as_me:$LINENO: result: no" >&5
7902echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007903fi
7904
7905 if test "$GNOME_CONFIG" = "no"; then
7906 no_gnome_config="yes"
7907 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007908 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7909echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007910 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007911 echo "$as_me:$LINENO: result: yes" >&5
7912echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007913 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7914 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7915 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7916 have_gnome=yes
7917 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007918 echo "$as_me:$LINENO: result: no" >&5
7919echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007920 no_gnome_config="yes"
7921 fi
7922 fi
7923
7924 if test x$exec_prefix = xNONE; then
7925 if test x$prefix = xNONE; then
7926 gnome_prefix=$ac_default_prefix/lib
7927 else
7928 gnome_prefix=$prefix/lib
7929 fi
7930 else
7931 gnome_prefix=`eval echo \`echo $libdir\``
7932 fi
7933
7934 if test "$no_gnome_config" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007935 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7936echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007937 if test -f $gnome_prefix/gnomeConf.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007938 echo "$as_me:$LINENO: result: found" >&5
7939echo "${ECHO_T}found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007940 echo "loading gnome configuration from" \
7941 "$gnome_prefix/gnomeConf.sh"
7942 . $gnome_prefix/gnomeConf.sh
7943 have_gnome=yes
7944 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007945 echo "$as_me:$LINENO: result: not found" >&5
7946echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007947 if test x = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007948 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7949echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7950 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007951 fi
7952 fi
7953 fi
7954 }
7955 fi
7956
7957 if test x$have_gnome = xyes ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007958 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007959#define FEAT_GUI_GNOME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007960_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007961
7962 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7963 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7964 fi
7965 }
7966 fi
7967 }
7968 fi
7969 fi
7970fi
7971
7972
7973if test -z "$SKIP_MOTIF"; then
7974 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"
7975 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7976
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007977 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
7978echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007979 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7980 GUI_INC_LOC=
7981 for try in $gui_includes; do
7982 if test -f "$try/Xm/Xm.h"; then
7983 GUI_INC_LOC=$try
7984 fi
7985 done
7986 if test -n "$GUI_INC_LOC"; then
7987 if test "$GUI_INC_LOC" = /usr/include; then
7988 GUI_INC_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007989 echo "$as_me:$LINENO: result: in default path" >&5
7990echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007991 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007992 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
7993echo "${ECHO_T}$GUI_INC_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007994 fi
7995 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007996 echo "$as_me:$LINENO: result: <not found>" >&5
7997echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007998 SKIP_MOTIF=YES
7999 fi
8000fi
8001
8002
8003if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008004 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8005echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8006
8007# Check whether --with-motif-lib or --without-motif-lib was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008008if test "${with_motif_lib+set}" = set; then
8009 withval="$with_motif_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008010 MOTIF_LIBNAME="${withval}"
8011fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008012
8013 if test -n "$MOTIF_LIBNAME"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008014 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8015echo "${ECHO_T}$MOTIF_LIBNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008016 GUI_LIB_LOC=
8017 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008018 echo "$as_me:$LINENO: result: no" >&5
8019echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008020
8021 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8022
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008023 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8024echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008025 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"
8026 GUI_LIB_LOC=
8027 for try in $gui_libs; do
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008028 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
Bram Moolenaar071d4272004-06-13 20:20:40 +00008029 if test -f "$libtry"; then
8030 GUI_LIB_LOC=$try
8031 fi
8032 done
8033 done
8034 if test -n "$GUI_LIB_LOC"; then
8035 if test "$GUI_LIB_LOC" = /usr/lib; then
8036 GUI_LIB_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008037 echo "$as_me:$LINENO: result: in default path" >&5
8038echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008039 else
8040 if test -n "$GUI_LIB_LOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008041 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8042echo "${ECHO_T}$GUI_LIB_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008043 if test "`(uname) 2>/dev/null`" = SunOS &&
8044 uname -r | grep '^5' >/dev/null; then
8045 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8046 fi
8047 fi
8048 fi
8049 MOTIF_LIBNAME=-lXm
8050 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008051 echo "$as_me:$LINENO: result: <not found>" >&5
8052echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008053 SKIP_MOTIF=YES
8054 fi
8055 fi
8056fi
8057
8058if test -z "$SKIP_MOTIF"; then
8059 SKIP_ATHENA=YES
8060 SKIP_NEXTAW=YES
8061 GUITYPE=MOTIF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008062
Bram Moolenaar071d4272004-06-13 20:20:40 +00008063fi
8064
8065
8066GUI_X_LIBS=
8067
8068if test -z "$SKIP_ATHENA"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008069 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8070echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008071 cflags_save=$CFLAGS
8072 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008073 cat >conftest.$ac_ext <<_ACEOF
8074/* confdefs.h. */
8075_ACEOF
8076cat confdefs.h >>conftest.$ac_ext
8077cat >>conftest.$ac_ext <<_ACEOF
8078/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008079
8080#include <X11/Intrinsic.h>
8081#include <X11/Xaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008082int
8083main ()
8084{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008085
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008086 ;
8087 return 0;
8088}
8089_ACEOF
8090rm -f conftest.$ac_objext
8091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8092 (eval $ac_compile) 2>conftest.er1
8093 ac_status=$?
8094 grep -v '^ *+' conftest.er1 >conftest.err
8095 rm -f conftest.er1
8096 cat conftest.err >&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } &&
8099 { ac_try='test -z "$ac_c_werror_flag"
8100 || test ! -s conftest.err'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; } &&
8106 { ac_try='test -s conftest.$ac_objext'
8107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 (eval $ac_try) 2>&5
8109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; }; then
8112 echo "$as_me:$LINENO: result: yes" >&5
8113echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008114else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008115 echo "$as_me: failed program was:" >&5
8116sed 's/^/| /' conftest.$ac_ext >&5
8117
8118echo "$as_me:$LINENO: result: no" >&5
8119echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008120fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008122 CFLAGS=$cflags_save
8123fi
8124
8125if test -z "$SKIP_ATHENA"; then
8126 GUITYPE=ATHENA
8127fi
8128
8129if test -z "$SKIP_NEXTAW"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008130 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8131echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008132 cflags_save=$CFLAGS
8133 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008134 cat >conftest.$ac_ext <<_ACEOF
8135/* confdefs.h. */
8136_ACEOF
8137cat confdefs.h >>conftest.$ac_ext
8138cat >>conftest.$ac_ext <<_ACEOF
8139/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008140
8141#include <X11/Intrinsic.h>
8142#include <X11/neXtaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008143int
8144main ()
8145{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008146
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008147 ;
8148 return 0;
8149}
8150_ACEOF
8151rm -f conftest.$ac_objext
8152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8153 (eval $ac_compile) 2>conftest.er1
8154 ac_status=$?
8155 grep -v '^ *+' conftest.er1 >conftest.err
8156 rm -f conftest.er1
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } &&
8160 { ac_try='test -z "$ac_c_werror_flag"
8161 || test ! -s conftest.err'
8162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8163 (eval $ac_try) 2>&5
8164 ac_status=$?
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); }; } &&
8167 { ac_try='test -s conftest.$ac_objext'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169 (eval $ac_try) 2>&5
8170 ac_status=$?
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 echo "$as_me:$LINENO: result: yes" >&5
8174echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008175else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008176 echo "$as_me: failed program was:" >&5
8177sed 's/^/| /' conftest.$ac_ext >&5
8178
8179echo "$as_me:$LINENO: result: no" >&5
8180echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008181fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008183 CFLAGS=$cflags_save
8184fi
8185
8186if test -z "$SKIP_NEXTAW"; then
8187 GUITYPE=NEXTAW
8188fi
8189
8190if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8191 if test -n "$GUI_INC_LOC"; then
8192 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8193 fi
8194 if test -n "$GUI_LIB_LOC"; then
8195 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8196 fi
8197
8198 ldflags_save=$LDFLAGS
8199 LDFLAGS="$X_LIBS $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008200 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8201echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8202if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008204else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008205 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008206LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008207cat >conftest.$ac_ext <<_ACEOF
8208/* confdefs.h. */
8209_ACEOF
8210cat confdefs.h >>conftest.$ac_ext
8211cat >>conftest.$ac_ext <<_ACEOF
8212/* end confdefs.h. */
8213
Bram Moolenaar071d4272004-06-13 20:20:40 +00008214/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008215#ifdef __cplusplus
8216extern "C"
8217#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008218/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008219 builtin and then its argument prototype would still apply. */
8220char XShapeQueryExtension ();
8221int
8222main ()
8223{
8224XShapeQueryExtension ();
8225 ;
8226 return 0;
8227}
8228_ACEOF
8229rm -f conftest.$ac_objext conftest$ac_exeext
8230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8231 (eval $ac_link) 2>conftest.er1
8232 ac_status=$?
8233 grep -v '^ *+' conftest.er1 >conftest.err
8234 rm -f conftest.er1
8235 cat conftest.err >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } &&
8238 { ac_try='test -z "$ac_c_werror_flag"
8239 || test ! -s conftest.err'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; } &&
8245 { ac_try='test -s conftest$ac_exeext'
8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 (eval $ac_try) 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; }; then
8251 ac_cv_lib_Xext_XShapeQueryExtension=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008252else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008253 echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008255
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008256ac_cv_lib_Xext_XShapeQueryExtension=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008257fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008258rm -f conftest.err conftest.$ac_objext \
8259 conftest$ac_exeext conftest.$ac_ext
8260LIBS=$ac_check_lib_save_LIBS
8261fi
8262echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8263echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8264if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008265 GUI_X_LIBS="-lXext"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008266fi
8267
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008268 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8269echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8270if test "${ac_cv_lib_w_wslen+set}" = set; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008272else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008273 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008274LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008275cat >conftest.$ac_ext <<_ACEOF
8276/* confdefs.h. */
8277_ACEOF
8278cat confdefs.h >>conftest.$ac_ext
8279cat >>conftest.$ac_ext <<_ACEOF
8280/* end confdefs.h. */
8281
Bram Moolenaar071d4272004-06-13 20:20:40 +00008282/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008283#ifdef __cplusplus
8284extern "C"
8285#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008286/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008287 builtin and then its argument prototype would still apply. */
8288char wslen ();
8289int
8290main ()
8291{
8292wslen ();
8293 ;
8294 return 0;
8295}
8296_ACEOF
8297rm -f conftest.$ac_objext conftest$ac_exeext
8298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8299 (eval $ac_link) 2>conftest.er1
8300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } &&
8306 { ac_try='test -z "$ac_c_werror_flag"
8307 || test ! -s conftest.err'
8308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 (eval $ac_try) 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try='test -s conftest$ac_exeext'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 (eval $ac_try) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_cv_lib_w_wslen=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008320else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008321 echo "$as_me: failed program was:" >&5
8322sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008323
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008324ac_cv_lib_w_wslen=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008325fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008326rm -f conftest.err conftest.$ac_objext \
8327 conftest$ac_exeext conftest.$ac_ext
8328LIBS=$ac_check_lib_save_LIBS
8329fi
8330echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8331echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8332if test $ac_cv_lib_w_wslen = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008333 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008334fi
8335
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008336 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8337echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8338if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008340else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008341 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008342LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008343cat >conftest.$ac_ext <<_ACEOF
8344/* confdefs.h. */
8345_ACEOF
8346cat confdefs.h >>conftest.$ac_ext
8347cat >>conftest.$ac_ext <<_ACEOF
8348/* end confdefs.h. */
8349
Bram Moolenaar071d4272004-06-13 20:20:40 +00008350/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008351#ifdef __cplusplus
8352extern "C"
8353#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008354/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008355 builtin and then its argument prototype would still apply. */
8356char dlsym ();
8357int
8358main ()
8359{
8360dlsym ();
8361 ;
8362 return 0;
8363}
8364_ACEOF
8365rm -f conftest.$ac_objext conftest$ac_exeext
8366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367 (eval $ac_link) 2>conftest.er1
8368 ac_status=$?
8369 grep -v '^ *+' conftest.er1 >conftest.err
8370 rm -f conftest.er1
8371 cat conftest.err >&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -z "$ac_c_werror_flag"
8375 || test ! -s conftest.err'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 ac_cv_lib_dl_dlsym=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008388else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008389 echo "$as_me: failed program was:" >&5
8390sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008391
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008392ac_cv_lib_dl_dlsym=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008393fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008394rm -f conftest.err conftest.$ac_objext \
8395 conftest$ac_exeext conftest.$ac_ext
8396LIBS=$ac_check_lib_save_LIBS
8397fi
8398echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8399echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8400if test $ac_cv_lib_dl_dlsym = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008401 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008402fi
8403
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008404 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8405echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8406if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008408else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008409 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008410LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008411cat >conftest.$ac_ext <<_ACEOF
8412/* confdefs.h. */
8413_ACEOF
8414cat confdefs.h >>conftest.$ac_ext
8415cat >>conftest.$ac_ext <<_ACEOF
8416/* end confdefs.h. */
8417
Bram Moolenaar071d4272004-06-13 20:20:40 +00008418/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008419#ifdef __cplusplus
8420extern "C"
8421#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008422/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008423 builtin and then its argument prototype would still apply. */
8424char XmuCreateStippledPixmap ();
8425int
8426main ()
8427{
8428XmuCreateStippledPixmap ();
8429 ;
8430 return 0;
8431}
8432_ACEOF
8433rm -f conftest.$ac_objext conftest$ac_exeext
8434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8435 (eval $ac_link) 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } &&
8442 { ac_try='test -z "$ac_c_werror_flag"
8443 || test ! -s conftest.err'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; } &&
8449 { ac_try='test -s conftest$ac_exeext'
8450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8451 (eval $ac_try) 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; }; then
8455 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008456else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008457 echo "$as_me: failed program was:" >&5
8458sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008459
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008460ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008461fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008462rm -f conftest.err conftest.$ac_objext \
8463 conftest$ac_exeext conftest.$ac_ext
8464LIBS=$ac_check_lib_save_LIBS
8465fi
8466echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8467echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8468if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008469 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008470fi
8471
8472 if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008473 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8474echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8475if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008477else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008478 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008479LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008480cat >conftest.$ac_ext <<_ACEOF
8481/* confdefs.h. */
8482_ACEOF
8483cat confdefs.h >>conftest.$ac_ext
8484cat >>conftest.$ac_ext <<_ACEOF
8485/* end confdefs.h. */
8486
Bram Moolenaar071d4272004-06-13 20:20:40 +00008487/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008488#ifdef __cplusplus
8489extern "C"
8490#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008491/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008492 builtin and then its argument prototype would still apply. */
8493char XpEndJob ();
8494int
8495main ()
8496{
8497XpEndJob ();
8498 ;
8499 return 0;
8500}
8501_ACEOF
8502rm -f conftest.$ac_objext conftest$ac_exeext
8503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504 (eval $ac_link) 2>conftest.er1
8505 ac_status=$?
8506 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -f conftest.er1
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } &&
8511 { ac_try='test -z "$ac_c_werror_flag"
8512 || test ! -s conftest.err'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8514 (eval $ac_try) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; } &&
8518 { ac_try='test -s conftest$ac_exeext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 ac_cv_lib_Xp_XpEndJob=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008525else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008526 echo "$as_me: failed program was:" >&5
8527sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008528
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008529ac_cv_lib_Xp_XpEndJob=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008530fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008531rm -f conftest.err conftest.$ac_objext \
8532 conftest$ac_exeext conftest.$ac_ext
8533LIBS=$ac_check_lib_save_LIBS
8534fi
8535echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8536echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8537if test $ac_cv_lib_Xp_XpEndJob = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008538 GUI_X_LIBS="-lXp $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008539fi
8540
8541 fi
8542 LDFLAGS=$ldflags_save
8543
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008544 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8545echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008546 NARROW_PROTO=
8547 rm -fr conftestdir
8548 if mkdir conftestdir; then
8549 cd conftestdir
8550 cat > Imakefile <<'EOF'
8551acfindx:
8552 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8553EOF
8554 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8555 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8556 fi
8557 cd ..
8558 rm -fr conftestdir
8559 fi
8560 if test -z "$NARROW_PROTO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008561 echo "$as_me:$LINENO: result: no" >&5
8562echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008563 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008564 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8565echo "${ECHO_T}$NARROW_PROTO" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008566 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008567
Bram Moolenaar071d4272004-06-13 20:20:40 +00008568fi
8569
8570if test "$enable_xsmp" = "yes"; then
8571 cppflags_save=$CPPFLAGS
8572 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008573
8574for ac_header in X11/SM/SMlib.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008575do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008576as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8577if eval "test \"\${$as_ac_Header+set}\" = set"; then
8578 echo "$as_me:$LINENO: checking for $ac_header" >&5
8579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8580if eval "test \"\${$as_ac_Header+set}\" = set"; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008582fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008585else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008586 # Is the header compilable?
8587echo "$as_me:$LINENO: checking $ac_header usability" >&5
8588echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8589cat >conftest.$ac_ext <<_ACEOF
8590/* confdefs.h. */
8591_ACEOF
8592cat confdefs.h >>conftest.$ac_ext
8593cat >>conftest.$ac_ext <<_ACEOF
8594/* end confdefs.h. */
8595$ac_includes_default
8596#include <$ac_header>
8597_ACEOF
8598rm -f conftest.$ac_objext
8599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600 (eval $ac_compile) 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag"
8608 || test ! -s conftest.err'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try='test -s conftest.$ac_objext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 ac_header_compiler=yes
8621else
8622 echo "$as_me: failed program was:" >&5
8623sed 's/^/| /' conftest.$ac_ext >&5
8624
8625ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008626fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8629echo "${ECHO_T}$ac_header_compiler" >&6
8630
8631# Is the header present?
8632echo "$as_me:$LINENO: checking $ac_header presence" >&5
8633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8634cat >conftest.$ac_ext <<_ACEOF
8635/* confdefs.h. */
8636_ACEOF
8637cat confdefs.h >>conftest.$ac_ext
8638cat >>conftest.$ac_ext <<_ACEOF
8639/* end confdefs.h. */
8640#include <$ac_header>
8641_ACEOF
8642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8644 ac_status=$?
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } >/dev/null; then
8650 if test -s conftest.err; then
8651 ac_cpp_err=$ac_c_preproc_warn_flag
8652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8653 else
8654 ac_cpp_err=
8655 fi
8656else
8657 ac_cpp_err=yes
8658fi
8659if test -z "$ac_cpp_err"; then
8660 ac_header_preproc=yes
8661else
8662 echo "$as_me: failed program was:" >&5
8663sed 's/^/| /' conftest.$ac_ext >&5
8664
8665 ac_header_preproc=no
8666fi
8667rm -f conftest.err conftest.$ac_ext
8668echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8669echo "${ECHO_T}$ac_header_preproc" >&6
8670
8671# So? What about this header?
8672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8673 yes:no: )
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8675echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8677echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8678 ac_header_preproc=yes
8679 ;;
8680 no:yes:* )
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8684echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8686echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8688echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8692echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8693 (
8694 cat <<\_ASBOX
8695## ------------------------------------------ ##
8696## Report this to the AC_PACKAGE_NAME lists. ##
8697## ------------------------------------------ ##
8698_ASBOX
8699 ) |
8700 sed "s/^/$as_me: WARNING: /" >&2
8701 ;;
8702esac
8703echo "$as_me:$LINENO: checking for $ac_header" >&5
8704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8705if eval "test \"\${$as_ac_Header+set}\" = set"; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707else
8708 eval "$as_ac_Header=\$ac_header_preproc"
8709fi
8710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8712
8713fi
8714if test `eval echo '${'$as_ac_Header'}'` = yes; then
8715 cat >>confdefs.h <<_ACEOF
8716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8717_ACEOF
8718
8719fi
8720
Bram Moolenaar071d4272004-06-13 20:20:40 +00008721done
8722
8723 CPPFLAGS=$cppflags_save
8724fi
8725
8726
8727if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8728 cppflags_save=$CPPFLAGS
8729 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008730
8731
8732for ac_header in X11/xpm.h X11/Sunkeysym.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008733do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008734as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8735if eval "test \"\${$as_ac_Header+set}\" = set"; then
8736 echo "$as_me:$LINENO: checking for $ac_header" >&5
8737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8738if eval "test \"\${$as_ac_Header+set}\" = set"; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008740fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008743else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008744 # Is the header compilable?
8745echo "$as_me:$LINENO: checking $ac_header usability" >&5
8746echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8747cat >conftest.$ac_ext <<_ACEOF
8748/* confdefs.h. */
8749_ACEOF
8750cat confdefs.h >>conftest.$ac_ext
8751cat >>conftest.$ac_ext <<_ACEOF
8752/* end confdefs.h. */
8753$ac_includes_default
8754#include <$ac_header>
8755_ACEOF
8756rm -f conftest.$ac_objext
8757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8758 (eval $ac_compile) 2>conftest.er1
8759 ac_status=$?
8760 grep -v '^ *+' conftest.er1 >conftest.err
8761 rm -f conftest.er1
8762 cat conftest.err >&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -z "$ac_c_werror_flag"
8766 || test ! -s conftest.err'
8767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 (eval $ac_try) 2>&5
8769 ac_status=$?
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); }; } &&
8772 { ac_try='test -s conftest.$ac_objext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8774 (eval $ac_try) 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_header_compiler=yes
8779else
8780 echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
8783ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008784fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8787echo "${ECHO_T}$ac_header_compiler" >&6
8788
8789# Is the header present?
8790echo "$as_me:$LINENO: checking $ac_header presence" >&5
8791echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8792cat >conftest.$ac_ext <<_ACEOF
8793/* confdefs.h. */
8794_ACEOF
8795cat confdefs.h >>conftest.$ac_ext
8796cat >>conftest.$ac_ext <<_ACEOF
8797/* end confdefs.h. */
8798#include <$ac_header>
8799_ACEOF
8800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } >/dev/null; then
8808 if test -s conftest.err; then
8809 ac_cpp_err=$ac_c_preproc_warn_flag
8810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8811 else
8812 ac_cpp_err=
8813 fi
8814else
8815 ac_cpp_err=yes
8816fi
8817if test -z "$ac_cpp_err"; then
8818 ac_header_preproc=yes
8819else
8820 echo "$as_me: failed program was:" >&5
8821sed 's/^/| /' conftest.$ac_ext >&5
8822
8823 ac_header_preproc=no
8824fi
8825rm -f conftest.err conftest.$ac_ext
8826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8827echo "${ECHO_T}$ac_header_preproc" >&6
8828
8829# So? What about this header?
8830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8831 yes:no: )
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8836 ac_header_preproc=yes
8837 ;;
8838 no:yes:* )
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8851 (
8852 cat <<\_ASBOX
8853## ------------------------------------------ ##
8854## Report this to the AC_PACKAGE_NAME lists. ##
8855## ------------------------------------------ ##
8856_ASBOX
8857 ) |
8858 sed "s/^/$as_me: WARNING: /" >&2
8859 ;;
8860esac
8861echo "$as_me:$LINENO: checking for $ac_header" >&5
8862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8863if eval "test \"\${$as_ac_Header+set}\" = set"; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865else
8866 eval "$as_ac_Header=\$ac_header_preproc"
8867fi
8868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8870
8871fi
8872if test `eval echo '${'$as_ac_Header'}'` = yes; then
8873 cat >>confdefs.h <<_ACEOF
8874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8875_ACEOF
8876
8877fi
8878
Bram Moolenaar071d4272004-06-13 20:20:40 +00008879done
8880
8881
8882 if test ! "$enable_xim" = "no"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008883 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8884echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8885 cat >conftest.$ac_ext <<_ACEOF
8886/* confdefs.h. */
8887_ACEOF
8888cat confdefs.h >>conftest.$ac_ext
8889cat >>conftest.$ac_ext <<_ACEOF
8890/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008891#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008892_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008894 $EGREP "XIMText" >/dev/null 2>&1; then
8895 echo "$as_me:$LINENO: result: yes" >&5
8896echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008897else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008898 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8899echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008900fi
8901rm -f conftest*
8902
8903 fi
8904 CPPFLAGS=$cppflags_save
8905
8906 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8907 -a "x$GUITYPE" != "xNONE" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008908 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8909echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008910 enable_xim="yes"
8911 fi
8912fi
8913
8914if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8915 cppflags_save=$CPPFLAGS
8916 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008917 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8918echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8919 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008920/* confdefs.h. */
8921_ACEOF
8922cat confdefs.h >>conftest.$ac_ext
8923cat >>conftest.$ac_ext <<_ACEOF
8924/* end confdefs.h. */
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008925
8926#include <X11/Intrinsic.h>
8927#include <X11/Xmu/Editres.h>
8928int
8929main ()
8930{
8931int i; i = 0;
8932 ;
8933 return 0;
8934}
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008935_ACEOF
8936rm -f conftest.$ac_objext
8937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8938 (eval $ac_compile) 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -z "$ac_c_werror_flag"
8946 || test ! -s conftest.err'
8947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948 (eval $ac_try) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; } &&
8952 { ac_try='test -s conftest.$ac_objext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008958 echo "$as_me:$LINENO: result: yes" >&5
8959echo "${ECHO_T}yes" >&6
8960 cat >>confdefs.h <<\_ACEOF
8961#define HAVE_X11_XMU_EDITRES_H 1
8962_ACEOF
8963
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008964else
8965 echo "$as_me: failed program was:" >&5
8966sed 's/^/| /' conftest.$ac_ext >&5
8967
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008968echo "$as_me:$LINENO: result: no" >&5
8969echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008970fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008972 CPPFLAGS=$cppflags_save
8973fi
8974
8975if test -z "$SKIP_MOTIF"; then
8976 cppflags_save=$CPPFLAGS
8977 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008978
8979
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008980
8981
8982
8983
8984for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
8985 Xm/UnhighlightT.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008986do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8988if eval "test \"\${$as_ac_Header+set}\" = set"; then
8989 echo "$as_me:$LINENO: checking for $ac_header" >&5
8990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8991if eval "test \"\${$as_ac_Header+set}\" = set"; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008993fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8995echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008996else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008997 # Is the header compilable?
8998echo "$as_me:$LINENO: checking $ac_header usability" >&5
8999echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9000cat >conftest.$ac_ext <<_ACEOF
9001/* confdefs.h. */
9002_ACEOF
9003cat confdefs.h >>conftest.$ac_ext
9004cat >>conftest.$ac_ext <<_ACEOF
9005/* end confdefs.h. */
9006$ac_includes_default
9007#include <$ac_header>
9008_ACEOF
9009rm -f conftest.$ac_objext
9010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9011 (eval $ac_compile) 2>conftest.er1
9012 ac_status=$?
9013 grep -v '^ *+' conftest.er1 >conftest.err
9014 rm -f conftest.er1
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 (exit $ac_status); } &&
9018 { ac_try='test -z "$ac_c_werror_flag"
9019 || test ! -s conftest.err'
9020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021 (eval $ac_try) 2>&5
9022 ac_status=$?
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); }; } &&
9025 { ac_try='test -s conftest.$ac_objext'
9026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027 (eval $ac_try) 2>&5
9028 ac_status=$?
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); }; }; then
9031 ac_header_compiler=yes
9032else
9033 echo "$as_me: failed program was:" >&5
9034sed 's/^/| /' conftest.$ac_ext >&5
9035
9036ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009037fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9039echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9040echo "${ECHO_T}$ac_header_compiler" >&6
9041
9042# Is the header present?
9043echo "$as_me:$LINENO: checking $ac_header presence" >&5
9044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9045cat >conftest.$ac_ext <<_ACEOF
9046/* confdefs.h. */
9047_ACEOF
9048cat confdefs.h >>conftest.$ac_ext
9049cat >>conftest.$ac_ext <<_ACEOF
9050/* end confdefs.h. */
9051#include <$ac_header>
9052_ACEOF
9053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9055 ac_status=$?
9056 grep -v '^ *+' conftest.er1 >conftest.err
9057 rm -f conftest.er1
9058 cat conftest.err >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); } >/dev/null; then
9061 if test -s conftest.err; then
9062 ac_cpp_err=$ac_c_preproc_warn_flag
9063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9064 else
9065 ac_cpp_err=
9066 fi
9067else
9068 ac_cpp_err=yes
9069fi
9070if test -z "$ac_cpp_err"; then
9071 ac_header_preproc=yes
9072else
9073 echo "$as_me: failed program was:" >&5
9074sed 's/^/| /' conftest.$ac_ext >&5
9075
9076 ac_header_preproc=no
9077fi
9078rm -f conftest.err conftest.$ac_ext
9079echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9080echo "${ECHO_T}$ac_header_preproc" >&6
9081
9082# So? What about this header?
9083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9084 yes:no: )
9085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9088echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9089 ac_header_preproc=yes
9090 ;;
9091 no:yes:* )
9092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9093echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9095echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9097echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9099echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9101echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9103echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9104 (
9105 cat <<\_ASBOX
9106## ------------------------------------------ ##
9107## Report this to the AC_PACKAGE_NAME lists. ##
9108## ------------------------------------------ ##
9109_ASBOX
9110 ) |
9111 sed "s/^/$as_me: WARNING: /" >&2
9112 ;;
9113esac
9114echo "$as_me:$LINENO: checking for $ac_header" >&5
9115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9116if eval "test \"\${$as_ac_Header+set}\" = set"; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118else
9119 eval "$as_ac_Header=\$ac_header_preproc"
9120fi
9121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9123
9124fi
9125if test `eval echo '${'$as_ac_Header'}'` = yes; then
9126 cat >>confdefs.h <<_ACEOF
9127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9128_ACEOF
9129
9130fi
9131
Bram Moolenaar071d4272004-06-13 20:20:40 +00009132done
9133
9134 CPPFLAGS=$cppflags_save
9135fi
9136
9137if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009138 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9139echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009140 enable_xim="no"
9141fi
9142if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009143 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9144echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009145 enable_fontset="no"
9146fi
9147if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009148 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9149echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009150 enable_fontset="no"
9151fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009152
9153if test -z "$SKIP_PHOTON"; then
9154 GUITYPE=PHOTONGUI
9155fi
9156
9157
9158
9159
9160
9161
9162if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009163 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9164echo "$as_me: error: cannot use workshop without Motif" >&2;}
9165 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009166fi
9167
9168if test "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009169 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009170#define FEAT_XIM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009171_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009172
9173fi
9174if test "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009175 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009176#define FEAT_XFONTSET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009177_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009178
9179fi
9180
9181
9182
9183
9184if test "$enable_hangulinput" = "yes"; then
9185 if test "x$GUITYPE" = "xNONE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009186 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9187echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009188 enable_hangulinput=no
9189 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009190 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009191#define FEAT_HANGULIN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009192_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009193
9194 HANGULIN_SRC=hangulin.c
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009195
Bram Moolenaar071d4272004-06-13 20:20:40 +00009196 HANGULIN_OBJ=objects/hangulin.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009197
Bram Moolenaar071d4272004-06-13 20:20:40 +00009198 fi
9199fi
9200
9201
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009202echo "$as_me:$LINENO: checking quality of toupper" >&5
9203echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009204if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009205 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9206echo "$as_me: error: failed to compile test program" >&2;}
9207 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009208else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009209 cat >conftest.$ac_ext <<_ACEOF
9210/* confdefs.h. */
9211_ACEOF
9212cat confdefs.h >>conftest.$ac_ext
9213cat >>conftest.$ac_ext <<_ACEOF
9214/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009215#include <ctype.h>
9216main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009217_ACEOF
9218rm -f conftest$ac_exeext
9219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9220 (eval $ac_link) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9225 (eval $ac_try) 2>&5
9226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009230#define BROKEN_TOUPPER 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009231_ACEOF
9232 echo "$as_me:$LINENO: result: bad" >&5
9233echo "${ECHO_T}bad" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009234else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009235 echo "$as_me: program exited with status $ac_status" >&5
9236echo "$as_me: failed program was:" >&5
9237sed 's/^/| /' conftest.$ac_ext >&5
9238
9239( exit $ac_status )
9240echo "$as_me:$LINENO: result: good" >&5
9241echo "${ECHO_T}good" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009242fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009243rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009244fi
9245
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009246echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9247echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9248cat >conftest.$ac_ext <<_ACEOF
9249/* confdefs.h. */
9250_ACEOF
9251cat confdefs.h >>conftest.$ac_ext
9252cat >>conftest.$ac_ext <<_ACEOF
9253/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009254
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009255int
9256main ()
9257{
Bram Moolenaar071d4272004-06-13 20:20:40 +00009258printf("(" __DATE__ " " __TIME__ ")");
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009259 ;
9260 return 0;
9261}
9262_ACEOF
9263rm -f conftest.$ac_objext
9264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9265 (eval $ac_compile) 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -z "$ac_c_werror_flag"
9273 || test ! -s conftest.err'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; } &&
9279 { ac_try='test -s conftest.$ac_objext'
9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 (eval $ac_try) 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; }; then
9285 echo "$as_me:$LINENO: result: yes" >&5
9286echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009287#define HAVE_DATE_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009288_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009289
9290else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009291 echo "$as_me: failed program was:" >&5
9292sed 's/^/| /' conftest.$ac_ext >&5
9293
9294echo "$as_me:$LINENO: result: no" >&5
9295echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009296fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009298
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009299if test "${ac_cv_header_elf_h+set}" = set; then
9300 echo "$as_me:$LINENO: checking for elf.h" >&5
9301echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9302if test "${ac_cv_header_elf_h+set}" = set; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304fi
9305echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9306echo "${ECHO_T}$ac_cv_header_elf_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009307else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009308 # Is the header compilable?
9309echo "$as_me:$LINENO: checking elf.h usability" >&5
9310echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9311cat >conftest.$ac_ext <<_ACEOF
9312/* confdefs.h. */
9313_ACEOF
9314cat confdefs.h >>conftest.$ac_ext
9315cat >>conftest.$ac_ext <<_ACEOF
9316/* end confdefs.h. */
9317$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +00009318#include <elf.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009319_ACEOF
9320rm -f conftest.$ac_objext
9321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9322 (eval $ac_compile) 2>conftest.er1
9323 ac_status=$?
9324 grep -v '^ *+' conftest.er1 >conftest.err
9325 rm -f conftest.er1
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try='test -z "$ac_c_werror_flag"
9330 || test ! -s conftest.err'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9332 (eval $ac_try) 2>&5
9333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; } &&
9336 { ac_try='test -s conftest.$ac_objext'
9337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338 (eval $ac_try) 2>&5
9339 ac_status=$?
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); }; }; then
9342 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009343else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009344 echo "$as_me: failed program was:" >&5
9345sed 's/^/| /' conftest.$ac_ext >&5
9346
9347ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009348fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9350echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9351echo "${ECHO_T}$ac_header_compiler" >&6
9352
9353# Is the header present?
9354echo "$as_me:$LINENO: checking elf.h presence" >&5
9355echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9356cat >conftest.$ac_ext <<_ACEOF
9357/* confdefs.h. */
9358_ACEOF
9359cat confdefs.h >>conftest.$ac_ext
9360cat >>conftest.$ac_ext <<_ACEOF
9361/* end confdefs.h. */
9362#include <elf.h>
9363_ACEOF
9364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9366 ac_status=$?
9367 grep -v '^ *+' conftest.er1 >conftest.err
9368 rm -f conftest.er1
9369 cat conftest.err >&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } >/dev/null; then
9372 if test -s conftest.err; then
9373 ac_cpp_err=$ac_c_preproc_warn_flag
9374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9375 else
9376 ac_cpp_err=
9377 fi
9378else
9379 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009380fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009381if test -z "$ac_cpp_err"; then
9382 ac_header_preproc=yes
9383else
9384 echo "$as_me: failed program was:" >&5
9385sed 's/^/| /' conftest.$ac_ext >&5
9386
9387 ac_header_preproc=no
9388fi
9389rm -f conftest.err conftest.$ac_ext
9390echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9391echo "${ECHO_T}$ac_header_preproc" >&6
9392
9393# So? What about this header?
9394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9395 yes:no: )
9396 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9397echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9399echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9400 ac_header_preproc=yes
9401 ;;
9402 no:yes:* )
9403 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9404echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9406echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9408echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9410echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9412echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9414echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9415 (
9416 cat <<\_ASBOX
9417## ------------------------------------------ ##
9418## Report this to the AC_PACKAGE_NAME lists. ##
9419## ------------------------------------------ ##
9420_ASBOX
9421 ) |
9422 sed "s/^/$as_me: WARNING: /" >&2
9423 ;;
9424esac
9425echo "$as_me:$LINENO: checking for elf.h" >&5
9426echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9427if test "${ac_cv_header_elf_h+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429else
9430 ac_cv_header_elf_h=$ac_header_preproc
9431fi
9432echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9433echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9434
9435fi
9436if test $ac_cv_header_elf_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009437 HAS_ELF=1
Bram Moolenaar071d4272004-06-13 20:20:40 +00009438fi
9439
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009440
Bram Moolenaar071d4272004-06-13 20:20:40 +00009441if test "$HAS_ELF" = 1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009442
9443echo "$as_me:$LINENO: checking for main in -lelf" >&5
9444echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9445if test "${ac_cv_lib_elf_main+set}" = set; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009447else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009448 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009449LIBS="-lelf $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009450cat >conftest.$ac_ext <<_ACEOF
9451/* confdefs.h. */
9452_ACEOF
9453cat confdefs.h >>conftest.$ac_ext
9454cat >>conftest.$ac_ext <<_ACEOF
9455/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009456
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009457
9458int
9459main ()
9460{
9461main ();
9462 ;
9463 return 0;
9464}
9465_ACEOF
9466rm -f conftest.$ac_objext conftest$ac_exeext
9467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9468 (eval $ac_link) 2>conftest.er1
9469 ac_status=$?
9470 grep -v '^ *+' conftest.er1 >conftest.err
9471 rm -f conftest.er1
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
9475 { ac_try='test -z "$ac_c_werror_flag"
9476 || test ! -s conftest.err'
9477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9478 (eval $ac_try) 2>&5
9479 ac_status=$?
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; } &&
9482 { ac_try='test -s conftest$ac_exeext'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 (eval $ac_try) 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; }; then
9488 ac_cv_lib_elf_main=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009489else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009490 echo "$as_me: failed program was:" >&5
9491sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009492
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009493ac_cv_lib_elf_main=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009494fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009495rm -f conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497LIBS=$ac_check_lib_save_LIBS
9498fi
9499echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9500echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9501if test $ac_cv_lib_elf_main = yes; then
9502 cat >>confdefs.h <<_ACEOF
9503#define HAVE_LIBELF 1
9504_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009505
9506 LIBS="-lelf $LIBS"
9507
Bram Moolenaar071d4272004-06-13 20:20:40 +00009508fi
9509
9510fi
9511
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009512
9513
9514
9515
9516
Bram Moolenaar071d4272004-06-13 20:20:40 +00009517ac_header_dirent=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009518for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9519 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9520echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9521echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9522if eval "test \"\${$as_ac_Header+set}\" = set"; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009524else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009525 cat >conftest.$ac_ext <<_ACEOF
9526/* confdefs.h. */
9527_ACEOF
9528cat confdefs.h >>conftest.$ac_ext
9529cat >>conftest.$ac_ext <<_ACEOF
9530/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009531#include <sys/types.h>
9532#include <$ac_hdr>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009533
9534int
9535main ()
9536{
9537if ((DIR *) 0)
9538return 0;
9539 ;
9540 return 0;
9541}
9542_ACEOF
9543rm -f conftest.$ac_objext
9544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9545 (eval $ac_compile) 2>conftest.er1
9546 ac_status=$?
9547 grep -v '^ *+' conftest.er1 >conftest.err
9548 rm -f conftest.er1
9549 cat conftest.err >&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } &&
9552 { ac_try='test -z "$ac_c_werror_flag"
9553 || test ! -s conftest.err'
9554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 (eval $ac_try) 2>&5
9556 ac_status=$?
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); }; } &&
9559 { ac_try='test -s conftest.$ac_objext'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 (eval $ac_try) 2>&5
9562 ac_status=$?
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 eval "$as_ac_Header=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009566else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009567 echo "$as_me: failed program was:" >&5
9568sed 's/^/| /' conftest.$ac_ext >&5
9569
9570eval "$as_ac_Header=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009571fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009573fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9576if test `eval echo '${'$as_ac_Header'}'` = yes; then
9577 cat >>confdefs.h <<_ACEOF
9578#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9579_ACEOF
9580
9581ac_header_dirent=$ac_hdr; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009582fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009583
Bram Moolenaar071d4272004-06-13 20:20:40 +00009584done
9585# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9586if test $ac_header_dirent = dirent.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009587 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9588echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9589if test "${ac_cv_search_opendir+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009591else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009592 ac_func_search_save_LIBS=$LIBS
9593ac_cv_search_opendir=no
9594cat >conftest.$ac_ext <<_ACEOF
9595/* confdefs.h. */
9596_ACEOF
9597cat confdefs.h >>conftest.$ac_ext
9598cat >>conftest.$ac_ext <<_ACEOF
9599/* end confdefs.h. */
9600
Bram Moolenaar071d4272004-06-13 20:20:40 +00009601/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009602#ifdef __cplusplus
9603extern "C"
9604#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009605/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009606 builtin and then its argument prototype would still apply. */
9607char opendir ();
9608int
9609main ()
9610{
9611opendir ();
9612 ;
9613 return 0;
9614}
9615_ACEOF
9616rm -f conftest.$ac_objext conftest$ac_exeext
9617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618 (eval $ac_link) 2>conftest.er1
9619 ac_status=$?
9620 grep -v '^ *+' conftest.er1 >conftest.err
9621 rm -f conftest.er1
9622 cat conftest.err >&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try='test -z "$ac_c_werror_flag"
9626 || test ! -s conftest.err'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9628 (eval $ac_try) 2>&5
9629 ac_status=$?
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; } &&
9632 { ac_try='test -s conftest$ac_exeext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_search_opendir="none required"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009639else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009640 echo "$as_me: failed program was:" >&5
9641sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009642
9643fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009644rm -f conftest.err conftest.$ac_objext \
9645 conftest$ac_exeext conftest.$ac_ext
9646if test "$ac_cv_search_opendir" = no; then
9647 for ac_lib in dir; do
9648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9649 cat >conftest.$ac_ext <<_ACEOF
9650/* confdefs.h. */
9651_ACEOF
9652cat confdefs.h >>conftest.$ac_ext
9653cat >>conftest.$ac_ext <<_ACEOF
9654/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009655
Bram Moolenaar071d4272004-06-13 20:20:40 +00009656/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009657#ifdef __cplusplus
9658extern "C"
9659#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009660/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009661 builtin and then its argument prototype would still apply. */
9662char opendir ();
9663int
9664main ()
9665{
9666opendir ();
9667 ;
9668 return 0;
9669}
9670_ACEOF
9671rm -f conftest.$ac_objext conftest$ac_exeext
9672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>conftest.er1
9674 ac_status=$?
9675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag"
9681 || test ! -s conftest.err'
9682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); }; } &&
9687 { ac_try='test -s conftest$ac_exeext'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; }; then
9693 ac_cv_search_opendir="-l$ac_lib"
9694break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009695else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009696 echo "$as_me: failed program was:" >&5
9697sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009698
9699fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009700rm -f conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 done
9703fi
9704LIBS=$ac_func_search_save_LIBS
9705fi
9706echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9707echo "${ECHO_T}$ac_cv_search_opendir" >&6
9708if test "$ac_cv_search_opendir" != no; then
9709 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9710
9711fi
9712
Bram Moolenaar071d4272004-06-13 20:20:40 +00009713else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009714 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9715echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9716if test "${ac_cv_search_opendir+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009718else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009719 ac_func_search_save_LIBS=$LIBS
9720ac_cv_search_opendir=no
9721cat >conftest.$ac_ext <<_ACEOF
9722/* confdefs.h. */
9723_ACEOF
9724cat confdefs.h >>conftest.$ac_ext
9725cat >>conftest.$ac_ext <<_ACEOF
9726/* end confdefs.h. */
9727
9728/* Override any gcc2 internal prototype to avoid an error. */
9729#ifdef __cplusplus
9730extern "C"
9731#endif
9732/* We use char because int might match the return type of a gcc2
9733 builtin and then its argument prototype would still apply. */
9734char opendir ();
9735int
9736main ()
9737{
9738opendir ();
9739 ;
9740 return 0;
9741}
9742_ACEOF
9743rm -f conftest.$ac_objext conftest$ac_exeext
9744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_cv_search_opendir="none required"
9766else
9767 echo "$as_me: failed program was:" >&5
9768sed 's/^/| /' conftest.$ac_ext >&5
9769
9770fi
9771rm -f conftest.err conftest.$ac_objext \
9772 conftest$ac_exeext conftest.$ac_ext
9773if test "$ac_cv_search_opendir" = no; then
9774 for ac_lib in x; do
9775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9776 cat >conftest.$ac_ext <<_ACEOF
9777/* confdefs.h. */
9778_ACEOF
9779cat confdefs.h >>conftest.$ac_ext
9780cat >>conftest.$ac_ext <<_ACEOF
9781/* end confdefs.h. */
9782
9783/* Override any gcc2 internal prototype to avoid an error. */
9784#ifdef __cplusplus
9785extern "C"
9786#endif
9787/* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */
9789char opendir ();
9790int
9791main ()
9792{
9793opendir ();
9794 ;
9795 return 0;
9796}
9797_ACEOF
9798rm -f conftest.$ac_objext conftest$ac_exeext
9799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>conftest.er1
9801 ac_status=$?
9802 grep -v '^ *+' conftest.er1 >conftest.err
9803 rm -f conftest.er1
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } &&
9807 { ac_try='test -z "$ac_c_werror_flag"
9808 || test ! -s conftest.err'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 (eval $ac_try) 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; } &&
9814 { ac_try='test -s conftest$ac_exeext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 (eval $ac_try) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_search_opendir="-l$ac_lib"
9821break
9822else
9823 echo "$as_me: failed program was:" >&5
9824sed 's/^/| /' conftest.$ac_ext >&5
9825
9826fi
9827rm -f conftest.err conftest.$ac_objext \
9828 conftest$ac_exeext conftest.$ac_ext
9829 done
9830fi
9831LIBS=$ac_func_search_save_LIBS
9832fi
9833echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9834echo "${ECHO_T}$ac_cv_search_opendir" >&6
9835if test "$ac_cv_search_opendir" != no; then
9836 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9837
9838fi
9839
9840fi
9841
9842
9843echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9844echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9845if test "${ac_cv_header_stdc+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9847else
9848 cat >conftest.$ac_ext <<_ACEOF
9849/* confdefs.h. */
9850_ACEOF
9851cat confdefs.h >>conftest.$ac_ext
9852cat >>conftest.$ac_ext <<_ACEOF
9853/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009854#include <stdlib.h>
9855#include <stdarg.h>
9856#include <string.h>
9857#include <float.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009858
9859int
9860main ()
9861{
9862
9863 ;
9864 return 0;
9865}
9866_ACEOF
9867rm -f conftest.$ac_objext
9868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9869 (eval $ac_compile) 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag"
9877 || test ! -s conftest.err'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 (eval $ac_try) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; } &&
9883 { ac_try='test -s conftest.$ac_objext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 (eval $ac_try) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009889 ac_cv_header_stdc=yes
9890else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009891 echo "$as_me: failed program was:" >&5
9892sed 's/^/| /' conftest.$ac_ext >&5
9893
9894ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009895fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009897
9898if test $ac_cv_header_stdc = yes; then
9899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009900 cat >conftest.$ac_ext <<_ACEOF
9901/* confdefs.h. */
9902_ACEOF
9903cat confdefs.h >>conftest.$ac_ext
9904cat >>conftest.$ac_ext <<_ACEOF
9905/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009906#include <string.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009907
9908_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009910 $EGREP "memchr" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009911 :
9912else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009913 ac_cv_header_stdc=no
9914fi
9915rm -f conftest*
9916
9917fi
9918
9919if test $ac_cv_header_stdc = yes; then
9920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009921 cat >conftest.$ac_ext <<_ACEOF
9922/* confdefs.h. */
9923_ACEOF
9924cat confdefs.h >>conftest.$ac_ext
9925cat >>conftest.$ac_ext <<_ACEOF
9926/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009927#include <stdlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009928
9929_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009931 $EGREP "free" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009932 :
9933else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009934 ac_cv_header_stdc=no
9935fi
9936rm -f conftest*
9937
9938fi
9939
9940if test $ac_cv_header_stdc = yes; then
9941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009942 if test "$cross_compiling" = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009943 :
9944else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009945 cat >conftest.$ac_ext <<_ACEOF
9946/* confdefs.h. */
9947_ACEOF
9948cat confdefs.h >>conftest.$ac_ext
9949cat >>conftest.$ac_ext <<_ACEOF
9950/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009951#include <ctype.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009952#if ((' ' & 0x0FF) == 0x020)
9953# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9954# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9955#else
9956# define ISLOWER(c) \
9957 (('a' <= (c) && (c) <= 'i') \
9958 || ('j' <= (c) && (c) <= 'r') \
9959 || ('s' <= (c) && (c) <= 'z'))
9960# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9961#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009962
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009963#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9964int
9965main ()
9966{
9967 int i;
9968 for (i = 0; i < 256; i++)
9969 if (XOR (islower (i), ISLOWER (i))
9970 || toupper (i) != TOUPPER (i))
9971 exit(2);
9972 exit (0);
9973}
9974_ACEOF
9975rm -f conftest$ac_exeext
9976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9977 (eval $ac_link) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982 (eval $ac_try) 2>&5
9983 ac_status=$?
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009986 :
9987else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009988 echo "$as_me: program exited with status $ac_status" >&5
9989echo "$as_me: failed program was:" >&5
9990sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009991
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009992( exit $ac_status )
9993ac_cv_header_stdc=no
9994fi
9995rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009996fi
9997fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009998fi
9999echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10000echo "${ECHO_T}$ac_cv_header_stdc" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010001if test $ac_cv_header_stdc = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010002
10003cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010004#define STDC_HEADERS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010005_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010006
10007fi
10008
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010009echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10010echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10011if test "${ac_cv_header_sys_wait_h+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010013else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010014 cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h. */
10016_ACEOF
10017cat confdefs.h >>conftest.$ac_ext
10018cat >>conftest.$ac_ext <<_ACEOF
10019/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010020#include <sys/types.h>
10021#include <sys/wait.h>
10022#ifndef WEXITSTATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010023# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010024#endif
10025#ifndef WIFEXITED
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010026# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010027#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010028
10029int
10030main ()
10031{
10032 int s;
10033 wait (&s);
10034 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext
10040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041 (eval $ac_compile) 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag"
10049 || test ! -s conftest.err'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest.$ac_objext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010061 ac_cv_header_sys_wait_h=yes
10062else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010063 echo "$as_me: failed program was:" >&5
10064sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010065
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010066ac_cv_header_sys_wait_h=no
10067fi
10068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10069fi
10070echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10071echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010072if test $ac_cv_header_sys_wait_h = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010073
10074cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010075#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010076_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010077
10078fi
10079
10080
10081if test $ac_cv_header_sys_wait_h = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010082 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10083echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10084 cat >conftest.$ac_ext <<_ACEOF
10085/* confdefs.h. */
10086_ACEOF
10087cat confdefs.h >>conftest.$ac_ext
10088cat >>conftest.$ac_ext <<_ACEOF
10089/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010090#include <sys/wait.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010091int
10092main ()
10093{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010094union wait xx, yy; xx = yy
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010095 ;
10096 return 0;
10097}
10098_ACEOF
10099rm -f conftest.$ac_objext
10100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101 (eval $ac_compile) 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -z "$ac_c_werror_flag"
10109 || test ! -s conftest.err'
10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10112 ac_status=$?
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; } &&
10115 { ac_try='test -s conftest.$ac_objext'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
10121 echo "$as_me:$LINENO: result: yes" >&5
10122echo "${ECHO_T}yes" >&6
10123 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010124#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010125_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010126
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010127 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010128#define HAVE_UNION_WAIT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010129_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010130
10131else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010132 echo "$as_me: failed program was:" >&5
10133sed 's/^/| /' conftest.$ac_ext >&5
10134
10135echo "$as_me:$LINENO: result: no" >&5
10136echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010137fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010139fi
10140
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010180
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010181for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010182 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10183 iconv.h langinfo.h unistd.h stropts.h errno.h \
10184 sys/resource.h sys/systeminfo.h locale.h \
10185 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10186 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010187 libgen.h util/debug.h util/msg18n.h frame.h \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010188 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010189do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010190as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10191if eval "test \"\${$as_ac_Header+set}\" = set"; then
10192 echo "$as_me:$LINENO: checking for $ac_header" >&5
10193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10194if eval "test \"\${$as_ac_Header+set}\" = set"; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010196fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010199else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010200 # Is the header compilable?
10201echo "$as_me:$LINENO: checking $ac_header usability" >&5
10202echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10203cat >conftest.$ac_ext <<_ACEOF
10204/* confdefs.h. */
10205_ACEOF
10206cat confdefs.h >>conftest.$ac_ext
10207cat >>conftest.$ac_ext <<_ACEOF
10208/* end confdefs.h. */
10209$ac_includes_default
10210#include <$ac_header>
10211_ACEOF
10212rm -f conftest.$ac_objext
10213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10214 (eval $ac_compile) 2>conftest.er1
10215 ac_status=$?
10216 grep -v '^ *+' conftest.er1 >conftest.err
10217 rm -f conftest.er1
10218 cat conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } &&
10221 { ac_try='test -z "$ac_c_werror_flag"
10222 || test ! -s conftest.err'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; } &&
10228 { ac_try='test -s conftest.$ac_objext'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; }; then
10234 ac_header_compiler=yes
10235else
10236 echo "$as_me: failed program was:" >&5
10237sed 's/^/| /' conftest.$ac_ext >&5
10238
10239ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010240fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10243echo "${ECHO_T}$ac_header_compiler" >&6
10244
10245# Is the header present?
10246echo "$as_me:$LINENO: checking $ac_header presence" >&5
10247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10248cat >conftest.$ac_ext <<_ACEOF
10249/* confdefs.h. */
10250_ACEOF
10251cat confdefs.h >>conftest.$ac_ext
10252cat >>conftest.$ac_ext <<_ACEOF
10253/* end confdefs.h. */
10254#include <$ac_header>
10255_ACEOF
10256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10258 ac_status=$?
10259 grep -v '^ *+' conftest.er1 >conftest.err
10260 rm -f conftest.er1
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } >/dev/null; then
10264 if test -s conftest.err; then
10265 ac_cpp_err=$ac_c_preproc_warn_flag
10266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10267 else
10268 ac_cpp_err=
10269 fi
10270else
10271 ac_cpp_err=yes
10272fi
10273if test -z "$ac_cpp_err"; then
10274 ac_header_preproc=yes
10275else
10276 echo "$as_me: failed program was:" >&5
10277sed 's/^/| /' conftest.$ac_ext >&5
10278
10279 ac_header_preproc=no
10280fi
10281rm -f conftest.err conftest.$ac_ext
10282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10283echo "${ECHO_T}$ac_header_preproc" >&6
10284
10285# So? What about this header?
10286case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10287 yes:no: )
10288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10292 ac_header_preproc=yes
10293 ;;
10294 no:yes:* )
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10298echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10302echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10307 (
10308 cat <<\_ASBOX
10309## ------------------------------------------ ##
10310## Report this to the AC_PACKAGE_NAME lists. ##
10311## ------------------------------------------ ##
10312_ASBOX
10313 ) |
10314 sed "s/^/$as_me: WARNING: /" >&2
10315 ;;
10316esac
10317echo "$as_me:$LINENO: checking for $ac_header" >&5
10318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10319if eval "test \"\${$as_ac_Header+set}\" = set"; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321else
10322 eval "$as_ac_Header=\$ac_header_preproc"
10323fi
10324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10326
10327fi
10328if test `eval echo '${'$as_ac_Header'}'` = yes; then
10329 cat >>confdefs.h <<_ACEOF
10330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10331_ACEOF
10332
10333fi
10334
Bram Moolenaar071d4272004-06-13 20:20:40 +000010335done
10336
10337
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010338echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10339echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10340cat >conftest.$ac_ext <<_ACEOF
10341/* confdefs.h. */
10342_ACEOF
10343cat confdefs.h >>conftest.$ac_ext
10344cat >>conftest.$ac_ext <<_ACEOF
10345/* end confdefs.h. */
10346
10347#include <pthread.h>
10348#include <pthread_np.h>
10349int
10350main ()
10351{
10352int i; i = 0;
10353 ;
10354 return 0;
10355}
10356_ACEOF
10357rm -f conftest.$ac_objext
10358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10359 (eval $ac_compile) 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } &&
10366 { ac_try='test -z "$ac_c_werror_flag"
10367 || test ! -s conftest.err'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; } &&
10373 { ac_try='test -s conftest.$ac_objext'
10374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10375 (eval $ac_try) 2>&5
10376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379 echo "$as_me:$LINENO: result: yes" >&5
10380echo "${ECHO_T}yes" >&6
10381 cat >>confdefs.h <<\_ACEOF
10382#define HAVE_PTHREAD_NP_H 1
10383_ACEOF
10384
10385else
10386 echo "$as_me: failed program was:" >&5
10387sed 's/^/| /' conftest.$ac_ext >&5
10388
10389echo "$as_me:$LINENO: result: no" >&5
10390echo "${ECHO_T}no" >&6
10391fi
10392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10393
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010394
10395for ac_header in strings.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010396do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10398if eval "test \"\${$as_ac_Header+set}\" = set"; then
10399 echo "$as_me:$LINENO: checking for $ac_header" >&5
10400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10401if eval "test \"\${$as_ac_Header+set}\" = set"; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010403fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010406else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010407 # Is the header compilable?
10408echo "$as_me:$LINENO: checking $ac_header usability" >&5
10409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10410cat >conftest.$ac_ext <<_ACEOF
10411/* confdefs.h. */
10412_ACEOF
10413cat confdefs.h >>conftest.$ac_ext
10414cat >>conftest.$ac_ext <<_ACEOF
10415/* end confdefs.h. */
10416$ac_includes_default
10417#include <$ac_header>
10418_ACEOF
10419rm -f conftest.$ac_objext
10420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421 (eval $ac_compile) 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } &&
10428 { ac_try='test -z "$ac_c_werror_flag"
10429 || test ! -s conftest.err'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest.$ac_objext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_header_compiler=yes
10442else
10443 echo "$as_me: failed program was:" >&5
10444sed 's/^/| /' conftest.$ac_ext >&5
10445
10446ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010447fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10450echo "${ECHO_T}$ac_header_compiler" >&6
10451
10452# Is the header present?
10453echo "$as_me:$LINENO: checking $ac_header presence" >&5
10454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10455cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h. */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h. */
10461#include <$ac_header>
10462_ACEOF
10463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } >/dev/null; then
10471 if test -s conftest.err; then
10472 ac_cpp_err=$ac_c_preproc_warn_flag
10473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10474 else
10475 ac_cpp_err=
10476 fi
10477else
10478 ac_cpp_err=yes
10479fi
10480if test -z "$ac_cpp_err"; then
10481 ac_header_preproc=yes
10482else
10483 echo "$as_me: failed program was:" >&5
10484sed 's/^/| /' conftest.$ac_ext >&5
10485
10486 ac_header_preproc=no
10487fi
10488rm -f conftest.err conftest.$ac_ext
10489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10490echo "${ECHO_T}$ac_header_preproc" >&6
10491
10492# So? What about this header?
10493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10494 yes:no: )
10495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10499 ac_header_preproc=yes
10500 ;;
10501 no:yes:* )
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10505echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10509echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10514 (
10515 cat <<\_ASBOX
10516## ------------------------------------------ ##
10517## Report this to the AC_PACKAGE_NAME lists. ##
10518## ------------------------------------------ ##
10519_ASBOX
10520 ) |
10521 sed "s/^/$as_me: WARNING: /" >&2
10522 ;;
10523esac
10524echo "$as_me:$LINENO: checking for $ac_header" >&5
10525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10526if eval "test \"\${$as_ac_Header+set}\" = set"; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10528else
10529 eval "$as_ac_Header=\$ac_header_preproc"
10530fi
10531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10533
10534fi
10535if test `eval echo '${'$as_ac_Header'}'` = yes; then
10536 cat >>confdefs.h <<_ACEOF
10537#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10538_ACEOF
10539
10540fi
10541
Bram Moolenaar071d4272004-06-13 20:20:40 +000010542done
10543
Bram Moolenaar9372a112005-12-06 19:59:18 +000010544if test "x$MACOSX" = "xyes"; then
10545 cat >>confdefs.h <<\_ACEOF
10546#define NO_STRINGS_WITH_STRING_H 1
10547_ACEOF
10548
10549else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010550
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010551echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10552echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010553cppflags_save=$CPPFLAGS
10554CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010555cat >conftest.$ac_ext <<_ACEOF
10556/* confdefs.h. */
10557_ACEOF
10558cat confdefs.h >>conftest.$ac_ext
10559cat >>conftest.$ac_ext <<_ACEOF
10560/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010561
10562#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10563# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10564 /* but don't do it on AIX 5.1 (Uribarri) */
10565#endif
10566#ifdef HAVE_XM_XM_H
10567# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10568#endif
10569#ifdef HAVE_STRING_H
10570# include <string.h>
10571#endif
10572#if defined(HAVE_STRINGS_H)
10573# include <strings.h>
10574#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010575
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010576int
10577main ()
10578{
10579int i; i = 0;
10580 ;
10581 return 0;
10582}
10583_ACEOF
10584rm -f conftest.$ac_objext
10585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10586 (eval $ac_compile) 2>conftest.er1
10587 ac_status=$?
10588 grep -v '^ *+' conftest.er1 >conftest.err
10589 rm -f conftest.er1
10590 cat conftest.err >&5
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); } &&
10593 { ac_try='test -z "$ac_c_werror_flag"
10594 || test ! -s conftest.err'
10595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10596 (eval $ac_try) 2>&5
10597 ac_status=$?
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; } &&
10600 { ac_try='test -s conftest.$ac_objext'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 echo "$as_me:$LINENO: result: yes" >&5
10607echo "${ECHO_T}yes" >&6
10608else
10609 echo "$as_me: failed program was:" >&5
10610sed 's/^/| /' conftest.$ac_ext >&5
10611
10612cat >>confdefs.h <<\_ACEOF
10613#define NO_STRINGS_WITH_STRING_H 1
10614_ACEOF
10615
10616 echo "$as_me:$LINENO: result: no" >&5
10617echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010618fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010620CPPFLAGS=$cppflags_save
Bram Moolenaar9372a112005-12-06 19:59:18 +000010621fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000010622
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010623if test $ac_cv_c_compiler_gnu = yes; then
10624 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10625echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10626if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010628else
10629 ac_pattern="Autoconf.*'x'"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010630 cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010636#include <sgtty.h>
10637Autoconf TIOCGETP
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010638_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010640 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010641 ac_cv_prog_gcc_traditional=yes
10642else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010643 ac_cv_prog_gcc_traditional=no
10644fi
10645rm -f conftest*
10646
10647
10648 if test $ac_cv_prog_gcc_traditional = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010649 cat >conftest.$ac_ext <<_ACEOF
10650/* confdefs.h. */
10651_ACEOF
10652cat confdefs.h >>conftest.$ac_ext
10653cat >>conftest.$ac_ext <<_ACEOF
10654/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010655#include <termio.h>
10656Autoconf TCGETA
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010657_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010659 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010660 ac_cv_prog_gcc_traditional=yes
10661fi
10662rm -f conftest*
10663
10664 fi
10665fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010666echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10667echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010668 if test $ac_cv_prog_gcc_traditional = yes; then
10669 CC="$CC -traditional"
10670 fi
10671fi
10672
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010673echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10674echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10675if test "${ac_cv_c_const+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010677else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010678 cat >conftest.$ac_ext <<_ACEOF
10679/* confdefs.h. */
10680_ACEOF
10681cat confdefs.h >>conftest.$ac_ext
10682cat >>conftest.$ac_ext <<_ACEOF
10683/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010684
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010685int
10686main ()
10687{
10688/* FIXME: Include the comments suggested by Paul. */
10689#ifndef __cplusplus
10690 /* Ultrix mips cc rejects this. */
10691 typedef int charset[2];
10692 const charset x;
10693 /* SunOS 4.1.1 cc rejects this. */
10694 char const *const *ccp;
10695 char **p;
10696 /* NEC SVR4.0.2 mips cc rejects this. */
10697 struct point {int x, y;};
10698 static struct point const zero = {0,0};
10699 /* AIX XL C 1.02.0.0 rejects this.
10700 It does not let you subtract one const X* pointer from another in
10701 an arm of an if-expression whose if-part is not a constant
10702 expression */
10703 const char *g = "string";
10704 ccp = &g + (g ? g-g : 0);
10705 /* HPUX 7.0 cc rejects these. */
10706 ++ccp;
10707 p = (char**) ccp;
10708 ccp = (char const *const *) p;
10709 { /* SCO 3.2v4 cc rejects this. */
10710 char *t;
10711 char const *s = 0 ? (char *) 0 : (char const *) 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010712
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010713 *t++ = 0;
10714 }
10715 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10716 int x[] = {25, 17};
10717 const int *foo = &x[0];
10718 ++foo;
10719 }
10720 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10721 typedef const int *iptr;
10722 iptr p = 0;
10723 ++p;
10724 }
10725 { /* AIX XL C 1.02.0.0 rejects this saying
10726 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10727 struct s { int j; const int *ap[3]; };
10728 struct s *b; b->j = 5;
10729 }
10730 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10731 const int foo = 10;
10732 }
10733#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010734
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010735 ;
10736 return 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010737}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010738_ACEOF
10739rm -f conftest.$ac_objext
10740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10741 (eval $ac_compile) 2>conftest.er1
10742 ac_status=$?
10743 grep -v '^ *+' conftest.er1 >conftest.err
10744 rm -f conftest.er1
10745 cat conftest.err >&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try='test -z "$ac_c_werror_flag"
10749 || test ! -s conftest.err'
10750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751 (eval $ac_try) 2>&5
10752 ac_status=$?
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); }; } &&
10755 { ac_try='test -s conftest.$ac_objext'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010761 ac_cv_c_const=yes
10762else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010763 echo "$as_me: failed program was:" >&5
10764sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010765
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010766ac_cv_c_const=no
10767fi
10768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10769fi
10770echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10771echo "${ECHO_T}$ac_cv_c_const" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010772if test $ac_cv_c_const = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010773
10774cat >>confdefs.h <<\_ACEOF
10775#define const
10776_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010777
10778fi
10779
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010780echo "$as_me:$LINENO: checking for mode_t" >&5
10781echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10782if test "${ac_cv_type_mode_t+set}" = set; then
10783 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010784else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010785 cat >conftest.$ac_ext <<_ACEOF
10786/* confdefs.h. */
10787_ACEOF
10788cat confdefs.h >>conftest.$ac_ext
10789cat >>conftest.$ac_ext <<_ACEOF
10790/* end confdefs.h. */
10791$ac_includes_default
10792int
10793main ()
10794{
10795if ((mode_t *) 0)
10796 return 0;
10797if (sizeof (mode_t))
10798 return 0;
10799 ;
10800 return 0;
10801}
10802_ACEOF
10803rm -f conftest.$ac_objext
10804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10805 (eval $ac_compile) 2>conftest.er1
10806 ac_status=$?
10807 grep -v '^ *+' conftest.er1 >conftest.err
10808 rm -f conftest.er1
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -z "$ac_c_werror_flag"
10813 || test ! -s conftest.err'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10816 ac_status=$?
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest.$ac_objext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010825 ac_cv_type_mode_t=yes
10826else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010827 echo "$as_me: failed program was:" >&5
10828sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010829
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010830ac_cv_type_mode_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010831fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010833fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010834echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10835echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10836if test $ac_cv_type_mode_t = yes; then
10837 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010838else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010839
10840cat >>confdefs.h <<_ACEOF
10841#define mode_t int
10842_ACEOF
10843
10844fi
10845
10846echo "$as_me:$LINENO: checking for off_t" >&5
10847echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10848if test "${ac_cv_type_off_t+set}" = set; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10850else
10851 cat >conftest.$ac_ext <<_ACEOF
10852/* confdefs.h. */
10853_ACEOF
10854cat confdefs.h >>conftest.$ac_ext
10855cat >>conftest.$ac_ext <<_ACEOF
10856/* end confdefs.h. */
10857$ac_includes_default
10858int
10859main ()
10860{
10861if ((off_t *) 0)
10862 return 0;
10863if (sizeof (off_t))
10864 return 0;
10865 ;
10866 return 0;
10867}
10868_ACEOF
10869rm -f conftest.$ac_objext
10870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10871 (eval $ac_compile) 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } &&
10878 { ac_try='test -z "$ac_c_werror_flag"
10879 || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest.$ac_objext'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010891 ac_cv_type_off_t=yes
10892else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010893 echo "$as_me: failed program was:" >&5
10894sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010895
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010896ac_cv_type_off_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010897fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010899fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010900echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10901echo "${ECHO_T}$ac_cv_type_off_t" >&6
10902if test $ac_cv_type_off_t = yes; then
10903 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010904else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010905
10906cat >>confdefs.h <<_ACEOF
10907#define off_t long
10908_ACEOF
10909
10910fi
10911
10912echo "$as_me:$LINENO: checking for pid_t" >&5
10913echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10914if test "${ac_cv_type_pid_t+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916else
10917 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 ((pid_t *) 0)
10928 return 0;
10929if (sizeof (pid_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_pid_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_pid_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_pid_t" >&5
10967echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10968if test $ac_cv_type_pid_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 pid_t int
10974_ACEOF
10975
10976fi
10977
10978echo "$as_me:$LINENO: checking for size_t" >&5
10979echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10980if test "${ac_cv_type_size_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 ((size_t *) 0)
10994 return 0;
10995if (sizeof (size_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_size_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_size_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_size_t" >&5
11033echo "${ECHO_T}$ac_cv_type_size_t" >&6
11034if test $ac_cv_type_size_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 size_t unsigned
11040_ACEOF
11041
11042fi
11043
11044echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11045echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11046if test "${ac_cv_type_uid_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. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011055#include <sys/types.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011056
11057_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011059 $EGREP "uid_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011060 ac_cv_type_uid_t=yes
11061else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011062 ac_cv_type_uid_t=no
11063fi
11064rm -f conftest*
11065
11066fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011067echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11068echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011069if test $ac_cv_type_uid_t = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011070
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011071cat >>confdefs.h <<\_ACEOF
11072#define uid_t int
11073_ACEOF
11074
11075
11076cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011077#define gid_t int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011078_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011079
11080fi
11081
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011082echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11083echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11084if test "${ac_cv_header_time+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011086else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011087 cat >conftest.$ac_ext <<_ACEOF
11088/* confdefs.h. */
11089_ACEOF
11090cat confdefs.h >>conftest.$ac_ext
11091cat >>conftest.$ac_ext <<_ACEOF
11092/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011093#include <sys/types.h>
11094#include <sys/time.h>
11095#include <time.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011096
11097int
11098main ()
11099{
11100if ((struct tm *) 0)
11101return 0;
11102 ;
11103 return 0;
11104}
11105_ACEOF
11106rm -f conftest.$ac_objext
11107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11108 (eval $ac_compile) 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try='test -z "$ac_c_werror_flag"
11116 || test ! -s conftest.err'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; } &&
11122 { ac_try='test -s conftest.$ac_objext'
11123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11124 (eval $ac_try) 2>&5
11125 ac_status=$?
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011128 ac_cv_header_time=yes
11129else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011130 echo "$as_me: failed program was:" >&5
11131sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011132
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011133ac_cv_header_time=no
11134fi
11135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11136fi
11137echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11138echo "${ECHO_T}$ac_cv_header_time" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011139if test $ac_cv_header_time = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011140
11141cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011142#define TIME_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011143_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011144
11145fi
11146
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011147echo "$as_me:$LINENO: checking for ino_t" >&5
11148echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11149if test "${ac_cv_type_ino_t+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011151else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011152 cat >conftest.$ac_ext <<_ACEOF
11153/* confdefs.h. */
11154_ACEOF
11155cat confdefs.h >>conftest.$ac_ext
11156cat >>conftest.$ac_ext <<_ACEOF
11157/* end confdefs.h. */
11158$ac_includes_default
11159int
11160main ()
11161{
11162if ((ino_t *) 0)
11163 return 0;
11164if (sizeof (ino_t))
11165 return 0;
11166 ;
11167 return 0;
11168}
11169_ACEOF
11170rm -f conftest.$ac_objext
11171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11172 (eval $ac_compile) 2>conftest.er1
11173 ac_status=$?
11174 grep -v '^ *+' conftest.er1 >conftest.err
11175 rm -f conftest.er1
11176 cat conftest.err >&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); } &&
11179 { ac_try='test -z "$ac_c_werror_flag"
11180 || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11183 ac_status=$?
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest.$ac_objext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11189 ac_status=$?
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011192 ac_cv_type_ino_t=yes
11193else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011194 echo "$as_me: failed program was:" >&5
11195sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011196
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011197ac_cv_type_ino_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011198fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011200fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011201echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11202echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11203if test $ac_cv_type_ino_t = yes; then
11204 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011205else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011206
11207cat >>confdefs.h <<_ACEOF
11208#define ino_t long
11209_ACEOF
11210
11211fi
11212
11213echo "$as_me:$LINENO: checking for dev_t" >&5
11214echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11215if test "${ac_cv_type_dev_t+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217else
11218 cat >conftest.$ac_ext <<_ACEOF
11219/* confdefs.h. */
11220_ACEOF
11221cat confdefs.h >>conftest.$ac_ext
11222cat >>conftest.$ac_ext <<_ACEOF
11223/* end confdefs.h. */
11224$ac_includes_default
11225int
11226main ()
11227{
11228if ((dev_t *) 0)
11229 return 0;
11230if (sizeof (dev_t))
11231 return 0;
11232 ;
11233 return 0;
11234}
11235_ACEOF
11236rm -f conftest.$ac_objext
11237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11238 (eval $ac_compile) 2>conftest.er1
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } &&
11245 { ac_try='test -z "$ac_c_werror_flag"
11246 || test ! -s conftest.err'
11247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248 (eval $ac_try) 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; } &&
11252 { ac_try='test -s conftest.$ac_objext'
11253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011258 ac_cv_type_dev_t=yes
11259else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011260 echo "$as_me: failed program was:" >&5
11261sed 's/^/| /' conftest.$ac_ext >&5
11262
11263ac_cv_type_dev_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011264fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011266fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011267echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11268echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11269if test $ac_cv_type_dev_t = yes; then
11270 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011271else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011272
11273cat >>confdefs.h <<_ACEOF
11274#define dev_t unsigned
11275_ACEOF
11276
11277fi
11278
11279
11280echo "$as_me:$LINENO: checking for rlim_t" >&5
11281echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11282if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11283 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11284echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11285else
11286 cat >conftest.$ac_ext <<_ACEOF
11287/* confdefs.h. */
11288_ACEOF
11289cat confdefs.h >>conftest.$ac_ext
11290cat >>conftest.$ac_ext <<_ACEOF
11291/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011292
11293#include <sys/types.h>
11294#if STDC_HEADERS
11295#include <stdlib.h>
11296#include <stddef.h>
11297#endif
11298#ifdef HAVE_SYS_RESOURCE_H
11299#include <sys/resource.h>
11300#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011301
11302_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011304 $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 +000011305 ac_cv_type_rlim_t=yes
11306else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011307 ac_cv_type_rlim_t=no
11308fi
11309rm -f conftest*
11310
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011311 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11312echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011313fi
11314if test $ac_cv_type_rlim_t = no; then
11315 cat >> confdefs.h <<\EOF
11316#define rlim_t unsigned long
11317EOF
11318fi
11319
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011320echo "$as_me:$LINENO: checking for stack_t" >&5
11321echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011322if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011323 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11324echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011325else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011326 cat >conftest.$ac_ext <<_ACEOF
11327/* confdefs.h. */
11328_ACEOF
11329cat confdefs.h >>conftest.$ac_ext
11330cat >>conftest.$ac_ext <<_ACEOF
11331/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011332
11333#include <sys/types.h>
11334#if STDC_HEADERS
11335#include <stdlib.h>
11336#include <stddef.h>
11337#endif
11338#include <signal.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011339
11340_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011342 $EGREP "stack_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011343 ac_cv_type_stack_t=yes
11344else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011345 ac_cv_type_stack_t=no
11346fi
11347rm -f conftest*
11348
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011349 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11350echo "${ECHO_T}$ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011351fi
11352if test $ac_cv_type_stack_t = no; then
11353 cat >> confdefs.h <<\EOF
11354#define stack_t struct sigaltstack
11355EOF
11356fi
11357
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011358echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11359echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11360cat >conftest.$ac_ext <<_ACEOF
11361/* confdefs.h. */
11362_ACEOF
11363cat confdefs.h >>conftest.$ac_ext
11364cat >>conftest.$ac_ext <<_ACEOF
11365/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011366
11367#include <sys/types.h>
11368#if STDC_HEADERS
11369#include <stdlib.h>
11370#include <stddef.h>
11371#endif
11372#include <signal.h>
11373#include "confdefs.h"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011374
11375int
11376main ()
11377{
11378stack_t sigstk; sigstk.ss_base = 0;
11379 ;
11380 return 0;
11381}
11382_ACEOF
11383rm -f conftest.$ac_objext
11384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11385 (eval $ac_compile) 2>conftest.er1
11386 ac_status=$?
11387 grep -v '^ *+' conftest.er1 >conftest.err
11388 rm -f conftest.er1
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } &&
11392 { ac_try='test -z "$ac_c_werror_flag"
11393 || test ! -s conftest.err'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 echo "$as_me:$LINENO: result: yes" >&5
11406echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011407#define HAVE_SS_BASE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011408_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011409
11410else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011411 echo "$as_me: failed program was:" >&5
11412sed 's/^/| /' conftest.$ac_ext >&5
11413
11414echo "$as_me:$LINENO: result: no" >&5
11415echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011416fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011418
11419olibs="$LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011420echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11421echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11422
Bram Moolenaar071d4272004-06-13 20:20:40 +000011423# Check whether --with-tlib or --without-tlib was given.
11424if test "${with_tlib+set}" = set; then
11425 withval="$with_tlib"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011426
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011427fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011428if test -n "$with_tlib"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011429 echo "$as_me:$LINENO: result: $with_tlib" >&5
11430echo "${ECHO_T}$with_tlib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011431 LIBS="$LIBS -l$with_tlib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011432 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11433echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11434 cat >conftest.$ac_ext <<_ACEOF
11435/* confdefs.h. */
11436_ACEOF
11437cat confdefs.h >>conftest.$ac_ext
11438cat >>conftest.$ac_ext <<_ACEOF
11439/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011440
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011441int
11442main ()
11443{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011444
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011445 ;
11446 return 0;
11447}
11448_ACEOF
11449rm -f conftest.$ac_objext conftest$ac_exeext
11450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11451 (eval $ac_link) 2>conftest.er1
11452 ac_status=$?
11453 grep -v '^ *+' conftest.er1 >conftest.err
11454 rm -f conftest.er1
11455 cat conftest.err >&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } &&
11458 { ac_try='test -z "$ac_c_werror_flag"
11459 || test ! -s conftest.err'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; } &&
11465 { ac_try='test -s conftest$ac_exeext'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 echo "$as_me:$LINENO: result: OK" >&5
11472echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011473else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011474 echo "$as_me: failed program was:" >&5
11475sed 's/^/| /' conftest.$ac_ext >&5
11476
11477{ { echo "$as_me:$LINENO: error: FAILED" >&5
11478echo "$as_me: error: FAILED" >&2;}
11479 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011480fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011481rm -f conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011483 olibs="$LIBS"
11484else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011485 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11486echo "${ECHO_T}empty: automatic terminal library selection" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011487 case "`uname -s 2>/dev/null`" in
11488 OSF1) tlibs="ncurses curses termlib termcap";;
11489 *) tlibs="ncurses termlib termcap curses";;
11490 esac
11491 for libname in $tlibs; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011492
11493as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11494echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11495echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11496if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011498else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011499 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000011500LIBS="-l${libname} $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011501cat >conftest.$ac_ext <<_ACEOF
11502/* confdefs.h. */
11503_ACEOF
11504cat confdefs.h >>conftest.$ac_ext
11505cat >>conftest.$ac_ext <<_ACEOF
11506/* end confdefs.h. */
11507
Bram Moolenaar071d4272004-06-13 20:20:40 +000011508/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011509#ifdef __cplusplus
11510extern "C"
11511#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011512/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011513 builtin and then its argument prototype would still apply. */
11514char tgetent ();
11515int
11516main ()
11517{
11518tgetent ();
11519 ;
11520 return 0;
11521}
11522_ACEOF
11523rm -f conftest.$ac_objext conftest$ac_exeext
11524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11525 (eval $ac_link) 2>conftest.er1
11526 ac_status=$?
11527 grep -v '^ *+' conftest.er1 >conftest.err
11528 rm -f conftest.er1
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_c_werror_flag"
11533 || test ! -s conftest.err'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; } &&
11539 { ac_try='test -s conftest$ac_exeext'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 eval "$as_ac_Lib=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011546else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011547 echo "$as_me: failed program was:" >&5
11548sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011549
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011550eval "$as_ac_Lib=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011551fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011552rm -f conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554LIBS=$ac_check_lib_save_LIBS
11555fi
11556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11557echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11558if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11559 cat >>confdefs.h <<_ACEOF
11560#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11561_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011562
11563 LIBS="-l${libname} $LIBS"
11564
Bram Moolenaar071d4272004-06-13 20:20:40 +000011565fi
11566
11567 if test "x$olibs" != "x$LIBS"; then
11568 if test "$cross_compiling" = yes; then
11569 res="FAIL"
11570else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011571 cat >conftest.$ac_ext <<_ACEOF
11572/* confdefs.h. */
11573_ACEOF
11574cat confdefs.h >>conftest.$ac_ext
11575cat >>conftest.$ac_ext <<_ACEOF
11576/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011577
11578#ifdef HAVE_TERMCAP_H
11579# include <termcap.h>
11580#endif
11581main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011582_ACEOF
11583rm -f conftest$ac_exeext
11584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11585 (eval $ac_link) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011594 res="OK"
11595else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011596 echo "$as_me: program exited with status $ac_status" >&5
11597echo "$as_me: failed program was:" >&5
11598sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011599
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011600( exit $ac_status )
11601res="FAIL"
11602fi
11603rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11604fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011605 if test "$res" = "OK"; then
11606 break
11607 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011608 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11609echo "${ECHO_T}$libname library is not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011610 LIBS="$olibs"
11611 fi
11612 done
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011613 if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011614 echo "$as_me:$LINENO: result: no terminal library found" >&5
11615echo "${ECHO_T}no terminal library found" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011616 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011617fi
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011618
11619if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011620 echo "$as_me:$LINENO: checking for tgetent()" >&5
11621echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11622 cat >conftest.$ac_ext <<_ACEOF
11623/* confdefs.h. */
11624_ACEOF
11625cat confdefs.h >>conftest.$ac_ext
11626cat >>conftest.$ac_ext <<_ACEOF
11627/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011628
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011629int
11630main ()
11631{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011632char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011633 ;
11634 return 0;
11635}
11636_ACEOF
11637rm -f conftest.$ac_objext conftest$ac_exeext
11638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11639 (eval $ac_link) 2>conftest.er1
11640 ac_status=$?
11641 grep -v '^ *+' conftest.er1 >conftest.err
11642 rm -f conftest.er1
11643 cat conftest.err >&5
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } &&
11646 { ac_try='test -z "$ac_c_werror_flag"
11647 || test ! -s conftest.err'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11650 ac_status=$?
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; } &&
11653 { ac_try='test -s conftest$ac_exeext'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11656 ac_status=$?
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; }; then
11659 echo "$as_me:$LINENO: result: yes" >&5
11660echo "${ECHO_T}yes" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011661else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011662 echo "$as_me: failed program was:" >&5
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
11665{ { echo "$as_me:$LINENO: error: NOT FOUND!
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011666 You need to install a terminal library; for example ncurses.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011667 Or specify the name of the library with --with-tlib." >&5
11668echo "$as_me: error: NOT FOUND!
11669 You need to install a terminal library; for example ncurses.
11670 Or specify the name of the library with --with-tlib." >&2;}
11671 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011672fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011673rm -f conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011675fi
11676
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011677echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11678echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011679if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011680 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11681echo "$as_me: error: failed to compile test program." >&2;}
11682 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011683else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011684 cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011690
11691#ifdef HAVE_TERMCAP_H
11692# include <termcap.h>
11693#endif
11694main()
11695{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011696_ACEOF
11697rm -f conftest$ac_exeext
11698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11699 (eval $ac_link) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11704 (eval $ac_try) 2>&5
11705 ac_status=$?
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); }; }; then
11708 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11709echo "${ECHO_T}no -- we are in termcap land" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011710else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011711 echo "$as_me: program exited with status $ac_status" >&5
11712echo "$as_me: failed program was:" >&5
11713sed 's/^/| /' conftest.$ac_ext >&5
11714
11715( exit $ac_status )
11716echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11717echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011718#define TERMINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011719_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011720
11721fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011723fi
11724
Bram Moolenaar071d4272004-06-13 20:20:40 +000011725if test "x$olibs" != "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011726 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11727echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011728 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011729 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11730echo "$as_me: error: failed to compile test program." >&2;}
11731 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011732else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011733 cat >conftest.$ac_ext <<_ACEOF
11734/* confdefs.h. */
11735_ACEOF
11736cat confdefs.h >>conftest.$ac_ext
11737cat >>conftest.$ac_ext <<_ACEOF
11738/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011739
11740#ifdef HAVE_TERMCAP_H
11741# include <termcap.h>
11742#endif
11743main()
11744{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011745_ACEOF
11746rm -f conftest$ac_exeext
11747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748 (eval $ac_link) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 echo "$as_me:$LINENO: result: zero" >&5
11758echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011759#define TGETENT_ZERO_ERR 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011760_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011761
11762else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011763 echo "$as_me: program exited with status $ac_status" >&5
11764echo "$as_me: failed program was:" >&5
11765sed 's/^/| /' conftest.$ac_ext >&5
11766
11767( exit $ac_status )
11768echo "$as_me:$LINENO: result: non-zero" >&5
11769echo "${ECHO_T}non-zero" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011770fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011771rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11772fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011773fi
11774
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011775echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11776echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11777cat >conftest.$ac_ext <<_ACEOF
11778/* confdefs.h. */
11779_ACEOF
11780cat confdefs.h >>conftest.$ac_ext
11781cat >>conftest.$ac_ext <<_ACEOF
11782/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011783
11784#ifdef HAVE_TERMCAP_H
11785# include <termcap.h>
11786#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011787
11788int
11789main ()
11790{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011791ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011792 ;
11793 return 0;
11794}
11795_ACEOF
11796rm -f conftest.$ac_objext conftest$ac_exeext
11797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11798 (eval $ac_link) 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -z "$ac_c_werror_flag"
11806 || test ! -s conftest.err'
11807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808 (eval $ac_try) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest$ac_exeext'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 echo "$as_me:$LINENO: result: yes" >&5
11819echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011820#define HAVE_OSPEED 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011821_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011822
11823else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011824 echo "$as_me: failed program was:" >&5
11825sed 's/^/| /' conftest.$ac_ext >&5
11826
11827echo "$as_me:$LINENO: result: no" >&5
11828echo "${ECHO_T}no" >&6
11829 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11830echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11831 cat >conftest.$ac_ext <<_ACEOF
11832/* confdefs.h. */
11833_ACEOF
11834cat confdefs.h >>conftest.$ac_ext
11835cat >>conftest.$ac_ext <<_ACEOF
11836/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011837
11838#ifdef HAVE_TERMCAP_H
11839# include <termcap.h>
11840#endif
11841extern short ospeed;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011842
11843int
11844main ()
11845{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011846ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011847 ;
11848 return 0;
11849}
11850_ACEOF
11851rm -f conftest.$ac_objext conftest$ac_exeext
11852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag"
11861 || test ! -s conftest.err'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; } &&
11867 { ac_try='test -s conftest$ac_exeext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 echo "$as_me:$LINENO: result: yes" >&5
11874echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011875#define OSPEED_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011876_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011877
11878else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011879 echo "$as_me: failed program was:" >&5
11880sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011881
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011882echo "$as_me:$LINENO: result: no" >&5
11883echo "${ECHO_T}no" >&6
11884fi
11885rm -f conftest.err conftest.$ac_objext \
11886 conftest$ac_exeext conftest.$ac_ext
11887
11888fi
11889rm -f conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
11891
11892echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11893echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11894cat >conftest.$ac_ext <<_ACEOF
11895/* confdefs.h. */
11896_ACEOF
11897cat confdefs.h >>conftest.$ac_ext
11898cat >>conftest.$ac_ext <<_ACEOF
11899/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011900
11901#ifdef HAVE_TERMCAP_H
11902# include <termcap.h>
11903#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011904
11905int
11906main ()
11907{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011908if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011909 ;
11910 return 0;
11911}
11912_ACEOF
11913rm -f conftest.$ac_objext conftest$ac_exeext
11914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11915 (eval $ac_link) 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag"
11923 || test ! -s conftest.err'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; } &&
11929 { ac_try='test -s conftest$ac_exeext'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 echo "$as_me:$LINENO: result: yes" >&5
11936echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011937#define HAVE_UP_BC_PC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011938_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011939
11940else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011941 echo "$as_me: failed program was:" >&5
11942sed 's/^/| /' conftest.$ac_ext >&5
11943
11944echo "$as_me:$LINENO: result: no" >&5
11945echo "${ECHO_T}no" >&6
11946 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
11947echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
11948 cat >conftest.$ac_ext <<_ACEOF
11949/* confdefs.h. */
11950_ACEOF
11951cat confdefs.h >>conftest.$ac_ext
11952cat >>conftest.$ac_ext <<_ACEOF
11953/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011954
11955#ifdef HAVE_TERMCAP_H
11956# include <termcap.h>
11957#endif
11958extern char *UP, *BC, PC;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011959
11960int
11961main ()
11962{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011963if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011964 ;
11965 return 0;
11966}
11967_ACEOF
11968rm -f conftest.$ac_objext conftest$ac_exeext
11969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11970 (eval $ac_link) 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } &&
11977 { ac_try='test -z "$ac_c_werror_flag"
11978 || test ! -s conftest.err'
11979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11980 (eval $ac_try) 2>&5
11981 ac_status=$?
11982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); }; } &&
11984 { ac_try='test -s conftest$ac_exeext'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; }; then
11990 echo "$as_me:$LINENO: result: yes" >&5
11991echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011992#define UP_BC_PC_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011993_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011994
11995else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011996 echo "$as_me: failed program was:" >&5
11997sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011998
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011999echo "$as_me:$LINENO: result: no" >&5
12000echo "${ECHO_T}no" >&6
12001fi
12002rm -f conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004
12005fi
12006rm -f conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008
12009echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12010echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12011cat >conftest.$ac_ext <<_ACEOF
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012017
12018#ifdef HAVE_TERMCAP_H
12019# include <termcap.h>
12020#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012021
12022int
12023main ()
12024{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012025extern int xx(); tputs("test", 1, (outfuntype)xx)
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012026 ;
12027 return 0;
12028}
12029_ACEOF
12030rm -f conftest.$ac_objext
12031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12032 (eval $ac_compile) 2>conftest.er1
12033 ac_status=$?
12034 grep -v '^ *+' conftest.er1 >conftest.err
12035 rm -f conftest.er1
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -z "$ac_c_werror_flag"
12040 || test ! -s conftest.err'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; } &&
12046 { ac_try='test -s conftest.$ac_objext'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12049 ac_status=$?
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12052 echo "$as_me:$LINENO: result: yes" >&5
12053echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012054#define HAVE_OUTFUNTYPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012055_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012056
12057else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012058 echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012060
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012061echo "$as_me:$LINENO: result: no" >&5
12062echo "${ECHO_T}no" >&6
12063fi
12064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065
12066echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12067echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12068cat >conftest.$ac_ext <<_ACEOF
12069/* confdefs.h. */
12070_ACEOF
12071cat confdefs.h >>conftest.$ac_ext
12072cat >>conftest.$ac_ext <<_ACEOF
12073/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012074
12075#include <sys/types.h>
12076#include <sys/time.h>
12077#include <sys/select.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012078int
12079main ()
12080{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012081
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012082 ;
12083 return 0;
12084}
12085_ACEOF
12086rm -f conftest.$ac_objext
12087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12088 (eval $ac_compile) 2>conftest.er1
12089 ac_status=$?
12090 grep -v '^ *+' conftest.er1 >conftest.err
12091 rm -f conftest.er1
12092 cat conftest.err >&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); } &&
12095 { ac_try='test -z "$ac_c_werror_flag"
12096 || test ! -s conftest.err'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12099 ac_status=$?
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; } &&
12102 { ac_try='test -s conftest.$ac_objext'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12105 ac_status=$?
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 echo "$as_me:$LINENO: result: yes" >&5
12109echo "${ECHO_T}yes" >&6
12110 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012111#define SYS_SELECT_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012112_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012113
12114else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012115 echo "$as_me: failed program was:" >&5
12116sed 's/^/| /' conftest.$ac_ext >&5
12117
12118echo "$as_me:$LINENO: result: no" >&5
12119echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012120fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012122
12123
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012124echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12125echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012126if test -r /dev/ptc; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012127 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012128#define HAVE_DEV_PTC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012129_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012130
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012131 echo "$as_me:$LINENO: result: yes" >&5
12132echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012133else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012134 echo "$as_me:$LINENO: result: no" >&5
12135echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012136fi
12137
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012138echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12139echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012140if test -c /dev/ptmx ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012141 cat >conftest.$ac_ext <<_ACEOF
12142/* confdefs.h. */
12143_ACEOF
12144cat confdefs.h >>conftest.$ac_ext
12145cat >>conftest.$ac_ext <<_ACEOF
12146/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012147
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012148int
12149main ()
12150{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012151ptsname(0);grantpt(0);unlockpt(0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012152 ;
12153 return 0;
12154}
12155_ACEOF
12156rm -f conftest.$ac_objext conftest$ac_exeext
12157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12158 (eval $ac_link) 2>conftest.er1
12159 ac_status=$?
12160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); } &&
12165 { ac_try='test -z "$ac_c_werror_flag"
12166 || test ! -s conftest.err'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; } &&
12172 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12178 echo "$as_me:$LINENO: result: yes" >&5
12179echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012180#define HAVE_SVR4_PTYS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012181_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012182
12183else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012184 echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
12186
12187echo "$as_me:$LINENO: result: no" >&5
12188echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012189fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012190rm -f conftest.err conftest.$ac_objext \
12191 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012192else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012193 echo "$as_me:$LINENO: result: no" >&5
12194echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012195fi
12196
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012197echo "$as_me:$LINENO: checking for ptyranges" >&5
12198echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012199if test -d /dev/ptym ; then
12200 pdir='/dev/ptym'
12201else
12202 pdir='/dev'
12203fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012204cat >conftest.$ac_ext <<_ACEOF
12205/* confdefs.h. */
12206_ACEOF
12207cat confdefs.h >>conftest.$ac_ext
12208cat >>conftest.$ac_ext <<_ACEOF
12209/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012210#ifdef M_UNIX
12211 yes;
12212#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012213
12214_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012216 $EGREP "yes" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012217 ptys=`echo /dev/ptyp??`
12218else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012219 ptys=`echo $pdir/pty??`
12220fi
12221rm -f conftest*
12222
12223if test "$ptys" != "$pdir/pty??" ; then
12224 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12225 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012226 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012227#define PTYRANGE0 "$p0"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012228_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012229
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012230 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012231#define PTYRANGE1 "$p1"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012232_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012233
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012234 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12235echo "${ECHO_T}$p0 / $p1" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012236else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012237 echo "$as_me:$LINENO: result: don't know" >&5
12238echo "${ECHO_T}don't know" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012239fi
12240
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012241echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12242echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012243rm -f conftest_grp
12244if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012245 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12246echo "$as_me: error: failed to compile test program" >&2;}
12247 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012248else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012249 cat >conftest.$ac_ext <<_ACEOF
12250/* confdefs.h. */
12251_ACEOF
12252cat confdefs.h >>conftest.$ac_ext
12253cat >>conftest.$ac_ext <<_ACEOF
12254/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012255
12256#include <sys/types.h>
12257#include <sys/stat.h>
12258#include <stdio.h>
12259main()
12260{
12261 struct stat sb;
12262 char *x,*ttyname();
12263 int om, m;
12264 FILE *fp;
12265
12266 if (!(x = ttyname(0))) exit(1);
12267 if (stat(x, &sb)) exit(1);
12268 om = sb.st_mode;
12269 if (om & 002) exit(0);
12270 m = system("mesg y");
12271 if (m == -1 || m == 127) exit(1);
12272 if (stat(x, &sb)) exit(1);
12273 m = sb.st_mode;
12274 if (chmod(x, om)) exit(1);
12275 if (m & 002) exit(0);
12276 if (sb.st_gid == getgid()) exit(1);
12277 if (!(fp=fopen("conftest_grp", "w")))
12278 exit(1);
12279 fprintf(fp, "%d\n", sb.st_gid);
12280 fclose(fp);
12281 exit(0);
12282}
12283
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012284_ACEOF
12285rm -f conftest$ac_exeext
12286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12287 (eval $ac_link) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296
Bram Moolenaar071d4272004-06-13 20:20:40 +000012297 if test -f conftest_grp; then
12298 ptygrp=`cat conftest_grp`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012299 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12300echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12301 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012302#define PTYMODE 0620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012303_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012304
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012305 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012306#define PTYGROUP $ptygrp
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012307_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012308
12309 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012310 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12311echo "${ECHO_T}ptys are world accessable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012312 fi
12313
12314else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012315 echo "$as_me: program exited with status $ac_status" >&5
12316echo "$as_me: failed program was:" >&5
12317sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012318
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012319( exit $ac_status )
12320echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12321echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12322fi
12323rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12324fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012325rm -f conftest_grp
12326
12327
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012328echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12329echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12330if test "${ac_cv_type_signal+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012332else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012333 cat >conftest.$ac_ext <<_ACEOF
12334/* confdefs.h. */
12335_ACEOF
12336cat confdefs.h >>conftest.$ac_ext
12337cat >>conftest.$ac_ext <<_ACEOF
12338/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012339#include <sys/types.h>
12340#include <signal.h>
12341#ifdef signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012342# undef signal
Bram Moolenaar071d4272004-06-13 20:20:40 +000012343#endif
12344#ifdef __cplusplus
12345extern "C" void (*signal (int, void (*)(int)))(int);
12346#else
12347void (*signal ()) ();
12348#endif
12349
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012350int
12351main ()
12352{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012353int i;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012354 ;
12355 return 0;
12356}
12357_ACEOF
12358rm -f conftest.$ac_objext
12359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360 (eval $ac_compile) 2>conftest.er1
12361 ac_status=$?
12362 grep -v '^ *+' conftest.er1 >conftest.err
12363 rm -f conftest.er1
12364 cat conftest.err >&5
12365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366 (exit $ac_status); } &&
12367 { ac_try='test -z "$ac_c_werror_flag"
12368 || test ! -s conftest.err'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try='test -s conftest.$ac_objext'
12375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12376 (eval $ac_try) 2>&5
12377 ac_status=$?
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012380 ac_cv_type_signal=void
12381else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012382 echo "$as_me: failed program was:" >&5
12383sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012384
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012385ac_cv_type_signal=int
12386fi
12387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12388fi
12389echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12390echo "${ECHO_T}$ac_cv_type_signal" >&6
12391
12392cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012393#define RETSIGTYPE $ac_cv_type_signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012394_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012395
12396
12397
12398if test $ac_cv_type_signal = void; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012399 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012400#define SIGRETURN return
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012401_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012402
12403else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012404 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012405#define SIGRETURN return 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012406_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012407
12408fi
12409
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012410echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12411echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12412cat >conftest.$ac_ext <<_ACEOF
12413/* confdefs.h. */
12414_ACEOF
12415cat confdefs.h >>conftest.$ac_ext
12416cat >>conftest.$ac_ext <<_ACEOF
12417/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012418
12419#include <signal.h>
12420test_sig()
12421{
12422 struct sigcontext *scont;
12423 scont = (struct sigcontext *)0;
12424 return 1;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012425}
12426int
12427main ()
12428{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012429
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012430 ;
12431 return 0;
12432}
12433_ACEOF
12434rm -f conftest.$ac_objext
12435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12436 (eval $ac_compile) 2>conftest.er1
12437 ac_status=$?
12438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } &&
12443 { ac_try='test -z "$ac_c_werror_flag"
12444 || test ! -s conftest.err'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; } &&
12450 { ac_try='test -s conftest.$ac_objext'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 echo "$as_me:$LINENO: result: yes" >&5
12457echo "${ECHO_T}yes" >&6
12458 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012459#define HAVE_SIGCONTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012460_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012461
12462else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012463 echo "$as_me: failed program was:" >&5
12464sed 's/^/| /' conftest.$ac_ext >&5
12465
12466echo "$as_me:$LINENO: result: no" >&5
12467echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012468fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012470
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012471echo "$as_me:$LINENO: checking getcwd implementation" >&5
12472echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012473if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012474 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12475echo "$as_me: error: failed to compile test program" >&2;}
12476 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012477else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012478 cat >conftest.$ac_ext <<_ACEOF
12479/* confdefs.h. */
12480_ACEOF
12481cat confdefs.h >>conftest.$ac_ext
12482cat >>conftest.$ac_ext <<_ACEOF
12483/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012484
12485char *dagger[] = { "IFS=pwd", 0 };
12486main()
12487{
12488 char buffer[500];
12489 extern char **environ;
12490 environ = dagger;
12491 return getcwd(buffer, 500) ? 0 : 1;
12492}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012493_ACEOF
12494rm -f conftest$ac_exeext
12495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12496 (eval $ac_link) 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12505 echo "$as_me:$LINENO: result: it is usable" >&5
12506echo "${ECHO_T}it is usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012507else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012508 echo "$as_me: program exited with status $ac_status" >&5
12509echo "$as_me: failed program was:" >&5
12510sed 's/^/| /' conftest.$ac_ext >&5
12511
12512( exit $ac_status )
12513echo "$as_me:$LINENO: result: it stinks" >&5
12514echo "${ECHO_T}it stinks" >&6
12515 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012516#define BAD_GETCWD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012517_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012518
12519fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012520rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012521fi
12522
12523
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
Bram Moolenaar071d4272004-06-13 20:20:40 +000012569for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12570 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12571 memset nanosleep opendir putenv qsort readlink select setenv \
12572 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000012573 sigvec strcasecmp strerror strftime stricmp strncasecmp \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000012574 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12575 usleep utime utimes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012576do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12578echo "$as_me:$LINENO: checking for $ac_func" >&5
12579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12580if eval "test \"\${$as_ac_var+set}\" = set"; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012582else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012583 cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
12589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12591#define $ac_func innocuous_$ac_func
12592
Bram Moolenaar071d4272004-06-13 20:20:40 +000012593/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012594 which can conflict with char $ac_func (); below.
12595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12596 <limits.h> exists even on freestanding compilers. */
12597
12598#ifdef __STDC__
12599# include <limits.h>
12600#else
12601# include <assert.h>
12602#endif
12603
12604#undef $ac_func
12605
Bram Moolenaar071d4272004-06-13 20:20:40 +000012606/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012607#ifdef __cplusplus
12608extern "C"
12609{
12610#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012611/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012612 builtin and then its argument prototype would still apply. */
12613char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000012614/* The GNU C library defines this for functions which it implements
12615 to always fail with ENOSYS. Some functions are actually named
12616 something starting with __ and the normal name is an alias. */
12617#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12618choke me
12619#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012620char (*f) () = $ac_func;
12621#endif
12622#ifdef __cplusplus
12623}
Bram Moolenaar071d4272004-06-13 20:20:40 +000012624#endif
12625
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012626int
12627main ()
12628{
12629return f != $ac_func;
12630 ;
12631 return 0;
12632}
12633_ACEOF
12634rm -f conftest.$ac_objext conftest$ac_exeext
12635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12636 (eval $ac_link) 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } &&
12643 { ac_try='test -z "$ac_c_werror_flag"
12644 || test ! -s conftest.err'
12645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12646 (eval $ac_try) 2>&5
12647 ac_status=$?
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; } &&
12650 { ac_try='test -s conftest$ac_exeext'
12651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12652 (eval $ac_try) 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; }; then
12656 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012657else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012658 echo "$as_me: failed program was:" >&5
12659sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012660
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012661eval "$as_ac_var=no"
12662fi
12663rm -f conftest.err conftest.$ac_objext \
12664 conftest$ac_exeext conftest.$ac_ext
12665fi
12666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12667echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12668if test `eval echo '${'$as_ac_var'}'` = yes; then
12669 cat >>confdefs.h <<_ACEOF
12670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12671_ACEOF
12672
Bram Moolenaar071d4272004-06-13 20:20:40 +000012673fi
12674done
12675
12676
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012677echo "$as_me:$LINENO: checking for st_blksize" >&5
12678echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12679cat >conftest.$ac_ext <<_ACEOF
12680/* confdefs.h. */
12681_ACEOF
12682cat confdefs.h >>conftest.$ac_ext
12683cat >>conftest.$ac_ext <<_ACEOF
12684/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012685#include <sys/types.h>
12686#include <sys/stat.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012687int
12688main ()
12689{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012690 struct stat st;
12691 int n;
12692
12693 stat("/", &st);
12694 n = (int)st.st_blksize;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012695 ;
12696 return 0;
12697}
12698_ACEOF
12699rm -f conftest.$ac_objext
12700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12701 (eval $ac_compile) 2>conftest.er1
12702 ac_status=$?
12703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try='test -z "$ac_c_werror_flag"
12709 || test ! -s conftest.err'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; } &&
12715 { ac_try='test -s conftest.$ac_objext'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 echo "$as_me:$LINENO: result: yes" >&5
12722echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012723#define HAVE_ST_BLKSIZE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012724_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012725
12726else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012727 echo "$as_me: failed program was:" >&5
12728sed 's/^/| /' conftest.$ac_ext >&5
12729
12730echo "$as_me:$LINENO: result: no" >&5
12731echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012732fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012734
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012735echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12736echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012737if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012738 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12739echo "$as_me: error: failed to compile test program" >&2;}
12740 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012741else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012742 cat >conftest.$ac_ext <<_ACEOF
12743/* confdefs.h. */
12744_ACEOF
12745cat confdefs.h >>conftest.$ac_ext
12746cat >>conftest.$ac_ext <<_ACEOF
12747/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012748#include <sys/types.h>
12749#include <sys/stat.h>
12750main() {struct stat st; exit(stat("configure/", &st) != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012751_ACEOF
12752rm -f conftest$ac_exeext
12753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12754 (eval $ac_link) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12763 echo "$as_me:$LINENO: result: yes" >&5
12764echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012765#define STAT_IGNORES_SLASH 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012766_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012767
12768else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012769 echo "$as_me: program exited with status $ac_status" >&5
12770echo "$as_me: failed program was:" >&5
12771sed 's/^/| /' conftest.$ac_ext >&5
12772
12773( exit $ac_status )
12774echo "$as_me:$LINENO: result: no" >&5
12775echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012776fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012777rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012778fi
12779
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012780echo "$as_me:$LINENO: checking for iconv_open()" >&5
12781echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012782save_LIBS="$LIBS"
12783LIBS="$LIBS -liconv"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012784cat >conftest.$ac_ext <<_ACEOF
12785/* confdefs.h. */
12786_ACEOF
12787cat confdefs.h >>conftest.$ac_ext
12788cat >>conftest.$ac_ext <<_ACEOF
12789/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012790
12791#ifdef HAVE_ICONV_H
12792# include <iconv.h>
12793#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012794
12795int
12796main ()
12797{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012798iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012799 ;
12800 return 0;
12801}
12802_ACEOF
12803rm -f conftest.$ac_objext conftest$ac_exeext
12804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12805 (eval $ac_link) 2>conftest.er1
12806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -z "$ac_c_werror_flag"
12813 || test ! -s conftest.err'
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest$ac_exeext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12826echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012827#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012828_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012829
12830else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012831 echo "$as_me: failed program was:" >&5
12832sed 's/^/| /' conftest.$ac_ext >&5
12833
12834LIBS="$save_LIBS"
12835 cat >conftest.$ac_ext <<_ACEOF
12836/* confdefs.h. */
12837_ACEOF
12838cat confdefs.h >>conftest.$ac_ext
12839cat >>conftest.$ac_ext <<_ACEOF
12840/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012841
12842#ifdef HAVE_ICONV_H
12843# include <iconv.h>
12844#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012845
12846int
12847main ()
12848{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012849iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012850 ;
12851 return 0;
12852}
12853_ACEOF
12854rm -f conftest.$ac_objext conftest$ac_exeext
12855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12856 (eval $ac_link) 2>conftest.er1
12857 ac_status=$?
12858 grep -v '^ *+' conftest.er1 >conftest.err
12859 rm -f conftest.er1
12860 cat conftest.err >&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } &&
12863 { ac_try='test -z "$ac_c_werror_flag"
12864 || test ! -s conftest.err'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; } &&
12870 { ac_try='test -s conftest$ac_exeext'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 echo "$as_me:$LINENO: result: yes" >&5
12877echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012878#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012879_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012880
12881else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012882 echo "$as_me: failed program was:" >&5
12883sed 's/^/| /' conftest.$ac_ext >&5
12884
12885echo "$as_me:$LINENO: result: no" >&5
12886echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012887fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012888rm -f conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012890fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012891rm -f conftest.err conftest.$ac_objext \
12892 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012893
12894
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012895echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12896echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12897cat >conftest.$ac_ext <<_ACEOF
12898/* confdefs.h. */
12899_ACEOF
12900cat confdefs.h >>conftest.$ac_ext
12901cat >>conftest.$ac_ext <<_ACEOF
12902/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012903
12904#ifdef HAVE_LANGINFO_H
12905# include <langinfo.h>
12906#endif
12907
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012908int
12909main ()
12910{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012911char *cs = nl_langinfo(CODESET);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012912 ;
12913 return 0;
12914}
12915_ACEOF
12916rm -f conftest.$ac_objext conftest$ac_exeext
12917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12918 (eval $ac_link) 2>conftest.er1
12919 ac_status=$?
12920 grep -v '^ *+' conftest.er1 >conftest.err
12921 rm -f conftest.er1
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } &&
12925 { ac_try='test -z "$ac_c_werror_flag"
12926 || test ! -s conftest.err'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; } &&
12932 { ac_try='test -s conftest$ac_exeext'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 echo "$as_me:$LINENO: result: yes" >&5
12939echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012940#define HAVE_NL_LANGINFO_CODESET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012941_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012942
12943else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012944 echo "$as_me: failed program was:" >&5
12945sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012946
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012947echo "$as_me:$LINENO: result: no" >&5
12948echo "${ECHO_T}no" >&6
12949fi
12950rm -f conftest.err conftest.$ac_objext \
12951 conftest$ac_exeext conftest.$ac_ext
12952
12953echo "$as_me:$LINENO: checking --disable-acl argument" >&5
12954echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012955# Check whether --enable-acl or --disable-acl was given.
12956if test "${enable_acl+set}" = set; then
12957 enableval="$enable_acl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012958
Bram Moolenaar071d4272004-06-13 20:20:40 +000012959else
12960 enable_acl="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012961fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000012962if test "$enable_acl" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012963echo "$as_me:$LINENO: result: no" >&5
12964echo "${ECHO_T}no" >&6
12965echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
12966echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
12967if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012969else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012970 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000012971LIBS="-lposix1e $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012972cat >conftest.$ac_ext <<_ACEOF
12973/* confdefs.h. */
12974_ACEOF
12975cat confdefs.h >>conftest.$ac_ext
12976cat >>conftest.$ac_ext <<_ACEOF
12977/* end confdefs.h. */
12978
Bram Moolenaar071d4272004-06-13 20:20:40 +000012979/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012980#ifdef __cplusplus
12981extern "C"
12982#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012983/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012984 builtin and then its argument prototype would still apply. */
12985char acl_get_file ();
12986int
12987main ()
12988{
12989acl_get_file ();
12990 ;
12991 return 0;
12992}
12993_ACEOF
12994rm -f conftest.$ac_objext conftest$ac_exeext
12995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12996 (eval $ac_link) 2>conftest.er1
12997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } &&
13003 { ac_try='test -z "$ac_c_werror_flag"
13004 || test ! -s conftest.err'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest$ac_exeext'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 ac_cv_lib_posix1e_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013017else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013018 echo "$as_me: failed program was:" >&5
13019sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013020
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013021ac_cv_lib_posix1e_acl_get_file=no
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
13025LIBS=$ac_check_lib_save_LIBS
13026fi
13027echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13028echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13029if test $ac_cv_lib_posix1e_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013030 LIBS="$LIBS -lposix1e"
13031else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013032 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13033echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13034if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013036else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013037 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013038LIBS="-lacl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013039cat >conftest.$ac_ext <<_ACEOF
13040/* confdefs.h. */
13041_ACEOF
13042cat confdefs.h >>conftest.$ac_ext
13043cat >>conftest.$ac_ext <<_ACEOF
13044/* end confdefs.h. */
13045
Bram Moolenaar071d4272004-06-13 20:20:40 +000013046/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013047#ifdef __cplusplus
13048extern "C"
13049#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013050/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013051 builtin and then its argument prototype would still apply. */
13052char acl_get_file ();
13053int
13054main ()
13055{
13056acl_get_file ();
13057 ;
13058 return 0;
13059}
13060_ACEOF
13061rm -f conftest.$ac_objext conftest$ac_exeext
13062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13063 (eval $ac_link) 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
13070 { ac_try='test -z "$ac_c_werror_flag"
13071 || test ! -s conftest.err'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; } &&
13077 { ac_try='test -s conftest$ac_exeext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 ac_cv_lib_acl_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013084else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013085 echo "$as_me: failed program was:" >&5
13086sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013087
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013088ac_cv_lib_acl_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013089fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013090rm -f conftest.err conftest.$ac_objext \
13091 conftest$ac_exeext conftest.$ac_ext
13092LIBS=$ac_check_lib_save_LIBS
13093fi
13094echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13095echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13096if test $ac_cv_lib_acl_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013097 LIBS="$LIBS -lacl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013098 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13099echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13100if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013102else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013103 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013104LIBS="-lattr $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013105cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
13111
Bram Moolenaar071d4272004-06-13 20:20:40 +000013112/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013113#ifdef __cplusplus
13114extern "C"
13115#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013116/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013117 builtin and then its argument prototype would still apply. */
13118char fgetxattr ();
13119int
13120main ()
13121{
13122fgetxattr ();
13123 ;
13124 return 0;
13125}
13126_ACEOF
13127rm -f conftest.$ac_objext conftest$ac_exeext
13128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13129 (eval $ac_link) 2>conftest.er1
13130 ac_status=$?
13131 grep -v '^ *+' conftest.er1 >conftest.err
13132 rm -f conftest.er1
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag"
13137 || test ! -s conftest.err'
13138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13139 (eval $ac_try) 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; } &&
13143 { ac_try='test -s conftest$ac_exeext'
13144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13146 ac_status=$?
13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 ac_cv_lib_attr_fgetxattr=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013150else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013151 echo "$as_me: failed program was:" >&5
13152sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013153
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013154ac_cv_lib_attr_fgetxattr=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013155fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013156rm -f conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158LIBS=$ac_check_lib_save_LIBS
13159fi
13160echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13161echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13162if test $ac_cv_lib_attr_fgetxattr = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013163 LIBS="$LIBS -lattr"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013164fi
13165
Bram Moolenaar071d4272004-06-13 20:20:40 +000013166fi
13167
13168fi
13169
13170
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013171echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13172echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13173cat >conftest.$ac_ext <<_ACEOF
13174/* confdefs.h. */
13175_ACEOF
13176cat confdefs.h >>conftest.$ac_ext
13177cat >>conftest.$ac_ext <<_ACEOF
13178/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013179
13180#include <sys/types.h>
13181#ifdef HAVE_SYS_ACL_H
13182# include <sys/acl.h>
13183#endif
13184acl_t acl;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013185int
13186main ()
13187{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013188acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13189 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13190 acl_free(acl);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013191 ;
13192 return 0;
13193}
13194_ACEOF
13195rm -f conftest.$ac_objext conftest$ac_exeext
13196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13197 (eval $ac_link) 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -z "$ac_c_werror_flag"
13205 || test ! -s conftest.err'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest$ac_exeext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 echo "$as_me:$LINENO: result: yes" >&5
13218echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013219#define HAVE_POSIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013220_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013221
13222else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013223 echo "$as_me: failed program was:" >&5
13224sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013225
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013226echo "$as_me:$LINENO: result: no" >&5
13227echo "${ECHO_T}no" >&6
13228fi
13229rm -f conftest.err conftest.$ac_objext \
13230 conftest$ac_exeext conftest.$ac_ext
13231
13232echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13233echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13234cat >conftest.$ac_ext <<_ACEOF
13235/* confdefs.h. */
13236_ACEOF
13237cat confdefs.h >>conftest.$ac_ext
13238cat >>conftest.$ac_ext <<_ACEOF
13239/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013240
13241#ifdef HAVE_SYS_ACL_H
13242# include <sys/acl.h>
13243#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013244int
13245main ()
13246{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013247acl("foo", GETACLCNT, 0, NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013248
13249 ;
13250 return 0;
13251}
13252_ACEOF
13253rm -f conftest.$ac_objext conftest$ac_exeext
13254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13255 (eval $ac_link) 2>conftest.er1
13256 ac_status=$?
13257 grep -v '^ *+' conftest.er1 >conftest.err
13258 rm -f conftest.er1
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } &&
13262 { ac_try='test -z "$ac_c_werror_flag"
13263 || test ! -s conftest.err'
13264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13265 (eval $ac_try) 2>&5
13266 ac_status=$?
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); }; } &&
13269 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13275 echo "$as_me:$LINENO: result: yes" >&5
13276echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013277#define HAVE_SOLARIS_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013278_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013279
13280else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013283
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013284echo "$as_me:$LINENO: result: no" >&5
13285echo "${ECHO_T}no" >&6
13286fi
13287rm -f conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13289
13290echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13291echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13292cat >conftest.$ac_ext <<_ACEOF
13293/* confdefs.h. */
13294_ACEOF
13295cat confdefs.h >>conftest.$ac_ext
13296cat >>conftest.$ac_ext <<_ACEOF
13297/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013298
13299#ifdef HAVE_SYS_ACL_H
13300# include <sys/acl.h>
13301#endif
13302#ifdef HAVE_SYS_ACCESS_H
13303# include <sys/access.h>
13304#endif
13305#define _ALL_SOURCE
13306
13307#include <sys/stat.h>
13308
13309int aclsize;
13310struct acl *aclent;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013311int
13312main ()
13313{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013314aclsize = sizeof(struct acl);
13315 aclent = (void *)malloc(aclsize);
13316 statacl("foo", STX_NORMAL, aclent, aclsize);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013317
13318 ;
13319 return 0;
13320}
13321_ACEOF
13322rm -f conftest.$ac_objext conftest$ac_exeext
13323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324 (eval $ac_link) 2>conftest.er1
13325 ac_status=$?
13326 grep -v '^ *+' conftest.er1 >conftest.err
13327 rm -f conftest.er1
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } &&
13331 { ac_try='test -z "$ac_c_werror_flag"
13332 || test ! -s conftest.err'
13333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334 (eval $ac_try) 2>&5
13335 ac_status=$?
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest$ac_exeext'
13339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340 (eval $ac_try) 2>&5
13341 ac_status=$?
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); }; }; then
13344 echo "$as_me:$LINENO: result: yes" >&5
13345echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013346#define HAVE_AIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013347_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013348
13349else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013350 echo "$as_me: failed program was:" >&5
13351sed 's/^/| /' conftest.$ac_ext >&5
13352
13353echo "$as_me:$LINENO: result: no" >&5
13354echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013355fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013356rm -f conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013358else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013359 echo "$as_me:$LINENO: result: yes" >&5
13360echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013361fi
13362
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013363echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13364echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013365# Check whether --enable-gpm or --disable-gpm was given.
13366if test "${enable_gpm+set}" = set; then
13367 enableval="$enable_gpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013368
Bram Moolenaar071d4272004-06-13 20:20:40 +000013369else
13370 enable_gpm="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013371fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013372
13373if test "$enable_gpm" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013374 echo "$as_me:$LINENO: result: no" >&5
13375echo "${ECHO_T}no" >&6
13376 echo "$as_me:$LINENO: checking for gpm" >&5
13377echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13378if test "${vi_cv_have_gpm+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013380else
13381 olibs="$LIBS" ; LIBS="-lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013382 cat >conftest.$ac_ext <<_ACEOF
13383/* confdefs.h. */
13384_ACEOF
13385cat confdefs.h >>conftest.$ac_ext
13386cat >>conftest.$ac_ext <<_ACEOF
13387/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013388#include <gpm.h>
13389 #include <linux/keyboard.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013390int
13391main ()
13392{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013393Gpm_GetLibVersion(NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013394 ;
13395 return 0;
13396}
13397_ACEOF
13398rm -f conftest.$ac_objext conftest$ac_exeext
13399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13400 (eval $ac_link) 2>conftest.er1
13401 ac_status=$?
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_c_werror_flag"
13408 || test ! -s conftest.err'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; } &&
13414 { ac_try='test -s conftest$ac_exeext'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013420 vi_cv_have_gpm=yes
13421else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013422 echo "$as_me: failed program was:" >&5
13423sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013424
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013425vi_cv_have_gpm=no
13426fi
13427rm -f conftest.err conftest.$ac_objext \
13428 conftest$ac_exeext conftest.$ac_ext
13429 LIBS="$olibs"
13430
13431fi
13432echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13433echo "${ECHO_T}$vi_cv_have_gpm" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013434 if test $vi_cv_have_gpm = yes; then
13435 LIBS="$LIBS -lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013436 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013437#define HAVE_GPM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013438_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013439
13440 fi
13441else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013442 echo "$as_me:$LINENO: result: yes" >&5
13443echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013444fi
13445
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013446echo "$as_me:$LINENO: checking for rename" >&5
13447echo $ECHO_N "checking for rename... $ECHO_C" >&6
13448cat >conftest.$ac_ext <<_ACEOF
13449/* confdefs.h. */
13450_ACEOF
13451cat confdefs.h >>conftest.$ac_ext
13452cat >>conftest.$ac_ext <<_ACEOF
13453/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013454#include <stdio.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013455int
13456main ()
13457{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013458rename("this", "that")
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013459 ;
13460 return 0;
13461}
13462_ACEOF
13463rm -f conftest.$ac_objext conftest$ac_exeext
13464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13465 (eval $ac_link) 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag"
13473 || test ! -s conftest.err'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try='test -s conftest$ac_exeext'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 echo "$as_me:$LINENO: result: yes" >&5
13486echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013487#define HAVE_RENAME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013488_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013489
13490else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013491 echo "$as_me: failed program was:" >&5
13492sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013493
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013494echo "$as_me:$LINENO: result: no" >&5
13495echo "${ECHO_T}no" >&6
13496fi
13497rm -f conftest.err conftest.$ac_objext \
13498 conftest$ac_exeext conftest.$ac_ext
13499
13500echo "$as_me:$LINENO: checking for sysctl" >&5
13501echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13502cat >conftest.$ac_ext <<_ACEOF
13503/* confdefs.h. */
13504_ACEOF
13505cat confdefs.h >>conftest.$ac_ext
13506cat >>conftest.$ac_ext <<_ACEOF
13507/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013508#include <sys/types.h>
13509#include <sys/sysctl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013510int
13511main ()
13512{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013513 int mib[2], r;
13514 size_t len;
13515
13516 mib[0] = CTL_HW;
13517 mib[1] = HW_USERMEM;
13518 len = sizeof(r);
13519 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013520
13521 ;
13522 return 0;
13523}
13524_ACEOF
13525rm -f conftest.$ac_objext
13526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13527 (eval $ac_compile) 2>conftest.er1
13528 ac_status=$?
13529 grep -v '^ *+' conftest.er1 >conftest.err
13530 rm -f conftest.er1
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } &&
13534 { ac_try='test -z "$ac_c_werror_flag"
13535 || test ! -s conftest.err'
13536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13537 (eval $ac_try) 2>&5
13538 ac_status=$?
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); }; } &&
13541 { ac_try='test -s conftest.$ac_objext'
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13544 ac_status=$?
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 echo "$as_me:$LINENO: result: yes" >&5
13548echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013549#define HAVE_SYSCTL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013550_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013551
13552else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013553 echo "$as_me: failed program was:" >&5
13554sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013555
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013556echo "$as_me:$LINENO: result: not usable" >&5
13557echo "${ECHO_T}not usable" >&6
13558fi
13559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13560
13561echo "$as_me:$LINENO: checking for sysinfo" >&5
13562echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13563cat >conftest.$ac_ext <<_ACEOF
13564/* confdefs.h. */
13565_ACEOF
13566cat confdefs.h >>conftest.$ac_ext
13567cat >>conftest.$ac_ext <<_ACEOF
13568/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013569#include <sys/types.h>
13570#include <sys/sysinfo.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013571int
13572main ()
13573{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013574 struct sysinfo sinfo;
13575 int t;
13576
13577 (void)sysinfo(&sinfo);
13578 t = sinfo.totalram;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013579
13580 ;
13581 return 0;
13582}
13583_ACEOF
13584rm -f conftest.$ac_objext
13585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586 (eval $ac_compile) 2>conftest.er1
13587 ac_status=$?
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } &&
13593 { ac_try='test -z "$ac_c_werror_flag"
13594 || test ! -s conftest.err'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; } &&
13600 { ac_try='test -s conftest.$ac_objext'
13601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602 (eval $ac_try) 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; }; then
13606 echo "$as_me:$LINENO: result: yes" >&5
13607echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013608#define HAVE_SYSINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013609_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013610
13611else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013612 echo "$as_me: failed program was:" >&5
13613sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013614
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013615echo "$as_me:$LINENO: result: not usable" >&5
13616echo "${ECHO_T}not usable" >&6
13617fi
13618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13619
13620echo "$as_me:$LINENO: checking for sysconf" >&5
13621echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13622cat >conftest.$ac_ext <<_ACEOF
13623/* confdefs.h. */
13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
13627/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013628#include <unistd.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013629int
13630main ()
13631{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013632 (void)sysconf(_SC_PAGESIZE);
13633 (void)sysconf(_SC_PHYS_PAGES);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013634
13635 ;
13636 return 0;
13637}
13638_ACEOF
13639rm -f conftest.$ac_objext
13640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13641 (eval $ac_compile) 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } &&
13648 { ac_try='test -z "$ac_c_werror_flag"
13649 || test ! -s conftest.err'
13650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }; } &&
13655 { ac_try='test -s conftest.$ac_objext'
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
13661 echo "$as_me:$LINENO: result: yes" >&5
13662echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013663#define HAVE_SYSCONF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013664_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013665
13666else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013667 echo "$as_me: failed program was:" >&5
13668sed 's/^/| /' conftest.$ac_ext >&5
13669
13670echo "$as_me:$LINENO: result: not usable" >&5
13671echo "${ECHO_T}not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013672fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013674
13675
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013676echo "$as_me:$LINENO: checking size of int" >&5
13677echo $ECHO_N "checking size of int... $ECHO_C" >&6
13678if test "${ac_cv_sizeof_int+set}" = set; then
13679 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013680else
13681 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013682 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13683echo "$as_me: error: failed to compile test program" >&2;}
13684 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013685else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013686 cat >conftest.$ac_ext <<_ACEOF
13687/* confdefs.h. */
13688_ACEOF
13689cat confdefs.h >>conftest.$ac_ext
13690cat >>conftest.$ac_ext <<_ACEOF
13691/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013692#include <stdio.h>
13693 main()
13694 {
13695 FILE *f=fopen("conftestval", "w");
13696 if (!f) exit(1);
13697 fprintf(f, "%d\n", (int)sizeof(int));
13698 exit(0);
13699 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013700_ACEOF
13701rm -f conftest$ac_exeext
13702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13703 (eval $ac_link) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013712 ac_cv_sizeof_int=`cat conftestval`
13713else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013714 echo "$as_me: program exited with status $ac_status" >&5
13715echo "$as_me: failed program was:" >&5
13716sed 's/^/| /' conftest.$ac_ext >&5
13717
13718( exit $ac_status )
13719ac_cv_sizeof_int=0
Bram Moolenaar071d4272004-06-13 20:20:40 +000013720fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013721rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13722fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013723fi
13724
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013725echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13726echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13727cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013728#define SIZEOF_INT $ac_cv_sizeof_int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013729_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013730
13731
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013732echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13733echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013734bcopy_test_prog='
13735main() {
13736 char buf[10];
13737 strcpy(buf, "abcdefghi");
13738 mch_memmove(buf, buf + 2, 3);
13739 if (strncmp(buf, "ababcf", 6))
13740 exit(1);
13741 strcpy(buf, "abcdefghi");
13742 mch_memmove(buf + 2, buf, 3);
13743 if (strncmp(buf, "cdedef", 6))
13744 exit(1);
13745 exit(0); /* libc version works properly. */
13746}'
13747
13748
13749if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013750 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13751echo "$as_me: error: failed to compile test program" >&2;}
13752 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013753else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013754 cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013760#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013761_ACEOF
13762rm -f conftest$ac_exeext
13763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13764 (eval $ac_link) 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; }; then
13773 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013774#define USEMEMMOVE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013775_ACEOF
13776 echo "$as_me:$LINENO: result: memmove does" >&5
13777echo "${ECHO_T}memmove does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013778else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013779 echo "$as_me: program exited with status $ac_status" >&5
13780echo "$as_me: failed program was:" >&5
13781sed 's/^/| /' conftest.$ac_ext >&5
13782
13783( exit $ac_status )
13784if test "$cross_compiling" = yes; then
13785 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13786echo "$as_me: error: failed to compile test program" >&2;}
13787 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013788else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013789 cat >conftest.$ac_ext <<_ACEOF
13790/* confdefs.h. */
13791_ACEOF
13792cat confdefs.h >>conftest.$ac_ext
13793cat >>conftest.$ac_ext <<_ACEOF
13794/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013795#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013796_ACEOF
13797rm -f conftest$ac_exeext
13798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799 (eval $ac_link) 2>&5
13800 ac_status=$?
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804 (eval $ac_try) 2>&5
13805 ac_status=$?
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); }; }; then
13808 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013809#define USEBCOPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013810_ACEOF
13811 echo "$as_me:$LINENO: result: bcopy does" >&5
13812echo "${ECHO_T}bcopy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013813else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013814 echo "$as_me: program exited with status $ac_status" >&5
13815echo "$as_me: failed program was:" >&5
13816sed 's/^/| /' conftest.$ac_ext >&5
13817
13818( exit $ac_status )
13819if test "$cross_compiling" = yes; then
13820 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13821echo "$as_me: error: failed to compile test program" >&2;}
13822 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013823else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013824 cat >conftest.$ac_ext <<_ACEOF
13825/* confdefs.h. */
13826_ACEOF
13827cat confdefs.h >>conftest.$ac_ext
13828cat >>conftest.$ac_ext <<_ACEOF
13829/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013830#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013831_ACEOF
13832rm -f conftest$ac_exeext
13833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13834 (eval $ac_link) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
13843 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013844#define USEMEMCPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013845_ACEOF
13846 echo "$as_me:$LINENO: result: memcpy does" >&5
13847echo "${ECHO_T}memcpy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013848else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013849 echo "$as_me: program exited with status $ac_status" >&5
13850echo "$as_me: failed program was:" >&5
13851sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013852
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013853( exit $ac_status )
13854echo "$as_me:$LINENO: result: no" >&5
13855echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013856fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013857rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013858fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013859fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013860rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013861fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013862fi
13863rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13864fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013865
13866
13867if test "$enable_multibyte" = "yes"; then
13868 cflags_save=$CFLAGS
13869 ldflags_save=$LDFLAGS
13870 if test -n "$x_includes" ; then
13871 CFLAGS="$CFLAGS -I$x_includes"
13872 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013873 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
13874echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
13875 cat >conftest.$ac_ext <<_ACEOF
13876/* confdefs.h. */
13877_ACEOF
13878cat confdefs.h >>conftest.$ac_ext
13879cat >>conftest.$ac_ext <<_ACEOF
13880/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013881#include <X11/Xlocale.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013882int
13883main ()
13884{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013885
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013886 ;
13887 return 0;
13888}
13889_ACEOF
13890rm -f conftest.$ac_objext
13891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13892 (eval $ac_compile) 2>conftest.er1
13893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -z "$ac_c_werror_flag"
13900 || test ! -s conftest.err'
13901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13903 ac_status=$?
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); }; } &&
13906 { ac_try='test -s conftest.$ac_objext'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; }; then
13912 cat >conftest.$ac_ext <<_ACEOF
13913/* confdefs.h. */
13914_ACEOF
13915cat confdefs.h >>conftest.$ac_ext
13916cat >>conftest.$ac_ext <<_ACEOF
13917/* end confdefs.h. */
13918
Bram Moolenaar071d4272004-06-13 20:20:40 +000013919/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013920#ifdef __cplusplus
13921extern "C"
13922#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013923/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013924 builtin and then its argument prototype would still apply. */
13925char _Xsetlocale ();
13926int
13927main ()
13928{
13929_Xsetlocale ();
13930 ;
13931 return 0;
13932}
13933_ACEOF
13934rm -f conftest.$ac_objext conftest$ac_exeext
13935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13936 (eval $ac_link) 2>conftest.er1
13937 ac_status=$?
13938 grep -v '^ *+' conftest.er1 >conftest.err
13939 rm -f conftest.er1
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -z "$ac_c_werror_flag"
13944 || test ! -s conftest.err'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; } &&
13950 { ac_try='test -s conftest$ac_exeext'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 echo "$as_me:$LINENO: result: yes" >&5
13957echo "${ECHO_T}yes" >&6
13958 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013959#define X_LOCALE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013960_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013961
13962else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013963 echo "$as_me: failed program was:" >&5
13964sed 's/^/| /' conftest.$ac_ext >&5
13965
13966echo "$as_me:$LINENO: result: no" >&5
13967echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013968fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013969rm -f conftest.err conftest.$ac_objext \
13970 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013971else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013972 echo "$as_me: failed program was:" >&5
13973sed 's/^/| /' conftest.$ac_ext >&5
13974
13975echo "$as_me:$LINENO: result: no" >&5
13976echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013977fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013979 fi
13980 CFLAGS=$cflags_save
13981 LDFLAGS=$ldflags_save
13982fi
13983
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013984echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
13985echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
13986if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013988else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013989 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013990LIBS="-lxpg4 $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013991cat >conftest.$ac_ext <<_ACEOF
13992/* confdefs.h. */
13993_ACEOF
13994cat confdefs.h >>conftest.$ac_ext
13995cat >>conftest.$ac_ext <<_ACEOF
13996/* end confdefs.h. */
13997
Bram Moolenaar071d4272004-06-13 20:20:40 +000013998/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013999#ifdef __cplusplus
14000extern "C"
14001#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014002/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014003 builtin and then its argument prototype would still apply. */
14004char _xpg4_setrunelocale ();
14005int
14006main ()
14007{
14008_xpg4_setrunelocale ();
14009 ;
14010 return 0;
14011}
14012_ACEOF
14013rm -f conftest.$ac_objext conftest$ac_exeext
14014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14015 (eval $ac_link) 2>conftest.er1
14016 ac_status=$?
14017 grep -v '^ *+' conftest.er1 >conftest.err
14018 rm -f conftest.er1
14019 cat conftest.err >&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); } &&
14022 { ac_try='test -z "$ac_c_werror_flag"
14023 || test ! -s conftest.err'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; } &&
14029 { ac_try='test -s conftest$ac_exeext'
14030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14031 (eval $ac_try) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); }; }; then
14035 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014036else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014037 echo "$as_me: failed program was:" >&5
14038sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014039
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014040ac_cv_lib_xpg4__xpg4_setrunelocale=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014041fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014042rm -f conftest.err conftest.$ac_objext \
14043 conftest$ac_exeext conftest.$ac_ext
14044LIBS=$ac_check_lib_save_LIBS
14045fi
14046echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14047echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14048if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014049 LIBS="$LIBS -lxpg4"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014050fi
14051
14052
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014053echo "$as_me:$LINENO: checking how to create tags" >&5
14054echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014055test -f tags && mv tags tags.save
14056if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
Bram Moolenaar78984f52005-08-01 07:19:10 +000014057 TAGPRG="ctags -I INIT+"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014058else
14059 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14060 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14061 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14062 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14063 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14064 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14065 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14066fi
14067test -f tags.save && mv tags.save tags
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014068echo "$as_me:$LINENO: result: $TAGPRG" >&5
14069echo "${ECHO_T}$TAGPRG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014070
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014071echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14072echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014073MANDEF="man"
14074(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014075echo "$as_me:$LINENO: result: $MANDEF" >&5
14076echo "${ECHO_T}$MANDEF" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014077if test "$MANDEF" = "man -s"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014078 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014079#define USEMAN_S 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014080_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014081
14082fi
14083
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014084echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14085echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014086# Check whether --enable-nls or --disable-nls was given.
14087if test "${enable_nls+set}" = set; then
14088 enableval="$enable_nls"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014089
Bram Moolenaar071d4272004-06-13 20:20:40 +000014090else
14091 enable_nls="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014092fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014093
14094if test "$enable_nls" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014095 echo "$as_me:$LINENO: result: no" >&5
14096echo "${ECHO_T}no" >&6
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000014097
14098 INSTALL_LANGS=install-languages
14099
14100 INSTALL_TOOL_LANGS=install-tool-languages
14101
14102
Bram Moolenaar071d4272004-06-13 20:20:40 +000014103 # Extract the first word of "msgfmt", so it can be a program name with args.
14104set dummy msgfmt; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014105echo "$as_me:$LINENO: checking for $ac_word" >&5
14106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14107if test "${ac_cv_prog_MSGFMT+set}" = set; then
14108 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014109else
14110 if test -n "$MSGFMT"; then
14111 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14112else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14114for as_dir in $PATH
14115do
14116 IFS=$as_save_IFS
14117 test -z "$as_dir" && as_dir=.
14118 for ac_exec_ext in '' $ac_executable_extensions; do
14119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14120 ac_cv_prog_MSGFMT="msgfmt"
14121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14122 break 2
14123 fi
14124done
14125done
14126
Bram Moolenaar071d4272004-06-13 20:20:40 +000014127fi
14128fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014129MSGFMT=$ac_cv_prog_MSGFMT
Bram Moolenaar071d4272004-06-13 20:20:40 +000014130if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014131 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14132echo "${ECHO_T}$MSGFMT" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014133else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014134 echo "$as_me:$LINENO: result: no" >&5
14135echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014136fi
14137
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014138 echo "$as_me:$LINENO: checking for NLS" >&5
14139echo $ECHO_N "checking for NLS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014140 if test -f po/Makefile; then
14141 have_gettext="no"
14142 if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014143 cat >conftest.$ac_ext <<_ACEOF
14144/* confdefs.h. */
14145_ACEOF
14146cat confdefs.h >>conftest.$ac_ext
14147cat >>conftest.$ac_ext <<_ACEOF
14148/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014149#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014150int
14151main ()
14152{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014153gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014154 ;
14155 return 0;
14156}
14157_ACEOF
14158rm -f conftest.$ac_objext conftest$ac_exeext
14159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14160 (eval $ac_link) 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag"
14168 || test ! -s conftest.err'
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest$ac_exeext'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 echo "$as_me:$LINENO: result: gettext() works" >&5
14181echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014182else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014183 echo "$as_me: failed program was:" >&5
14184sed 's/^/| /' conftest.$ac_ext >&5
14185
14186olibs=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014187 LIBS="$LIBS -lintl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014188 cat >conftest.$ac_ext <<_ACEOF
14189/* confdefs.h. */
14190_ACEOF
14191cat confdefs.h >>conftest.$ac_ext
14192cat >>conftest.$ac_ext <<_ACEOF
14193/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014194#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014195int
14196main ()
14197{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014198gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014199 ;
14200 return 0;
14201}
14202_ACEOF
14203rm -f conftest.$ac_objext conftest$ac_exeext
14204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14205 (eval $ac_link) 2>conftest.er1
14206 ac_status=$?
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -f conftest.er1
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try='test -z "$ac_c_werror_flag"
14213 || test ! -s conftest.err'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; } &&
14219 { ac_try='test -s conftest$ac_exeext'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
14225 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14226echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014227else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014228 echo "$as_me: failed program was:" >&5
14229sed 's/^/| /' conftest.$ac_ext >&5
14230
14231echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14232echo "${ECHO_T}gettext() doesn't work" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014233 LIBS=$olibs
14234fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014235rm -f conftest.err conftest.$ac_objext \
14236 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014237fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014238rm -f conftest.err conftest.$ac_objext \
14239 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014240 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014241 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14242echo "${ECHO_T}msgfmt not found - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014243 fi
14244 if test $have_gettext = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014245 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014246#define HAVE_GETTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014247_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014248
14249 MAKEMO=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014250
14251
14252for ac_func in bind_textdomain_codeset
Bram Moolenaar071d4272004-06-13 20:20:40 +000014253do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014254as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14255echo "$as_me:$LINENO: checking for $ac_func" >&5
14256echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14257if eval "test \"\${$as_ac_var+set}\" = set"; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014259else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014260 cat >conftest.$ac_ext <<_ACEOF
14261/* confdefs.h. */
14262_ACEOF
14263cat confdefs.h >>conftest.$ac_ext
14264cat >>conftest.$ac_ext <<_ACEOF
14265/* end confdefs.h. */
14266/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14268#define $ac_func innocuous_$ac_func
14269
Bram Moolenaar071d4272004-06-13 20:20:40 +000014270/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014271 which can conflict with char $ac_func (); below.
14272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14273 <limits.h> exists even on freestanding compilers. */
14274
14275#ifdef __STDC__
14276# include <limits.h>
14277#else
14278# include <assert.h>
14279#endif
14280
14281#undef $ac_func
14282
Bram Moolenaar071d4272004-06-13 20:20:40 +000014283/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014284#ifdef __cplusplus
14285extern "C"
14286{
14287#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014288/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014289 builtin and then its argument prototype would still apply. */
14290char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000014291/* The GNU C library defines this for functions which it implements
14292 to always fail with ENOSYS. Some functions are actually named
14293 something starting with __ and the normal name is an alias. */
14294#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14295choke me
14296#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014297char (*f) () = $ac_func;
14298#endif
14299#ifdef __cplusplus
14300}
Bram Moolenaar071d4272004-06-13 20:20:40 +000014301#endif
14302
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014303int
14304main ()
14305{
14306return f != $ac_func;
14307 ;
14308 return 0;
14309}
14310_ACEOF
14311rm -f conftest.$ac_objext conftest$ac_exeext
14312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313 (eval $ac_link) 2>conftest.er1
14314 ac_status=$?
14315 grep -v '^ *+' conftest.er1 >conftest.err
14316 rm -f conftest.er1
14317 cat conftest.err >&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try='test -z "$ac_c_werror_flag"
14321 || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest$ac_exeext'
14328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014334else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014335 echo "$as_me: failed program was:" >&5
14336sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014337
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014338eval "$as_ac_var=no"
14339fi
14340rm -f conftest.err conftest.$ac_objext \
14341 conftest$ac_exeext conftest.$ac_ext
14342fi
14343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14344echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14345if test `eval echo '${'$as_ac_var'}'` = yes; then
14346 cat >>confdefs.h <<_ACEOF
14347#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14348_ACEOF
14349
Bram Moolenaar071d4272004-06-13 20:20:40 +000014350fi
14351done
14352
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014353 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14354echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14355 cat >conftest.$ac_ext <<_ACEOF
14356/* confdefs.h. */
14357_ACEOF
14358cat confdefs.h >>conftest.$ac_ext
14359cat >>conftest.$ac_ext <<_ACEOF
14360/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014361#include <libintl.h>
14362 extern int _nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014363int
14364main ()
14365{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014366++_nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014367 ;
14368 return 0;
14369}
14370_ACEOF
14371rm -f conftest.$ac_objext conftest$ac_exeext
14372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14373 (eval $ac_link) 2>conftest.er1
14374 ac_status=$?
14375 grep -v '^ *+' conftest.er1 >conftest.err
14376 rm -f conftest.er1
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } &&
14380 { ac_try='test -z "$ac_c_werror_flag"
14381 || test ! -s conftest.err'
14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383 (eval $ac_try) 2>&5
14384 ac_status=$?
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); }; } &&
14387 { ac_try='test -s conftest$ac_exeext'
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; }; then
14393 echo "$as_me:$LINENO: result: yes" >&5
14394echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014395#define HAVE_NL_MSG_CAT_CNTR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014396_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014397
14398else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014399 echo "$as_me: failed program was:" >&5
14400sed 's/^/| /' conftest.$ac_ext >&5
14401
14402echo "$as_me:$LINENO: result: no" >&5
14403echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014404fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014405rm -f conftest.err conftest.$ac_objext \
14406 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014407 fi
14408 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014409 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14410echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014411 fi
14412else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014413 echo "$as_me:$LINENO: result: yes" >&5
14414echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014415fi
14416
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014417if test "${ac_cv_header_dlfcn_h+set}" = set; then
14418 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14419echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14420if test "${ac_cv_header_dlfcn_h+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422fi
14423echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14424echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014425else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014426 # Is the header compilable?
14427echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14428echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14429cat >conftest.$ac_ext <<_ACEOF
14430/* confdefs.h. */
14431_ACEOF
14432cat confdefs.h >>conftest.$ac_ext
14433cat >>conftest.$ac_ext <<_ACEOF
14434/* end confdefs.h. */
14435$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014436#include <dlfcn.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014437_ACEOF
14438rm -f conftest.$ac_objext
14439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440 (eval $ac_compile) 2>conftest.er1
14441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -z "$ac_c_werror_flag"
14448 || test ! -s conftest.err'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest.$ac_objext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014461else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014462 echo "$as_me: failed program was:" >&5
14463sed 's/^/| /' conftest.$ac_ext >&5
14464
14465ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014466fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14468echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14469echo "${ECHO_T}$ac_header_compiler" >&6
14470
14471# Is the header present?
14472echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14473echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14474cat >conftest.$ac_ext <<_ACEOF
14475/* confdefs.h. */
14476_ACEOF
14477cat confdefs.h >>conftest.$ac_ext
14478cat >>conftest.$ac_ext <<_ACEOF
14479/* end confdefs.h. */
14480#include <dlfcn.h>
14481_ACEOF
14482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14484 ac_status=$?
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } >/dev/null; then
14490 if test -s conftest.err; then
14491 ac_cpp_err=$ac_c_preproc_warn_flag
14492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14493 else
14494 ac_cpp_err=
14495 fi
14496else
14497 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014498fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014499if test -z "$ac_cpp_err"; then
14500 ac_header_preproc=yes
14501else
14502 echo "$as_me: failed program was:" >&5
14503sed 's/^/| /' conftest.$ac_ext >&5
14504
14505 ac_header_preproc=no
14506fi
14507rm -f conftest.err conftest.$ac_ext
14508echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14509echo "${ECHO_T}$ac_header_preproc" >&6
14510
14511# So? What about this header?
14512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14513 yes:no: )
14514 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14515echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14517echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14518 ac_header_preproc=yes
14519 ;;
14520 no:yes:* )
14521 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14522echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14523 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14524echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14525 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14526echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14528echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14530echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14532echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14533 (
14534 cat <<\_ASBOX
14535## ------------------------------------------ ##
14536## Report this to the AC_PACKAGE_NAME lists. ##
14537## ------------------------------------------ ##
14538_ASBOX
14539 ) |
14540 sed "s/^/$as_me: WARNING: /" >&2
14541 ;;
14542esac
14543echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14544echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14545if test "${ac_cv_header_dlfcn_h+set}" = set; then
14546 echo $ECHO_N "(cached) $ECHO_C" >&6
14547else
14548 ac_cv_header_dlfcn_h=$ac_header_preproc
14549fi
14550echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14551echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14552
14553fi
14554if test $ac_cv_header_dlfcn_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014555 DLL=dlfcn.h
14556else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014557 if test "${ac_cv_header_dl_h+set}" = set; then
14558 echo "$as_me:$LINENO: checking for dl.h" >&5
14559echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14560if test "${ac_cv_header_dl_h+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562fi
14563echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14564echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014565else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014566 # Is the header compilable?
14567echo "$as_me:$LINENO: checking dl.h usability" >&5
14568echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14569cat >conftest.$ac_ext <<_ACEOF
14570/* confdefs.h. */
14571_ACEOF
14572cat confdefs.h >>conftest.$ac_ext
14573cat >>conftest.$ac_ext <<_ACEOF
14574/* end confdefs.h. */
14575$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014576#include <dl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014577_ACEOF
14578rm -f conftest.$ac_objext
14579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14580 (eval $ac_compile) 2>conftest.er1
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -z "$ac_c_werror_flag"
14588 || test ! -s conftest.err'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; } &&
14594 { ac_try='test -s conftest.$ac_objext'
14595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596 (eval $ac_try) 2>&5
14597 ac_status=$?
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); }; }; then
14600 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014601else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014602 echo "$as_me: failed program was:" >&5
14603sed 's/^/| /' conftest.$ac_ext >&5
14604
14605ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014606fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14609echo "${ECHO_T}$ac_header_compiler" >&6
14610
14611# Is the header present?
14612echo "$as_me:$LINENO: checking dl.h presence" >&5
14613echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14614cat >conftest.$ac_ext <<_ACEOF
14615/* confdefs.h. */
14616_ACEOF
14617cat confdefs.h >>conftest.$ac_ext
14618cat >>conftest.$ac_ext <<_ACEOF
14619/* end confdefs.h. */
14620#include <dl.h>
14621_ACEOF
14622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14624 ac_status=$?
14625 grep -v '^ *+' conftest.er1 >conftest.err
14626 rm -f conftest.er1
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } >/dev/null; then
14630 if test -s conftest.err; then
14631 ac_cpp_err=$ac_c_preproc_warn_flag
14632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14633 else
14634 ac_cpp_err=
14635 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014636else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014637 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014638fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014639if test -z "$ac_cpp_err"; then
14640 ac_header_preproc=yes
14641else
14642 echo "$as_me: failed program was:" >&5
14643sed 's/^/| /' conftest.$ac_ext >&5
14644
14645 ac_header_preproc=no
14646fi
14647rm -f conftest.err conftest.$ac_ext
14648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14649echo "${ECHO_T}$ac_header_preproc" >&6
14650
14651# So? What about this header?
14652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14653 yes:no: )
14654 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14655echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14656 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14657echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14658 ac_header_preproc=yes
14659 ;;
14660 no:yes:* )
14661 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14662echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14663 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14664echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14665 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14666echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14667 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14668echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14669 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14670echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14671 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14672echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14673 (
14674 cat <<\_ASBOX
14675## ------------------------------------------ ##
14676## Report this to the AC_PACKAGE_NAME lists. ##
14677## ------------------------------------------ ##
14678_ASBOX
14679 ) |
14680 sed "s/^/$as_me: WARNING: /" >&2
14681 ;;
14682esac
14683echo "$as_me:$LINENO: checking for dl.h" >&5
14684echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14685if test "${ac_cv_header_dl_h+set}" = set; then
14686 echo $ECHO_N "(cached) $ECHO_C" >&6
14687else
14688 ac_cv_header_dl_h=$ac_header_preproc
14689fi
14690echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14691echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014692
14693fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014694if test $ac_cv_header_dl_h = yes; then
14695 DLL=dl.h
14696fi
14697
14698
14699fi
14700
Bram Moolenaar071d4272004-06-13 20:20:40 +000014701
14702if test x${DLL} = xdlfcn.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014703
14704cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014705#define HAVE_DLFCN_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014706_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014707
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014708 echo "$as_me:$LINENO: checking for dlopen()" >&5
14709echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14710 cat >conftest.$ac_ext <<_ACEOF
14711/* confdefs.h. */
14712_ACEOF
14713cat confdefs.h >>conftest.$ac_ext
14714cat >>conftest.$ac_ext <<_ACEOF
14715/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014716
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014717int
14718main ()
14719{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014720
14721 extern void* dlopen();
14722 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014723
14724 ;
14725 return 0;
14726}
14727_ACEOF
14728rm -f conftest.$ac_objext conftest$ac_exeext
14729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14730 (eval $ac_link) 2>conftest.er1
14731 ac_status=$?
14732 grep -v '^ *+' conftest.er1 >conftest.err
14733 rm -f conftest.er1
14734 cat conftest.err >&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } &&
14737 { ac_try='test -z "$ac_c_werror_flag"
14738 || test ! -s conftest.err'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; } &&
14744 { ac_try='test -s conftest$ac_exeext'
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 echo "$as_me:$LINENO: result: yes" >&5
14751echo "${ECHO_T}yes" >&6;
14752
14753cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014754#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014755_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014756
14757else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014758 echo "$as_me: failed program was:" >&5
14759sed 's/^/| /' conftest.$ac_ext >&5
14760
14761echo "$as_me:$LINENO: result: no" >&5
14762echo "${ECHO_T}no" >&6;
14763 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14764echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014765 olibs=$LIBS
14766 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014767 cat >conftest.$ac_ext <<_ACEOF
14768/* confdefs.h. */
14769_ACEOF
14770cat confdefs.h >>conftest.$ac_ext
14771cat >>conftest.$ac_ext <<_ACEOF
14772/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014773
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014774int
14775main ()
14776{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014777
14778 extern void* dlopen();
14779 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014780
14781 ;
14782 return 0;
14783}
14784_ACEOF
14785rm -f conftest.$ac_objext conftest$ac_exeext
14786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14787 (eval $ac_link) 2>conftest.er1
14788 ac_status=$?
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -z "$ac_c_werror_flag"
14795 || test ! -s conftest.err'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14798 ac_status=$?
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest$ac_exeext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 echo "$as_me:$LINENO: result: yes" >&5
14808echo "${ECHO_T}yes" >&6;
14809
14810cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014811#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014812_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014813
14814else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818echo "$as_me:$LINENO: result: no" >&5
14819echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014820 LIBS=$olibs
14821fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014822rm -f conftest.err conftest.$ac_objext \
14823 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014824fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014825rm -f conftest.err conftest.$ac_objext \
14826 conftest$ac_exeext conftest.$ac_ext
14827 echo "$as_me:$LINENO: checking for dlsym()" >&5
14828echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14829 cat >conftest.$ac_ext <<_ACEOF
14830/* confdefs.h. */
14831_ACEOF
14832cat confdefs.h >>conftest.$ac_ext
14833cat >>conftest.$ac_ext <<_ACEOF
14834/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014835
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014836int
14837main ()
14838{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014839
14840 extern void* dlsym();
14841 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014842
14843 ;
14844 return 0;
14845}
14846_ACEOF
14847rm -f conftest.$ac_objext conftest$ac_exeext
14848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14849 (eval $ac_link) 2>conftest.er1
14850 ac_status=$?
14851 grep -v '^ *+' conftest.er1 >conftest.err
14852 rm -f conftest.er1
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_c_werror_flag"
14857 || test ! -s conftest.err'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; } &&
14863 { ac_try='test -s conftest$ac_exeext'
14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14866 ac_status=$?
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; }; then
14869 echo "$as_me:$LINENO: result: yes" >&5
14870echo "${ECHO_T}yes" >&6;
14871
14872cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014873#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014874_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014875
14876else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014877 echo "$as_me: failed program was:" >&5
14878sed 's/^/| /' conftest.$ac_ext >&5
14879
14880echo "$as_me:$LINENO: result: no" >&5
14881echo "${ECHO_T}no" >&6;
14882 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
14883echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014884 olibs=$LIBS
14885 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014886 cat >conftest.$ac_ext <<_ACEOF
14887/* confdefs.h. */
14888_ACEOF
14889cat confdefs.h >>conftest.$ac_ext
14890cat >>conftest.$ac_ext <<_ACEOF
14891/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014892
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014893int
14894main ()
14895{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014896
14897 extern void* dlsym();
14898 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014899
14900 ;
14901 return 0;
14902}
14903_ACEOF
14904rm -f conftest.$ac_objext conftest$ac_exeext
14905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14906 (eval $ac_link) 2>conftest.er1
14907 ac_status=$?
14908 grep -v '^ *+' conftest.er1 >conftest.err
14909 rm -f conftest.er1
14910 cat conftest.err >&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
14913 { ac_try='test -z "$ac_c_werror_flag"
14914 || test ! -s conftest.err'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; } &&
14920 { ac_try='test -s conftest$ac_exeext'
14921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14923 ac_status=$?
14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
14926 echo "$as_me:$LINENO: result: yes" >&5
14927echo "${ECHO_T}yes" >&6;
14928
14929cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014930#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014931_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014932
14933else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014934 echo "$as_me: failed program was:" >&5
14935sed 's/^/| /' conftest.$ac_ext >&5
14936
14937echo "$as_me:$LINENO: result: no" >&5
14938echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014939 LIBS=$olibs
14940fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014941rm -f conftest.err conftest.$ac_objext \
14942 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014943fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014944rm -f conftest.err conftest.$ac_objext \
14945 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014946elif test x${DLL} = xdl.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014947
14948cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014949#define HAVE_DL_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014950_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014951
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014952 echo "$as_me:$LINENO: checking for shl_load()" >&5
14953echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
14954 cat >conftest.$ac_ext <<_ACEOF
14955/* confdefs.h. */
14956_ACEOF
14957cat confdefs.h >>conftest.$ac_ext
14958cat >>conftest.$ac_ext <<_ACEOF
14959/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014960
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014961int
14962main ()
14963{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014964
14965 extern void* shl_load();
14966 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014967
14968 ;
14969 return 0;
14970}
14971_ACEOF
14972rm -f conftest.$ac_objext conftest$ac_exeext
14973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14974 (eval $ac_link) 2>conftest.er1
14975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } &&
14981 { ac_try='test -z "$ac_c_werror_flag"
14982 || test ! -s conftest.err'
14983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984 (eval $ac_try) 2>&5
14985 ac_status=$?
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; } &&
14988 { ac_try='test -s conftest$ac_exeext'
14989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14990 (eval $ac_try) 2>&5
14991 ac_status=$?
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); }; }; then
14994 echo "$as_me:$LINENO: result: yes" >&5
14995echo "${ECHO_T}yes" >&6;
14996
14997cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014998#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014999_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015000
15001else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015002 echo "$as_me: failed program was:" >&5
15003sed 's/^/| /' conftest.$ac_ext >&5
15004
15005echo "$as_me:$LINENO: result: no" >&5
15006echo "${ECHO_T}no" >&6;
15007 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15008echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015009 olibs=$LIBS
15010 LIBS="$LIBS -ldld"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015011 cat >conftest.$ac_ext <<_ACEOF
15012/* confdefs.h. */
15013_ACEOF
15014cat confdefs.h >>conftest.$ac_ext
15015cat >>conftest.$ac_ext <<_ACEOF
15016/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015017
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015018int
15019main ()
15020{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015021
15022 extern void* shl_load();
15023 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015024
15025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext conftest$ac_exeext
15030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15031 (eval $ac_link) 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15051 echo "$as_me:$LINENO: result: yes" >&5
15052echo "${ECHO_T}yes" >&6;
15053
15054cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015055#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015056_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015057
15058else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015059 echo "$as_me: failed program was:" >&5
15060sed 's/^/| /' conftest.$ac_ext >&5
15061
15062echo "$as_me:$LINENO: result: no" >&5
15063echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015064 LIBS=$olibs
15065fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015066rm -f conftest.err conftest.$ac_objext \
15067 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015068fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015069rm -f conftest.err conftest.$ac_objext \
15070 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015071fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015072
15073for ac_header in setjmp.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000015074do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15076if eval "test \"\${$as_ac_Header+set}\" = set"; then
15077 echo "$as_me:$LINENO: checking for $ac_header" >&5
15078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15079if eval "test \"\${$as_ac_Header+set}\" = set"; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015081fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015084else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015085 # Is the header compilable?
15086echo "$as_me:$LINENO: checking $ac_header usability" >&5
15087echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15088cat >conftest.$ac_ext <<_ACEOF
15089/* confdefs.h. */
15090_ACEOF
15091cat confdefs.h >>conftest.$ac_ext
15092cat >>conftest.$ac_ext <<_ACEOF
15093/* end confdefs.h. */
15094$ac_includes_default
15095#include <$ac_header>
15096_ACEOF
15097rm -f conftest.$ac_objext
15098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15099 (eval $ac_compile) 2>conftest.er1
15100 ac_status=$?
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try='test -z "$ac_c_werror_flag"
15107 || test ! -s conftest.err'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; } &&
15113 { ac_try='test -s conftest.$ac_objext'
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15119 ac_header_compiler=yes
15120else
15121 echo "$as_me: failed program was:" >&5
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
15124ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015125fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15127echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15128echo "${ECHO_T}$ac_header_compiler" >&6
15129
15130# Is the header present?
15131echo "$as_me:$LINENO: checking $ac_header presence" >&5
15132echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15133cat >conftest.$ac_ext <<_ACEOF
15134/* confdefs.h. */
15135_ACEOF
15136cat confdefs.h >>conftest.$ac_ext
15137cat >>conftest.$ac_ext <<_ACEOF
15138/* end confdefs.h. */
15139#include <$ac_header>
15140_ACEOF
15141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15143 ac_status=$?
15144 grep -v '^ *+' conftest.er1 >conftest.err
15145 rm -f conftest.er1
15146 cat conftest.err >&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } >/dev/null; then
15149 if test -s conftest.err; then
15150 ac_cpp_err=$ac_c_preproc_warn_flag
15151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15152 else
15153 ac_cpp_err=
15154 fi
15155else
15156 ac_cpp_err=yes
15157fi
15158if test -z "$ac_cpp_err"; then
15159 ac_header_preproc=yes
15160else
15161 echo "$as_me: failed program was:" >&5
15162sed 's/^/| /' conftest.$ac_ext >&5
15163
15164 ac_header_preproc=no
15165fi
15166rm -f conftest.err conftest.$ac_ext
15167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15168echo "${ECHO_T}$ac_header_preproc" >&6
15169
15170# So? What about this header?
15171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15172 yes:no: )
15173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15174echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15176echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15177 ac_header_preproc=yes
15178 ;;
15179 no:yes:* )
15180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15181echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15183echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15185echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15187echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15189echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15191echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15192 (
15193 cat <<\_ASBOX
15194## ------------------------------------------ ##
15195## Report this to the AC_PACKAGE_NAME lists. ##
15196## ------------------------------------------ ##
15197_ASBOX
15198 ) |
15199 sed "s/^/$as_me: WARNING: /" >&2
15200 ;;
15201esac
15202echo "$as_me:$LINENO: checking for $ac_header" >&5
15203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15204if eval "test \"\${$as_ac_Header+set}\" = set"; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15206else
15207 eval "$as_ac_Header=\$ac_header_preproc"
15208fi
15209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15211
15212fi
15213if test `eval echo '${'$as_ac_Header'}'` = yes; then
15214 cat >>confdefs.h <<_ACEOF
15215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15216_ACEOF
15217
15218fi
15219
Bram Moolenaar071d4272004-06-13 20:20:40 +000015220done
15221
15222
15223if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15224 if echo $LIBS | grep -e '-ldl' >/dev/null; then
15225 LIBS=`echo $LIBS | sed s/-ldl//`
15226 PERL_LIBS="$PERL_LIBS -ldl"
15227 fi
15228fi
15229
15230if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15231 && test "x$GUITYPE" != "xCARBONGUI"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015232 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15233echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015234 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
15235 || test "x$features" = "xhuge"; then
15236 LIBS="$LIBS -framework Carbon"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015237 echo "$as_me:$LINENO: result: yes" >&5
15238echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015239 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015240 echo "$as_me:$LINENO: result: no" >&5
15241echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015242 fi
15243fi
Bram Moolenaare224ffa2006-03-01 00:01:28 +000015244if test "x$MACARCH" = "xboth"; then
15245 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15246fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015247
Bram Moolenaara5792f52005-11-23 21:25:05 +000015248echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15249echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015250DEPEND_CFLAGS_FILTER=
15251if test "$GCC" = yes; then
Bram Moolenaar32466aa2006-02-24 23:53:04 +000015252 gccmajor=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\(darwin.[^0-9]*\)*\([1-9]\)\.[0-9].*$/\2/g'`
Bram Moolenaarf740b292006-02-16 22:11:02 +000015253 if test "$gccmajor" -gt "2"; then
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015254 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15255 fi
15256fi
Bram Moolenaara5792f52005-11-23 21:25:05 +000015257if test "$DEPEND_CFLAGS_FILTER" = ""; then
15258 echo "$as_me:$LINENO: result: no" >&5
15259echo "${ECHO_T}no" >&6
15260else
15261 echo "$as_me:$LINENO: result: yes" >&5
15262echo "${ECHO_T}yes" >&6
15263fi
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015264
Bram Moolenaar071d4272004-06-13 20:20:40 +000015265
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015266 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15267cat >confcache <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015268# This file is a shell script that caches the results of configure
15269# tests run on this system so they can be shared between configure
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015270# scripts and configure runs, see configure's option --config-cache.
15271# It is not useful on other systems. If it contains results you don't
15272# want to keep, you may remove or edit it.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015273#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015274# config.status only pays attention to the cache file if you give it
15275# the --recheck option to rerun configure.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015276#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015277# `ac_cv_env_foo' variables (set or unset) will be overridden when
15278# loading this file, other *unset* `ac_cv_foo' will be assigned the
15279# following values.
15280
15281_ACEOF
15282
Bram Moolenaar071d4272004-06-13 20:20:40 +000015283# The following way of writing the cache mishandles newlines in values,
15284# but we know of no workaround that is simple, portable, and efficient.
15285# So, don't put newlines in cache variables' values.
15286# Ultrix sh set writes to stderr and can't be redirected directly,
15287# and sets the high bit in the cache file unless we assign to the vars.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015288{
15289 (set) 2>&1 |
15290 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15291 *ac_space=\ *)
15292 # `set' does not quote correctly, so add quotes (double-quote
15293 # substitution turns \\\\ into \\, and sed turns \\ into \).
15294 sed -n \
15295 "s/'/'\\\\''/g;
15296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15297 ;;
15298 *)
15299 # `set' quotes correctly as required by POSIX, so do not add quotes.
15300 sed -n \
15301 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15302 ;;
15303 esac;
15304} |
15305 sed '
15306 t clear
15307 : clear
15308 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15309 t end
15310 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15311 : end' >>confcache
15312if diff $cache_file confcache >/dev/null 2>&1; then :; else
Bram Moolenaar071d4272004-06-13 20:20:40 +000015313 if test -w $cache_file; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015314 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15315 cat confcache >$cache_file
Bram Moolenaar071d4272004-06-13 20:20:40 +000015316 else
15317 echo "not updating unwritable cache $cache_file"
15318 fi
15319fi
15320rm -f confcache
15321
Bram Moolenaar071d4272004-06-13 20:20:40 +000015322test "x$prefix" = xNONE && prefix=$ac_default_prefix
15323# Let make expand exec_prefix.
15324test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15325
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015326# VPATH may cause trouble with some makes, so we remove $(srcdir),
15327# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15328# trailing colons and then remove the whole line if VPATH becomes empty
15329# (actually we leave an empty line to preserve line numbers).
Bram Moolenaar071d4272004-06-13 20:20:40 +000015330if test "x$srcdir" = x.; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015331 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15332s/:*\$(srcdir):*/:/;
15333s/:*\${srcdir}:*/:/;
15334s/:*@srcdir@:*/:/;
15335s/^\([^=]*=[ ]*\):*/\1/;
15336s/:*$//;
15337s/^[^=]*=[ ]*$//;
15338}'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015339fi
15340
Bram Moolenaar071d4272004-06-13 20:20:40 +000015341DEFS=-DHAVE_CONFIG_H
15342
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015343ac_libobjs=
15344ac_ltlibobjs=
15345for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15346 # 1. Remove the extension, and $U if already installed.
15347 ac_i=`echo "$ac_i" |
15348 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15349 # 2. Add them.
15350 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15351 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15352done
15353LIBOBJS=$ac_libobjs
15354
15355LTLIBOBJS=$ac_ltlibobjs
15356
15357
15358
Bram Moolenaar071d4272004-06-13 20:20:40 +000015359: ${CONFIG_STATUS=./config.status}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015360ac_clean_files_save=$ac_clean_files
15361ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15362{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15363echo "$as_me: creating $CONFIG_STATUS" >&6;}
15364cat >$CONFIG_STATUS <<_ACEOF
15365#! $SHELL
15366# Generated by $as_me.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015367# Run this file to recreate the current configuration.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015368# Compiler output produced by configure, useful for debugging
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015369# configure, is in config.log if it exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015370
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015371debug=false
15372ac_cs_recheck=false
15373ac_cs_silent=false
15374SHELL=\${CONFIG_SHELL-$SHELL}
15375_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015376
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015377cat >>$CONFIG_STATUS <<\_ACEOF
15378## --------------------- ##
15379## M4sh Initialization. ##
15380## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000015381
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015382# Be Bourne compatible
15383if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15384 emulate sh
15385 NULLCMD=:
15386 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15387 # is contrary to our usage. Disable this feature.
15388 alias -g '${1+"$@"}'='"$@"'
15389elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15390 set -o posix
Bram Moolenaar071d4272004-06-13 20:20:40 +000015391fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015392DUALCASE=1; export DUALCASE # for MKS sh
Bram Moolenaar071d4272004-06-13 20:20:40 +000015393
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015394# Support unset when possible.
15395if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15396 as_unset=unset
15397else
15398 as_unset=false
15399fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015400
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015401
15402# Work around bugs in pre-3.0 UWIN ksh.
15403$as_unset ENV MAIL MAILPATH
15404PS1='$ '
15405PS2='> '
15406PS4='+ '
15407
15408# NLS nuisances.
15409for as_var in \
15410 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15411 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15412 LC_TELEPHONE LC_TIME
15413do
15414 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15415 eval $as_var=C; export $as_var
15416 else
15417 $as_unset $as_var
15418 fi
15419done
15420
15421# Required to use basename.
15422if expr a : '\(a\)' >/dev/null 2>&1; then
15423 as_expr=expr
15424else
15425 as_expr=false
15426fi
15427
15428if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15429 as_basename=basename
15430else
15431 as_basename=false
15432fi
15433
15434
15435# Name of the executable.
15436as_me=`$as_basename "$0" ||
15437$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15438 X"$0" : 'X\(//\)$' \| \
15439 X"$0" : 'X\(/\)$' \| \
15440 . : '\(.\)' 2>/dev/null ||
15441echo X/"$0" |
15442 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15443 /^X\/\(\/\/\)$/{ s//\1/; q; }
15444 /^X\/\(\/\).*/{ s//\1/; q; }
15445 s/.*/./; q'`
15446
15447
15448# PATH needs CR, and LINENO needs CR and PATH.
15449# Avoid depending upon Character Ranges.
15450as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15451as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15452as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15453as_cr_digits='0123456789'
15454as_cr_alnum=$as_cr_Letters$as_cr_digits
15455
15456# The user is always right.
15457if test "${PATH_SEPARATOR+set}" != set; then
15458 echo "#! /bin/sh" >conf$$.sh
15459 echo "exit 0" >>conf$$.sh
15460 chmod +x conf$$.sh
15461 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15462 PATH_SEPARATOR=';'
15463 else
15464 PATH_SEPARATOR=:
15465 fi
15466 rm -f conf$$.sh
15467fi
15468
15469
15470 as_lineno_1=$LINENO
15471 as_lineno_2=$LINENO
15472 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15473 test "x$as_lineno_1" != "x$as_lineno_2" &&
15474 test "x$as_lineno_3" = "x$as_lineno_2" || {
15475 # Find who we are. Look in the path if we contain no path at all
15476 # relative or not.
15477 case $0 in
15478 *[\\/]* ) as_myself=$0 ;;
15479 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15480for as_dir in $PATH
15481do
15482 IFS=$as_save_IFS
15483 test -z "$as_dir" && as_dir=.
15484 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15485done
15486
15487 ;;
15488 esac
15489 # We did not find ourselves, most probably we were run as `sh COMMAND'
15490 # in which case we are not to be found in the path.
15491 if test "x$as_myself" = x; then
15492 as_myself=$0
15493 fi
15494 if test ! -f "$as_myself"; then
15495 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15496echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15497 { (exit 1); exit 1; }; }
15498 fi
15499 case $CONFIG_SHELL in
15500 '')
15501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15502for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15503do
15504 IFS=$as_save_IFS
15505 test -z "$as_dir" && as_dir=.
15506 for as_base in sh bash ksh sh5; do
15507 case $as_dir in
15508 /*)
15509 if ("$as_dir/$as_base" -c '
15510 as_lineno_1=$LINENO
15511 as_lineno_2=$LINENO
15512 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15513 test "x$as_lineno_1" != "x$as_lineno_2" &&
15514 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15515 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15516 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15517 CONFIG_SHELL=$as_dir/$as_base
15518 export CONFIG_SHELL
15519 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15520 fi;;
15521 esac
15522 done
15523done
15524;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015525 esac
15526
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015527 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15528 # uniformly replaced by the line number. The first 'sed' inserts a
15529 # line-number line before each line; the second 'sed' does the real
15530 # work. The second script uses 'N' to pair each line-number line
15531 # with the numbered line, and appends trailing '-' during
15532 # substitution so that $LINENO is not a special case at line end.
15533 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15534 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15535 sed '=' <$as_myself |
15536 sed '
15537 N
15538 s,$,-,
15539 : loop
15540 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15541 t loop
15542 s,-$,,
15543 s,^['$as_cr_digits']*\n,,
15544 ' >$as_me.lineno &&
15545 chmod +x $as_me.lineno ||
15546 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15547echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15548 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000015549
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015550 # Don't try to exec as it changes $[0], causing all sort of problems
15551 # (the dirname of $[0] is not the place where we might find the
15552 # original and so on. Autoconf is especially sensible to this).
15553 . ./$as_me.lineno
15554 # Exit status is that of the last command.
15555 exit
15556}
15557
15558
15559case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15560 *c*,-n*) ECHO_N= ECHO_C='
15561' ECHO_T=' ' ;;
15562 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15563 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15564esac
15565
15566if expr a : '\(a\)' >/dev/null 2>&1; then
15567 as_expr=expr
15568else
15569 as_expr=false
15570fi
15571
15572rm -f conf$$ conf$$.exe conf$$.file
15573echo >conf$$.file
15574if ln -s conf$$.file conf$$ 2>/dev/null; then
15575 # We could just check for DJGPP; but this test a) works b) is more generic
15576 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15577 if test -f conf$$.exe; then
15578 # Don't use ln at all; we don't have any links
15579 as_ln_s='cp -p'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015580 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015581 as_ln_s='ln -s'
15582 fi
15583elif ln conf$$.file conf$$ 2>/dev/null; then
15584 as_ln_s=ln
15585else
15586 as_ln_s='cp -p'
15587fi
15588rm -f conf$$ conf$$.exe conf$$.file
15589
15590if mkdir -p . 2>/dev/null; then
15591 as_mkdir_p=:
15592else
15593 test -d ./-p && rmdir ./-p
15594 as_mkdir_p=false
15595fi
15596
15597as_executable_p="test -f"
15598
15599# Sed expression to map a string onto a valid CPP name.
15600as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15601
15602# Sed expression to map a string onto a valid variable name.
15603as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15604
15605
15606# IFS
15607# We need space, tab and new line, in precisely that order.
15608as_nl='
15609'
15610IFS=" $as_nl"
15611
15612# CDPATH.
15613$as_unset CDPATH
15614
15615exec 6>&1
15616
15617# Open the log real soon, to keep \$[0] and so on meaningful, and to
15618# report actual input values of CONFIG_FILES etc. instead of their
15619# values after options handling. Logging --version etc. is OK.
Bram Moolenaarc7453f52006-02-10 23:20:28 +000015620exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015621{
15622 echo
15623 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15624## Running $as_me. ##
15625_ASBOX
15626} >&5
15627cat >&5 <<_CSEOF
15628
15629This file was extended by $as_me, which was
15630generated by GNU Autoconf 2.59. Invocation command line was
15631
15632 CONFIG_FILES = $CONFIG_FILES
15633 CONFIG_HEADERS = $CONFIG_HEADERS
15634 CONFIG_LINKS = $CONFIG_LINKS
15635 CONFIG_COMMANDS = $CONFIG_COMMANDS
15636 $ $0 $@
15637
15638_CSEOF
15639echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15640echo >&5
15641_ACEOF
15642
15643# Files that config.status was made for.
15644if test -n "$ac_config_files"; then
15645 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15646fi
15647
15648if test -n "$ac_config_headers"; then
15649 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15650fi
15651
15652if test -n "$ac_config_links"; then
15653 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15654fi
15655
15656if test -n "$ac_config_commands"; then
15657 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15658fi
15659
15660cat >>$CONFIG_STATUS <<\_ACEOF
15661
15662ac_cs_usage="\
15663\`$as_me' instantiates files from templates according to the
15664current configuration.
15665
15666Usage: $0 [OPTIONS] [FILE]...
15667
15668 -h, --help print this help, then exit
15669 -V, --version print version number, then exit
15670 -q, --quiet do not print progress messages
15671 -d, --debug don't remove temporary files
15672 --recheck update $as_me by reconfiguring in the same conditions
15673 --file=FILE[:TEMPLATE]
15674 instantiate the configuration file FILE
15675 --header=FILE[:TEMPLATE]
15676 instantiate the configuration header FILE
15677
15678Configuration files:
15679$config_files
15680
15681Configuration headers:
15682$config_headers
15683
15684Report bugs to <bug-autoconf@gnu.org>."
15685_ACEOF
15686
15687cat >>$CONFIG_STATUS <<_ACEOF
15688ac_cs_version="\\
15689config.status
15690configured by $0, generated by GNU Autoconf 2.59,
15691 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15692
15693Copyright (C) 2003 Free Software Foundation, Inc.
15694This config.status script is free software; the Free Software Foundation
15695gives unlimited permission to copy, distribute and modify it."
15696srcdir=$srcdir
15697_ACEOF
15698
15699cat >>$CONFIG_STATUS <<\_ACEOF
15700# If no file are specified by the user, then we need to provide default
15701# value. By we need to know if files were specified by the user.
15702ac_need_defaults=:
15703while test $# != 0
15704do
15705 case $1 in
15706 --*=*)
15707 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15708 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15709 ac_shift=:
15710 ;;
15711 -*)
15712 ac_option=$1
15713 ac_optarg=$2
15714 ac_shift=shift
15715 ;;
15716 *) # This is not an option, so the user has probably given explicit
15717 # arguments.
15718 ac_option=$1
15719 ac_need_defaults=false;;
15720 esac
15721
15722 case $ac_option in
15723 # Handling of the options.
15724_ACEOF
15725cat >>$CONFIG_STATUS <<\_ACEOF
15726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15727 ac_cs_recheck=: ;;
15728 --version | --vers* | -V )
15729 echo "$ac_cs_version"; exit 0 ;;
15730 --he | --h)
15731 # Conflict between --help and --header
15732 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15733Try \`$0 --help' for more information." >&5
15734echo "$as_me: error: ambiguous option: $1
15735Try \`$0 --help' for more information." >&2;}
15736 { (exit 1); exit 1; }; };;
15737 --help | --hel | -h )
15738 echo "$ac_cs_usage"; exit 0 ;;
15739 --debug | --d* | -d )
15740 debug=: ;;
15741 --file | --fil | --fi | --f )
15742 $ac_shift
15743 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15744 ac_need_defaults=false;;
15745 --header | --heade | --head | --hea )
15746 $ac_shift
15747 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15748 ac_need_defaults=false;;
15749 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15750 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15751 ac_cs_silent=: ;;
15752
15753 # This is an error.
15754 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15755Try \`$0 --help' for more information." >&5
15756echo "$as_me: error: unrecognized option: $1
15757Try \`$0 --help' for more information." >&2;}
15758 { (exit 1); exit 1; }; } ;;
15759
15760 *) ac_config_targets="$ac_config_targets $1" ;;
15761
15762 esac
15763 shift
15764done
15765
15766ac_configure_extra_args=
15767
15768if $ac_cs_silent; then
15769 exec 6>/dev/null
15770 ac_configure_extra_args="$ac_configure_extra_args --silent"
15771fi
15772
15773_ACEOF
15774cat >>$CONFIG_STATUS <<_ACEOF
15775if \$ac_cs_recheck; then
15776 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15777 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15778fi
15779
15780_ACEOF
15781
15782
15783
15784
15785
15786cat >>$CONFIG_STATUS <<\_ACEOF
15787for ac_config_target in $ac_config_targets
15788do
15789 case "$ac_config_target" in
15790 # Handling of arguments.
15791 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15792 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15793 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15794echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15795 { (exit 1); exit 1; }; };;
15796 esac
15797done
15798
15799# If the user did not use the arguments to specify the items to instantiate,
15800# then the envvar interface is used. Set only those that are not.
15801# We use the long form for the default assignment because of an extremely
15802# bizarre bug on SunOS 4.1.3.
15803if $ac_need_defaults; then
15804 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15805 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15806fi
15807
15808# Have a temporary directory for convenience. Make it in the build tree
15809# simply because there is no reason to put it here, and in addition,
15810# creating and moving files from /tmp can sometimes cause problems.
15811# Create a temporary directory, and hook for its removal unless debugging.
15812$debug ||
15813{
15814 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15815 trap '{ (exit 1); exit 1; }' 1 2 13 15
15816}
15817
15818# Create a (secure) tmp directory for tmp files.
15819
15820{
15821 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15822 test -n "$tmp" && test -d "$tmp"
15823} ||
15824{
15825 tmp=./confstat$$-$RANDOM
15826 (umask 077 && mkdir $tmp)
15827} ||
15828{
15829 echo "$me: cannot create a temporary directory in ." >&2
15830 { (exit 1); exit 1; }
15831}
15832
15833_ACEOF
15834
15835cat >>$CONFIG_STATUS <<_ACEOF
15836
15837#
15838# CONFIG_FILES section.
15839#
15840
15841# No need to generate the scripts if there are no CONFIG_FILES.
15842# This happens for instance when ./config.status config.h
15843if test -n "\$CONFIG_FILES"; then
15844 # Protect against being on the right side of a sed subst in config.status.
15845 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15846 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15847s,@SHELL@,$SHELL,;t t
15848s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15849s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15850s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15851s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15852s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15853s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15854s,@exec_prefix@,$exec_prefix,;t t
15855s,@prefix@,$prefix,;t t
15856s,@program_transform_name@,$program_transform_name,;t t
15857s,@bindir@,$bindir,;t t
15858s,@sbindir@,$sbindir,;t t
15859s,@libexecdir@,$libexecdir,;t t
15860s,@datadir@,$datadir,;t t
15861s,@sysconfdir@,$sysconfdir,;t t
15862s,@sharedstatedir@,$sharedstatedir,;t t
15863s,@localstatedir@,$localstatedir,;t t
15864s,@libdir@,$libdir,;t t
15865s,@includedir@,$includedir,;t t
15866s,@oldincludedir@,$oldincludedir,;t t
15867s,@infodir@,$infodir,;t t
15868s,@mandir@,$mandir,;t t
15869s,@build_alias@,$build_alias,;t t
15870s,@host_alias@,$host_alias,;t t
15871s,@target_alias@,$target_alias,;t t
15872s,@DEFS@,$DEFS,;t t
15873s,@ECHO_C@,$ECHO_C,;t t
15874s,@ECHO_N@,$ECHO_N,;t t
15875s,@ECHO_T@,$ECHO_T,;t t
15876s,@LIBS@,$LIBS,;t t
15877s,@SET_MAKE@,$SET_MAKE,;t t
15878s,@CC@,$CC,;t t
15879s,@CFLAGS@,$CFLAGS,;t t
15880s,@LDFLAGS@,$LDFLAGS,;t t
15881s,@CPPFLAGS@,$CPPFLAGS,;t t
15882s,@ac_ct_CC@,$ac_ct_CC,;t t
15883s,@EXEEXT@,$EXEEXT,;t t
15884s,@OBJEXT@,$OBJEXT,;t t
15885s,@CPP@,$CPP,;t t
15886s,@EGREP@,$EGREP,;t t
15887s,@AWK@,$AWK,;t t
15888s,@STRIP@,$STRIP,;t t
15889s,@CPP_MM@,$CPP_MM,;t t
15890s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
15891s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
15892s,@VIMNAME@,$VIMNAME,;t t
15893s,@EXNAME@,$EXNAME,;t t
15894s,@VIEWNAME@,$VIEWNAME,;t t
15895s,@line_break@,$line_break,;t t
15896s,@dovimdiff@,$dovimdiff,;t t
15897s,@dogvimdiff@,$dogvimdiff,;t t
15898s,@compiledby@,$compiledby,;t t
15899s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
15900s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
15901s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
15902s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
15903s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
15904s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
15905s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
15906s,@vi_cv_perllib@,$vi_cv_perllib,;t t
15907s,@shrpenv@,$shrpenv,;t t
15908s,@PERL_SRC@,$PERL_SRC,;t t
15909s,@PERL_OBJ@,$PERL_OBJ,;t t
15910s,@PERL_PRO@,$PERL_PRO,;t t
15911s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
15912s,@PERL_LIBS@,$PERL_LIBS,;t t
15913s,@vi_cv_path_python@,$vi_cv_path_python,;t t
15914s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
15915s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
15916s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
15917s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
15918s,@PYTHON_SRC@,$PYTHON_SRC,;t t
15919s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
15920s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
15921s,@TCL_SRC@,$TCL_SRC,;t t
15922s,@TCL_OBJ@,$TCL_OBJ,;t t
15923s,@TCL_PRO@,$TCL_PRO,;t t
15924s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
15925s,@TCL_LIBS@,$TCL_LIBS,;t t
15926s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
15927s,@RUBY_SRC@,$RUBY_SRC,;t t
15928s,@RUBY_OBJ@,$RUBY_OBJ,;t t
15929s,@RUBY_PRO@,$RUBY_PRO,;t t
15930s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
15931s,@RUBY_LIBS@,$RUBY_LIBS,;t t
15932s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
15933s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
15934s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
15935s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
15936s,@SNIFF_SRC@,$SNIFF_SRC,;t t
15937s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
15938s,@xmkmfpath@,$xmkmfpath,;t t
15939s,@X_CFLAGS@,$X_CFLAGS,;t t
15940s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15941s,@X_LIBS@,$X_LIBS,;t t
15942s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15943s,@X_LIB@,$X_LIB,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015944s,@GTK_CONFIG@,$GTK_CONFIG,;t t
15945s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
15946s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15947s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15948s,@GTK_LIBS@,$GTK_LIBS,;t t
15949s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
15950s,@GNOME_LIBS@,$GNOME_LIBS,;t t
15951s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
15952s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
15953s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
15954s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
15955s,@NARROW_PROTO@,$NARROW_PROTO,;t t
15956s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
15957s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
15958s,@GUITYPE@,$GUITYPE,;t t
15959s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
15960s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
15961s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
15962s,@TAGPRG@,$TAGPRG,;t t
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000015963s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
15964s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015965s,@MSGFMT@,$MSGFMT,;t t
15966s,@MAKEMO@,$MAKEMO,;t t
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015967s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015968s,@LIBOBJS@,$LIBOBJS,;t t
15969s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15970CEOF
15971
15972_ACEOF
15973
15974 cat >>$CONFIG_STATUS <<\_ACEOF
15975 # Split the substitutions into bite-sized pieces for seds with
15976 # small command number limits, like on Digital OSF/1 and HP-UX.
15977 ac_max_sed_lines=48
15978 ac_sed_frag=1 # Number of current file.
15979 ac_beg=1 # First line for current file.
15980 ac_end=$ac_max_sed_lines # Line after last line for current file.
15981 ac_more_lines=:
15982 ac_sed_cmds=
15983 while $ac_more_lines; do
15984 if test $ac_beg -gt 1; then
15985 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15986 else
15987 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15988 fi
15989 if test ! -s $tmp/subs.frag; then
15990 ac_more_lines=false
15991 else
15992 # The purpose of the label and of the branching condition is to
15993 # speed up the sed processing (if there are no `@' at all, there
15994 # is no need to browse any of the substitutions).
15995 # These are the two extra sed commands mentioned above.
15996 (echo ':t
15997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15998 if test -z "$ac_sed_cmds"; then
15999 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16000 else
16001 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16002 fi
16003 ac_sed_frag=`expr $ac_sed_frag + 1`
16004 ac_beg=$ac_end
16005 ac_end=`expr $ac_end + $ac_max_sed_lines`
16006 fi
16007 done
16008 if test -z "$ac_sed_cmds"; then
16009 ac_sed_cmds=cat
16010 fi
16011fi # test -n "$CONFIG_FILES"
16012
16013_ACEOF
16014cat >>$CONFIG_STATUS <<\_ACEOF
16015for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16016 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16017 case $ac_file in
16018 - | *:- | *:-:* ) # input from stdin
16019 cat >$tmp/stdin
16020 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16021 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16022 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16023 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16024 * ) ac_file_in=$ac_file.in ;;
16025 esac
16026
16027 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16028 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16029$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16030 X"$ac_file" : 'X\(//\)[^/]' \| \
16031 X"$ac_file" : 'X\(//\)$' \| \
16032 X"$ac_file" : 'X\(/\)' \| \
16033 . : '\(.\)' 2>/dev/null ||
16034echo X"$ac_file" |
16035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16037 /^X\(\/\/\)$/{ s//\1/; q; }
16038 /^X\(\/\).*/{ s//\1/; q; }
16039 s/.*/./; q'`
16040 { if $as_mkdir_p; then
16041 mkdir -p "$ac_dir"
16042 else
16043 as_dir="$ac_dir"
16044 as_dirs=
16045 while test ! -d "$as_dir"; do
16046 as_dirs="$as_dir $as_dirs"
16047 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16048$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16049 X"$as_dir" : 'X\(//\)[^/]' \| \
16050 X"$as_dir" : 'X\(//\)$' \| \
16051 X"$as_dir" : 'X\(/\)' \| \
16052 . : '\(.\)' 2>/dev/null ||
16053echo X"$as_dir" |
16054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16056 /^X\(\/\/\)$/{ s//\1/; q; }
16057 /^X\(\/\).*/{ s//\1/; q; }
16058 s/.*/./; q'`
16059 done
16060 test ! -n "$as_dirs" || mkdir $as_dirs
16061 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16062echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16063 { (exit 1); exit 1; }; }; }
16064
16065 ac_builddir=.
16066
16067if test "$ac_dir" != .; then
16068 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16069 # A "../" for each directory in $ac_dir_suffix.
16070 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16071else
16072 ac_dir_suffix= ac_top_builddir=
16073fi
16074
16075case $srcdir in
16076 .) # No --srcdir option. We are building in place.
16077 ac_srcdir=.
16078 if test -z "$ac_top_builddir"; then
16079 ac_top_srcdir=.
16080 else
16081 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16082 fi ;;
16083 [\\/]* | ?:[\\/]* ) # Absolute path.
16084 ac_srcdir=$srcdir$ac_dir_suffix;
16085 ac_top_srcdir=$srcdir ;;
16086 *) # Relative path.
16087 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16088 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16089esac
16090
16091# Do not use `cd foo && pwd` to compute absolute paths, because
16092# the directories may not exist.
16093case `pwd` in
16094.) ac_abs_builddir="$ac_dir";;
16095*)
16096 case "$ac_dir" in
16097 .) ac_abs_builddir=`pwd`;;
16098 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16099 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16100 esac;;
16101esac
16102case $ac_abs_builddir in
16103.) ac_abs_top_builddir=${ac_top_builddir}.;;
16104*)
16105 case ${ac_top_builddir}. in
16106 .) ac_abs_top_builddir=$ac_abs_builddir;;
16107 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16108 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16109 esac;;
16110esac
16111case $ac_abs_builddir in
16112.) ac_abs_srcdir=$ac_srcdir;;
16113*)
16114 case $ac_srcdir in
16115 .) ac_abs_srcdir=$ac_abs_builddir;;
16116 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16117 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16118 esac;;
16119esac
16120case $ac_abs_builddir in
16121.) ac_abs_top_srcdir=$ac_top_srcdir;;
16122*)
16123 case $ac_top_srcdir in
16124 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16125 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16126 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16127 esac;;
16128esac
16129
16130
16131
16132 if test x"$ac_file" != x-; then
16133 { echo "$as_me:$LINENO: creating $ac_file" >&5
16134echo "$as_me: creating $ac_file" >&6;}
16135 rm -f "$ac_file"
16136 fi
16137 # Let's still pretend it is `configure' which instantiates (i.e., don't
16138 # use $as_me), people would be surprised to read:
16139 # /* config.h. Generated by config.status. */
16140 if test x"$ac_file" = x-; then
16141 configure_input=
16142 else
16143 configure_input="$ac_file. "
16144 fi
16145 configure_input=$configure_input"Generated from `echo $ac_file_in |
16146 sed 's,.*/,,'` by configure."
16147
16148 # First look for the input files in the build tree, otherwise in the
16149 # src tree.
16150 ac_file_inputs=`IFS=:
16151 for f in $ac_file_in; do
16152 case $f in
16153 -) echo $tmp/stdin ;;
16154 [\\/$]*)
16155 # Absolute (can't be DOS-style, as IFS=:)
16156 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16157echo "$as_me: error: cannot find input file: $f" >&2;}
16158 { (exit 1); exit 1; }; }
16159 echo "$f";;
16160 *) # Relative
16161 if test -f "$f"; then
16162 # Build tree
16163 echo "$f"
16164 elif test -f "$srcdir/$f"; then
16165 # Source tree
16166 echo "$srcdir/$f"
16167 else
16168 # /dev/null tree
16169 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16170echo "$as_me: error: cannot find input file: $f" >&2;}
16171 { (exit 1); exit 1; }; }
16172 fi;;
16173 esac
16174 done` || { (exit 1); exit 1; }
16175_ACEOF
16176cat >>$CONFIG_STATUS <<_ACEOF
16177 sed "$ac_vpsub
16178$extrasub
16179_ACEOF
16180cat >>$CONFIG_STATUS <<\_ACEOF
16181:t
16182/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16183s,@configure_input@,$configure_input,;t t
16184s,@srcdir@,$ac_srcdir,;t t
16185s,@abs_srcdir@,$ac_abs_srcdir,;t t
16186s,@top_srcdir@,$ac_top_srcdir,;t t
16187s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16188s,@builddir@,$ac_builddir,;t t
16189s,@abs_builddir@,$ac_abs_builddir,;t t
16190s,@top_builddir@,$ac_top_builddir,;t t
16191s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16192" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16193 rm -f $tmp/stdin
16194 if test x"$ac_file" != x-; then
16195 mv $tmp/out $ac_file
16196 else
16197 cat $tmp/out
16198 rm -f $tmp/out
Bram Moolenaar071d4272004-06-13 20:20:40 +000016199 fi
16200
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016201done
16202_ACEOF
16203cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016204
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016205#
16206# CONFIG_HEADER section.
16207#
Bram Moolenaar071d4272004-06-13 20:20:40 +000016208
16209# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16210# NAME is the cpp macro being defined and VALUE is the value it is being given.
16211#
16212# ac_d sets the value in "#define NAME VALUE" lines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016213ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16214ac_dB='[ ].*$,\1#\2'
16215ac_dC=' '
16216ac_dD=',;t'
16217# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16218ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16219ac_uB='$,\1#\2define\3'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016220ac_uC=' '
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016221ac_uD=',;t'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016222
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016223for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Bram Moolenaar071d4272004-06-13 20:20:40 +000016224 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016225 case $ac_file in
16226 - | *:- | *:-:* ) # input from stdin
16227 cat >$tmp/stdin
16228 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16229 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16230 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16232 * ) ac_file_in=$ac_file.in ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000016233 esac
16234
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016235 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16236echo "$as_me: creating $ac_file" >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +000016237
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016238 # First look for the input files in the build tree, otherwise in the
16239 # src tree.
16240 ac_file_inputs=`IFS=:
16241 for f in $ac_file_in; do
16242 case $f in
16243 -) echo $tmp/stdin ;;
16244 [\\/$]*)
16245 # Absolute (can't be DOS-style, as IFS=:)
16246 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16247echo "$as_me: error: cannot find input file: $f" >&2;}
16248 { (exit 1); exit 1; }; }
16249 # Do quote $f, to prevent DOS paths from being IFS'd.
16250 echo "$f";;
16251 *) # Relative
16252 if test -f "$f"; then
16253 # Build tree
16254 echo "$f"
16255 elif test -f "$srcdir/$f"; then
16256 # Source tree
16257 echo "$srcdir/$f"
16258 else
16259 # /dev/null tree
16260 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16261echo "$as_me: error: cannot find input file: $f" >&2;}
16262 { (exit 1); exit 1; }; }
16263 fi;;
16264 esac
16265 done` || { (exit 1); exit 1; }
16266 # Remove the trailing spaces.
16267 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Bram Moolenaar071d4272004-06-13 20:20:40 +000016268
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016269_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016270
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016271# Transform confdefs.h into two sed scripts, `conftest.defines' and
16272# `conftest.undefs', that substitutes the proper values into
16273# config.h.in to produce config.h. The first handles `#define'
16274# templates, and the second `#undef' templates.
16275# And first: Protect against being on the right side of a sed subst in
16276# config.status. Protect against being in an unquoted here document
16277# in config.status.
16278rm -f conftest.defines conftest.undefs
16279# Using a here document instead of a string reduces the quoting nightmare.
16280# Putting comments in sed scripts is not portable.
16281#
16282# `end' is used to avoid that the second main sed command (meant for
16283# 0-ary CPP macros) applies to n-ary macro definitions.
16284# See the Autoconf documentation for `clear'.
16285cat >confdef2sed.sed <<\_ACEOF
16286s/[\\&,]/\\&/g
16287s,[\\$`],\\&,g
16288t clear
16289: clear
16290s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16291t end
16292s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16293: end
16294_ACEOF
16295# If some macros were called several times there might be several times
16296# the same #defines, which is useless. Nevertheless, we may not want to
16297# sort them, since we want the *last* AC-DEFINE to be honored.
16298uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16299sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16300rm -f confdef2sed.sed
Bram Moolenaar071d4272004-06-13 20:20:40 +000016301
16302# This sed command replaces #undef with comments. This is necessary, for
16303# example, in the case of _POSIX_SOURCE, which is predefined and required
16304# on some systems where configure will not decide to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016305cat >>conftest.undefs <<\_ACEOF
16306s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16307_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016308
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016309# Break up conftest.defines because some shells have a limit on the size
16310# of here documents, and old seds have small limits too (100 cmds).
16311echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16312echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16313echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16314echo ' :' >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016315rm -f conftest.tail
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016316while grep . conftest.defines >/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +000016317do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016318 # Write a limited-size here document to $tmp/defines.sed.
16319 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16320 # Speed up: don't consider the non `#define' lines.
16321 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16322 # Work around the forget-to-reset-the-flag bug.
16323 echo 't clr' >>$CONFIG_STATUS
16324 echo ': clr' >>$CONFIG_STATUS
16325 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016326 echo 'CEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016327 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16328 rm -f $tmp/in
16329 mv $tmp/out $tmp/in
16330' >>$CONFIG_STATUS
16331 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16332 rm -f conftest.defines
16333 mv conftest.tail conftest.defines
Bram Moolenaar071d4272004-06-13 20:20:40 +000016334done
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016335rm -f conftest.defines
16336echo ' fi # grep' >>$CONFIG_STATUS
16337echo >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016338
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016339# Break up conftest.undefs because some shells have a limit on the size
16340# of here documents, and old seds have small limits too (100 cmds).
16341echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16342rm -f conftest.tail
16343while grep . conftest.undefs >/dev/null
16344do
16345 # Write a limited-size here document to $tmp/undefs.sed.
16346 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16347 # Speed up: don't consider the non `#undef'
16348 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16349 # Work around the forget-to-reset-the-flag bug.
16350 echo 't clr' >>$CONFIG_STATUS
16351 echo ': clr' >>$CONFIG_STATUS
16352 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16353 echo 'CEOF
16354 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16355 rm -f $tmp/in
16356 mv $tmp/out $tmp/in
16357' >>$CONFIG_STATUS
16358 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16359 rm -f conftest.undefs
16360 mv conftest.tail conftest.undefs
16361done
16362rm -f conftest.undefs
16363
16364cat >>$CONFIG_STATUS <<\_ACEOF
16365 # Let's still pretend it is `configure' which instantiates (i.e., don't
16366 # use $as_me), people would be surprised to read:
16367 # /* config.h. Generated by config.status. */
16368 if test x"$ac_file" = x-; then
16369 echo "/* Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016370 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016371 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016372 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016373 cat $tmp/in >>$tmp/config.h
16374 rm -f $tmp/in
16375 if test x"$ac_file" != x-; then
16376 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16377 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16378echo "$as_me: $ac_file is unchanged" >&6;}
16379 else
16380 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16381$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16382 X"$ac_file" : 'X\(//\)[^/]' \| \
16383 X"$ac_file" : 'X\(//\)$' \| \
16384 X"$ac_file" : 'X\(/\)' \| \
16385 . : '\(.\)' 2>/dev/null ||
16386echo X"$ac_file" |
16387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16389 /^X\(\/\/\)$/{ s//\1/; q; }
16390 /^X\(\/\).*/{ s//\1/; q; }
16391 s/.*/./; q'`
16392 { if $as_mkdir_p; then
16393 mkdir -p "$ac_dir"
16394 else
16395 as_dir="$ac_dir"
16396 as_dirs=
16397 while test ! -d "$as_dir"; do
16398 as_dirs="$as_dir $as_dirs"
16399 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16400$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16401 X"$as_dir" : 'X\(//\)[^/]' \| \
16402 X"$as_dir" : 'X\(//\)$' \| \
16403 X"$as_dir" : 'X\(/\)' \| \
16404 . : '\(.\)' 2>/dev/null ||
16405echo X"$as_dir" |
16406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16407 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16408 /^X\(\/\/\)$/{ s//\1/; q; }
16409 /^X\(\/\).*/{ s//\1/; q; }
16410 s/.*/./; q'`
16411 done
16412 test ! -n "$as_dirs" || mkdir $as_dirs
16413 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16414echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16415 { (exit 1); exit 1; }; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000016416
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016417 rm -f $ac_file
16418 mv $tmp/config.h $ac_file
16419 fi
16420 else
16421 cat $tmp/config.h
16422 rm -f $tmp/config.h
16423 fi
16424done
16425_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016426
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016427cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016428
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016429{ (exit 0); exit 0; }
16430_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016431chmod +x $CONFIG_STATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016432ac_clean_files=$ac_clean_files_save
16433
16434
16435# configure is writing to config.log, and then calls config.status.
16436# config.status does its own redirection, appending to config.log.
16437# Unfortunately, on DOS this fails, as config.log is still kept open
16438# by configure, so config.status won't be able to write to it; its
16439# output is simply discarded. So we exec the FD to /dev/null,
16440# effectively closing config.log, so it can be properly (re)opened and
16441# appended to by config.status. When coming back to configure, we
16442# need to make the FD available again.
16443if test "$no_create" != yes; then
16444 ac_cs_success=:
16445 ac_config_status_args=
16446 test "$silent" = yes &&
16447 ac_config_status_args="$ac_config_status_args --quiet"
16448 exec 5>/dev/null
16449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Bram Moolenaarc7453f52006-02-10 23:20:28 +000016450 exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16452 # would make configure fail if this is the last instruction.
16453 $ac_cs_success || { (exit 1); exit 1; }
16454fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000016455
16456