blob: 13cb22610a0aaad233922eaef9346a025090ed92 [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 Moolenaar7d47b6e2006-03-15 22:59:18 +00002841 if test x$prefix = xNONE; then
2842 prefix=/Applications
2843 fi
2844
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002845 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2846echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002847 # Check whether --enable-darwin or --disable-darwin was given.
2848if test "${enable_darwin+set}" = set; then
2849 enableval="$enable_darwin"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002850
Bram Moolenaar071d4272004-06-13 20:20:40 +00002851else
2852 enable_darwin="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002853fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002854 if test "$enable_darwin" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002855 echo "$as_me:$LINENO: result: no" >&5
2856echo "${ECHO_T}no" >&6
2857 echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2858echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002859 if test -f os_macosx.c; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002860 echo "$as_me:$LINENO: result: yes" >&5
2861echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002862 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002863 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2864echo "${ECHO_T}no, Darwin support disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002865 enable_darwin=no
2866 fi
2867 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002868 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2869echo "${ECHO_T}yes, Darwin support excluded" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002870 fi
2871
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002872 echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
2873echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6
2874
2875# Check whether --with-mac-arch or --without-mac-arch was given.
2876if test "${with_mac_arch+set}" = set; then
2877 withval="$with_mac_arch"
2878 MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5
2879echo "${ECHO_T}$MACARCH" >&6
2880else
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002881 MACARCH="both"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5
2882echo "${ECHO_T}defaulting to $MACARCH" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002883fi;
2884
2885 if test "x$MACARCH" = "xboth"; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002886 echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5
2887echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6
2888 save_cppflags="$CPPFLAGS"
2889 save_cflags="$CFLAGS"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002890 save_ldflags="$LDFLAGS"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002891 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002892 cat >conftest.$ac_ext <<_ACEOF
2893/* confdefs.h. */
2894_ACEOF
2895cat confdefs.h >>conftest.$ac_ext
2896cat >>conftest.$ac_ext <<_ACEOF
2897/* end confdefs.h. */
2898
2899int
2900main ()
2901{
2902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907rm -f conftest.$ac_objext conftest$ac_exeext
2908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2909 (eval $ac_link) 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try='test -z "$ac_c_werror_flag"
2917 || test ! -s conftest.err'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 (eval $ac_try) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; } &&
2923 { ac_try='test -s conftest$ac_exeext'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 (eval $ac_try) 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002929 echo "$as_me:$LINENO: result: found" >&5
2930echo "${ECHO_T}found" >&6
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002931else
2932 echo "$as_me: failed program was:" >&5
2933sed 's/^/| /' conftest.$ac_ext >&5
2934
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002935echo "$as_me:$LINENO: result: not found" >&5
2936echo "${ECHO_T}not found" >&6
Bram Moolenaar1f35bf92006-03-07 22:38:47 +00002937 CFLAGS="$save_cflags"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002938 echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002939echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002940 CPPFLAGS="$CPPFLAGS -arch i386"
2941 LDFLAGS="$save_ldflags -arch i386"
2942 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002943/* confdefs.h. */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h. */
2948
2949int
2950main ()
2951{
2952
2953 ;
2954 return 0;
2955}
2956_ACEOF
2957rm -f conftest.$ac_objext conftest$ac_exeext
2958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2959 (eval $ac_link) 2>conftest.er1
2960 ac_status=$?
2961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
2966 { ac_try='test -z "$ac_c_werror_flag"
2967 || test ! -s conftest.err'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969 (eval $ac_try) 2>&5
2970 ac_status=$?
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; } &&
2973 { ac_try='test -s conftest$ac_exeext'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975 (eval $ac_try) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; }; then
2979 echo "$as_me:$LINENO: result: yes" >&5
2980echo "${ECHO_T}yes" >&6; MACARCH="intel"
2981else
2982 echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985echo "$as_me:$LINENO: result: no" >&5
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002986echo "${ECHO_T}no" >&6
2987 MACARCH="ppc"
2988 CPPFLAGS="$save_cppflags -arch ppc"
2989 LDFLAGS="$save_ldflags -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002990fi
2991rm -f conftest.err conftest.$ac_objext \
2992 conftest$ac_exeext conftest.$ac_ext
2993fi
2994rm -f conftest.err conftest.$ac_objext \
2995 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaare224ffa2006-03-01 00:01:28 +00002996 elif test "x$MACARCH" = "xintel"; then
2997 CPPFLAGS="$CPPFLAGS -arch intel"
2998 LDFLAGS="$LDFLAGS -arch intel"
2999 else
3000 CPPFLAGS="$CPPFLAGS -arch ppc"
3001 LDFLAGS="$LDFLAGS -arch ppc"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00003002 fi
3003
Bram Moolenaar071d4272004-06-13 20:20:40 +00003004 if test "$enable_darwin" = "yes"; then
3005 MACOSX=yes
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003006 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3007 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Bram Moolenaare224ffa2006-03-01 00:01:28 +00003008 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp"
3009 if test "x$MACARCH" = "xboth"; then
3010 CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon"
3011 else
3012 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3013 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00003014
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003015 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3016echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3017if test "${ac_cv_header_stdc+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003019else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003020 cat >conftest.$ac_ext <<_ACEOF
3021/* confdefs.h. */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h. */
3026#include <stdlib.h>
3027#include <stdarg.h>
3028#include <string.h>
3029#include <float.h>
3030
3031int
3032main ()
3033{
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext
3040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>conftest.er1
3042 ac_status=$?
3043 grep -v '^ *+' conftest.er1 >conftest.err
3044 rm -f conftest.er1
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 { ac_try='test -z "$ac_c_werror_flag"
3049 || test ! -s conftest.err'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 (eval $ac_try) 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; } &&
3055 { ac_try='test -s conftest.$ac_objext'
3056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057 (eval $ac_try) 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 ac_cv_header_stdc=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003062else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003063 echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066ac_cv_header_stdc=no
3067fi
3068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3069
3070if test $ac_cv_header_stdc = yes; then
3071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3072 cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078#include <string.h>
3079
3080_ACEOF
3081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3082 $EGREP "memchr" >/dev/null 2>&1; then
3083 :
3084else
3085 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003086fi
3087rm -f conftest*
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003088
Bram Moolenaar071d4272004-06-13 20:20:40 +00003089fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003090
3091if test $ac_cv_header_stdc = yes; then
3092 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3093 cat >conftest.$ac_ext <<_ACEOF
3094/* confdefs.h. */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
3098/* end confdefs.h. */
3099#include <stdlib.h>
3100
3101_ACEOF
3102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3103 $EGREP "free" >/dev/null 2>&1; then
3104 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00003105else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003106 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003107fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003108rm -f conftest*
3109
3110fi
3111
3112if test $ac_cv_header_stdc = yes; then
3113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3114 if test "$cross_compiling" = yes; then
3115 :
3116else
3117 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123#include <ctype.h>
3124#if ((' ' & 0x0FF) == 0x020)
3125# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3126# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3127#else
3128# define ISLOWER(c) \
3129 (('a' <= (c) && (c) <= 'i') \
3130 || ('j' <= (c) && (c) <= 'r') \
3131 || ('s' <= (c) && (c) <= 'z'))
3132# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3133#endif
3134
3135#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3136int
3137main ()
3138{
3139 int i;
3140 for (i = 0; i < 256; i++)
3141 if (XOR (islower (i), ISLOWER (i))
3142 || toupper (i) != TOUPPER (i))
3143 exit(2);
3144 exit (0);
3145}
3146_ACEOF
3147rm -f conftest$ac_exeext
3148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3149 (eval $ac_link) 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154 (eval $ac_try) 2>&5
3155 ac_status=$?
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3158 :
3159else
3160 echo "$as_me: program exited with status $ac_status" >&5
3161echo "$as_me: failed program was:" >&5
3162sed 's/^/| /' conftest.$ac_ext >&5
3163
3164( exit $ac_status )
3165ac_cv_header_stdc=no
3166fi
3167rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3168fi
3169fi
3170fi
3171echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3172echo "${ECHO_T}$ac_cv_header_stdc" >&6
3173if test $ac_cv_header_stdc = yes; then
3174
3175cat >>confdefs.h <<\_ACEOF
3176#define STDC_HEADERS 1
3177_ACEOF
3178
3179fi
3180
3181# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3192 inttypes.h stdint.h unistd.h
3193do
3194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3195echo "$as_me:$LINENO: checking for $ac_header" >&5
3196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3197if eval "test \"\${$as_ac_Header+set}\" = set"; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3199else
3200 cat >conftest.$ac_ext <<_ACEOF
3201/* confdefs.h. */
3202_ACEOF
3203cat confdefs.h >>conftest.$ac_ext
3204cat >>conftest.$ac_ext <<_ACEOF
3205/* end confdefs.h. */
3206$ac_includes_default
3207
3208#include <$ac_header>
3209_ACEOF
3210rm -f conftest.$ac_objext
3211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212 (eval $ac_compile) 2>conftest.er1
3213 ac_status=$?
3214 grep -v '^ *+' conftest.er1 >conftest.err
3215 rm -f conftest.er1
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } &&
3219 { ac_try='test -z "$ac_c_werror_flag"
3220 || test ! -s conftest.err'
3221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222 (eval $ac_try) 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; } &&
3226 { ac_try='test -s conftest.$ac_objext'
3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228 (eval $ac_try) 2>&5
3229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 eval "$as_ac_Header=yes"
3233else
3234 echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237eval "$as_ac_Header=no"
3238fi
3239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3240fi
3241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3243if test `eval echo '${'$as_ac_Header'}'` = yes; then
3244 cat >>confdefs.h <<_ACEOF
3245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3246_ACEOF
3247
3248fi
3249
3250done
3251
3252
3253if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3254 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3255echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3256if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258fi
3259echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3260echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3261else
3262 # Is the header compilable?
3263echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3264echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3265cat >conftest.$ac_ext <<_ACEOF
3266/* confdefs.h. */
3267_ACEOF
3268cat confdefs.h >>conftest.$ac_ext
3269cat >>conftest.$ac_ext <<_ACEOF
3270/* end confdefs.h. */
3271$ac_includes_default
3272#include <Carbon/Carbon.h>
3273_ACEOF
3274rm -f conftest.$ac_objext
3275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276 (eval $ac_compile) 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try='test -z "$ac_c_werror_flag"
3284 || test ! -s conftest.err'
3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286 (eval $ac_try) 2>&5
3287 ac_status=$?
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; } &&
3290 { ac_try='test -s conftest.$ac_objext'
3291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3292 (eval $ac_try) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); }; }; then
3296 ac_header_compiler=yes
3297else
3298 echo "$as_me: failed program was:" >&5
3299sed 's/^/| /' conftest.$ac_ext >&5
3300
3301ac_header_compiler=no
3302fi
3303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3304echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3305echo "${ECHO_T}$ac_header_compiler" >&6
3306
3307# Is the header present?
3308echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3309echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3310cat >conftest.$ac_ext <<_ACEOF
3311/* confdefs.h. */
3312_ACEOF
3313cat confdefs.h >>conftest.$ac_ext
3314cat >>conftest.$ac_ext <<_ACEOF
3315/* end confdefs.h. */
3316#include <Carbon/Carbon.h>
3317_ACEOF
3318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } >/dev/null; then
3326 if test -s conftest.err; then
3327 ac_cpp_err=$ac_c_preproc_warn_flag
3328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329 else
3330 ac_cpp_err=
3331 fi
3332else
3333 ac_cpp_err=yes
3334fi
3335if test -z "$ac_cpp_err"; then
3336 ac_header_preproc=yes
3337else
3338 echo "$as_me: failed program was:" >&5
3339sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 ac_header_preproc=no
3342fi
3343rm -f conftest.err conftest.$ac_ext
3344echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3345echo "${ECHO_T}$ac_header_preproc" >&6
3346
3347# So? What about this header?
3348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3349 yes:no: )
3350 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3351echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3352 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3353echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3354 ac_header_preproc=yes
3355 ;;
3356 no:yes:* )
3357 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3358echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3359 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
3360echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
3361 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3362echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3363 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
3364echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
3365 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3366echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3367 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3368echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3369 (
3370 cat <<\_ASBOX
3371## ------------------------------------------ ##
3372## Report this to the AC_PACKAGE_NAME lists. ##
3373## ------------------------------------------ ##
3374_ASBOX
3375 ) |
3376 sed "s/^/$as_me: WARNING: /" >&2
3377 ;;
3378esac
3379echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3380echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3381if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383else
3384 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3385fi
3386echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3387echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3388
3389fi
3390if test $ac_cv_header_Carbon_Carbon_h = yes; then
3391 CARBON=yes
3392fi
3393
Bram Moolenaar071d4272004-06-13 20:20:40 +00003394
3395 if test "x$CARBON" = "xyes"; then
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003396 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 +00003397 with_x=no
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`
7840 have_gnome=yes
7841 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007842 echo "$as_me:$LINENO: result: not found" >&5
7843echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007844 if test "x" = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007845 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7846echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7847 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007848 fi
7849 fi
7850 }
7851 elif test "x$want_gnome" = xyes; then
7852 {
7853 # Extract the first word of "gnome-config", so it can be a program name with args.
7854set dummy gnome-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007855echo "$as_me:$LINENO: checking for $ac_word" >&5
7856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7857if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7858 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007859else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007860 case $GNOME_CONFIG in
7861 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007862 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7863 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007864 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866for as_dir in $PATH
7867do
7868 IFS=$as_save_IFS
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7872 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 break 2
7875 fi
7876done
7877done
7878
Bram Moolenaar071d4272004-06-13 20:20:40 +00007879 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7880 ;;
7881esac
7882fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007883GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7884
Bram Moolenaar071d4272004-06-13 20:20:40 +00007885if test -n "$GNOME_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007886 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7887echo "${ECHO_T}$GNOME_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007888else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007889 echo "$as_me:$LINENO: result: no" >&5
7890echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007891fi
7892
7893 if test "$GNOME_CONFIG" = "no"; then
7894 no_gnome_config="yes"
7895 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007896 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7897echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007898 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007899 echo "$as_me:$LINENO: result: yes" >&5
7900echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007901 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7902 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7903 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7904 have_gnome=yes
7905 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007906 echo "$as_me:$LINENO: result: no" >&5
7907echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007908 no_gnome_config="yes"
7909 fi
7910 fi
7911
7912 if test x$exec_prefix = xNONE; then
7913 if test x$prefix = xNONE; then
7914 gnome_prefix=$ac_default_prefix/lib
7915 else
7916 gnome_prefix=$prefix/lib
7917 fi
7918 else
7919 gnome_prefix=`eval echo \`echo $libdir\``
7920 fi
7921
7922 if test "$no_gnome_config" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007923 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7924echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007925 if test -f $gnome_prefix/gnomeConf.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007926 echo "$as_me:$LINENO: result: found" >&5
7927echo "${ECHO_T}found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007928 echo "loading gnome configuration from" \
7929 "$gnome_prefix/gnomeConf.sh"
7930 . $gnome_prefix/gnomeConf.sh
7931 have_gnome=yes
7932 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007933 echo "$as_me:$LINENO: result: not found" >&5
7934echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007935 if test x = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007936 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7937echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7938 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007939 fi
7940 fi
7941 fi
7942 }
7943 fi
7944
7945 if test x$have_gnome = xyes ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007946 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007947#define FEAT_GUI_GNOME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007948_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007949
7950 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7951 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7952 fi
7953 }
7954 fi
7955 }
7956 fi
7957 fi
7958fi
7959
7960
7961if test -z "$SKIP_MOTIF"; then
7962 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"
7963 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7964
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007965 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
7966echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007967 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7968 GUI_INC_LOC=
7969 for try in $gui_includes; do
7970 if test -f "$try/Xm/Xm.h"; then
7971 GUI_INC_LOC=$try
7972 fi
7973 done
7974 if test -n "$GUI_INC_LOC"; then
7975 if test "$GUI_INC_LOC" = /usr/include; then
7976 GUI_INC_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007977 echo "$as_me:$LINENO: result: in default path" >&5
7978echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007979 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007980 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
7981echo "${ECHO_T}$GUI_INC_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007982 fi
7983 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007984 echo "$as_me:$LINENO: result: <not found>" >&5
7985echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007986 SKIP_MOTIF=YES
7987 fi
7988fi
7989
7990
7991if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007992 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
7993echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
7994
7995# Check whether --with-motif-lib or --without-motif-lib was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007996if test "${with_motif_lib+set}" = set; then
7997 withval="$with_motif_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007998 MOTIF_LIBNAME="${withval}"
7999fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008000
8001 if test -n "$MOTIF_LIBNAME"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008002 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8003echo "${ECHO_T}$MOTIF_LIBNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008004 GUI_LIB_LOC=
8005 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008006 echo "$as_me:$LINENO: result: no" >&5
8007echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008008
8009 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8010
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008011 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8012echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008013 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"
8014 GUI_LIB_LOC=
8015 for try in $gui_libs; do
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008016 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
Bram Moolenaar071d4272004-06-13 20:20:40 +00008017 if test -f "$libtry"; then
8018 GUI_LIB_LOC=$try
8019 fi
8020 done
8021 done
8022 if test -n "$GUI_LIB_LOC"; then
8023 if test "$GUI_LIB_LOC" = /usr/lib; then
8024 GUI_LIB_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008025 echo "$as_me:$LINENO: result: in default path" >&5
8026echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008027 else
8028 if test -n "$GUI_LIB_LOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008029 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8030echo "${ECHO_T}$GUI_LIB_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008031 if test "`(uname) 2>/dev/null`" = SunOS &&
8032 uname -r | grep '^5' >/dev/null; then
8033 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8034 fi
8035 fi
8036 fi
8037 MOTIF_LIBNAME=-lXm
8038 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008039 echo "$as_me:$LINENO: result: <not found>" >&5
8040echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008041 SKIP_MOTIF=YES
8042 fi
8043 fi
8044fi
8045
8046if test -z "$SKIP_MOTIF"; then
8047 SKIP_ATHENA=YES
8048 SKIP_NEXTAW=YES
8049 GUITYPE=MOTIF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008050
Bram Moolenaar071d4272004-06-13 20:20:40 +00008051fi
8052
8053
8054GUI_X_LIBS=
8055
8056if test -z "$SKIP_ATHENA"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008057 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8058echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008059 cflags_save=$CFLAGS
8060 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008061 cat >conftest.$ac_ext <<_ACEOF
8062/* confdefs.h. */
8063_ACEOF
8064cat confdefs.h >>conftest.$ac_ext
8065cat >>conftest.$ac_ext <<_ACEOF
8066/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008067
8068#include <X11/Intrinsic.h>
8069#include <X11/Xaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008070int
8071main ()
8072{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008073
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008074 ;
8075 return 0;
8076}
8077_ACEOF
8078rm -f conftest.$ac_objext
8079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8080 (eval $ac_compile) 2>conftest.er1
8081 ac_status=$?
8082 grep -v '^ *+' conftest.er1 >conftest.err
8083 rm -f conftest.er1
8084 cat conftest.err >&5
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } &&
8087 { ac_try='test -z "$ac_c_werror_flag"
8088 || test ! -s conftest.err'
8089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090 (eval $ac_try) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); }; } &&
8094 { ac_try='test -s conftest.$ac_objext'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; }; then
8100 echo "$as_me:$LINENO: result: yes" >&5
8101echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008102else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008103 echo "$as_me: failed program was:" >&5
8104sed 's/^/| /' conftest.$ac_ext >&5
8105
8106echo "$as_me:$LINENO: result: no" >&5
8107echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008108fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008110 CFLAGS=$cflags_save
8111fi
8112
8113if test -z "$SKIP_ATHENA"; then
8114 GUITYPE=ATHENA
8115fi
8116
8117if test -z "$SKIP_NEXTAW"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008118 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8119echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008120 cflags_save=$CFLAGS
8121 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008122 cat >conftest.$ac_ext <<_ACEOF
8123/* confdefs.h. */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008128
8129#include <X11/Intrinsic.h>
8130#include <X11/neXtaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008131int
8132main ()
8133{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008134
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008135 ;
8136 return 0;
8137}
8138_ACEOF
8139rm -f conftest.$ac_objext
8140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8141 (eval $ac_compile) 2>conftest.er1
8142 ac_status=$?
8143 grep -v '^ *+' conftest.er1 >conftest.err
8144 rm -f conftest.er1
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } &&
8148 { ac_try='test -z "$ac_c_werror_flag"
8149 || test ! -s conftest.err'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; } &&
8155 { ac_try='test -s conftest.$ac_objext'
8156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8157 (eval $ac_try) 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8161 echo "$as_me:$LINENO: result: yes" >&5
8162echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008163else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008164 echo "$as_me: failed program was:" >&5
8165sed 's/^/| /' conftest.$ac_ext >&5
8166
8167echo "$as_me:$LINENO: result: no" >&5
8168echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008169fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008171 CFLAGS=$cflags_save
8172fi
8173
8174if test -z "$SKIP_NEXTAW"; then
8175 GUITYPE=NEXTAW
8176fi
8177
8178if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8179 if test -n "$GUI_INC_LOC"; then
8180 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8181 fi
8182 if test -n "$GUI_LIB_LOC"; then
8183 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8184 fi
8185
8186 ldflags_save=$LDFLAGS
8187 LDFLAGS="$X_LIBS $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008188 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8189echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8190if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008192else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008193 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008194LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008195cat >conftest.$ac_ext <<_ACEOF
8196/* confdefs.h. */
8197_ACEOF
8198cat confdefs.h >>conftest.$ac_ext
8199cat >>conftest.$ac_ext <<_ACEOF
8200/* end confdefs.h. */
8201
Bram Moolenaar071d4272004-06-13 20:20:40 +00008202/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008203#ifdef __cplusplus
8204extern "C"
8205#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008206/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008207 builtin and then its argument prototype would still apply. */
8208char XShapeQueryExtension ();
8209int
8210main ()
8211{
8212XShapeQueryExtension ();
8213 ;
8214 return 0;
8215}
8216_ACEOF
8217rm -f conftest.$ac_objext conftest$ac_exeext
8218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8219 (eval $ac_link) 2>conftest.er1
8220 ac_status=$?
8221 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1
8223 cat conftest.err >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } &&
8226 { ac_try='test -z "$ac_c_werror_flag"
8227 || test ! -s conftest.err'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; } &&
8233 { ac_try='test -s conftest$ac_exeext'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 (eval $ac_try) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 ac_cv_lib_Xext_XShapeQueryExtension=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008240else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008241 echo "$as_me: failed program was:" >&5
8242sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008243
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008244ac_cv_lib_Xext_XShapeQueryExtension=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008245fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008246rm -f conftest.err conftest.$ac_objext \
8247 conftest$ac_exeext conftest.$ac_ext
8248LIBS=$ac_check_lib_save_LIBS
8249fi
8250echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8251echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8252if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008253 GUI_X_LIBS="-lXext"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008254fi
8255
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008256 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8257echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8258if test "${ac_cv_lib_w_wslen+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008260else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008261 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008262LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008263cat >conftest.$ac_ext <<_ACEOF
8264/* confdefs.h. */
8265_ACEOF
8266cat confdefs.h >>conftest.$ac_ext
8267cat >>conftest.$ac_ext <<_ACEOF
8268/* end confdefs.h. */
8269
Bram Moolenaar071d4272004-06-13 20:20:40 +00008270/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008271#ifdef __cplusplus
8272extern "C"
8273#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008274/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008275 builtin and then its argument prototype would still apply. */
8276char wslen ();
8277int
8278main ()
8279{
8280wslen ();
8281 ;
8282 return 0;
8283}
8284_ACEOF
8285rm -f conftest.$ac_objext conftest$ac_exeext
8286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag"
8295 || test ! -s conftest.err'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8307 ac_cv_lib_w_wslen=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008308else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008309 echo "$as_me: failed program was:" >&5
8310sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008311
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008312ac_cv_lib_w_wslen=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008313fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008314rm -f conftest.err conftest.$ac_objext \
8315 conftest$ac_exeext conftest.$ac_ext
8316LIBS=$ac_check_lib_save_LIBS
8317fi
8318echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8319echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8320if test $ac_cv_lib_w_wslen = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008321 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008322fi
8323
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008324 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8325echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8326if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008328else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008329 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008330LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008331cat >conftest.$ac_ext <<_ACEOF
8332/* confdefs.h. */
8333_ACEOF
8334cat confdefs.h >>conftest.$ac_ext
8335cat >>conftest.$ac_ext <<_ACEOF
8336/* end confdefs.h. */
8337
Bram Moolenaar071d4272004-06-13 20:20:40 +00008338/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008339#ifdef __cplusplus
8340extern "C"
8341#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008342/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008343 builtin and then its argument prototype would still apply. */
8344char dlsym ();
8345int
8346main ()
8347{
8348dlsym ();
8349 ;
8350 return 0;
8351}
8352_ACEOF
8353rm -f conftest.$ac_objext conftest$ac_exeext
8354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355 (eval $ac_link) 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -z "$ac_c_werror_flag"
8363 || test ! -s conftest.err'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 (eval $ac_try) 2>&5
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; } &&
8369 { ac_try='test -s conftest$ac_exeext'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 (eval $ac_try) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8375 ac_cv_lib_dl_dlsym=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008376else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008377 echo "$as_me: failed program was:" >&5
8378sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008379
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008380ac_cv_lib_dl_dlsym=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008381fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008382rm -f conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8384LIBS=$ac_check_lib_save_LIBS
8385fi
8386echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8387echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8388if test $ac_cv_lib_dl_dlsym = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008389 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008390fi
8391
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008392 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8393echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8394if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008396else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008397 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008398LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008399cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */
8405
Bram Moolenaar071d4272004-06-13 20:20:40 +00008406/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008407#ifdef __cplusplus
8408extern "C"
8409#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008410/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008411 builtin and then its argument prototype would still apply. */
8412char XmuCreateStippledPixmap ();
8413int
8414main ()
8415{
8416XmuCreateStippledPixmap ();
8417 ;
8418 return 0;
8419}
8420_ACEOF
8421rm -f conftest.$ac_objext conftest$ac_exeext
8422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423 (eval $ac_link) 2>conftest.er1
8424 ac_status=$?
8425 grep -v '^ *+' conftest.er1 >conftest.err
8426 rm -f conftest.er1
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } &&
8430 { ac_try='test -z "$ac_c_werror_flag"
8431 || test ! -s conftest.err'
8432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 (eval $ac_try) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }; } &&
8437 { ac_try='test -s conftest$ac_exeext'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008444else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008445 echo "$as_me: failed program was:" >&5
8446sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008447
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008448ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008449fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008450rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452LIBS=$ac_check_lib_save_LIBS
8453fi
8454echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8455echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8456if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008457 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008458fi
8459
8460 if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008461 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8462echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8463if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008465else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008466 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008467LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008468cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h. */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h. */
8474
Bram Moolenaar071d4272004-06-13 20:20:40 +00008475/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008476#ifdef __cplusplus
8477extern "C"
8478#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008479/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008480 builtin and then its argument prototype would still apply. */
8481char XpEndJob ();
8482int
8483main ()
8484{
8485XpEndJob ();
8486 ;
8487 return 0;
8488}
8489_ACEOF
8490rm -f conftest.$ac_objext conftest$ac_exeext
8491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8492 (eval $ac_link) 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -z "$ac_c_werror_flag"
8500 || test ! -s conftest.err'
8501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8502 (eval $ac_try) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); }; } &&
8506 { ac_try='test -s conftest$ac_exeext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 (eval $ac_try) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_lib_Xp_XpEndJob=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008513else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008514 echo "$as_me: failed program was:" >&5
8515sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008516
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008517ac_cv_lib_Xp_XpEndJob=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008518fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008519rm -f conftest.err conftest.$ac_objext \
8520 conftest$ac_exeext conftest.$ac_ext
8521LIBS=$ac_check_lib_save_LIBS
8522fi
8523echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8524echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8525if test $ac_cv_lib_Xp_XpEndJob = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008526 GUI_X_LIBS="-lXp $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008527fi
8528
8529 fi
8530 LDFLAGS=$ldflags_save
8531
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008532 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8533echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008534 NARROW_PROTO=
8535 rm -fr conftestdir
8536 if mkdir conftestdir; then
8537 cd conftestdir
8538 cat > Imakefile <<'EOF'
8539acfindx:
8540 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8541EOF
8542 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8543 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8544 fi
8545 cd ..
8546 rm -fr conftestdir
8547 fi
8548 if test -z "$NARROW_PROTO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008549 echo "$as_me:$LINENO: result: no" >&5
8550echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008551 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008552 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8553echo "${ECHO_T}$NARROW_PROTO" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008554 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008555
Bram Moolenaar071d4272004-06-13 20:20:40 +00008556fi
8557
8558if test "$enable_xsmp" = "yes"; then
8559 cppflags_save=$CPPFLAGS
8560 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008561
8562for ac_header in X11/SM/SMlib.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008563do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8565if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566 echo "$as_me:$LINENO: checking for $ac_header" >&5
8567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8568if eval "test \"\${$as_ac_Header+set}\" = set"; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008570fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008573else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008574 # Is the header compilable?
8575echo "$as_me:$LINENO: checking $ac_header usability" >&5
8576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8577cat >conftest.$ac_ext <<_ACEOF
8578/* confdefs.h. */
8579_ACEOF
8580cat confdefs.h >>conftest.$ac_ext
8581cat >>conftest.$ac_ext <<_ACEOF
8582/* end confdefs.h. */
8583$ac_includes_default
8584#include <$ac_header>
8585_ACEOF
8586rm -f conftest.$ac_objext
8587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588 (eval $ac_compile) 2>conftest.er1
8589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -z "$ac_c_werror_flag"
8596 || test ! -s conftest.err'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 (eval $ac_try) 2>&5
8599 ac_status=$?
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest.$ac_objext'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 (eval $ac_try) 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; }; then
8608 ac_header_compiler=yes
8609else
8610 echo "$as_me: failed program was:" >&5
8611sed 's/^/| /' conftest.$ac_ext >&5
8612
8613ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008614fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8616echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8617echo "${ECHO_T}$ac_header_compiler" >&6
8618
8619# Is the header present?
8620echo "$as_me:$LINENO: checking $ac_header presence" >&5
8621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8622cat >conftest.$ac_ext <<_ACEOF
8623/* confdefs.h. */
8624_ACEOF
8625cat confdefs.h >>conftest.$ac_ext
8626cat >>conftest.$ac_ext <<_ACEOF
8627/* end confdefs.h. */
8628#include <$ac_header>
8629_ACEOF
8630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8632 ac_status=$?
8633 grep -v '^ *+' conftest.er1 >conftest.err
8634 rm -f conftest.er1
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } >/dev/null; then
8638 if test -s conftest.err; then
8639 ac_cpp_err=$ac_c_preproc_warn_flag
8640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8641 else
8642 ac_cpp_err=
8643 fi
8644else
8645 ac_cpp_err=yes
8646fi
8647if test -z "$ac_cpp_err"; then
8648 ac_header_preproc=yes
8649else
8650 echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653 ac_header_preproc=no
8654fi
8655rm -f conftest.err conftest.$ac_ext
8656echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8657echo "${ECHO_T}$ac_header_preproc" >&6
8658
8659# So? What about this header?
8660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8661 yes:no: )
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8663echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8665echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8666 ac_header_preproc=yes
8667 ;;
8668 no:yes:* )
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8670echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8672echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8674echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8676echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8678echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8680echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8681 (
8682 cat <<\_ASBOX
8683## ------------------------------------------ ##
8684## Report this to the AC_PACKAGE_NAME lists. ##
8685## ------------------------------------------ ##
8686_ASBOX
8687 ) |
8688 sed "s/^/$as_me: WARNING: /" >&2
8689 ;;
8690esac
8691echo "$as_me:$LINENO: checking for $ac_header" >&5
8692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8693if eval "test \"\${$as_ac_Header+set}\" = set"; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8695else
8696 eval "$as_ac_Header=\$ac_header_preproc"
8697fi
8698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8700
8701fi
8702if test `eval echo '${'$as_ac_Header'}'` = yes; then
8703 cat >>confdefs.h <<_ACEOF
8704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8705_ACEOF
8706
8707fi
8708
Bram Moolenaar071d4272004-06-13 20:20:40 +00008709done
8710
8711 CPPFLAGS=$cppflags_save
8712fi
8713
8714
8715if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8716 cppflags_save=$CPPFLAGS
8717 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008718
8719
8720for ac_header in X11/xpm.h X11/Sunkeysym.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008721do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008722as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8723if eval "test \"\${$as_ac_Header+set}\" = set"; then
8724 echo "$as_me:$LINENO: checking for $ac_header" >&5
8725echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8726if eval "test \"\${$as_ac_Header+set}\" = set"; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008728fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008731else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008732 # Is the header compilable?
8733echo "$as_me:$LINENO: checking $ac_header usability" >&5
8734echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8735cat >conftest.$ac_ext <<_ACEOF
8736/* confdefs.h. */
8737_ACEOF
8738cat confdefs.h >>conftest.$ac_ext
8739cat >>conftest.$ac_ext <<_ACEOF
8740/* end confdefs.h. */
8741$ac_includes_default
8742#include <$ac_header>
8743_ACEOF
8744rm -f conftest.$ac_objext
8745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8746 (eval $ac_compile) 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -z "$ac_c_werror_flag"
8754 || test ! -s conftest.err'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest.$ac_objext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_header_compiler=yes
8767else
8768 echo "$as_me: failed program was:" >&5
8769sed 's/^/| /' conftest.$ac_ext >&5
8770
8771ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008772fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8774echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8775echo "${ECHO_T}$ac_header_compiler" >&6
8776
8777# Is the header present?
8778echo "$as_me:$LINENO: checking $ac_header presence" >&5
8779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8780cat >conftest.$ac_ext <<_ACEOF
8781/* confdefs.h. */
8782_ACEOF
8783cat confdefs.h >>conftest.$ac_ext
8784cat >>conftest.$ac_ext <<_ACEOF
8785/* end confdefs.h. */
8786#include <$ac_header>
8787_ACEOF
8788if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } >/dev/null; then
8796 if test -s conftest.err; then
8797 ac_cpp_err=$ac_c_preproc_warn_flag
8798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8799 else
8800 ac_cpp_err=
8801 fi
8802else
8803 ac_cpp_err=yes
8804fi
8805if test -z "$ac_cpp_err"; then
8806 ac_header_preproc=yes
8807else
8808 echo "$as_me: failed program was:" >&5
8809sed 's/^/| /' conftest.$ac_ext >&5
8810
8811 ac_header_preproc=no
8812fi
8813rm -f conftest.err conftest.$ac_ext
8814echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8815echo "${ECHO_T}$ac_header_preproc" >&6
8816
8817# So? What about this header?
8818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8819 yes:no: )
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8824 ac_header_preproc=yes
8825 ;;
8826 no:yes:* )
8827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8830echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8834echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8839 (
8840 cat <<\_ASBOX
8841## ------------------------------------------ ##
8842## Report this to the AC_PACKAGE_NAME lists. ##
8843## ------------------------------------------ ##
8844_ASBOX
8845 ) |
8846 sed "s/^/$as_me: WARNING: /" >&2
8847 ;;
8848esac
8849echo "$as_me:$LINENO: checking for $ac_header" >&5
8850echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8851if eval "test \"\${$as_ac_Header+set}\" = set"; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853else
8854 eval "$as_ac_Header=\$ac_header_preproc"
8855fi
8856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8858
8859fi
8860if test `eval echo '${'$as_ac_Header'}'` = yes; then
8861 cat >>confdefs.h <<_ACEOF
8862#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8863_ACEOF
8864
8865fi
8866
Bram Moolenaar071d4272004-06-13 20:20:40 +00008867done
8868
8869
8870 if test ! "$enable_xim" = "no"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008871 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8872echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8873 cat >conftest.$ac_ext <<_ACEOF
8874/* confdefs.h. */
8875_ACEOF
8876cat confdefs.h >>conftest.$ac_ext
8877cat >>conftest.$ac_ext <<_ACEOF
8878/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008879#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008880_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008882 $EGREP "XIMText" >/dev/null 2>&1; then
8883 echo "$as_me:$LINENO: result: yes" >&5
8884echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008885else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008886 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8887echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008888fi
8889rm -f conftest*
8890
8891 fi
8892 CPPFLAGS=$cppflags_save
8893
8894 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8895 -a "x$GUITYPE" != "xNONE" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008896 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8897echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008898 enable_xim="yes"
8899 fi
8900fi
8901
8902if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8903 cppflags_save=$CPPFLAGS
8904 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008905 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8906echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8907 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008908/* confdefs.h. */
8909_ACEOF
8910cat confdefs.h >>conftest.$ac_ext
8911cat >>conftest.$ac_ext <<_ACEOF
8912/* end confdefs.h. */
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008913
8914#include <X11/Intrinsic.h>
8915#include <X11/Xmu/Editres.h>
8916int
8917main ()
8918{
8919int i; i = 0;
8920 ;
8921 return 0;
8922}
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008923_ACEOF
8924rm -f conftest.$ac_objext
8925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8926 (eval $ac_compile) 2>conftest.er1
8927 ac_status=$?
8928 grep -v '^ *+' conftest.er1 >conftest.err
8929 rm -f conftest.er1
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } &&
8933 { ac_try='test -z "$ac_c_werror_flag"
8934 || test ! -s conftest.err'
8935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 (eval $ac_try) 2>&5
8937 ac_status=$?
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); }; } &&
8940 { ac_try='test -s conftest.$ac_objext'
8941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8942 (eval $ac_try) 2>&5
8943 ac_status=$?
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); }; }; then
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008946 echo "$as_me:$LINENO: result: yes" >&5
8947echo "${ECHO_T}yes" >&6
8948 cat >>confdefs.h <<\_ACEOF
8949#define HAVE_X11_XMU_EDITRES_H 1
8950_ACEOF
8951
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008952else
8953 echo "$as_me: failed program was:" >&5
8954sed 's/^/| /' conftest.$ac_ext >&5
8955
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008956echo "$as_me:$LINENO: result: no" >&5
8957echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008958fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008960 CPPFLAGS=$cppflags_save
8961fi
8962
8963if test -z "$SKIP_MOTIF"; then
8964 cppflags_save=$CPPFLAGS
8965 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008966
8967
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008968
8969
8970
8971
8972for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
8973 Xm/UnhighlightT.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008974do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8976if eval "test \"\${$as_ac_Header+set}\" = set"; then
8977 echo "$as_me:$LINENO: checking for $ac_header" >&5
8978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8979if eval "test \"\${$as_ac_Header+set}\" = set"; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008981fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008984else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008985 # Is the header compilable?
8986echo "$as_me:$LINENO: checking $ac_header usability" >&5
8987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8988cat >conftest.$ac_ext <<_ACEOF
8989/* confdefs.h. */
8990_ACEOF
8991cat confdefs.h >>conftest.$ac_ext
8992cat >>conftest.$ac_ext <<_ACEOF
8993/* end confdefs.h. */
8994$ac_includes_default
8995#include <$ac_header>
8996_ACEOF
8997rm -f conftest.$ac_objext
8998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999 (eval $ac_compile) 2>conftest.er1
9000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } &&
9006 { ac_try='test -z "$ac_c_werror_flag"
9007 || test ! -s conftest.err'
9008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 (eval $ac_try) 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); }; } &&
9013 { ac_try='test -s conftest.$ac_objext'
9014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 (eval $ac_try) 2>&5
9016 ac_status=$?
9017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 (exit $ac_status); }; }; then
9019 ac_header_compiler=yes
9020else
9021 echo "$as_me: failed program was:" >&5
9022sed 's/^/| /' conftest.$ac_ext >&5
9023
9024ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009025fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9027echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9028echo "${ECHO_T}$ac_header_compiler" >&6
9029
9030# Is the header present?
9031echo "$as_me:$LINENO: checking $ac_header presence" >&5
9032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9033cat >conftest.$ac_ext <<_ACEOF
9034/* confdefs.h. */
9035_ACEOF
9036cat confdefs.h >>conftest.$ac_ext
9037cat >>conftest.$ac_ext <<_ACEOF
9038/* end confdefs.h. */
9039#include <$ac_header>
9040_ACEOF
9041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9043 ac_status=$?
9044 grep -v '^ *+' conftest.er1 >conftest.err
9045 rm -f conftest.er1
9046 cat conftest.err >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); } >/dev/null; then
9049 if test -s conftest.err; then
9050 ac_cpp_err=$ac_c_preproc_warn_flag
9051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9052 else
9053 ac_cpp_err=
9054 fi
9055else
9056 ac_cpp_err=yes
9057fi
9058if test -z "$ac_cpp_err"; then
9059 ac_header_preproc=yes
9060else
9061 echo "$as_me: failed program was:" >&5
9062sed 's/^/| /' conftest.$ac_ext >&5
9063
9064 ac_header_preproc=no
9065fi
9066rm -f conftest.err conftest.$ac_ext
9067echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9068echo "${ECHO_T}$ac_header_preproc" >&6
9069
9070# So? What about this header?
9071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9072 yes:no: )
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9077 ac_header_preproc=yes
9078 ;;
9079 no:yes:* )
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9083echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9087echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9092 (
9093 cat <<\_ASBOX
9094## ------------------------------------------ ##
9095## Report this to the AC_PACKAGE_NAME lists. ##
9096## ------------------------------------------ ##
9097_ASBOX
9098 ) |
9099 sed "s/^/$as_me: WARNING: /" >&2
9100 ;;
9101esac
9102echo "$as_me:$LINENO: checking for $ac_header" >&5
9103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9104if eval "test \"\${$as_ac_Header+set}\" = set"; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9106else
9107 eval "$as_ac_Header=\$ac_header_preproc"
9108fi
9109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9111
9112fi
9113if test `eval echo '${'$as_ac_Header'}'` = yes; then
9114 cat >>confdefs.h <<_ACEOF
9115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9116_ACEOF
9117
9118fi
9119
Bram Moolenaar071d4272004-06-13 20:20:40 +00009120done
9121
9122 CPPFLAGS=$cppflags_save
9123fi
9124
9125if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009126 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9127echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009128 enable_xim="no"
9129fi
9130if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009131 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9132echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009133 enable_fontset="no"
9134fi
9135if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009136 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9137echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009138 enable_fontset="no"
9139fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009140
9141if test -z "$SKIP_PHOTON"; then
9142 GUITYPE=PHOTONGUI
9143fi
9144
9145
9146
9147
9148
9149
9150if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009151 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9152echo "$as_me: error: cannot use workshop without Motif" >&2;}
9153 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009154fi
9155
9156if test "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009157 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009158#define FEAT_XIM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009159_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009160
9161fi
9162if test "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009163 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009164#define FEAT_XFONTSET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009165_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009166
9167fi
9168
9169
9170
9171
9172if test "$enable_hangulinput" = "yes"; then
9173 if test "x$GUITYPE" = "xNONE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009174 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9175echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009176 enable_hangulinput=no
9177 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009178 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009179#define FEAT_HANGULIN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009180_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009181
9182 HANGULIN_SRC=hangulin.c
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009183
Bram Moolenaar071d4272004-06-13 20:20:40 +00009184 HANGULIN_OBJ=objects/hangulin.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009185
Bram Moolenaar071d4272004-06-13 20:20:40 +00009186 fi
9187fi
9188
9189
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009190echo "$as_me:$LINENO: checking quality of toupper" >&5
9191echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009192if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009193 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9194echo "$as_me: error: failed to compile test program" >&2;}
9195 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009196else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009197 cat >conftest.$ac_ext <<_ACEOF
9198/* confdefs.h. */
9199_ACEOF
9200cat confdefs.h >>conftest.$ac_ext
9201cat >>conftest.$ac_ext <<_ACEOF
9202/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009203#include <ctype.h>
9204main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009205_ACEOF
9206rm -f conftest$ac_exeext
9207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9208 (eval $ac_link) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213 (eval $ac_try) 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9217 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009218#define BROKEN_TOUPPER 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009219_ACEOF
9220 echo "$as_me:$LINENO: result: bad" >&5
9221echo "${ECHO_T}bad" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009222else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009223 echo "$as_me: program exited with status $ac_status" >&5
9224echo "$as_me: failed program was:" >&5
9225sed 's/^/| /' conftest.$ac_ext >&5
9226
9227( exit $ac_status )
9228echo "$as_me:$LINENO: result: good" >&5
9229echo "${ECHO_T}good" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009230fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009231rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009232fi
9233
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009234echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9235echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9236cat >conftest.$ac_ext <<_ACEOF
9237/* confdefs.h. */
9238_ACEOF
9239cat confdefs.h >>conftest.$ac_ext
9240cat >>conftest.$ac_ext <<_ACEOF
9241/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009242
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009243int
9244main ()
9245{
Bram Moolenaar071d4272004-06-13 20:20:40 +00009246printf("(" __DATE__ " " __TIME__ ")");
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009247 ;
9248 return 0;
9249}
9250_ACEOF
9251rm -f conftest.$ac_objext
9252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9253 (eval $ac_compile) 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag"
9261 || test ! -s conftest.err'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try='test -s conftest.$ac_objext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269 (eval $ac_try) 2>&5
9270 ac_status=$?
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9273 echo "$as_me:$LINENO: result: yes" >&5
9274echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009275#define HAVE_DATE_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009276_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009277
9278else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009279 echo "$as_me: failed program was:" >&5
9280sed 's/^/| /' conftest.$ac_ext >&5
9281
9282echo "$as_me:$LINENO: result: no" >&5
9283echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009284fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009286
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009287if test "${ac_cv_header_elf_h+set}" = set; then
9288 echo "$as_me:$LINENO: checking for elf.h" >&5
9289echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9290if test "${ac_cv_header_elf_h+set}" = set; then
9291 echo $ECHO_N "(cached) $ECHO_C" >&6
9292fi
9293echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9294echo "${ECHO_T}$ac_cv_header_elf_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009295else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009296 # Is the header compilable?
9297echo "$as_me:$LINENO: checking elf.h usability" >&5
9298echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9299cat >conftest.$ac_ext <<_ACEOF
9300/* confdefs.h. */
9301_ACEOF
9302cat confdefs.h >>conftest.$ac_ext
9303cat >>conftest.$ac_ext <<_ACEOF
9304/* end confdefs.h. */
9305$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +00009306#include <elf.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009307_ACEOF
9308rm -f conftest.$ac_objext
9309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9310 (eval $ac_compile) 2>conftest.er1
9311 ac_status=$?
9312 grep -v '^ *+' conftest.er1 >conftest.err
9313 rm -f conftest.er1
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -z "$ac_c_werror_flag"
9318 || test ! -s conftest.err'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 (eval $ac_try) 2>&5
9321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest.$ac_objext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326 (eval $ac_try) 2>&5
9327 ac_status=$?
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009331else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009332 echo "$as_me: failed program was:" >&5
9333sed 's/^/| /' conftest.$ac_ext >&5
9334
9335ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009336fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9338echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9339echo "${ECHO_T}$ac_header_compiler" >&6
9340
9341# Is the header present?
9342echo "$as_me:$LINENO: checking elf.h presence" >&5
9343echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9344cat >conftest.$ac_ext <<_ACEOF
9345/* confdefs.h. */
9346_ACEOF
9347cat confdefs.h >>conftest.$ac_ext
9348cat >>conftest.$ac_ext <<_ACEOF
9349/* end confdefs.h. */
9350#include <elf.h>
9351_ACEOF
9352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9354 ac_status=$?
9355 grep -v '^ *+' conftest.er1 >conftest.err
9356 rm -f conftest.er1
9357 cat conftest.err >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); } >/dev/null; then
9360 if test -s conftest.err; then
9361 ac_cpp_err=$ac_c_preproc_warn_flag
9362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9363 else
9364 ac_cpp_err=
9365 fi
9366else
9367 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009368fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009369if test -z "$ac_cpp_err"; then
9370 ac_header_preproc=yes
9371else
9372 echo "$as_me: failed program was:" >&5
9373sed 's/^/| /' conftest.$ac_ext >&5
9374
9375 ac_header_preproc=no
9376fi
9377rm -f conftest.err conftest.$ac_ext
9378echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9379echo "${ECHO_T}$ac_header_preproc" >&6
9380
9381# So? What about this header?
9382case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9383 yes:no: )
9384 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9385echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9386 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9387echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9388 ac_header_preproc=yes
9389 ;;
9390 no:yes:* )
9391 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9392echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9393 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9394echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9395 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9396echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9397 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9398echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9400echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9402echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9403 (
9404 cat <<\_ASBOX
9405## ------------------------------------------ ##
9406## Report this to the AC_PACKAGE_NAME lists. ##
9407## ------------------------------------------ ##
9408_ASBOX
9409 ) |
9410 sed "s/^/$as_me: WARNING: /" >&2
9411 ;;
9412esac
9413echo "$as_me:$LINENO: checking for elf.h" >&5
9414echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9415if test "${ac_cv_header_elf_h+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417else
9418 ac_cv_header_elf_h=$ac_header_preproc
9419fi
9420echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9421echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9422
9423fi
9424if test $ac_cv_header_elf_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009425 HAS_ELF=1
Bram Moolenaar071d4272004-06-13 20:20:40 +00009426fi
9427
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009428
Bram Moolenaar071d4272004-06-13 20:20:40 +00009429if test "$HAS_ELF" = 1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009430
9431echo "$as_me:$LINENO: checking for main in -lelf" >&5
9432echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9433if test "${ac_cv_lib_elf_main+set}" = set; then
9434 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009435else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009436 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009437LIBS="-lelf $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009438cat >conftest.$ac_ext <<_ACEOF
9439/* confdefs.h. */
9440_ACEOF
9441cat confdefs.h >>conftest.$ac_ext
9442cat >>conftest.$ac_ext <<_ACEOF
9443/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009444
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009445
9446int
9447main ()
9448{
9449main ();
9450 ;
9451 return 0;
9452}
9453_ACEOF
9454rm -f conftest.$ac_objext conftest$ac_exeext
9455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9456 (eval $ac_link) 2>conftest.er1
9457 ac_status=$?
9458 grep -v '^ *+' conftest.er1 >conftest.err
9459 rm -f conftest.er1
9460 cat conftest.err >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } &&
9463 { ac_try='test -z "$ac_c_werror_flag"
9464 || test ! -s conftest.err'
9465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9466 (eval $ac_try) 2>&5
9467 ac_status=$?
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }; } &&
9470 { ac_try='test -s conftest$ac_exeext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472 (eval $ac_try) 2>&5
9473 ac_status=$?
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 ac_cv_lib_elf_main=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009477else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009478 echo "$as_me: failed program was:" >&5
9479sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009480
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009481ac_cv_lib_elf_main=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009482fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009483rm -f conftest.err conftest.$ac_objext \
9484 conftest$ac_exeext conftest.$ac_ext
9485LIBS=$ac_check_lib_save_LIBS
9486fi
9487echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9488echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9489if test $ac_cv_lib_elf_main = yes; then
9490 cat >>confdefs.h <<_ACEOF
9491#define HAVE_LIBELF 1
9492_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009493
9494 LIBS="-lelf $LIBS"
9495
Bram Moolenaar071d4272004-06-13 20:20:40 +00009496fi
9497
9498fi
9499
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009500
9501
9502
9503
9504
Bram Moolenaar071d4272004-06-13 20:20:40 +00009505ac_header_dirent=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009506for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9507 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9508echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9509echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9510if eval "test \"\${$as_ac_Header+set}\" = set"; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009512else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009513 cat >conftest.$ac_ext <<_ACEOF
9514/* confdefs.h. */
9515_ACEOF
9516cat confdefs.h >>conftest.$ac_ext
9517cat >>conftest.$ac_ext <<_ACEOF
9518/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009519#include <sys/types.h>
9520#include <$ac_hdr>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009521
9522int
9523main ()
9524{
9525if ((DIR *) 0)
9526return 0;
9527 ;
9528 return 0;
9529}
9530_ACEOF
9531rm -f conftest.$ac_objext
9532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9533 (eval $ac_compile) 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -z "$ac_c_werror_flag"
9541 || test ! -s conftest.err'
9542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543 (eval $ac_try) 2>&5
9544 ac_status=$?
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); }; } &&
9547 { ac_try='test -s conftest.$ac_objext'
9548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9549 (eval $ac_try) 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9553 eval "$as_ac_Header=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009554else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009555 echo "$as_me: failed program was:" >&5
9556sed 's/^/| /' conftest.$ac_ext >&5
9557
9558eval "$as_ac_Header=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009559fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009561fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9564if test `eval echo '${'$as_ac_Header'}'` = yes; then
9565 cat >>confdefs.h <<_ACEOF
9566#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9567_ACEOF
9568
9569ac_header_dirent=$ac_hdr; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009570fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009571
Bram Moolenaar071d4272004-06-13 20:20:40 +00009572done
9573# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9574if test $ac_header_dirent = dirent.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009575 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9576echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9577if test "${ac_cv_search_opendir+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009579else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009580 ac_func_search_save_LIBS=$LIBS
9581ac_cv_search_opendir=no
9582cat >conftest.$ac_ext <<_ACEOF
9583/* confdefs.h. */
9584_ACEOF
9585cat confdefs.h >>conftest.$ac_ext
9586cat >>conftest.$ac_ext <<_ACEOF
9587/* end confdefs.h. */
9588
Bram Moolenaar071d4272004-06-13 20:20:40 +00009589/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009590#ifdef __cplusplus
9591extern "C"
9592#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009593/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009594 builtin and then its argument prototype would still apply. */
9595char opendir ();
9596int
9597main ()
9598{
9599opendir ();
9600 ;
9601 return 0;
9602}
9603_ACEOF
9604rm -f conftest.$ac_objext conftest$ac_exeext
9605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606 (eval $ac_link) 2>conftest.er1
9607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest$ac_exeext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 ac_cv_search_opendir="none required"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009627else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009628 echo "$as_me: failed program was:" >&5
9629sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009630
9631fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009632rm -f conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634if test "$ac_cv_search_opendir" = no; then
9635 for ac_lib in dir; do
9636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9637 cat >conftest.$ac_ext <<_ACEOF
9638/* confdefs.h. */
9639_ACEOF
9640cat confdefs.h >>conftest.$ac_ext
9641cat >>conftest.$ac_ext <<_ACEOF
9642/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009643
Bram Moolenaar071d4272004-06-13 20:20:40 +00009644/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009645#ifdef __cplusplus
9646extern "C"
9647#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009648/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009649 builtin and then its argument prototype would still apply. */
9650char opendir ();
9651int
9652main ()
9653{
9654opendir ();
9655 ;
9656 return 0;
9657}
9658_ACEOF
9659rm -f conftest.$ac_objext conftest$ac_exeext
9660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>conftest.er1
9662 ac_status=$?
9663 grep -v '^ *+' conftest.er1 >conftest.err
9664 rm -f conftest.er1
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -z "$ac_c_werror_flag"
9669 || test ! -s conftest.err'
9670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671 (eval $ac_try) 2>&5
9672 ac_status=$?
9673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674 (exit $ac_status); }; } &&
9675 { ac_try='test -s conftest$ac_exeext'
9676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677 (eval $ac_try) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_cv_search_opendir="-l$ac_lib"
9682break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009683else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009684 echo "$as_me: failed program was:" >&5
9685sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009686
9687fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009688rm -f conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690 done
9691fi
9692LIBS=$ac_func_search_save_LIBS
9693fi
9694echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9695echo "${ECHO_T}$ac_cv_search_opendir" >&6
9696if test "$ac_cv_search_opendir" != no; then
9697 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9698
9699fi
9700
Bram Moolenaar071d4272004-06-13 20:20:40 +00009701else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009702 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9703echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9704if test "${ac_cv_search_opendir+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009706else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009707 ac_func_search_save_LIBS=$LIBS
9708ac_cv_search_opendir=no
9709cat >conftest.$ac_ext <<_ACEOF
9710/* confdefs.h. */
9711_ACEOF
9712cat confdefs.h >>conftest.$ac_ext
9713cat >>conftest.$ac_ext <<_ACEOF
9714/* end confdefs.h. */
9715
9716/* Override any gcc2 internal prototype to avoid an error. */
9717#ifdef __cplusplus
9718extern "C"
9719#endif
9720/* We use char because int might match the return type of a gcc2
9721 builtin and then its argument prototype would still apply. */
9722char opendir ();
9723int
9724main ()
9725{
9726opendir ();
9727 ;
9728 return 0;
9729}
9730_ACEOF
9731rm -f conftest.$ac_objext conftest$ac_exeext
9732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9733 (eval $ac_link) 2>conftest.er1
9734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try='test -z "$ac_c_werror_flag"
9741 || test ! -s conftest.err'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest$ac_exeext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_search_opendir="none required"
9754else
9755 echo "$as_me: failed program was:" >&5
9756sed 's/^/| /' conftest.$ac_ext >&5
9757
9758fi
9759rm -f conftest.err conftest.$ac_objext \
9760 conftest$ac_exeext conftest.$ac_ext
9761if test "$ac_cv_search_opendir" = no; then
9762 for ac_lib in x; do
9763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9764 cat >conftest.$ac_ext <<_ACEOF
9765/* confdefs.h. */
9766_ACEOF
9767cat confdefs.h >>conftest.$ac_ext
9768cat >>conftest.$ac_ext <<_ACEOF
9769/* end confdefs.h. */
9770
9771/* Override any gcc2 internal prototype to avoid an error. */
9772#ifdef __cplusplus
9773extern "C"
9774#endif
9775/* We use char because int might match the return type of a gcc2
9776 builtin and then its argument prototype would still apply. */
9777char opendir ();
9778int
9779main ()
9780{
9781opendir ();
9782 ;
9783 return 0;
9784}
9785_ACEOF
9786rm -f conftest.$ac_objext conftest$ac_exeext
9787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9788 (eval $ac_link) 2>conftest.er1
9789 ac_status=$?
9790 grep -v '^ *+' conftest.er1 >conftest.err
9791 rm -f conftest.er1
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } &&
9795 { ac_try='test -z "$ac_c_werror_flag"
9796 || test ! -s conftest.err'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 (eval $ac_try) 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; } &&
9802 { ac_try='test -s conftest$ac_exeext'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 (eval $ac_try) 2>&5
9805 ac_status=$?
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9808 ac_cv_search_opendir="-l$ac_lib"
9809break
9810else
9811 echo "$as_me: failed program was:" >&5
9812sed 's/^/| /' conftest.$ac_ext >&5
9813
9814fi
9815rm -f conftest.err conftest.$ac_objext \
9816 conftest$ac_exeext conftest.$ac_ext
9817 done
9818fi
9819LIBS=$ac_func_search_save_LIBS
9820fi
9821echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9822echo "${ECHO_T}$ac_cv_search_opendir" >&6
9823if test "$ac_cv_search_opendir" != no; then
9824 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9825
9826fi
9827
9828fi
9829
9830
9831echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9832echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9833if test "${ac_cv_header_stdc+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9835else
9836 cat >conftest.$ac_ext <<_ACEOF
9837/* confdefs.h. */
9838_ACEOF
9839cat confdefs.h >>conftest.$ac_ext
9840cat >>conftest.$ac_ext <<_ACEOF
9841/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009842#include <stdlib.h>
9843#include <stdarg.h>
9844#include <string.h>
9845#include <float.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009846
9847int
9848main ()
9849{
9850
9851 ;
9852 return 0;
9853}
9854_ACEOF
9855rm -f conftest.$ac_objext
9856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857 (eval $ac_compile) 2>conftest.er1
9858 ac_status=$?
9859 grep -v '^ *+' conftest.er1 >conftest.err
9860 rm -f conftest.er1
9861 cat conftest.err >&5
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } &&
9864 { ac_try='test -z "$ac_c_werror_flag"
9865 || test ! -s conftest.err'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 (eval $ac_try) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 (eval $ac_try) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009877 ac_cv_header_stdc=yes
9878else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009879 echo "$as_me: failed program was:" >&5
9880sed 's/^/| /' conftest.$ac_ext >&5
9881
9882ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009883fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009885
9886if test $ac_cv_header_stdc = yes; then
9887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009888 cat >conftest.$ac_ext <<_ACEOF
9889/* confdefs.h. */
9890_ACEOF
9891cat confdefs.h >>conftest.$ac_ext
9892cat >>conftest.$ac_ext <<_ACEOF
9893/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009894#include <string.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009895
9896_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009897if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009898 $EGREP "memchr" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009899 :
9900else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009901 ac_cv_header_stdc=no
9902fi
9903rm -f conftest*
9904
9905fi
9906
9907if test $ac_cv_header_stdc = yes; then
9908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009909 cat >conftest.$ac_ext <<_ACEOF
9910/* confdefs.h. */
9911_ACEOF
9912cat confdefs.h >>conftest.$ac_ext
9913cat >>conftest.$ac_ext <<_ACEOF
9914/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009915#include <stdlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009916
9917_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009918if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009919 $EGREP "free" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009920 :
9921else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009922 ac_cv_header_stdc=no
9923fi
9924rm -f conftest*
9925
9926fi
9927
9928if test $ac_cv_header_stdc = yes; then
9929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009930 if test "$cross_compiling" = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009931 :
9932else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009933 cat >conftest.$ac_ext <<_ACEOF
9934/* confdefs.h. */
9935_ACEOF
9936cat confdefs.h >>conftest.$ac_ext
9937cat >>conftest.$ac_ext <<_ACEOF
9938/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009939#include <ctype.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009940#if ((' ' & 0x0FF) == 0x020)
9941# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9942# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9943#else
9944# define ISLOWER(c) \
9945 (('a' <= (c) && (c) <= 'i') \
9946 || ('j' <= (c) && (c) <= 'r') \
9947 || ('s' <= (c) && (c) <= 'z'))
9948# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9949#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009950
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009951#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9952int
9953main ()
9954{
9955 int i;
9956 for (i = 0; i < 256; i++)
9957 if (XOR (islower (i), ISLOWER (i))
9958 || toupper (i) != TOUPPER (i))
9959 exit(2);
9960 exit (0);
9961}
9962_ACEOF
9963rm -f conftest$ac_exeext
9964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9965 (eval $ac_link) 2>&5
9966 ac_status=$?
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 (eval $ac_try) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009974 :
9975else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009976 echo "$as_me: program exited with status $ac_status" >&5
9977echo "$as_me: failed program was:" >&5
9978sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009979
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009980( exit $ac_status )
9981ac_cv_header_stdc=no
9982fi
9983rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009984fi
9985fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009986fi
9987echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9988echo "${ECHO_T}$ac_cv_header_stdc" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009989if test $ac_cv_header_stdc = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009990
9991cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009992#define STDC_HEADERS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009993_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009994
9995fi
9996
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009997echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9998echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9999if test "${ac_cv_header_sys_wait_h+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010001else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010002 cat >conftest.$ac_ext <<_ACEOF
10003/* confdefs.h. */
10004_ACEOF
10005cat confdefs.h >>conftest.$ac_ext
10006cat >>conftest.$ac_ext <<_ACEOF
10007/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010008#include <sys/types.h>
10009#include <sys/wait.h>
10010#ifndef WEXITSTATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010011# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010012#endif
10013#ifndef WIFEXITED
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010014# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010015#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010016
10017int
10018main ()
10019{
10020 int s;
10021 wait (&s);
10022 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10023 ;
10024 return 0;
10025}
10026_ACEOF
10027rm -f conftest.$ac_objext
10028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10029 (eval $ac_compile) 2>conftest.er1
10030 ac_status=$?
10031 grep -v '^ *+' conftest.er1 >conftest.err
10032 rm -f conftest.er1
10033 cat conftest.err >&5
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -z "$ac_c_werror_flag"
10037 || test ! -s conftest.err'
10038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10039 (eval $ac_try) 2>&5
10040 ac_status=$?
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); }; } &&
10043 { ac_try='test -s conftest.$ac_objext'
10044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045 (eval $ac_try) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010049 ac_cv_header_sys_wait_h=yes
10050else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010051 echo "$as_me: failed program was:" >&5
10052sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010053
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010054ac_cv_header_sys_wait_h=no
10055fi
10056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10057fi
10058echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10059echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010060if test $ac_cv_header_sys_wait_h = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010061
10062cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010063#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010064_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010065
10066fi
10067
10068
10069if test $ac_cv_header_sys_wait_h = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010070 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10071echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10072 cat >conftest.$ac_ext <<_ACEOF
10073/* confdefs.h. */
10074_ACEOF
10075cat confdefs.h >>conftest.$ac_ext
10076cat >>conftest.$ac_ext <<_ACEOF
10077/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010078#include <sys/wait.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010079int
10080main ()
10081{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010082union wait xx, yy; xx = yy
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010083 ;
10084 return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext
10088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10089 (eval $ac_compile) 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag"
10097 || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest.$ac_objext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 echo "$as_me:$LINENO: result: yes" >&5
10110echo "${ECHO_T}yes" >&6
10111 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010112#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010113_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010114
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010115 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010116#define HAVE_UNION_WAIT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010117_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010118
10119else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010120 echo "$as_me: failed program was:" >&5
10121sed 's/^/| /' conftest.$ac_ext >&5
10122
10123echo "$as_me:$LINENO: result: no" >&5
10124echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010125fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010127fi
10128
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
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
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010168
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010169for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010170 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10171 iconv.h langinfo.h unistd.h stropts.h errno.h \
10172 sys/resource.h sys/systeminfo.h locale.h \
10173 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10174 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010175 libgen.h util/debug.h util/msg18n.h frame.h \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010176 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010177do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10179if eval "test \"\${$as_ac_Header+set}\" = set"; then
10180 echo "$as_me:$LINENO: checking for $ac_header" >&5
10181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10182if eval "test \"\${$as_ac_Header+set}\" = set"; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010184fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010187else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010188 # Is the header compilable?
10189echo "$as_me:$LINENO: checking $ac_header usability" >&5
10190echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10191cat >conftest.$ac_ext <<_ACEOF
10192/* confdefs.h. */
10193_ACEOF
10194cat confdefs.h >>conftest.$ac_ext
10195cat >>conftest.$ac_ext <<_ACEOF
10196/* end confdefs.h. */
10197$ac_includes_default
10198#include <$ac_header>
10199_ACEOF
10200rm -f conftest.$ac_objext
10201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest.$ac_objext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_header_compiler=yes
10223else
10224 echo "$as_me: failed program was:" >&5
10225sed 's/^/| /' conftest.$ac_ext >&5
10226
10227ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010228fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10230echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10231echo "${ECHO_T}$ac_header_compiler" >&6
10232
10233# Is the header present?
10234echo "$as_me:$LINENO: checking $ac_header presence" >&5
10235echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10236cat >conftest.$ac_ext <<_ACEOF
10237/* confdefs.h. */
10238_ACEOF
10239cat confdefs.h >>conftest.$ac_ext
10240cat >>conftest.$ac_ext <<_ACEOF
10241/* end confdefs.h. */
10242#include <$ac_header>
10243_ACEOF
10244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } >/dev/null; then
10252 if test -s conftest.err; then
10253 ac_cpp_err=$ac_c_preproc_warn_flag
10254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10255 else
10256 ac_cpp_err=
10257 fi
10258else
10259 ac_cpp_err=yes
10260fi
10261if test -z "$ac_cpp_err"; then
10262 ac_header_preproc=yes
10263else
10264 echo "$as_me: failed program was:" >&5
10265sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 ac_header_preproc=no
10268fi
10269rm -f conftest.err conftest.$ac_ext
10270echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10271echo "${ECHO_T}$ac_header_preproc" >&6
10272
10273# So? What about this header?
10274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10275 yes:no: )
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10280 ac_header_preproc=yes
10281 ;;
10282 no:yes:* )
10283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10290echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10295 (
10296 cat <<\_ASBOX
10297## ------------------------------------------ ##
10298## Report this to the AC_PACKAGE_NAME lists. ##
10299## ------------------------------------------ ##
10300_ASBOX
10301 ) |
10302 sed "s/^/$as_me: WARNING: /" >&2
10303 ;;
10304esac
10305echo "$as_me:$LINENO: checking for $ac_header" >&5
10306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10307if eval "test \"\${$as_ac_Header+set}\" = set"; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10309else
10310 eval "$as_ac_Header=\$ac_header_preproc"
10311fi
10312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10314
10315fi
10316if test `eval echo '${'$as_ac_Header'}'` = yes; then
10317 cat >>confdefs.h <<_ACEOF
10318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10319_ACEOF
10320
10321fi
10322
Bram Moolenaar071d4272004-06-13 20:20:40 +000010323done
10324
10325
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010326echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10327echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10328cat >conftest.$ac_ext <<_ACEOF
10329/* confdefs.h. */
10330_ACEOF
10331cat confdefs.h >>conftest.$ac_ext
10332cat >>conftest.$ac_ext <<_ACEOF
10333/* end confdefs.h. */
10334
10335#include <pthread.h>
10336#include <pthread_np.h>
10337int
10338main ()
10339{
10340int i; i = 0;
10341 ;
10342 return 0;
10343}
10344_ACEOF
10345rm -f conftest.$ac_objext
10346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10347 (eval $ac_compile) 2>conftest.er1
10348 ac_status=$?
10349 grep -v '^ *+' conftest.er1 >conftest.err
10350 rm -f conftest.er1
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_c_werror_flag"
10355 || test ! -s conftest.err'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10358 ac_status=$?
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; } &&
10361 { ac_try='test -s conftest.$ac_objext'
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; }; then
10367 echo "$as_me:$LINENO: result: yes" >&5
10368echo "${ECHO_T}yes" >&6
10369 cat >>confdefs.h <<\_ACEOF
10370#define HAVE_PTHREAD_NP_H 1
10371_ACEOF
10372
10373else
10374 echo "$as_me: failed program was:" >&5
10375sed 's/^/| /' conftest.$ac_ext >&5
10376
10377echo "$as_me:$LINENO: result: no" >&5
10378echo "${ECHO_T}no" >&6
10379fi
10380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10381
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010382
10383for ac_header in strings.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010384do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10386if eval "test \"\${$as_ac_Header+set}\" = set"; then
10387 echo "$as_me:$LINENO: checking for $ac_header" >&5
10388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10389if eval "test \"\${$as_ac_Header+set}\" = set"; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010391fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10393echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010394else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010395 # Is the header compilable?
10396echo "$as_me:$LINENO: checking $ac_header usability" >&5
10397echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10398cat >conftest.$ac_ext <<_ACEOF
10399/* confdefs.h. */
10400_ACEOF
10401cat confdefs.h >>conftest.$ac_ext
10402cat >>conftest.$ac_ext <<_ACEOF
10403/* end confdefs.h. */
10404$ac_includes_default
10405#include <$ac_header>
10406_ACEOF
10407rm -f conftest.$ac_objext
10408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409 (eval $ac_compile) 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } &&
10416 { ac_try='test -z "$ac_c_werror_flag"
10417 || test ! -s conftest.err'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; } &&
10423 { ac_try='test -s conftest.$ac_objext'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 ac_header_compiler=yes
10430else
10431 echo "$as_me: failed program was:" >&5
10432sed 's/^/| /' conftest.$ac_ext >&5
10433
10434ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010435fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10437echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10438echo "${ECHO_T}$ac_header_compiler" >&6
10439
10440# Is the header present?
10441echo "$as_me:$LINENO: checking $ac_header presence" >&5
10442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10443cat >conftest.$ac_ext <<_ACEOF
10444/* confdefs.h. */
10445_ACEOF
10446cat confdefs.h >>conftest.$ac_ext
10447cat >>conftest.$ac_ext <<_ACEOF
10448/* end confdefs.h. */
10449#include <$ac_header>
10450_ACEOF
10451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } >/dev/null; then
10459 if test -s conftest.err; then
10460 ac_cpp_err=$ac_c_preproc_warn_flag
10461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10462 else
10463 ac_cpp_err=
10464 fi
10465else
10466 ac_cpp_err=yes
10467fi
10468if test -z "$ac_cpp_err"; then
10469 ac_header_preproc=yes
10470else
10471 echo "$as_me: failed program was:" >&5
10472sed 's/^/| /' conftest.$ac_ext >&5
10473
10474 ac_header_preproc=no
10475fi
10476rm -f conftest.err conftest.$ac_ext
10477echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10478echo "${ECHO_T}$ac_header_preproc" >&6
10479
10480# So? What about this header?
10481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10482 yes:no: )
10483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10487 ac_header_preproc=yes
10488 ;;
10489 no:yes:* )
10490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10502 (
10503 cat <<\_ASBOX
10504## ------------------------------------------ ##
10505## Report this to the AC_PACKAGE_NAME lists. ##
10506## ------------------------------------------ ##
10507_ASBOX
10508 ) |
10509 sed "s/^/$as_me: WARNING: /" >&2
10510 ;;
10511esac
10512echo "$as_me:$LINENO: checking for $ac_header" >&5
10513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10514if eval "test \"\${$as_ac_Header+set}\" = set"; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10516else
10517 eval "$as_ac_Header=\$ac_header_preproc"
10518fi
10519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10521
10522fi
10523if test `eval echo '${'$as_ac_Header'}'` = yes; then
10524 cat >>confdefs.h <<_ACEOF
10525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10526_ACEOF
10527
10528fi
10529
Bram Moolenaar071d4272004-06-13 20:20:40 +000010530done
10531
Bram Moolenaar9372a112005-12-06 19:59:18 +000010532if test "x$MACOSX" = "xyes"; then
10533 cat >>confdefs.h <<\_ACEOF
10534#define NO_STRINGS_WITH_STRING_H 1
10535_ACEOF
10536
10537else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010538
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010539echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10540echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010541cppflags_save=$CPPFLAGS
10542CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010543cat >conftest.$ac_ext <<_ACEOF
10544/* confdefs.h. */
10545_ACEOF
10546cat confdefs.h >>conftest.$ac_ext
10547cat >>conftest.$ac_ext <<_ACEOF
10548/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010549
10550#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10551# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10552 /* but don't do it on AIX 5.1 (Uribarri) */
10553#endif
10554#ifdef HAVE_XM_XM_H
10555# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10556#endif
10557#ifdef HAVE_STRING_H
10558# include <string.h>
10559#endif
10560#if defined(HAVE_STRINGS_H)
10561# include <strings.h>
10562#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010563
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010564int
10565main ()
10566{
10567int i; i = 0;
10568 ;
10569 return 0;
10570}
10571_ACEOF
10572rm -f conftest.$ac_objext
10573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10574 (eval $ac_compile) 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
10581 { ac_try='test -z "$ac_c_werror_flag"
10582 || test ! -s conftest.err'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; } &&
10588 { ac_try='test -s conftest.$ac_objext'
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; }; then
10594 echo "$as_me:$LINENO: result: yes" >&5
10595echo "${ECHO_T}yes" >&6
10596else
10597 echo "$as_me: failed program was:" >&5
10598sed 's/^/| /' conftest.$ac_ext >&5
10599
10600cat >>confdefs.h <<\_ACEOF
10601#define NO_STRINGS_WITH_STRING_H 1
10602_ACEOF
10603
10604 echo "$as_me:$LINENO: result: no" >&5
10605echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010606fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010608CPPFLAGS=$cppflags_save
Bram Moolenaar9372a112005-12-06 19:59:18 +000010609fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000010610
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010611if test $ac_cv_c_compiler_gnu = yes; then
10612 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10613echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10614if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010616else
10617 ac_pattern="Autoconf.*'x'"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010618 cat >conftest.$ac_ext <<_ACEOF
10619/* confdefs.h. */
10620_ACEOF
10621cat confdefs.h >>conftest.$ac_ext
10622cat >>conftest.$ac_ext <<_ACEOF
10623/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010624#include <sgtty.h>
10625Autoconf TIOCGETP
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010626_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010628 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010629 ac_cv_prog_gcc_traditional=yes
10630else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010631 ac_cv_prog_gcc_traditional=no
10632fi
10633rm -f conftest*
10634
10635
10636 if test $ac_cv_prog_gcc_traditional = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010637 cat >conftest.$ac_ext <<_ACEOF
10638/* confdefs.h. */
10639_ACEOF
10640cat confdefs.h >>conftest.$ac_ext
10641cat >>conftest.$ac_ext <<_ACEOF
10642/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010643#include <termio.h>
10644Autoconf TCGETA
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010645_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010647 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010648 ac_cv_prog_gcc_traditional=yes
10649fi
10650rm -f conftest*
10651
10652 fi
10653fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010654echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10655echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010656 if test $ac_cv_prog_gcc_traditional = yes; then
10657 CC="$CC -traditional"
10658 fi
10659fi
10660
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010661echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10662echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10663if test "${ac_cv_c_const+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010665else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010666 cat >conftest.$ac_ext <<_ACEOF
10667/* confdefs.h. */
10668_ACEOF
10669cat confdefs.h >>conftest.$ac_ext
10670cat >>conftest.$ac_ext <<_ACEOF
10671/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010672
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010673int
10674main ()
10675{
10676/* FIXME: Include the comments suggested by Paul. */
10677#ifndef __cplusplus
10678 /* Ultrix mips cc rejects this. */
10679 typedef int charset[2];
10680 const charset x;
10681 /* SunOS 4.1.1 cc rejects this. */
10682 char const *const *ccp;
10683 char **p;
10684 /* NEC SVR4.0.2 mips cc rejects this. */
10685 struct point {int x, y;};
10686 static struct point const zero = {0,0};
10687 /* AIX XL C 1.02.0.0 rejects this.
10688 It does not let you subtract one const X* pointer from another in
10689 an arm of an if-expression whose if-part is not a constant
10690 expression */
10691 const char *g = "string";
10692 ccp = &g + (g ? g-g : 0);
10693 /* HPUX 7.0 cc rejects these. */
10694 ++ccp;
10695 p = (char**) ccp;
10696 ccp = (char const *const *) p;
10697 { /* SCO 3.2v4 cc rejects this. */
10698 char *t;
10699 char const *s = 0 ? (char *) 0 : (char const *) 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010700
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010701 *t++ = 0;
10702 }
10703 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10704 int x[] = {25, 17};
10705 const int *foo = &x[0];
10706 ++foo;
10707 }
10708 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10709 typedef const int *iptr;
10710 iptr p = 0;
10711 ++p;
10712 }
10713 { /* AIX XL C 1.02.0.0 rejects this saying
10714 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10715 struct s { int j; const int *ap[3]; };
10716 struct s *b; b->j = 5;
10717 }
10718 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10719 const int foo = 10;
10720 }
10721#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010722
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010723 ;
10724 return 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010725}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010726_ACEOF
10727rm -f conftest.$ac_objext
10728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10729 (eval $ac_compile) 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } &&
10736 { ac_try='test -z "$ac_c_werror_flag"
10737 || test ! -s conftest.err'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest.$ac_objext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10746 ac_status=$?
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010749 ac_cv_c_const=yes
10750else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010751 echo "$as_me: failed program was:" >&5
10752sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010753
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010754ac_cv_c_const=no
10755fi
10756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10757fi
10758echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10759echo "${ECHO_T}$ac_cv_c_const" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010760if test $ac_cv_c_const = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010761
10762cat >>confdefs.h <<\_ACEOF
10763#define const
10764_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010765
10766fi
10767
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010768echo "$as_me:$LINENO: checking for mode_t" >&5
10769echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10770if test "${ac_cv_type_mode_t+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010772else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010773 cat >conftest.$ac_ext <<_ACEOF
10774/* confdefs.h. */
10775_ACEOF
10776cat confdefs.h >>conftest.$ac_ext
10777cat >>conftest.$ac_ext <<_ACEOF
10778/* end confdefs.h. */
10779$ac_includes_default
10780int
10781main ()
10782{
10783if ((mode_t *) 0)
10784 return 0;
10785if (sizeof (mode_t))
10786 return 0;
10787 ;
10788 return 0;
10789}
10790_ACEOF
10791rm -f conftest.$ac_objext
10792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10793 (eval $ac_compile) 2>conftest.er1
10794 ac_status=$?
10795 grep -v '^ *+' conftest.er1 >conftest.err
10796 rm -f conftest.er1
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } &&
10800 { ac_try='test -z "$ac_c_werror_flag"
10801 || test ! -s conftest.err'
10802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803 (eval $ac_try) 2>&5
10804 ac_status=$?
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; } &&
10807 { ac_try='test -s conftest.$ac_objext'
10808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809 (eval $ac_try) 2>&5
10810 ac_status=$?
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010813 ac_cv_type_mode_t=yes
10814else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010815 echo "$as_me: failed program was:" >&5
10816sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010817
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010818ac_cv_type_mode_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010819fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010821fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010822echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10823echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10824if test $ac_cv_type_mode_t = yes; then
10825 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010826else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010827
10828cat >>confdefs.h <<_ACEOF
10829#define mode_t int
10830_ACEOF
10831
10832fi
10833
10834echo "$as_me:$LINENO: checking for off_t" >&5
10835echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10836if test "${ac_cv_type_off_t+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10838else
10839 cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h. */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h. */
10845$ac_includes_default
10846int
10847main ()
10848{
10849if ((off_t *) 0)
10850 return 0;
10851if (sizeof (off_t))
10852 return 0;
10853 ;
10854 return 0;
10855}
10856_ACEOF
10857rm -f conftest.$ac_objext
10858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10859 (eval $ac_compile) 2>conftest.er1
10860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } &&
10866 { ac_try='test -z "$ac_c_werror_flag"
10867 || test ! -s conftest.err'
10868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869 (eval $ac_try) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; } &&
10873 { ac_try='test -s conftest.$ac_objext'
10874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10875 (eval $ac_try) 2>&5
10876 ac_status=$?
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010879 ac_cv_type_off_t=yes
10880else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010881 echo "$as_me: failed program was:" >&5
10882sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010883
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010884ac_cv_type_off_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010885fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010887fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010888echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10889echo "${ECHO_T}$ac_cv_type_off_t" >&6
10890if test $ac_cv_type_off_t = yes; then
10891 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010892else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010893
10894cat >>confdefs.h <<_ACEOF
10895#define off_t long
10896_ACEOF
10897
10898fi
10899
10900echo "$as_me:$LINENO: checking for pid_t" >&5
10901echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10902if test "${ac_cv_type_pid_t+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904else
10905 cat >conftest.$ac_ext <<_ACEOF
10906/* confdefs.h. */
10907_ACEOF
10908cat confdefs.h >>conftest.$ac_ext
10909cat >>conftest.$ac_ext <<_ACEOF
10910/* end confdefs.h. */
10911$ac_includes_default
10912int
10913main ()
10914{
10915if ((pid_t *) 0)
10916 return 0;
10917if (sizeof (pid_t))
10918 return 0;
10919 ;
10920 return 0;
10921}
10922_ACEOF
10923rm -f conftest.$ac_objext
10924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925 (eval $ac_compile) 2>conftest.er1
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -z "$ac_c_werror_flag"
10933 || test ! -s conftest.err'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; } &&
10939 { ac_try='test -s conftest.$ac_objext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010945 ac_cv_type_pid_t=yes
10946else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010947 echo "$as_me: failed program was:" >&5
10948sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010949
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010950ac_cv_type_pid_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010951fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010953fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010954echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10955echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10956if test $ac_cv_type_pid_t = yes; then
10957 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010958else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010959
10960cat >>confdefs.h <<_ACEOF
10961#define pid_t int
10962_ACEOF
10963
10964fi
10965
10966echo "$as_me:$LINENO: checking for size_t" >&5
10967echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10968if test "${ac_cv_type_size_t+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970else
10971 cat >conftest.$ac_ext <<_ACEOF
10972/* confdefs.h. */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
10976/* end confdefs.h. */
10977$ac_includes_default
10978int
10979main ()
10980{
10981if ((size_t *) 0)
10982 return 0;
10983if (sizeof (size_t))
10984 return 0;
10985 ;
10986 return 0;
10987}
10988_ACEOF
10989rm -f conftest.$ac_objext
10990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10991 (eval $ac_compile) 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag"
10999 || test ! -s conftest.err'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest.$ac_objext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011011 ac_cv_type_size_t=yes
11012else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011013 echo "$as_me: failed program was:" >&5
11014sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011015
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011016ac_cv_type_size_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011017fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011019fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011020echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11021echo "${ECHO_T}$ac_cv_type_size_t" >&6
11022if test $ac_cv_type_size_t = yes; then
11023 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011024else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011025
11026cat >>confdefs.h <<_ACEOF
11027#define size_t unsigned
11028_ACEOF
11029
11030fi
11031
11032echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11033echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11034if test "${ac_cv_type_uid_t+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036else
11037 cat >conftest.$ac_ext <<_ACEOF
11038/* confdefs.h. */
11039_ACEOF
11040cat confdefs.h >>conftest.$ac_ext
11041cat >>conftest.$ac_ext <<_ACEOF
11042/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011043#include <sys/types.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011044
11045_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011047 $EGREP "uid_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011048 ac_cv_type_uid_t=yes
11049else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011050 ac_cv_type_uid_t=no
11051fi
11052rm -f conftest*
11053
11054fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011055echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11056echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011057if test $ac_cv_type_uid_t = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011058
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011059cat >>confdefs.h <<\_ACEOF
11060#define uid_t int
11061_ACEOF
11062
11063
11064cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011065#define gid_t int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011066_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011067
11068fi
11069
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011070echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11071echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11072if test "${ac_cv_header_time+set}" = set; then
11073 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011074else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011075 cat >conftest.$ac_ext <<_ACEOF
11076/* confdefs.h. */
11077_ACEOF
11078cat confdefs.h >>conftest.$ac_ext
11079cat >>conftest.$ac_ext <<_ACEOF
11080/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011081#include <sys/types.h>
11082#include <sys/time.h>
11083#include <time.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011084
11085int
11086main ()
11087{
11088if ((struct tm *) 0)
11089return 0;
11090 ;
11091 return 0;
11092}
11093_ACEOF
11094rm -f conftest.$ac_objext
11095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096 (eval $ac_compile) 2>conftest.er1
11097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
11103 { ac_try='test -z "$ac_c_werror_flag"
11104 || test ! -s conftest.err'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11107 ac_status=$?
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; } &&
11110 { ac_try='test -s conftest.$ac_objext'
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011116 ac_cv_header_time=yes
11117else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011118 echo "$as_me: failed program was:" >&5
11119sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011120
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011121ac_cv_header_time=no
11122fi
11123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11124fi
11125echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11126echo "${ECHO_T}$ac_cv_header_time" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011127if test $ac_cv_header_time = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011128
11129cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011130#define TIME_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011131_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011132
11133fi
11134
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011135echo "$as_me:$LINENO: checking for ino_t" >&5
11136echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11137if test "${ac_cv_type_ino_t+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011139else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011140 cat >conftest.$ac_ext <<_ACEOF
11141/* confdefs.h. */
11142_ACEOF
11143cat confdefs.h >>conftest.$ac_ext
11144cat >>conftest.$ac_ext <<_ACEOF
11145/* end confdefs.h. */
11146$ac_includes_default
11147int
11148main ()
11149{
11150if ((ino_t *) 0)
11151 return 0;
11152if (sizeof (ino_t))
11153 return 0;
11154 ;
11155 return 0;
11156}
11157_ACEOF
11158rm -f conftest.$ac_objext
11159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11160 (eval $ac_compile) 2>conftest.er1
11161 ac_status=$?
11162 grep -v '^ *+' conftest.er1 >conftest.err
11163 rm -f conftest.er1
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try='test -z "$ac_c_werror_flag"
11168 || test ! -s conftest.err'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; } &&
11174 { ac_try='test -s conftest.$ac_objext'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11177 ac_status=$?
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011180 ac_cv_type_ino_t=yes
11181else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011182 echo "$as_me: failed program was:" >&5
11183sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011184
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011185ac_cv_type_ino_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011186fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011188fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011189echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11190echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11191if test $ac_cv_type_ino_t = yes; then
11192 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011193else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011194
11195cat >>confdefs.h <<_ACEOF
11196#define ino_t long
11197_ACEOF
11198
11199fi
11200
11201echo "$as_me:$LINENO: checking for dev_t" >&5
11202echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11203if test "${ac_cv_type_dev_t+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205else
11206 cat >conftest.$ac_ext <<_ACEOF
11207/* confdefs.h. */
11208_ACEOF
11209cat confdefs.h >>conftest.$ac_ext
11210cat >>conftest.$ac_ext <<_ACEOF
11211/* end confdefs.h. */
11212$ac_includes_default
11213int
11214main ()
11215{
11216if ((dev_t *) 0)
11217 return 0;
11218if (sizeof (dev_t))
11219 return 0;
11220 ;
11221 return 0;
11222}
11223_ACEOF
11224rm -f conftest.$ac_objext
11225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11226 (eval $ac_compile) 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -z "$ac_c_werror_flag"
11234 || test ! -s conftest.err'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest.$ac_objext'
11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11242 (eval $ac_try) 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011246 ac_cv_type_dev_t=yes
11247else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011248 echo "$as_me: failed program was:" >&5
11249sed 's/^/| /' conftest.$ac_ext >&5
11250
11251ac_cv_type_dev_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011252fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011254fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011255echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11256echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11257if test $ac_cv_type_dev_t = yes; then
11258 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011259else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011260
11261cat >>confdefs.h <<_ACEOF
11262#define dev_t unsigned
11263_ACEOF
11264
11265fi
11266
11267
11268echo "$as_me:$LINENO: checking for rlim_t" >&5
11269echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11270if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11271 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11272echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11273else
11274 cat >conftest.$ac_ext <<_ACEOF
11275/* confdefs.h. */
11276_ACEOF
11277cat confdefs.h >>conftest.$ac_ext
11278cat >>conftest.$ac_ext <<_ACEOF
11279/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011280
11281#include <sys/types.h>
11282#if STDC_HEADERS
11283#include <stdlib.h>
11284#include <stddef.h>
11285#endif
11286#ifdef HAVE_SYS_RESOURCE_H
11287#include <sys/resource.h>
11288#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011289
11290_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011291if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011292 $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 +000011293 ac_cv_type_rlim_t=yes
11294else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011295 ac_cv_type_rlim_t=no
11296fi
11297rm -f conftest*
11298
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011299 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11300echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011301fi
11302if test $ac_cv_type_rlim_t = no; then
11303 cat >> confdefs.h <<\EOF
11304#define rlim_t unsigned long
11305EOF
11306fi
11307
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011308echo "$as_me:$LINENO: checking for stack_t" >&5
11309echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011310if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011311 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11312echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011313else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011314 cat >conftest.$ac_ext <<_ACEOF
11315/* confdefs.h. */
11316_ACEOF
11317cat confdefs.h >>conftest.$ac_ext
11318cat >>conftest.$ac_ext <<_ACEOF
11319/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011320
11321#include <sys/types.h>
11322#if STDC_HEADERS
11323#include <stdlib.h>
11324#include <stddef.h>
11325#endif
11326#include <signal.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011327
11328_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011330 $EGREP "stack_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011331 ac_cv_type_stack_t=yes
11332else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011333 ac_cv_type_stack_t=no
11334fi
11335rm -f conftest*
11336
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011337 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11338echo "${ECHO_T}$ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011339fi
11340if test $ac_cv_type_stack_t = no; then
11341 cat >> confdefs.h <<\EOF
11342#define stack_t struct sigaltstack
11343EOF
11344fi
11345
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011346echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11347echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11348cat >conftest.$ac_ext <<_ACEOF
11349/* confdefs.h. */
11350_ACEOF
11351cat confdefs.h >>conftest.$ac_ext
11352cat >>conftest.$ac_ext <<_ACEOF
11353/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011354
11355#include <sys/types.h>
11356#if STDC_HEADERS
11357#include <stdlib.h>
11358#include <stddef.h>
11359#endif
11360#include <signal.h>
11361#include "confdefs.h"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011362
11363int
11364main ()
11365{
11366stack_t sigstk; sigstk.ss_base = 0;
11367 ;
11368 return 0;
11369}
11370_ACEOF
11371rm -f conftest.$ac_objext
11372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11373 (eval $ac_compile) 2>conftest.er1
11374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -z "$ac_c_werror_flag"
11381 || test ! -s conftest.err'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11384 ac_status=$?
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; } &&
11387 { ac_try='test -s conftest.$ac_objext'
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11390 ac_status=$?
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; }; then
11393 echo "$as_me:$LINENO: result: yes" >&5
11394echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011395#define HAVE_SS_BASE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011396_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011397
11398else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011399 echo "$as_me: failed program was:" >&5
11400sed 's/^/| /' conftest.$ac_ext >&5
11401
11402echo "$as_me:$LINENO: result: no" >&5
11403echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011404fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011406
11407olibs="$LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011408echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11409echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11410
Bram Moolenaar071d4272004-06-13 20:20:40 +000011411# Check whether --with-tlib or --without-tlib was given.
11412if test "${with_tlib+set}" = set; then
11413 withval="$with_tlib"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011414
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011415fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011416if test -n "$with_tlib"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011417 echo "$as_me:$LINENO: result: $with_tlib" >&5
11418echo "${ECHO_T}$with_tlib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011419 LIBS="$LIBS -l$with_tlib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011420 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11421echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11422 cat >conftest.$ac_ext <<_ACEOF
11423/* confdefs.h. */
11424_ACEOF
11425cat confdefs.h >>conftest.$ac_ext
11426cat >>conftest.$ac_ext <<_ACEOF
11427/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011428
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011429int
11430main ()
11431{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011432
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011433 ;
11434 return 0;
11435}
11436_ACEOF
11437rm -f conftest.$ac_objext conftest$ac_exeext
11438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11439 (eval $ac_link) 2>conftest.er1
11440 ac_status=$?
11441 grep -v '^ *+' conftest.er1 >conftest.err
11442 rm -f conftest.er1
11443 cat conftest.err >&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try='test -z "$ac_c_werror_flag"
11447 || test ! -s conftest.err'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try='test -s conftest$ac_exeext'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11456 ac_status=$?
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 echo "$as_me:$LINENO: result: OK" >&5
11460echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011461else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011462 echo "$as_me: failed program was:" >&5
11463sed 's/^/| /' conftest.$ac_ext >&5
11464
11465{ { echo "$as_me:$LINENO: error: FAILED" >&5
11466echo "$as_me: error: FAILED" >&2;}
11467 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011468fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011469rm -f conftest.err conftest.$ac_objext \
11470 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011471 olibs="$LIBS"
11472else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011473 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11474echo "${ECHO_T}empty: automatic terminal library selection" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011475 case "`uname -s 2>/dev/null`" in
11476 OSF1) tlibs="ncurses curses termlib termcap";;
11477 *) tlibs="ncurses termlib termcap curses";;
11478 esac
11479 for libname in $tlibs; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011480
11481as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11482echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11483echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11484if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011486else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011487 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000011488LIBS="-l${libname} $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011489cat >conftest.$ac_ext <<_ACEOF
11490/* confdefs.h. */
11491_ACEOF
11492cat confdefs.h >>conftest.$ac_ext
11493cat >>conftest.$ac_ext <<_ACEOF
11494/* end confdefs.h. */
11495
Bram Moolenaar071d4272004-06-13 20:20:40 +000011496/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011497#ifdef __cplusplus
11498extern "C"
11499#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011500/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011501 builtin and then its argument prototype would still apply. */
11502char tgetent ();
11503int
11504main ()
11505{
11506tgetent ();
11507 ;
11508 return 0;
11509}
11510_ACEOF
11511rm -f conftest.$ac_objext conftest$ac_exeext
11512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11513 (eval $ac_link) 2>conftest.er1
11514 ac_status=$?
11515 grep -v '^ *+' conftest.er1 >conftest.err
11516 rm -f conftest.er1
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } &&
11520 { ac_try='test -z "$ac_c_werror_flag"
11521 || test ! -s conftest.err'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11524 ac_status=$?
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; } &&
11527 { ac_try='test -s conftest$ac_exeext'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; }; then
11533 eval "$as_ac_Lib=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011534else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011535 echo "$as_me: failed program was:" >&5
11536sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011537
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011538eval "$as_ac_Lib=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011539fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011540rm -f conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542LIBS=$ac_check_lib_save_LIBS
11543fi
11544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11545echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11546if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11547 cat >>confdefs.h <<_ACEOF
11548#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11549_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011550
11551 LIBS="-l${libname} $LIBS"
11552
Bram Moolenaar071d4272004-06-13 20:20:40 +000011553fi
11554
11555 if test "x$olibs" != "x$LIBS"; then
11556 if test "$cross_compiling" = yes; then
11557 res="FAIL"
11558else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011565
11566#ifdef HAVE_TERMCAP_H
11567# include <termcap.h>
11568#endif
11569main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011570_ACEOF
11571rm -f conftest$ac_exeext
11572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11573 (eval $ac_link) 2>&5
11574 ac_status=$?
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011582 res="OK"
11583else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011584 echo "$as_me: program exited with status $ac_status" >&5
11585echo "$as_me: failed program was:" >&5
11586sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011587
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011588( exit $ac_status )
11589res="FAIL"
11590fi
11591rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11592fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011593 if test "$res" = "OK"; then
11594 break
11595 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011596 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11597echo "${ECHO_T}$libname library is not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011598 LIBS="$olibs"
11599 fi
11600 done
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011601 if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011602 echo "$as_me:$LINENO: result: no terminal library found" >&5
11603echo "${ECHO_T}no terminal library found" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011604 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011605fi
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011606
11607if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011608 echo "$as_me:$LINENO: checking for tgetent()" >&5
11609echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11610 cat >conftest.$ac_ext <<_ACEOF
11611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011616
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011617int
11618main ()
11619{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011620char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011621 ;
11622 return 0;
11623}
11624_ACEOF
11625rm -f conftest.$ac_objext conftest$ac_exeext
11626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11627 (eval $ac_link) 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag"
11635 || test ! -s conftest.err'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; } &&
11641 { ac_try='test -s conftest$ac_exeext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 echo "$as_me:$LINENO: result: yes" >&5
11648echo "${ECHO_T}yes" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011649else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011650 echo "$as_me: failed program was:" >&5
11651sed 's/^/| /' conftest.$ac_ext >&5
11652
11653{ { echo "$as_me:$LINENO: error: NOT FOUND!
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011654 You need to install a terminal library; for example ncurses.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011655 Or specify the name of the library with --with-tlib." >&5
11656echo "$as_me: error: NOT FOUND!
11657 You need to install a terminal library; for example ncurses.
11658 Or specify the name of the library with --with-tlib." >&2;}
11659 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011660fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011661rm -f conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011663fi
11664
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011665echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11666echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011667if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011668 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11669echo "$as_me: error: failed to compile test program." >&2;}
11670 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011671else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011672 cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011678
11679#ifdef HAVE_TERMCAP_H
11680# include <termcap.h>
11681#endif
11682main()
11683{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011684_ACEOF
11685rm -f conftest$ac_exeext
11686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11687 (eval $ac_link) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11693 ac_status=$?
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11697echo "${ECHO_T}no -- we are in termcap land" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011698else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011699 echo "$as_me: program exited with status $ac_status" >&5
11700echo "$as_me: failed program was:" >&5
11701sed 's/^/| /' conftest.$ac_ext >&5
11702
11703( exit $ac_status )
11704echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11705echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011706#define TERMINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011707_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011708
11709fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011710rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011711fi
11712
Bram Moolenaar071d4272004-06-13 20:20:40 +000011713if test "x$olibs" != "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011714 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11715echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011716 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011717 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11718echo "$as_me: error: failed to compile test program." >&2;}
11719 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011720else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011721 cat >conftest.$ac_ext <<_ACEOF
11722/* confdefs.h. */
11723_ACEOF
11724cat confdefs.h >>conftest.$ac_ext
11725cat >>conftest.$ac_ext <<_ACEOF
11726/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011727
11728#ifdef HAVE_TERMCAP_H
11729# include <termcap.h>
11730#endif
11731main()
11732{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011733_ACEOF
11734rm -f conftest$ac_exeext
11735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11736 (eval $ac_link) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 echo "$as_me:$LINENO: result: zero" >&5
11746echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011747#define TGETENT_ZERO_ERR 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011748_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011749
11750else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011751 echo "$as_me: program exited with status $ac_status" >&5
11752echo "$as_me: failed program was:" >&5
11753sed 's/^/| /' conftest.$ac_ext >&5
11754
11755( exit $ac_status )
11756echo "$as_me:$LINENO: result: non-zero" >&5
11757echo "${ECHO_T}non-zero" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011758fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011759rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11760fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011761fi
11762
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011763echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11764echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11765cat >conftest.$ac_ext <<_ACEOF
11766/* confdefs.h. */
11767_ACEOF
11768cat confdefs.h >>conftest.$ac_ext
11769cat >>conftest.$ac_ext <<_ACEOF
11770/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011771
11772#ifdef HAVE_TERMCAP_H
11773# include <termcap.h>
11774#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011775
11776int
11777main ()
11778{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011779ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011780 ;
11781 return 0;
11782}
11783_ACEOF
11784rm -f conftest.$ac_objext conftest$ac_exeext
11785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11786 (eval $ac_link) 2>conftest.er1
11787 ac_status=$?
11788 grep -v '^ *+' conftest.er1 >conftest.err
11789 rm -f conftest.er1
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -z "$ac_c_werror_flag"
11794 || test ! -s conftest.err'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11797 ac_status=$?
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; } &&
11800 { ac_try='test -s conftest$ac_exeext'
11801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11802 (eval $ac_try) 2>&5
11803 ac_status=$?
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; }; then
11806 echo "$as_me:$LINENO: result: yes" >&5
11807echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011808#define HAVE_OSPEED 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011809_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011810
11811else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011812 echo "$as_me: failed program was:" >&5
11813sed 's/^/| /' conftest.$ac_ext >&5
11814
11815echo "$as_me:$LINENO: result: no" >&5
11816echo "${ECHO_T}no" >&6
11817 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11818echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11819 cat >conftest.$ac_ext <<_ACEOF
11820/* confdefs.h. */
11821_ACEOF
11822cat confdefs.h >>conftest.$ac_ext
11823cat >>conftest.$ac_ext <<_ACEOF
11824/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011825
11826#ifdef HAVE_TERMCAP_H
11827# include <termcap.h>
11828#endif
11829extern short ospeed;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011830
11831int
11832main ()
11833{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011834ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011835 ;
11836 return 0;
11837}
11838_ACEOF
11839rm -f conftest.$ac_objext conftest$ac_exeext
11840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11841 (eval $ac_link) 2>conftest.er1
11842 ac_status=$?
11843 grep -v '^ *+' conftest.er1 >conftest.err
11844 rm -f conftest.er1
11845 cat conftest.err >&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); } &&
11848 { ac_try='test -z "$ac_c_werror_flag"
11849 || test ! -s conftest.err'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; } &&
11855 { ac_try='test -s conftest$ac_exeext'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; }; then
11861 echo "$as_me:$LINENO: result: yes" >&5
11862echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011863#define OSPEED_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011864_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011865
11866else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011867 echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011869
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011870echo "$as_me:$LINENO: result: no" >&5
11871echo "${ECHO_T}no" >&6
11872fi
11873rm -f conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
11875
11876fi
11877rm -f conftest.err conftest.$ac_objext \
11878 conftest$ac_exeext conftest.$ac_ext
11879
11880echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11881echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11882cat >conftest.$ac_ext <<_ACEOF
11883/* confdefs.h. */
11884_ACEOF
11885cat confdefs.h >>conftest.$ac_ext
11886cat >>conftest.$ac_ext <<_ACEOF
11887/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011888
11889#ifdef HAVE_TERMCAP_H
11890# include <termcap.h>
11891#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011892
11893int
11894main ()
11895{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011896if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011897 ;
11898 return 0;
11899}
11900_ACEOF
11901rm -f conftest.$ac_objext conftest$ac_exeext
11902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11903 (eval $ac_link) 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -z "$ac_c_werror_flag"
11911 || test ! -s conftest.err'
11912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913 (eval $ac_try) 2>&5
11914 ac_status=$?
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); }; } &&
11917 { ac_try='test -s conftest$ac_exeext'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 echo "$as_me:$LINENO: result: yes" >&5
11924echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011925#define HAVE_UP_BC_PC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011926_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011927
11928else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011929 echo "$as_me: failed program was:" >&5
11930sed 's/^/| /' conftest.$ac_ext >&5
11931
11932echo "$as_me:$LINENO: result: no" >&5
11933echo "${ECHO_T}no" >&6
11934 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
11935echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
11936 cat >conftest.$ac_ext <<_ACEOF
11937/* confdefs.h. */
11938_ACEOF
11939cat confdefs.h >>conftest.$ac_ext
11940cat >>conftest.$ac_ext <<_ACEOF
11941/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011942
11943#ifdef HAVE_TERMCAP_H
11944# include <termcap.h>
11945#endif
11946extern char *UP, *BC, PC;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011947
11948int
11949main ()
11950{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011951if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011952 ;
11953 return 0;
11954}
11955_ACEOF
11956rm -f conftest.$ac_objext conftest$ac_exeext
11957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958 (eval $ac_link) 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag"
11966 || test ! -s conftest.err'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 echo "$as_me:$LINENO: result: yes" >&5
11979echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011980#define UP_BC_PC_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011981_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011982
11983else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011984 echo "$as_me: failed program was:" >&5
11985sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011986
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011987echo "$as_me:$LINENO: result: no" >&5
11988echo "${ECHO_T}no" >&6
11989fi
11990rm -f conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992
11993fi
11994rm -f conftest.err conftest.$ac_objext \
11995 conftest$ac_exeext conftest.$ac_ext
11996
11997echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
11998echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
11999cat >conftest.$ac_ext <<_ACEOF
12000/* confdefs.h. */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012005
12006#ifdef HAVE_TERMCAP_H
12007# include <termcap.h>
12008#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012009
12010int
12011main ()
12012{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012013extern int xx(); tputs("test", 1, (outfuntype)xx)
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012014 ;
12015 return 0;
12016}
12017_ACEOF
12018rm -f conftest.$ac_objext
12019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12020 (eval $ac_compile) 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } &&
12027 { ac_try='test -z "$ac_c_werror_flag"
12028 || test ! -s conftest.err'
12029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12030 (eval $ac_try) 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest.$ac_objext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12037 ac_status=$?
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 echo "$as_me:$LINENO: result: yes" >&5
12041echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012042#define HAVE_OUTFUNTYPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012043_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012044
12045else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012046 echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012048
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012049echo "$as_me:$LINENO: result: no" >&5
12050echo "${ECHO_T}no" >&6
12051fi
12052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12053
12054echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12055echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12056cat >conftest.$ac_ext <<_ACEOF
12057/* confdefs.h. */
12058_ACEOF
12059cat confdefs.h >>conftest.$ac_ext
12060cat >>conftest.$ac_ext <<_ACEOF
12061/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012062
12063#include <sys/types.h>
12064#include <sys/time.h>
12065#include <sys/select.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012066int
12067main ()
12068{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012069
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012070 ;
12071 return 0;
12072}
12073_ACEOF
12074rm -f conftest.$ac_objext
12075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12076 (eval $ac_compile) 2>conftest.er1
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -z "$ac_c_werror_flag"
12084 || test ! -s conftest.err'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest.$ac_objext'
12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12093 ac_status=$?
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096 echo "$as_me:$LINENO: result: yes" >&5
12097echo "${ECHO_T}yes" >&6
12098 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012099#define SYS_SELECT_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012100_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012101
12102else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012103 echo "$as_me: failed program was:" >&5
12104sed 's/^/| /' conftest.$ac_ext >&5
12105
12106echo "$as_me:$LINENO: result: no" >&5
12107echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012108fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012110
12111
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012112echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12113echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012114if test -r /dev/ptc; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012115 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012116#define HAVE_DEV_PTC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012117_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012118
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012119 echo "$as_me:$LINENO: result: yes" >&5
12120echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012121else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012122 echo "$as_me:$LINENO: result: no" >&5
12123echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012124fi
12125
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012126echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12127echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012128if test -c /dev/ptmx ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012129 cat >conftest.$ac_ext <<_ACEOF
12130/* confdefs.h. */
12131_ACEOF
12132cat confdefs.h >>conftest.$ac_ext
12133cat >>conftest.$ac_ext <<_ACEOF
12134/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012135
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012136int
12137main ()
12138{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012139ptsname(0);grantpt(0);unlockpt(0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012140 ;
12141 return 0;
12142}
12143_ACEOF
12144rm -f conftest.$ac_objext conftest$ac_exeext
12145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_c_werror_flag"
12154 || test ! -s conftest.err'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; } &&
12160 { ac_try='test -s conftest$ac_exeext'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
12166 echo "$as_me:$LINENO: result: yes" >&5
12167echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012168#define HAVE_SVR4_PTYS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012169_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012170
12171else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012172 echo "$as_me: failed program was:" >&5
12173sed 's/^/| /' conftest.$ac_ext >&5
12174
12175echo "$as_me:$LINENO: result: no" >&5
12176echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012177fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012178rm -f conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012180else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012181 echo "$as_me:$LINENO: result: no" >&5
12182echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012183fi
12184
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012185echo "$as_me:$LINENO: checking for ptyranges" >&5
12186echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012187if test -d /dev/ptym ; then
12188 pdir='/dev/ptym'
12189else
12190 pdir='/dev'
12191fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012192cat >conftest.$ac_ext <<_ACEOF
12193/* confdefs.h. */
12194_ACEOF
12195cat confdefs.h >>conftest.$ac_ext
12196cat >>conftest.$ac_ext <<_ACEOF
12197/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012198#ifdef M_UNIX
12199 yes;
12200#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012201
12202_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012204 $EGREP "yes" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012205 ptys=`echo /dev/ptyp??`
12206else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012207 ptys=`echo $pdir/pty??`
12208fi
12209rm -f conftest*
12210
12211if test "$ptys" != "$pdir/pty??" ; then
12212 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12213 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012214 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012215#define PTYRANGE0 "$p0"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012216_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012217
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012218 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012219#define PTYRANGE1 "$p1"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012220_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012221
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012222 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12223echo "${ECHO_T}$p0 / $p1" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012224else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012225 echo "$as_me:$LINENO: result: don't know" >&5
12226echo "${ECHO_T}don't know" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012227fi
12228
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012229echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12230echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012231rm -f conftest_grp
12232if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012233 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12234echo "$as_me: error: failed to compile test program" >&2;}
12235 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012236else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012237 cat >conftest.$ac_ext <<_ACEOF
12238/* confdefs.h. */
12239_ACEOF
12240cat confdefs.h >>conftest.$ac_ext
12241cat >>conftest.$ac_ext <<_ACEOF
12242/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012243
12244#include <sys/types.h>
12245#include <sys/stat.h>
12246#include <stdio.h>
12247main()
12248{
12249 struct stat sb;
12250 char *x,*ttyname();
12251 int om, m;
12252 FILE *fp;
12253
12254 if (!(x = ttyname(0))) exit(1);
12255 if (stat(x, &sb)) exit(1);
12256 om = sb.st_mode;
12257 if (om & 002) exit(0);
12258 m = system("mesg y");
12259 if (m == -1 || m == 127) exit(1);
12260 if (stat(x, &sb)) exit(1);
12261 m = sb.st_mode;
12262 if (chmod(x, om)) exit(1);
12263 if (m & 002) exit(0);
12264 if (sb.st_gid == getgid()) exit(1);
12265 if (!(fp=fopen("conftest_grp", "w")))
12266 exit(1);
12267 fprintf(fp, "%d\n", sb.st_gid);
12268 fclose(fp);
12269 exit(0);
12270}
12271
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012272_ACEOF
12273rm -f conftest$ac_exeext
12274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12275 (eval $ac_link) 2>&5
12276 ac_status=$?
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284
Bram Moolenaar071d4272004-06-13 20:20:40 +000012285 if test -f conftest_grp; then
12286 ptygrp=`cat conftest_grp`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012287 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12288echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12289 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012290#define PTYMODE 0620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012291_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012292
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012293 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012294#define PTYGROUP $ptygrp
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012295_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012296
12297 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012298 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12299echo "${ECHO_T}ptys are world accessable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012300 fi
12301
12302else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012303 echo "$as_me: program exited with status $ac_status" >&5
12304echo "$as_me: failed program was:" >&5
12305sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012306
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012307( exit $ac_status )
12308echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12309echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12310fi
12311rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12312fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012313rm -f conftest_grp
12314
12315
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012316echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12317echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12318if test "${ac_cv_type_signal+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012320else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012321 cat >conftest.$ac_ext <<_ACEOF
12322/* confdefs.h. */
12323_ACEOF
12324cat confdefs.h >>conftest.$ac_ext
12325cat >>conftest.$ac_ext <<_ACEOF
12326/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012327#include <sys/types.h>
12328#include <signal.h>
12329#ifdef signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012330# undef signal
Bram Moolenaar071d4272004-06-13 20:20:40 +000012331#endif
12332#ifdef __cplusplus
12333extern "C" void (*signal (int, void (*)(int)))(int);
12334#else
12335void (*signal ()) ();
12336#endif
12337
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012338int
12339main ()
12340{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012341int i;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012342 ;
12343 return 0;
12344}
12345_ACEOF
12346rm -f conftest.$ac_objext
12347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12348 (eval $ac_compile) 2>conftest.er1
12349 ac_status=$?
12350 grep -v '^ *+' conftest.er1 >conftest.err
12351 rm -f conftest.er1
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_c_werror_flag"
12356 || test ! -s conftest.err'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try='test -s conftest.$ac_objext'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012368 ac_cv_type_signal=void
12369else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012370 echo "$as_me: failed program was:" >&5
12371sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012372
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012373ac_cv_type_signal=int
12374fi
12375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12376fi
12377echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12378echo "${ECHO_T}$ac_cv_type_signal" >&6
12379
12380cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012381#define RETSIGTYPE $ac_cv_type_signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012382_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012383
12384
12385
12386if test $ac_cv_type_signal = void; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012387 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012388#define SIGRETURN return
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012389_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012390
12391else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012392 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012393#define SIGRETURN return 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012394_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012395
12396fi
12397
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012398echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12399echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12400cat >conftest.$ac_ext <<_ACEOF
12401/* confdefs.h. */
12402_ACEOF
12403cat confdefs.h >>conftest.$ac_ext
12404cat >>conftest.$ac_ext <<_ACEOF
12405/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012406
12407#include <signal.h>
12408test_sig()
12409{
12410 struct sigcontext *scont;
12411 scont = (struct sigcontext *)0;
12412 return 1;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012413}
12414int
12415main ()
12416{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012417
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012418 ;
12419 return 0;
12420}
12421_ACEOF
12422rm -f conftest.$ac_objext
12423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12424 (eval $ac_compile) 2>conftest.er1
12425 ac_status=$?
12426 grep -v '^ *+' conftest.er1 >conftest.err
12427 rm -f conftest.er1
12428 cat conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -z "$ac_c_werror_flag"
12432 || test ! -s conftest.err'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; } &&
12438 { ac_try='test -s conftest.$ac_objext'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; }; then
12444 echo "$as_me:$LINENO: result: yes" >&5
12445echo "${ECHO_T}yes" >&6
12446 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012447#define HAVE_SIGCONTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012448_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012449
12450else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012451 echo "$as_me: failed program was:" >&5
12452sed 's/^/| /' conftest.$ac_ext >&5
12453
12454echo "$as_me:$LINENO: result: no" >&5
12455echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012456fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012458
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012459echo "$as_me:$LINENO: checking getcwd implementation" >&5
12460echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012461if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012462 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12463echo "$as_me: error: failed to compile test program" >&2;}
12464 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012465else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012466 cat >conftest.$ac_ext <<_ACEOF
12467/* confdefs.h. */
12468_ACEOF
12469cat confdefs.h >>conftest.$ac_ext
12470cat >>conftest.$ac_ext <<_ACEOF
12471/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012472
12473char *dagger[] = { "IFS=pwd", 0 };
12474main()
12475{
12476 char buffer[500];
12477 extern char **environ;
12478 environ = dagger;
12479 return getcwd(buffer, 500) ? 0 : 1;
12480}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012481_ACEOF
12482rm -f conftest$ac_exeext
12483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12484 (eval $ac_link) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12489 (eval $ac_try) 2>&5
12490 ac_status=$?
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); }; }; then
12493 echo "$as_me:$LINENO: result: it is usable" >&5
12494echo "${ECHO_T}it is usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012495else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012496 echo "$as_me: program exited with status $ac_status" >&5
12497echo "$as_me: failed program was:" >&5
12498sed 's/^/| /' conftest.$ac_ext >&5
12499
12500( exit $ac_status )
12501echo "$as_me:$LINENO: result: it stinks" >&5
12502echo "${ECHO_T}it stinks" >&6
12503 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012504#define BAD_GETCWD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012505_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012506
12507fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012508rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012509fi
12510
12511
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
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
Bram Moolenaar071d4272004-06-13 20:20:40 +000012557for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12558 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12559 memset nanosleep opendir putenv qsort readlink select setenv \
12560 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000012561 sigvec strcasecmp strerror strftime stricmp strncasecmp \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000012562 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12563 usleep utime utimes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012564do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012565as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12566echo "$as_me:$LINENO: checking for $ac_func" >&5
12567echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12568if eval "test \"\${$as_ac_var+set}\" = set"; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012570else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012571 cat >conftest.$ac_ext <<_ACEOF
12572/* confdefs.h. */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h. */
12577/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12579#define $ac_func innocuous_$ac_func
12580
Bram Moolenaar071d4272004-06-13 20:20:40 +000012581/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012582 which can conflict with char $ac_func (); below.
12583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584 <limits.h> exists even on freestanding compilers. */
12585
12586#ifdef __STDC__
12587# include <limits.h>
12588#else
12589# include <assert.h>
12590#endif
12591
12592#undef $ac_func
12593
Bram Moolenaar071d4272004-06-13 20:20:40 +000012594/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012595#ifdef __cplusplus
12596extern "C"
12597{
12598#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012599/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012600 builtin and then its argument prototype would still apply. */
12601char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000012602/* The GNU C library defines this for functions which it implements
12603 to always fail with ENOSYS. Some functions are actually named
12604 something starting with __ and the normal name is an alias. */
12605#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12606choke me
12607#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012608char (*f) () = $ac_func;
12609#endif
12610#ifdef __cplusplus
12611}
Bram Moolenaar071d4272004-06-13 20:20:40 +000012612#endif
12613
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012614int
12615main ()
12616{
12617return f != $ac_func;
12618 ;
12619 return 0;
12620}
12621_ACEOF
12622rm -f conftest.$ac_objext conftest$ac_exeext
12623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12624 (eval $ac_link) 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -z "$ac_c_werror_flag"
12632 || test ! -s conftest.err'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; } &&
12638 { ac_try='test -s conftest$ac_exeext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12641 ac_status=$?
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12644 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012645else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012646 echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012648
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012649eval "$as_ac_var=no"
12650fi
12651rm -f conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653fi
12654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12655echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12656if test `eval echo '${'$as_ac_var'}'` = yes; then
12657 cat >>confdefs.h <<_ACEOF
12658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12659_ACEOF
12660
Bram Moolenaar071d4272004-06-13 20:20:40 +000012661fi
12662done
12663
12664
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012665echo "$as_me:$LINENO: checking for st_blksize" >&5
12666echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12667cat >conftest.$ac_ext <<_ACEOF
12668/* confdefs.h. */
12669_ACEOF
12670cat confdefs.h >>conftest.$ac_ext
12671cat >>conftest.$ac_ext <<_ACEOF
12672/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012673#include <sys/types.h>
12674#include <sys/stat.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012675int
12676main ()
12677{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012678 struct stat st;
12679 int n;
12680
12681 stat("/", &st);
12682 n = (int)st.st_blksize;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012683 ;
12684 return 0;
12685}
12686_ACEOF
12687rm -f conftest.$ac_objext
12688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689 (eval $ac_compile) 2>conftest.er1
12690 ac_status=$?
12691 grep -v '^ *+' conftest.er1 >conftest.err
12692 rm -f conftest.er1
12693 cat conftest.err >&5
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); } &&
12696 { ac_try='test -z "$ac_c_werror_flag"
12697 || test ! -s conftest.err'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; } &&
12703 { ac_try='test -s conftest.$ac_objext'
12704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12705 (eval $ac_try) 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; }; then
12709 echo "$as_me:$LINENO: result: yes" >&5
12710echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012711#define HAVE_ST_BLKSIZE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012712_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012713
12714else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012715 echo "$as_me: failed program was:" >&5
12716sed 's/^/| /' conftest.$ac_ext >&5
12717
12718echo "$as_me:$LINENO: result: no" >&5
12719echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012720fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012722
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012723echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12724echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012725if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012726 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12727echo "$as_me: error: failed to compile test program" >&2;}
12728 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012729else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012730 cat >conftest.$ac_ext <<_ACEOF
12731/* confdefs.h. */
12732_ACEOF
12733cat confdefs.h >>conftest.$ac_ext
12734cat >>conftest.$ac_ext <<_ACEOF
12735/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012736#include <sys/types.h>
12737#include <sys/stat.h>
12738main() {struct stat st; exit(stat("configure/", &st) != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012739_ACEOF
12740rm -f conftest$ac_exeext
12741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12742 (eval $ac_link) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12748 ac_status=$?
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 echo "$as_me:$LINENO: result: yes" >&5
12752echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012753#define STAT_IGNORES_SLASH 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012754_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012755
12756else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012757 echo "$as_me: program exited with status $ac_status" >&5
12758echo "$as_me: failed program was:" >&5
12759sed 's/^/| /' conftest.$ac_ext >&5
12760
12761( exit $ac_status )
12762echo "$as_me:$LINENO: result: no" >&5
12763echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012764fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012765rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012766fi
12767
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012768echo "$as_me:$LINENO: checking for iconv_open()" >&5
12769echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012770save_LIBS="$LIBS"
12771LIBS="$LIBS -liconv"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012772cat >conftest.$ac_ext <<_ACEOF
12773/* confdefs.h. */
12774_ACEOF
12775cat confdefs.h >>conftest.$ac_ext
12776cat >>conftest.$ac_ext <<_ACEOF
12777/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012778
12779#ifdef HAVE_ICONV_H
12780# include <iconv.h>
12781#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012782
12783int
12784main ()
12785{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012786iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012787 ;
12788 return 0;
12789}
12790_ACEOF
12791rm -f conftest.$ac_objext conftest$ac_exeext
12792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12793 (eval $ac_link) 2>conftest.er1
12794 ac_status=$?
12795 grep -v '^ *+' conftest.er1 >conftest.err
12796 rm -f conftest.er1
12797 cat conftest.err >&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try='test -z "$ac_c_werror_flag"
12801 || test ! -s conftest.err'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; } &&
12807 { ac_try='test -s conftest$ac_exeext'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12810 ac_status=$?
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12814echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012815#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012816_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012817
12818else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012819 echo "$as_me: failed program was:" >&5
12820sed 's/^/| /' conftest.$ac_ext >&5
12821
12822LIBS="$save_LIBS"
12823 cat >conftest.$ac_ext <<_ACEOF
12824/* confdefs.h. */
12825_ACEOF
12826cat confdefs.h >>conftest.$ac_ext
12827cat >>conftest.$ac_ext <<_ACEOF
12828/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012829
12830#ifdef HAVE_ICONV_H
12831# include <iconv.h>
12832#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012833
12834int
12835main ()
12836{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012837iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012838 ;
12839 return 0;
12840}
12841_ACEOF
12842rm -f conftest.$ac_objext conftest$ac_exeext
12843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12844 (eval $ac_link) 2>conftest.er1
12845 ac_status=$?
12846 grep -v '^ *+' conftest.er1 >conftest.err
12847 rm -f conftest.er1
12848 cat conftest.err >&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } &&
12851 { ac_try='test -z "$ac_c_werror_flag"
12852 || test ! -s conftest.err'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; } &&
12858 { ac_try='test -s conftest$ac_exeext'
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
12864 echo "$as_me:$LINENO: result: yes" >&5
12865echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012866#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012867_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012868
12869else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012870 echo "$as_me: failed program was:" >&5
12871sed 's/^/| /' conftest.$ac_ext >&5
12872
12873echo "$as_me:$LINENO: result: no" >&5
12874echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012875fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012876rm -f conftest.err conftest.$ac_objext \
12877 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012878fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012879rm -f conftest.err conftest.$ac_objext \
12880 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012881
12882
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012883echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12884echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12885cat >conftest.$ac_ext <<_ACEOF
12886/* confdefs.h. */
12887_ACEOF
12888cat confdefs.h >>conftest.$ac_ext
12889cat >>conftest.$ac_ext <<_ACEOF
12890/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012891
12892#ifdef HAVE_LANGINFO_H
12893# include <langinfo.h>
12894#endif
12895
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012896int
12897main ()
12898{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012899char *cs = nl_langinfo(CODESET);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012900 ;
12901 return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext conftest$ac_exeext
12905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12906 (eval $ac_link) 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_c_werror_flag"
12914 || test ! -s conftest.err'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } &&
12920 { ac_try='test -s conftest$ac_exeext'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12923 ac_status=$?
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; }; then
12926 echo "$as_me:$LINENO: result: yes" >&5
12927echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012928#define HAVE_NL_LANGINFO_CODESET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012929_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012930
12931else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012932 echo "$as_me: failed program was:" >&5
12933sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012934
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012935echo "$as_me:$LINENO: result: no" >&5
12936echo "${ECHO_T}no" >&6
12937fi
12938rm -f conftest.err conftest.$ac_objext \
12939 conftest$ac_exeext conftest.$ac_ext
12940
12941echo "$as_me:$LINENO: checking --disable-acl argument" >&5
12942echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012943# Check whether --enable-acl or --disable-acl was given.
12944if test "${enable_acl+set}" = set; then
12945 enableval="$enable_acl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012946
Bram Moolenaar071d4272004-06-13 20:20:40 +000012947else
12948 enable_acl="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012949fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000012950if test "$enable_acl" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012951echo "$as_me:$LINENO: result: no" >&5
12952echo "${ECHO_T}no" >&6
12953echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
12954echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
12955if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
12956 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012957else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012958 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000012959LIBS="-lposix1e $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012960cat >conftest.$ac_ext <<_ACEOF
12961/* confdefs.h. */
12962_ACEOF
12963cat confdefs.h >>conftest.$ac_ext
12964cat >>conftest.$ac_ext <<_ACEOF
12965/* end confdefs.h. */
12966
Bram Moolenaar071d4272004-06-13 20:20:40 +000012967/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012968#ifdef __cplusplus
12969extern "C"
12970#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012971/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012972 builtin and then its argument prototype would still apply. */
12973char acl_get_file ();
12974int
12975main ()
12976{
12977acl_get_file ();
12978 ;
12979 return 0;
12980}
12981_ACEOF
12982rm -f conftest.$ac_objext conftest$ac_exeext
12983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12984 (eval $ac_link) 2>conftest.er1
12985 ac_status=$?
12986 grep -v '^ *+' conftest.er1 >conftest.err
12987 rm -f conftest.er1
12988 cat conftest.err >&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } &&
12991 { ac_try='test -z "$ac_c_werror_flag"
12992 || test ! -s conftest.err'
12993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12994 (eval $ac_try) 2>&5
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); }; } &&
12998 { ac_try='test -s conftest$ac_exeext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 ac_cv_lib_posix1e_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013005else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013006 echo "$as_me: failed program was:" >&5
13007sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013008
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013009ac_cv_lib_posix1e_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013010fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013011rm -f conftest.err conftest.$ac_objext \
13012 conftest$ac_exeext conftest.$ac_ext
13013LIBS=$ac_check_lib_save_LIBS
13014fi
13015echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13016echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13017if test $ac_cv_lib_posix1e_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013018 LIBS="$LIBS -lposix1e"
13019else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013020 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13021echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13022if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013024else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013025 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013026LIBS="-lacl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013027cat >conftest.$ac_ext <<_ACEOF
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
13032/* end confdefs.h. */
13033
Bram Moolenaar071d4272004-06-13 20:20:40 +000013034/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013035#ifdef __cplusplus
13036extern "C"
13037#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013038/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013039 builtin and then its argument prototype would still apply. */
13040char acl_get_file ();
13041int
13042main ()
13043{
13044acl_get_file ();
13045 ;
13046 return 0;
13047}
13048_ACEOF
13049rm -f conftest.$ac_objext conftest$ac_exeext
13050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13051 (eval $ac_link) 2>conftest.er1
13052 ac_status=$?
13053 grep -v '^ *+' conftest.er1 >conftest.err
13054 rm -f conftest.er1
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest$ac_exeext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13068 ac_status=$?
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_cv_lib_acl_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013072else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013073 echo "$as_me: failed program was:" >&5
13074sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013075
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013076ac_cv_lib_acl_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013077fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013078rm -f conftest.err conftest.$ac_objext \
13079 conftest$ac_exeext conftest.$ac_ext
13080LIBS=$ac_check_lib_save_LIBS
13081fi
13082echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13083echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13084if test $ac_cv_lib_acl_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013085 LIBS="$LIBS -lacl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013086 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13087echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13088if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013090else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013091 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013092LIBS="-lattr $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013093cat >conftest.$ac_ext <<_ACEOF
13094/* confdefs.h. */
13095_ACEOF
13096cat confdefs.h >>conftest.$ac_ext
13097cat >>conftest.$ac_ext <<_ACEOF
13098/* end confdefs.h. */
13099
Bram Moolenaar071d4272004-06-13 20:20:40 +000013100/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013101#ifdef __cplusplus
13102extern "C"
13103#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013104/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013105 builtin and then its argument prototype would still apply. */
13106char fgetxattr ();
13107int
13108main ()
13109{
13110fgetxattr ();
13111 ;
13112 return 0;
13113}
13114_ACEOF
13115rm -f conftest.$ac_objext conftest$ac_exeext
13116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13117 (eval $ac_link) 2>conftest.er1
13118 ac_status=$?
13119 grep -v '^ *+' conftest.er1 >conftest.err
13120 rm -f conftest.er1
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); } &&
13124 { ac_try='test -z "$ac_c_werror_flag"
13125 || test ! -s conftest.err'
13126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127 (eval $ac_try) 2>&5
13128 ac_status=$?
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); }; } &&
13131 { ac_try='test -s conftest$ac_exeext'
13132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 (eval $ac_try) 2>&5
13134 ac_status=$?
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; }; then
13137 ac_cv_lib_attr_fgetxattr=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013138else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013139 echo "$as_me: failed program was:" >&5
13140sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013141
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013142ac_cv_lib_attr_fgetxattr=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013143fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013144rm -f conftest.err conftest.$ac_objext \
13145 conftest$ac_exeext conftest.$ac_ext
13146LIBS=$ac_check_lib_save_LIBS
13147fi
13148echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13149echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13150if test $ac_cv_lib_attr_fgetxattr = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013151 LIBS="$LIBS -lattr"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013152fi
13153
Bram Moolenaar071d4272004-06-13 20:20:40 +000013154fi
13155
13156fi
13157
13158
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013159echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13160echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13161cat >conftest.$ac_ext <<_ACEOF
13162/* confdefs.h. */
13163_ACEOF
13164cat confdefs.h >>conftest.$ac_ext
13165cat >>conftest.$ac_ext <<_ACEOF
13166/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013167
13168#include <sys/types.h>
13169#ifdef HAVE_SYS_ACL_H
13170# include <sys/acl.h>
13171#endif
13172acl_t acl;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013173int
13174main ()
13175{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013176acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13177 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13178 acl_free(acl);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013179 ;
13180 return 0;
13181}
13182_ACEOF
13183rm -f conftest.$ac_objext conftest$ac_exeext
13184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13185 (eval $ac_link) 2>conftest.er1
13186 ac_status=$?
13187 grep -v '^ *+' conftest.er1 >conftest.err
13188 rm -f conftest.er1
13189 cat conftest.err >&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); } &&
13192 { ac_try='test -z "$ac_c_werror_flag"
13193 || test ! -s conftest.err'
13194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195 (eval $ac_try) 2>&5
13196 ac_status=$?
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); }; } &&
13199 { ac_try='test -s conftest$ac_exeext'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }; then
13205 echo "$as_me:$LINENO: result: yes" >&5
13206echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013207#define HAVE_POSIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013208_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013209
13210else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013211 echo "$as_me: failed program was:" >&5
13212sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013213
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013214echo "$as_me:$LINENO: result: no" >&5
13215echo "${ECHO_T}no" >&6
13216fi
13217rm -f conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219
13220echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13221echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13222cat >conftest.$ac_ext <<_ACEOF
13223/* confdefs.h. */
13224_ACEOF
13225cat confdefs.h >>conftest.$ac_ext
13226cat >>conftest.$ac_ext <<_ACEOF
13227/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013228
13229#ifdef HAVE_SYS_ACL_H
13230# include <sys/acl.h>
13231#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013232int
13233main ()
13234{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013235acl("foo", GETACLCNT, 0, NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013236
13237 ;
13238 return 0;
13239}
13240_ACEOF
13241rm -f conftest.$ac_objext conftest$ac_exeext
13242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13243 (eval $ac_link) 2>conftest.er1
13244 ac_status=$?
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try='test -z "$ac_c_werror_flag"
13251 || test ! -s conftest.err'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest$ac_exeext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 echo "$as_me:$LINENO: result: yes" >&5
13264echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013265#define HAVE_SOLARIS_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013266_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013267
13268else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013271
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013272echo "$as_me:$LINENO: result: no" >&5
13273echo "${ECHO_T}no" >&6
13274fi
13275rm -f conftest.err conftest.$ac_objext \
13276 conftest$ac_exeext conftest.$ac_ext
13277
13278echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13279echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13280cat >conftest.$ac_ext <<_ACEOF
13281/* confdefs.h. */
13282_ACEOF
13283cat confdefs.h >>conftest.$ac_ext
13284cat >>conftest.$ac_ext <<_ACEOF
13285/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013286
13287#ifdef HAVE_SYS_ACL_H
13288# include <sys/acl.h>
13289#endif
13290#ifdef HAVE_SYS_ACCESS_H
13291# include <sys/access.h>
13292#endif
13293#define _ALL_SOURCE
13294
13295#include <sys/stat.h>
13296
13297int aclsize;
13298struct acl *aclent;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013299int
13300main ()
13301{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013302aclsize = sizeof(struct acl);
13303 aclent = (void *)malloc(aclsize);
13304 statacl("foo", STX_NORMAL, aclent, aclsize);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013305
13306 ;
13307 return 0;
13308}
13309_ACEOF
13310rm -f conftest.$ac_objext conftest$ac_exeext
13311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13312 (eval $ac_link) 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
13319 { ac_try='test -z "$ac_c_werror_flag"
13320 || test ! -s conftest.err'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; } &&
13326 { ac_try='test -s conftest$ac_exeext'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 echo "$as_me:$LINENO: result: yes" >&5
13333echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013334#define HAVE_AIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013335_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013336
13337else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013338 echo "$as_me: failed program was:" >&5
13339sed 's/^/| /' conftest.$ac_ext >&5
13340
13341echo "$as_me:$LINENO: result: no" >&5
13342echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013343fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013344rm -f conftest.err conftest.$ac_objext \
13345 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013346else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013347 echo "$as_me:$LINENO: result: yes" >&5
13348echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013349fi
13350
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013351echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13352echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013353# Check whether --enable-gpm or --disable-gpm was given.
13354if test "${enable_gpm+set}" = set; then
13355 enableval="$enable_gpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013356
Bram Moolenaar071d4272004-06-13 20:20:40 +000013357else
13358 enable_gpm="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013359fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013360
13361if test "$enable_gpm" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013362 echo "$as_me:$LINENO: result: no" >&5
13363echo "${ECHO_T}no" >&6
13364 echo "$as_me:$LINENO: checking for gpm" >&5
13365echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13366if test "${vi_cv_have_gpm+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013368else
13369 olibs="$LIBS" ; LIBS="-lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013370 cat >conftest.$ac_ext <<_ACEOF
13371/* confdefs.h. */
13372_ACEOF
13373cat confdefs.h >>conftest.$ac_ext
13374cat >>conftest.$ac_ext <<_ACEOF
13375/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013376#include <gpm.h>
13377 #include <linux/keyboard.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013378int
13379main ()
13380{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013381Gpm_GetLibVersion(NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013382 ;
13383 return 0;
13384}
13385_ACEOF
13386rm -f conftest.$ac_objext conftest$ac_exeext
13387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13388 (eval $ac_link) 2>conftest.er1
13389 ac_status=$?
13390 grep -v '^ *+' conftest.er1 >conftest.err
13391 rm -f conftest.er1
13392 cat conftest.err >&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try='test -z "$ac_c_werror_flag"
13396 || test ! -s conftest.err'
13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398 (eval $ac_try) 2>&5
13399 ac_status=$?
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); }; } &&
13402 { ac_try='test -s conftest$ac_exeext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013408 vi_cv_have_gpm=yes
13409else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013410 echo "$as_me: failed program was:" >&5
13411sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013412
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013413vi_cv_have_gpm=no
13414fi
13415rm -f conftest.err conftest.$ac_objext \
13416 conftest$ac_exeext conftest.$ac_ext
13417 LIBS="$olibs"
13418
13419fi
13420echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13421echo "${ECHO_T}$vi_cv_have_gpm" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013422 if test $vi_cv_have_gpm = yes; then
13423 LIBS="$LIBS -lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013424 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013425#define HAVE_GPM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013426_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013427
13428 fi
13429else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013430 echo "$as_me:$LINENO: result: yes" >&5
13431echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013432fi
13433
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013434echo "$as_me:$LINENO: checking for rename" >&5
13435echo $ECHO_N "checking for rename... $ECHO_C" >&6
13436cat >conftest.$ac_ext <<_ACEOF
13437/* confdefs.h. */
13438_ACEOF
13439cat confdefs.h >>conftest.$ac_ext
13440cat >>conftest.$ac_ext <<_ACEOF
13441/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013442#include <stdio.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013443int
13444main ()
13445{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013446rename("this", "that")
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013447 ;
13448 return 0;
13449}
13450_ACEOF
13451rm -f conftest.$ac_objext conftest$ac_exeext
13452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13453 (eval $ac_link) 2>conftest.er1
13454 ac_status=$?
13455 grep -v '^ *+' conftest.er1 >conftest.err
13456 rm -f conftest.er1
13457 cat conftest.err >&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); } &&
13460 { ac_try='test -z "$ac_c_werror_flag"
13461 || test ! -s conftest.err'
13462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463 (eval $ac_try) 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; } &&
13467 { ac_try='test -s conftest$ac_exeext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 echo "$as_me:$LINENO: result: yes" >&5
13474echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013475#define HAVE_RENAME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013476_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013477
13478else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013479 echo "$as_me: failed program was:" >&5
13480sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013481
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013482echo "$as_me:$LINENO: result: no" >&5
13483echo "${ECHO_T}no" >&6
13484fi
13485rm -f conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
13487
13488echo "$as_me:$LINENO: checking for sysctl" >&5
13489echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13490cat >conftest.$ac_ext <<_ACEOF
13491/* confdefs.h. */
13492_ACEOF
13493cat confdefs.h >>conftest.$ac_ext
13494cat >>conftest.$ac_ext <<_ACEOF
13495/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013496#include <sys/types.h>
13497#include <sys/sysctl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013498int
13499main ()
13500{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013501 int mib[2], r;
13502 size_t len;
13503
13504 mib[0] = CTL_HW;
13505 mib[1] = HW_USERMEM;
13506 len = sizeof(r);
13507 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013508
13509 ;
13510 return 0;
13511}
13512_ACEOF
13513rm -f conftest.$ac_objext
13514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13515 (eval $ac_compile) 2>conftest.er1
13516 ac_status=$?
13517 grep -v '^ *+' conftest.er1 >conftest.err
13518 rm -f conftest.er1
13519 cat conftest.err >&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } &&
13522 { ac_try='test -z "$ac_c_werror_flag"
13523 || test ! -s conftest.err'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; } &&
13529 { ac_try='test -s conftest.$ac_objext'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 echo "$as_me:$LINENO: result: yes" >&5
13536echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013537#define HAVE_SYSCTL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013538_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013539
13540else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013541 echo "$as_me: failed program was:" >&5
13542sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013543
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013544echo "$as_me:$LINENO: result: not usable" >&5
13545echo "${ECHO_T}not usable" >&6
13546fi
13547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13548
13549echo "$as_me:$LINENO: checking for sysinfo" >&5
13550echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13551cat >conftest.$ac_ext <<_ACEOF
13552/* confdefs.h. */
13553_ACEOF
13554cat confdefs.h >>conftest.$ac_ext
13555cat >>conftest.$ac_ext <<_ACEOF
13556/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013557#include <sys/types.h>
13558#include <sys/sysinfo.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013559int
13560main ()
13561{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013562 struct sysinfo sinfo;
13563 int t;
13564
13565 (void)sysinfo(&sinfo);
13566 t = sinfo.totalram;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013567
13568 ;
13569 return 0;
13570}
13571_ACEOF
13572rm -f conftest.$ac_objext
13573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -z "$ac_c_werror_flag"
13582 || test ! -s conftest.err'
13583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13584 (eval $ac_try) 2>&5
13585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest.$ac_objext'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13591 ac_status=$?
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; }; then
13594 echo "$as_me:$LINENO: result: yes" >&5
13595echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013596#define HAVE_SYSINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013597_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013598
13599else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013600 echo "$as_me: failed program was:" >&5
13601sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013602
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013603echo "$as_me:$LINENO: result: not usable" >&5
13604echo "${ECHO_T}not usable" >&6
13605fi
13606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13607
13608echo "$as_me:$LINENO: checking for sysconf" >&5
13609echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13610cat >conftest.$ac_ext <<_ACEOF
13611/* confdefs.h. */
13612_ACEOF
13613cat confdefs.h >>conftest.$ac_ext
13614cat >>conftest.$ac_ext <<_ACEOF
13615/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013616#include <unistd.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013617int
13618main ()
13619{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013620 (void)sysconf(_SC_PAGESIZE);
13621 (void)sysconf(_SC_PHYS_PAGES);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013622
13623 ;
13624 return 0;
13625}
13626_ACEOF
13627rm -f conftest.$ac_objext
13628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13629 (eval $ac_compile) 2>conftest.er1
13630 ac_status=$?
13631 grep -v '^ *+' conftest.er1 >conftest.err
13632 rm -f conftest.er1
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -z "$ac_c_werror_flag"
13637 || test ! -s conftest.err'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try='test -s conftest.$ac_objext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 echo "$as_me:$LINENO: result: yes" >&5
13650echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013651#define HAVE_SYSCONF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013652_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013653
13654else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013655 echo "$as_me: failed program was:" >&5
13656sed 's/^/| /' conftest.$ac_ext >&5
13657
13658echo "$as_me:$LINENO: result: not usable" >&5
13659echo "${ECHO_T}not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013660fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013662
13663
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013664echo "$as_me:$LINENO: checking size of int" >&5
13665echo $ECHO_N "checking size of int... $ECHO_C" >&6
13666if test "${ac_cv_sizeof_int+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013668else
13669 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013670 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13671echo "$as_me: error: failed to compile test program" >&2;}
13672 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013673else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013674 cat >conftest.$ac_ext <<_ACEOF
13675/* confdefs.h. */
13676_ACEOF
13677cat confdefs.h >>conftest.$ac_ext
13678cat >>conftest.$ac_ext <<_ACEOF
13679/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013680#include <stdio.h>
13681 main()
13682 {
13683 FILE *f=fopen("conftestval", "w");
13684 if (!f) exit(1);
13685 fprintf(f, "%d\n", (int)sizeof(int));
13686 exit(0);
13687 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013688_ACEOF
13689rm -f conftest$ac_exeext
13690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691 (eval $ac_link) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013700 ac_cv_sizeof_int=`cat conftestval`
13701else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013702 echo "$as_me: program exited with status $ac_status" >&5
13703echo "$as_me: failed program was:" >&5
13704sed 's/^/| /' conftest.$ac_ext >&5
13705
13706( exit $ac_status )
13707ac_cv_sizeof_int=0
Bram Moolenaar071d4272004-06-13 20:20:40 +000013708fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013709rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13710fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013711fi
13712
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013713echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13714echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13715cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013716#define SIZEOF_INT $ac_cv_sizeof_int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013717_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013718
13719
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013720echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13721echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013722bcopy_test_prog='
13723main() {
13724 char buf[10];
13725 strcpy(buf, "abcdefghi");
13726 mch_memmove(buf, buf + 2, 3);
13727 if (strncmp(buf, "ababcf", 6))
13728 exit(1);
13729 strcpy(buf, "abcdefghi");
13730 mch_memmove(buf + 2, buf, 3);
13731 if (strncmp(buf, "cdedef", 6))
13732 exit(1);
13733 exit(0); /* libc version works properly. */
13734}'
13735
13736
13737if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013738 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13739echo "$as_me: error: failed to compile test program" >&2;}
13740 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013741else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013742 cat >conftest.$ac_ext <<_ACEOF
13743/* confdefs.h. */
13744_ACEOF
13745cat confdefs.h >>conftest.$ac_ext
13746cat >>conftest.$ac_ext <<_ACEOF
13747/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013748#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013749_ACEOF
13750rm -f conftest$ac_exeext
13751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13752 (eval $ac_link) 2>&5
13753 ac_status=$?
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013762#define USEMEMMOVE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013763_ACEOF
13764 echo "$as_me:$LINENO: result: memmove does" >&5
13765echo "${ECHO_T}memmove does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013766else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013767 echo "$as_me: program exited with status $ac_status" >&5
13768echo "$as_me: failed program was:" >&5
13769sed 's/^/| /' conftest.$ac_ext >&5
13770
13771( exit $ac_status )
13772if test "$cross_compiling" = yes; then
13773 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13774echo "$as_me: error: failed to compile test program" >&2;}
13775 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013776else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013777 cat >conftest.$ac_ext <<_ACEOF
13778/* confdefs.h. */
13779_ACEOF
13780cat confdefs.h >>conftest.$ac_ext
13781cat >>conftest.$ac_ext <<_ACEOF
13782/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013783#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013784_ACEOF
13785rm -f conftest$ac_exeext
13786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13787 (eval $ac_link) 2>&5
13788 ac_status=$?
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013797#define USEBCOPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013798_ACEOF
13799 echo "$as_me:$LINENO: result: bcopy does" >&5
13800echo "${ECHO_T}bcopy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013801else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013802 echo "$as_me: program exited with status $ac_status" >&5
13803echo "$as_me: failed program was:" >&5
13804sed 's/^/| /' conftest.$ac_ext >&5
13805
13806( exit $ac_status )
13807if test "$cross_compiling" = yes; then
13808 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13809echo "$as_me: error: failed to compile test program" >&2;}
13810 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013811else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013812 cat >conftest.$ac_ext <<_ACEOF
13813/* confdefs.h. */
13814_ACEOF
13815cat confdefs.h >>conftest.$ac_ext
13816cat >>conftest.$ac_ext <<_ACEOF
13817/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013818#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013819_ACEOF
13820rm -f conftest$ac_exeext
13821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13822 (eval $ac_link) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; }; then
13831 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013832#define USEMEMCPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013833_ACEOF
13834 echo "$as_me:$LINENO: result: memcpy does" >&5
13835echo "${ECHO_T}memcpy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013836else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013837 echo "$as_me: program exited with status $ac_status" >&5
13838echo "$as_me: failed program was:" >&5
13839sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013840
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013841( exit $ac_status )
13842echo "$as_me:$LINENO: result: no" >&5
13843echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013844fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013845rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013846fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013847fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013848rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013849fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013850fi
13851rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13852fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013853
13854
13855if test "$enable_multibyte" = "yes"; then
13856 cflags_save=$CFLAGS
13857 ldflags_save=$LDFLAGS
13858 if test -n "$x_includes" ; then
13859 CFLAGS="$CFLAGS -I$x_includes"
13860 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013861 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
13862echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
13863 cat >conftest.$ac_ext <<_ACEOF
13864/* confdefs.h. */
13865_ACEOF
13866cat confdefs.h >>conftest.$ac_ext
13867cat >>conftest.$ac_ext <<_ACEOF
13868/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013869#include <X11/Xlocale.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013870int
13871main ()
13872{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013873
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext
13879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_c_werror_flag"
13888 || test ! -s conftest.err'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 cat >conftest.$ac_ext <<_ACEOF
13901/* confdefs.h. */
13902_ACEOF
13903cat confdefs.h >>conftest.$ac_ext
13904cat >>conftest.$ac_ext <<_ACEOF
13905/* end confdefs.h. */
13906
Bram Moolenaar071d4272004-06-13 20:20:40 +000013907/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013908#ifdef __cplusplus
13909extern "C"
13910#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013911/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013912 builtin and then its argument prototype would still apply. */
13913char _Xsetlocale ();
13914int
13915main ()
13916{
13917_Xsetlocale ();
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922rm -f conftest.$ac_objext conftest$ac_exeext
13923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13924 (eval $ac_link) 2>conftest.er1
13925 ac_status=$?
13926 grep -v '^ *+' conftest.er1 >conftest.err
13927 rm -f conftest.er1
13928 cat conftest.err >&5
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } &&
13931 { ac_try='test -z "$ac_c_werror_flag"
13932 || test ! -s conftest.err'
13933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13935 ac_status=$?
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; } &&
13938 { ac_try='test -s conftest$ac_exeext'
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13941 ac_status=$?
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; }; then
13944 echo "$as_me:$LINENO: result: yes" >&5
13945echo "${ECHO_T}yes" >&6
13946 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013947#define X_LOCALE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013948_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013949
13950else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013951 echo "$as_me: failed program was:" >&5
13952sed 's/^/| /' conftest.$ac_ext >&5
13953
13954echo "$as_me:$LINENO: result: no" >&5
13955echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013956fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013957rm -f conftest.err conftest.$ac_objext \
13958 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013959else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013960 echo "$as_me: failed program was:" >&5
13961sed 's/^/| /' conftest.$ac_ext >&5
13962
13963echo "$as_me:$LINENO: result: no" >&5
13964echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013965fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013967 fi
13968 CFLAGS=$cflags_save
13969 LDFLAGS=$ldflags_save
13970fi
13971
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013972echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
13973echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
13974if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013976else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013977 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013978LIBS="-lxpg4 $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013979cat >conftest.$ac_ext <<_ACEOF
13980/* confdefs.h. */
13981_ACEOF
13982cat confdefs.h >>conftest.$ac_ext
13983cat >>conftest.$ac_ext <<_ACEOF
13984/* end confdefs.h. */
13985
Bram Moolenaar071d4272004-06-13 20:20:40 +000013986/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013987#ifdef __cplusplus
13988extern "C"
13989#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013990/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013991 builtin and then its argument prototype would still apply. */
13992char _xpg4_setrunelocale ();
13993int
13994main ()
13995{
13996_xpg4_setrunelocale ();
13997 ;
13998 return 0;
13999}
14000_ACEOF
14001rm -f conftest.$ac_objext conftest$ac_exeext
14002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14003 (eval $ac_link) 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } &&
14010 { ac_try='test -z "$ac_c_werror_flag"
14011 || test ! -s conftest.err'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; } &&
14017 { ac_try='test -s conftest$ac_exeext'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14020 ac_status=$?
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014024else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014025 echo "$as_me: failed program was:" >&5
14026sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014027
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014028ac_cv_lib_xpg4__xpg4_setrunelocale=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014029fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014030rm -f conftest.err conftest.$ac_objext \
14031 conftest$ac_exeext conftest.$ac_ext
14032LIBS=$ac_check_lib_save_LIBS
14033fi
14034echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14035echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14036if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014037 LIBS="$LIBS -lxpg4"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014038fi
14039
14040
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014041echo "$as_me:$LINENO: checking how to create tags" >&5
14042echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014043test -f tags && mv tags tags.save
14044if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
Bram Moolenaar78984f52005-08-01 07:19:10 +000014045 TAGPRG="ctags -I INIT+"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014046else
14047 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14048 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14049 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14050 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14051 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14052 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14053 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14054fi
14055test -f tags.save && mv tags.save tags
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014056echo "$as_me:$LINENO: result: $TAGPRG" >&5
14057echo "${ECHO_T}$TAGPRG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014058
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014059echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14060echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014061MANDEF="man"
14062(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014063echo "$as_me:$LINENO: result: $MANDEF" >&5
14064echo "${ECHO_T}$MANDEF" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014065if test "$MANDEF" = "man -s"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014066 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014067#define USEMAN_S 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014068_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014069
14070fi
14071
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014072echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14073echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014074# Check whether --enable-nls or --disable-nls was given.
14075if test "${enable_nls+set}" = set; then
14076 enableval="$enable_nls"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014077
Bram Moolenaar071d4272004-06-13 20:20:40 +000014078else
14079 enable_nls="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014080fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014081
14082if test "$enable_nls" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014083 echo "$as_me:$LINENO: result: no" >&5
14084echo "${ECHO_T}no" >&6
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000014085
14086 INSTALL_LANGS=install-languages
14087
14088 INSTALL_TOOL_LANGS=install-tool-languages
14089
14090
Bram Moolenaar071d4272004-06-13 20:20:40 +000014091 # Extract the first word of "msgfmt", so it can be a program name with args.
14092set dummy msgfmt; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014093echo "$as_me:$LINENO: checking for $ac_word" >&5
14094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14095if test "${ac_cv_prog_MSGFMT+set}" = set; then
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014097else
14098 if test -n "$MSGFMT"; then
14099 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14100else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14102for as_dir in $PATH
14103do
14104 IFS=$as_save_IFS
14105 test -z "$as_dir" && as_dir=.
14106 for ac_exec_ext in '' $ac_executable_extensions; do
14107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14108 ac_cv_prog_MSGFMT="msgfmt"
14109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14110 break 2
14111 fi
14112done
14113done
14114
Bram Moolenaar071d4272004-06-13 20:20:40 +000014115fi
14116fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014117MSGFMT=$ac_cv_prog_MSGFMT
Bram Moolenaar071d4272004-06-13 20:20:40 +000014118if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014119 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14120echo "${ECHO_T}$MSGFMT" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014121else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014122 echo "$as_me:$LINENO: result: no" >&5
14123echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014124fi
14125
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014126 echo "$as_me:$LINENO: checking for NLS" >&5
14127echo $ECHO_N "checking for NLS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014128 if test -f po/Makefile; then
14129 have_gettext="no"
14130 if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014131 cat >conftest.$ac_ext <<_ACEOF
14132/* confdefs.h. */
14133_ACEOF
14134cat confdefs.h >>conftest.$ac_ext
14135cat >>conftest.$ac_ext <<_ACEOF
14136/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014137#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014138int
14139main ()
14140{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014141gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014142 ;
14143 return 0;
14144}
14145_ACEOF
14146rm -f conftest.$ac_objext conftest$ac_exeext
14147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14148 (eval $ac_link) 2>conftest.er1
14149 ac_status=$?
14150 grep -v '^ *+' conftest.er1 >conftest.err
14151 rm -f conftest.er1
14152 cat conftest.err >&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } &&
14155 { ac_try='test -z "$ac_c_werror_flag"
14156 || test ! -s conftest.err'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; } &&
14162 { ac_try='test -s conftest$ac_exeext'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
14168 echo "$as_me:$LINENO: result: gettext() works" >&5
14169echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014170else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014171 echo "$as_me: failed program was:" >&5
14172sed 's/^/| /' conftest.$ac_ext >&5
14173
14174olibs=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014175 LIBS="$LIBS -lintl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014176 cat >conftest.$ac_ext <<_ACEOF
14177/* confdefs.h. */
14178_ACEOF
14179cat confdefs.h >>conftest.$ac_ext
14180cat >>conftest.$ac_ext <<_ACEOF
14181/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014182#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014183int
14184main ()
14185{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014186gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014187 ;
14188 return 0;
14189}
14190_ACEOF
14191rm -f conftest.$ac_objext conftest$ac_exeext
14192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14193 (eval $ac_link) 2>conftest.er1
14194 ac_status=$?
14195 grep -v '^ *+' conftest.er1 >conftest.err
14196 rm -f conftest.er1
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try='test -z "$ac_c_werror_flag"
14201 || test ! -s conftest.err'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14204 ac_status=$?
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; } &&
14207 { ac_try='test -s conftest$ac_exeext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14214echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014215else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014216 echo "$as_me: failed program was:" >&5
14217sed 's/^/| /' conftest.$ac_ext >&5
14218
14219echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14220echo "${ECHO_T}gettext() doesn't work" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014221 LIBS=$olibs
14222fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014223rm -f conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014225fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014226rm -f conftest.err conftest.$ac_objext \
14227 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014228 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014229 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14230echo "${ECHO_T}msgfmt not found - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014231 fi
14232 if test $have_gettext = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014233 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014234#define HAVE_GETTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014235_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014236
14237 MAKEMO=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014238
14239
14240for ac_func in bind_textdomain_codeset
Bram Moolenaar071d4272004-06-13 20:20:40 +000014241do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014242as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14243echo "$as_me:$LINENO: checking for $ac_func" >&5
14244echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14245if eval "test \"\${$as_ac_var+set}\" = set"; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014247else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014248 cat >conftest.$ac_ext <<_ACEOF
14249/* confdefs.h. */
14250_ACEOF
14251cat confdefs.h >>conftest.$ac_ext
14252cat >>conftest.$ac_ext <<_ACEOF
14253/* end confdefs.h. */
14254/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14256#define $ac_func innocuous_$ac_func
14257
Bram Moolenaar071d4272004-06-13 20:20:40 +000014258/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014259 which can conflict with char $ac_func (); below.
14260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14261 <limits.h> exists even on freestanding compilers. */
14262
14263#ifdef __STDC__
14264# include <limits.h>
14265#else
14266# include <assert.h>
14267#endif
14268
14269#undef $ac_func
14270
Bram Moolenaar071d4272004-06-13 20:20:40 +000014271/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014272#ifdef __cplusplus
14273extern "C"
14274{
14275#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014276/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014277 builtin and then its argument prototype would still apply. */
14278char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000014279/* The GNU C library defines this for functions which it implements
14280 to always fail with ENOSYS. Some functions are actually named
14281 something starting with __ and the normal name is an alias. */
14282#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14283choke me
14284#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014285char (*f) () = $ac_func;
14286#endif
14287#ifdef __cplusplus
14288}
Bram Moolenaar071d4272004-06-13 20:20:40 +000014289#endif
14290
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014291int
14292main ()
14293{
14294return f != $ac_func;
14295 ;
14296 return 0;
14297}
14298_ACEOF
14299rm -f conftest.$ac_objext conftest$ac_exeext
14300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14301 (eval $ac_link) 2>conftest.er1
14302 ac_status=$?
14303 grep -v '^ *+' conftest.er1 >conftest.err
14304 rm -f conftest.er1
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try='test -z "$ac_c_werror_flag"
14309 || test ! -s conftest.err'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14312 ac_status=$?
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try='test -s conftest$ac_exeext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014322else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014323 echo "$as_me: failed program was:" >&5
14324sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014325
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014326eval "$as_ac_var=no"
14327fi
14328rm -f conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14330fi
14331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14332echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14333if test `eval echo '${'$as_ac_var'}'` = yes; then
14334 cat >>confdefs.h <<_ACEOF
14335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14336_ACEOF
14337
Bram Moolenaar071d4272004-06-13 20:20:40 +000014338fi
14339done
14340
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014341 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14342echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14343 cat >conftest.$ac_ext <<_ACEOF
14344/* confdefs.h. */
14345_ACEOF
14346cat confdefs.h >>conftest.$ac_ext
14347cat >>conftest.$ac_ext <<_ACEOF
14348/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014349#include <libintl.h>
14350 extern int _nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014351int
14352main ()
14353{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014354++_nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014355 ;
14356 return 0;
14357}
14358_ACEOF
14359rm -f conftest.$ac_objext conftest$ac_exeext
14360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14361 (eval $ac_link) 2>conftest.er1
14362 ac_status=$?
14363 grep -v '^ *+' conftest.er1 >conftest.err
14364 rm -f conftest.er1
14365 cat conftest.err >&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } &&
14368 { ac_try='test -z "$ac_c_werror_flag"
14369 || test ! -s conftest.err'
14370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14371 (eval $ac_try) 2>&5
14372 ac_status=$?
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; } &&
14375 { ac_try='test -s conftest$ac_exeext'
14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377 (eval $ac_try) 2>&5
14378 ac_status=$?
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
14381 echo "$as_me:$LINENO: result: yes" >&5
14382echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014383#define HAVE_NL_MSG_CAT_CNTR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014384_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014385
14386else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014387 echo "$as_me: failed program was:" >&5
14388sed 's/^/| /' conftest.$ac_ext >&5
14389
14390echo "$as_me:$LINENO: result: no" >&5
14391echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014392fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014393rm -f conftest.err conftest.$ac_objext \
14394 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014395 fi
14396 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014397 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14398echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014399 fi
14400else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014401 echo "$as_me:$LINENO: result: yes" >&5
14402echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014403fi
14404
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014405if test "${ac_cv_header_dlfcn_h+set}" = set; then
14406 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14407echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14408if test "${ac_cv_header_dlfcn_h+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14410fi
14411echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14412echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014413else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014414 # Is the header compilable?
14415echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14416echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14417cat >conftest.$ac_ext <<_ACEOF
14418/* confdefs.h. */
14419_ACEOF
14420cat confdefs.h >>conftest.$ac_ext
14421cat >>conftest.$ac_ext <<_ACEOF
14422/* end confdefs.h. */
14423$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014424#include <dlfcn.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014425_ACEOF
14426rm -f conftest.$ac_objext
14427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428 (eval $ac_compile) 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag"
14436 || test ! -s conftest.err'
14437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14438 (eval $ac_try) 2>&5
14439 ac_status=$?
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); }; } &&
14442 { ac_try='test -s conftest.$ac_objext'
14443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14444 (eval $ac_try) 2>&5
14445 ac_status=$?
14446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14447 (exit $ac_status); }; }; then
14448 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014449else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014450 echo "$as_me: failed program was:" >&5
14451sed 's/^/| /' conftest.$ac_ext >&5
14452
14453ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014454fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14456echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14457echo "${ECHO_T}$ac_header_compiler" >&6
14458
14459# Is the header present?
14460echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14461echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14462cat >conftest.$ac_ext <<_ACEOF
14463/* confdefs.h. */
14464_ACEOF
14465cat confdefs.h >>conftest.$ac_ext
14466cat >>conftest.$ac_ext <<_ACEOF
14467/* end confdefs.h. */
14468#include <dlfcn.h>
14469_ACEOF
14470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14472 ac_status=$?
14473 grep -v '^ *+' conftest.er1 >conftest.err
14474 rm -f conftest.er1
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } >/dev/null; then
14478 if test -s conftest.err; then
14479 ac_cpp_err=$ac_c_preproc_warn_flag
14480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14481 else
14482 ac_cpp_err=
14483 fi
14484else
14485 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014486fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014487if test -z "$ac_cpp_err"; then
14488 ac_header_preproc=yes
14489else
14490 echo "$as_me: failed program was:" >&5
14491sed 's/^/| /' conftest.$ac_ext >&5
14492
14493 ac_header_preproc=no
14494fi
14495rm -f conftest.err conftest.$ac_ext
14496echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14497echo "${ECHO_T}$ac_header_preproc" >&6
14498
14499# So? What about this header?
14500case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14501 yes:no: )
14502 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14503echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14504 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14505echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14506 ac_header_preproc=yes
14507 ;;
14508 no:yes:* )
14509 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14510echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14511 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14512echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14514echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14516echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14517 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14518echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14519 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14520echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14521 (
14522 cat <<\_ASBOX
14523## ------------------------------------------ ##
14524## Report this to the AC_PACKAGE_NAME lists. ##
14525## ------------------------------------------ ##
14526_ASBOX
14527 ) |
14528 sed "s/^/$as_me: WARNING: /" >&2
14529 ;;
14530esac
14531echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14532echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14533if test "${ac_cv_header_dlfcn_h+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14535else
14536 ac_cv_header_dlfcn_h=$ac_header_preproc
14537fi
14538echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14539echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14540
14541fi
14542if test $ac_cv_header_dlfcn_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014543 DLL=dlfcn.h
14544else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014545 if test "${ac_cv_header_dl_h+set}" = set; then
14546 echo "$as_me:$LINENO: checking for dl.h" >&5
14547echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14548if test "${ac_cv_header_dl_h+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14550fi
14551echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14552echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014553else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014554 # Is the header compilable?
14555echo "$as_me:$LINENO: checking dl.h usability" >&5
14556echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14557cat >conftest.$ac_ext <<_ACEOF
14558/* confdefs.h. */
14559_ACEOF
14560cat confdefs.h >>conftest.$ac_ext
14561cat >>conftest.$ac_ext <<_ACEOF
14562/* end confdefs.h. */
14563$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014564#include <dl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014565_ACEOF
14566rm -f conftest.$ac_objext
14567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14568 (eval $ac_compile) 2>conftest.er1
14569 ac_status=$?
14570 grep -v '^ *+' conftest.er1 >conftest.err
14571 rm -f conftest.er1
14572 cat conftest.err >&5
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -z "$ac_c_werror_flag"
14576 || test ! -s conftest.err'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14579 ac_status=$?
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; } &&
14582 { ac_try='test -s conftest.$ac_objext'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; }; then
14588 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014589else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014590 echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
14592
14593ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014594fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14596echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14597echo "${ECHO_T}$ac_header_compiler" >&6
14598
14599# Is the header present?
14600echo "$as_me:$LINENO: checking dl.h presence" >&5
14601echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14602cat >conftest.$ac_ext <<_ACEOF
14603/* confdefs.h. */
14604_ACEOF
14605cat confdefs.h >>conftest.$ac_ext
14606cat >>conftest.$ac_ext <<_ACEOF
14607/* end confdefs.h. */
14608#include <dl.h>
14609_ACEOF
14610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14612 ac_status=$?
14613 grep -v '^ *+' conftest.er1 >conftest.err
14614 rm -f conftest.er1
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } >/dev/null; then
14618 if test -s conftest.err; then
14619 ac_cpp_err=$ac_c_preproc_warn_flag
14620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14621 else
14622 ac_cpp_err=
14623 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014624else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014625 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014626fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014627if test -z "$ac_cpp_err"; then
14628 ac_header_preproc=yes
14629else
14630 echo "$as_me: failed program was:" >&5
14631sed 's/^/| /' conftest.$ac_ext >&5
14632
14633 ac_header_preproc=no
14634fi
14635rm -f conftest.err conftest.$ac_ext
14636echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14637echo "${ECHO_T}$ac_header_preproc" >&6
14638
14639# So? What about this header?
14640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14641 yes:no: )
14642 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14643echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14645echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14646 ac_header_preproc=yes
14647 ;;
14648 no:yes:* )
14649 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14650echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14651 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14652echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14653 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14654echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14655 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14656echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14657 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14658echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14659 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14660echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14661 (
14662 cat <<\_ASBOX
14663## ------------------------------------------ ##
14664## Report this to the AC_PACKAGE_NAME lists. ##
14665## ------------------------------------------ ##
14666_ASBOX
14667 ) |
14668 sed "s/^/$as_me: WARNING: /" >&2
14669 ;;
14670esac
14671echo "$as_me:$LINENO: checking for dl.h" >&5
14672echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14673if test "${ac_cv_header_dl_h+set}" = set; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14675else
14676 ac_cv_header_dl_h=$ac_header_preproc
14677fi
14678echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14679echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014680
14681fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014682if test $ac_cv_header_dl_h = yes; then
14683 DLL=dl.h
14684fi
14685
14686
14687fi
14688
Bram Moolenaar071d4272004-06-13 20:20:40 +000014689
14690if test x${DLL} = xdlfcn.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014691
14692cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014693#define HAVE_DLFCN_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014694_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014695
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014696 echo "$as_me:$LINENO: checking for dlopen()" >&5
14697echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14698 cat >conftest.$ac_ext <<_ACEOF
14699/* confdefs.h. */
14700_ACEOF
14701cat confdefs.h >>conftest.$ac_ext
14702cat >>conftest.$ac_ext <<_ACEOF
14703/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014704
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014705int
14706main ()
14707{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014708
14709 extern void* dlopen();
14710 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014711
14712 ;
14713 return 0;
14714}
14715_ACEOF
14716rm -f conftest.$ac_objext conftest$ac_exeext
14717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14718 (eval $ac_link) 2>conftest.er1
14719 ac_status=$?
14720 grep -v '^ *+' conftest.er1 >conftest.err
14721 rm -f conftest.er1
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } &&
14725 { ac_try='test -z "$ac_c_werror_flag"
14726 || test ! -s conftest.err'
14727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; } &&
14732 { ac_try='test -s conftest$ac_exeext'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; }; then
14738 echo "$as_me:$LINENO: result: yes" >&5
14739echo "${ECHO_T}yes" >&6;
14740
14741cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014742#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014743_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014744
14745else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014746 echo "$as_me: failed program was:" >&5
14747sed 's/^/| /' conftest.$ac_ext >&5
14748
14749echo "$as_me:$LINENO: result: no" >&5
14750echo "${ECHO_T}no" >&6;
14751 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14752echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014753 olibs=$LIBS
14754 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014755 cat >conftest.$ac_ext <<_ACEOF
14756/* confdefs.h. */
14757_ACEOF
14758cat confdefs.h >>conftest.$ac_ext
14759cat >>conftest.$ac_ext <<_ACEOF
14760/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014761
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014762int
14763main ()
14764{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014765
14766 extern void* dlopen();
14767 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014768
14769 ;
14770 return 0;
14771}
14772_ACEOF
14773rm -f conftest.$ac_objext conftest$ac_exeext
14774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14775 (eval $ac_link) 2>conftest.er1
14776 ac_status=$?
14777 grep -v '^ *+' conftest.er1 >conftest.err
14778 rm -f conftest.er1
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
14782 { ac_try='test -z "$ac_c_werror_flag"
14783 || test ! -s conftest.err'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14786 ac_status=$?
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; } &&
14789 { ac_try='test -s conftest$ac_exeext'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14792 ac_status=$?
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; }; then
14795 echo "$as_me:$LINENO: result: yes" >&5
14796echo "${ECHO_T}yes" >&6;
14797
14798cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014799#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014800_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014801
14802else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014803 echo "$as_me: failed program was:" >&5
14804sed 's/^/| /' conftest.$ac_ext >&5
14805
14806echo "$as_me:$LINENO: result: no" >&5
14807echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014808 LIBS=$olibs
14809fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014810rm -f conftest.err conftest.$ac_objext \
14811 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014812fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014813rm -f conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext conftest.$ac_ext
14815 echo "$as_me:$LINENO: checking for dlsym()" >&5
14816echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14817 cat >conftest.$ac_ext <<_ACEOF
14818/* confdefs.h. */
14819_ACEOF
14820cat confdefs.h >>conftest.$ac_ext
14821cat >>conftest.$ac_ext <<_ACEOF
14822/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014823
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014824int
14825main ()
14826{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014827
14828 extern void* dlsym();
14829 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014830
14831 ;
14832 return 0;
14833}
14834_ACEOF
14835rm -f conftest.$ac_objext conftest$ac_exeext
14836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14837 (eval $ac_link) 2>conftest.er1
14838 ac_status=$?
14839 grep -v '^ *+' conftest.er1 >conftest.err
14840 rm -f conftest.er1
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } &&
14844 { ac_try='test -z "$ac_c_werror_flag"
14845 || test ! -s conftest.err'
14846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14847 (eval $ac_try) 2>&5
14848 ac_status=$?
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); }; } &&
14851 { ac_try='test -s conftest$ac_exeext'
14852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14853 (eval $ac_try) 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); }; }; then
14857 echo "$as_me:$LINENO: result: yes" >&5
14858echo "${ECHO_T}yes" >&6;
14859
14860cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014861#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014862_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014863
14864else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014865 echo "$as_me: failed program was:" >&5
14866sed 's/^/| /' conftest.$ac_ext >&5
14867
14868echo "$as_me:$LINENO: result: no" >&5
14869echo "${ECHO_T}no" >&6;
14870 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
14871echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014872 olibs=$LIBS
14873 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014874 cat >conftest.$ac_ext <<_ACEOF
14875/* confdefs.h. */
14876_ACEOF
14877cat confdefs.h >>conftest.$ac_ext
14878cat >>conftest.$ac_ext <<_ACEOF
14879/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014880
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014881int
14882main ()
14883{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014884
14885 extern void* dlsym();
14886 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014887
14888 ;
14889 return 0;
14890}
14891_ACEOF
14892rm -f conftest.$ac_objext conftest$ac_exeext
14893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14894 (eval $ac_link) 2>conftest.er1
14895 ac_status=$?
14896 grep -v '^ *+' conftest.er1 >conftest.err
14897 rm -f conftest.er1
14898 cat conftest.err >&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
14901 { ac_try='test -z "$ac_c_werror_flag"
14902 || test ! -s conftest.err'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; } &&
14908 { ac_try='test -s conftest$ac_exeext'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 echo "$as_me:$LINENO: result: yes" >&5
14915echo "${ECHO_T}yes" >&6;
14916
14917cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014918#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014919_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014920
14921else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014922 echo "$as_me: failed program was:" >&5
14923sed 's/^/| /' conftest.$ac_ext >&5
14924
14925echo "$as_me:$LINENO: result: no" >&5
14926echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014927 LIBS=$olibs
14928fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014929rm -f conftest.err conftest.$ac_objext \
14930 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014931fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014932rm -f conftest.err conftest.$ac_objext \
14933 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014934elif test x${DLL} = xdl.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014935
14936cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014937#define HAVE_DL_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014938_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014939
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014940 echo "$as_me:$LINENO: checking for shl_load()" >&5
14941echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
14942 cat >conftest.$ac_ext <<_ACEOF
14943/* confdefs.h. */
14944_ACEOF
14945cat confdefs.h >>conftest.$ac_ext
14946cat >>conftest.$ac_ext <<_ACEOF
14947/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014948
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014949int
14950main ()
14951{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014952
14953 extern void* shl_load();
14954 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014955
14956 ;
14957 return 0;
14958}
14959_ACEOF
14960rm -f conftest.$ac_objext conftest$ac_exeext
14961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14962 (eval $ac_link) 2>conftest.er1
14963 ac_status=$?
14964 grep -v '^ *+' conftest.er1 >conftest.err
14965 rm -f conftest.er1
14966 cat conftest.err >&5
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); } &&
14969 { ac_try='test -z "$ac_c_werror_flag"
14970 || test ! -s conftest.err'
14971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14973 ac_status=$?
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); }; } &&
14976 { ac_try='test -s conftest$ac_exeext'
14977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14979 ac_status=$?
14980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14982 echo "$as_me:$LINENO: result: yes" >&5
14983echo "${ECHO_T}yes" >&6;
14984
14985cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014986#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014987_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014988
14989else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014990 echo "$as_me: failed program was:" >&5
14991sed 's/^/| /' conftest.$ac_ext >&5
14992
14993echo "$as_me:$LINENO: result: no" >&5
14994echo "${ECHO_T}no" >&6;
14995 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
14996echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014997 olibs=$LIBS
14998 LIBS="$LIBS -ldld"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014999 cat >conftest.$ac_ext <<_ACEOF
15000/* confdefs.h. */
15001_ACEOF
15002cat confdefs.h >>conftest.$ac_ext
15003cat >>conftest.$ac_ext <<_ACEOF
15004/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015005
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015006int
15007main ()
15008{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015009
15010 extern void* shl_load();
15011 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015012
15013 ;
15014 return 0;
15015}
15016_ACEOF
15017rm -f conftest.$ac_objext conftest$ac_exeext
15018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15019 (eval $ac_link) 2>conftest.er1
15020 ac_status=$?
15021 grep -v '^ *+' conftest.er1 >conftest.err
15022 rm -f conftest.er1
15023 cat conftest.err >&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); } &&
15026 { ac_try='test -z "$ac_c_werror_flag"
15027 || test ! -s conftest.err'
15028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029 (eval $ac_try) 2>&5
15030 ac_status=$?
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); }; } &&
15033 { ac_try='test -s conftest$ac_exeext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 echo "$as_me:$LINENO: result: yes" >&5
15040echo "${ECHO_T}yes" >&6;
15041
15042cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015043#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015044_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015045
15046else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015047 echo "$as_me: failed program was:" >&5
15048sed 's/^/| /' conftest.$ac_ext >&5
15049
15050echo "$as_me:$LINENO: result: no" >&5
15051echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015052 LIBS=$olibs
15053fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015054rm -f conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015056fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015057rm -f conftest.err conftest.$ac_objext \
15058 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015059fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015060
15061for ac_header in setjmp.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000015062do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15064if eval "test \"\${$as_ac_Header+set}\" = set"; then
15065 echo "$as_me:$LINENO: checking for $ac_header" >&5
15066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15067if eval "test \"\${$as_ac_Header+set}\" = set"; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015069fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015072else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015073 # Is the header compilable?
15074echo "$as_me:$LINENO: checking $ac_header usability" >&5
15075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15076cat >conftest.$ac_ext <<_ACEOF
15077/* confdefs.h. */
15078_ACEOF
15079cat confdefs.h >>conftest.$ac_ext
15080cat >>conftest.$ac_ext <<_ACEOF
15081/* end confdefs.h. */
15082$ac_includes_default
15083#include <$ac_header>
15084_ACEOF
15085rm -f conftest.$ac_objext
15086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15087 (eval $ac_compile) 2>conftest.er1
15088 ac_status=$?
15089 grep -v '^ *+' conftest.er1 >conftest.err
15090 rm -f conftest.er1
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try='test -z "$ac_c_werror_flag"
15095 || test ! -s conftest.err'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest.$ac_objext'
15102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15104 ac_status=$?
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15107 ac_header_compiler=yes
15108else
15109 echo "$as_me: failed program was:" >&5
15110sed 's/^/| /' conftest.$ac_ext >&5
15111
15112ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015113fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15116echo "${ECHO_T}$ac_header_compiler" >&6
15117
15118# Is the header present?
15119echo "$as_me:$LINENO: checking $ac_header presence" >&5
15120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15121cat >conftest.$ac_ext <<_ACEOF
15122/* confdefs.h. */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h. */
15127#include <$ac_header>
15128_ACEOF
15129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15131 ac_status=$?
15132 grep -v '^ *+' conftest.er1 >conftest.err
15133 rm -f conftest.er1
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } >/dev/null; then
15137 if test -s conftest.err; then
15138 ac_cpp_err=$ac_c_preproc_warn_flag
15139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15140 else
15141 ac_cpp_err=
15142 fi
15143else
15144 ac_cpp_err=yes
15145fi
15146if test -z "$ac_cpp_err"; then
15147 ac_header_preproc=yes
15148else
15149 echo "$as_me: failed program was:" >&5
15150sed 's/^/| /' conftest.$ac_ext >&5
15151
15152 ac_header_preproc=no
15153fi
15154rm -f conftest.err conftest.$ac_ext
15155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15156echo "${ECHO_T}$ac_header_preproc" >&6
15157
15158# So? What about this header?
15159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15160 yes:no: )
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15165 ac_header_preproc=yes
15166 ;;
15167 no:yes:* )
15168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15180 (
15181 cat <<\_ASBOX
15182## ------------------------------------------ ##
15183## Report this to the AC_PACKAGE_NAME lists. ##
15184## ------------------------------------------ ##
15185_ASBOX
15186 ) |
15187 sed "s/^/$as_me: WARNING: /" >&2
15188 ;;
15189esac
15190echo "$as_me:$LINENO: checking for $ac_header" >&5
15191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15192if eval "test \"\${$as_ac_Header+set}\" = set"; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15194else
15195 eval "$as_ac_Header=\$ac_header_preproc"
15196fi
15197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15199
15200fi
15201if test `eval echo '${'$as_ac_Header'}'` = yes; then
15202 cat >>confdefs.h <<_ACEOF
15203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15204_ACEOF
15205
15206fi
15207
Bram Moolenaar071d4272004-06-13 20:20:40 +000015208done
15209
15210
15211if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15212 if echo $LIBS | grep -e '-ldl' >/dev/null; then
15213 LIBS=`echo $LIBS | sed s/-ldl//`
15214 PERL_LIBS="$PERL_LIBS -ldl"
15215 fi
15216fi
15217
15218if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15219 && test "x$GUITYPE" != "xCARBONGUI"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015220 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15221echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015222 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
15223 || test "x$features" = "xhuge"; then
15224 LIBS="$LIBS -framework Carbon"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015225 echo "$as_me:$LINENO: result: yes" >&5
15226echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015227 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015228 echo "$as_me:$LINENO: result: no" >&5
15229echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015230 fi
15231fi
Bram Moolenaare224ffa2006-03-01 00:01:28 +000015232if test "x$MACARCH" = "xboth"; then
15233 LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc"
15234fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015235
Bram Moolenaara5792f52005-11-23 21:25:05 +000015236echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15237echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015238DEPEND_CFLAGS_FILTER=
15239if test "$GCC" = yes; then
Bram Moolenaar32466aa2006-02-24 23:53:04 +000015240 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 +000015241 if test "$gccmajor" -gt "2"; then
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015242 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15243 fi
15244fi
Bram Moolenaara5792f52005-11-23 21:25:05 +000015245if test "$DEPEND_CFLAGS_FILTER" = ""; then
15246 echo "$as_me:$LINENO: result: no" >&5
15247echo "${ECHO_T}no" >&6
15248else
15249 echo "$as_me:$LINENO: result: yes" >&5
15250echo "${ECHO_T}yes" >&6
15251fi
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015252
Bram Moolenaar071d4272004-06-13 20:20:40 +000015253
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015254 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15255cat >confcache <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015256# This file is a shell script that caches the results of configure
15257# tests run on this system so they can be shared between configure
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015258# scripts and configure runs, see configure's option --config-cache.
15259# It is not useful on other systems. If it contains results you don't
15260# want to keep, you may remove or edit it.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015261#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015262# config.status only pays attention to the cache file if you give it
15263# the --recheck option to rerun configure.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015264#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015265# `ac_cv_env_foo' variables (set or unset) will be overridden when
15266# loading this file, other *unset* `ac_cv_foo' will be assigned the
15267# following values.
15268
15269_ACEOF
15270
Bram Moolenaar071d4272004-06-13 20:20:40 +000015271# The following way of writing the cache mishandles newlines in values,
15272# but we know of no workaround that is simple, portable, and efficient.
15273# So, don't put newlines in cache variables' values.
15274# Ultrix sh set writes to stderr and can't be redirected directly,
15275# and sets the high bit in the cache file unless we assign to the vars.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015276{
15277 (set) 2>&1 |
15278 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15279 *ac_space=\ *)
15280 # `set' does not quote correctly, so add quotes (double-quote
15281 # substitution turns \\\\ into \\, and sed turns \\ into \).
15282 sed -n \
15283 "s/'/'\\\\''/g;
15284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15285 ;;
15286 *)
15287 # `set' quotes correctly as required by POSIX, so do not add quotes.
15288 sed -n \
15289 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15290 ;;
15291 esac;
15292} |
15293 sed '
15294 t clear
15295 : clear
15296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15297 t end
15298 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15299 : end' >>confcache
15300if diff $cache_file confcache >/dev/null 2>&1; then :; else
Bram Moolenaar071d4272004-06-13 20:20:40 +000015301 if test -w $cache_file; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015302 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15303 cat confcache >$cache_file
Bram Moolenaar071d4272004-06-13 20:20:40 +000015304 else
15305 echo "not updating unwritable cache $cache_file"
15306 fi
15307fi
15308rm -f confcache
15309
Bram Moolenaar071d4272004-06-13 20:20:40 +000015310test "x$prefix" = xNONE && prefix=$ac_default_prefix
15311# Let make expand exec_prefix.
15312test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15313
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015314# VPATH may cause trouble with some makes, so we remove $(srcdir),
15315# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15316# trailing colons and then remove the whole line if VPATH becomes empty
15317# (actually we leave an empty line to preserve line numbers).
Bram Moolenaar071d4272004-06-13 20:20:40 +000015318if test "x$srcdir" = x.; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015319 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15320s/:*\$(srcdir):*/:/;
15321s/:*\${srcdir}:*/:/;
15322s/:*@srcdir@:*/:/;
15323s/^\([^=]*=[ ]*\):*/\1/;
15324s/:*$//;
15325s/^[^=]*=[ ]*$//;
15326}'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015327fi
15328
Bram Moolenaar071d4272004-06-13 20:20:40 +000015329DEFS=-DHAVE_CONFIG_H
15330
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015331ac_libobjs=
15332ac_ltlibobjs=
15333for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15334 # 1. Remove the extension, and $U if already installed.
15335 ac_i=`echo "$ac_i" |
15336 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15337 # 2. Add them.
15338 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15339 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15340done
15341LIBOBJS=$ac_libobjs
15342
15343LTLIBOBJS=$ac_ltlibobjs
15344
15345
15346
Bram Moolenaar071d4272004-06-13 20:20:40 +000015347: ${CONFIG_STATUS=./config.status}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015348ac_clean_files_save=$ac_clean_files
15349ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15350{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15351echo "$as_me: creating $CONFIG_STATUS" >&6;}
15352cat >$CONFIG_STATUS <<_ACEOF
15353#! $SHELL
15354# Generated by $as_me.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015355# Run this file to recreate the current configuration.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015356# Compiler output produced by configure, useful for debugging
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015357# configure, is in config.log if it exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015358
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015359debug=false
15360ac_cs_recheck=false
15361ac_cs_silent=false
15362SHELL=\${CONFIG_SHELL-$SHELL}
15363_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015364
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015365cat >>$CONFIG_STATUS <<\_ACEOF
15366## --------------------- ##
15367## M4sh Initialization. ##
15368## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000015369
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015370# Be Bourne compatible
15371if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15372 emulate sh
15373 NULLCMD=:
15374 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15375 # is contrary to our usage. Disable this feature.
15376 alias -g '${1+"$@"}'='"$@"'
15377elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15378 set -o posix
Bram Moolenaar071d4272004-06-13 20:20:40 +000015379fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015380DUALCASE=1; export DUALCASE # for MKS sh
Bram Moolenaar071d4272004-06-13 20:20:40 +000015381
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015382# Support unset when possible.
15383if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15384 as_unset=unset
15385else
15386 as_unset=false
15387fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015388
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015389
15390# Work around bugs in pre-3.0 UWIN ksh.
15391$as_unset ENV MAIL MAILPATH
15392PS1='$ '
15393PS2='> '
15394PS4='+ '
15395
15396# NLS nuisances.
15397for as_var in \
15398 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15399 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15400 LC_TELEPHONE LC_TIME
15401do
15402 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15403 eval $as_var=C; export $as_var
15404 else
15405 $as_unset $as_var
15406 fi
15407done
15408
15409# Required to use basename.
15410if expr a : '\(a\)' >/dev/null 2>&1; then
15411 as_expr=expr
15412else
15413 as_expr=false
15414fi
15415
15416if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15417 as_basename=basename
15418else
15419 as_basename=false
15420fi
15421
15422
15423# Name of the executable.
15424as_me=`$as_basename "$0" ||
15425$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15426 X"$0" : 'X\(//\)$' \| \
15427 X"$0" : 'X\(/\)$' \| \
15428 . : '\(.\)' 2>/dev/null ||
15429echo X/"$0" |
15430 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15431 /^X\/\(\/\/\)$/{ s//\1/; q; }
15432 /^X\/\(\/\).*/{ s//\1/; q; }
15433 s/.*/./; q'`
15434
15435
15436# PATH needs CR, and LINENO needs CR and PATH.
15437# Avoid depending upon Character Ranges.
15438as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15439as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15440as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15441as_cr_digits='0123456789'
15442as_cr_alnum=$as_cr_Letters$as_cr_digits
15443
15444# The user is always right.
15445if test "${PATH_SEPARATOR+set}" != set; then
15446 echo "#! /bin/sh" >conf$$.sh
15447 echo "exit 0" >>conf$$.sh
15448 chmod +x conf$$.sh
15449 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15450 PATH_SEPARATOR=';'
15451 else
15452 PATH_SEPARATOR=:
15453 fi
15454 rm -f conf$$.sh
15455fi
15456
15457
15458 as_lineno_1=$LINENO
15459 as_lineno_2=$LINENO
15460 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15461 test "x$as_lineno_1" != "x$as_lineno_2" &&
15462 test "x$as_lineno_3" = "x$as_lineno_2" || {
15463 # Find who we are. Look in the path if we contain no path at all
15464 # relative or not.
15465 case $0 in
15466 *[\\/]* ) as_myself=$0 ;;
15467 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15468for as_dir in $PATH
15469do
15470 IFS=$as_save_IFS
15471 test -z "$as_dir" && as_dir=.
15472 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15473done
15474
15475 ;;
15476 esac
15477 # We did not find ourselves, most probably we were run as `sh COMMAND'
15478 # in which case we are not to be found in the path.
15479 if test "x$as_myself" = x; then
15480 as_myself=$0
15481 fi
15482 if test ! -f "$as_myself"; then
15483 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15484echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15485 { (exit 1); exit 1; }; }
15486 fi
15487 case $CONFIG_SHELL in
15488 '')
15489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15490for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15491do
15492 IFS=$as_save_IFS
15493 test -z "$as_dir" && as_dir=.
15494 for as_base in sh bash ksh sh5; do
15495 case $as_dir in
15496 /*)
15497 if ("$as_dir/$as_base" -c '
15498 as_lineno_1=$LINENO
15499 as_lineno_2=$LINENO
15500 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15501 test "x$as_lineno_1" != "x$as_lineno_2" &&
15502 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15503 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15504 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15505 CONFIG_SHELL=$as_dir/$as_base
15506 export CONFIG_SHELL
15507 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15508 fi;;
15509 esac
15510 done
15511done
15512;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015513 esac
15514
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015515 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15516 # uniformly replaced by the line number. The first 'sed' inserts a
15517 # line-number line before each line; the second 'sed' does the real
15518 # work. The second script uses 'N' to pair each line-number line
15519 # with the numbered line, and appends trailing '-' during
15520 # substitution so that $LINENO is not a special case at line end.
15521 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15522 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15523 sed '=' <$as_myself |
15524 sed '
15525 N
15526 s,$,-,
15527 : loop
15528 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15529 t loop
15530 s,-$,,
15531 s,^['$as_cr_digits']*\n,,
15532 ' >$as_me.lineno &&
15533 chmod +x $as_me.lineno ||
15534 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15535echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15536 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000015537
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015538 # Don't try to exec as it changes $[0], causing all sort of problems
15539 # (the dirname of $[0] is not the place where we might find the
15540 # original and so on. Autoconf is especially sensible to this).
15541 . ./$as_me.lineno
15542 # Exit status is that of the last command.
15543 exit
15544}
15545
15546
15547case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15548 *c*,-n*) ECHO_N= ECHO_C='
15549' ECHO_T=' ' ;;
15550 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15551 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15552esac
15553
15554if expr a : '\(a\)' >/dev/null 2>&1; then
15555 as_expr=expr
15556else
15557 as_expr=false
15558fi
15559
15560rm -f conf$$ conf$$.exe conf$$.file
15561echo >conf$$.file
15562if ln -s conf$$.file conf$$ 2>/dev/null; then
15563 # We could just check for DJGPP; but this test a) works b) is more generic
15564 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15565 if test -f conf$$.exe; then
15566 # Don't use ln at all; we don't have any links
15567 as_ln_s='cp -p'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015568 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015569 as_ln_s='ln -s'
15570 fi
15571elif ln conf$$.file conf$$ 2>/dev/null; then
15572 as_ln_s=ln
15573else
15574 as_ln_s='cp -p'
15575fi
15576rm -f conf$$ conf$$.exe conf$$.file
15577
15578if mkdir -p . 2>/dev/null; then
15579 as_mkdir_p=:
15580else
15581 test -d ./-p && rmdir ./-p
15582 as_mkdir_p=false
15583fi
15584
15585as_executable_p="test -f"
15586
15587# Sed expression to map a string onto a valid CPP name.
15588as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15589
15590# Sed expression to map a string onto a valid variable name.
15591as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15592
15593
15594# IFS
15595# We need space, tab and new line, in precisely that order.
15596as_nl='
15597'
15598IFS=" $as_nl"
15599
15600# CDPATH.
15601$as_unset CDPATH
15602
15603exec 6>&1
15604
15605# Open the log real soon, to keep \$[0] and so on meaningful, and to
15606# report actual input values of CONFIG_FILES etc. instead of their
15607# values after options handling. Logging --version etc. is OK.
Bram Moolenaarc7453f52006-02-10 23:20:28 +000015608exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015609{
15610 echo
15611 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15612## Running $as_me. ##
15613_ASBOX
15614} >&5
15615cat >&5 <<_CSEOF
15616
15617This file was extended by $as_me, which was
15618generated by GNU Autoconf 2.59. Invocation command line was
15619
15620 CONFIG_FILES = $CONFIG_FILES
15621 CONFIG_HEADERS = $CONFIG_HEADERS
15622 CONFIG_LINKS = $CONFIG_LINKS
15623 CONFIG_COMMANDS = $CONFIG_COMMANDS
15624 $ $0 $@
15625
15626_CSEOF
15627echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15628echo >&5
15629_ACEOF
15630
15631# Files that config.status was made for.
15632if test -n "$ac_config_files"; then
15633 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15634fi
15635
15636if test -n "$ac_config_headers"; then
15637 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15638fi
15639
15640if test -n "$ac_config_links"; then
15641 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15642fi
15643
15644if test -n "$ac_config_commands"; then
15645 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15646fi
15647
15648cat >>$CONFIG_STATUS <<\_ACEOF
15649
15650ac_cs_usage="\
15651\`$as_me' instantiates files from templates according to the
15652current configuration.
15653
15654Usage: $0 [OPTIONS] [FILE]...
15655
15656 -h, --help print this help, then exit
15657 -V, --version print version number, then exit
15658 -q, --quiet do not print progress messages
15659 -d, --debug don't remove temporary files
15660 --recheck update $as_me by reconfiguring in the same conditions
15661 --file=FILE[:TEMPLATE]
15662 instantiate the configuration file FILE
15663 --header=FILE[:TEMPLATE]
15664 instantiate the configuration header FILE
15665
15666Configuration files:
15667$config_files
15668
15669Configuration headers:
15670$config_headers
15671
15672Report bugs to <bug-autoconf@gnu.org>."
15673_ACEOF
15674
15675cat >>$CONFIG_STATUS <<_ACEOF
15676ac_cs_version="\\
15677config.status
15678configured by $0, generated by GNU Autoconf 2.59,
15679 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15680
15681Copyright (C) 2003 Free Software Foundation, Inc.
15682This config.status script is free software; the Free Software Foundation
15683gives unlimited permission to copy, distribute and modify it."
15684srcdir=$srcdir
15685_ACEOF
15686
15687cat >>$CONFIG_STATUS <<\_ACEOF
15688# If no file are specified by the user, then we need to provide default
15689# value. By we need to know if files were specified by the user.
15690ac_need_defaults=:
15691while test $# != 0
15692do
15693 case $1 in
15694 --*=*)
15695 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15696 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15697 ac_shift=:
15698 ;;
15699 -*)
15700 ac_option=$1
15701 ac_optarg=$2
15702 ac_shift=shift
15703 ;;
15704 *) # This is not an option, so the user has probably given explicit
15705 # arguments.
15706 ac_option=$1
15707 ac_need_defaults=false;;
15708 esac
15709
15710 case $ac_option in
15711 # Handling of the options.
15712_ACEOF
15713cat >>$CONFIG_STATUS <<\_ACEOF
15714 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15715 ac_cs_recheck=: ;;
15716 --version | --vers* | -V )
15717 echo "$ac_cs_version"; exit 0 ;;
15718 --he | --h)
15719 # Conflict between --help and --header
15720 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15721Try \`$0 --help' for more information." >&5
15722echo "$as_me: error: ambiguous option: $1
15723Try \`$0 --help' for more information." >&2;}
15724 { (exit 1); exit 1; }; };;
15725 --help | --hel | -h )
15726 echo "$ac_cs_usage"; exit 0 ;;
15727 --debug | --d* | -d )
15728 debug=: ;;
15729 --file | --fil | --fi | --f )
15730 $ac_shift
15731 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15732 ac_need_defaults=false;;
15733 --header | --heade | --head | --hea )
15734 $ac_shift
15735 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15736 ac_need_defaults=false;;
15737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15738 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15739 ac_cs_silent=: ;;
15740
15741 # This is an error.
15742 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15743Try \`$0 --help' for more information." >&5
15744echo "$as_me: error: unrecognized option: $1
15745Try \`$0 --help' for more information." >&2;}
15746 { (exit 1); exit 1; }; } ;;
15747
15748 *) ac_config_targets="$ac_config_targets $1" ;;
15749
15750 esac
15751 shift
15752done
15753
15754ac_configure_extra_args=
15755
15756if $ac_cs_silent; then
15757 exec 6>/dev/null
15758 ac_configure_extra_args="$ac_configure_extra_args --silent"
15759fi
15760
15761_ACEOF
15762cat >>$CONFIG_STATUS <<_ACEOF
15763if \$ac_cs_recheck; then
15764 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15765 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15766fi
15767
15768_ACEOF
15769
15770
15771
15772
15773
15774cat >>$CONFIG_STATUS <<\_ACEOF
15775for ac_config_target in $ac_config_targets
15776do
15777 case "$ac_config_target" in
15778 # Handling of arguments.
15779 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15780 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15781 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15782echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15783 { (exit 1); exit 1; }; };;
15784 esac
15785done
15786
15787# If the user did not use the arguments to specify the items to instantiate,
15788# then the envvar interface is used. Set only those that are not.
15789# We use the long form for the default assignment because of an extremely
15790# bizarre bug on SunOS 4.1.3.
15791if $ac_need_defaults; then
15792 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15793 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15794fi
15795
15796# Have a temporary directory for convenience. Make it in the build tree
15797# simply because there is no reason to put it here, and in addition,
15798# creating and moving files from /tmp can sometimes cause problems.
15799# Create a temporary directory, and hook for its removal unless debugging.
15800$debug ||
15801{
15802 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15803 trap '{ (exit 1); exit 1; }' 1 2 13 15
15804}
15805
15806# Create a (secure) tmp directory for tmp files.
15807
15808{
15809 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15810 test -n "$tmp" && test -d "$tmp"
15811} ||
15812{
15813 tmp=./confstat$$-$RANDOM
15814 (umask 077 && mkdir $tmp)
15815} ||
15816{
15817 echo "$me: cannot create a temporary directory in ." >&2
15818 { (exit 1); exit 1; }
15819}
15820
15821_ACEOF
15822
15823cat >>$CONFIG_STATUS <<_ACEOF
15824
15825#
15826# CONFIG_FILES section.
15827#
15828
15829# No need to generate the scripts if there are no CONFIG_FILES.
15830# This happens for instance when ./config.status config.h
15831if test -n "\$CONFIG_FILES"; then
15832 # Protect against being on the right side of a sed subst in config.status.
15833 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15834 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15835s,@SHELL@,$SHELL,;t t
15836s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15837s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15838s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15839s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15840s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15841s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15842s,@exec_prefix@,$exec_prefix,;t t
15843s,@prefix@,$prefix,;t t
15844s,@program_transform_name@,$program_transform_name,;t t
15845s,@bindir@,$bindir,;t t
15846s,@sbindir@,$sbindir,;t t
15847s,@libexecdir@,$libexecdir,;t t
15848s,@datadir@,$datadir,;t t
15849s,@sysconfdir@,$sysconfdir,;t t
15850s,@sharedstatedir@,$sharedstatedir,;t t
15851s,@localstatedir@,$localstatedir,;t t
15852s,@libdir@,$libdir,;t t
15853s,@includedir@,$includedir,;t t
15854s,@oldincludedir@,$oldincludedir,;t t
15855s,@infodir@,$infodir,;t t
15856s,@mandir@,$mandir,;t t
15857s,@build_alias@,$build_alias,;t t
15858s,@host_alias@,$host_alias,;t t
15859s,@target_alias@,$target_alias,;t t
15860s,@DEFS@,$DEFS,;t t
15861s,@ECHO_C@,$ECHO_C,;t t
15862s,@ECHO_N@,$ECHO_N,;t t
15863s,@ECHO_T@,$ECHO_T,;t t
15864s,@LIBS@,$LIBS,;t t
15865s,@SET_MAKE@,$SET_MAKE,;t t
15866s,@CC@,$CC,;t t
15867s,@CFLAGS@,$CFLAGS,;t t
15868s,@LDFLAGS@,$LDFLAGS,;t t
15869s,@CPPFLAGS@,$CPPFLAGS,;t t
15870s,@ac_ct_CC@,$ac_ct_CC,;t t
15871s,@EXEEXT@,$EXEEXT,;t t
15872s,@OBJEXT@,$OBJEXT,;t t
15873s,@CPP@,$CPP,;t t
15874s,@EGREP@,$EGREP,;t t
15875s,@AWK@,$AWK,;t t
15876s,@STRIP@,$STRIP,;t t
15877s,@CPP_MM@,$CPP_MM,;t t
15878s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
15879s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
15880s,@VIMNAME@,$VIMNAME,;t t
15881s,@EXNAME@,$EXNAME,;t t
15882s,@VIEWNAME@,$VIEWNAME,;t t
15883s,@line_break@,$line_break,;t t
15884s,@dovimdiff@,$dovimdiff,;t t
15885s,@dogvimdiff@,$dogvimdiff,;t t
15886s,@compiledby@,$compiledby,;t t
15887s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
15888s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
15889s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
15890s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
15891s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
15892s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
15893s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
15894s,@vi_cv_perllib@,$vi_cv_perllib,;t t
15895s,@shrpenv@,$shrpenv,;t t
15896s,@PERL_SRC@,$PERL_SRC,;t t
15897s,@PERL_OBJ@,$PERL_OBJ,;t t
15898s,@PERL_PRO@,$PERL_PRO,;t t
15899s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
15900s,@PERL_LIBS@,$PERL_LIBS,;t t
15901s,@vi_cv_path_python@,$vi_cv_path_python,;t t
15902s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
15903s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
15904s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
15905s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
15906s,@PYTHON_SRC@,$PYTHON_SRC,;t t
15907s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
15908s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
15909s,@TCL_SRC@,$TCL_SRC,;t t
15910s,@TCL_OBJ@,$TCL_OBJ,;t t
15911s,@TCL_PRO@,$TCL_PRO,;t t
15912s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
15913s,@TCL_LIBS@,$TCL_LIBS,;t t
15914s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
15915s,@RUBY_SRC@,$RUBY_SRC,;t t
15916s,@RUBY_OBJ@,$RUBY_OBJ,;t t
15917s,@RUBY_PRO@,$RUBY_PRO,;t t
15918s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
15919s,@RUBY_LIBS@,$RUBY_LIBS,;t t
15920s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
15921s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
15922s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
15923s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
15924s,@SNIFF_SRC@,$SNIFF_SRC,;t t
15925s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
15926s,@xmkmfpath@,$xmkmfpath,;t t
15927s,@X_CFLAGS@,$X_CFLAGS,;t t
15928s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15929s,@X_LIBS@,$X_LIBS,;t t
15930s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15931s,@X_LIB@,$X_LIB,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015932s,@GTK_CONFIG@,$GTK_CONFIG,;t t
15933s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
15934s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15935s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15936s,@GTK_LIBS@,$GTK_LIBS,;t t
15937s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
15938s,@GNOME_LIBS@,$GNOME_LIBS,;t t
15939s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
15940s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
15941s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
15942s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
15943s,@NARROW_PROTO@,$NARROW_PROTO,;t t
15944s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
15945s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
15946s,@GUITYPE@,$GUITYPE,;t t
15947s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
15948s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
15949s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
15950s,@TAGPRG@,$TAGPRG,;t t
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000015951s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
15952s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015953s,@MSGFMT@,$MSGFMT,;t t
15954s,@MAKEMO@,$MAKEMO,;t t
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015955s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015956s,@LIBOBJS@,$LIBOBJS,;t t
15957s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15958CEOF
15959
15960_ACEOF
15961
15962 cat >>$CONFIG_STATUS <<\_ACEOF
15963 # Split the substitutions into bite-sized pieces for seds with
15964 # small command number limits, like on Digital OSF/1 and HP-UX.
15965 ac_max_sed_lines=48
15966 ac_sed_frag=1 # Number of current file.
15967 ac_beg=1 # First line for current file.
15968 ac_end=$ac_max_sed_lines # Line after last line for current file.
15969 ac_more_lines=:
15970 ac_sed_cmds=
15971 while $ac_more_lines; do
15972 if test $ac_beg -gt 1; then
15973 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15974 else
15975 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15976 fi
15977 if test ! -s $tmp/subs.frag; then
15978 ac_more_lines=false
15979 else
15980 # The purpose of the label and of the branching condition is to
15981 # speed up the sed processing (if there are no `@' at all, there
15982 # is no need to browse any of the substitutions).
15983 # These are the two extra sed commands mentioned above.
15984 (echo ':t
15985 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15986 if test -z "$ac_sed_cmds"; then
15987 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15988 else
15989 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15990 fi
15991 ac_sed_frag=`expr $ac_sed_frag + 1`
15992 ac_beg=$ac_end
15993 ac_end=`expr $ac_end + $ac_max_sed_lines`
15994 fi
15995 done
15996 if test -z "$ac_sed_cmds"; then
15997 ac_sed_cmds=cat
15998 fi
15999fi # test -n "$CONFIG_FILES"
16000
16001_ACEOF
16002cat >>$CONFIG_STATUS <<\_ACEOF
16003for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16004 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16005 case $ac_file in
16006 - | *:- | *:-:* ) # input from stdin
16007 cat >$tmp/stdin
16008 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16009 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16010 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16011 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16012 * ) ac_file_in=$ac_file.in ;;
16013 esac
16014
16015 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16016 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16017$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16018 X"$ac_file" : 'X\(//\)[^/]' \| \
16019 X"$ac_file" : 'X\(//\)$' \| \
16020 X"$ac_file" : 'X\(/\)' \| \
16021 . : '\(.\)' 2>/dev/null ||
16022echo X"$ac_file" |
16023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16025 /^X\(\/\/\)$/{ s//\1/; q; }
16026 /^X\(\/\).*/{ s//\1/; q; }
16027 s/.*/./; q'`
16028 { if $as_mkdir_p; then
16029 mkdir -p "$ac_dir"
16030 else
16031 as_dir="$ac_dir"
16032 as_dirs=
16033 while test ! -d "$as_dir"; do
16034 as_dirs="$as_dir $as_dirs"
16035 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16036$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16037 X"$as_dir" : 'X\(//\)[^/]' \| \
16038 X"$as_dir" : 'X\(//\)$' \| \
16039 X"$as_dir" : 'X\(/\)' \| \
16040 . : '\(.\)' 2>/dev/null ||
16041echo X"$as_dir" |
16042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16044 /^X\(\/\/\)$/{ s//\1/; q; }
16045 /^X\(\/\).*/{ s//\1/; q; }
16046 s/.*/./; q'`
16047 done
16048 test ! -n "$as_dirs" || mkdir $as_dirs
16049 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16050echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16051 { (exit 1); exit 1; }; }; }
16052
16053 ac_builddir=.
16054
16055if test "$ac_dir" != .; then
16056 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16057 # A "../" for each directory in $ac_dir_suffix.
16058 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16059else
16060 ac_dir_suffix= ac_top_builddir=
16061fi
16062
16063case $srcdir in
16064 .) # No --srcdir option. We are building in place.
16065 ac_srcdir=.
16066 if test -z "$ac_top_builddir"; then
16067 ac_top_srcdir=.
16068 else
16069 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16070 fi ;;
16071 [\\/]* | ?:[\\/]* ) # Absolute path.
16072 ac_srcdir=$srcdir$ac_dir_suffix;
16073 ac_top_srcdir=$srcdir ;;
16074 *) # Relative path.
16075 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16076 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16077esac
16078
16079# Do not use `cd foo && pwd` to compute absolute paths, because
16080# the directories may not exist.
16081case `pwd` in
16082.) ac_abs_builddir="$ac_dir";;
16083*)
16084 case "$ac_dir" in
16085 .) ac_abs_builddir=`pwd`;;
16086 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16087 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16088 esac;;
16089esac
16090case $ac_abs_builddir in
16091.) ac_abs_top_builddir=${ac_top_builddir}.;;
16092*)
16093 case ${ac_top_builddir}. in
16094 .) ac_abs_top_builddir=$ac_abs_builddir;;
16095 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16096 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16097 esac;;
16098esac
16099case $ac_abs_builddir in
16100.) ac_abs_srcdir=$ac_srcdir;;
16101*)
16102 case $ac_srcdir in
16103 .) ac_abs_srcdir=$ac_abs_builddir;;
16104 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16105 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16106 esac;;
16107esac
16108case $ac_abs_builddir in
16109.) ac_abs_top_srcdir=$ac_top_srcdir;;
16110*)
16111 case $ac_top_srcdir in
16112 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16113 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16114 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16115 esac;;
16116esac
16117
16118
16119
16120 if test x"$ac_file" != x-; then
16121 { echo "$as_me:$LINENO: creating $ac_file" >&5
16122echo "$as_me: creating $ac_file" >&6;}
16123 rm -f "$ac_file"
16124 fi
16125 # Let's still pretend it is `configure' which instantiates (i.e., don't
16126 # use $as_me), people would be surprised to read:
16127 # /* config.h. Generated by config.status. */
16128 if test x"$ac_file" = x-; then
16129 configure_input=
16130 else
16131 configure_input="$ac_file. "
16132 fi
16133 configure_input=$configure_input"Generated from `echo $ac_file_in |
16134 sed 's,.*/,,'` by configure."
16135
16136 # First look for the input files in the build tree, otherwise in the
16137 # src tree.
16138 ac_file_inputs=`IFS=:
16139 for f in $ac_file_in; do
16140 case $f in
16141 -) echo $tmp/stdin ;;
16142 [\\/$]*)
16143 # Absolute (can't be DOS-style, as IFS=:)
16144 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16145echo "$as_me: error: cannot find input file: $f" >&2;}
16146 { (exit 1); exit 1; }; }
16147 echo "$f";;
16148 *) # Relative
16149 if test -f "$f"; then
16150 # Build tree
16151 echo "$f"
16152 elif test -f "$srcdir/$f"; then
16153 # Source tree
16154 echo "$srcdir/$f"
16155 else
16156 # /dev/null tree
16157 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16158echo "$as_me: error: cannot find input file: $f" >&2;}
16159 { (exit 1); exit 1; }; }
16160 fi;;
16161 esac
16162 done` || { (exit 1); exit 1; }
16163_ACEOF
16164cat >>$CONFIG_STATUS <<_ACEOF
16165 sed "$ac_vpsub
16166$extrasub
16167_ACEOF
16168cat >>$CONFIG_STATUS <<\_ACEOF
16169:t
16170/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16171s,@configure_input@,$configure_input,;t t
16172s,@srcdir@,$ac_srcdir,;t t
16173s,@abs_srcdir@,$ac_abs_srcdir,;t t
16174s,@top_srcdir@,$ac_top_srcdir,;t t
16175s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16176s,@builddir@,$ac_builddir,;t t
16177s,@abs_builddir@,$ac_abs_builddir,;t t
16178s,@top_builddir@,$ac_top_builddir,;t t
16179s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16180" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16181 rm -f $tmp/stdin
16182 if test x"$ac_file" != x-; then
16183 mv $tmp/out $ac_file
16184 else
16185 cat $tmp/out
16186 rm -f $tmp/out
Bram Moolenaar071d4272004-06-13 20:20:40 +000016187 fi
16188
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016189done
16190_ACEOF
16191cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016192
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016193#
16194# CONFIG_HEADER section.
16195#
Bram Moolenaar071d4272004-06-13 20:20:40 +000016196
16197# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16198# NAME is the cpp macro being defined and VALUE is the value it is being given.
16199#
16200# ac_d sets the value in "#define NAME VALUE" lines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016201ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16202ac_dB='[ ].*$,\1#\2'
16203ac_dC=' '
16204ac_dD=',;t'
16205# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16206ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16207ac_uB='$,\1#\2define\3'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016208ac_uC=' '
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016209ac_uD=',;t'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016210
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016211for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Bram Moolenaar071d4272004-06-13 20:20:40 +000016212 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016213 case $ac_file in
16214 - | *:- | *:-:* ) # input from stdin
16215 cat >$tmp/stdin
16216 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16217 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16218 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16219 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16220 * ) ac_file_in=$ac_file.in ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000016221 esac
16222
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016223 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16224echo "$as_me: creating $ac_file" >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +000016225
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016226 # First look for the input files in the build tree, otherwise in the
16227 # src tree.
16228 ac_file_inputs=`IFS=:
16229 for f in $ac_file_in; do
16230 case $f in
16231 -) echo $tmp/stdin ;;
16232 [\\/$]*)
16233 # Absolute (can't be DOS-style, as IFS=:)
16234 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16235echo "$as_me: error: cannot find input file: $f" >&2;}
16236 { (exit 1); exit 1; }; }
16237 # Do quote $f, to prevent DOS paths from being IFS'd.
16238 echo "$f";;
16239 *) # Relative
16240 if test -f "$f"; then
16241 # Build tree
16242 echo "$f"
16243 elif test -f "$srcdir/$f"; then
16244 # Source tree
16245 echo "$srcdir/$f"
16246 else
16247 # /dev/null tree
16248 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16249echo "$as_me: error: cannot find input file: $f" >&2;}
16250 { (exit 1); exit 1; }; }
16251 fi;;
16252 esac
16253 done` || { (exit 1); exit 1; }
16254 # Remove the trailing spaces.
16255 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Bram Moolenaar071d4272004-06-13 20:20:40 +000016256
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016257_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016258
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016259# Transform confdefs.h into two sed scripts, `conftest.defines' and
16260# `conftest.undefs', that substitutes the proper values into
16261# config.h.in to produce config.h. The first handles `#define'
16262# templates, and the second `#undef' templates.
16263# And first: Protect against being on the right side of a sed subst in
16264# config.status. Protect against being in an unquoted here document
16265# in config.status.
16266rm -f conftest.defines conftest.undefs
16267# Using a here document instead of a string reduces the quoting nightmare.
16268# Putting comments in sed scripts is not portable.
16269#
16270# `end' is used to avoid that the second main sed command (meant for
16271# 0-ary CPP macros) applies to n-ary macro definitions.
16272# See the Autoconf documentation for `clear'.
16273cat >confdef2sed.sed <<\_ACEOF
16274s/[\\&,]/\\&/g
16275s,[\\$`],\\&,g
16276t clear
16277: clear
16278s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16279t end
16280s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16281: end
16282_ACEOF
16283# If some macros were called several times there might be several times
16284# the same #defines, which is useless. Nevertheless, we may not want to
16285# sort them, since we want the *last* AC-DEFINE to be honored.
16286uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16287sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16288rm -f confdef2sed.sed
Bram Moolenaar071d4272004-06-13 20:20:40 +000016289
16290# This sed command replaces #undef with comments. This is necessary, for
16291# example, in the case of _POSIX_SOURCE, which is predefined and required
16292# on some systems where configure will not decide to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016293cat >>conftest.undefs <<\_ACEOF
16294s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16295_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016296
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016297# Break up conftest.defines because some shells have a limit on the size
16298# of here documents, and old seds have small limits too (100 cmds).
16299echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16300echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16301echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16302echo ' :' >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016303rm -f conftest.tail
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016304while grep . conftest.defines >/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +000016305do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016306 # Write a limited-size here document to $tmp/defines.sed.
16307 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16308 # Speed up: don't consider the non `#define' lines.
16309 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16310 # Work around the forget-to-reset-the-flag bug.
16311 echo 't clr' >>$CONFIG_STATUS
16312 echo ': clr' >>$CONFIG_STATUS
16313 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016314 echo 'CEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016315 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16316 rm -f $tmp/in
16317 mv $tmp/out $tmp/in
16318' >>$CONFIG_STATUS
16319 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16320 rm -f conftest.defines
16321 mv conftest.tail conftest.defines
Bram Moolenaar071d4272004-06-13 20:20:40 +000016322done
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016323rm -f conftest.defines
16324echo ' fi # grep' >>$CONFIG_STATUS
16325echo >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016326
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016327# Break up conftest.undefs because some shells have a limit on the size
16328# of here documents, and old seds have small limits too (100 cmds).
16329echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16330rm -f conftest.tail
16331while grep . conftest.undefs >/dev/null
16332do
16333 # Write a limited-size here document to $tmp/undefs.sed.
16334 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16335 # Speed up: don't consider the non `#undef'
16336 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16337 # Work around the forget-to-reset-the-flag bug.
16338 echo 't clr' >>$CONFIG_STATUS
16339 echo ': clr' >>$CONFIG_STATUS
16340 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16341 echo 'CEOF
16342 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16343 rm -f $tmp/in
16344 mv $tmp/out $tmp/in
16345' >>$CONFIG_STATUS
16346 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16347 rm -f conftest.undefs
16348 mv conftest.tail conftest.undefs
16349done
16350rm -f conftest.undefs
16351
16352cat >>$CONFIG_STATUS <<\_ACEOF
16353 # Let's still pretend it is `configure' which instantiates (i.e., don't
16354 # use $as_me), people would be surprised to read:
16355 # /* config.h. Generated by config.status. */
16356 if test x"$ac_file" = x-; then
16357 echo "/* Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016358 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016359 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016360 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016361 cat $tmp/in >>$tmp/config.h
16362 rm -f $tmp/in
16363 if test x"$ac_file" != x-; then
16364 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16365 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16366echo "$as_me: $ac_file is unchanged" >&6;}
16367 else
16368 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16369$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16370 X"$ac_file" : 'X\(//\)[^/]' \| \
16371 X"$ac_file" : 'X\(//\)$' \| \
16372 X"$ac_file" : 'X\(/\)' \| \
16373 . : '\(.\)' 2>/dev/null ||
16374echo X"$ac_file" |
16375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16377 /^X\(\/\/\)$/{ s//\1/; q; }
16378 /^X\(\/\).*/{ s//\1/; q; }
16379 s/.*/./; q'`
16380 { if $as_mkdir_p; then
16381 mkdir -p "$ac_dir"
16382 else
16383 as_dir="$ac_dir"
16384 as_dirs=
16385 while test ! -d "$as_dir"; do
16386 as_dirs="$as_dir $as_dirs"
16387 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16388$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16389 X"$as_dir" : 'X\(//\)[^/]' \| \
16390 X"$as_dir" : 'X\(//\)$' \| \
16391 X"$as_dir" : 'X\(/\)' \| \
16392 . : '\(.\)' 2>/dev/null ||
16393echo X"$as_dir" |
16394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16395 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16396 /^X\(\/\/\)$/{ s//\1/; q; }
16397 /^X\(\/\).*/{ s//\1/; q; }
16398 s/.*/./; q'`
16399 done
16400 test ! -n "$as_dirs" || mkdir $as_dirs
16401 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16402echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16403 { (exit 1); exit 1; }; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000016404
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016405 rm -f $ac_file
16406 mv $tmp/config.h $ac_file
16407 fi
16408 else
16409 cat $tmp/config.h
16410 rm -f $tmp/config.h
16411 fi
16412done
16413_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016414
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016415cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016416
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016417{ (exit 0); exit 0; }
16418_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016419chmod +x $CONFIG_STATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016420ac_clean_files=$ac_clean_files_save
16421
16422
16423# configure is writing to config.log, and then calls config.status.
16424# config.status does its own redirection, appending to config.log.
16425# Unfortunately, on DOS this fails, as config.log is still kept open
16426# by configure, so config.status won't be able to write to it; its
16427# output is simply discarded. So we exec the FD to /dev/null,
16428# effectively closing config.log, so it can be properly (re)opened and
16429# appended to by config.status. When coming back to configure, we
16430# need to make the FD available again.
16431if test "$no_create" != yes; then
16432 ac_cs_success=:
16433 ac_config_status_args=
16434 test "$silent" = yes &&
16435 ac_config_status_args="$ac_config_status_args --quiet"
16436 exec 5>/dev/null
16437 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Bram Moolenaarc7453f52006-02-10 23:20:28 +000016438 exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016439 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16440 # would make configure fail if this is the last instruction.
16441 $ac_cs_success || { (exit 1); exit 1; }
16442fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000016443
16444