blob: ae30634c5da806ec3fa98e9db5b70dc8cdbe3661 [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
2786 echo 'GCC 34.0.12 has a bug in the optimizer, disabling "-O#"'
Bram Moolenaar071d4272004-06-13 20:20:40 +00002787 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2788 else
2789 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2790 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2791 CFLAGS="$CFLAGS -fno-strength-reduce"
2792 fi
2793 fi
2794fi
2795
2796if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002797 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2798 (cross compiling doesn't work)" >&5
2799echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2800 (cross compiling doesn't work)" >&2;}
2801 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00002802fi
2803
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002804test "$GCC" = yes && CPP_MM=M;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002805
2806if test -f ./toolcheck; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002807 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2808echo "$as_me: checking for buggy tools..." >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +00002809 sh ./toolcheck 1>&6
2810fi
2811
2812OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2813
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002814echo "$as_me:$LINENO: checking for BeOS" >&5
2815echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002816case `uname` in
2817 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002818 BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2819echo "${ECHO_T}yes" >&6;;
2820 *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2821echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002822esac
2823
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002824echo "$as_me:$LINENO: checking for QNX" >&5
2825echo $ECHO_N "checking for QNX... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002826case `uname` in
2827 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2828 test -z "$with_x" && with_x=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002829 QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2830echo "${ECHO_T}yes" >&6;;
2831 *) QNX=no; echo "$as_me:$LINENO: result: no" >&5
2832echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002833esac
2834
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002835echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2836echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002837if test "`(uname) 2>/dev/null`" = Darwin; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002838 echo "$as_me:$LINENO: result: yes" >&5
2839echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002840
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002841 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2842echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002843 # Check whether --enable-darwin or --disable-darwin was given.
2844if test "${enable_darwin+set}" = set; then
2845 enableval="$enable_darwin"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002846
Bram Moolenaar071d4272004-06-13 20:20:40 +00002847else
2848 enable_darwin="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002849fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002850 if test "$enable_darwin" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002851 echo "$as_me:$LINENO: result: no" >&5
2852echo "${ECHO_T}no" >&6
2853 echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2854echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002855 if test -f os_macosx.c; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002856 echo "$as_me:$LINENO: result: yes" >&5
2857echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002858 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002859 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2860echo "${ECHO_T}no, Darwin support disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002861 enable_darwin=no
2862 fi
2863 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002864 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2865echo "${ECHO_T}yes, Darwin support excluded" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002866 fi
2867
Bram Moolenaara23ccb82006-02-27 00:08:02 +00002868 echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5
2869echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6
2870
2871# Check whether --with-mac-arch or --without-mac-arch was given.
2872if test "${with_mac_arch+set}" = set; then
2873 withval="$with_mac_arch"
2874 MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5
2875echo "${ECHO_T}$MACARCH" >&6
2876else
2877 MACARCH="both"; echo "$as_me:$LINENO: result: Defaulting to $MACARCH" >&5
2878echo "${ECHO_T}Defaulting to $MACARCH" >&6
2879fi;
2880
2881 if test "x$MACARCH" = "xboth"; then
2882 echo "$as_me:$LINENO: checking if both architectures are supported" >&5
2883echo $ECHO_N "checking if both architectures are supported... $ECHO_C" >&6
2884 save_cppflags="$CPPFLAGS"
2885 save_ldflags="$LDFLAGS"
2886 CPPFLAGS="$CPPFLAGS -arch i386 -arch ppc"
2887 LDFLAGS="$LDFLAGS -arch i386 -arch ppc"
2888 cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h. */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h. */
2894
2895int
2896main ()
2897{
2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903rm -f conftest.$ac_objext conftest$ac_exeext
2904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2905 (eval $ac_link) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_c_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915 (eval $ac_try) 2>&5
2916 ac_status=$?
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest$ac_exeext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921 (eval $ac_try) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2925 echo "$as_me:$LINENO: result: yes" >&5
2926echo "${ECHO_T}yes" >&6
2927else
2928 echo "$as_me: failed program was:" >&5
2929sed 's/^/| /' conftest.$ac_ext >&5
2930
2931echo "$as_me:$LINENO: result: no" >&5
2932echo "${ECHO_T}no" >&6
2933 echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5
2934echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6
2935 CPPFLAGS="$save_cppflags -arch i386"
2936 LDFLAGS="$save_ldflags -arch i386"
2937 cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
2943
2944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952rm -f conftest.$ac_objext conftest$ac_exeext
2953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2954 (eval $ac_link) 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -z "$ac_c_werror_flag"
2962 || test ! -s conftest.err'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964 (eval $ac_try) 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; } &&
2968 { ac_try='test -s conftest$ac_exeext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 echo "$as_me:$LINENO: result: yes" >&5
2975echo "${ECHO_T}yes" >&6; MACARCH="intel"
2976else
2977 echo "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980echo "$as_me:$LINENO: result: no" >&5
2981echo "${ECHO_T}no" >&6; MACARCH="ppc"
2982fi
2983rm -f conftest.err conftest.$ac_objext \
2984 conftest$ac_exeext conftest.$ac_ext
2985fi
2986rm -f conftest.err conftest.$ac_objext \
2987 conftest$ac_exeext conftest.$ac_ext
2988 CPPFLAGS="$save_cppflags"
2989 LDFLAGS="$save_ldflags"
2990 fi
2991
2992 case "$MACARCH" in
2993 intel) MAC_OSX_ARCH="-arch i386";;
2994 both) MAC_OSX_ARCH="-arch i386 -arch ppc";;
2995 ppc) MAC_OSX_ARCH="-arch ppc";;
2996 *) MAC_OSX_ARCH="";;
2997 esac
2998
2999 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then
3000 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
3001 fi
3002
3003 CPPFLAGS="$CPPFLAGS $MAC_OSX_ARCH"
3004 LDFLAGS="$LDFLAGS $MAC_OSX_ARCH"
3005
Bram Moolenaar071d4272004-06-13 20:20:40 +00003006 if test "$enable_darwin" = "yes"; then
3007 MACOSX=yes
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003008 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
3009 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Bram Moolenaara23ccb82006-02-27 00:08:02 +00003010 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp"
Bram Moolenaar071d4272004-06-13 20:20:40 +00003011
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003012 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3013echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3014if test "${ac_cv_header_stdc+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003016else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003017 cat >conftest.$ac_ext <<_ACEOF
3018/* confdefs.h. */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h. */
3023#include <stdlib.h>
3024#include <stdarg.h>
3025#include <string.h>
3026#include <float.h>
3027
3028int
3029main ()
3030{
3031
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036rm -f conftest.$ac_objext
3037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3038 (eval $ac_compile) 2>conftest.er1
3039 ac_status=$?
3040 grep -v '^ *+' conftest.er1 >conftest.err
3041 rm -f conftest.er1
3042 cat conftest.err >&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } &&
3045 { ac_try='test -z "$ac_c_werror_flag"
3046 || test ! -s conftest.err'
3047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3048 (eval $ac_try) 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; } &&
3052 { ac_try='test -s conftest.$ac_objext'
3053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3054 (eval $ac_try) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
3058 ac_cv_header_stdc=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003059else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003060 echo "$as_me: failed program was:" >&5
3061sed 's/^/| /' conftest.$ac_ext >&5
3062
3063ac_cv_header_stdc=no
3064fi
3065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3066
3067if test $ac_cv_header_stdc = yes; then
3068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3069 cat >conftest.$ac_ext <<_ACEOF
3070/* confdefs.h. */
3071_ACEOF
3072cat confdefs.h >>conftest.$ac_ext
3073cat >>conftest.$ac_ext <<_ACEOF
3074/* end confdefs.h. */
3075#include <string.h>
3076
3077_ACEOF
3078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3079 $EGREP "memchr" >/dev/null 2>&1; then
3080 :
3081else
3082 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003083fi
3084rm -f conftest*
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003085
Bram Moolenaar071d4272004-06-13 20:20:40 +00003086fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003087
3088if test $ac_cv_header_stdc = yes; then
3089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3090 cat >conftest.$ac_ext <<_ACEOF
3091/* confdefs.h. */
3092_ACEOF
3093cat confdefs.h >>conftest.$ac_ext
3094cat >>conftest.$ac_ext <<_ACEOF
3095/* end confdefs.h. */
3096#include <stdlib.h>
3097
3098_ACEOF
3099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3100 $EGREP "free" >/dev/null 2>&1; then
3101 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00003102else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003103 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003104fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003105rm -f conftest*
3106
3107fi
3108
3109if test $ac_cv_header_stdc = yes; then
3110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3111 if test "$cross_compiling" = yes; then
3112 :
3113else
3114 cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
3120#include <ctype.h>
3121#if ((' ' & 0x0FF) == 0x020)
3122# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3123# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3124#else
3125# define ISLOWER(c) \
3126 (('a' <= (c) && (c) <= 'i') \
3127 || ('j' <= (c) && (c) <= 'r') \
3128 || ('s' <= (c) && (c) <= 'z'))
3129# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3130#endif
3131
3132#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3133int
3134main ()
3135{
3136 int i;
3137 for (i = 0; i < 256; i++)
3138 if (XOR (islower (i), ISLOWER (i))
3139 || toupper (i) != TOUPPER (i))
3140 exit(2);
3141 exit (0);
3142}
3143_ACEOF
3144rm -f conftest$ac_exeext
3145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3146 (eval $ac_link) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151 (eval $ac_try) 2>&5
3152 ac_status=$?
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 :
3156else
3157 echo "$as_me: program exited with status $ac_status" >&5
3158echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
3160
3161( exit $ac_status )
3162ac_cv_header_stdc=no
3163fi
3164rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3165fi
3166fi
3167fi
3168echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3169echo "${ECHO_T}$ac_cv_header_stdc" >&6
3170if test $ac_cv_header_stdc = yes; then
3171
3172cat >>confdefs.h <<\_ACEOF
3173#define STDC_HEADERS 1
3174_ACEOF
3175
3176fi
3177
3178# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3189 inttypes.h stdint.h unistd.h
3190do
3191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3192echo "$as_me:$LINENO: checking for $ac_header" >&5
3193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3194if eval "test \"\${$as_ac_Header+set}\" = set"; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197 cat >conftest.$ac_ext <<_ACEOF
3198/* confdefs.h. */
3199_ACEOF
3200cat confdefs.h >>conftest.$ac_ext
3201cat >>conftest.$ac_ext <<_ACEOF
3202/* end confdefs.h. */
3203$ac_includes_default
3204
3205#include <$ac_header>
3206_ACEOF
3207rm -f conftest.$ac_objext
3208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3209 (eval $ac_compile) 2>conftest.er1
3210 ac_status=$?
3211 grep -v '^ *+' conftest.er1 >conftest.err
3212 rm -f conftest.er1
3213 cat conftest.err >&5
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); } &&
3216 { ac_try='test -z "$ac_c_werror_flag"
3217 || test ! -s conftest.err'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219 (eval $ac_try) 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 eval "$as_ac_Header=yes"
3230else
3231 echo "$as_me: failed program was:" >&5
3232sed 's/^/| /' conftest.$ac_ext >&5
3233
3234eval "$as_ac_Header=no"
3235fi
3236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3237fi
3238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3240if test `eval echo '${'$as_ac_Header'}'` = yes; then
3241 cat >>confdefs.h <<_ACEOF
3242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3243_ACEOF
3244
3245fi
3246
3247done
3248
3249
3250if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3251 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3252echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3253if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255fi
3256echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3257echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3258else
3259 # Is the header compilable?
3260echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3261echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3262cat >conftest.$ac_ext <<_ACEOF
3263/* confdefs.h. */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
3267/* end confdefs.h. */
3268$ac_includes_default
3269#include <Carbon/Carbon.h>
3270_ACEOF
3271rm -f conftest.$ac_objext
3272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3273 (eval $ac_compile) 2>conftest.er1
3274 ac_status=$?
3275 grep -v '^ *+' conftest.er1 >conftest.err
3276 rm -f conftest.er1
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try='test -z "$ac_c_werror_flag"
3281 || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest.$ac_objext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3289 (eval $ac_try) 2>&5
3290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_header_compiler=yes
3294else
3295 echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298ac_header_compiler=no
3299fi
3300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3302echo "${ECHO_T}$ac_header_compiler" >&6
3303
3304# Is the header present?
3305echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3306echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3307cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h. */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h. */
3313#include <Carbon/Carbon.h>
3314_ACEOF
3315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3317 ac_status=$?
3318 grep -v '^ *+' conftest.er1 >conftest.err
3319 rm -f conftest.er1
3320 cat conftest.err >&5
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); } >/dev/null; then
3323 if test -s conftest.err; then
3324 ac_cpp_err=$ac_c_preproc_warn_flag
3325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3326 else
3327 ac_cpp_err=
3328 fi
3329else
3330 ac_cpp_err=yes
3331fi
3332if test -z "$ac_cpp_err"; then
3333 ac_header_preproc=yes
3334else
3335 echo "$as_me: failed program was:" >&5
3336sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 ac_header_preproc=no
3339fi
3340rm -f conftest.err conftest.$ac_ext
3341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3342echo "${ECHO_T}$ac_header_preproc" >&6
3343
3344# So? What about this header?
3345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3346 yes:no: )
3347 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3348echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3349 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3350echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3351 ac_header_preproc=yes
3352 ;;
3353 no:yes:* )
3354 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3355echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3356 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
3357echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
3358 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3359echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3360 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
3361echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
3362 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3363echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3364 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3365echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3366 (
3367 cat <<\_ASBOX
3368## ------------------------------------------ ##
3369## Report this to the AC_PACKAGE_NAME lists. ##
3370## ------------------------------------------ ##
3371_ASBOX
3372 ) |
3373 sed "s/^/$as_me: WARNING: /" >&2
3374 ;;
3375esac
3376echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3377echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3378if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380else
3381 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3382fi
3383echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3384echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3385
3386fi
3387if test $ac_cv_header_Carbon_Carbon_h = yes; then
3388 CARBON=yes
3389fi
3390
Bram Moolenaar071d4272004-06-13 20:20:40 +00003391
3392 if test "x$CARBON" = "xyes"; then
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003393 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 +00003394 with_x=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003395 fi
3396 fi
3397 fi
Bram Moolenaara23ccb82006-02-27 00:08:02 +00003398
Bram Moolenaar071d4272004-06-13 20:20:40 +00003399else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003400 echo "$as_me:$LINENO: result: no" >&5
3401echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003402fi
3403
3404
3405
3406
3407have_local_include=''
3408have_local_lib=''
3409if test "$GCC" = yes; then
3410 echo 'void f(){}' > conftest.c
3411 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3412 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3413 rm -f conftest.c conftest.o
3414fi
3415if test -z "$have_local_lib" -a -d /usr/local/lib; then
3416 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3417 if test "$tt" = "$LDFLAGS"; then
3418 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3419 fi
3420fi
3421if test -z "$have_local_include" -a -d /usr/local/include; then
3422 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3423 if test "$tt" = "$CPPFLAGS"; then
3424 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3425 fi
3426fi
3427
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003428echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3429echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3430
Bram Moolenaar071d4272004-06-13 20:20:40 +00003431# Check whether --with-vim-name or --without-vim-name was given.
3432if test "${with_vim_name+set}" = set; then
3433 withval="$with_vim_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003434 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3435echo "${ECHO_T}$VIMNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003436else
Bram Moolenaare344bea2005-09-01 20:46:49 +00003437 VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003438echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3439fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003440
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003441echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3442echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003443
Bram Moolenaar071d4272004-06-13 20:20:40 +00003444# Check whether --with-ex-name or --without-ex-name was given.
3445if test "${with_ex_name+set}" = set; then
3446 withval="$with_ex_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003447 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3448echo "${ECHO_T}$EXNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003449else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003450 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3451echo "${ECHO_T}Defaulting to ex" >&6
3452fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003453
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003454echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3455echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003456
Bram Moolenaar071d4272004-06-13 20:20:40 +00003457# Check whether --with-view-name or --without-view-name was given.
3458if test "${with_view_name+set}" = set; then
3459 withval="$with_view_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003460 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3461echo "${ECHO_T}$VIEWNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003462else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003463 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3464echo "${ECHO_T}Defaulting to view" >&6
3465fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003466
3467
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003468echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3469echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003470
Bram Moolenaar071d4272004-06-13 20:20:40 +00003471# Check whether --with-global-runtime or --without-global-runtime was given.
3472if test "${with_global_runtime+set}" = set; then
3473 withval="$with_global_runtime"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003474 echo "$as_me:$LINENO: result: $withval" >&5
3475echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003476#define RUNTIME_GLOBAL "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003477_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003478
3479else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003480 echo "$as_me:$LINENO: result: no" >&5
3481echo "${ECHO_T}no" >&6
3482fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003483
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003484echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3485echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003486
Bram Moolenaar071d4272004-06-13 20:20:40 +00003487# Check whether --with-modified-by or --without-modified-by was given.
3488if test "${with_modified_by+set}" = set; then
3489 withval="$with_modified_by"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003490 echo "$as_me:$LINENO: result: $withval" >&5
3491echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003492#define MODIFIED_BY "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003493_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003494
3495else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003496 echo "$as_me:$LINENO: result: no" >&5
3497echo "${ECHO_T}no" >&6
3498fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003499
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003500echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3501echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3502cat >conftest.$ac_ext <<_ACEOF
3503/* confdefs.h. */
3504_ACEOF
3505cat confdefs.h >>conftest.$ac_ext
3506cat >>conftest.$ac_ext <<_ACEOF
3507/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003508
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003509int
3510main ()
3511{
Bram Moolenaar071d4272004-06-13 20:20:40 +00003512 /* TryCompile function for CharSet.
3513 Treat any failure as ASCII for compatibility with existing art.
3514 Use compile-time rather than run-time tests for cross-compiler
3515 tolerance. */
3516#if '0'!=240
3517make an error "Character set is not EBCDIC"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003518#endif
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523rm -f conftest.$ac_objext
3524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3525 (eval $ac_compile) 2>conftest.er1
3526 ac_status=$?
3527 grep -v '^ *+' conftest.er1 >conftest.err
3528 rm -f conftest.er1
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_c_werror_flag"
3533 || test ! -s conftest.err'
3534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3535 (eval $ac_try) 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); }; } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00003545 # TryCompile action if true
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003546cf_cv_ebcdic=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003547else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003548 echo "$as_me: failed program was:" >&5
3549sed 's/^/| /' conftest.$ac_ext >&5
3550
3551 # TryCompile action if false
Bram Moolenaar071d4272004-06-13 20:20:40 +00003552cf_cv_ebcdic=no
3553fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003555# end of TryCompile ])
3556# end of CacheVal CvEbcdic
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003557echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3558echo "${ECHO_T}$cf_cv_ebcdic" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003559case "$cf_cv_ebcdic" in #(vi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003560 yes) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003561#define EBCDIC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003562_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003563
3564 line_break='"\\n"'
3565 ;;
3566 *) line_break='"\\012"';;
3567esac
3568
3569
3570if test "$cf_cv_ebcdic" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003571echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3572echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003573case `uname` in
3574 OS/390) OS390Unix="yes";
3575 if test "$CC" = "cc"; then
3576 ccm="$_CC_CCMODE"
3577 ccn="CC"
3578 else
3579 if test "$CC" = "c89"; then
3580 ccm="$_CC_C89MODE"
3581 ccn="C89"
3582 else
3583 ccm=1
3584 fi
3585 fi
3586 if test "$ccm" != "1"; then
3587 echo ""
3588 echo "------------------------------------------"
3589 echo " On OS/390 Unix, the environment variable"
3590 echo " __CC_${ccn}MODE must be set to \"1\"!"
3591 echo " Do:"
3592 echo " export _CC_${ccn}MODE=1"
3593 echo " and then call configure again."
3594 echo "------------------------------------------"
3595 exit 1
3596 fi
3597 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003598 echo "$as_me:$LINENO: result: yes" >&5
3599echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003600 ;;
3601 *) OS390Unix="no";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003602 echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003604 ;;
3605esac
3606fi
3607
3608
3609
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003610echo "$as_me:$LINENO: checking --with-features argument" >&5
3611echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3612
Bram Moolenaar071d4272004-06-13 20:20:40 +00003613# Check whether --with-features or --without-features was given.
3614if test "${with_features+set}" = set; then
3615 withval="$with_features"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003616 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3617echo "${ECHO_T}$features" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003618else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003619 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3620echo "${ECHO_T}Defaulting to normal" >&6
3621fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003622
3623dovimdiff=""
3624dogvimdiff=""
3625case "$features" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003626 tiny) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003627#define FEAT_TINY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003628_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003629 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003630 small) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003631#define FEAT_SMALL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003632_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003633 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003634 normal) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003635#define FEAT_NORMAL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003636_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003637 dovimdiff="installvimdiff";
3638 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003639 big) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003640#define FEAT_BIG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003641_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003642 dovimdiff="installvimdiff";
3643 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003644 huge) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003645#define FEAT_HUGE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003646_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003647 dovimdiff="installvimdiff";
3648 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003649 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3650echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003651esac
3652
3653
3654
3655
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003656echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3657echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3658
Bram Moolenaar071d4272004-06-13 20:20:40 +00003659# Check whether --with-compiledby or --without-compiledby was given.
3660if test "${with_compiledby+set}" = set; then
3661 withval="$with_compiledby"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003662 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3663echo "${ECHO_T}$withval" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003664else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003665 compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3666echo "${ECHO_T}no" >&6
3667fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003668
3669
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003670echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3671echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003672# Check whether --enable-xsmp or --disable-xsmp was given.
3673if test "${enable_xsmp+set}" = set; then
3674 enableval="$enable_xsmp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003675
Bram Moolenaar071d4272004-06-13 20:20:40 +00003676else
3677 enable_xsmp="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003678fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003679
3680if test "$enable_xsmp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003681 echo "$as_me:$LINENO: result: no" >&5
3682echo "${ECHO_T}no" >&6
3683 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3684echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003685 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3686if test "${enable_xsmp_interact+set}" = set; then
3687 enableval="$enable_xsmp_interact"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003688
Bram Moolenaar071d4272004-06-13 20:20:40 +00003689else
3690 enable_xsmp_interact="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003691fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003692 if test "$enable_xsmp_interact" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003693 echo "$as_me:$LINENO: result: no" >&5
3694echo "${ECHO_T}no" >&6
3695 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003696#define USE_XSMP_INTERACT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003697_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003698
3699 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003700 echo "$as_me:$LINENO: result: yes" >&5
3701echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003702 fi
3703else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003704 echo "$as_me:$LINENO: result: yes" >&5
3705echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003706fi
3707
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003708echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3709echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003710# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3711if test "${enable_mzschemeinterp+set}" = set; then
3712 enableval="$enable_mzschemeinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003713
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003714else
3715 enable_mzschemeinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003716fi;
3717echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3718echo "${ECHO_T}$enable_mzschemeinterp" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003719
3720if test "$enable_mzschemeinterp" = "yes"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003721
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003722
3723 echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3724echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3725
3726# Check whether --with-plthome or --without-plthome was given.
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003727if test "${with_plthome+set}" = set; then
3728 withval="$with_plthome"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003729 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3730echo "${ECHO_T}$with_plthome" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003731else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003732 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3733echo "${ECHO_T}\"no\"" >&6
3734fi;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003735
3736 if test "X$with_plthome" != "X"; then
3737 vi_cv_path_mzscheme_pfx="$with_plthome"
3738 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003739 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3740echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003741 if test "X$PLTHOME" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003742 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3743echo "${ECHO_T}\"$PLTHOME\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003744 vi_cv_path_mzscheme_pfx="$PLTHOME"
3745 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003746 echo "$as_me:$LINENO: result: \"not set\"" >&5
3747echo "${ECHO_T}\"not set\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003748 # Extract the first word of "mzscheme", so it can be a program name with args.
3749set dummy mzscheme; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003750echo "$as_me:$LINENO: checking for $ac_word" >&5
3751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003754else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003755 case $vi_cv_path_mzscheme in
3756 [\\/]* | ?:[\\/]*)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003757 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3758 ;;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003759 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3770 fi
3771done
3772done
3773
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003774 ;;
3775esac
3776fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003777vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3778
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003779if test -n "$vi_cv_path_mzscheme"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003780 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3781echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003782else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003783 echo "$as_me:$LINENO: result: no" >&5
3784echo "${ECHO_T}no" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003785fi
3786
3787
3788 if test "X$vi_cv_path_mzscheme" != "X"; then
3789 lsout=`ls -l $vi_cv_path_mzscheme`
3790 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3791 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3792 fi
3793 fi
3794
3795 if test "X$vi_cv_path_mzscheme" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003796 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3797echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3798if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003800else
3801 vi_cv_path_mzscheme_pfx=`
3802 ${vi_cv_path_mzscheme} -evm \
3803 "(display (simplify-path \
3804 (build-path (call-with-values \
3805 (lambda () (split-path (find-system-path (quote exec-file)))) \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003806 (lambda (base name must-be-dir?) base)) (quote up))))"`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003807fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003808echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3809echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003810 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3811 fi
3812 fi
3813 fi
3814
3815 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003816 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3817echo $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 +00003818 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003819 echo "$as_me:$LINENO: result: \"yes\"" >&5
3820echo "${ECHO_T}\"yes\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003821 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003822 echo "$as_me:$LINENO: result: \"no\"" >&5
3823echo "${ECHO_T}\"no\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003824 vi_cv_path_mzscheme_pfx=
3825 fi
3826 fi
3827
3828 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3829 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3830 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3831 else
3832 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003833 if test "$GCC" = yes; then
3834 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar21cf8232004-07-16 20:18:37 +00003835 elif test "`(uname) 2>/dev/null`" = SunOS &&
3836 uname -r | grep '^5' >/dev/null; then
3837 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003838 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003839 fi
3840 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \
3841 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
3842 MZSCHEME_SRC="if_mzsch.c"
3843 MZSCHEME_OBJ="objects/if_mzsch.o"
3844 MZSCHEME_PRO="if_mzsch.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003845 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003846#define FEAT_MZSCHEME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003847_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003848
3849 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003850
3851
3852
3853
3854
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003855fi
3856
3857
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003858echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3859echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003860# Check whether --enable-perlinterp or --disable-perlinterp was given.
3861if test "${enable_perlinterp+set}" = set; then
3862 enableval="$enable_perlinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003863
Bram Moolenaar071d4272004-06-13 20:20:40 +00003864else
3865 enable_perlinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003866fi;
3867echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3868echo "${ECHO_T}$enable_perlinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003869if test "$enable_perlinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003870
Bram Moolenaar071d4272004-06-13 20:20:40 +00003871 # Extract the first word of "perl", so it can be a program name with args.
3872set dummy perl; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003873echo "$as_me:$LINENO: checking for $ac_word" >&5
3874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3875if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003877else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003878 case $vi_cv_path_perl in
3879 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003880 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3881 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003882 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884for as_dir in $PATH
3885do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3893 fi
3894done
3895done
3896
Bram Moolenaar071d4272004-06-13 20:20:40 +00003897 ;;
3898esac
3899fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003900vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3901
Bram Moolenaar071d4272004-06-13 20:20:40 +00003902if test -n "$vi_cv_path_perl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003903 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3904echo "${ECHO_T}$vi_cv_path_perl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003905else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003906 echo "$as_me:$LINENO: result: no" >&5
3907echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003908fi
3909
3910 if test "X$vi_cv_path_perl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003911 echo "$as_me:$LINENO: checking Perl version" >&5
3912echo $ECHO_N "checking Perl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003913 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3914 eval `$vi_cv_path_perl -V:usethreads`
3915 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3916 badthreads=no
3917 else
3918 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3919 eval `$vi_cv_path_perl -V:use5005threads`
3920 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3921 badthreads=no
3922 else
3923 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003924 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3925echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003926 fi
3927 else
3928 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003929 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3930echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003931 fi
3932 fi
3933 if test $badthreads = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003934 echo "$as_me:$LINENO: result: OK" >&5
3935echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003936 eval `$vi_cv_path_perl -V:shrpenv`
3937 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3938 shrpenv=""
3939 fi
3940 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003941
Bram Moolenaar071d4272004-06-13 20:20:40 +00003942 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3943 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3944 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3945 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3946 -e 's/-bE:perl.exp//' -e 's/-lc //'`
3947 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3948 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3949
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003950 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3951echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003952 cflags_save=$CFLAGS
3953 libs_save=$LIBS
3954 ldflags_save=$LDFLAGS
3955 CFLAGS="$CFLAGS $perlcppflags"
3956 LIBS="$LIBS $perllibs"
3957 LDFLAGS="$perlldflags $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003958 cat >conftest.$ac_ext <<_ACEOF
3959/* confdefs.h. */
3960_ACEOF
3961cat confdefs.h >>conftest.$ac_ext
3962cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003964
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003965int
3966main ()
3967{
3968
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973rm -f conftest.$ac_objext conftest$ac_exeext
3974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3975 (eval $ac_link) 2>conftest.er1
3976 ac_status=$?
3977 grep -v '^ *+' conftest.er1 >conftest.err
3978 rm -f conftest.er1
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } &&
3982 { ac_try='test -z "$ac_c_werror_flag"
3983 || test ! -s conftest.err'
3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 (eval $ac_try) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }; } &&
3989 { ac_try='test -s conftest$ac_exeext'
3990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991 (eval $ac_try) 2>&5
3992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 echo "$as_me:$LINENO: result: yes" >&5
3996echo "${ECHO_T}yes" >&6; perl_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003997else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003998 echo "$as_me: failed program was:" >&5
3999sed 's/^/| /' conftest.$ac_ext >&5
4000
4001echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
4002echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004003fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004004rm -f conftest.err conftest.$ac_objext \
4005 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004006 CFLAGS=$cflags_save
4007 LIBS=$libs_save
4008 LDFLAGS=$ldflags_save
4009 if test $perl_ok = yes; then
4010 if test "X$perlcppflags" != "X"; then
4011 PERL_CFLAGS="$perlcppflags"
4012 fi
4013 if test "X$perlldflags" != "X"; then
4014 LDFLAGS="$perlldflags $LDFLAGS"
4015 fi
4016 PERL_LIBS=$perllibs
4017 PERL_SRC="auto/if_perl.c if_perlsfio.c"
4018 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
4019 PERL_PRO="if_perl.pro if_perlsfio.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004020 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004021#define FEAT_PERL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004022_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004023
4024 fi
4025 fi
4026 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004027 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
4028echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004029 fi
4030 fi
4031
4032 if test "x$MACOSX" = "xyes"; then
4033 dir=/System/Library/Perl
4034 darwindir=$dir/darwin
4035 if test -d $darwindir; then
4036 PERL=/usr/bin/perl
4037 else
4038 dir=/System/Library/Perl/5.8.1
4039 darwindir=$dir/darwin-thread-multi-2level
4040 if test -d $darwindir; then
4041 PERL=/usr/bin/perl
4042 fi
4043 fi
4044 if test -n "$PERL"; then
4045 PERL_DIR="$dir"
4046 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
4047 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
4048 PERL_LIBS="-L$darwindir/CORE -lperl"
4049 fi
4050 fi
4051fi
4052
4053
4054
4055
4056
4057
4058
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004059echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
4060echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004061# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
4062if test "${enable_pythoninterp+set}" = set; then
4063 enableval="$enable_pythoninterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004064
Bram Moolenaar071d4272004-06-13 20:20:40 +00004065else
4066 enable_pythoninterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004067fi;
4068echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
4069echo "${ECHO_T}$enable_pythoninterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004070if test "$enable_pythoninterp" = "yes"; then
4071 # Extract the first word of "python", so it can be a program name with args.
4072set dummy python; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004073echo "$as_me:$LINENO: checking for $ac_word" >&5
4074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4075if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004077else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004078 case $vi_cv_path_python in
4079 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004080 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
4081 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004082 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084for as_dir in $PATH
4085do
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
4091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 break 2
4093 fi
4094done
4095done
4096
Bram Moolenaar071d4272004-06-13 20:20:40 +00004097 ;;
4098esac
4099fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004100vi_cv_path_python=$ac_cv_path_vi_cv_path_python
4101
Bram Moolenaar071d4272004-06-13 20:20:40 +00004102if test -n "$vi_cv_path_python"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004103 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
4104echo "${ECHO_T}$vi_cv_path_python" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004105else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004106 echo "$as_me:$LINENO: result: no" >&5
4107echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004108fi
4109
4110 if test "X$vi_cv_path_python" != "X"; then
4111
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004112 echo "$as_me:$LINENO: checking Python version" >&5
4113echo $ECHO_N "checking Python version... $ECHO_C" >&6
4114if test "${vi_cv_var_python_version+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004116else
4117 vi_cv_var_python_version=`
4118 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004119
Bram Moolenaar071d4272004-06-13 20:20:40 +00004120fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004121echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4122echo "${ECHO_T}$vi_cv_var_python_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004123
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004124 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4125echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004126 if ${vi_cv_path_python} -c \
4127 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4128 then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004129 echo "$as_me:$LINENO: result: yep" >&5
4130echo "${ECHO_T}yep" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004131
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004132 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4133echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4134if test "${vi_cv_path_python_pfx+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004136else
4137 vi_cv_path_python_pfx=`
4138 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004139 "import sys; print sys.prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004140fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004141echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4142echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004143
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004144 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4145echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4146if test "${vi_cv_path_python_epfx+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004148else
4149 vi_cv_path_python_epfx=`
4150 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004151 "import sys; print sys.exec_prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004152fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004153echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4154echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004155
Bram Moolenaar071d4272004-06-13 20:20:40 +00004156
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004157 if test "${vi_cv_path_pythonpath+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004159else
4160 vi_cv_path_pythonpath=`
4161 unset PYTHONPATH;
4162 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004163 "import sys, string; print string.join(sys.path,':')"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004164fi
4165
4166
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004167
4168
4169# Check whether --with-python-config-dir or --without-python-config-dir was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004170if test "${with_python_config_dir+set}" = set; then
4171 withval="$with_python_config_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004172 vi_cv_path_python_conf="${withval}"
4173fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004174
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004175 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4176echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4177if test "${vi_cv_path_python_conf+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004179else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004180
Bram Moolenaar071d4272004-06-13 20:20:40 +00004181 vi_cv_path_python_conf=
4182 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4183 for subdir in lib share; do
4184 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4185 if test -d "$d" && test -f "$d/config.c"; then
4186 vi_cv_path_python_conf="$d"
4187 fi
4188 done
4189 done
Bram Moolenaar071d4272004-06-13 20:20:40 +00004190
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004191fi
4192echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4193echo "${ECHO_T}$vi_cv_path_python_conf" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004194
4195 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4196
4197 if test "X$PYTHON_CONFDIR" = "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004198 echo "$as_me:$LINENO: result: can't find it!" >&5
4199echo "${ECHO_T}can't find it!" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004200 else
4201
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004202 if test "${vi_cv_path_python_plibs+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004204else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004205
Bram Moolenaar071d4272004-06-13 20:20:40 +00004206 tmp_mkf="/tmp/Makefile-conf$$"
4207 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4208__:
4209 @echo "python_MODLIBS='$(MODLIBS)'"
4210 @echo "python_LIBS='$(LIBS)'"
4211 @echo "python_SYSLIBS='$(SYSLIBS)'"
4212 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4213eof
4214 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4215 rm -f ${tmp_mkf}
4216 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4217 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4218 vi_cv_path_python_plibs="-framework Python"
4219 else
4220 if test "${vi_cv_var_python_version}" = "1.4"; then
4221 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4222 else
4223 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4224 fi
4225 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4226 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4227 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004228
Bram Moolenaar071d4272004-06-13 20:20:40 +00004229fi
4230
4231
4232 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4233 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4234 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4235 else
4236 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}"
4237 fi
4238 PYTHON_SRC="if_python.c"
4239 if test "x$MACOSX" = "xyes"; then
4240 PYTHON_OBJ="objects/if_python.o"
4241 else
4242 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4243 fi
4244 if test "${vi_cv_var_python_version}" = "1.4"; then
4245 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4246 fi
4247 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4248
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004249 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4250echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004251 threadsafe_flag=
4252 thread_lib=
4253 if test "x$MACOSX" != "xyes"; then
4254 test "$GCC" = yes && threadsafe_flag="-pthread"
4255 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4256 threadsafe_flag="-D_THREAD_SAFE"
4257 thread_lib="-pthread"
4258 fi
4259 fi
4260 libs_save_old=$LIBS
4261 if test -n "$threadsafe_flag"; then
4262 cflags_save=$CFLAGS
4263 CFLAGS="$CFLAGS $threadsafe_flag"
4264 LIBS="$LIBS $thread_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004265 cat >conftest.$ac_ext <<_ACEOF
4266/* confdefs.h. */
4267_ACEOF
4268cat confdefs.h >>conftest.$ac_ext
4269cat >>conftest.$ac_ext <<_ACEOF
4270/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004271
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004272int
4273main ()
4274{
4275
4276 ;
4277 return 0;
4278}
4279_ACEOF
4280rm -f conftest.$ac_objext conftest$ac_exeext
4281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4282 (eval $ac_link) 2>conftest.er1
4283 ac_status=$?
4284 grep -v '^ *+' conftest.er1 >conftest.err
4285 rm -f conftest.er1
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } &&
4289 { ac_try='test -z "$ac_c_werror_flag"
4290 || test ! -s conftest.err'
4291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 (eval $ac_try) 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; } &&
4296 { ac_try='test -s conftest$ac_exeext'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4302 echo "$as_me:$LINENO: result: yes" >&5
4303echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004304else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004305 echo "$as_me: failed program was:" >&5
4306sed 's/^/| /' conftest.$ac_ext >&5
4307
4308echo "$as_me:$LINENO: result: no" >&5
4309echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4310
Bram Moolenaar071d4272004-06-13 20:20:40 +00004311fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004312rm -f conftest.err conftest.$ac_objext \
4313 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004314 CFLAGS=$cflags_save
4315 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004316 echo "$as_me:$LINENO: result: no" >&5
4317echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004318 fi
4319
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004320 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4321echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004322 cflags_save=$CFLAGS
4323 libs_save=$LIBS
4324 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4325 LIBS="$LIBS $PYTHON_LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004326 cat >conftest.$ac_ext <<_ACEOF
4327/* confdefs.h. */
4328_ACEOF
4329cat confdefs.h >>conftest.$ac_ext
4330cat >>conftest.$ac_ext <<_ACEOF
4331/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004332
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004333int
4334main ()
4335{
4336
4337 ;
4338 return 0;
4339}
4340_ACEOF
4341rm -f conftest.$ac_objext conftest$ac_exeext
4342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4343 (eval $ac_link) 2>conftest.er1
4344 ac_status=$?
4345 grep -v '^ *+' conftest.er1 >conftest.err
4346 rm -f conftest.er1
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try='test -z "$ac_c_werror_flag"
4351 || test ! -s conftest.err'
4352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 (eval $ac_try) 2>&5
4354 ac_status=$?
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; } &&
4357 { ac_try='test -s conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 echo "$as_me:$LINENO: result: yes" >&5
4364echo "${ECHO_T}yes" >&6; python_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004365else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004366 echo "$as_me: failed program was:" >&5
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4370echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004371fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004372rm -f conftest.err conftest.$ac_objext \
4373 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004374 CFLAGS=$cflags_save
4375 LIBS=$libs_save
4376 if test $python_ok = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004377 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004378#define FEAT_PYTHON 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004379_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004380
4381 else
4382 LIBS=$libs_save_old
4383 PYTHON_SRC=
4384 PYTHON_OBJ=
4385 PYTHON_LIBS=
4386 PYTHON_CFLAGS=
4387 fi
4388
4389 fi
4390 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004391 echo "$as_me:$LINENO: result: too old" >&5
4392echo "${ECHO_T}too old" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004393 fi
4394 fi
4395fi
4396
4397
4398
4399
4400
4401
4402
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004403echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4404echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004405# Check whether --enable-tclinterp or --disable-tclinterp was given.
4406if test "${enable_tclinterp+set}" = set; then
4407 enableval="$enable_tclinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004408
Bram Moolenaar071d4272004-06-13 20:20:40 +00004409else
4410 enable_tclinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004411fi;
4412echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4413echo "${ECHO_T}$enable_tclinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004414
4415if test "$enable_tclinterp" = "yes"; then
4416
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004417 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4418echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4419
4420# Check whether --with-tclsh or --without-tclsh was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004421if test "${with_tclsh+set}" = set; then
4422 withval="$with_tclsh"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004423 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4424echo "${ECHO_T}$tclsh_name" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004425else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004426 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4427echo "${ECHO_T}no" >&6
4428fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004429 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4430set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004431echo "$as_me:$LINENO: checking for $ac_word" >&5
4432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4433if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004435else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004436 case $vi_cv_path_tcl in
4437 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004438 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4439 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004440 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4448 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 break 2
4451 fi
4452done
4453done
4454
Bram Moolenaar071d4272004-06-13 20:20:40 +00004455 ;;
4456esac
4457fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004458vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4459
Bram Moolenaar071d4272004-06-13 20:20:40 +00004460if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004461 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4462echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004463else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004464 echo "$as_me:$LINENO: result: no" >&5
4465echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004466fi
4467
Bram Moolenaar071d4272004-06-13 20:20:40 +00004468
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004469
4470 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004471 tclsh_name="tclsh8.2"
4472 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4473set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004474echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004478else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004479 case $vi_cv_path_tcl in
4480 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004481 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4482 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004483 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485for as_dir in $PATH
4486do
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4494 fi
4495done
4496done
4497
Bram Moolenaar071d4272004-06-13 20:20:40 +00004498 ;;
4499esac
4500fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004501vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4502
Bram Moolenaar071d4272004-06-13 20:20:40 +00004503if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004504 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4505echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004506else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004507 echo "$as_me:$LINENO: result: no" >&5
4508echo "${ECHO_T}no" >&6
4509fi
4510
4511 fi
4512 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4513 tclsh_name="tclsh8.0"
4514 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4515set dummy $tclsh_name; ac_word=$2
4516echo "$as_me:$LINENO: checking for $ac_word" >&5
4517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4518if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520else
4521 case $vi_cv_path_tcl in
4522 [\\/]* | ?:[\\/]*)
4523 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4524 ;;
4525 *)
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH
4528do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4533 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4536 fi
4537done
4538done
4539
4540 ;;
4541esac
4542fi
4543vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4544
4545if test -n "$vi_cv_path_tcl"; then
4546 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4547echo "${ECHO_T}$vi_cv_path_tcl" >&6
4548else
4549 echo "$as_me:$LINENO: result: no" >&5
4550echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004551fi
4552
4553 fi
4554 if test "X$vi_cv_path_tcl" = "X"; then
4555 tclsh_name="tclsh"
4556 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4557set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004558echo "$as_me:$LINENO: checking for $ac_word" >&5
4559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004562else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004563 case $vi_cv_path_tcl in
4564 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004565 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4566 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004567 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569for as_dir in $PATH
4570do
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4578 fi
4579done
4580done
4581
Bram Moolenaar071d4272004-06-13 20:20:40 +00004582 ;;
4583esac
4584fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004585vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4586
Bram Moolenaar071d4272004-06-13 20:20:40 +00004587if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004588 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4589echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004590else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004591 echo "$as_me:$LINENO: result: no" >&5
4592echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004593fi
4594
4595 fi
4596 if test "X$vi_cv_path_tcl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004597 echo "$as_me:$LINENO: checking Tcl version" >&5
4598echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004599 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4600 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004601 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4602echo "${ECHO_T}$tclver - OK" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004603 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 -`
4604
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004605 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4606echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004607 if test "x$MACOSX" != "xyes"; then
Bram Moolenaar47136d72004-10-12 20:02:24 +00004608 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004609 else
4610 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4611 fi
4612 for try in $tclinc; do
4613 if test -f "$try/tcl.h"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004614 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4615echo "${ECHO_T}$try/tcl.h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004616 TCL_INC=$try
4617 break
4618 fi
4619 done
4620 if test -z "$TCL_INC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004621 echo "$as_me:$LINENO: result: <not found>" >&5
4622echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004623 SKIP_TCL=YES
4624 fi
4625 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004626 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4627echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004628 if test "x$MACOSX" != "xyes"; then
4629 tclcnf=`echo $tclinc | sed s/include/lib/g`
4630 else
4631 tclcnf="/System/Library/Frameworks/Tcl.framework"
4632 fi
4633 for try in $tclcnf; do
4634 if test -f $try/tclConfig.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004635 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4636echo "${ECHO_T}$try/tclConfig.sh" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004637 . $try/tclConfig.sh
4638 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
Bram Moolenaar9372a112005-12-06 19:59:18 +00004639 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 +00004640 break
4641 fi
4642 done
4643 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004644 echo "$as_me:$LINENO: result: <not found>" >&5
4645echo "${ECHO_T}<not found>" >&6
4646 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4647echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004648 tcllib=`echo $tclinc | sed s/include/lib/g`
4649 for ext in .so .a ; do
4650 for ver in "" $tclver ; do
4651 for try in $tcllib ; do
4652 trylib=tcl$ver$ext
4653 if test -f $try/lib$trylib ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004654 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4655echo "${ECHO_T}$try/lib$trylib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004656 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4657 if test "`(uname) 2>/dev/null`" = SunOS &&
4658 uname -r | grep '^5' >/dev/null; then
4659 TCL_LIBS="$TCL_LIBS -R $try"
4660 fi
4661 break 3
4662 fi
4663 done
4664 done
4665 done
4666 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004667 echo "$as_me:$LINENO: result: <not found>" >&5
4668echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004669 SKIP_TCL=YES
4670 fi
4671 fi
4672 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004673 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004674#define FEAT_TCL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004675_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004676
4677 TCL_SRC=if_tcl.c
4678 TCL_OBJ=objects/if_tcl.o
4679 TCL_PRO=if_tcl.pro
4680 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4681 fi
4682 fi
4683 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004684 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4685echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004686 fi
4687 fi
4688fi
4689
4690
4691
4692
4693
4694
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004695echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4696echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004697# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4698if test "${enable_rubyinterp+set}" = set; then
4699 enableval="$enable_rubyinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004700
Bram Moolenaar071d4272004-06-13 20:20:40 +00004701else
4702 enable_rubyinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004703fi;
4704echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4705echo "${ECHO_T}$enable_rubyinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004706if test "$enable_rubyinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004707
Bram Moolenaar071d4272004-06-13 20:20:40 +00004708 # Extract the first word of "ruby", so it can be a program name with args.
4709set dummy ruby; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004710echo "$as_me:$LINENO: checking for $ac_word" >&5
4711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4712if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004714else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004715 case $vi_cv_path_ruby in
4716 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004717 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4718 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004719 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721for as_dir in $PATH
4722do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4727 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 break 2
4730 fi
4731done
4732done
4733
Bram Moolenaar071d4272004-06-13 20:20:40 +00004734 ;;
4735esac
4736fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004737vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4738
Bram Moolenaar071d4272004-06-13 20:20:40 +00004739if test -n "$vi_cv_path_ruby"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004740 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4741echo "${ECHO_T}$vi_cv_path_ruby" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004742else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004743 echo "$as_me:$LINENO: result: no" >&5
4744echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004745fi
4746
4747 if test "X$vi_cv_path_ruby" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004748 echo "$as_me:$LINENO: checking Ruby version" >&5
4749echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
Bram Moolenaar0cb032e2005-04-23 20:52:00 +00004750 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 +00004751 echo "$as_me:$LINENO: result: OK" >&5
4752echo "${ECHO_T}OK" >&6
4753 echo "$as_me:$LINENO: checking Ruby header files" >&5
4754echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004755 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4756 if test "X$rubyhdrdir" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004757 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4758echo "${ECHO_T}$rubyhdrdir" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004759 RUBY_CFLAGS="-I$rubyhdrdir"
4760 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4761 if test "X$rubylibs" != "X"; then
4762 RUBY_LIBS="$rubylibs"
4763 fi
4764 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4765 if test -f "$rubyhdrdir/$librubyarg"; then
4766 librubyarg="$rubyhdrdir/$librubyarg"
4767 else
4768 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4769 if test -f "$rubylibdir/$librubyarg"; then
4770 librubyarg="$rubylibdir/$librubyarg"
4771 elif test "$librubyarg" = "libruby.a"; then
4772 librubyarg="-lruby"
4773 else
4774 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4775 fi
4776 fi
4777
4778 if test "X$librubyarg" != "X"; then
4779 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4780 fi
4781 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4782 if test "X$rubyldflags" != "X"; then
4783 LDFLAGS="$rubyldflags $LDFLAGS"
4784 fi
4785 RUBY_SRC="if_ruby.c"
4786 RUBY_OBJ="objects/if_ruby.o"
4787 RUBY_PRO="if_ruby.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004788 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004789#define FEAT_RUBY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004790_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004791
4792 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004793 echo "$as_me:$LINENO: result: not found" >&5
4794echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004795 fi
4796 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004797 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4798echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004799 fi
4800 fi
4801fi
4802
4803
4804
4805
4806
4807
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004808echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4809echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004810# Check whether --enable-cscope or --disable-cscope was given.
4811if test "${enable_cscope+set}" = set; then
4812 enableval="$enable_cscope"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004813
Bram Moolenaar071d4272004-06-13 20:20:40 +00004814else
4815 enable_cscope="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004816fi;
4817echo "$as_me:$LINENO: result: $enable_cscope" >&5
4818echo "${ECHO_T}$enable_cscope" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004819if test "$enable_cscope" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004820 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004821#define FEAT_CSCOPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004822_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004823
4824fi
4825
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004826echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4827echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004828# Check whether --enable-workshop or --disable-workshop was given.
4829if test "${enable_workshop+set}" = set; then
4830 enableval="$enable_workshop"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004831
Bram Moolenaar071d4272004-06-13 20:20:40 +00004832else
4833 enable_workshop="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004834fi;
4835echo "$as_me:$LINENO: result: $enable_workshop" >&5
4836echo "${ECHO_T}$enable_workshop" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004837if test "$enable_workshop" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004838 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004839#define FEAT_SUN_WORKSHOP 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004840_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004841
4842 WORKSHOP_SRC="workshop.c integration.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004843
Bram Moolenaar071d4272004-06-13 20:20:40 +00004844 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004845
Bram Moolenaar071d4272004-06-13 20:20:40 +00004846 if test "${enable_gui-xxx}" = xxx; then
4847 enable_gui=motif
4848 fi
4849fi
4850
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004851echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4852echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004853# Check whether --enable-netbeans or --disable-netbeans was given.
4854if test "${enable_netbeans+set}" = set; then
4855 enableval="$enable_netbeans"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004856
Bram Moolenaar071d4272004-06-13 20:20:40 +00004857else
4858 enable_netbeans="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004859fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004860if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004861 echo "$as_me:$LINENO: result: no" >&5
4862echo "${ECHO_T}no" >&6
4863
4864echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4865echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4866if test "${ac_cv_lib_socket_socket+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004868else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004869 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004870LIBS="-lsocket $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004871cat >conftest.$ac_ext <<_ACEOF
4872/* confdefs.h. */
4873_ACEOF
4874cat confdefs.h >>conftest.$ac_ext
4875cat >>conftest.$ac_ext <<_ACEOF
4876/* end confdefs.h. */
4877
Bram Moolenaar071d4272004-06-13 20:20:40 +00004878/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004879#ifdef __cplusplus
4880extern "C"
4881#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004882/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004883 builtin and then its argument prototype would still apply. */
4884char socket ();
4885int
4886main ()
4887{
4888socket ();
4889 ;
4890 return 0;
4891}
4892_ACEOF
4893rm -f conftest.$ac_objext conftest$ac_exeext
4894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4895 (eval $ac_link) 2>conftest.er1
4896 ac_status=$?
4897 grep -v '^ *+' conftest.er1 >conftest.err
4898 rm -f conftest.er1
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -z "$ac_c_werror_flag"
4903 || test ! -s conftest.err'
4904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905 (eval $ac_try) 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }; } &&
4909 { ac_try='test -s conftest$ac_exeext'
4910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 (eval $ac_try) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; }; then
4915 ac_cv_lib_socket_socket=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004916else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004917 echo "$as_me: failed program was:" >&5
4918sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004919
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004920ac_cv_lib_socket_socket=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004921fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004922rm -f conftest.err conftest.$ac_objext \
4923 conftest$ac_exeext conftest.$ac_ext
4924LIBS=$ac_check_lib_save_LIBS
4925fi
4926echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4927echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4928if test $ac_cv_lib_socket_socket = yes; then
4929 cat >>confdefs.h <<_ACEOF
4930#define HAVE_LIBSOCKET 1
4931_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004932
4933 LIBS="-lsocket $LIBS"
4934
Bram Moolenaar071d4272004-06-13 20:20:40 +00004935fi
4936
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004937
4938echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4939echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4940if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004942else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004943 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004944LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004945cat >conftest.$ac_ext <<_ACEOF
4946/* confdefs.h. */
4947_ACEOF
4948cat confdefs.h >>conftest.$ac_ext
4949cat >>conftest.$ac_ext <<_ACEOF
4950/* end confdefs.h. */
4951
Bram Moolenaar071d4272004-06-13 20:20:40 +00004952/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004953#ifdef __cplusplus
4954extern "C"
4955#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004956/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004957 builtin and then its argument prototype would still apply. */
4958char gethostbyname ();
4959int
4960main ()
4961{
4962gethostbyname ();
4963 ;
4964 return 0;
4965}
4966_ACEOF
4967rm -f conftest.$ac_objext conftest$ac_exeext
4968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4969 (eval $ac_link) 2>conftest.er1
4970 ac_status=$?
4971 grep -v '^ *+' conftest.er1 >conftest.err
4972 rm -f conftest.er1
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } &&
4976 { ac_try='test -z "$ac_c_werror_flag"
4977 || test ! -s conftest.err'
4978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 (eval $ac_try) 2>&5
4980 ac_status=$?
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); }; } &&
4983 { ac_try='test -s conftest$ac_exeext'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; }; then
4989 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004990else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004991 echo "$as_me: failed program was:" >&5
4992sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004993
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004994ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004995fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004996rm -f conftest.err conftest.$ac_objext \
4997 conftest$ac_exeext conftest.$ac_ext
4998LIBS=$ac_check_lib_save_LIBS
4999fi
5000echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5001echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5002if test $ac_cv_lib_nsl_gethostbyname = yes; then
5003 cat >>confdefs.h <<_ACEOF
5004#define HAVE_LIBNSL 1
5005_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005006
5007 LIBS="-lnsl $LIBS"
5008
Bram Moolenaar071d4272004-06-13 20:20:40 +00005009fi
5010
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005011 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
5012echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
5013 cat >conftest.$ac_ext <<_ACEOF
5014/* confdefs.h. */
5015_ACEOF
5016cat confdefs.h >>conftest.$ac_ext
5017cat >>conftest.$ac_ext <<_ACEOF
5018/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005019
5020#include <stdio.h>
5021#include <stdlib.h>
5022#include <stdarg.h>
5023#include <fcntl.h>
5024#include <netdb.h>
5025#include <netinet/in.h>
5026#include <errno.h>
5027#include <sys/types.h>
5028#include <sys/socket.h>
5029 /* Check bitfields */
5030 struct nbbuf {
5031 unsigned int initDone:1;
5032 ushort signmaplen;
5033 };
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005034
5035int
5036main ()
5037{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005038
5039 /* Check creating a socket. */
5040 struct sockaddr_in server;
5041 (void)socket(AF_INET, SOCK_STREAM, 0);
5042 (void)htons(100);
5043 (void)gethostbyname("microsoft.com");
5044 if (errno == ECONNREFUSED)
5045 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005046
5047 ;
5048 return 0;
5049}
5050_ACEOF
5051rm -f conftest.$ac_objext conftest$ac_exeext
5052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5053 (eval $ac_link) 2>conftest.er1
5054 ac_status=$?
5055 grep -v '^ *+' conftest.er1 >conftest.err
5056 rm -f conftest.er1
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -z "$ac_c_werror_flag"
5061 || test ! -s conftest.err'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 (eval $ac_try) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; } &&
5067 { ac_try='test -s conftest$ac_exeext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 echo "$as_me:$LINENO: result: yes" >&5
5074echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005075else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005076 echo "$as_me: failed program was:" >&5
5077sed 's/^/| /' conftest.$ac_ext >&5
5078
5079echo "$as_me:$LINENO: result: no" >&5
5080echo "${ECHO_T}no" >&6; enable_netbeans="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005081fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005082rm -f conftest.err conftest.$ac_objext \
5083 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005084else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005085 echo "$as_me:$LINENO: result: yes" >&5
5086echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005087fi
5088if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005089 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005090#define FEAT_NETBEANS_INTG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005091_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005092
5093 NETBEANS_SRC="netbeans.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005094
Bram Moolenaar071d4272004-06-13 20:20:40 +00005095 NETBEANS_OBJ="objects/netbeans.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005096
Bram Moolenaar071d4272004-06-13 20:20:40 +00005097fi
5098
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005099echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
5100echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005101# Check whether --enable-sniff or --disable-sniff was given.
5102if test "${enable_sniff+set}" = set; then
5103 enableval="$enable_sniff"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005104
Bram Moolenaar071d4272004-06-13 20:20:40 +00005105else
5106 enable_sniff="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005107fi;
5108echo "$as_me:$LINENO: result: $enable_sniff" >&5
5109echo "${ECHO_T}$enable_sniff" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005110if test "$enable_sniff" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005111 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005112#define FEAT_SNIFF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005113_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005114
5115 SNIFF_SRC="if_sniff.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005116
Bram Moolenaar071d4272004-06-13 20:20:40 +00005117 SNIFF_OBJ="objects/if_sniff.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005118
Bram Moolenaar071d4272004-06-13 20:20:40 +00005119fi
5120
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005121echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5122echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005123# Check whether --enable-multibyte or --disable-multibyte was given.
5124if test "${enable_multibyte+set}" = set; then
5125 enableval="$enable_multibyte"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005126
Bram Moolenaar071d4272004-06-13 20:20:40 +00005127else
5128 enable_multibyte="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005129fi;
5130echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5131echo "${ECHO_T}$enable_multibyte" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005132if test "$enable_multibyte" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005133 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005134#define FEAT_MBYTE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005135_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005136
5137fi
5138
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005139echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5140echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005141# Check whether --enable-hangulinput or --disable-hangulinput was given.
5142if test "${enable_hangulinput+set}" = set; then
5143 enableval="$enable_hangulinput"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005144
Bram Moolenaar071d4272004-06-13 20:20:40 +00005145else
5146 enable_hangulinput="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005147fi;
5148echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5149echo "${ECHO_T}$enable_hangulinput" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005150
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005151echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5152echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005153# Check whether --enable-xim or --disable-xim was given.
5154if test "${enable_xim+set}" = set; then
5155 enableval="$enable_xim"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005156 echo "$as_me:$LINENO: result: $enable_xim" >&5
5157echo "${ECHO_T}$enable_xim" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005158else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005159 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5160echo "${ECHO_T}defaulting to auto" >&6
5161fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005162
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005163echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5164echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005165# Check whether --enable-fontset or --disable-fontset was given.
5166if test "${enable_fontset+set}" = set; then
5167 enableval="$enable_fontset"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005168
Bram Moolenaar071d4272004-06-13 20:20:40 +00005169else
5170 enable_fontset="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005171fi;
5172echo "$as_me:$LINENO: result: $enable_fontset" >&5
5173echo "${ECHO_T}$enable_fontset" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005174
5175test -z "$with_x" && with_x=yes
5176test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5177if test "$with_x" = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005178 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5179echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005180else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005181
Bram Moolenaar071d4272004-06-13 20:20:40 +00005182 # Extract the first word of "xmkmf", so it can be a program name with args.
5183set dummy xmkmf; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005184echo "$as_me:$LINENO: checking for $ac_word" >&5
5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186if test "${ac_cv_path_xmkmfpath+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005188else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005189 case $xmkmfpath in
5190 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005191 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5192 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005193 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5201 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205done
5206done
5207
Bram Moolenaar071d4272004-06-13 20:20:40 +00005208 ;;
5209esac
5210fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005211xmkmfpath=$ac_cv_path_xmkmfpath
5212
Bram Moolenaar071d4272004-06-13 20:20:40 +00005213if test -n "$xmkmfpath"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005214 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5215echo "${ECHO_T}$xmkmfpath" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005216else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005217 echo "$as_me:$LINENO: result: no" >&5
5218echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005219fi
5220
5221
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005222 echo "$as_me:$LINENO: checking for X" >&5
5223echo $ECHO_N "checking for X... $ECHO_C" >&6
5224
Bram Moolenaar071d4272004-06-13 20:20:40 +00005225
5226# Check whether --with-x or --without-x was given.
5227if test "${with_x+set}" = set; then
5228 withval="$with_x"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005229
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005230fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005231# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5232if test "x$with_x" = xno; then
5233 # The user explicitly disabled X.
5234 have_x=disabled
5235else
5236 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5237 # Both variables are already set.
5238 have_x=yes
5239 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005240 if test "${ac_cv_have_x+set}" = set; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005242else
5243 # One or both of the vars are not set, and there is no cached value.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005244ac_x_includes=no ac_x_libraries=no
5245rm -fr conftest.dir
5246if mkdir conftest.dir; then
5247 cd conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005248 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005249 cat >Imakefile <<'_ACEOF'
Bram Moolenaar071d4272004-06-13 20:20:40 +00005250acfindx:
5251 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005252_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005253 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5254 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5255 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5256 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5257 for ac_extension in a so sl; do
5258 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005259 test -f $ac_im_libdir/libX11.$ac_extension; then
5260 ac_im_usrlibdir=$ac_im_libdir; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00005261 fi
5262 done
5263 # Screen out bogus values from the imake configuration. They are
5264 # bogus both because they are the default anyway, and because
5265 # using them would break gcc on systems where it needs fixed includes.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005266 case $ac_im_incroot in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005267 /usr/include) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005268 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005269 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005270 case $ac_im_usrlibdir in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005271 /usr/lib | /lib) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005272 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005273 esac
5274 fi
5275 cd ..
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005276 rm -fr conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005277fi
5278
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005279# Standard set of common directories for X headers.
5280# Check X11 before X11Rn because it is often a symlink to the current release.
5281ac_x_header_dirs='
5282/usr/X11/include
5283/usr/X11R6/include
5284/usr/X11R5/include
5285/usr/X11R4/include
Bram Moolenaar071d4272004-06-13 20:20:40 +00005286
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005287/usr/include/X11
5288/usr/include/X11R6
5289/usr/include/X11R5
5290/usr/include/X11R4
5291
5292/usr/local/X11/include
5293/usr/local/X11R6/include
5294/usr/local/X11R5/include
5295/usr/local/X11R4/include
5296
5297/usr/local/include/X11
5298/usr/local/include/X11R6
5299/usr/local/include/X11R5
5300/usr/local/include/X11R4
5301
5302/usr/X386/include
5303/usr/x386/include
5304/usr/XFree86/include/X11
5305
5306/usr/include
5307/usr/local/include
5308/usr/unsupported/include
5309/usr/athena/include
5310/usr/local/x11r5/include
5311/usr/lpp/Xamples/include
5312
5313/usr/openwin/include
5314/usr/openwin/share/include'
5315
5316if test "$ac_x_includes" = no; then
5317 # Guess where to find include files, by looking for Intrinsic.h.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005318 # First, try using that file with no special directory specified.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005319 cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
5325#include <X11/Intrinsic.h>
5326_ACEOF
5327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } >/dev/null; then
5335 if test -s conftest.err; then
5336 ac_cpp_err=$ac_c_preproc_warn_flag
5337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5338 else
5339 ac_cpp_err=
5340 fi
5341else
5342 ac_cpp_err=yes
5343fi
5344if test -z "$ac_cpp_err"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005345 # We can compile using X headers with no special include directory.
5346ac_x_includes=
5347else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005348 echo "$as_me: failed program was:" >&5
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 for ac_dir in $ac_x_header_dirs; do
5352 if test -r "$ac_dir/X11/Intrinsic.h"; then
5353 ac_x_includes=$ac_dir
5354 break
5355 fi
5356done
Bram Moolenaar071d4272004-06-13 20:20:40 +00005357fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005358rm -f conftest.err conftest.$ac_ext
5359fi # $ac_x_includes = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005360
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005361if test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005362 # Check for the libraries.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005363 # See if we find them without any special options.
5364 # Don't add to $LIBS permanently.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005365 ac_save_LIBS=$LIBS
5366 LIBS="-lXt $LIBS"
5367 cat >conftest.$ac_ext <<_ACEOF
5368/* confdefs.h. */
5369_ACEOF
5370cat confdefs.h >>conftest.$ac_ext
5371cat >>conftest.$ac_ext <<_ACEOF
5372/* end confdefs.h. */
5373#include <X11/Intrinsic.h>
5374int
5375main ()
5376{
5377XtMalloc (0)
5378 ;
5379 return 0;
5380}
5381_ACEOF
5382rm -f conftest.$ac_objext conftest$ac_exeext
5383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5384 (eval $ac_link) 2>conftest.er1
5385 ac_status=$?
5386 grep -v '^ *+' conftest.er1 >conftest.err
5387 rm -f conftest.er1
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } &&
5391 { ac_try='test -z "$ac_c_werror_flag"
5392 || test ! -s conftest.err'
5393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394 (eval $ac_try) 2>&5
5395 ac_status=$?
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; } &&
5398 { ac_try='test -s conftest$ac_exeext'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 LIBS=$ac_save_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005405# We can link X programs with no special library path.
5406ac_x_libraries=
5407else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005408 echo "$as_me: failed program was:" >&5
5409sed 's/^/| /' conftest.$ac_ext >&5
5410
5411LIBS=$ac_save_LIBS
5412for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Bram Moolenaar071d4272004-06-13 20:20:40 +00005413do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005414 # Don't even attempt the hair of trying to link an X program!
Bram Moolenaar071d4272004-06-13 20:20:40 +00005415 for ac_extension in a so sl; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005416 if test -r $ac_dir/libXt.$ac_extension; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005417 ac_x_libraries=$ac_dir
5418 break 2
5419 fi
5420 done
5421done
5422fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005423rm -f conftest.err conftest.$ac_objext \
5424 conftest$ac_exeext conftest.$ac_ext
5425fi # $ac_x_libraries = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005426
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005427if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005428 # Didn't find X anywhere. Cache the known absence of X.
5429 ac_cv_have_x="have_x=no"
5430else
5431 # Record where we found X for the cache.
5432 ac_cv_have_x="have_x=yes \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005433 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005434fi
5435fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005436
Bram Moolenaar071d4272004-06-13 20:20:40 +00005437 fi
5438 eval "$ac_cv_have_x"
5439fi # $with_x != no
5440
5441if test "$have_x" != yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005442 echo "$as_me:$LINENO: result: $have_x" >&5
5443echo "${ECHO_T}$have_x" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005444 no_x=yes
5445else
5446 # If each of the values was on the command line, it overrides each guess.
5447 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5448 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5449 # Update the cache value to reflect the command line values.
5450 ac_cv_have_x="have_x=yes \
5451 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005452 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5453echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005454fi
5455
5456if test "$no_x" = yes; then
5457 # Not all programs may use this symbol, but it does not hurt to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005458
5459cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005460#define X_DISPLAY_MISSING 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005461_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005462
5463 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5464else
5465 if test -n "$x_includes"; then
5466 X_CFLAGS="$X_CFLAGS -I$x_includes"
5467 fi
5468
5469 # It would also be nice to do this for all -L options, not just this one.
5470 if test -n "$x_libraries"; then
5471 X_LIBS="$X_LIBS -L$x_libraries"
5472 # For Solaris; some versions of Sun CC require a space after -R and
5473 # others require no space. Words are not sufficient . . . .
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005474 case `(uname -sr) 2>/dev/null` in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005475 "SunOS 5"*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005476 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5477echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5478 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5479 cat >conftest.$ac_ext <<_ACEOF
5480/* confdefs.h. */
5481_ACEOF
5482cat confdefs.h >>conftest.$ac_ext
5483cat >>conftest.$ac_ext <<_ACEOF
5484/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005485
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005486int
5487main ()
5488{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005489
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005490 ;
5491 return 0;
5492}
5493_ACEOF
5494rm -f conftest.$ac_objext conftest$ac_exeext
5495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5496 (eval $ac_link) 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } &&
5503 { ac_try='test -z "$ac_c_werror_flag"
5504 || test ! -s conftest.err'
5505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506 (eval $ac_try) 2>&5
5507 ac_status=$?
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }; } &&
5510 { ac_try='test -s conftest$ac_exeext'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005516 ac_R_nospace=yes
5517else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005518 echo "$as_me: failed program was:" >&5
5519sed 's/^/| /' conftest.$ac_ext >&5
5520
5521ac_R_nospace=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005522fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005523rm -f conftest.err conftest.$ac_objext \
5524 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005525 if test $ac_R_nospace = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005526 echo "$as_me:$LINENO: result: no" >&5
5527echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005528 X_LIBS="$X_LIBS -R$x_libraries"
5529 else
5530 LIBS="$ac_xsave_LIBS -R $x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005531 cat >conftest.$ac_ext <<_ACEOF
5532/* confdefs.h. */
5533_ACEOF
5534cat confdefs.h >>conftest.$ac_ext
5535cat >>conftest.$ac_ext <<_ACEOF
5536/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005537
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005538int
5539main ()
5540{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005541
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005542 ;
5543 return 0;
5544}
5545_ACEOF
5546rm -f conftest.$ac_objext conftest$ac_exeext
5547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5548 (eval $ac_link) 2>conftest.er1
5549 ac_status=$?
5550 grep -v '^ *+' conftest.er1 >conftest.err
5551 rm -f conftest.er1
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } &&
5555 { ac_try='test -z "$ac_c_werror_flag"
5556 || test ! -s conftest.err'
5557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5558 (eval $ac_try) 2>&5
5559 ac_status=$?
5560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561 (exit $ac_status); }; } &&
5562 { ac_try='test -s conftest$ac_exeext'
5563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5564 (eval $ac_try) 2>&5
5565 ac_status=$?
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005568 ac_R_space=yes
5569else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005570 echo "$as_me: failed program was:" >&5
5571sed 's/^/| /' conftest.$ac_ext >&5
5572
5573ac_R_space=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005574fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005575rm -f conftest.err conftest.$ac_objext \
5576 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005577 if test $ac_R_space = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005578 echo "$as_me:$LINENO: result: yes" >&5
5579echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005580 X_LIBS="$X_LIBS -R $x_libraries"
5581 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005582 echo "$as_me:$LINENO: result: neither works" >&5
5583echo "${ECHO_T}neither works" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005584 fi
5585 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005586 LIBS=$ac_xsave_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005587 esac
5588 fi
5589
5590 # Check for system-dependent libraries X programs must link with.
5591 # Do this before checking for the system-independent R6 libraries
5592 # (-lICE), since we may need -lsocket or whatever for X linking.
5593
5594 if test "$ISC" = yes; then
5595 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5596 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005597 # Martyn Johnson says this is needed for Ultrix, if the X
5598 # libraries were built with DECnet support. And Karl Berry says
Bram Moolenaar071d4272004-06-13 20:20:40 +00005599 # the Alpha needs dnet_stub (dnet does not exist).
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005600 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5601 cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h. */
5607
Bram Moolenaar071d4272004-06-13 20:20:40 +00005608/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005609#ifdef __cplusplus
5610extern "C"
5611#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005612/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005613 builtin and then its argument prototype would still apply. */
5614char XOpenDisplay ();
5615int
5616main ()
5617{
5618XOpenDisplay ();
5619 ;
5620 return 0;
5621}
5622_ACEOF
5623rm -f conftest.$ac_objext conftest$ac_exeext
5624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5625 (eval $ac_link) 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try='test -z "$ac_c_werror_flag"
5633 || test ! -s conftest.err'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 (eval $ac_try) 2>&5
5636 ac_status=$?
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; } &&
5639 { ac_try='test -s conftest$ac_exeext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5641 (eval $ac_try) 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00005646else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005647 echo "$as_me: failed program was:" >&5
5648sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005649
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005650echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5651echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5652if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654else
5655 ac_check_lib_save_LIBS=$LIBS
5656LIBS="-ldnet $LIBS"
5657cat >conftest.$ac_ext <<_ACEOF
5658/* confdefs.h. */
5659_ACEOF
5660cat confdefs.h >>conftest.$ac_ext
5661cat >>conftest.$ac_ext <<_ACEOF
5662/* end confdefs.h. */
5663
5664/* Override any gcc2 internal prototype to avoid an error. */
5665#ifdef __cplusplus
5666extern "C"
5667#endif
5668/* We use char because int might match the return type of a gcc2
5669 builtin and then its argument prototype would still apply. */
5670char dnet_ntoa ();
5671int
5672main ()
5673{
5674dnet_ntoa ();
5675 ;
5676 return 0;
5677}
5678_ACEOF
5679rm -f conftest.$ac_objext conftest$ac_exeext
5680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5681 (eval $ac_link) 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -z "$ac_c_werror_flag"
5689 || test ! -s conftest.err'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 (eval $ac_try) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; } &&
5695 { ac_try='test -s conftest$ac_exeext'
5696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 (eval $ac_try) 2>&5
5698 ac_status=$?
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); }; }; then
5701 ac_cv_lib_dnet_dnet_ntoa=yes
5702else
5703 echo "$as_me: failed program was:" >&5
5704sed 's/^/| /' conftest.$ac_ext >&5
5705
5706ac_cv_lib_dnet_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005707fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005708rm -f conftest.err conftest.$ac_objext \
5709 conftest$ac_exeext conftest.$ac_ext
5710LIBS=$ac_check_lib_save_LIBS
5711fi
5712echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5713echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5714if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005715 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005716fi
5717
5718 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005719 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5720echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5721if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005723else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005724 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005725LIBS="-ldnet_stub $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005726cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h. */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h. */
5732
Bram Moolenaar071d4272004-06-13 20:20:40 +00005733/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005734#ifdef __cplusplus
5735extern "C"
5736#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005737/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005738 builtin and then its argument prototype would still apply. */
5739char dnet_ntoa ();
5740int
5741main ()
5742{
5743dnet_ntoa ();
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext conftest$ac_exeext
5749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750 (eval $ac_link) 2>conftest.er1
5751 ac_status=$?
5752 grep -v '^ *+' conftest.er1 >conftest.err
5753 rm -f conftest.er1
5754 cat conftest.err >&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -z "$ac_c_werror_flag"
5758 || test ! -s conftest.err'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760 (eval $ac_try) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; } &&
5764 { ac_try='test -s conftest$ac_exeext'
5765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766 (eval $ac_try) 2>&5
5767 ac_status=$?
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5770 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005771else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005772 echo "$as_me: failed program was:" >&5
5773sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005774
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005775ac_cv_lib_dnet_stub_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005776fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005777rm -f conftest.err conftest.$ac_objext \
5778 conftest$ac_exeext conftest.$ac_ext
5779LIBS=$ac_check_lib_save_LIBS
5780fi
5781echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5782echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5783if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005784 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005785fi
5786
5787 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005788fi
5789rm -f conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext conftest.$ac_ext
5791 LIBS="$ac_xsave_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005792
5793 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5794 # to get the SysV transport functions.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005795 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005796 # needs -lnsl.
5797 # The nsl library prevents programs from opening the X display
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005798 # on Irix 5.2, according to T.E. Dickey.
5799 # The functions gethostbyname, getservbyname, and inet_addr are
5800 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5801 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5802echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5803if test "${ac_cv_func_gethostbyname+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005805else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005806 cat >conftest.$ac_ext <<_ACEOF
5807/* confdefs.h. */
5808_ACEOF
5809cat confdefs.h >>conftest.$ac_ext
5810cat >>conftest.$ac_ext <<_ACEOF
5811/* end confdefs.h. */
5812/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5814#define gethostbyname innocuous_gethostbyname
5815
Bram Moolenaar071d4272004-06-13 20:20:40 +00005816/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005817 which can conflict with char gethostbyname (); below.
5818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5819 <limits.h> exists even on freestanding compilers. */
5820
5821#ifdef __STDC__
5822# include <limits.h>
5823#else
5824# include <assert.h>
5825#endif
5826
5827#undef gethostbyname
5828
Bram Moolenaar071d4272004-06-13 20:20:40 +00005829/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005830#ifdef __cplusplus
5831extern "C"
5832{
5833#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005834/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005835 builtin and then its argument prototype would still apply. */
5836char gethostbyname ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005837/* The GNU C library defines this for functions which it implements
5838 to always fail with ENOSYS. Some functions are actually named
5839 something starting with __ and the normal name is an alias. */
5840#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5841choke me
5842#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005843char (*f) () = gethostbyname;
5844#endif
5845#ifdef __cplusplus
5846}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005847#endif
5848
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005849int
5850main ()
5851{
5852return f != gethostbyname;
5853 ;
5854 return 0;
5855}
5856_ACEOF
5857rm -f conftest.$ac_objext conftest$ac_exeext
5858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5859 (eval $ac_link) 2>conftest.er1
5860 ac_status=$?
5861 grep -v '^ *+' conftest.er1 >conftest.err
5862 rm -f conftest.er1
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } &&
5866 { ac_try='test -z "$ac_c_werror_flag"
5867 || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869 (eval $ac_try) 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest$ac_exeext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 ac_cv_func_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005880else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005881 echo "$as_me: failed program was:" >&5
5882sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005883
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005884ac_cv_func_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005885fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005886rm -f conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext conftest.$ac_ext
5888fi
5889echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5890echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005891
5892 if test $ac_cv_func_gethostbyname = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005893 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5894echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5895if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005897else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005898 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005899LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005900cat >conftest.$ac_ext <<_ACEOF
5901/* confdefs.h. */
5902_ACEOF
5903cat confdefs.h >>conftest.$ac_ext
5904cat >>conftest.$ac_ext <<_ACEOF
5905/* end confdefs.h. */
5906
Bram Moolenaar071d4272004-06-13 20:20:40 +00005907/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005908#ifdef __cplusplus
5909extern "C"
5910#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005911/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005912 builtin and then its argument prototype would still apply. */
5913char gethostbyname ();
5914int
5915main ()
5916{
5917gethostbyname ();
5918 ;
5919 return 0;
5920}
5921_ACEOF
5922rm -f conftest.$ac_objext conftest$ac_exeext
5923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5924 (eval $ac_link) 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -z "$ac_c_werror_flag"
5932 || test ! -s conftest.err'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 (eval $ac_try) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; } &&
5938 { ac_try='test -s conftest$ac_exeext'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5944 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005945else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005946 echo "$as_me: failed program was:" >&5
5947sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005948
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005949ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005950fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005951rm -f conftest.err conftest.$ac_objext \
5952 conftest$ac_exeext conftest.$ac_ext
5953LIBS=$ac_check_lib_save_LIBS
5954fi
5955echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5956echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5957if test $ac_cv_lib_nsl_gethostbyname = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005959fi
5960
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005961 if test $ac_cv_lib_nsl_gethostbyname = no; then
5962 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5963echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5964if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966else
5967 ac_check_lib_save_LIBS=$LIBS
5968LIBS="-lbsd $LIBS"
5969cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h. */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
5974/* end confdefs.h. */
5975
5976/* Override any gcc2 internal prototype to avoid an error. */
5977#ifdef __cplusplus
5978extern "C"
5979#endif
5980/* We use char because int might match the return type of a gcc2
5981 builtin and then its argument prototype would still apply. */
5982char gethostbyname ();
5983int
5984main ()
5985{
5986gethostbyname ();
5987 ;
5988 return 0;
5989}
5990_ACEOF
5991rm -f conftest.$ac_objext conftest$ac_exeext
5992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5993 (eval $ac_link) 2>conftest.er1
5994 ac_status=$?
5995 grep -v '^ *+' conftest.er1 >conftest.err
5996 rm -f conftest.er1
5997 cat conftest.err >&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } &&
6000 { ac_try='test -z "$ac_c_werror_flag"
6001 || test ! -s conftest.err'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; } &&
6007 { ac_try='test -s conftest$ac_exeext'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009 (eval $ac_try) 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6013 ac_cv_lib_bsd_gethostbyname=yes
6014else
6015 echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018ac_cv_lib_bsd_gethostbyname=no
6019fi
6020rm -f conftest.err conftest.$ac_objext \
6021 conftest$ac_exeext conftest.$ac_ext
6022LIBS=$ac_check_lib_save_LIBS
6023fi
6024echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6025echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6026if test $ac_cv_lib_bsd_gethostbyname = yes; then
6027 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6028fi
6029
6030 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00006031 fi
6032
6033 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6034 # socket/setsockopt and other routines are undefined under SCO ODT
6035 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006036 # on later versions), says Simon Leinen: it contains gethostby*
6037 # variants that don't use the name server (or something). -lsocket
6038 # must be given before -lnsl if both are needed. We assume that
6039 # if connect needs -lnsl, so does gethostbyname.
6040 echo "$as_me:$LINENO: checking for connect" >&5
6041echo $ECHO_N "checking for connect... $ECHO_C" >&6
6042if test "${ac_cv_func_connect+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006044else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006045 cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h. */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h. */
6051/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6053#define connect innocuous_connect
6054
Bram Moolenaar071d4272004-06-13 20:20:40 +00006055/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006056 which can conflict with char connect (); below.
6057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6058 <limits.h> exists even on freestanding compilers. */
6059
6060#ifdef __STDC__
6061# include <limits.h>
6062#else
6063# include <assert.h>
6064#endif
6065
6066#undef connect
6067
Bram Moolenaar071d4272004-06-13 20:20:40 +00006068/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006069#ifdef __cplusplus
6070extern "C"
6071{
6072#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006073/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006074 builtin and then its argument prototype would still apply. */
6075char connect ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006076/* The GNU C library defines this for functions which it implements
6077 to always fail with ENOSYS. Some functions are actually named
6078 something starting with __ and the normal name is an alias. */
6079#if defined (__stub_connect) || defined (__stub___connect)
6080choke me
6081#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006082char (*f) () = connect;
6083#endif
6084#ifdef __cplusplus
6085}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006086#endif
6087
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006088int
6089main ()
6090{
6091return f != connect;
6092 ;
6093 return 0;
6094}
6095_ACEOF
6096rm -f conftest.$ac_objext conftest$ac_exeext
6097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6098 (eval $ac_link) 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_c_werror_flag"
6106 || test ! -s conftest.err'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; } &&
6112 { ac_try='test -s conftest$ac_exeext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_cv_func_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006119else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006120 echo "$as_me: failed program was:" >&5
6121sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006122
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006123ac_cv_func_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006124fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006125rm -f conftest.err conftest.$ac_objext \
6126 conftest$ac_exeext conftest.$ac_ext
6127fi
6128echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6129echo "${ECHO_T}$ac_cv_func_connect" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006130
6131 if test $ac_cv_func_connect = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006132 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6133echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6134if test "${ac_cv_lib_socket_connect+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006136else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006137 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006138LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006139cat >conftest.$ac_ext <<_ACEOF
6140/* confdefs.h. */
6141_ACEOF
6142cat confdefs.h >>conftest.$ac_ext
6143cat >>conftest.$ac_ext <<_ACEOF
6144/* end confdefs.h. */
6145
Bram Moolenaar071d4272004-06-13 20:20:40 +00006146/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006147#ifdef __cplusplus
6148extern "C"
6149#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006150/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006151 builtin and then its argument prototype would still apply. */
6152char connect ();
6153int
6154main ()
6155{
6156connect ();
6157 ;
6158 return 0;
6159}
6160_ACEOF
6161rm -f conftest.$ac_objext conftest$ac_exeext
6162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6163 (eval $ac_link) 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try='test -z "$ac_c_werror_flag"
6171 || test ! -s conftest.err'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 (eval $ac_try) 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; } &&
6177 { ac_try='test -s conftest$ac_exeext'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 (eval $ac_try) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6183 ac_cv_lib_socket_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006184else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006185 echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006187
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006188ac_cv_lib_socket_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006189fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006190rm -f conftest.err conftest.$ac_objext \
6191 conftest$ac_exeext conftest.$ac_ext
6192LIBS=$ac_check_lib_save_LIBS
6193fi
6194echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6195echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6196if test $ac_cv_lib_socket_connect = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006197 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006198fi
6199
6200 fi
6201
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006202 # Guillermo Gomez says -lposix is necessary on A/UX.
6203 echo "$as_me:$LINENO: checking for remove" >&5
6204echo $ECHO_N "checking for remove... $ECHO_C" >&6
6205if test "${ac_cv_func_remove+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006207else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006208 cat >conftest.$ac_ext <<_ACEOF
6209/* confdefs.h. */
6210_ACEOF
6211cat confdefs.h >>conftest.$ac_ext
6212cat >>conftest.$ac_ext <<_ACEOF
6213/* end confdefs.h. */
6214/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6216#define remove innocuous_remove
6217
Bram Moolenaar071d4272004-06-13 20:20:40 +00006218/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006219 which can conflict with char remove (); below.
6220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6221 <limits.h> exists even on freestanding compilers. */
6222
6223#ifdef __STDC__
6224# include <limits.h>
6225#else
6226# include <assert.h>
6227#endif
6228
6229#undef remove
6230
Bram Moolenaar071d4272004-06-13 20:20:40 +00006231/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006232#ifdef __cplusplus
6233extern "C"
6234{
6235#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006236/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006237 builtin and then its argument prototype would still apply. */
6238char remove ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006239/* The GNU C library defines this for functions which it implements
6240 to always fail with ENOSYS. Some functions are actually named
6241 something starting with __ and the normal name is an alias. */
6242#if defined (__stub_remove) || defined (__stub___remove)
6243choke me
6244#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006245char (*f) () = remove;
6246#endif
6247#ifdef __cplusplus
6248}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006249#endif
6250
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006251int
6252main ()
6253{
6254return f != remove;
6255 ;
6256 return 0;
6257}
6258_ACEOF
6259rm -f conftest.$ac_objext conftest$ac_exeext
6260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6261 (eval $ac_link) 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } &&
6268 { ac_try='test -z "$ac_c_werror_flag"
6269 || test ! -s conftest.err'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 (eval $ac_try) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; } &&
6275 { ac_try='test -s conftest$ac_exeext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_func_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006282else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006283 echo "$as_me: failed program was:" >&5
6284sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006285
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006286ac_cv_func_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006287fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006288rm -f conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6290fi
6291echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6292echo "${ECHO_T}$ac_cv_func_remove" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006293
6294 if test $ac_cv_func_remove = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006295 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6296echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6297if test "${ac_cv_lib_posix_remove+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006299else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006300 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006301LIBS="-lposix $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006302cat >conftest.$ac_ext <<_ACEOF
6303/* confdefs.h. */
6304_ACEOF
6305cat confdefs.h >>conftest.$ac_ext
6306cat >>conftest.$ac_ext <<_ACEOF
6307/* end confdefs.h. */
6308
Bram Moolenaar071d4272004-06-13 20:20:40 +00006309/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006310#ifdef __cplusplus
6311extern "C"
6312#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006313/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006314 builtin and then its argument prototype would still apply. */
6315char remove ();
6316int
6317main ()
6318{
6319remove ();
6320 ;
6321 return 0;
6322}
6323_ACEOF
6324rm -f conftest.$ac_objext conftest$ac_exeext
6325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6326 (eval $ac_link) 2>conftest.er1
6327 ac_status=$?
6328 grep -v '^ *+' conftest.er1 >conftest.err
6329 rm -f conftest.er1
6330 cat conftest.err >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); } &&
6333 { ac_try='test -z "$ac_c_werror_flag"
6334 || test ! -s conftest.err'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 (eval $ac_try) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; } &&
6340 { ac_try='test -s conftest$ac_exeext'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; }; then
6346 ac_cv_lib_posix_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006347else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006348 echo "$as_me: failed program was:" >&5
6349sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006350
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006351ac_cv_lib_posix_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006352fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006353rm -f conftest.err conftest.$ac_objext \
6354 conftest$ac_exeext conftest.$ac_ext
6355LIBS=$ac_check_lib_save_LIBS
6356fi
6357echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6358echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6359if test $ac_cv_lib_posix_remove = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006360 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006361fi
6362
6363 fi
6364
6365 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006366 echo "$as_me:$LINENO: checking for shmat" >&5
6367echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6368if test "${ac_cv_func_shmat+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006370else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006371 cat >conftest.$ac_ext <<_ACEOF
6372/* confdefs.h. */
6373_ACEOF
6374cat confdefs.h >>conftest.$ac_ext
6375cat >>conftest.$ac_ext <<_ACEOF
6376/* end confdefs.h. */
6377/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6379#define shmat innocuous_shmat
6380
Bram Moolenaar071d4272004-06-13 20:20:40 +00006381/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006382 which can conflict with char shmat (); below.
6383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6384 <limits.h> exists even on freestanding compilers. */
6385
6386#ifdef __STDC__
6387# include <limits.h>
6388#else
6389# include <assert.h>
6390#endif
6391
6392#undef shmat
6393
Bram Moolenaar071d4272004-06-13 20:20:40 +00006394/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006395#ifdef __cplusplus
6396extern "C"
6397{
6398#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006399/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006400 builtin and then its argument prototype would still apply. */
6401char shmat ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006402/* The GNU C library defines this for functions which it implements
6403 to always fail with ENOSYS. Some functions are actually named
6404 something starting with __ and the normal name is an alias. */
6405#if defined (__stub_shmat) || defined (__stub___shmat)
6406choke me
6407#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006408char (*f) () = shmat;
6409#endif
6410#ifdef __cplusplus
6411}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006412#endif
6413
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006414int
6415main ()
6416{
6417return f != shmat;
6418 ;
6419 return 0;
6420}
6421_ACEOF
6422rm -f conftest.$ac_objext conftest$ac_exeext
6423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6424 (eval $ac_link) 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -z "$ac_c_werror_flag"
6432 || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest$ac_exeext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_cv_func_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006445else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006446 echo "$as_me: failed program was:" >&5
6447sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006448
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006449ac_cv_func_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006450fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006451rm -f conftest.err conftest.$ac_objext \
6452 conftest$ac_exeext conftest.$ac_ext
6453fi
6454echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6455echo "${ECHO_T}$ac_cv_func_shmat" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006456
6457 if test $ac_cv_func_shmat = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006458 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6459echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6460if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006462else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006463 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006464LIBS="-lipc $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006465cat >conftest.$ac_ext <<_ACEOF
6466/* confdefs.h. */
6467_ACEOF
6468cat confdefs.h >>conftest.$ac_ext
6469cat >>conftest.$ac_ext <<_ACEOF
6470/* end confdefs.h. */
6471
Bram Moolenaar071d4272004-06-13 20:20:40 +00006472/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006473#ifdef __cplusplus
6474extern "C"
6475#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006476/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006477 builtin and then its argument prototype would still apply. */
6478char shmat ();
6479int
6480main ()
6481{
6482shmat ();
6483 ;
6484 return 0;
6485}
6486_ACEOF
6487rm -f conftest.$ac_objext conftest$ac_exeext
6488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6489 (eval $ac_link) 2>conftest.er1
6490 ac_status=$?
6491 grep -v '^ *+' conftest.er1 >conftest.err
6492 rm -f conftest.er1
6493 cat conftest.err >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } &&
6496 { ac_try='test -z "$ac_c_werror_flag"
6497 || test ! -s conftest.err'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 (eval $ac_try) 2>&5
6500 ac_status=$?
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; } &&
6503 { ac_try='test -s conftest$ac_exeext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505 (eval $ac_try) 2>&5
6506 ac_status=$?
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_cv_lib_ipc_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006510else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006511 echo "$as_me: failed program was:" >&5
6512sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006513
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006514ac_cv_lib_ipc_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006515fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006516rm -f conftest.err conftest.$ac_objext \
6517 conftest$ac_exeext conftest.$ac_ext
6518LIBS=$ac_check_lib_save_LIBS
6519fi
6520echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6521echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6522if test $ac_cv_lib_ipc_shmat = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006523 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006524fi
6525
6526 fi
6527 fi
6528
6529 # Check for libraries that X11R6 Xt/Xaw programs need.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006530 ac_save_LDFLAGS=$LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006531 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6532 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6533 # check for ICE first), but we must link in the order -lSM -lICE or
6534 # we get undefined symbols. So assume we have SM if we have ICE.
6535 # These have to be linked with before -lX11, unlike the other
6536 # libraries we check for below, so use a different variable.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006537 # John Interrante, Karl Berry
6538 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6539echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6540if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006542else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006543 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006544LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006545cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h. */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h. */
6551
Bram Moolenaar071d4272004-06-13 20:20:40 +00006552/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006553#ifdef __cplusplus
6554extern "C"
6555#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006556/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006557 builtin and then its argument prototype would still apply. */
6558char IceConnectionNumber ();
6559int
6560main ()
6561{
6562IceConnectionNumber ();
6563 ;
6564 return 0;
6565}
6566_ACEOF
6567rm -f conftest.$ac_objext conftest$ac_exeext
6568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>conftest.er1
6570 ac_status=$?
6571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
6576 { ac_try='test -z "$ac_c_werror_flag"
6577 || test ! -s conftest.err'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 (eval $ac_try) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; } &&
6583 { ac_try='test -s conftest$ac_exeext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_cv_lib_ICE_IceConnectionNumber=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006590else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006591 echo "$as_me: failed program was:" >&5
6592sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006593
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006594ac_cv_lib_ICE_IceConnectionNumber=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006595fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006596rm -f conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
6598LIBS=$ac_check_lib_save_LIBS
6599fi
6600echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6601echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6602if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006603 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006604fi
6605
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006606 LDFLAGS=$ac_save_LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006607
6608fi
6609
6610
6611 if test "$OS390Unix" = "yes"; then
6612 CFLAGS="$CFLAGS -W c,dll"
6613 LDFLAGS="$LDFLAGS -W l,dll"
6614 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6615 fi
6616
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006617
Bram Moolenaar071d4272004-06-13 20:20:40 +00006618 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6619 x_libraries=`echo "$x_includes" | sed s/include/lib/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006620 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6621echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006622 X_LIBS="$X_LIBS -L$x_libraries"
6623 if test "`(uname) 2>/dev/null`" = SunOS &&
6624 uname -r | grep '^5' >/dev/null; then
6625 X_LIBS="$X_LIBS -R $x_libraries"
6626 fi
6627 fi
6628
6629 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6630 x_includes=`echo "$x_libraries" | sed s/lib/include/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006631 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6632echo "${ECHO_T}Corrected X includes to $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006633 X_CFLAGS="$X_CFLAGS -I$x_includes"
6634 fi
6635
6636 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6637 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6638 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6639
6640
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006641 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6642echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006643 cflags_save=$CFLAGS
6644 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006645 cat >conftest.$ac_ext <<_ACEOF
6646/* confdefs.h. */
6647_ACEOF
6648cat confdefs.h >>conftest.$ac_ext
6649cat >>conftest.$ac_ext <<_ACEOF
6650/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006651#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006652int
6653main ()
6654{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006655
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006656 ;
6657 return 0;
6658}
6659_ACEOF
6660rm -f conftest.$ac_objext
6661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662 (eval $ac_compile) 2>conftest.er1
6663 ac_status=$?
6664 grep -v '^ *+' conftest.er1 >conftest.err
6665 rm -f conftest.er1
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try='test -z "$ac_c_werror_flag"
6670 || test ! -s conftest.err'
6671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 (eval $ac_try) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; } &&
6676 { ac_try='test -s conftest.$ac_objext'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 echo "$as_me:$LINENO: result: yes" >&5
6683echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006684else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006685 echo "$as_me: failed program was:" >&5
6686sed 's/^/| /' conftest.$ac_ext >&5
6687
6688echo "$as_me:$LINENO: result: no" >&5
6689echo "${ECHO_T}no" >&6; no_x=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006690fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006692 CFLAGS=$cflags_save
6693
6694 if test "${no_x-no}" = yes; then
6695 with_x=no
6696 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006697 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006698#define HAVE_X11 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006699_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006700
6701 X_LIB="-lXt -lX11";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006702
Bram Moolenaar071d4272004-06-13 20:20:40 +00006703
6704 ac_save_LDFLAGS="$LDFLAGS"
6705 LDFLAGS="-L$x_libraries $LDFLAGS"
6706
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006707 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6708echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6709if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6710 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006711else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006712 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006713LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006714cat >conftest.$ac_ext <<_ACEOF
6715/* confdefs.h. */
6716_ACEOF
6717cat confdefs.h >>conftest.$ac_ext
6718cat >>conftest.$ac_ext <<_ACEOF
6719/* end confdefs.h. */
6720
Bram Moolenaar071d4272004-06-13 20:20:40 +00006721/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006722#ifdef __cplusplus
6723extern "C"
6724#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006725/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006726 builtin and then its argument prototype would still apply. */
6727char _XdmcpAuthDoIt ();
6728int
6729main ()
6730{
6731_XdmcpAuthDoIt ();
6732 ;
6733 return 0;
6734}
6735_ACEOF
6736rm -f conftest.$ac_objext conftest$ac_exeext
6737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6738 (eval $ac_link) 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -z "$ac_c_werror_flag"
6746 || test ! -s conftest.err'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6748 (eval $ac_try) 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; } &&
6752 { ac_try='test -s conftest$ac_exeext'
6753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754 (eval $ac_try) 2>&5
6755 ac_status=$?
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); }; }; then
6758 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006759else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006760 echo "$as_me: failed program was:" >&5
6761sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006762
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006763ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006764fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006765rm -f conftest.err conftest.$ac_objext \
6766 conftest$ac_exeext conftest.$ac_ext
6767LIBS=$ac_check_lib_save_LIBS
6768fi
6769echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6770echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6771if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006772 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006773fi
6774
6775
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006776 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6777echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6778if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006780else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006781 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006782LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006783cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h. */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h. */
6789
Bram Moolenaar071d4272004-06-13 20:20:40 +00006790/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006791#ifdef __cplusplus
6792extern "C"
6793#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006794/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006795 builtin and then its argument prototype would still apply. */
6796char IceOpenConnection ();
6797int
6798main ()
6799{
6800IceOpenConnection ();
6801 ;
6802 return 0;
6803}
6804_ACEOF
6805rm -f conftest.$ac_objext conftest$ac_exeext
6806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807 (eval $ac_link) 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try='test -z "$ac_c_werror_flag"
6815 || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest$ac_exeext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_lib_ICE_IceOpenConnection=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006828else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006829 echo "$as_me: failed program was:" >&5
6830sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006831
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006832ac_cv_lib_ICE_IceOpenConnection=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006833fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006834rm -f conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
6836LIBS=$ac_check_lib_save_LIBS
6837fi
6838echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6839echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6840if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006842fi
6843
6844
6845 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006846 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6847echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6848if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006850else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006851 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006852LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006853cat >conftest.$ac_ext <<_ACEOF
6854/* confdefs.h. */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6858/* end confdefs.h. */
6859
Bram Moolenaar071d4272004-06-13 20:20:40 +00006860/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006861#ifdef __cplusplus
6862extern "C"
6863#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006864/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006865 builtin and then its argument prototype would still apply. */
6866char XpmCreatePixmapFromData ();
6867int
6868main ()
6869{
6870XpmCreatePixmapFromData ();
6871 ;
6872 return 0;
6873}
6874_ACEOF
6875rm -f conftest.$ac_objext conftest$ac_exeext
6876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try='test -z "$ac_c_werror_flag"
6885 || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 (eval $ac_try) 2>&5
6888 ac_status=$?
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try='test -s conftest$ac_exeext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6893 (eval $ac_try) 2>&5
6894 ac_status=$?
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006898else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006899 echo "$as_me: failed program was:" >&5
6900sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006901
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006902ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006903fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006904rm -f conftest.err conftest.$ac_objext \
6905 conftest$ac_exeext conftest.$ac_ext
6906LIBS=$ac_check_lib_save_LIBS
6907fi
6908echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6909echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6910if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006911 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006912fi
6913
6914
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006915 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6916echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006917 cflags_save=$CFLAGS
6918 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006919 cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h. */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
6924/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006925#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006926int
6927main ()
6928{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006929
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006930 ;
6931 return 0;
6932}
6933_ACEOF
6934rm -f conftest.$ac_objext
6935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6936 (eval $ac_compile) 2>conftest.er1
6937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } &&
6943 { ac_try='test -z "$ac_c_werror_flag"
6944 || test ! -s conftest.err'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 (eval $ac_try) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; } &&
6950 { ac_try='test -s conftest.$ac_objext'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006958else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006959 echo "$as_me: failed program was:" >&5
6960sed 's/^/| /' conftest.$ac_ext >&5
6961
6962CFLAGS="$CFLAGS -Wno-implicit-int"
6963 cat >conftest.$ac_ext <<_ACEOF
6964/* confdefs.h. */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006969#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006970int
6971main ()
6972{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006973
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006974 ;
6975 return 0;
6976}
6977_ACEOF
6978rm -f conftest.$ac_objext
6979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6980 (eval $ac_compile) 2>conftest.er1
6981 ac_status=$?
6982 grep -v '^ *+' conftest.er1 >conftest.err
6983 rm -f conftest.er1
6984 cat conftest.err >&5
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } &&
6987 { ac_try='test -z "$ac_c_werror_flag"
6988 || test ! -s conftest.err'
6989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 (eval $ac_try) 2>&5
6991 ac_status=$?
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); }; } &&
6994 { ac_try='test -s conftest.$ac_objext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 echo "$as_me:$LINENO: result: yes" >&5
7001echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007002else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007003 echo "$as_me: failed program was:" >&5
7004sed 's/^/| /' conftest.$ac_ext >&5
7005
7006echo "$as_me:$LINENO: result: test failed" >&5
7007echo "${ECHO_T}test failed" >&6
7008
Bram Moolenaar071d4272004-06-13 20:20:40 +00007009fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7011
Bram Moolenaar071d4272004-06-13 20:20:40 +00007012fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00007014 CFLAGS=$cflags_save
7015
7016 LDFLAGS="$ac_save_LDFLAGS"
7017
7018 fi
7019fi
7020
Bram Moolenaar2389c3c2005-05-22 22:07:59 +00007021test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00007022
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007023echo "$as_me:$LINENO: checking --enable-gui argument" >&5
7024echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007025# Check whether --enable-gui or --disable-gui was given.
7026if test "${enable_gui+set}" = set; then
7027 enableval="$enable_gui"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007028
Bram Moolenaar071d4272004-06-13 20:20:40 +00007029else
7030 enable_gui="auto"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007031fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007032
7033enable_gui_canon=`echo "_$enable_gui" | \
7034 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
7035
7036SKIP_GTK=YES
7037SKIP_GTK2=YES
7038SKIP_GNOME=YES
7039SKIP_MOTIF=YES
7040SKIP_ATHENA=YES
7041SKIP_NEXTAW=YES
7042SKIP_PHOTON=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00007043SKIP_CARBON=YES
7044GUITYPE=NONE
7045
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007046if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007047 SKIP_PHOTON=
7048 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007049 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7050echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007051 SKIP_PHOTON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007052 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7053echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7054 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7055echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7056 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
7057echo "${ECHO_T}Photon GUI support" >&6 ;;
7058 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7059echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007060 SKIP_PHOTON=YES ;;
7061 esac
7062
7063elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
7064 SKIP_CARBON=
7065 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007066 no) echo "$as_me:$LINENO: result: no GUI support" >&5
7067echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007068 SKIP_CARBON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007069 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
7070echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
7071 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
7072echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
7073 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
7074echo "${ECHO_T}Carbon GUI support" >&6 ;;
7075 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7076echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007077 SKIP_CARBON=YES ;;
7078 esac
7079
7080else
7081
Bram Moolenaar071d4272004-06-13 20:20:40 +00007082 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007083 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
7084echo "${ECHO_T}no GUI support" >&6 ;;
7085 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
7086echo "${ECHO_T}yes/auto - automatic GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007087 SKIP_GTK=
7088 SKIP_GTK2=
7089 SKIP_GNOME=
7090 SKIP_MOTIF=
7091 SKIP_ATHENA=
7092 SKIP_NEXTAW=
7093 SKIP_CARBON=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007094 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
7095echo "${ECHO_T}GTK+ 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007096 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007097 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
7098echo "${ECHO_T}GTK+ 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007099 SKIP_GTK=
7100 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007101 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
7102echo "${ECHO_T}GNOME 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007103 SKIP_GNOME=
7104 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007105 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
7106echo "${ECHO_T}GNOME 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007107 SKIP_GNOME=
7108 SKIP_GTK=
7109 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007110 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
7111echo "${ECHO_T}Motif GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007112 SKIP_MOTIF=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007113 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
7114echo "${ECHO_T}Athena GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007115 SKIP_ATHENA=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007116 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7117echo "${ECHO_T}neXtaw GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007118 SKIP_NEXTAW=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007119 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7120echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007121 esac
7122
7123fi
7124
7125if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007126 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7127echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007128 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7129if test "${enable_gtk_check+set}" = set; then
7130 enableval="$enable_gtk_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007131
Bram Moolenaar071d4272004-06-13 20:20:40 +00007132else
7133 enable_gtk_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007134fi;
7135 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7136echo "${ECHO_T}$enable_gtk_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007137 if test "x$enable_gtk_check" = "xno"; then
7138 SKIP_GTK=YES
7139 SKIP_GNOME=YES
7140 fi
7141fi
7142
7143if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7144 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007145 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7146echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007147 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7148if test "${enable_gtk2_check+set}" = set; then
7149 enableval="$enable_gtk2_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007150
Bram Moolenaar071d4272004-06-13 20:20:40 +00007151else
7152 enable_gtk2_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007153fi;
7154 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7155echo "${ECHO_T}$enable_gtk2_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007156 if test "x$enable_gtk2_check" = "xno"; then
7157 SKIP_GTK2=YES
7158 fi
7159fi
7160
7161if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7162 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007163 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7164echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007165 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7166if test "${enable_gnome_check+set}" = set; then
7167 enableval="$enable_gnome_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007168
Bram Moolenaar071d4272004-06-13 20:20:40 +00007169else
7170 enable_gnome_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007171fi;
7172 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7173echo "${ECHO_T}$enable_gnome_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007174 if test "x$enable_gnome_check" = "xno"; then
7175 SKIP_GNOME=YES
7176 fi
7177fi
7178
7179if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007180 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7181echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007182 # Check whether --enable-motif-check or --disable-motif-check was given.
7183if test "${enable_motif_check+set}" = set; then
7184 enableval="$enable_motif_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007185
Bram Moolenaar071d4272004-06-13 20:20:40 +00007186else
7187 enable_motif_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007188fi;
7189 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7190echo "${ECHO_T}$enable_motif_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007191 if test "x$enable_motif_check" = "xno"; then
7192 SKIP_MOTIF=YES
7193 fi
7194fi
7195
7196if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007197 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7198echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007199 # Check whether --enable-athena-check or --disable-athena-check was given.
7200if test "${enable_athena_check+set}" = set; then
7201 enableval="$enable_athena_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007202
Bram Moolenaar071d4272004-06-13 20:20:40 +00007203else
7204 enable_athena_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007205fi;
7206 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7207echo "${ECHO_T}$enable_athena_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007208 if test "x$enable_athena_check" = "xno"; then
7209 SKIP_ATHENA=YES
7210 fi
7211fi
7212
7213if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007214 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7215echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007216 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7217if test "${enable_nextaw_check+set}" = set; then
7218 enableval="$enable_nextaw_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007219
Bram Moolenaar071d4272004-06-13 20:20:40 +00007220else
7221 enable_nextaw_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007222fi;
7223 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7224echo "${ECHO_T}$enable_nextaw_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007225 if test "x$enable_nextaw_check" = "xno"; then
7226 SKIP_NEXTAW=YES
7227 fi
7228fi
7229
7230if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007231 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7232echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007233 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7234if test "${enable_carbon_check+set}" = set; then
7235 enableval="$enable_carbon_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007236
Bram Moolenaar071d4272004-06-13 20:20:40 +00007237else
7238 enable_carbon_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007239fi;
7240 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7241echo "${ECHO_T}$enable_carbon_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007242 if test "x$enable_carbon_check" = "xno"; then
7243 SKIP_CARBON=YES
7244 fi
7245fi
7246
Bram Moolenaar843ee412004-06-30 16:16:41 +00007247
Bram Moolenaar071d4272004-06-13 20:20:40 +00007248if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007249 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
7250echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
7251 echo "$as_me:$LINENO: result: yes" >&5
7252echo "${ECHO_T}yes" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007253 GUITYPE=CARBONGUI
Bram Moolenaare344bea2005-09-01 20:46:49 +00007254 if test "$VIMNAME" = "vim"; then
7255 VIMNAME=Vim
7256 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007257 SKIP_GTK=YES;
7258 SKIP_GTK2=YES;
7259 SKIP_GNOME=YES;
7260 SKIP_MOTIF=YES;
7261 SKIP_ATHENA=YES;
7262 SKIP_NEXTAW=YES;
7263 SKIP_PHOTON=YES;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007264 SKIP_CARBON=YES
7265fi
7266
7267
7268
7269
7270
7271
7272
7273
7274
Bram Moolenaar071d4272004-06-13 20:20:40 +00007275if test -z "$SKIP_GTK"; then
7276
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007277 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
7278echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
7279
7280# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007281if test "${with_gtk_prefix+set}" = set; then
7282 withval="$with_gtk_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007283 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7284echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007285else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007286 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6
7288fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007289
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007290 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
7291echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007292
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007293# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007294if test "${with_gtk_exec_prefix+set}" = set; then
7295 withval="$with_gtk_exec_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007296 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
7297echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007298else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007299 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6
7301fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007302
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007303 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
7304echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007305 # Check whether --enable-gtktest or --disable-gtktest was given.
7306if test "${enable_gtktest+set}" = set; then
7307 enableval="$enable_gtktest"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007308
Bram Moolenaar071d4272004-06-13 20:20:40 +00007309else
7310 enable_gtktest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007311fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007312 if test "x$enable_gtktest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007313 echo "$as_me:$LINENO: result: gtk test enabled" >&5
7314echo "${ECHO_T}gtk test enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007315 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007316 echo "$as_me:$LINENO: result: gtk test disabled" >&5
7317echo "${ECHO_T}gtk test disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007318 fi
7319
7320 if test "x$gtk_config_prefix" != "x" ; then
7321 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7322 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7323 fi
7324 if test "x$gtk_config_exec_prefix" != "x" ; then
7325 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7326 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7327 fi
7328 if test "X$GTK_CONFIG" = "X"; then
7329 # Extract the first word of "gtk-config", so it can be a program name with args.
7330set dummy gtk-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007331echo "$as_me:$LINENO: checking for $ac_word" >&5
7332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7333if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007335else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007336 case $GTK_CONFIG in
7337 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007338 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7339 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007340 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342for as_dir in $PATH
7343do
7344 IFS=$as_save_IFS
7345 test -z "$as_dir" && as_dir=.
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 break 2
7351 fi
7352done
7353done
7354
Bram Moolenaar071d4272004-06-13 20:20:40 +00007355 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7356 ;;
7357esac
7358fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007359GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7360
Bram Moolenaar071d4272004-06-13 20:20:40 +00007361if test -n "$GTK_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007362 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7363echo "${ECHO_T}$GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007364else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007365 echo "$as_me:$LINENO: result: no" >&5
7366echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007367fi
7368
7369 if test "X$GTK_CONFIG" = "Xno"; then
7370 # Extract the first word of "gtk12-config", so it can be a program name with args.
7371set dummy gtk12-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007372echo "$as_me:$LINENO: checking for $ac_word" >&5
7373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7374if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007376else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007377 case $GTK12_CONFIG in
7378 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007379 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
7380 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007381 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7389 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393done
7394done
7395
Bram Moolenaar071d4272004-06-13 20:20:40 +00007396 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
7397 ;;
7398esac
7399fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007400GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
7401
Bram Moolenaar071d4272004-06-13 20:20:40 +00007402if test -n "$GTK12_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007403 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
7404echo "${ECHO_T}$GTK12_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007405else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007406 echo "$as_me:$LINENO: result: no" >&5
7407echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007408fi
7409
7410 GTK_CONFIG="$GTK12_CONFIG"
7411 fi
7412 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007413 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
7414echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007415 fi
7416 if test "X$PKG_CONFIG" = "X"; then
7417 # Extract the first word of "pkg-config", so it can be a program name with args.
7418set dummy pkg-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007419echo "$as_me:$LINENO: checking for $ac_word" >&5
7420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7421if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007423else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007424 case $PKG_CONFIG in
7425 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007426 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7427 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007428 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7438 break 2
7439 fi
7440done
7441done
7442
Bram Moolenaar071d4272004-06-13 20:20:40 +00007443 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7444 ;;
7445esac
7446fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007447PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7448
Bram Moolenaar071d4272004-06-13 20:20:40 +00007449if test -n "$PKG_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007450 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7451echo "${ECHO_T}$PKG_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007452else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007453 echo "$as_me:$LINENO: result: no" >&5
7454echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007455fi
7456
7457 fi
7458
7459 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
7460 if test "X$SKIP_GTK2" != "XYES"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007461
Bram Moolenaar071d4272004-06-13 20:20:40 +00007462 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7463 {
7464 min_gtk_version=2.2.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007465 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7466echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007467 no_gtk=""
7468 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7469 && $PKG_CONFIG --exists gtk+-2.0; then
7470 {
7471 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007472 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007473 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7474 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7475 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7476 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7477 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7478 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7479 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7480 }
7481 elif test "X$GTK_CONFIG" != "Xno"; then
7482 {
7483 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007484 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007485 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7486 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7487 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7488 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7489 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7490 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7491 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7492 }
7493 else
7494 no_gtk=yes
7495 fi
7496
7497 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7498 {
7499 ac_save_CFLAGS="$CFLAGS"
7500 ac_save_LIBS="$LIBS"
7501 CFLAGS="$CFLAGS $GTK_CFLAGS"
7502 LIBS="$LIBS $GTK_LIBS"
7503
7504 rm -f conf.gtktest
7505 if test "$cross_compiling" = yes; then
7506 echo $ac_n "cross compiling; assumed OK... $ac_c"
7507else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007508 cat >conftest.$ac_ext <<_ACEOF
7509/* confdefs.h. */
7510_ACEOF
7511cat confdefs.h >>conftest.$ac_ext
7512cat >>conftest.$ac_ext <<_ACEOF
7513/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007514
7515#include <gtk/gtk.h>
7516#include <stdio.h>
7517
7518int
7519main ()
7520{
7521int major, minor, micro;
7522char *tmp_version;
7523
7524system ("touch conf.gtktest");
7525
7526/* HP/UX 9 (%@#!) writes to sscanf strings */
7527tmp_version = g_strdup("$min_gtk_version");
7528if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7529 printf("%s, bad version string\n", "$min_gtk_version");
7530 exit(1);
7531 }
7532
7533if ((gtk_major_version > major) ||
7534 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7535 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7536 (gtk_micro_version >= micro)))
7537{
7538 return 0;
7539}
7540return 1;
7541}
7542
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007543_ACEOF
7544rm -f conftest$ac_exeext
7545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7546 (eval $ac_link) 2>&5
7547 ac_status=$?
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551 (eval $ac_try) 2>&5
7552 ac_status=$?
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007555 :
7556else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007557 echo "$as_me: program exited with status $ac_status" >&5
7558echo "$as_me: failed program was:" >&5
7559sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007560
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007561( exit $ac_status )
7562no_gtk=yes
7563fi
7564rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7565fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007566 CFLAGS="$ac_save_CFLAGS"
7567 LIBS="$ac_save_LIBS"
7568 }
7569 fi
7570 if test "x$no_gtk" = x ; then
7571 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007572 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7573echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007574 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007575 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7576echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007577 fi
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007578 GUI_LIB_LOC="$GTK_LIBDIR"
7579 GTK_LIBNAME="$GTK_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00007580 GUI_INC_LOC="$GTK_CFLAGS"
7581 else
7582 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007583 echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007585 GTK_CFLAGS=""
7586 GTK_LIBS=""
7587 :
7588 }
7589 fi
7590 }
7591 else
7592 GTK_CFLAGS=""
7593 GTK_LIBS=""
7594 :
7595 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007596
7597
Bram Moolenaar071d4272004-06-13 20:20:40 +00007598 rm -f conf.gtktest
7599
7600 if test "x$GTK_CFLAGS" != "x"; then
7601 SKIP_ATHENA=YES
7602 SKIP_NEXTAW=YES
7603 SKIP_MOTIF=YES
7604 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007605
Bram Moolenaar071d4272004-06-13 20:20:40 +00007606 fi
7607 fi
7608
7609 if test "x$GUITYPE" != "xGTK"; then
7610 SKIP_GTK2=YES
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007611
Bram Moolenaar071d4272004-06-13 20:20:40 +00007612 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
7613 {
7614 min_gtk_version=1.1.16
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007615 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7616echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007617 no_gtk=""
7618 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
7619 && $PKG_CONFIG --exists gtk+-2.0; then
7620 {
7621 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007622 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00007623 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
7624 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7625 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7626 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7627 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7628 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7629 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7630 }
7631 elif test "X$GTK_CONFIG" != "Xno"; then
7632 {
7633 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00007634 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00007635 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7636 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7637 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
7638 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7639 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
7640 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7641 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
7642 }
7643 else
7644 no_gtk=yes
7645 fi
7646
7647 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
7648 {
7649 ac_save_CFLAGS="$CFLAGS"
7650 ac_save_LIBS="$LIBS"
7651 CFLAGS="$CFLAGS $GTK_CFLAGS"
7652 LIBS="$LIBS $GTK_LIBS"
7653
7654 rm -f conf.gtktest
7655 if test "$cross_compiling" = yes; then
7656 echo $ac_n "cross compiling; assumed OK... $ac_c"
7657else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007658 cat >conftest.$ac_ext <<_ACEOF
7659/* confdefs.h. */
7660_ACEOF
7661cat confdefs.h >>conftest.$ac_ext
7662cat >>conftest.$ac_ext <<_ACEOF
7663/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00007664
7665#include <gtk/gtk.h>
7666#include <stdio.h>
7667
7668int
7669main ()
7670{
7671int major, minor, micro;
7672char *tmp_version;
7673
7674system ("touch conf.gtktest");
7675
7676/* HP/UX 9 (%@#!) writes to sscanf strings */
7677tmp_version = g_strdup("$min_gtk_version");
7678if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7679 printf("%s, bad version string\n", "$min_gtk_version");
7680 exit(1);
7681 }
7682
7683if ((gtk_major_version > major) ||
7684 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7685 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
7686 (gtk_micro_version >= micro)))
7687{
7688 return 0;
7689}
7690return 1;
7691}
7692
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007693_ACEOF
7694rm -f conftest$ac_exeext
7695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7696 (eval $ac_link) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00007705 :
7706else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007707 echo "$as_me: program exited with status $ac_status" >&5
7708echo "$as_me: failed program was:" >&5
7709sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00007710
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007711( exit $ac_status )
7712no_gtk=yes
7713fi
7714rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7715fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00007716 CFLAGS="$ac_save_CFLAGS"
7717 LIBS="$ac_save_LIBS"
7718 }
7719 fi
7720 if test "x$no_gtk" = x ; then
7721 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007722 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7723echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007724 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007725 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
7726echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007727 fi
7728 GTK_LIBNAME="$GTK_LIBS"
7729 GUI_INC_LOC="$GTK_CFLAGS"
7730 else
7731 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007732 echo "$as_me:$LINENO: result: no" >&5
7733echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007734 GTK_CFLAGS=""
7735 GTK_LIBS=""
7736 :
7737 }
7738 fi
7739 }
7740 else
7741 GTK_CFLAGS=""
7742 GTK_LIBS=""
7743 :
7744 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007745
7746
Bram Moolenaar071d4272004-06-13 20:20:40 +00007747 rm -f conf.gtktest
7748
7749 if test "x$GTK_CFLAGS" != "x"; then
7750 SKIP_ATHENA=YES
7751 SKIP_NEXTAW=YES
7752 SKIP_MOTIF=YES
7753 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007754
Bram Moolenaar071d4272004-06-13 20:20:40 +00007755 fi
7756 fi
7757 fi
7758 if test "x$GUITYPE" = "xGTK"; then
7759 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
7760 -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 +00007761 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
7762echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007763 else
7764 {
7765 if test "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007766 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007767#define HAVE_GTK2 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007768_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007769
7770 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
7771 || test "0$gtk_minor_version" -ge 2 \
7772 || test "0$gtk_major_version" -gt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007773 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007774#define HAVE_GTK_MULTIHEAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007775_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007776
7777 fi
7778 fi
7779 if test -z "$SKIP_GNOME"; then
7780 {
Bram Moolenaar071d4272004-06-13 20:20:40 +00007781
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007782
7783
7784
7785
7786
7787# Check whether --with-gnome-includes or --without-gnome-includes was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007788if test "${with_gnome_includes+set}" = set; then
7789 withval="$with_gnome_includes"
7790 CFLAGS="$CFLAGS -I$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007791
7792fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007793
7794
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007795# Check whether --with-gnome-libs or --without-gnome-libs was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007796if test "${with_gnome_libs+set}" = set; then
7797 withval="$with_gnome_libs"
7798 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007799
7800fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007801
7802
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007803# Check whether --with-gnome or --without-gnome was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007804if test "${with_gnome+set}" = set; then
7805 withval="$with_gnome"
7806 if test x$withval = xyes; then
7807 want_gnome=yes
7808 have_gnome=yes
7809 else
7810 if test "x$withval" = xno; then
7811 want_gnome=no
7812 else
7813 want_gnome=yes
7814 LDFLAGS="$LDFLAGS -L$withval/lib"
7815 CFLAGS="$CFLAGS -I$withval/include"
7816 gnome_prefix=$withval/lib
7817 fi
7818 fi
7819else
7820 want_gnome=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007821fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007822
7823 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
7824 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007825 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
7826echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007827 if $PKG_CONFIG --exists libgnomeui-2.0; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007828 echo "$as_me:$LINENO: result: yes" >&5
7829echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007830 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
7831 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
7832 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
7833 have_gnome=yes
7834 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007835 echo "$as_me:$LINENO: result: not found" >&5
7836echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007837 if test "x" = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007838 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
7839echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
7840 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007841 fi
7842 fi
7843 }
7844 elif test "x$want_gnome" = xyes; then
7845 {
7846 # Extract the first word of "gnome-config", so it can be a program name with args.
7847set dummy gnome-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007848echo "$as_me:$LINENO: checking for $ac_word" >&5
7849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7850if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007852else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007853 case $GNOME_CONFIG in
7854 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00007855 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
7856 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007857 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859for as_dir in $PATH
7860do
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
7864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7868 fi
7869done
7870done
7871
Bram Moolenaar071d4272004-06-13 20:20:40 +00007872 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
7873 ;;
7874esac
7875fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007876GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
7877
Bram Moolenaar071d4272004-06-13 20:20:40 +00007878if test -n "$GNOME_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007879 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
7880echo "${ECHO_T}$GNOME_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007881else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007882 echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007884fi
7885
7886 if test "$GNOME_CONFIG" = "no"; then
7887 no_gnome_config="yes"
7888 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007889 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
7890echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007891 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007892 echo "$as_me:$LINENO: result: yes" >&5
7893echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007894 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
7895 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
7896 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
7897 have_gnome=yes
7898 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007899 echo "$as_me:$LINENO: result: no" >&5
7900echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007901 no_gnome_config="yes"
7902 fi
7903 fi
7904
7905 if test x$exec_prefix = xNONE; then
7906 if test x$prefix = xNONE; then
7907 gnome_prefix=$ac_default_prefix/lib
7908 else
7909 gnome_prefix=$prefix/lib
7910 fi
7911 else
7912 gnome_prefix=`eval echo \`echo $libdir\``
7913 fi
7914
7915 if test "$no_gnome_config" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007916 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
7917echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007918 if test -f $gnome_prefix/gnomeConf.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007919 echo "$as_me:$LINENO: result: found" >&5
7920echo "${ECHO_T}found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007921 echo "loading gnome configuration from" \
7922 "$gnome_prefix/gnomeConf.sh"
7923 . $gnome_prefix/gnomeConf.sh
7924 have_gnome=yes
7925 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007926 echo "$as_me:$LINENO: result: not found" >&5
7927echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007928 if test x = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007929 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
7930echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
7931 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00007932 fi
7933 fi
7934 fi
7935 }
7936 fi
7937
7938 if test x$have_gnome = xyes ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007939 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007940#define FEAT_GUI_GNOME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007941_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00007942
7943 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
7944 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
7945 fi
7946 }
7947 fi
7948 }
7949 fi
7950 fi
7951fi
7952
7953
7954if test -z "$SKIP_MOTIF"; then
7955 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"
7956 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
7957
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007958 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
7959echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007960 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
7961 GUI_INC_LOC=
7962 for try in $gui_includes; do
7963 if test -f "$try/Xm/Xm.h"; then
7964 GUI_INC_LOC=$try
7965 fi
7966 done
7967 if test -n "$GUI_INC_LOC"; then
7968 if test "$GUI_INC_LOC" = /usr/include; then
7969 GUI_INC_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007970 echo "$as_me:$LINENO: result: in default path" >&5
7971echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007972 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007973 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
7974echo "${ECHO_T}$GUI_INC_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007975 fi
7976 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007977 echo "$as_me:$LINENO: result: <not found>" >&5
7978echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007979 SKIP_MOTIF=YES
7980 fi
7981fi
7982
7983
7984if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007985 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
7986echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
7987
7988# Check whether --with-motif-lib or --without-motif-lib was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00007989if test "${with_motif_lib+set}" = set; then
7990 withval="$with_motif_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007991 MOTIF_LIBNAME="${withval}"
7992fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007993
7994 if test -n "$MOTIF_LIBNAME"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007995 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
7996echo "${ECHO_T}$MOTIF_LIBNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007997 GUI_LIB_LOC=
7998 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007999 echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008001
8002 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8003
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008004 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8005echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008006 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"
8007 GUI_LIB_LOC=
8008 for try in $gui_libs; do
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008009 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
Bram Moolenaar071d4272004-06-13 20:20:40 +00008010 if test -f "$libtry"; then
8011 GUI_LIB_LOC=$try
8012 fi
8013 done
8014 done
8015 if test -n "$GUI_LIB_LOC"; then
8016 if test "$GUI_LIB_LOC" = /usr/lib; then
8017 GUI_LIB_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008018 echo "$as_me:$LINENO: result: in default path" >&5
8019echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008020 else
8021 if test -n "$GUI_LIB_LOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008022 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8023echo "${ECHO_T}$GUI_LIB_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008024 if test "`(uname) 2>/dev/null`" = SunOS &&
8025 uname -r | grep '^5' >/dev/null; then
8026 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8027 fi
8028 fi
8029 fi
8030 MOTIF_LIBNAME=-lXm
8031 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008032 echo "$as_me:$LINENO: result: <not found>" >&5
8033echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008034 SKIP_MOTIF=YES
8035 fi
8036 fi
8037fi
8038
8039if test -z "$SKIP_MOTIF"; then
8040 SKIP_ATHENA=YES
8041 SKIP_NEXTAW=YES
8042 GUITYPE=MOTIF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008043
Bram Moolenaar071d4272004-06-13 20:20:40 +00008044fi
8045
8046
8047GUI_X_LIBS=
8048
8049if test -z "$SKIP_ATHENA"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008050 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8051echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008052 cflags_save=$CFLAGS
8053 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008054 cat >conftest.$ac_ext <<_ACEOF
8055/* confdefs.h. */
8056_ACEOF
8057cat confdefs.h >>conftest.$ac_ext
8058cat >>conftest.$ac_ext <<_ACEOF
8059/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008060
8061#include <X11/Intrinsic.h>
8062#include <X11/Xaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008063int
8064main ()
8065{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008066
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008067 ;
8068 return 0;
8069}
8070_ACEOF
8071rm -f conftest.$ac_objext
8072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8073 (eval $ac_compile) 2>conftest.er1
8074 ac_status=$?
8075 grep -v '^ *+' conftest.er1 >conftest.err
8076 rm -f conftest.er1
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } &&
8080 { ac_try='test -z "$ac_c_werror_flag"
8081 || test ! -s conftest.err'
8082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8083 (eval $ac_try) 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; } &&
8087 { ac_try='test -s conftest.$ac_objext'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; }; then
8093 echo "$as_me:$LINENO: result: yes" >&5
8094echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008095else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008096 echo "$as_me: failed program was:" >&5
8097sed 's/^/| /' conftest.$ac_ext >&5
8098
8099echo "$as_me:$LINENO: result: no" >&5
8100echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008101fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008103 CFLAGS=$cflags_save
8104fi
8105
8106if test -z "$SKIP_ATHENA"; then
8107 GUITYPE=ATHENA
8108fi
8109
8110if test -z "$SKIP_NEXTAW"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008111 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8112echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008113 cflags_save=$CFLAGS
8114 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008115 cat >conftest.$ac_ext <<_ACEOF
8116/* confdefs.h. */
8117_ACEOF
8118cat confdefs.h >>conftest.$ac_ext
8119cat >>conftest.$ac_ext <<_ACEOF
8120/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008121
8122#include <X11/Intrinsic.h>
8123#include <X11/neXtaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008124int
8125main ()
8126{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008127
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008128 ;
8129 return 0;
8130}
8131_ACEOF
8132rm -f conftest.$ac_objext
8133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8134 (eval $ac_compile) 2>conftest.er1
8135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } &&
8141 { ac_try='test -z "$ac_c_werror_flag"
8142 || test ! -s conftest.err'
8143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144 (eval $ac_try) 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; } &&
8148 { ac_try='test -s conftest.$ac_objext'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 (eval $ac_try) 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; }; then
8154 echo "$as_me:$LINENO: result: yes" >&5
8155echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008156else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008157 echo "$as_me: failed program was:" >&5
8158sed 's/^/| /' conftest.$ac_ext >&5
8159
8160echo "$as_me:$LINENO: result: no" >&5
8161echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008162fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008164 CFLAGS=$cflags_save
8165fi
8166
8167if test -z "$SKIP_NEXTAW"; then
8168 GUITYPE=NEXTAW
8169fi
8170
8171if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8172 if test -n "$GUI_INC_LOC"; then
8173 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
8174 fi
8175 if test -n "$GUI_LIB_LOC"; then
8176 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
8177 fi
8178
8179 ldflags_save=$LDFLAGS
8180 LDFLAGS="$X_LIBS $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008181 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8182echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
8183if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008185else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008186 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008187LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008188cat >conftest.$ac_ext <<_ACEOF
8189/* confdefs.h. */
8190_ACEOF
8191cat confdefs.h >>conftest.$ac_ext
8192cat >>conftest.$ac_ext <<_ACEOF
8193/* end confdefs.h. */
8194
Bram Moolenaar071d4272004-06-13 20:20:40 +00008195/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008196#ifdef __cplusplus
8197extern "C"
8198#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008199/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008200 builtin and then its argument prototype would still apply. */
8201char XShapeQueryExtension ();
8202int
8203main ()
8204{
8205XShapeQueryExtension ();
8206 ;
8207 return 0;
8208}
8209_ACEOF
8210rm -f conftest.$ac_objext conftest$ac_exeext
8211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8212 (eval $ac_link) 2>conftest.er1
8213 ac_status=$?
8214 grep -v '^ *+' conftest.er1 >conftest.err
8215 rm -f conftest.er1
8216 cat conftest.err >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } &&
8219 { ac_try='test -z "$ac_c_werror_flag"
8220 || test ! -s conftest.err'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; } &&
8226 { ac_try='test -s conftest$ac_exeext'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 (eval $ac_try) 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8232 ac_cv_lib_Xext_XShapeQueryExtension=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008233else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008234 echo "$as_me: failed program was:" >&5
8235sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008236
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008237ac_cv_lib_Xext_XShapeQueryExtension=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008238fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008239rm -f conftest.err conftest.$ac_objext \
8240 conftest$ac_exeext conftest.$ac_ext
8241LIBS=$ac_check_lib_save_LIBS
8242fi
8243echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8244echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
8245if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008246 GUI_X_LIBS="-lXext"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008247fi
8248
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008249 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
8250echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
8251if test "${ac_cv_lib_w_wslen+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008253else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008254 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008255LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008256cat >conftest.$ac_ext <<_ACEOF
8257/* confdefs.h. */
8258_ACEOF
8259cat confdefs.h >>conftest.$ac_ext
8260cat >>conftest.$ac_ext <<_ACEOF
8261/* end confdefs.h. */
8262
Bram Moolenaar071d4272004-06-13 20:20:40 +00008263/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008264#ifdef __cplusplus
8265extern "C"
8266#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008267/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008268 builtin and then its argument prototype would still apply. */
8269char wslen ();
8270int
8271main ()
8272{
8273wslen ();
8274 ;
8275 return 0;
8276}
8277_ACEOF
8278rm -f conftest.$ac_objext conftest$ac_exeext
8279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try='test -z "$ac_c_werror_flag"
8288 || test ! -s conftest.err'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; } &&
8294 { ac_try='test -s conftest$ac_exeext'
8295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 (eval $ac_try) 2>&5
8297 ac_status=$?
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); }; }; then
8300 ac_cv_lib_w_wslen=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008301else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008302 echo "$as_me: failed program was:" >&5
8303sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008304
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008305ac_cv_lib_w_wslen=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008306fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008307rm -f conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309LIBS=$ac_check_lib_save_LIBS
8310fi
8311echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
8312echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
8313if test $ac_cv_lib_w_wslen = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008314 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008315fi
8316
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008317 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
8318echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
8319if test "${ac_cv_lib_dl_dlsym+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008321else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008322 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008323LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008324cat >conftest.$ac_ext <<_ACEOF
8325/* confdefs.h. */
8326_ACEOF
8327cat confdefs.h >>conftest.$ac_ext
8328cat >>conftest.$ac_ext <<_ACEOF
8329/* end confdefs.h. */
8330
Bram Moolenaar071d4272004-06-13 20:20:40 +00008331/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008332#ifdef __cplusplus
8333extern "C"
8334#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008335/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008336 builtin and then its argument prototype would still apply. */
8337char dlsym ();
8338int
8339main ()
8340{
8341dlsym ();
8342 ;
8343 return 0;
8344}
8345_ACEOF
8346rm -f conftest.$ac_objext conftest$ac_exeext
8347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8348 (eval $ac_link) 2>conftest.er1
8349 ac_status=$?
8350 grep -v '^ *+' conftest.er1 >conftest.err
8351 rm -f conftest.er1
8352 cat conftest.err >&5
8353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354 (exit $ac_status); } &&
8355 { ac_try='test -z "$ac_c_werror_flag"
8356 || test ! -s conftest.err'
8357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358 (eval $ac_try) 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } &&
8362 { ac_try='test -s conftest$ac_exeext'
8363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8364 (eval $ac_try) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
8368 ac_cv_lib_dl_dlsym=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008369else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008370 echo "$as_me: failed program was:" >&5
8371sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008372
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008373ac_cv_lib_dl_dlsym=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008374fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008375rm -f conftest.err conftest.$ac_objext \
8376 conftest$ac_exeext conftest.$ac_ext
8377LIBS=$ac_check_lib_save_LIBS
8378fi
8379echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
8380echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
8381if test $ac_cv_lib_dl_dlsym = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008382 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008383fi
8384
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008385 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
8386echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
8387if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008389else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008390 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008391LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008392cat >conftest.$ac_ext <<_ACEOF
8393/* confdefs.h. */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h. */
8398
Bram Moolenaar071d4272004-06-13 20:20:40 +00008399/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008400#ifdef __cplusplus
8401extern "C"
8402#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008403/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008404 builtin and then its argument prototype would still apply. */
8405char XmuCreateStippledPixmap ();
8406int
8407main ()
8408{
8409XmuCreateStippledPixmap ();
8410 ;
8411 return 0;
8412}
8413_ACEOF
8414rm -f conftest.$ac_objext conftest$ac_exeext
8415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>conftest.er1
8417 ac_status=$?
8418 grep -v '^ *+' conftest.er1 >conftest.err
8419 rm -f conftest.er1
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag"
8424 || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426 (eval $ac_try) 2>&5
8427 ac_status=$?
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432 (eval $ac_try) 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008437else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008438 echo "$as_me: failed program was:" >&5
8439sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008440
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008441ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008442fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008443rm -f conftest.err conftest.$ac_objext \
8444 conftest$ac_exeext conftest.$ac_ext
8445LIBS=$ac_check_lib_save_LIBS
8446fi
8447echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
8448echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
8449if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008450 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008451fi
8452
8453 if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008454 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
8455echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
8456if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008458else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008459 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00008460LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008461cat >conftest.$ac_ext <<_ACEOF
8462/* confdefs.h. */
8463_ACEOF
8464cat confdefs.h >>conftest.$ac_ext
8465cat >>conftest.$ac_ext <<_ACEOF
8466/* end confdefs.h. */
8467
Bram Moolenaar071d4272004-06-13 20:20:40 +00008468/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008469#ifdef __cplusplus
8470extern "C"
8471#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00008472/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008473 builtin and then its argument prototype would still apply. */
8474char XpEndJob ();
8475int
8476main ()
8477{
8478XpEndJob ();
8479 ;
8480 return 0;
8481}
8482_ACEOF
8483rm -f conftest.$ac_objext conftest$ac_exeext
8484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485 (eval $ac_link) 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag"
8493 || test ! -s conftest.err'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 (eval $ac_try) 2>&5
8496 ac_status=$?
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; } &&
8499 { ac_try='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_cv_lib_Xp_XpEndJob=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00008506else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008507 echo "$as_me: failed program was:" >&5
8508sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008509
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008510ac_cv_lib_Xp_XpEndJob=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008511fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008512rm -f conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
8514LIBS=$ac_check_lib_save_LIBS
8515fi
8516echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
8517echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
8518if test $ac_cv_lib_Xp_XpEndJob = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008519 GUI_X_LIBS="-lXp $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008520fi
8521
8522 fi
8523 LDFLAGS=$ldflags_save
8524
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008525 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
8526echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008527 NARROW_PROTO=
8528 rm -fr conftestdir
8529 if mkdir conftestdir; then
8530 cd conftestdir
8531 cat > Imakefile <<'EOF'
8532acfindx:
8533 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
8534EOF
8535 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8536 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8537 fi
8538 cd ..
8539 rm -fr conftestdir
8540 fi
8541 if test -z "$NARROW_PROTO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008542 echo "$as_me:$LINENO: result: no" >&5
8543echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008544 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008545 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
8546echo "${ECHO_T}$NARROW_PROTO" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008547 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008548
Bram Moolenaar071d4272004-06-13 20:20:40 +00008549fi
8550
8551if test "$enable_xsmp" = "yes"; then
8552 cppflags_save=$CPPFLAGS
8553 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008554
8555for ac_header in X11/SM/SMlib.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008556do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8558if eval "test \"\${$as_ac_Header+set}\" = set"; then
8559 echo "$as_me:$LINENO: checking for $ac_header" >&5
8560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8561if eval "test \"\${$as_ac_Header+set}\" = set"; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008563fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008566else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008567 # Is the header compilable?
8568echo "$as_me:$LINENO: checking $ac_header usability" >&5
8569echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8570cat >conftest.$ac_ext <<_ACEOF
8571/* confdefs.h. */
8572_ACEOF
8573cat confdefs.h >>conftest.$ac_ext
8574cat >>conftest.$ac_ext <<_ACEOF
8575/* end confdefs.h. */
8576$ac_includes_default
8577#include <$ac_header>
8578_ACEOF
8579rm -f conftest.$ac_objext
8580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8581 (eval $ac_compile) 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag"
8589 || test ! -s conftest.err'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest.$ac_objext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_header_compiler=yes
8602else
8603 echo "$as_me: failed program was:" >&5
8604sed 's/^/| /' conftest.$ac_ext >&5
8605
8606ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008607fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8609echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8610echo "${ECHO_T}$ac_header_compiler" >&6
8611
8612# Is the header present?
8613echo "$as_me:$LINENO: checking $ac_header presence" >&5
8614echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8615cat >conftest.$ac_ext <<_ACEOF
8616/* confdefs.h. */
8617_ACEOF
8618cat confdefs.h >>conftest.$ac_ext
8619cat >>conftest.$ac_ext <<_ACEOF
8620/* end confdefs.h. */
8621#include <$ac_header>
8622_ACEOF
8623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8625 ac_status=$?
8626 grep -v '^ *+' conftest.er1 >conftest.err
8627 rm -f conftest.er1
8628 cat conftest.err >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } >/dev/null; then
8631 if test -s conftest.err; then
8632 ac_cpp_err=$ac_c_preproc_warn_flag
8633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8634 else
8635 ac_cpp_err=
8636 fi
8637else
8638 ac_cpp_err=yes
8639fi
8640if test -z "$ac_cpp_err"; then
8641 ac_header_preproc=yes
8642else
8643 echo "$as_me: failed program was:" >&5
8644sed 's/^/| /' conftest.$ac_ext >&5
8645
8646 ac_header_preproc=no
8647fi
8648rm -f conftest.err conftest.$ac_ext
8649echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8650echo "${ECHO_T}$ac_header_preproc" >&6
8651
8652# So? What about this header?
8653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8654 yes:no: )
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8656echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8658echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8659 ac_header_preproc=yes
8660 ;;
8661 no:yes:* )
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8663echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8665echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8667echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8669echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8673echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8674 (
8675 cat <<\_ASBOX
8676## ------------------------------------------ ##
8677## Report this to the AC_PACKAGE_NAME lists. ##
8678## ------------------------------------------ ##
8679_ASBOX
8680 ) |
8681 sed "s/^/$as_me: WARNING: /" >&2
8682 ;;
8683esac
8684echo "$as_me:$LINENO: checking for $ac_header" >&5
8685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8686if eval "test \"\${$as_ac_Header+set}\" = set"; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688else
8689 eval "$as_ac_Header=\$ac_header_preproc"
8690fi
8691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8693
8694fi
8695if test `eval echo '${'$as_ac_Header'}'` = yes; then
8696 cat >>confdefs.h <<_ACEOF
8697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8698_ACEOF
8699
8700fi
8701
Bram Moolenaar071d4272004-06-13 20:20:40 +00008702done
8703
8704 CPPFLAGS=$cppflags_save
8705fi
8706
8707
8708if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
8709 cppflags_save=$CPPFLAGS
8710 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008711
8712
8713for ac_header in X11/xpm.h X11/Sunkeysym.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008714do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8716if eval "test \"\${$as_ac_Header+set}\" = set"; then
8717 echo "$as_me:$LINENO: checking for $ac_header" >&5
8718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8719if eval "test \"\${$as_ac_Header+set}\" = set"; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008721fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008724else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008725 # Is the header compilable?
8726echo "$as_me:$LINENO: checking $ac_header usability" >&5
8727echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8728cat >conftest.$ac_ext <<_ACEOF
8729/* confdefs.h. */
8730_ACEOF
8731cat confdefs.h >>conftest.$ac_ext
8732cat >>conftest.$ac_ext <<_ACEOF
8733/* end confdefs.h. */
8734$ac_includes_default
8735#include <$ac_header>
8736_ACEOF
8737rm -f conftest.$ac_objext
8738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8739 (eval $ac_compile) 2>conftest.er1
8740 ac_status=$?
8741 grep -v '^ *+' conftest.er1 >conftest.err
8742 rm -f conftest.er1
8743 cat conftest.err >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); } &&
8746 { ac_try='test -z "$ac_c_werror_flag"
8747 || test ! -s conftest.err'
8748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749 (eval $ac_try) 2>&5
8750 ac_status=$?
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; } &&
8753 { ac_try='test -s conftest.$ac_objext'
8754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755 (eval $ac_try) 2>&5
8756 ac_status=$?
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; }; then
8759 ac_header_compiler=yes
8760else
8761 echo "$as_me: failed program was:" >&5
8762sed 's/^/| /' conftest.$ac_ext >&5
8763
8764ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00008765fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8767echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8768echo "${ECHO_T}$ac_header_compiler" >&6
8769
8770# Is the header present?
8771echo "$as_me:$LINENO: checking $ac_header presence" >&5
8772echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8773cat >conftest.$ac_ext <<_ACEOF
8774/* confdefs.h. */
8775_ACEOF
8776cat confdefs.h >>conftest.$ac_ext
8777cat >>conftest.$ac_ext <<_ACEOF
8778/* end confdefs.h. */
8779#include <$ac_header>
8780_ACEOF
8781if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8783 ac_status=$?
8784 grep -v '^ *+' conftest.er1 >conftest.err
8785 rm -f conftest.er1
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } >/dev/null; then
8789 if test -s conftest.err; then
8790 ac_cpp_err=$ac_c_preproc_warn_flag
8791 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8792 else
8793 ac_cpp_err=
8794 fi
8795else
8796 ac_cpp_err=yes
8797fi
8798if test -z "$ac_cpp_err"; then
8799 ac_header_preproc=yes
8800else
8801 echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 ac_header_preproc=no
8805fi
8806rm -f conftest.err conftest.$ac_ext
8807echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8808echo "${ECHO_T}$ac_header_preproc" >&6
8809
8810# So? What about this header?
8811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8812 yes:no: )
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8814echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8816echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8817 ac_header_preproc=yes
8818 ;;
8819 no:yes:* )
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8825echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8827echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8831echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8832 (
8833 cat <<\_ASBOX
8834## ------------------------------------------ ##
8835## Report this to the AC_PACKAGE_NAME lists. ##
8836## ------------------------------------------ ##
8837_ASBOX
8838 ) |
8839 sed "s/^/$as_me: WARNING: /" >&2
8840 ;;
8841esac
8842echo "$as_me:$LINENO: checking for $ac_header" >&5
8843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8844if eval "test \"\${$as_ac_Header+set}\" = set"; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8846else
8847 eval "$as_ac_Header=\$ac_header_preproc"
8848fi
8849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8851
8852fi
8853if test `eval echo '${'$as_ac_Header'}'` = yes; then
8854 cat >>confdefs.h <<_ACEOF
8855#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8856_ACEOF
8857
8858fi
8859
Bram Moolenaar071d4272004-06-13 20:20:40 +00008860done
8861
8862
8863 if test ! "$enable_xim" = "no"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008864 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
8865echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
8866 cat >conftest.$ac_ext <<_ACEOF
8867/* confdefs.h. */
8868_ACEOF
8869cat confdefs.h >>conftest.$ac_ext
8870cat >>conftest.$ac_ext <<_ACEOF
8871/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008872#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008873_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008875 $EGREP "XIMText" >/dev/null 2>&1; then
8876 echo "$as_me:$LINENO: result: yes" >&5
8877echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008878else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008879 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
8880echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008881fi
8882rm -f conftest*
8883
8884 fi
8885 CPPFLAGS=$cppflags_save
8886
8887 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
8888 -a "x$GUITYPE" != "xNONE" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008889 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
8890echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008891 enable_xim="yes"
8892 fi
8893fi
8894
8895if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8896 cppflags_save=$CPPFLAGS
8897 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008898 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
8899echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
8900 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008901/* confdefs.h. */
8902_ACEOF
8903cat confdefs.h >>conftest.$ac_ext
8904cat >>conftest.$ac_ext <<_ACEOF
8905/* end confdefs.h. */
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008906
8907#include <X11/Intrinsic.h>
8908#include <X11/Xmu/Editres.h>
8909int
8910main ()
8911{
8912int i; i = 0;
8913 ;
8914 return 0;
8915}
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008916_ACEOF
8917rm -f conftest.$ac_objext
8918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8919 (eval $ac_compile) 2>conftest.er1
8920 ac_status=$?
8921 grep -v '^ *+' conftest.er1 >conftest.err
8922 rm -f conftest.er1
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag"
8927 || test ! -s conftest.err'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 (eval $ac_try) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; } &&
8933 { ac_try='test -s conftest.$ac_objext'
8934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8935 (eval $ac_try) 2>&5
8936 ac_status=$?
8937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938 (exit $ac_status); }; }; then
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008939 echo "$as_me:$LINENO: result: yes" >&5
8940echo "${ECHO_T}yes" >&6
8941 cat >>confdefs.h <<\_ACEOF
8942#define HAVE_X11_XMU_EDITRES_H 1
8943_ACEOF
8944
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008945else
8946 echo "$as_me: failed program was:" >&5
8947sed 's/^/| /' conftest.$ac_ext >&5
8948
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008949echo "$as_me:$LINENO: result: no" >&5
8950echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008951fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008953 CPPFLAGS=$cppflags_save
8954fi
8955
8956if test -z "$SKIP_MOTIF"; then
8957 cppflags_save=$CPPFLAGS
8958 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008959
8960
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00008961
8962
8963
8964
8965for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
8966 Xm/UnhighlightT.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00008967do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8969if eval "test \"\${$as_ac_Header+set}\" = set"; then
8970 echo "$as_me:$LINENO: checking for $ac_header" >&5
8971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8972if eval "test \"\${$as_ac_Header+set}\" = set"; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008974fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008977else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008978 # Is the header compilable?
8979echo "$as_me:$LINENO: checking $ac_header usability" >&5
8980echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8981cat >conftest.$ac_ext <<_ACEOF
8982/* confdefs.h. */
8983_ACEOF
8984cat confdefs.h >>conftest.$ac_ext
8985cat >>conftest.$ac_ext <<_ACEOF
8986/* end confdefs.h. */
8987$ac_includes_default
8988#include <$ac_header>
8989_ACEOF
8990rm -f conftest.$ac_objext
8991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8992 (eval $ac_compile) 2>conftest.er1
8993 ac_status=$?
8994 grep -v '^ *+' conftest.er1 >conftest.err
8995 rm -f conftest.er1
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } &&
8999 { ac_try='test -z "$ac_c_werror_flag"
9000 || test ! -s conftest.err'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 (eval $ac_try) 2>&5
9003 ac_status=$?
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; } &&
9006 { ac_try='test -s conftest.$ac_objext'
9007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008 (eval $ac_try) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; }; then
9012 ac_header_compiler=yes
9013else
9014 echo "$as_me: failed program was:" >&5
9015sed 's/^/| /' conftest.$ac_ext >&5
9016
9017ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009018fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9020echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9021echo "${ECHO_T}$ac_header_compiler" >&6
9022
9023# Is the header present?
9024echo "$as_me:$LINENO: checking $ac_header presence" >&5
9025echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9026cat >conftest.$ac_ext <<_ACEOF
9027/* confdefs.h. */
9028_ACEOF
9029cat confdefs.h >>conftest.$ac_ext
9030cat >>conftest.$ac_ext <<_ACEOF
9031/* end confdefs.h. */
9032#include <$ac_header>
9033_ACEOF
9034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9036 ac_status=$?
9037 grep -v '^ *+' conftest.er1 >conftest.err
9038 rm -f conftest.er1
9039 cat conftest.err >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } >/dev/null; then
9042 if test -s conftest.err; then
9043 ac_cpp_err=$ac_c_preproc_warn_flag
9044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9045 else
9046 ac_cpp_err=
9047 fi
9048else
9049 ac_cpp_err=yes
9050fi
9051if test -z "$ac_cpp_err"; then
9052 ac_header_preproc=yes
9053else
9054 echo "$as_me: failed program was:" >&5
9055sed 's/^/| /' conftest.$ac_ext >&5
9056
9057 ac_header_preproc=no
9058fi
9059rm -f conftest.err conftest.$ac_ext
9060echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9061echo "${ECHO_T}$ac_header_preproc" >&6
9062
9063# So? What about this header?
9064case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9065 yes:no: )
9066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9067echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9069echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9070 ac_header_preproc=yes
9071 ;;
9072 no:yes:* )
9073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9076echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9078echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9080echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9082echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9084echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9085 (
9086 cat <<\_ASBOX
9087## ------------------------------------------ ##
9088## Report this to the AC_PACKAGE_NAME lists. ##
9089## ------------------------------------------ ##
9090_ASBOX
9091 ) |
9092 sed "s/^/$as_me: WARNING: /" >&2
9093 ;;
9094esac
9095echo "$as_me:$LINENO: checking for $ac_header" >&5
9096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9097if eval "test \"\${$as_ac_Header+set}\" = set"; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9099else
9100 eval "$as_ac_Header=\$ac_header_preproc"
9101fi
9102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9104
9105fi
9106if test `eval echo '${'$as_ac_Header'}'` = yes; then
9107 cat >>confdefs.h <<_ACEOF
9108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9109_ACEOF
9110
9111fi
9112
Bram Moolenaar071d4272004-06-13 20:20:40 +00009113done
9114
9115 CPPFLAGS=$cppflags_save
9116fi
9117
9118if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009119 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9120echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009121 enable_xim="no"
9122fi
9123if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009124 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9125echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009126 enable_fontset="no"
9127fi
9128if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009129 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9130echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009131 enable_fontset="no"
9132fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00009133
9134if test -z "$SKIP_PHOTON"; then
9135 GUITYPE=PHOTONGUI
9136fi
9137
9138
9139
9140
9141
9142
9143if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009144 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9145echo "$as_me: error: cannot use workshop without Motif" >&2;}
9146 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009147fi
9148
9149if test "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009150 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009151#define FEAT_XIM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009152_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009153
9154fi
9155if test "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009156 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009157#define FEAT_XFONTSET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009158_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009159
9160fi
9161
9162
9163
9164
9165if test "$enable_hangulinput" = "yes"; then
9166 if test "x$GUITYPE" = "xNONE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009167 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9168echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009169 enable_hangulinput=no
9170 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009171 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009172#define FEAT_HANGULIN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009173_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009174
9175 HANGULIN_SRC=hangulin.c
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009176
Bram Moolenaar071d4272004-06-13 20:20:40 +00009177 HANGULIN_OBJ=objects/hangulin.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009178
Bram Moolenaar071d4272004-06-13 20:20:40 +00009179 fi
9180fi
9181
9182
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009183echo "$as_me:$LINENO: checking quality of toupper" >&5
9184echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009185if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009186 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
9187echo "$as_me: error: failed to compile test program" >&2;}
9188 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009189else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009190 cat >conftest.$ac_ext <<_ACEOF
9191/* confdefs.h. */
9192_ACEOF
9193cat confdefs.h >>conftest.$ac_ext
9194cat >>conftest.$ac_ext <<_ACEOF
9195/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009196#include <ctype.h>
9197main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009198_ACEOF
9199rm -f conftest$ac_exeext
9200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201 (eval $ac_link) 2>&5
9202 ac_status=$?
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009211#define BROKEN_TOUPPER 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009212_ACEOF
9213 echo "$as_me:$LINENO: result: bad" >&5
9214echo "${ECHO_T}bad" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009215else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009216 echo "$as_me: program exited with status $ac_status" >&5
9217echo "$as_me: failed program was:" >&5
9218sed 's/^/| /' conftest.$ac_ext >&5
9219
9220( exit $ac_status )
9221echo "$as_me:$LINENO: result: good" >&5
9222echo "${ECHO_T}good" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009223fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009224rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009225fi
9226
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009227echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
9228echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
9229cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009235
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009236int
9237main ()
9238{
Bram Moolenaar071d4272004-06-13 20:20:40 +00009239printf("(" __DATE__ " " __TIME__ ")");
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009240 ;
9241 return 0;
9242}
9243_ACEOF
9244rm -f conftest.$ac_objext
9245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9246 (eval $ac_compile) 2>conftest.er1
9247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } &&
9253 { ac_try='test -z "$ac_c_werror_flag"
9254 || test ! -s conftest.err'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 (eval $ac_try) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; } &&
9260 { ac_try='test -s conftest.$ac_objext'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 (eval $ac_try) 2>&5
9263 ac_status=$?
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; }; then
9266 echo "$as_me:$LINENO: result: yes" >&5
9267echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009268#define HAVE_DATE_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009269_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009270
9271else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009272 echo "$as_me: failed program was:" >&5
9273sed 's/^/| /' conftest.$ac_ext >&5
9274
9275echo "$as_me:$LINENO: result: no" >&5
9276echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009277fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009279
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009280if test "${ac_cv_header_elf_h+set}" = set; then
9281 echo "$as_me:$LINENO: checking for elf.h" >&5
9282echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9283if test "${ac_cv_header_elf_h+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285fi
9286echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9287echo "${ECHO_T}$ac_cv_header_elf_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009288else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009289 # Is the header compilable?
9290echo "$as_me:$LINENO: checking elf.h usability" >&5
9291echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
9292cat >conftest.$ac_ext <<_ACEOF
9293/* confdefs.h. */
9294_ACEOF
9295cat confdefs.h >>conftest.$ac_ext
9296cat >>conftest.$ac_ext <<_ACEOF
9297/* end confdefs.h. */
9298$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +00009299#include <elf.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009300_ACEOF
9301rm -f conftest.$ac_objext
9302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9303 (eval $ac_compile) 2>conftest.er1
9304 ac_status=$?
9305 grep -v '^ *+' conftest.er1 >conftest.err
9306 rm -f conftest.er1
9307 cat conftest.err >&5
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); } &&
9310 { ac_try='test -z "$ac_c_werror_flag"
9311 || test ! -s conftest.err'
9312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313 (eval $ac_try) 2>&5
9314 ac_status=$?
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); }; } &&
9317 { ac_try='test -s conftest.$ac_objext'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 (eval $ac_try) 2>&5
9320 ac_status=$?
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; }; then
9323 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009324else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009325 echo "$as_me: failed program was:" >&5
9326sed 's/^/| /' conftest.$ac_ext >&5
9327
9328ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009329fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9332echo "${ECHO_T}$ac_header_compiler" >&6
9333
9334# Is the header present?
9335echo "$as_me:$LINENO: checking elf.h presence" >&5
9336echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
9337cat >conftest.$ac_ext <<_ACEOF
9338/* confdefs.h. */
9339_ACEOF
9340cat confdefs.h >>conftest.$ac_ext
9341cat >>conftest.$ac_ext <<_ACEOF
9342/* end confdefs.h. */
9343#include <elf.h>
9344_ACEOF
9345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9347 ac_status=$?
9348 grep -v '^ *+' conftest.er1 >conftest.err
9349 rm -f conftest.er1
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } >/dev/null; then
9353 if test -s conftest.err; then
9354 ac_cpp_err=$ac_c_preproc_warn_flag
9355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9356 else
9357 ac_cpp_err=
9358 fi
9359else
9360 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009361fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009362if test -z "$ac_cpp_err"; then
9363 ac_header_preproc=yes
9364else
9365 echo "$as_me: failed program was:" >&5
9366sed 's/^/| /' conftest.$ac_ext >&5
9367
9368 ac_header_preproc=no
9369fi
9370rm -f conftest.err conftest.$ac_ext
9371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9372echo "${ECHO_T}$ac_header_preproc" >&6
9373
9374# So? What about this header?
9375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9376 yes:no: )
9377 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
9378echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9379 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
9380echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
9381 ac_header_preproc=yes
9382 ;;
9383 no:yes:* )
9384 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
9385echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
9386 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
9387echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
9388 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
9389echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
9390 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
9391echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
9393echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
9395echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
9396 (
9397 cat <<\_ASBOX
9398## ------------------------------------------ ##
9399## Report this to the AC_PACKAGE_NAME lists. ##
9400## ------------------------------------------ ##
9401_ASBOX
9402 ) |
9403 sed "s/^/$as_me: WARNING: /" >&2
9404 ;;
9405esac
9406echo "$as_me:$LINENO: checking for elf.h" >&5
9407echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
9408if test "${ac_cv_header_elf_h+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9410else
9411 ac_cv_header_elf_h=$ac_header_preproc
9412fi
9413echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
9414echo "${ECHO_T}$ac_cv_header_elf_h" >&6
9415
9416fi
9417if test $ac_cv_header_elf_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009418 HAS_ELF=1
Bram Moolenaar071d4272004-06-13 20:20:40 +00009419fi
9420
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009421
Bram Moolenaar071d4272004-06-13 20:20:40 +00009422if test "$HAS_ELF" = 1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009423
9424echo "$as_me:$LINENO: checking for main in -lelf" >&5
9425echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
9426if test "${ac_cv_lib_elf_main+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009428else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009429 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009430LIBS="-lelf $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009431cat >conftest.$ac_ext <<_ACEOF
9432/* confdefs.h. */
9433_ACEOF
9434cat confdefs.h >>conftest.$ac_ext
9435cat >>conftest.$ac_ext <<_ACEOF
9436/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009437
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009438
9439int
9440main ()
9441{
9442main ();
9443 ;
9444 return 0;
9445}
9446_ACEOF
9447rm -f conftest.$ac_objext conftest$ac_exeext
9448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449 (eval $ac_link) 2>conftest.er1
9450 ac_status=$?
9451 grep -v '^ *+' conftest.er1 >conftest.err
9452 rm -f conftest.er1
9453 cat conftest.err >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } &&
9456 { ac_try='test -z "$ac_c_werror_flag"
9457 || test ! -s conftest.err'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459 (eval $ac_try) 2>&5
9460 ac_status=$?
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; } &&
9463 { ac_try='test -s conftest$ac_exeext'
9464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9465 (eval $ac_try) 2>&5
9466 ac_status=$?
9467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468 (exit $ac_status); }; }; then
9469 ac_cv_lib_elf_main=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009470else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009471 echo "$as_me: failed program was:" >&5
9472sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009473
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009474ac_cv_lib_elf_main=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009475fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009476rm -f conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478LIBS=$ac_check_lib_save_LIBS
9479fi
9480echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
9481echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
9482if test $ac_cv_lib_elf_main = yes; then
9483 cat >>confdefs.h <<_ACEOF
9484#define HAVE_LIBELF 1
9485_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009486
9487 LIBS="-lelf $LIBS"
9488
Bram Moolenaar071d4272004-06-13 20:20:40 +00009489fi
9490
9491fi
9492
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009493
9494
9495
9496
9497
Bram Moolenaar071d4272004-06-13 20:20:40 +00009498ac_header_dirent=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009499for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9500 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9501echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9502echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9503if eval "test \"\${$as_ac_Header+set}\" = set"; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009505else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009506 cat >conftest.$ac_ext <<_ACEOF
9507/* confdefs.h. */
9508_ACEOF
9509cat confdefs.h >>conftest.$ac_ext
9510cat >>conftest.$ac_ext <<_ACEOF
9511/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009512#include <sys/types.h>
9513#include <$ac_hdr>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009514
9515int
9516main ()
9517{
9518if ((DIR *) 0)
9519return 0;
9520 ;
9521 return 0;
9522}
9523_ACEOF
9524rm -f conftest.$ac_objext
9525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9526 (eval $ac_compile) 2>conftest.er1
9527 ac_status=$?
9528 grep -v '^ *+' conftest.er1 >conftest.err
9529 rm -f conftest.er1
9530 cat conftest.err >&5
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -z "$ac_c_werror_flag"
9534 || test ! -s conftest.err'
9535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 (eval $ac_try) 2>&5
9537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; } &&
9540 { ac_try='test -s conftest.$ac_objext'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 (eval $ac_try) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; }; then
9546 eval "$as_ac_Header=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009547else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009548 echo "$as_me: failed program was:" >&5
9549sed 's/^/| /' conftest.$ac_ext >&5
9550
9551eval "$as_ac_Header=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009552fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009554fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9557if test `eval echo '${'$as_ac_Header'}'` = yes; then
9558 cat >>confdefs.h <<_ACEOF
9559#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9560_ACEOF
9561
9562ac_header_dirent=$ac_hdr; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009563fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009564
Bram Moolenaar071d4272004-06-13 20:20:40 +00009565done
9566# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9567if test $ac_header_dirent = dirent.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009568 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9569echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9570if test "${ac_cv_search_opendir+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009572else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009573 ac_func_search_save_LIBS=$LIBS
9574ac_cv_search_opendir=no
9575cat >conftest.$ac_ext <<_ACEOF
9576/* confdefs.h. */
9577_ACEOF
9578cat confdefs.h >>conftest.$ac_ext
9579cat >>conftest.$ac_ext <<_ACEOF
9580/* end confdefs.h. */
9581
Bram Moolenaar071d4272004-06-13 20:20:40 +00009582/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009583#ifdef __cplusplus
9584extern "C"
9585#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009586/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009587 builtin and then its argument prototype would still apply. */
9588char opendir ();
9589int
9590main ()
9591{
9592opendir ();
9593 ;
9594 return 0;
9595}
9596_ACEOF
9597rm -f conftest.$ac_objext conftest$ac_exeext
9598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9599 (eval $ac_link) 2>conftest.er1
9600 ac_status=$?
9601 grep -v '^ *+' conftest.er1 >conftest.err
9602 rm -f conftest.er1
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -z "$ac_c_werror_flag"
9607 || test ! -s conftest.err'
9608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 (eval $ac_try) 2>&5
9610 ac_status=$?
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); }; } &&
9613 { ac_try='test -s conftest$ac_exeext'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 (eval $ac_try) 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_cv_search_opendir="none required"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009620else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009621 echo "$as_me: failed program was:" >&5
9622sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009623
9624fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009625rm -f conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
9627if test "$ac_cv_search_opendir" = no; then
9628 for ac_lib in dir; do
9629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9630 cat >conftest.$ac_ext <<_ACEOF
9631/* confdefs.h. */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009636
Bram Moolenaar071d4272004-06-13 20:20:40 +00009637/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009638#ifdef __cplusplus
9639extern "C"
9640#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009641/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009642 builtin and then its argument prototype would still apply. */
9643char opendir ();
9644int
9645main ()
9646{
9647opendir ();
9648 ;
9649 return 0;
9650}
9651_ACEOF
9652rm -f conftest.$ac_objext conftest$ac_exeext
9653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654 (eval $ac_link) 2>conftest.er1
9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -z "$ac_c_werror_flag"
9662 || test ! -s conftest.err'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670 (eval $ac_try) 2>&5
9671 ac_status=$?
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_cv_search_opendir="-l$ac_lib"
9675break
Bram Moolenaar071d4272004-06-13 20:20:40 +00009676else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009677 echo "$as_me: failed program was:" >&5
9678sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009679
9680fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009681rm -f conftest.err conftest.$ac_objext \
9682 conftest$ac_exeext conftest.$ac_ext
9683 done
9684fi
9685LIBS=$ac_func_search_save_LIBS
9686fi
9687echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9688echo "${ECHO_T}$ac_cv_search_opendir" >&6
9689if test "$ac_cv_search_opendir" != no; then
9690 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9691
9692fi
9693
Bram Moolenaar071d4272004-06-13 20:20:40 +00009694else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009695 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9696echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9697if test "${ac_cv_search_opendir+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009699else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009700 ac_func_search_save_LIBS=$LIBS
9701ac_cv_search_opendir=no
9702cat >conftest.$ac_ext <<_ACEOF
9703/* confdefs.h. */
9704_ACEOF
9705cat confdefs.h >>conftest.$ac_ext
9706cat >>conftest.$ac_ext <<_ACEOF
9707/* end confdefs.h. */
9708
9709/* Override any gcc2 internal prototype to avoid an error. */
9710#ifdef __cplusplus
9711extern "C"
9712#endif
9713/* We use char because int might match the return type of a gcc2
9714 builtin and then its argument prototype would still apply. */
9715char opendir ();
9716int
9717main ()
9718{
9719opendir ();
9720 ;
9721 return 0;
9722}
9723_ACEOF
9724rm -f conftest.$ac_objext conftest$ac_exeext
9725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9726 (eval $ac_link) 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } &&
9733 { ac_try='test -z "$ac_c_werror_flag"
9734 || test ! -s conftest.err'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736 (eval $ac_try) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; } &&
9740 { ac_try='test -s conftest$ac_exeext'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742 (eval $ac_try) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; }; then
9746 ac_cv_search_opendir="none required"
9747else
9748 echo "$as_me: failed program was:" >&5
9749sed 's/^/| /' conftest.$ac_ext >&5
9750
9751fi
9752rm -f conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
9754if test "$ac_cv_search_opendir" = no; then
9755 for ac_lib in x; do
9756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9757 cat >conftest.$ac_ext <<_ACEOF
9758/* confdefs.h. */
9759_ACEOF
9760cat confdefs.h >>conftest.$ac_ext
9761cat >>conftest.$ac_ext <<_ACEOF
9762/* end confdefs.h. */
9763
9764/* Override any gcc2 internal prototype to avoid an error. */
9765#ifdef __cplusplus
9766extern "C"
9767#endif
9768/* We use char because int might match the return type of a gcc2
9769 builtin and then its argument prototype would still apply. */
9770char opendir ();
9771int
9772main ()
9773{
9774opendir ();
9775 ;
9776 return 0;
9777}
9778_ACEOF
9779rm -f conftest.$ac_objext conftest$ac_exeext
9780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9781 (eval $ac_link) 2>conftest.er1
9782 ac_status=$?
9783 grep -v '^ *+' conftest.er1 >conftest.err
9784 rm -f conftest.er1
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } &&
9788 { ac_try='test -z "$ac_c_werror_flag"
9789 || test ! -s conftest.err'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791 (eval $ac_try) 2>&5
9792 ac_status=$?
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; } &&
9795 { ac_try='test -s conftest$ac_exeext'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; }; then
9801 ac_cv_search_opendir="-l$ac_lib"
9802break
9803else
9804 echo "$as_me: failed program was:" >&5
9805sed 's/^/| /' conftest.$ac_ext >&5
9806
9807fi
9808rm -f conftest.err conftest.$ac_objext \
9809 conftest$ac_exeext conftest.$ac_ext
9810 done
9811fi
9812LIBS=$ac_func_search_save_LIBS
9813fi
9814echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9815echo "${ECHO_T}$ac_cv_search_opendir" >&6
9816if test "$ac_cv_search_opendir" != no; then
9817 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9818
9819fi
9820
9821fi
9822
9823
9824echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9825echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9826if test "${ac_cv_header_stdc+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828else
9829 cat >conftest.$ac_ext <<_ACEOF
9830/* confdefs.h. */
9831_ACEOF
9832cat confdefs.h >>conftest.$ac_ext
9833cat >>conftest.$ac_ext <<_ACEOF
9834/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009835#include <stdlib.h>
9836#include <stdarg.h>
9837#include <string.h>
9838#include <float.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009839
9840int
9841main ()
9842{
9843
9844 ;
9845 return 0;
9846}
9847_ACEOF
9848rm -f conftest.$ac_objext
9849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9850 (eval $ac_compile) 2>conftest.er1
9851 ac_status=$?
9852 grep -v '^ *+' conftest.er1 >conftest.err
9853 rm -f conftest.er1
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } &&
9857 { ac_try='test -z "$ac_c_werror_flag"
9858 || test ! -s conftest.err'
9859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 (eval $ac_try) 2>&5
9861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; } &&
9864 { ac_try='test -s conftest.$ac_objext'
9865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 (eval $ac_try) 2>&5
9867 ac_status=$?
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009870 ac_cv_header_stdc=yes
9871else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009872 echo "$as_me: failed program was:" >&5
9873sed 's/^/| /' conftest.$ac_ext >&5
9874
9875ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009876fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009878
9879if test $ac_cv_header_stdc = yes; then
9880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009881 cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h. */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009887#include <string.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009888
9889_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009891 $EGREP "memchr" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009892 :
9893else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009894 ac_cv_header_stdc=no
9895fi
9896rm -f conftest*
9897
9898fi
9899
9900if test $ac_cv_header_stdc = yes; then
9901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009902 cat >conftest.$ac_ext <<_ACEOF
9903/* confdefs.h. */
9904_ACEOF
9905cat confdefs.h >>conftest.$ac_ext
9906cat >>conftest.$ac_ext <<_ACEOF
9907/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009908#include <stdlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009909
9910_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009912 $EGREP "free" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009913 :
9914else
Bram Moolenaar071d4272004-06-13 20:20:40 +00009915 ac_cv_header_stdc=no
9916fi
9917rm -f conftest*
9918
9919fi
9920
9921if test $ac_cv_header_stdc = yes; then
9922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009923 if test "$cross_compiling" = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009924 :
9925else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009926 cat >conftest.$ac_ext <<_ACEOF
9927/* confdefs.h. */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009932#include <ctype.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009933#if ((' ' & 0x0FF) == 0x020)
9934# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9935# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9936#else
9937# define ISLOWER(c) \
9938 (('a' <= (c) && (c) <= 'i') \
9939 || ('j' <= (c) && (c) <= 'r') \
9940 || ('s' <= (c) && (c) <= 'z'))
9941# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9942#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009943
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009944#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9945int
9946main ()
9947{
9948 int i;
9949 for (i = 0; i < 256; i++)
9950 if (XOR (islower (i), ISLOWER (i))
9951 || toupper (i) != TOUPPER (i))
9952 exit(2);
9953 exit (0);
9954}
9955_ACEOF
9956rm -f conftest$ac_exeext
9957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9958 (eval $ac_link) 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009967 :
9968else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009969 echo "$as_me: program exited with status $ac_status" >&5
9970echo "$as_me: failed program was:" >&5
9971sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009972
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009973( exit $ac_status )
9974ac_cv_header_stdc=no
9975fi
9976rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009977fi
9978fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009979fi
9980echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9981echo "${ECHO_T}$ac_cv_header_stdc" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009982if test $ac_cv_header_stdc = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009983
9984cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009985#define STDC_HEADERS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009986_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009987
9988fi
9989
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009990echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9991echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9992if test "${ac_cv_header_sys_wait_h+set}" = set; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009994else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009995 cat >conftest.$ac_ext <<_ACEOF
9996/* confdefs.h. */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010001#include <sys/types.h>
10002#include <sys/wait.h>
10003#ifndef WEXITSTATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010004# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010005#endif
10006#ifndef WIFEXITED
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010007# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010008#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010009
10010int
10011main ()
10012{
10013 int s;
10014 wait (&s);
10015 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10016 ;
10017 return 0;
10018}
10019_ACEOF
10020rm -f conftest.$ac_objext
10021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10022 (eval $ac_compile) 2>conftest.er1
10023 ac_status=$?
10024 grep -v '^ *+' conftest.er1 >conftest.err
10025 rm -f conftest.er1
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try='test -z "$ac_c_werror_flag"
10030 || test ! -s conftest.err'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest.$ac_objext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010042 ac_cv_header_sys_wait_h=yes
10043else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010044 echo "$as_me: failed program was:" >&5
10045sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010046
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010047ac_cv_header_sys_wait_h=no
10048fi
10049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10050fi
10051echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10052echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010053if test $ac_cv_header_sys_wait_h = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010054
10055cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010056#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010057_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010058
10059fi
10060
10061
10062if test $ac_cv_header_sys_wait_h = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010063 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10064echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10065 cat >conftest.$ac_ext <<_ACEOF
10066/* confdefs.h. */
10067_ACEOF
10068cat confdefs.h >>conftest.$ac_ext
10069cat >>conftest.$ac_ext <<_ACEOF
10070/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010071#include <sys/wait.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010072int
10073main ()
10074{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010075union wait xx, yy; xx = yy
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010076 ;
10077 return 0;
10078}
10079_ACEOF
10080rm -f conftest.$ac_objext
10081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10082 (eval $ac_compile) 2>conftest.er1
10083 ac_status=$?
10084 grep -v '^ *+' conftest.er1 >conftest.err
10085 rm -f conftest.er1
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag"
10090 || test ! -s conftest.err'
10091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10093 ac_status=$?
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); }; } &&
10096 { ac_try='test -s conftest.$ac_objext'
10097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10102 echo "$as_me:$LINENO: result: yes" >&5
10103echo "${ECHO_T}yes" >&6
10104 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010105#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010106_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010107
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010108 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010109#define HAVE_UNION_WAIT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010110_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010111
10112else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010113 echo "$as_me: failed program was:" >&5
10114sed 's/^/| /' conftest.$ac_ext >&5
10115
10116echo "$as_me:$LINENO: result: no" >&5
10117echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010118fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010120fi
10121
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010122
10123
10124
10125
10126
10127
10128
10129
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
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010161
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010162for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010163 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10164 iconv.h langinfo.h unistd.h stropts.h errno.h \
10165 sys/resource.h sys/systeminfo.h locale.h \
10166 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10167 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010168 libgen.h util/debug.h util/msg18n.h frame.h \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000010169 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010170do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010171as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10172if eval "test \"\${$as_ac_Header+set}\" = set"; then
10173 echo "$as_me:$LINENO: checking for $ac_header" >&5
10174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10175if eval "test \"\${$as_ac_Header+set}\" = set"; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010177fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010180else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010181 # Is the header compilable?
10182echo "$as_me:$LINENO: checking $ac_header usability" >&5
10183echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10184cat >conftest.$ac_ext <<_ACEOF
10185/* confdefs.h. */
10186_ACEOF
10187cat confdefs.h >>conftest.$ac_ext
10188cat >>conftest.$ac_ext <<_ACEOF
10189/* end confdefs.h. */
10190$ac_includes_default
10191#include <$ac_header>
10192_ACEOF
10193rm -f conftest.$ac_objext
10194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10195 (eval $ac_compile) 2>conftest.er1
10196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -z "$ac_c_werror_flag"
10203 || test ! -s conftest.err'
10204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10205 (eval $ac_try) 2>&5
10206 ac_status=$?
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); }; } &&
10209 { ac_try='test -s conftest.$ac_objext'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; }; then
10215 ac_header_compiler=yes
10216else
10217 echo "$as_me: failed program was:" >&5
10218sed 's/^/| /' conftest.$ac_ext >&5
10219
10220ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010221fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10223echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10224echo "${ECHO_T}$ac_header_compiler" >&6
10225
10226# Is the header present?
10227echo "$as_me:$LINENO: checking $ac_header presence" >&5
10228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10229cat >conftest.$ac_ext <<_ACEOF
10230/* confdefs.h. */
10231_ACEOF
10232cat confdefs.h >>conftest.$ac_ext
10233cat >>conftest.$ac_ext <<_ACEOF
10234/* end confdefs.h. */
10235#include <$ac_header>
10236_ACEOF
10237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10239 ac_status=$?
10240 grep -v '^ *+' conftest.er1 >conftest.err
10241 rm -f conftest.er1
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); } >/dev/null; then
10245 if test -s conftest.err; then
10246 ac_cpp_err=$ac_c_preproc_warn_flag
10247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10248 else
10249 ac_cpp_err=
10250 fi
10251else
10252 ac_cpp_err=yes
10253fi
10254if test -z "$ac_cpp_err"; then
10255 ac_header_preproc=yes
10256else
10257 echo "$as_me: failed program was:" >&5
10258sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 ac_header_preproc=no
10261fi
10262rm -f conftest.err conftest.$ac_ext
10263echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10264echo "${ECHO_T}$ac_header_preproc" >&6
10265
10266# So? What about this header?
10267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10268 yes:no: )
10269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10273 ac_header_preproc=yes
10274 ;;
10275 no:yes:* )
10276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10279echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10283echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10288 (
10289 cat <<\_ASBOX
10290## ------------------------------------------ ##
10291## Report this to the AC_PACKAGE_NAME lists. ##
10292## ------------------------------------------ ##
10293_ASBOX
10294 ) |
10295 sed "s/^/$as_me: WARNING: /" >&2
10296 ;;
10297esac
10298echo "$as_me:$LINENO: checking for $ac_header" >&5
10299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10300if eval "test \"\${$as_ac_Header+set}\" = set"; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302else
10303 eval "$as_ac_Header=\$ac_header_preproc"
10304fi
10305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10307
10308fi
10309if test `eval echo '${'$as_ac_Header'}'` = yes; then
10310 cat >>confdefs.h <<_ACEOF
10311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10312_ACEOF
10313
10314fi
10315
Bram Moolenaar071d4272004-06-13 20:20:40 +000010316done
10317
10318
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010319echo "$as_me:$LINENO: checking for pthread_np.h" >&5
10320echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
10321cat >conftest.$ac_ext <<_ACEOF
10322/* confdefs.h. */
10323_ACEOF
10324cat confdefs.h >>conftest.$ac_ext
10325cat >>conftest.$ac_ext <<_ACEOF
10326/* end confdefs.h. */
10327
10328#include <pthread.h>
10329#include <pthread_np.h>
10330int
10331main ()
10332{
10333int i; i = 0;
10334 ;
10335 return 0;
10336}
10337_ACEOF
10338rm -f conftest.$ac_objext
10339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10340 (eval $ac_compile) 2>conftest.er1
10341 ac_status=$?
10342 grep -v '^ *+' conftest.er1 >conftest.err
10343 rm -f conftest.er1
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } &&
10347 { ac_try='test -z "$ac_c_werror_flag"
10348 || test ! -s conftest.err'
10349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350 (eval $ac_try) 2>&5
10351 ac_status=$?
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); }; } &&
10354 { ac_try='test -s conftest.$ac_objext'
10355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10357 ac_status=$?
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 echo "$as_me:$LINENO: result: yes" >&5
10361echo "${ECHO_T}yes" >&6
10362 cat >>confdefs.h <<\_ACEOF
10363#define HAVE_PTHREAD_NP_H 1
10364_ACEOF
10365
10366else
10367 echo "$as_me: failed program was:" >&5
10368sed 's/^/| /' conftest.$ac_ext >&5
10369
10370echo "$as_me:$LINENO: result: no" >&5
10371echo "${ECHO_T}no" >&6
10372fi
10373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10374
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010375
10376for ac_header in strings.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000010377do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010378as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10379if eval "test \"\${$as_ac_Header+set}\" = set"; then
10380 echo "$as_me:$LINENO: checking for $ac_header" >&5
10381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10382if eval "test \"\${$as_ac_Header+set}\" = set"; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010384fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010387else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010388 # Is the header compilable?
10389echo "$as_me:$LINENO: checking $ac_header usability" >&5
10390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10391cat >conftest.$ac_ext <<_ACEOF
10392/* confdefs.h. */
10393_ACEOF
10394cat confdefs.h >>conftest.$ac_ext
10395cat >>conftest.$ac_ext <<_ACEOF
10396/* end confdefs.h. */
10397$ac_includes_default
10398#include <$ac_header>
10399_ACEOF
10400rm -f conftest.$ac_objext
10401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10402 (eval $ac_compile) 2>conftest.er1
10403 ac_status=$?
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } &&
10409 { ac_try='test -z "$ac_c_werror_flag"
10410 || test ! -s conftest.err'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10413 ac_status=$?
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; } &&
10416 { ac_try='test -s conftest.$ac_objext'
10417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418 (eval $ac_try) 2>&5
10419 ac_status=$?
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; }; then
10422 ac_header_compiler=yes
10423else
10424 echo "$as_me: failed program was:" >&5
10425sed 's/^/| /' conftest.$ac_ext >&5
10426
10427ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010428fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10431echo "${ECHO_T}$ac_header_compiler" >&6
10432
10433# Is the header present?
10434echo "$as_me:$LINENO: checking $ac_header presence" >&5
10435echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10436cat >conftest.$ac_ext <<_ACEOF
10437/* confdefs.h. */
10438_ACEOF
10439cat confdefs.h >>conftest.$ac_ext
10440cat >>conftest.$ac_ext <<_ACEOF
10441/* end confdefs.h. */
10442#include <$ac_header>
10443_ACEOF
10444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10446 ac_status=$?
10447 grep -v '^ *+' conftest.er1 >conftest.err
10448 rm -f conftest.er1
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } >/dev/null; then
10452 if test -s conftest.err; then
10453 ac_cpp_err=$ac_c_preproc_warn_flag
10454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10455 else
10456 ac_cpp_err=
10457 fi
10458else
10459 ac_cpp_err=yes
10460fi
10461if test -z "$ac_cpp_err"; then
10462 ac_header_preproc=yes
10463else
10464 echo "$as_me: failed program was:" >&5
10465sed 's/^/| /' conftest.$ac_ext >&5
10466
10467 ac_header_preproc=no
10468fi
10469rm -f conftest.err conftest.$ac_ext
10470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10471echo "${ECHO_T}$ac_header_preproc" >&6
10472
10473# So? What about this header?
10474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10475 yes:no: )
10476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10480 ac_header_preproc=yes
10481 ;;
10482 no:yes:* )
10483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10495 (
10496 cat <<\_ASBOX
10497## ------------------------------------------ ##
10498## Report this to the AC_PACKAGE_NAME lists. ##
10499## ------------------------------------------ ##
10500_ASBOX
10501 ) |
10502 sed "s/^/$as_me: WARNING: /" >&2
10503 ;;
10504esac
10505echo "$as_me:$LINENO: checking for $ac_header" >&5
10506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10507if eval "test \"\${$as_ac_Header+set}\" = set"; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509else
10510 eval "$as_ac_Header=\$ac_header_preproc"
10511fi
10512echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10513echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10514
10515fi
10516if test `eval echo '${'$as_ac_Header'}'` = yes; then
10517 cat >>confdefs.h <<_ACEOF
10518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10519_ACEOF
10520
10521fi
10522
Bram Moolenaar071d4272004-06-13 20:20:40 +000010523done
10524
Bram Moolenaar9372a112005-12-06 19:59:18 +000010525if test "x$MACOSX" = "xyes"; then
10526 cat >>confdefs.h <<\_ACEOF
10527#define NO_STRINGS_WITH_STRING_H 1
10528_ACEOF
10529
10530else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010531
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010532echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
10533echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010534cppflags_save=$CPPFLAGS
10535CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010536cat >conftest.$ac_ext <<_ACEOF
10537/* confdefs.h. */
10538_ACEOF
10539cat confdefs.h >>conftest.$ac_ext
10540cat >>conftest.$ac_ext <<_ACEOF
10541/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010542
10543#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
10544# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
10545 /* but don't do it on AIX 5.1 (Uribarri) */
10546#endif
10547#ifdef HAVE_XM_XM_H
10548# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
10549#endif
10550#ifdef HAVE_STRING_H
10551# include <string.h>
10552#endif
10553#if defined(HAVE_STRINGS_H)
10554# include <strings.h>
10555#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010556
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010557int
10558main ()
10559{
10560int i; i = 0;
10561 ;
10562 return 0;
10563}
10564_ACEOF
10565rm -f conftest.$ac_objext
10566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>conftest.er1
10568 ac_status=$?
10569 grep -v '^ *+' conftest.er1 >conftest.err
10570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag"
10575 || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest.$ac_objext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 echo "$as_me:$LINENO: result: yes" >&5
10588echo "${ECHO_T}yes" >&6
10589else
10590 echo "$as_me: failed program was:" >&5
10591sed 's/^/| /' conftest.$ac_ext >&5
10592
10593cat >>confdefs.h <<\_ACEOF
10594#define NO_STRINGS_WITH_STRING_H 1
10595_ACEOF
10596
10597 echo "$as_me:$LINENO: result: no" >&5
10598echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010599fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010601CPPFLAGS=$cppflags_save
Bram Moolenaar9372a112005-12-06 19:59:18 +000010602fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000010603
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010604if test $ac_cv_c_compiler_gnu = yes; then
10605 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10606echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10607if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010609else
10610 ac_pattern="Autoconf.*'x'"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010611 cat >conftest.$ac_ext <<_ACEOF
10612/* confdefs.h. */
10613_ACEOF
10614cat confdefs.h >>conftest.$ac_ext
10615cat >>conftest.$ac_ext <<_ACEOF
10616/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010617#include <sgtty.h>
10618Autoconf TIOCGETP
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010619_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010621 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010622 ac_cv_prog_gcc_traditional=yes
10623else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010624 ac_cv_prog_gcc_traditional=no
10625fi
10626rm -f conftest*
10627
10628
10629 if test $ac_cv_prog_gcc_traditional = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010630 cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010636#include <termio.h>
10637Autoconf TCGETA
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010638_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010639if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010640 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010641 ac_cv_prog_gcc_traditional=yes
10642fi
10643rm -f conftest*
10644
10645 fi
10646fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010647echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10648echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010649 if test $ac_cv_prog_gcc_traditional = yes; then
10650 CC="$CC -traditional"
10651 fi
10652fi
10653
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010654echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10655echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10656if test "${ac_cv_c_const+set}" = set; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010658else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010659 cat >conftest.$ac_ext <<_ACEOF
10660/* confdefs.h. */
10661_ACEOF
10662cat confdefs.h >>conftest.$ac_ext
10663cat >>conftest.$ac_ext <<_ACEOF
10664/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010665
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010666int
10667main ()
10668{
10669/* FIXME: Include the comments suggested by Paul. */
10670#ifndef __cplusplus
10671 /* Ultrix mips cc rejects this. */
10672 typedef int charset[2];
10673 const charset x;
10674 /* SunOS 4.1.1 cc rejects this. */
10675 char const *const *ccp;
10676 char **p;
10677 /* NEC SVR4.0.2 mips cc rejects this. */
10678 struct point {int x, y;};
10679 static struct point const zero = {0,0};
10680 /* AIX XL C 1.02.0.0 rejects this.
10681 It does not let you subtract one const X* pointer from another in
10682 an arm of an if-expression whose if-part is not a constant
10683 expression */
10684 const char *g = "string";
10685 ccp = &g + (g ? g-g : 0);
10686 /* HPUX 7.0 cc rejects these. */
10687 ++ccp;
10688 p = (char**) ccp;
10689 ccp = (char const *const *) p;
10690 { /* SCO 3.2v4 cc rejects this. */
10691 char *t;
10692 char const *s = 0 ? (char *) 0 : (char const *) 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010693
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010694 *t++ = 0;
10695 }
10696 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10697 int x[] = {25, 17};
10698 const int *foo = &x[0];
10699 ++foo;
10700 }
10701 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10702 typedef const int *iptr;
10703 iptr p = 0;
10704 ++p;
10705 }
10706 { /* AIX XL C 1.02.0.0 rejects this saying
10707 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10708 struct s { int j; const int *ap[3]; };
10709 struct s *b; b->j = 5;
10710 }
10711 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10712 const int foo = 10;
10713 }
10714#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010715
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010716 ;
10717 return 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000010718}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010719_ACEOF
10720rm -f conftest.$ac_objext
10721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10722 (eval $ac_compile) 2>conftest.er1
10723 ac_status=$?
10724 grep -v '^ *+' conftest.er1 >conftest.err
10725 rm -f conftest.er1
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try='test -z "$ac_c_werror_flag"
10730 || test ! -s conftest.err'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10733 ac_status=$?
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest.$ac_objext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10739 ac_status=$?
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010742 ac_cv_c_const=yes
10743else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010744 echo "$as_me: failed program was:" >&5
10745sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010746
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010747ac_cv_c_const=no
10748fi
10749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10750fi
10751echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10752echo "${ECHO_T}$ac_cv_c_const" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010753if test $ac_cv_c_const = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010754
10755cat >>confdefs.h <<\_ACEOF
10756#define const
10757_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010758
10759fi
10760
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010761echo "$as_me:$LINENO: checking for mode_t" >&5
10762echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10763if test "${ac_cv_type_mode_t+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010765else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010766 cat >conftest.$ac_ext <<_ACEOF
10767/* confdefs.h. */
10768_ACEOF
10769cat confdefs.h >>conftest.$ac_ext
10770cat >>conftest.$ac_ext <<_ACEOF
10771/* end confdefs.h. */
10772$ac_includes_default
10773int
10774main ()
10775{
10776if ((mode_t *) 0)
10777 return 0;
10778if (sizeof (mode_t))
10779 return 0;
10780 ;
10781 return 0;
10782}
10783_ACEOF
10784rm -f conftest.$ac_objext
10785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786 (eval $ac_compile) 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010806 ac_cv_type_mode_t=yes
10807else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010808 echo "$as_me: failed program was:" >&5
10809sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010810
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010811ac_cv_type_mode_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010812fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010814fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010815echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10816echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10817if test $ac_cv_type_mode_t = yes; then
10818 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010819else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010820
10821cat >>confdefs.h <<_ACEOF
10822#define mode_t int
10823_ACEOF
10824
10825fi
10826
10827echo "$as_me:$LINENO: checking for off_t" >&5
10828echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10829if test "${ac_cv_type_off_t+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831else
10832 cat >conftest.$ac_ext <<_ACEOF
10833/* confdefs.h. */
10834_ACEOF
10835cat confdefs.h >>conftest.$ac_ext
10836cat >>conftest.$ac_ext <<_ACEOF
10837/* end confdefs.h. */
10838$ac_includes_default
10839int
10840main ()
10841{
10842if ((off_t *) 0)
10843 return 0;
10844if (sizeof (off_t))
10845 return 0;
10846 ;
10847 return 0;
10848}
10849_ACEOF
10850rm -f conftest.$ac_objext
10851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10852 (eval $ac_compile) 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } &&
10859 { ac_try='test -z "$ac_c_werror_flag"
10860 || test ! -s conftest.err'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10863 ac_status=$?
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; } &&
10866 { ac_try='test -s conftest.$ac_objext'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10869 ac_status=$?
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010872 ac_cv_type_off_t=yes
10873else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010874 echo "$as_me: failed program was:" >&5
10875sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010876
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010877ac_cv_type_off_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010878fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010880fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010881echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10882echo "${ECHO_T}$ac_cv_type_off_t" >&6
10883if test $ac_cv_type_off_t = yes; then
10884 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010885else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010886
10887cat >>confdefs.h <<_ACEOF
10888#define off_t long
10889_ACEOF
10890
10891fi
10892
10893echo "$as_me:$LINENO: checking for pid_t" >&5
10894echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10895if test "${ac_cv_type_pid_t+set}" = set; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10897else
10898 cat >conftest.$ac_ext <<_ACEOF
10899/* confdefs.h. */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
10903/* end confdefs.h. */
10904$ac_includes_default
10905int
10906main ()
10907{
10908if ((pid_t *) 0)
10909 return 0;
10910if (sizeof (pid_t))
10911 return 0;
10912 ;
10913 return 0;
10914}
10915_ACEOF
10916rm -f conftest.$ac_objext
10917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10918 (eval $ac_compile) 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } &&
10925 { ac_try='test -z "$ac_c_werror_flag"
10926 || test ! -s conftest.err'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest.$ac_objext'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010938 ac_cv_type_pid_t=yes
10939else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010940 echo "$as_me: failed program was:" >&5
10941sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010942
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010943ac_cv_type_pid_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010944fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010946fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010947echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10948echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10949if test $ac_cv_type_pid_t = yes; then
10950 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000010951else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010952
10953cat >>confdefs.h <<_ACEOF
10954#define pid_t int
10955_ACEOF
10956
10957fi
10958
10959echo "$as_me:$LINENO: checking for size_t" >&5
10960echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10961if test "${ac_cv_type_size_t+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963else
10964 cat >conftest.$ac_ext <<_ACEOF
10965/* confdefs.h. */
10966_ACEOF
10967cat confdefs.h >>conftest.$ac_ext
10968cat >>conftest.$ac_ext <<_ACEOF
10969/* end confdefs.h. */
10970$ac_includes_default
10971int
10972main ()
10973{
10974if ((size_t *) 0)
10975 return 0;
10976if (sizeof (size_t))
10977 return 0;
10978 ;
10979 return 0;
10980}
10981_ACEOF
10982rm -f conftest.$ac_objext
10983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10984 (eval $ac_compile) 2>conftest.er1
10985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 { ac_try='test -z "$ac_c_werror_flag"
10992 || test ! -s conftest.err'
10993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10994 (eval $ac_try) 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; } &&
10998 { ac_try='test -s conftest.$ac_objext'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011004 ac_cv_type_size_t=yes
11005else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011006 echo "$as_me: failed program was:" >&5
11007sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011008
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011009ac_cv_type_size_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011010fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011012fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011013echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11014echo "${ECHO_T}$ac_cv_type_size_t" >&6
11015if test $ac_cv_type_size_t = yes; then
11016 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011017else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011018
11019cat >>confdefs.h <<_ACEOF
11020#define size_t unsigned
11021_ACEOF
11022
11023fi
11024
11025echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11026echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11027if test "${ac_cv_type_uid_t+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029else
11030 cat >conftest.$ac_ext <<_ACEOF
11031/* confdefs.h. */
11032_ACEOF
11033cat confdefs.h >>conftest.$ac_ext
11034cat >>conftest.$ac_ext <<_ACEOF
11035/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011036#include <sys/types.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011037
11038_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011040 $EGREP "uid_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011041 ac_cv_type_uid_t=yes
11042else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011043 ac_cv_type_uid_t=no
11044fi
11045rm -f conftest*
11046
11047fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011048echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11049echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011050if test $ac_cv_type_uid_t = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011051
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011052cat >>confdefs.h <<\_ACEOF
11053#define uid_t int
11054_ACEOF
11055
11056
11057cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011058#define gid_t int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011059_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011060
11061fi
11062
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011063echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11064echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11065if test "${ac_cv_header_time+set}" = set; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011067else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011068 cat >conftest.$ac_ext <<_ACEOF
11069/* confdefs.h. */
11070_ACEOF
11071cat confdefs.h >>conftest.$ac_ext
11072cat >>conftest.$ac_ext <<_ACEOF
11073/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011074#include <sys/types.h>
11075#include <sys/time.h>
11076#include <time.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011077
11078int
11079main ()
11080{
11081if ((struct tm *) 0)
11082return 0;
11083 ;
11084 return 0;
11085}
11086_ACEOF
11087rm -f conftest.$ac_objext
11088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089 (eval $ac_compile) 2>conftest.er1
11090 ac_status=$?
11091 grep -v '^ *+' conftest.er1 >conftest.err
11092 rm -f conftest.er1
11093 cat conftest.err >&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 { ac_try='test -z "$ac_c_werror_flag"
11097 || test ! -s conftest.err'
11098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099 (eval $ac_try) 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; } &&
11103 { ac_try='test -s conftest.$ac_objext'
11104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105 (eval $ac_try) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011109 ac_cv_header_time=yes
11110else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011111 echo "$as_me: failed program was:" >&5
11112sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011113
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011114ac_cv_header_time=no
11115fi
11116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11117fi
11118echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11119echo "${ECHO_T}$ac_cv_header_time" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011120if test $ac_cv_header_time = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011121
11122cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011123#define TIME_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011124_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011125
11126fi
11127
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011128echo "$as_me:$LINENO: checking for ino_t" >&5
11129echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11130if test "${ac_cv_type_ino_t+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011132else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011133 cat >conftest.$ac_ext <<_ACEOF
11134/* confdefs.h. */
11135_ACEOF
11136cat confdefs.h >>conftest.$ac_ext
11137cat >>conftest.$ac_ext <<_ACEOF
11138/* end confdefs.h. */
11139$ac_includes_default
11140int
11141main ()
11142{
11143if ((ino_t *) 0)
11144 return 0;
11145if (sizeof (ino_t))
11146 return 0;
11147 ;
11148 return 0;
11149}
11150_ACEOF
11151rm -f conftest.$ac_objext
11152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153 (eval $ac_compile) 2>conftest.er1
11154 ac_status=$?
11155 grep -v '^ *+' conftest.er1 >conftest.err
11156 rm -f conftest.er1
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } &&
11160 { ac_try='test -z "$ac_c_werror_flag"
11161 || test ! -s conftest.err'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest.$ac_objext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11170 ac_status=$?
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011173 ac_cv_type_ino_t=yes
11174else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011175 echo "$as_me: failed program was:" >&5
11176sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011177
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011178ac_cv_type_ino_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011179fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011181fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011182echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11183echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11184if test $ac_cv_type_ino_t = yes; then
11185 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011186else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011187
11188cat >>confdefs.h <<_ACEOF
11189#define ino_t long
11190_ACEOF
11191
11192fi
11193
11194echo "$as_me:$LINENO: checking for dev_t" >&5
11195echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11196if test "${ac_cv_type_dev_t+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198else
11199 cat >conftest.$ac_ext <<_ACEOF
11200/* confdefs.h. */
11201_ACEOF
11202cat confdefs.h >>conftest.$ac_ext
11203cat >>conftest.$ac_ext <<_ACEOF
11204/* end confdefs.h. */
11205$ac_includes_default
11206int
11207main ()
11208{
11209if ((dev_t *) 0)
11210 return 0;
11211if (sizeof (dev_t))
11212 return 0;
11213 ;
11214 return 0;
11215}
11216_ACEOF
11217rm -f conftest.$ac_objext
11218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219 (eval $ac_compile) 2>conftest.er1
11220 ac_status=$?
11221 grep -v '^ *+' conftest.er1 >conftest.err
11222 rm -f conftest.er1
11223 cat conftest.err >&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); } &&
11226 { ac_try='test -z "$ac_c_werror_flag"
11227 || test ! -s conftest.err'
11228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); }; } &&
11233 { ac_try='test -s conftest.$ac_objext'
11234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11235 (eval $ac_try) 2>&5
11236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011239 ac_cv_type_dev_t=yes
11240else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011241 echo "$as_me: failed program was:" >&5
11242sed 's/^/| /' conftest.$ac_ext >&5
11243
11244ac_cv_type_dev_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011245fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011247fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011248echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11249echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11250if test $ac_cv_type_dev_t = yes; then
11251 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011252else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011253
11254cat >>confdefs.h <<_ACEOF
11255#define dev_t unsigned
11256_ACEOF
11257
11258fi
11259
11260
11261echo "$as_me:$LINENO: checking for rlim_t" >&5
11262echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
11263if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
11264 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
11265echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
11266else
11267 cat >conftest.$ac_ext <<_ACEOF
11268/* confdefs.h. */
11269_ACEOF
11270cat confdefs.h >>conftest.$ac_ext
11271cat >>conftest.$ac_ext <<_ACEOF
11272/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011273
11274#include <sys/types.h>
11275#if STDC_HEADERS
11276#include <stdlib.h>
11277#include <stddef.h>
11278#endif
11279#ifdef HAVE_SYS_RESOURCE_H
11280#include <sys/resource.h>
11281#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011282
11283_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011284if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011285 $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 +000011286 ac_cv_type_rlim_t=yes
11287else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011288 ac_cv_type_rlim_t=no
11289fi
11290rm -f conftest*
11291
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011292 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
11293echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011294fi
11295if test $ac_cv_type_rlim_t = no; then
11296 cat >> confdefs.h <<\EOF
11297#define rlim_t unsigned long
11298EOF
11299fi
11300
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011301echo "$as_me:$LINENO: checking for stack_t" >&5
11302echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011303if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011304 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
11305echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011306else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011307 cat >conftest.$ac_ext <<_ACEOF
11308/* confdefs.h. */
11309_ACEOF
11310cat confdefs.h >>conftest.$ac_ext
11311cat >>conftest.$ac_ext <<_ACEOF
11312/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011313
11314#include <sys/types.h>
11315#if STDC_HEADERS
11316#include <stdlib.h>
11317#include <stddef.h>
11318#endif
11319#include <signal.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011320
11321_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011323 $EGREP "stack_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011324 ac_cv_type_stack_t=yes
11325else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011326 ac_cv_type_stack_t=no
11327fi
11328rm -f conftest*
11329
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011330 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
11331echo "${ECHO_T}$ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011332fi
11333if test $ac_cv_type_stack_t = no; then
11334 cat >> confdefs.h <<\EOF
11335#define stack_t struct sigaltstack
11336EOF
11337fi
11338
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011339echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
11340echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
11341cat >conftest.$ac_ext <<_ACEOF
11342/* confdefs.h. */
11343_ACEOF
11344cat confdefs.h >>conftest.$ac_ext
11345cat >>conftest.$ac_ext <<_ACEOF
11346/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011347
11348#include <sys/types.h>
11349#if STDC_HEADERS
11350#include <stdlib.h>
11351#include <stddef.h>
11352#endif
11353#include <signal.h>
11354#include "confdefs.h"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011355
11356int
11357main ()
11358{
11359stack_t sigstk; sigstk.ss_base = 0;
11360 ;
11361 return 0;
11362}
11363_ACEOF
11364rm -f conftest.$ac_objext
11365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11366 (eval $ac_compile) 2>conftest.er1
11367 ac_status=$?
11368 grep -v '^ *+' conftest.er1 >conftest.err
11369 rm -f conftest.er1
11370 cat conftest.err >&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
11373 { ac_try='test -z "$ac_c_werror_flag"
11374 || test ! -s conftest.err'
11375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11377 ac_status=$?
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); }; } &&
11380 { ac_try='test -s conftest.$ac_objext'
11381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11382 (eval $ac_try) 2>&5
11383 ac_status=$?
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); }; }; then
11386 echo "$as_me:$LINENO: result: yes" >&5
11387echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011388#define HAVE_SS_BASE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011389_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011390
11391else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011392 echo "$as_me: failed program was:" >&5
11393sed 's/^/| /' conftest.$ac_ext >&5
11394
11395echo "$as_me:$LINENO: result: no" >&5
11396echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011397fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011399
11400olibs="$LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011401echo "$as_me:$LINENO: checking --with-tlib argument" >&5
11402echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
11403
Bram Moolenaar071d4272004-06-13 20:20:40 +000011404# Check whether --with-tlib or --without-tlib was given.
11405if test "${with_tlib+set}" = set; then
11406 withval="$with_tlib"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011407
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011408fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011409if test -n "$with_tlib"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011410 echo "$as_me:$LINENO: result: $with_tlib" >&5
11411echo "${ECHO_T}$with_tlib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011412 LIBS="$LIBS -l$with_tlib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011413 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
11414echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
11415 cat >conftest.$ac_ext <<_ACEOF
11416/* confdefs.h. */
11417_ACEOF
11418cat confdefs.h >>conftest.$ac_ext
11419cat >>conftest.$ac_ext <<_ACEOF
11420/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011421
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011422int
11423main ()
11424{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011425
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011426 ;
11427 return 0;
11428}
11429_ACEOF
11430rm -f conftest.$ac_objext conftest$ac_exeext
11431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11432 (eval $ac_link) 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -z "$ac_c_werror_flag"
11440 || test ! -s conftest.err'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try='test -s conftest$ac_exeext'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
11452 echo "$as_me:$LINENO: result: OK" >&5
11453echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011454else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011455 echo "$as_me: failed program was:" >&5
11456sed 's/^/| /' conftest.$ac_ext >&5
11457
11458{ { echo "$as_me:$LINENO: error: FAILED" >&5
11459echo "$as_me: error: FAILED" >&2;}
11460 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011461fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011462rm -f conftest.err conftest.$ac_objext \
11463 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011464 olibs="$LIBS"
11465else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011466 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
11467echo "${ECHO_T}empty: automatic terminal library selection" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011468 case "`uname -s 2>/dev/null`" in
11469 OSF1) tlibs="ncurses curses termlib termcap";;
11470 *) tlibs="ncurses termlib termcap curses";;
11471 esac
11472 for libname in $tlibs; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011473
11474as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
11475echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
11476echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
11477if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011479else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011480 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000011481LIBS="-l${libname} $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011482cat >conftest.$ac_ext <<_ACEOF
11483/* confdefs.h. */
11484_ACEOF
11485cat confdefs.h >>conftest.$ac_ext
11486cat >>conftest.$ac_ext <<_ACEOF
11487/* end confdefs.h. */
11488
Bram Moolenaar071d4272004-06-13 20:20:40 +000011489/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011490#ifdef __cplusplus
11491extern "C"
11492#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011493/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011494 builtin and then its argument prototype would still apply. */
11495char tgetent ();
11496int
11497main ()
11498{
11499tgetent ();
11500 ;
11501 return 0;
11502}
11503_ACEOF
11504rm -f conftest.$ac_objext conftest$ac_exeext
11505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506 (eval $ac_link) 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try='test -z "$ac_c_werror_flag"
11514 || test ! -s conftest.err'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11517 ac_status=$?
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try='test -s conftest$ac_exeext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 eval "$as_ac_Lib=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011527else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011528 echo "$as_me: failed program was:" >&5
11529sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011530
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011531eval "$as_ac_Lib=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000011532fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011533rm -f conftest.err conftest.$ac_objext \
11534 conftest$ac_exeext conftest.$ac_ext
11535LIBS=$ac_check_lib_save_LIBS
11536fi
11537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11538echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11539if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11540 cat >>confdefs.h <<_ACEOF
11541#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
11542_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011543
11544 LIBS="-l${libname} $LIBS"
11545
Bram Moolenaar071d4272004-06-13 20:20:40 +000011546fi
11547
11548 if test "x$olibs" != "x$LIBS"; then
11549 if test "$cross_compiling" = yes; then
11550 res="FAIL"
11551else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011552 cat >conftest.$ac_ext <<_ACEOF
11553/* confdefs.h. */
11554_ACEOF
11555cat confdefs.h >>conftest.$ac_ext
11556cat >>conftest.$ac_ext <<_ACEOF
11557/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011558
11559#ifdef HAVE_TERMCAP_H
11560# include <termcap.h>
11561#endif
11562main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011563_ACEOF
11564rm -f conftest$ac_exeext
11565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11566 (eval $ac_link) 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011575 res="OK"
11576else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011577 echo "$as_me: program exited with status $ac_status" >&5
11578echo "$as_me: failed program was:" >&5
11579sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011580
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011581( exit $ac_status )
11582res="FAIL"
11583fi
11584rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11585fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011586 if test "$res" = "OK"; then
11587 break
11588 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011589 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
11590echo "${ECHO_T}$libname library is not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011591 LIBS="$olibs"
11592 fi
11593 done
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011594 if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011595 echo "$as_me:$LINENO: result: no terminal library found" >&5
11596echo "${ECHO_T}no terminal library found" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011597 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011598fi
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011599
11600if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011601 echo "$as_me:$LINENO: checking for tgetent()" >&5
11602echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
11603 cat >conftest.$ac_ext <<_ACEOF
11604/* confdefs.h. */
11605_ACEOF
11606cat confdefs.h >>conftest.$ac_ext
11607cat >>conftest.$ac_ext <<_ACEOF
11608/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011609
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011610int
11611main ()
11612{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011613char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011614 ;
11615 return 0;
11616}
11617_ACEOF
11618rm -f conftest.$ac_objext conftest$ac_exeext
11619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11620 (eval $ac_link) 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } &&
11627 { ac_try='test -z "$ac_c_werror_flag"
11628 || test ! -s conftest.err'
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest$ac_exeext'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 echo "$as_me:$LINENO: result: yes" >&5
11641echo "${ECHO_T}yes" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011642else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011643 echo "$as_me: failed program was:" >&5
11644sed 's/^/| /' conftest.$ac_ext >&5
11645
11646{ { echo "$as_me:$LINENO: error: NOT FOUND!
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011647 You need to install a terminal library; for example ncurses.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011648 Or specify the name of the library with --with-tlib." >&5
11649echo "$as_me: error: NOT FOUND!
11650 You need to install a terminal library; for example ncurses.
11651 Or specify the name of the library with --with-tlib." >&2;}
11652 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011653fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011654rm -f conftest.err conftest.$ac_objext \
11655 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011656fi
11657
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011658echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
11659echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000011660if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011661 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11662echo "$as_me: error: failed to compile test program." >&2;}
11663 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011664else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011665 cat >conftest.$ac_ext <<_ACEOF
11666/* confdefs.h. */
11667_ACEOF
11668cat confdefs.h >>conftest.$ac_ext
11669cat >>conftest.$ac_ext <<_ACEOF
11670/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011671
11672#ifdef HAVE_TERMCAP_H
11673# include <termcap.h>
11674#endif
11675main()
11676{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011677_ACEOF
11678rm -f conftest$ac_exeext
11679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11680 (eval $ac_link) 2>&5
11681 ac_status=$?
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11686 ac_status=$?
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
11690echo "${ECHO_T}no -- we are in termcap land" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011691else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011692 echo "$as_me: program exited with status $ac_status" >&5
11693echo "$as_me: failed program was:" >&5
11694sed 's/^/| /' conftest.$ac_ext >&5
11695
11696( exit $ac_status )
11697echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
11698echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011699#define TERMINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011700_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011701
11702fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011704fi
11705
Bram Moolenaar071d4272004-06-13 20:20:40 +000011706if test "x$olibs" != "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011707 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
11708echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011709 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011710 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
11711echo "$as_me: error: failed to compile test program." >&2;}
11712 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000011713else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011714 cat >conftest.$ac_ext <<_ACEOF
11715/* confdefs.h. */
11716_ACEOF
11717cat confdefs.h >>conftest.$ac_ext
11718cat >>conftest.$ac_ext <<_ACEOF
11719/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011720
11721#ifdef HAVE_TERMCAP_H
11722# include <termcap.h>
11723#endif
11724main()
11725{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011726_ACEOF
11727rm -f conftest$ac_exeext
11728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11729 (eval $ac_link) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734 (eval $ac_try) 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
11738 echo "$as_me:$LINENO: result: zero" >&5
11739echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011740#define TGETENT_ZERO_ERR 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011741_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011742
11743else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011744 echo "$as_me: program exited with status $ac_status" >&5
11745echo "$as_me: failed program was:" >&5
11746sed 's/^/| /' conftest.$ac_ext >&5
11747
11748( exit $ac_status )
11749echo "$as_me:$LINENO: result: non-zero" >&5
11750echo "${ECHO_T}non-zero" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011751fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011752rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11753fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000011754fi
11755
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011756echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
11757echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
11758cat >conftest.$ac_ext <<_ACEOF
11759/* confdefs.h. */
11760_ACEOF
11761cat confdefs.h >>conftest.$ac_ext
11762cat >>conftest.$ac_ext <<_ACEOF
11763/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011764
11765#ifdef HAVE_TERMCAP_H
11766# include <termcap.h>
11767#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011768
11769int
11770main ()
11771{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011772ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011773 ;
11774 return 0;
11775}
11776_ACEOF
11777rm -f conftest.$ac_objext conftest$ac_exeext
11778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11779 (eval $ac_link) 2>conftest.er1
11780 ac_status=$?
11781 grep -v '^ *+' conftest.er1 >conftest.err
11782 rm -f conftest.er1
11783 cat conftest.err >&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); } &&
11786 { ac_try='test -z "$ac_c_werror_flag"
11787 || test ! -s conftest.err'
11788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789 (eval $ac_try) 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; } &&
11793 { ac_try='test -s conftest$ac_exeext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11799 echo "$as_me:$LINENO: result: yes" >&5
11800echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011801#define HAVE_OSPEED 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011802_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011803
11804else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011805 echo "$as_me: failed program was:" >&5
11806sed 's/^/| /' conftest.$ac_ext >&5
11807
11808echo "$as_me:$LINENO: result: no" >&5
11809echo "${ECHO_T}no" >&6
11810 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
11811echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
11812 cat >conftest.$ac_ext <<_ACEOF
11813/* confdefs.h. */
11814_ACEOF
11815cat confdefs.h >>conftest.$ac_ext
11816cat >>conftest.$ac_ext <<_ACEOF
11817/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011818
11819#ifdef HAVE_TERMCAP_H
11820# include <termcap.h>
11821#endif
11822extern short ospeed;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011823
11824int
11825main ()
11826{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011827ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011828 ;
11829 return 0;
11830}
11831_ACEOF
11832rm -f conftest.$ac_objext conftest$ac_exeext
11833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11834 (eval $ac_link) 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } &&
11841 { ac_try='test -z "$ac_c_werror_flag"
11842 || test ! -s conftest.err'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest$ac_exeext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 echo "$as_me:$LINENO: result: yes" >&5
11855echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011856#define OSPEED_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011857_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011858
11859else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011860 echo "$as_me: failed program was:" >&5
11861sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011862
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011863echo "$as_me:$LINENO: result: no" >&5
11864echo "${ECHO_T}no" >&6
11865fi
11866rm -f conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
11868
11869fi
11870rm -f conftest.err conftest.$ac_objext \
11871 conftest$ac_exeext conftest.$ac_ext
11872
11873echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
11874echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
11875cat >conftest.$ac_ext <<_ACEOF
11876/* confdefs.h. */
11877_ACEOF
11878cat confdefs.h >>conftest.$ac_ext
11879cat >>conftest.$ac_ext <<_ACEOF
11880/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011881
11882#ifdef HAVE_TERMCAP_H
11883# include <termcap.h>
11884#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011885
11886int
11887main ()
11888{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011889if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011890 ;
11891 return 0;
11892}
11893_ACEOF
11894rm -f conftest.$ac_objext conftest$ac_exeext
11895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896 (eval $ac_link) 2>conftest.er1
11897 ac_status=$?
11898 grep -v '^ *+' conftest.er1 >conftest.err
11899 rm -f conftest.er1
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -z "$ac_c_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest$ac_exeext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11916 echo "$as_me:$LINENO: result: yes" >&5
11917echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011918#define HAVE_UP_BC_PC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011919_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011920
11921else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011922 echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
11925echo "$as_me:$LINENO: result: no" >&5
11926echo "${ECHO_T}no" >&6
11927 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
11928echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
11929 cat >conftest.$ac_ext <<_ACEOF
11930/* confdefs.h. */
11931_ACEOF
11932cat confdefs.h >>conftest.$ac_ext
11933cat >>conftest.$ac_ext <<_ACEOF
11934/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011935
11936#ifdef HAVE_TERMCAP_H
11937# include <termcap.h>
11938#endif
11939extern char *UP, *BC, PC;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011940
11941int
11942main ()
11943{
Bram Moolenaar071d4272004-06-13 20:20:40 +000011944if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011945 ;
11946 return 0;
11947}
11948_ACEOF
11949rm -f conftest.$ac_objext conftest$ac_exeext
11950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11951 (eval $ac_link) 2>conftest.er1
11952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); } &&
11958 { ac_try='test -z "$ac_c_werror_flag"
11959 || test ! -s conftest.err'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; } &&
11965 { ac_try='test -s conftest$ac_exeext'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11968 ac_status=$?
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
11971 echo "$as_me:$LINENO: result: yes" >&5
11972echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011973#define UP_BC_PC_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011974_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011975
11976else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011977 echo "$as_me: failed program was:" >&5
11978sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011979
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011980echo "$as_me:$LINENO: result: no" >&5
11981echo "${ECHO_T}no" >&6
11982fi
11983rm -f conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
11985
11986fi
11987rm -f conftest.err conftest.$ac_objext \
11988 conftest$ac_exeext conftest.$ac_ext
11989
11990echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
11991echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
11992cat >conftest.$ac_ext <<_ACEOF
11993/* confdefs.h. */
11994_ACEOF
11995cat confdefs.h >>conftest.$ac_ext
11996cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011998
11999#ifdef HAVE_TERMCAP_H
12000# include <termcap.h>
12001#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012002
12003int
12004main ()
12005{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012006extern int xx(); tputs("test", 1, (outfuntype)xx)
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012007 ;
12008 return 0;
12009}
12010_ACEOF
12011rm -f conftest.$ac_objext
12012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12013 (eval $ac_compile) 2>conftest.er1
12014 ac_status=$?
12015 grep -v '^ *+' conftest.er1 >conftest.err
12016 rm -f conftest.er1
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } &&
12020 { ac_try='test -z "$ac_c_werror_flag"
12021 || test ! -s conftest.err'
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; } &&
12027 { ac_try='test -s conftest.$ac_objext'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; }; then
12033 echo "$as_me:$LINENO: result: yes" >&5
12034echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012035#define HAVE_OUTFUNTYPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012036_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012037
12038else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012039 echo "$as_me: failed program was:" >&5
12040sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012041
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012042echo "$as_me:$LINENO: result: no" >&5
12043echo "${ECHO_T}no" >&6
12044fi
12045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12046
12047echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12048echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12049cat >conftest.$ac_ext <<_ACEOF
12050/* confdefs.h. */
12051_ACEOF
12052cat confdefs.h >>conftest.$ac_ext
12053cat >>conftest.$ac_ext <<_ACEOF
12054/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012055
12056#include <sys/types.h>
12057#include <sys/time.h>
12058#include <sys/select.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012059int
12060main ()
12061{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012062
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012063 ;
12064 return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext
12068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag"
12077 || test ! -s conftest.err'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; } &&
12083 { ac_try='test -s conftest.$ac_objext'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12089 echo "$as_me:$LINENO: result: yes" >&5
12090echo "${ECHO_T}yes" >&6
12091 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012092#define SYS_SELECT_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012093_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012094
12095else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012096 echo "$as_me: failed program was:" >&5
12097sed 's/^/| /' conftest.$ac_ext >&5
12098
12099echo "$as_me:$LINENO: result: no" >&5
12100echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012101fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012103
12104
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012105echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12106echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012107if test -r /dev/ptc; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012108 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012109#define HAVE_DEV_PTC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012110_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012111
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012112 echo "$as_me:$LINENO: result: yes" >&5
12113echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012114else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012115 echo "$as_me:$LINENO: result: no" >&5
12116echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012117fi
12118
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012119echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12120echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012121if test -c /dev/ptmx ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012122 cat >conftest.$ac_ext <<_ACEOF
12123/* confdefs.h. */
12124_ACEOF
12125cat confdefs.h >>conftest.$ac_ext
12126cat >>conftest.$ac_ext <<_ACEOF
12127/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012128
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012129int
12130main ()
12131{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012132ptsname(0);grantpt(0);unlockpt(0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012133 ;
12134 return 0;
12135}
12136_ACEOF
12137rm -f conftest.$ac_objext conftest$ac_exeext
12138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12139 (eval $ac_link) 2>conftest.er1
12140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } &&
12146 { ac_try='test -z "$ac_c_werror_flag"
12147 || test ! -s conftest.err'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12150 ac_status=$?
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; } &&
12153 { ac_try='test -s conftest$ac_exeext'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; }; then
12159 echo "$as_me:$LINENO: result: yes" >&5
12160echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012161#define HAVE_SVR4_PTYS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012162_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012163
12164else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012165 echo "$as_me: failed program was:" >&5
12166sed 's/^/| /' conftest.$ac_ext >&5
12167
12168echo "$as_me:$LINENO: result: no" >&5
12169echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012170fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012171rm -f conftest.err conftest.$ac_objext \
12172 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012173else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012174 echo "$as_me:$LINENO: result: no" >&5
12175echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012176fi
12177
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012178echo "$as_me:$LINENO: checking for ptyranges" >&5
12179echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012180if test -d /dev/ptym ; then
12181 pdir='/dev/ptym'
12182else
12183 pdir='/dev'
12184fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012185cat >conftest.$ac_ext <<_ACEOF
12186/* confdefs.h. */
12187_ACEOF
12188cat confdefs.h >>conftest.$ac_ext
12189cat >>conftest.$ac_ext <<_ACEOF
12190/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012191#ifdef M_UNIX
12192 yes;
12193#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012194
12195_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012197 $EGREP "yes" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012198 ptys=`echo /dev/ptyp??`
12199else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012200 ptys=`echo $pdir/pty??`
12201fi
12202rm -f conftest*
12203
12204if test "$ptys" != "$pdir/pty??" ; then
12205 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12206 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012207 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012208#define PTYRANGE0 "$p0"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012209_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012210
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012211 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012212#define PTYRANGE1 "$p1"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012213_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012214
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012215 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
12216echo "${ECHO_T}$p0 / $p1" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012217else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012218 echo "$as_me:$LINENO: result: don't know" >&5
12219echo "${ECHO_T}don't know" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012220fi
12221
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012222echo "$as_me:$LINENO: checking default tty permissions/group" >&5
12223echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012224rm -f conftest_grp
12225if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012226 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12227echo "$as_me: error: failed to compile test program" >&2;}
12228 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012229else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012230 cat >conftest.$ac_ext <<_ACEOF
12231/* confdefs.h. */
12232_ACEOF
12233cat confdefs.h >>conftest.$ac_ext
12234cat >>conftest.$ac_ext <<_ACEOF
12235/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012236
12237#include <sys/types.h>
12238#include <sys/stat.h>
12239#include <stdio.h>
12240main()
12241{
12242 struct stat sb;
12243 char *x,*ttyname();
12244 int om, m;
12245 FILE *fp;
12246
12247 if (!(x = ttyname(0))) exit(1);
12248 if (stat(x, &sb)) exit(1);
12249 om = sb.st_mode;
12250 if (om & 002) exit(0);
12251 m = system("mesg y");
12252 if (m == -1 || m == 127) exit(1);
12253 if (stat(x, &sb)) exit(1);
12254 m = sb.st_mode;
12255 if (chmod(x, om)) exit(1);
12256 if (m & 002) exit(0);
12257 if (sb.st_gid == getgid()) exit(1);
12258 if (!(fp=fopen("conftest_grp", "w")))
12259 exit(1);
12260 fprintf(fp, "%d\n", sb.st_gid);
12261 fclose(fp);
12262 exit(0);
12263}
12264
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012265_ACEOF
12266rm -f conftest$ac_exeext
12267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12268 (eval $ac_link) 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277
Bram Moolenaar071d4272004-06-13 20:20:40 +000012278 if test -f conftest_grp; then
12279 ptygrp=`cat conftest_grp`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012280 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
12281echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
12282 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012283#define PTYMODE 0620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012284_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012285
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012286 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012287#define PTYGROUP $ptygrp
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012288_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012289
12290 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012291 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
12292echo "${ECHO_T}ptys are world accessable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012293 fi
12294
12295else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012296 echo "$as_me: program exited with status $ac_status" >&5
12297echo "$as_me: failed program was:" >&5
12298sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012299
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012300( exit $ac_status )
12301echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
12302echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
12303fi
12304rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12305fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012306rm -f conftest_grp
12307
12308
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012309echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12310echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12311if test "${ac_cv_type_signal+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012313else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012314 cat >conftest.$ac_ext <<_ACEOF
12315/* confdefs.h. */
12316_ACEOF
12317cat confdefs.h >>conftest.$ac_ext
12318cat >>conftest.$ac_ext <<_ACEOF
12319/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012320#include <sys/types.h>
12321#include <signal.h>
12322#ifdef signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012323# undef signal
Bram Moolenaar071d4272004-06-13 20:20:40 +000012324#endif
12325#ifdef __cplusplus
12326extern "C" void (*signal (int, void (*)(int)))(int);
12327#else
12328void (*signal ()) ();
12329#endif
12330
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012331int
12332main ()
12333{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012334int i;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012335 ;
12336 return 0;
12337}
12338_ACEOF
12339rm -f conftest.$ac_objext
12340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12341 (eval $ac_compile) 2>conftest.er1
12342 ac_status=$?
12343 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } &&
12348 { ac_try='test -z "$ac_c_werror_flag"
12349 || test ! -s conftest.err'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12352 ac_status=$?
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; } &&
12355 { ac_try='test -s conftest.$ac_objext'
12356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012361 ac_cv_type_signal=void
12362else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012363 echo "$as_me: failed program was:" >&5
12364sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012365
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012366ac_cv_type_signal=int
12367fi
12368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12369fi
12370echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12371echo "${ECHO_T}$ac_cv_type_signal" >&6
12372
12373cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012374#define RETSIGTYPE $ac_cv_type_signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012375_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012376
12377
12378
12379if test $ac_cv_type_signal = void; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012380 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012381#define SIGRETURN return
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012382_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012383
12384else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012385 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012386#define SIGRETURN return 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012387_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012388
12389fi
12390
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012391echo "$as_me:$LINENO: checking for struct sigcontext" >&5
12392echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
12393cat >conftest.$ac_ext <<_ACEOF
12394/* confdefs.h. */
12395_ACEOF
12396cat confdefs.h >>conftest.$ac_ext
12397cat >>conftest.$ac_ext <<_ACEOF
12398/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012399
12400#include <signal.h>
12401test_sig()
12402{
12403 struct sigcontext *scont;
12404 scont = (struct sigcontext *)0;
12405 return 1;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012406}
12407int
12408main ()
12409{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012410
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012411 ;
12412 return 0;
12413}
12414_ACEOF
12415rm -f conftest.$ac_objext
12416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417 (eval $ac_compile) 2>conftest.er1
12418 ac_status=$?
12419 grep -v '^ *+' conftest.er1 >conftest.err
12420 rm -f conftest.er1
12421 cat conftest.err >&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } &&
12424 { ac_try='test -z "$ac_c_werror_flag"
12425 || test ! -s conftest.err'
12426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427 (eval $ac_try) 2>&5
12428 ac_status=$?
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; } &&
12431 { ac_try='test -s conftest.$ac_objext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 echo "$as_me:$LINENO: result: yes" >&5
12438echo "${ECHO_T}yes" >&6
12439 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012440#define HAVE_SIGCONTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012441_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012442
12443else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012444 echo "$as_me: failed program was:" >&5
12445sed 's/^/| /' conftest.$ac_ext >&5
12446
12447echo "$as_me:$LINENO: result: no" >&5
12448echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012449fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012451
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012452echo "$as_me:$LINENO: checking getcwd implementation" >&5
12453echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012454if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012455 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12456echo "$as_me: error: failed to compile test program" >&2;}
12457 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012458else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012459 cat >conftest.$ac_ext <<_ACEOF
12460/* confdefs.h. */
12461_ACEOF
12462cat confdefs.h >>conftest.$ac_ext
12463cat >>conftest.$ac_ext <<_ACEOF
12464/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012465
12466char *dagger[] = { "IFS=pwd", 0 };
12467main()
12468{
12469 char buffer[500];
12470 extern char **environ;
12471 environ = dagger;
12472 return getcwd(buffer, 500) ? 0 : 1;
12473}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012474_ACEOF
12475rm -f conftest$ac_exeext
12476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477 (eval $ac_link) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 echo "$as_me:$LINENO: result: it is usable" >&5
12487echo "${ECHO_T}it is usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012488else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012489 echo "$as_me: program exited with status $ac_status" >&5
12490echo "$as_me: failed program was:" >&5
12491sed 's/^/| /' conftest.$ac_ext >&5
12492
12493( exit $ac_status )
12494echo "$as_me:$LINENO: result: it stinks" >&5
12495echo "${ECHO_T}it stinks" >&6
12496 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012497#define BAD_GETCWD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012498_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012499
12500fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012501rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012502fi
12503
12504
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012505
12506
12507
12508
12509
12510
12511
12512
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
Bram Moolenaar071d4272004-06-13 20:20:40 +000012550for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
12551 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
12552 memset nanosleep opendir putenv qsort readlink select setenv \
12553 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000012554 sigvec strcasecmp strerror strftime stricmp strncasecmp \
Bram Moolenaar0cb032e2005-04-23 20:52:00 +000012555 strnicmp strpbrk strtol tgetent towlower towupper iswupper \
12556 usleep utime utimes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012557do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12559echo "$as_me:$LINENO: checking for $ac_func" >&5
12560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12561if eval "test \"\${$as_ac_var+set}\" = set"; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012563else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012564 cat >conftest.$ac_ext <<_ACEOF
12565/* confdefs.h. */
12566_ACEOF
12567cat confdefs.h >>conftest.$ac_ext
12568cat >>conftest.$ac_ext <<_ACEOF
12569/* end confdefs.h. */
12570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12572#define $ac_func innocuous_$ac_func
12573
Bram Moolenaar071d4272004-06-13 20:20:40 +000012574/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012575 which can conflict with char $ac_func (); below.
12576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12577 <limits.h> exists even on freestanding compilers. */
12578
12579#ifdef __STDC__
12580# include <limits.h>
12581#else
12582# include <assert.h>
12583#endif
12584
12585#undef $ac_func
12586
Bram Moolenaar071d4272004-06-13 20:20:40 +000012587/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012588#ifdef __cplusplus
12589extern "C"
12590{
12591#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012592/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012593 builtin and then its argument prototype would still apply. */
12594char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000012595/* The GNU C library defines this for functions which it implements
12596 to always fail with ENOSYS. Some functions are actually named
12597 something starting with __ and the normal name is an alias. */
12598#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12599choke me
12600#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012601char (*f) () = $ac_func;
12602#endif
12603#ifdef __cplusplus
12604}
Bram Moolenaar071d4272004-06-13 20:20:40 +000012605#endif
12606
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012607int
12608main ()
12609{
12610return f != $ac_func;
12611 ;
12612 return 0;
12613}
12614_ACEOF
12615rm -f conftest.$ac_objext conftest$ac_exeext
12616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12617 (eval $ac_link) 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -z "$ac_c_werror_flag"
12625 || test ! -s conftest.err'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; } &&
12631 { ac_try='test -s conftest$ac_exeext'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012638else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012639 echo "$as_me: failed program was:" >&5
12640sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012641
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012642eval "$as_ac_var=no"
12643fi
12644rm -f conftest.err conftest.$ac_objext \
12645 conftest$ac_exeext conftest.$ac_ext
12646fi
12647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12648echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12649if test `eval echo '${'$as_ac_var'}'` = yes; then
12650 cat >>confdefs.h <<_ACEOF
12651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12652_ACEOF
12653
Bram Moolenaar071d4272004-06-13 20:20:40 +000012654fi
12655done
12656
12657
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012658echo "$as_me:$LINENO: checking for st_blksize" >&5
12659echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
12660cat >conftest.$ac_ext <<_ACEOF
12661/* confdefs.h. */
12662_ACEOF
12663cat confdefs.h >>conftest.$ac_ext
12664cat >>conftest.$ac_ext <<_ACEOF
12665/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012666#include <sys/types.h>
12667#include <sys/stat.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012668int
12669main ()
12670{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012671 struct stat st;
12672 int n;
12673
12674 stat("/", &st);
12675 n = (int)st.st_blksize;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012676 ;
12677 return 0;
12678}
12679_ACEOF
12680rm -f conftest.$ac_objext
12681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12682 (eval $ac_compile) 2>conftest.er1
12683 ac_status=$?
12684 grep -v '^ *+' conftest.er1 >conftest.err
12685 rm -f conftest.er1
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
12689 { ac_try='test -z "$ac_c_werror_flag"
12690 || test ! -s conftest.err'
12691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692 (eval $ac_try) 2>&5
12693 ac_status=$?
12694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695 (exit $ac_status); }; } &&
12696 { ac_try='test -s conftest.$ac_objext'
12697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12698 (eval $ac_try) 2>&5
12699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; }; then
12702 echo "$as_me:$LINENO: result: yes" >&5
12703echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012704#define HAVE_ST_BLKSIZE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012705_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012706
12707else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012708 echo "$as_me: failed program was:" >&5
12709sed 's/^/| /' conftest.$ac_ext >&5
12710
12711echo "$as_me:$LINENO: result: no" >&5
12712echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012713fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012715
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012716echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
12717echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012718if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012719 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
12720echo "$as_me: error: failed to compile test program" >&2;}
12721 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012722else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012723 cat >conftest.$ac_ext <<_ACEOF
12724/* confdefs.h. */
12725_ACEOF
12726cat confdefs.h >>conftest.$ac_ext
12727cat >>conftest.$ac_ext <<_ACEOF
12728/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012729#include <sys/types.h>
12730#include <sys/stat.h>
12731main() {struct stat st; exit(stat("configure/", &st) != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012732_ACEOF
12733rm -f conftest$ac_exeext
12734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12735 (eval $ac_link) 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740 (eval $ac_try) 2>&5
12741 ac_status=$?
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 echo "$as_me:$LINENO: result: yes" >&5
12745echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012746#define STAT_IGNORES_SLASH 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012747_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012748
12749else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012750 echo "$as_me: program exited with status $ac_status" >&5
12751echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
12754( exit $ac_status )
12755echo "$as_me:$LINENO: result: no" >&5
12756echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012757fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012758rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012759fi
12760
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012761echo "$as_me:$LINENO: checking for iconv_open()" >&5
12762echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012763save_LIBS="$LIBS"
12764LIBS="$LIBS -liconv"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012765cat >conftest.$ac_ext <<_ACEOF
12766/* confdefs.h. */
12767_ACEOF
12768cat confdefs.h >>conftest.$ac_ext
12769cat >>conftest.$ac_ext <<_ACEOF
12770/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012771
12772#ifdef HAVE_ICONV_H
12773# include <iconv.h>
12774#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012775
12776int
12777main ()
12778{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012779iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012780 ;
12781 return 0;
12782}
12783_ACEOF
12784rm -f conftest.$ac_objext conftest$ac_exeext
12785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12786 (eval $ac_link) 2>conftest.er1
12787 ac_status=$?
12788 grep -v '^ *+' conftest.er1 >conftest.err
12789 rm -f conftest.er1
12790 cat conftest.err >&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -z "$ac_c_werror_flag"
12794 || test ! -s conftest.err'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
12807echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012808#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012809_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012810
12811else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012812 echo "$as_me: failed program was:" >&5
12813sed 's/^/| /' conftest.$ac_ext >&5
12814
12815LIBS="$save_LIBS"
12816 cat >conftest.$ac_ext <<_ACEOF
12817/* confdefs.h. */
12818_ACEOF
12819cat confdefs.h >>conftest.$ac_ext
12820cat >>conftest.$ac_ext <<_ACEOF
12821/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012822
12823#ifdef HAVE_ICONV_H
12824# include <iconv.h>
12825#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012826
12827int
12828main ()
12829{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012830iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012831 ;
12832 return 0;
12833}
12834_ACEOF
12835rm -f conftest.$ac_objext conftest$ac_exeext
12836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837 (eval $ac_link) 2>conftest.er1
12838 ac_status=$?
12839 grep -v '^ *+' conftest.er1 >conftest.err
12840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -z "$ac_c_werror_flag"
12845 || test ! -s conftest.err'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12848 ac_status=$?
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 echo "$as_me:$LINENO: result: yes" >&5
12858echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012859#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012860_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012861
12862else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012863 echo "$as_me: failed program was:" >&5
12864sed 's/^/| /' conftest.$ac_ext >&5
12865
12866echo "$as_me:$LINENO: result: no" >&5
12867echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012868fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012869rm -f conftest.err conftest.$ac_objext \
12870 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012871fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012872rm -f conftest.err conftest.$ac_objext \
12873 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012874
12875
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012876echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
12877echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
12878cat >conftest.$ac_ext <<_ACEOF
12879/* confdefs.h. */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012884
12885#ifdef HAVE_LANGINFO_H
12886# include <langinfo.h>
12887#endif
12888
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012889int
12890main ()
12891{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012892char *cs = nl_langinfo(CODESET);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012893 ;
12894 return 0;
12895}
12896_ACEOF
12897rm -f conftest.$ac_objext conftest$ac_exeext
12898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12899 (eval $ac_link) 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
12906 { ac_try='test -z "$ac_c_werror_flag"
12907 || test ! -s conftest.err'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest$ac_exeext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 echo "$as_me:$LINENO: result: yes" >&5
12920echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012921#define HAVE_NL_LANGINFO_CODESET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012922_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012923
12924else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012925 echo "$as_me: failed program was:" >&5
12926sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012927
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012928echo "$as_me:$LINENO: result: no" >&5
12929echo "${ECHO_T}no" >&6
12930fi
12931rm -f conftest.err conftest.$ac_objext \
12932 conftest$ac_exeext conftest.$ac_ext
12933
12934echo "$as_me:$LINENO: checking --disable-acl argument" >&5
12935echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012936# Check whether --enable-acl or --disable-acl was given.
12937if test "${enable_acl+set}" = set; then
12938 enableval="$enable_acl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012939
Bram Moolenaar071d4272004-06-13 20:20:40 +000012940else
12941 enable_acl="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012942fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000012943if test "$enable_acl" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012944echo "$as_me:$LINENO: result: no" >&5
12945echo "${ECHO_T}no" >&6
12946echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
12947echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
12948if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012950else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012951 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000012952LIBS="-lposix1e $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012953cat >conftest.$ac_ext <<_ACEOF
12954/* confdefs.h. */
12955_ACEOF
12956cat confdefs.h >>conftest.$ac_ext
12957cat >>conftest.$ac_ext <<_ACEOF
12958/* end confdefs.h. */
12959
Bram Moolenaar071d4272004-06-13 20:20:40 +000012960/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012961#ifdef __cplusplus
12962extern "C"
12963#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012964/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012965 builtin and then its argument prototype would still apply. */
12966char acl_get_file ();
12967int
12968main ()
12969{
12970acl_get_file ();
12971 ;
12972 return 0;
12973}
12974_ACEOF
12975rm -f conftest.$ac_objext conftest$ac_exeext
12976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12977 (eval $ac_link) 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } &&
12984 { ac_try='test -z "$ac_c_werror_flag"
12985 || test ! -s conftest.err'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest$ac_exeext'
12992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993 (eval $ac_try) 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 ac_cv_lib_posix1e_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000012998else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012999 echo "$as_me: failed program was:" >&5
13000sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013001
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013002ac_cv_lib_posix1e_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013003fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013004rm -f conftest.err conftest.$ac_objext \
13005 conftest$ac_exeext conftest.$ac_ext
13006LIBS=$ac_check_lib_save_LIBS
13007fi
13008echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13009echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13010if test $ac_cv_lib_posix1e_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013011 LIBS="$LIBS -lposix1e"
13012else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013013 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13014echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13015if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013017else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013018 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013019LIBS="-lacl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013020cat >conftest.$ac_ext <<_ACEOF
13021/* confdefs.h. */
13022_ACEOF
13023cat confdefs.h >>conftest.$ac_ext
13024cat >>conftest.$ac_ext <<_ACEOF
13025/* end confdefs.h. */
13026
Bram Moolenaar071d4272004-06-13 20:20:40 +000013027/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013028#ifdef __cplusplus
13029extern "C"
13030#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013031/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013032 builtin and then its argument prototype would still apply. */
13033char acl_get_file ();
13034int
13035main ()
13036{
13037acl_get_file ();
13038 ;
13039 return 0;
13040}
13041_ACEOF
13042rm -f conftest.$ac_objext conftest$ac_exeext
13043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13044 (eval $ac_link) 2>conftest.er1
13045 ac_status=$?
13046 grep -v '^ *+' conftest.er1 >conftest.err
13047 rm -f conftest.er1
13048 cat conftest.err >&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); } &&
13051 { ac_try='test -z "$ac_c_werror_flag"
13052 || test ! -s conftest.err'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13055 ac_status=$?
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; } &&
13058 { ac_try='test -s conftest$ac_exeext'
13059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060 (eval $ac_try) 2>&5
13061 ac_status=$?
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; }; then
13064 ac_cv_lib_acl_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013065else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013066 echo "$as_me: failed program was:" >&5
13067sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013068
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013069ac_cv_lib_acl_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013070fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013071rm -f conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext conftest.$ac_ext
13073LIBS=$ac_check_lib_save_LIBS
13074fi
13075echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13076echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13077if test $ac_cv_lib_acl_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013078 LIBS="$LIBS -lacl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013079 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13080echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13081if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013083else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013084 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013085LIBS="-lattr $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013086cat >conftest.$ac_ext <<_ACEOF
13087/* confdefs.h. */
13088_ACEOF
13089cat confdefs.h >>conftest.$ac_ext
13090cat >>conftest.$ac_ext <<_ACEOF
13091/* end confdefs.h. */
13092
Bram Moolenaar071d4272004-06-13 20:20:40 +000013093/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013094#ifdef __cplusplus
13095extern "C"
13096#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013097/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013098 builtin and then its argument prototype would still apply. */
13099char fgetxattr ();
13100int
13101main ()
13102{
13103fgetxattr ();
13104 ;
13105 return 0;
13106}
13107_ACEOF
13108rm -f conftest.$ac_objext conftest$ac_exeext
13109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13110 (eval $ac_link) 2>conftest.er1
13111 ac_status=$?
13112 grep -v '^ *+' conftest.er1 >conftest.err
13113 rm -f conftest.er1
13114 cat conftest.err >&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -z "$ac_c_werror_flag"
13118 || test ! -s conftest.err'
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; } &&
13124 { ac_try='test -s conftest$ac_exeext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13127 ac_status=$?
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 ac_cv_lib_attr_fgetxattr=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013131else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013132 echo "$as_me: failed program was:" >&5
13133sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013134
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013135ac_cv_lib_attr_fgetxattr=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013136fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013137rm -f conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
13139LIBS=$ac_check_lib_save_LIBS
13140fi
13141echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13142echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13143if test $ac_cv_lib_attr_fgetxattr = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013144 LIBS="$LIBS -lattr"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013145fi
13146
Bram Moolenaar071d4272004-06-13 20:20:40 +000013147fi
13148
13149fi
13150
13151
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013152echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13153echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13154cat >conftest.$ac_ext <<_ACEOF
13155/* confdefs.h. */
13156_ACEOF
13157cat confdefs.h >>conftest.$ac_ext
13158cat >>conftest.$ac_ext <<_ACEOF
13159/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013160
13161#include <sys/types.h>
13162#ifdef HAVE_SYS_ACL_H
13163# include <sys/acl.h>
13164#endif
13165acl_t acl;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013166int
13167main ()
13168{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013169acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13170 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13171 acl_free(acl);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013172 ;
13173 return 0;
13174}
13175_ACEOF
13176rm -f conftest.$ac_objext conftest$ac_exeext
13177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13178 (eval $ac_link) 2>conftest.er1
13179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } &&
13185 { ac_try='test -z "$ac_c_werror_flag"
13186 || test ! -s conftest.err'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; } &&
13192 { ac_try='test -s conftest$ac_exeext'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; }; then
13198 echo "$as_me:$LINENO: result: yes" >&5
13199echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013200#define HAVE_POSIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013201_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013202
13203else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013204 echo "$as_me: failed program was:" >&5
13205sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013206
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013207echo "$as_me:$LINENO: result: no" >&5
13208echo "${ECHO_T}no" >&6
13209fi
13210rm -f conftest.err conftest.$ac_objext \
13211 conftest$ac_exeext conftest.$ac_ext
13212
13213echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
13214echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
13215cat >conftest.$ac_ext <<_ACEOF
13216/* confdefs.h. */
13217_ACEOF
13218cat confdefs.h >>conftest.$ac_ext
13219cat >>conftest.$ac_ext <<_ACEOF
13220/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013221
13222#ifdef HAVE_SYS_ACL_H
13223# include <sys/acl.h>
13224#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013225int
13226main ()
13227{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013228acl("foo", GETACLCNT, 0, NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013229
13230 ;
13231 return 0;
13232}
13233_ACEOF
13234rm -f conftest.$ac_objext conftest$ac_exeext
13235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13236 (eval $ac_link) 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest$ac_exeext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 echo "$as_me:$LINENO: result: yes" >&5
13257echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013258#define HAVE_SOLARIS_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013259_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013260
13261else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013262 echo "$as_me: failed program was:" >&5
13263sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013264
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013265echo "$as_me:$LINENO: result: no" >&5
13266echo "${ECHO_T}no" >&6
13267fi
13268rm -f conftest.err conftest.$ac_objext \
13269 conftest$ac_exeext conftest.$ac_ext
13270
13271echo "$as_me:$LINENO: checking for AIX ACL support" >&5
13272echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
13273cat >conftest.$ac_ext <<_ACEOF
13274/* confdefs.h. */
13275_ACEOF
13276cat confdefs.h >>conftest.$ac_ext
13277cat >>conftest.$ac_ext <<_ACEOF
13278/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013279
13280#ifdef HAVE_SYS_ACL_H
13281# include <sys/acl.h>
13282#endif
13283#ifdef HAVE_SYS_ACCESS_H
13284# include <sys/access.h>
13285#endif
13286#define _ALL_SOURCE
13287
13288#include <sys/stat.h>
13289
13290int aclsize;
13291struct acl *aclent;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013292int
13293main ()
13294{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013295aclsize = sizeof(struct acl);
13296 aclent = (void *)malloc(aclsize);
13297 statacl("foo", STX_NORMAL, aclent, aclsize);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013298
13299 ;
13300 return 0;
13301}
13302_ACEOF
13303rm -f conftest.$ac_objext conftest$ac_exeext
13304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13305 (eval $ac_link) 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -z "$ac_c_werror_flag"
13313 || test ! -s conftest.err'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest$ac_exeext'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 echo "$as_me:$LINENO: result: yes" >&5
13326echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013327#define HAVE_AIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013328_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013329
13330else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013331 echo "$as_me: failed program was:" >&5
13332sed 's/^/| /' conftest.$ac_ext >&5
13333
13334echo "$as_me:$LINENO: result: no" >&5
13335echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013336fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013337rm -f conftest.err conftest.$ac_objext \
13338 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013339else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013340 echo "$as_me:$LINENO: result: yes" >&5
13341echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013342fi
13343
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013344echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
13345echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013346# Check whether --enable-gpm or --disable-gpm was given.
13347if test "${enable_gpm+set}" = set; then
13348 enableval="$enable_gpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013349
Bram Moolenaar071d4272004-06-13 20:20:40 +000013350else
13351 enable_gpm="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013352fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013353
13354if test "$enable_gpm" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013355 echo "$as_me:$LINENO: result: no" >&5
13356echo "${ECHO_T}no" >&6
13357 echo "$as_me:$LINENO: checking for gpm" >&5
13358echo $ECHO_N "checking for gpm... $ECHO_C" >&6
13359if test "${vi_cv_have_gpm+set}" = set; then
13360 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013361else
13362 olibs="$LIBS" ; LIBS="-lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013363 cat >conftest.$ac_ext <<_ACEOF
13364/* confdefs.h. */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013369#include <gpm.h>
13370 #include <linux/keyboard.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013371int
13372main ()
13373{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013374Gpm_GetLibVersion(NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013375 ;
13376 return 0;
13377}
13378_ACEOF
13379rm -f conftest.$ac_objext conftest$ac_exeext
13380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13381 (eval $ac_link) 2>conftest.er1
13382 ac_status=$?
13383 grep -v '^ *+' conftest.er1 >conftest.err
13384 rm -f conftest.er1
13385 cat conftest.err >&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } &&
13388 { ac_try='test -z "$ac_c_werror_flag"
13389 || test ! -s conftest.err'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13392 ac_status=$?
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; } &&
13395 { ac_try='test -s conftest$ac_exeext'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013401 vi_cv_have_gpm=yes
13402else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013403 echo "$as_me: failed program was:" >&5
13404sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013405
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013406vi_cv_have_gpm=no
13407fi
13408rm -f conftest.err conftest.$ac_objext \
13409 conftest$ac_exeext conftest.$ac_ext
13410 LIBS="$olibs"
13411
13412fi
13413echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
13414echo "${ECHO_T}$vi_cv_have_gpm" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013415 if test $vi_cv_have_gpm = yes; then
13416 LIBS="$LIBS -lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013417 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013418#define HAVE_GPM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013419_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013420
13421 fi
13422else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013423 echo "$as_me:$LINENO: result: yes" >&5
13424echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013425fi
13426
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013427echo "$as_me:$LINENO: checking for rename" >&5
13428echo $ECHO_N "checking for rename... $ECHO_C" >&6
13429cat >conftest.$ac_ext <<_ACEOF
13430/* confdefs.h. */
13431_ACEOF
13432cat confdefs.h >>conftest.$ac_ext
13433cat >>conftest.$ac_ext <<_ACEOF
13434/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013435#include <stdio.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013436int
13437main ()
13438{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013439rename("this", "that")
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013440 ;
13441 return 0;
13442}
13443_ACEOF
13444rm -f conftest.$ac_objext conftest$ac_exeext
13445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13446 (eval $ac_link) 2>conftest.er1
13447 ac_status=$?
13448 grep -v '^ *+' conftest.er1 >conftest.err
13449 rm -f conftest.er1
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -z "$ac_c_werror_flag"
13454 || test ! -s conftest.err'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest$ac_exeext'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 echo "$as_me:$LINENO: result: yes" >&5
13467echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013468#define HAVE_RENAME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013469_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013470
13471else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013472 echo "$as_me: failed program was:" >&5
13473sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013474
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013475echo "$as_me:$LINENO: result: no" >&5
13476echo "${ECHO_T}no" >&6
13477fi
13478rm -f conftest.err conftest.$ac_objext \
13479 conftest$ac_exeext conftest.$ac_ext
13480
13481echo "$as_me:$LINENO: checking for sysctl" >&5
13482echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
13483cat >conftest.$ac_ext <<_ACEOF
13484/* confdefs.h. */
13485_ACEOF
13486cat confdefs.h >>conftest.$ac_ext
13487cat >>conftest.$ac_ext <<_ACEOF
13488/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013489#include <sys/types.h>
13490#include <sys/sysctl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013491int
13492main ()
13493{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013494 int mib[2], r;
13495 size_t len;
13496
13497 mib[0] = CTL_HW;
13498 mib[1] = HW_USERMEM;
13499 len = sizeof(r);
13500 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013501
13502 ;
13503 return 0;
13504}
13505_ACEOF
13506rm -f conftest.$ac_objext
13507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508 (eval $ac_compile) 2>conftest.er1
13509 ac_status=$?
13510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
13515 { ac_try='test -z "$ac_c_werror_flag"
13516 || test ! -s conftest.err'
13517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13518 (eval $ac_try) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; } &&
13522 { ac_try='test -s conftest.$ac_objext'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
13528 echo "$as_me:$LINENO: result: yes" >&5
13529echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013530#define HAVE_SYSCTL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013531_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013532
13533else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013534 echo "$as_me: failed program was:" >&5
13535sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013536
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013537echo "$as_me:$LINENO: result: not usable" >&5
13538echo "${ECHO_T}not usable" >&6
13539fi
13540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13541
13542echo "$as_me:$LINENO: checking for sysinfo" >&5
13543echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
13544cat >conftest.$ac_ext <<_ACEOF
13545/* confdefs.h. */
13546_ACEOF
13547cat confdefs.h >>conftest.$ac_ext
13548cat >>conftest.$ac_ext <<_ACEOF
13549/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013550#include <sys/types.h>
13551#include <sys/sysinfo.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013552int
13553main ()
13554{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013555 struct sysinfo sinfo;
13556 int t;
13557
13558 (void)sysinfo(&sinfo);
13559 t = sinfo.totalram;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013560
13561 ;
13562 return 0;
13563}
13564_ACEOF
13565rm -f conftest.$ac_objext
13566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13567 (eval $ac_compile) 2>conftest.er1
13568 ac_status=$?
13569 grep -v '^ *+' conftest.er1 >conftest.err
13570 rm -f conftest.er1
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } &&
13574 { ac_try='test -z "$ac_c_werror_flag"
13575 || test ! -s conftest.err'
13576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577 (eval $ac_try) 2>&5
13578 ac_status=$?
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest.$ac_objext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 echo "$as_me:$LINENO: result: yes" >&5
13588echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013589#define HAVE_SYSINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013590_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013591
13592else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013593 echo "$as_me: failed program was:" >&5
13594sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013595
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013596echo "$as_me:$LINENO: result: not usable" >&5
13597echo "${ECHO_T}not usable" >&6
13598fi
13599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13600
13601echo "$as_me:$LINENO: checking for sysconf" >&5
13602echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
13603cat >conftest.$ac_ext <<_ACEOF
13604/* confdefs.h. */
13605_ACEOF
13606cat confdefs.h >>conftest.$ac_ext
13607cat >>conftest.$ac_ext <<_ACEOF
13608/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013609#include <unistd.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013610int
13611main ()
13612{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013613 (void)sysconf(_SC_PAGESIZE);
13614 (void)sysconf(_SC_PHYS_PAGES);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013615
13616 ;
13617 return 0;
13618}
13619_ACEOF
13620rm -f conftest.$ac_objext
13621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>conftest.er1
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
13629 { ac_try='test -z "$ac_c_werror_flag"
13630 || test ! -s conftest.err'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13633 ac_status=$?
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; } &&
13636 { ac_try='test -s conftest.$ac_objext'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; }; then
13642 echo "$as_me:$LINENO: result: yes" >&5
13643echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013644#define HAVE_SYSCONF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013645_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013646
13647else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013648 echo "$as_me: failed program was:" >&5
13649sed 's/^/| /' conftest.$ac_ext >&5
13650
13651echo "$as_me:$LINENO: result: not usable" >&5
13652echo "${ECHO_T}not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013653fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013655
13656
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013657echo "$as_me:$LINENO: checking size of int" >&5
13658echo $ECHO_N "checking size of int... $ECHO_C" >&6
13659if test "${ac_cv_sizeof_int+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013661else
13662 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013663 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13664echo "$as_me: error: failed to compile test program" >&2;}
13665 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013666else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013667 cat >conftest.$ac_ext <<_ACEOF
13668/* confdefs.h. */
13669_ACEOF
13670cat confdefs.h >>conftest.$ac_ext
13671cat >>conftest.$ac_ext <<_ACEOF
13672/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013673#include <stdio.h>
13674 main()
13675 {
13676 FILE *f=fopen("conftestval", "w");
13677 if (!f) exit(1);
13678 fprintf(f, "%d\n", (int)sizeof(int));
13679 exit(0);
13680 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013681_ACEOF
13682rm -f conftest$ac_exeext
13683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13684 (eval $ac_link) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013693 ac_cv_sizeof_int=`cat conftestval`
13694else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013695 echo "$as_me: program exited with status $ac_status" >&5
13696echo "$as_me: failed program was:" >&5
13697sed 's/^/| /' conftest.$ac_ext >&5
13698
13699( exit $ac_status )
13700ac_cv_sizeof_int=0
Bram Moolenaar071d4272004-06-13 20:20:40 +000013701fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013702rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13703fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013704fi
13705
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013706echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13707echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13708cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013709#define SIZEOF_INT $ac_cv_sizeof_int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013710_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013711
13712
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013713echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
13714echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013715bcopy_test_prog='
13716main() {
13717 char buf[10];
13718 strcpy(buf, "abcdefghi");
13719 mch_memmove(buf, buf + 2, 3);
13720 if (strncmp(buf, "ababcf", 6))
13721 exit(1);
13722 strcpy(buf, "abcdefghi");
13723 mch_memmove(buf + 2, buf, 3);
13724 if (strncmp(buf, "cdedef", 6))
13725 exit(1);
13726 exit(0); /* libc version works properly. */
13727}'
13728
13729
13730if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013731 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13732echo "$as_me: error: failed to compile test program" >&2;}
13733 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013734else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013735 cat >conftest.$ac_ext <<_ACEOF
13736/* confdefs.h. */
13737_ACEOF
13738cat confdefs.h >>conftest.$ac_ext
13739cat >>conftest.$ac_ext <<_ACEOF
13740/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013741#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013742_ACEOF
13743rm -f conftest$ac_exeext
13744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13745 (eval $ac_link) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); }; }; then
13754 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013755#define USEMEMMOVE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013756_ACEOF
13757 echo "$as_me:$LINENO: result: memmove does" >&5
13758echo "${ECHO_T}memmove does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013759else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013760 echo "$as_me: program exited with status $ac_status" >&5
13761echo "$as_me: failed program was:" >&5
13762sed 's/^/| /' conftest.$ac_ext >&5
13763
13764( exit $ac_status )
13765if test "$cross_compiling" = yes; then
13766 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13767echo "$as_me: error: failed to compile test program" >&2;}
13768 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013769else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013770 cat >conftest.$ac_ext <<_ACEOF
13771/* confdefs.h. */
13772_ACEOF
13773cat confdefs.h >>conftest.$ac_ext
13774cat >>conftest.$ac_ext <<_ACEOF
13775/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013776#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013777_ACEOF
13778rm -f conftest$ac_exeext
13779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13780 (eval $ac_link) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; }; then
13789 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013790#define USEBCOPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013791_ACEOF
13792 echo "$as_me:$LINENO: result: bcopy does" >&5
13793echo "${ECHO_T}bcopy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013794else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013795 echo "$as_me: program exited with status $ac_status" >&5
13796echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
13799( exit $ac_status )
13800if test "$cross_compiling" = yes; then
13801 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13802echo "$as_me: error: failed to compile test program" >&2;}
13803 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013804else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013805 cat >conftest.$ac_ext <<_ACEOF
13806/* confdefs.h. */
13807_ACEOF
13808cat confdefs.h >>conftest.$ac_ext
13809cat >>conftest.$ac_ext <<_ACEOF
13810/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013811#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013812_ACEOF
13813rm -f conftest$ac_exeext
13814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13815 (eval $ac_link) 2>&5
13816 ac_status=$?
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); }; }; then
13824 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013825#define USEMEMCPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013826_ACEOF
13827 echo "$as_me:$LINENO: result: memcpy does" >&5
13828echo "${ECHO_T}memcpy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013829else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013830 echo "$as_me: program exited with status $ac_status" >&5
13831echo "$as_me: failed program was:" >&5
13832sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013833
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013834( exit $ac_status )
13835echo "$as_me:$LINENO: result: no" >&5
13836echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013837fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013838rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013839fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013840fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013841rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013842fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013843fi
13844rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13845fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013846
13847
13848if test "$enable_multibyte" = "yes"; then
13849 cflags_save=$CFLAGS
13850 ldflags_save=$LDFLAGS
13851 if test -n "$x_includes" ; then
13852 CFLAGS="$CFLAGS -I$x_includes"
13853 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013854 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
13855echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
13856 cat >conftest.$ac_ext <<_ACEOF
13857/* confdefs.h. */
13858_ACEOF
13859cat confdefs.h >>conftest.$ac_ext
13860cat >>conftest.$ac_ext <<_ACEOF
13861/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013862#include <X11/Xlocale.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013863int
13864main ()
13865{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013866
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013867 ;
13868 return 0;
13869}
13870_ACEOF
13871rm -f conftest.$ac_objext
13872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13873 (eval $ac_compile) 2>conftest.er1
13874 ac_status=$?
13875 grep -v '^ *+' conftest.er1 >conftest.err
13876 rm -f conftest.er1
13877 cat conftest.err >&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try='test -z "$ac_c_werror_flag"
13881 || test ! -s conftest.err'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13884 ac_status=$?
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try='test -s conftest.$ac_objext'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13893 cat >conftest.$ac_ext <<_ACEOF
13894/* confdefs.h. */
13895_ACEOF
13896cat confdefs.h >>conftest.$ac_ext
13897cat >>conftest.$ac_ext <<_ACEOF
13898/* end confdefs.h. */
13899
Bram Moolenaar071d4272004-06-13 20:20:40 +000013900/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013901#ifdef __cplusplus
13902extern "C"
13903#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013904/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013905 builtin and then its argument prototype would still apply. */
13906char _Xsetlocale ();
13907int
13908main ()
13909{
13910_Xsetlocale ();
13911 ;
13912 return 0;
13913}
13914_ACEOF
13915rm -f conftest.$ac_objext conftest$ac_exeext
13916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13917 (eval $ac_link) 2>conftest.er1
13918 ac_status=$?
13919 grep -v '^ *+' conftest.er1 >conftest.err
13920 rm -f conftest.er1
13921 cat conftest.err >&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } &&
13924 { ac_try='test -z "$ac_c_werror_flag"
13925 || test ! -s conftest.err'
13926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13928 ac_status=$?
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; } &&
13931 { ac_try='test -s conftest$ac_exeext'
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
13937 echo "$as_me:$LINENO: result: yes" >&5
13938echo "${ECHO_T}yes" >&6
13939 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013940#define X_LOCALE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013941_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013942
13943else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013944 echo "$as_me: failed program was:" >&5
13945sed 's/^/| /' conftest.$ac_ext >&5
13946
13947echo "$as_me:$LINENO: result: no" >&5
13948echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013949fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013950rm -f conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013952else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013953 echo "$as_me: failed program was:" >&5
13954sed 's/^/| /' conftest.$ac_ext >&5
13955
13956echo "$as_me:$LINENO: result: no" >&5
13957echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013958fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013960 fi
13961 CFLAGS=$cflags_save
13962 LDFLAGS=$ldflags_save
13963fi
13964
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013965echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
13966echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
13967if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013969else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013970 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013971LIBS="-lxpg4 $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013972cat >conftest.$ac_ext <<_ACEOF
13973/* confdefs.h. */
13974_ACEOF
13975cat confdefs.h >>conftest.$ac_ext
13976cat >>conftest.$ac_ext <<_ACEOF
13977/* end confdefs.h. */
13978
Bram Moolenaar071d4272004-06-13 20:20:40 +000013979/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013980#ifdef __cplusplus
13981extern "C"
13982#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013983/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013984 builtin and then its argument prototype would still apply. */
13985char _xpg4_setrunelocale ();
13986int
13987main ()
13988{
13989_xpg4_setrunelocale ();
13990 ;
13991 return 0;
13992}
13993_ACEOF
13994rm -f conftest.$ac_objext conftest$ac_exeext
13995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13996 (eval $ac_link) 2>conftest.er1
13997 ac_status=$?
13998 grep -v '^ *+' conftest.er1 >conftest.err
13999 rm -f conftest.er1
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } &&
14003 { ac_try='test -z "$ac_c_werror_flag"
14004 || test ! -s conftest.err'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14007 ac_status=$?
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try='test -s conftest$ac_exeext'
14011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14012 (eval $ac_try) 2>&5
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); }; }; then
14016 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014017else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014018 echo "$as_me: failed program was:" >&5
14019sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014020
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014021ac_cv_lib_xpg4__xpg4_setrunelocale=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014022fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014023rm -f conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
14025LIBS=$ac_check_lib_save_LIBS
14026fi
14027echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14028echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14029if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014030 LIBS="$LIBS -lxpg4"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014031fi
14032
14033
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014034echo "$as_me:$LINENO: checking how to create tags" >&5
14035echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014036test -f tags && mv tags tags.save
14037if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
Bram Moolenaar78984f52005-08-01 07:19:10 +000014038 TAGPRG="ctags -I INIT+"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014039else
14040 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14041 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14042 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14043 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14044 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14045 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14046 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14047fi
14048test -f tags.save && mv tags.save tags
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014049echo "$as_me:$LINENO: result: $TAGPRG" >&5
14050echo "${ECHO_T}$TAGPRG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014051
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014052echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14053echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014054MANDEF="man"
14055(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014056echo "$as_me:$LINENO: result: $MANDEF" >&5
14057echo "${ECHO_T}$MANDEF" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014058if test "$MANDEF" = "man -s"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014059 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014060#define USEMAN_S 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014061_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014062
14063fi
14064
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014065echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14066echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014067# Check whether --enable-nls or --disable-nls was given.
14068if test "${enable_nls+set}" = set; then
14069 enableval="$enable_nls"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014070
Bram Moolenaar071d4272004-06-13 20:20:40 +000014071else
14072 enable_nls="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014073fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014074
14075if test "$enable_nls" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014076 echo "$as_me:$LINENO: result: no" >&5
14077echo "${ECHO_T}no" >&6
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000014078
14079 INSTALL_LANGS=install-languages
14080
14081 INSTALL_TOOL_LANGS=install-tool-languages
14082
14083
Bram Moolenaar071d4272004-06-13 20:20:40 +000014084 # Extract the first word of "msgfmt", so it can be a program name with args.
14085set dummy msgfmt; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014086echo "$as_me:$LINENO: checking for $ac_word" >&5
14087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14088if test "${ac_cv_prog_MSGFMT+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014090else
14091 if test -n "$MSGFMT"; then
14092 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14093else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095for as_dir in $PATH
14096do
14097 IFS=$as_save_IFS
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101 ac_cv_prog_MSGFMT="msgfmt"
14102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14103 break 2
14104 fi
14105done
14106done
14107
Bram Moolenaar071d4272004-06-13 20:20:40 +000014108fi
14109fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014110MSGFMT=$ac_cv_prog_MSGFMT
Bram Moolenaar071d4272004-06-13 20:20:40 +000014111if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014112 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14113echo "${ECHO_T}$MSGFMT" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014114else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014115 echo "$as_me:$LINENO: result: no" >&5
14116echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014117fi
14118
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014119 echo "$as_me:$LINENO: checking for NLS" >&5
14120echo $ECHO_N "checking for NLS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014121 if test -f po/Makefile; then
14122 have_gettext="no"
14123 if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014124 cat >conftest.$ac_ext <<_ACEOF
14125/* confdefs.h. */
14126_ACEOF
14127cat confdefs.h >>conftest.$ac_ext
14128cat >>conftest.$ac_ext <<_ACEOF
14129/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014130#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014131int
14132main ()
14133{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014134gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014135 ;
14136 return 0;
14137}
14138_ACEOF
14139rm -f conftest.$ac_objext conftest$ac_exeext
14140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14141 (eval $ac_link) 2>conftest.er1
14142 ac_status=$?
14143 grep -v '^ *+' conftest.er1 >conftest.err
14144 rm -f conftest.er1
14145 cat conftest.err >&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -z "$ac_c_werror_flag"
14149 || test ! -s conftest.err'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; } &&
14155 { ac_try='test -s conftest$ac_exeext'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 echo "$as_me:$LINENO: result: gettext() works" >&5
14162echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014163else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014164 echo "$as_me: failed program was:" >&5
14165sed 's/^/| /' conftest.$ac_ext >&5
14166
14167olibs=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014168 LIBS="$LIBS -lintl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014169 cat >conftest.$ac_ext <<_ACEOF
14170/* confdefs.h. */
14171_ACEOF
14172cat confdefs.h >>conftest.$ac_ext
14173cat >>conftest.$ac_ext <<_ACEOF
14174/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014175#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014176int
14177main ()
14178{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014179gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014180 ;
14181 return 0;
14182}
14183_ACEOF
14184rm -f conftest.$ac_objext conftest$ac_exeext
14185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14186 (eval $ac_link) 2>conftest.er1
14187 ac_status=$?
14188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -z "$ac_c_werror_flag"
14194 || test ! -s conftest.err'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; } &&
14200 { ac_try='test -s conftest$ac_exeext'
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
14206 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
14207echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014208else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014209 echo "$as_me: failed program was:" >&5
14210sed 's/^/| /' conftest.$ac_ext >&5
14211
14212echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
14213echo "${ECHO_T}gettext() doesn't work" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014214 LIBS=$olibs
14215fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014216rm -f conftest.err conftest.$ac_objext \
14217 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014218fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014219rm -f conftest.err conftest.$ac_objext \
14220 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014221 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014222 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
14223echo "${ECHO_T}msgfmt not found - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014224 fi
14225 if test $have_gettext = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014226 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014227#define HAVE_GETTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014228_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014229
14230 MAKEMO=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014231
14232
14233for ac_func in bind_textdomain_codeset
Bram Moolenaar071d4272004-06-13 20:20:40 +000014234do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014235as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14236echo "$as_me:$LINENO: checking for $ac_func" >&5
14237echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14238if eval "test \"\${$as_ac_var+set}\" = set"; then
14239 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014240else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014241 cat >conftest.$ac_ext <<_ACEOF
14242/* confdefs.h. */
14243_ACEOF
14244cat confdefs.h >>conftest.$ac_ext
14245cat >>conftest.$ac_ext <<_ACEOF
14246/* end confdefs.h. */
14247/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14249#define $ac_func innocuous_$ac_func
14250
Bram Moolenaar071d4272004-06-13 20:20:40 +000014251/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014252 which can conflict with char $ac_func (); below.
14253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14254 <limits.h> exists even on freestanding compilers. */
14255
14256#ifdef __STDC__
14257# include <limits.h>
14258#else
14259# include <assert.h>
14260#endif
14261
14262#undef $ac_func
14263
Bram Moolenaar071d4272004-06-13 20:20:40 +000014264/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014265#ifdef __cplusplus
14266extern "C"
14267{
14268#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014269/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014270 builtin and then its argument prototype would still apply. */
14271char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000014272/* The GNU C library defines this for functions which it implements
14273 to always fail with ENOSYS. Some functions are actually named
14274 something starting with __ and the normal name is an alias. */
14275#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14276choke me
14277#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014278char (*f) () = $ac_func;
14279#endif
14280#ifdef __cplusplus
14281}
Bram Moolenaar071d4272004-06-13 20:20:40 +000014282#endif
14283
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014284int
14285main ()
14286{
14287return f != $ac_func;
14288 ;
14289 return 0;
14290}
14291_ACEOF
14292rm -f conftest.$ac_objext conftest$ac_exeext
14293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14294 (eval $ac_link) 2>conftest.er1
14295 ac_status=$?
14296 grep -v '^ *+' conftest.er1 >conftest.err
14297 rm -f conftest.er1
14298 cat conftest.err >&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -z "$ac_c_werror_flag"
14302 || test ! -s conftest.err'
14303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14304 (eval $ac_try) 2>&5
14305 ac_status=$?
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); }; } &&
14308 { ac_try='test -s conftest$ac_exeext'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14311 ac_status=$?
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014315else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014316 echo "$as_me: failed program was:" >&5
14317sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014318
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014319eval "$as_ac_var=no"
14320fi
14321rm -f conftest.err conftest.$ac_objext \
14322 conftest$ac_exeext conftest.$ac_ext
14323fi
14324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14325echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14326if test `eval echo '${'$as_ac_var'}'` = yes; then
14327 cat >>confdefs.h <<_ACEOF
14328#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14329_ACEOF
14330
Bram Moolenaar071d4272004-06-13 20:20:40 +000014331fi
14332done
14333
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014334 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
14335echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
14336 cat >conftest.$ac_ext <<_ACEOF
14337/* confdefs.h. */
14338_ACEOF
14339cat confdefs.h >>conftest.$ac_ext
14340cat >>conftest.$ac_ext <<_ACEOF
14341/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014342#include <libintl.h>
14343 extern int _nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014344int
14345main ()
14346{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014347++_nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014348 ;
14349 return 0;
14350}
14351_ACEOF
14352rm -f conftest.$ac_objext conftest$ac_exeext
14353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14354 (eval $ac_link) 2>conftest.er1
14355 ac_status=$?
14356 grep -v '^ *+' conftest.er1 >conftest.err
14357 rm -f conftest.er1
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
14361 { ac_try='test -z "$ac_c_werror_flag"
14362 || test ! -s conftest.err'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; } &&
14368 { ac_try='test -s conftest$ac_exeext'
14369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14370 (eval $ac_try) 2>&5
14371 ac_status=$?
14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373 (exit $ac_status); }; }; then
14374 echo "$as_me:$LINENO: result: yes" >&5
14375echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014376#define HAVE_NL_MSG_CAT_CNTR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014377_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014378
14379else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014380 echo "$as_me: failed program was:" >&5
14381sed 's/^/| /' conftest.$ac_ext >&5
14382
14383echo "$as_me:$LINENO: result: no" >&5
14384echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014385fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014386rm -f conftest.err conftest.$ac_objext \
14387 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014388 fi
14389 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014390 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
14391echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014392 fi
14393else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014394 echo "$as_me:$LINENO: result: yes" >&5
14395echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014396fi
14397
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014398if test "${ac_cv_header_dlfcn_h+set}" = set; then
14399 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14400echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14401if test "${ac_cv_header_dlfcn_h+set}" = set; then
14402 echo $ECHO_N "(cached) $ECHO_C" >&6
14403fi
14404echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14405echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014406else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014407 # Is the header compilable?
14408echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
14409echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
14410cat >conftest.$ac_ext <<_ACEOF
14411/* confdefs.h. */
14412_ACEOF
14413cat confdefs.h >>conftest.$ac_ext
14414cat >>conftest.$ac_ext <<_ACEOF
14415/* end confdefs.h. */
14416$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014417#include <dlfcn.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014418_ACEOF
14419rm -f conftest.$ac_objext
14420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421 (eval $ac_compile) 2>conftest.er1
14422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
14428 { ac_try='test -z "$ac_c_werror_flag"
14429 || test ! -s conftest.err'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; } &&
14435 { ac_try='test -s conftest.$ac_objext'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14438 ac_status=$?
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14441 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014442else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014443 echo "$as_me: failed program was:" >&5
14444sed 's/^/| /' conftest.$ac_ext >&5
14445
14446ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014447fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14450echo "${ECHO_T}$ac_header_compiler" >&6
14451
14452# Is the header present?
14453echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
14454echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
14455cat >conftest.$ac_ext <<_ACEOF
14456/* confdefs.h. */
14457_ACEOF
14458cat confdefs.h >>conftest.$ac_ext
14459cat >>conftest.$ac_ext <<_ACEOF
14460/* end confdefs.h. */
14461#include <dlfcn.h>
14462_ACEOF
14463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14465 ac_status=$?
14466 grep -v '^ *+' conftest.er1 >conftest.err
14467 rm -f conftest.er1
14468 cat conftest.err >&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } >/dev/null; then
14471 if test -s conftest.err; then
14472 ac_cpp_err=$ac_c_preproc_warn_flag
14473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14474 else
14475 ac_cpp_err=
14476 fi
14477else
14478 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014479fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014480if test -z "$ac_cpp_err"; then
14481 ac_header_preproc=yes
14482else
14483 echo "$as_me: failed program was:" >&5
14484sed 's/^/| /' conftest.$ac_ext >&5
14485
14486 ac_header_preproc=no
14487fi
14488rm -f conftest.err conftest.$ac_ext
14489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14490echo "${ECHO_T}$ac_header_preproc" >&6
14491
14492# So? What about this header?
14493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14494 yes:no: )
14495 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
14496echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14497 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
14498echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
14499 ac_header_preproc=yes
14500 ;;
14501 no:yes:* )
14502 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
14503echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
14504 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
14505echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
14506 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
14507echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
14508 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
14509echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
14511echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
14513echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
14514 (
14515 cat <<\_ASBOX
14516## ------------------------------------------ ##
14517## Report this to the AC_PACKAGE_NAME lists. ##
14518## ------------------------------------------ ##
14519_ASBOX
14520 ) |
14521 sed "s/^/$as_me: WARNING: /" >&2
14522 ;;
14523esac
14524echo "$as_me:$LINENO: checking for dlfcn.h" >&5
14525echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
14526if test "${ac_cv_header_dlfcn_h+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528else
14529 ac_cv_header_dlfcn_h=$ac_header_preproc
14530fi
14531echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
14532echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
14533
14534fi
14535if test $ac_cv_header_dlfcn_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014536 DLL=dlfcn.h
14537else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014538 if test "${ac_cv_header_dl_h+set}" = set; then
14539 echo "$as_me:$LINENO: checking for dl.h" >&5
14540echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14541if test "${ac_cv_header_dl_h+set}" = set; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14543fi
14544echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14545echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014546else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014547 # Is the header compilable?
14548echo "$as_me:$LINENO: checking dl.h usability" >&5
14549echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
14550cat >conftest.$ac_ext <<_ACEOF
14551/* confdefs.h. */
14552_ACEOF
14553cat confdefs.h >>conftest.$ac_ext
14554cat >>conftest.$ac_ext <<_ACEOF
14555/* end confdefs.h. */
14556$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000014557#include <dl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014558_ACEOF
14559rm -f conftest.$ac_objext
14560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14561 (eval $ac_compile) 2>conftest.er1
14562 ac_status=$?
14563 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } &&
14568 { ac_try='test -z "$ac_c_werror_flag"
14569 || test ! -s conftest.err'
14570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571 (eval $ac_try) 2>&5
14572 ac_status=$?
14573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574 (exit $ac_status); }; } &&
14575 { ac_try='test -s conftest.$ac_objext'
14576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14578 ac_status=$?
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014582else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014583 echo "$as_me: failed program was:" >&5
14584sed 's/^/| /' conftest.$ac_ext >&5
14585
14586ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014587fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14589echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14590echo "${ECHO_T}$ac_header_compiler" >&6
14591
14592# Is the header present?
14593echo "$as_me:$LINENO: checking dl.h presence" >&5
14594echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
14595cat >conftest.$ac_ext <<_ACEOF
14596/* confdefs.h. */
14597_ACEOF
14598cat confdefs.h >>conftest.$ac_ext
14599cat >>conftest.$ac_ext <<_ACEOF
14600/* end confdefs.h. */
14601#include <dl.h>
14602_ACEOF
14603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14605 ac_status=$?
14606 grep -v '^ *+' conftest.er1 >conftest.err
14607 rm -f conftest.er1
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } >/dev/null; then
14611 if test -s conftest.err; then
14612 ac_cpp_err=$ac_c_preproc_warn_flag
14613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14614 else
14615 ac_cpp_err=
14616 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014617else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014618 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014619fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014620if test -z "$ac_cpp_err"; then
14621 ac_header_preproc=yes
14622else
14623 echo "$as_me: failed program was:" >&5
14624sed 's/^/| /' conftest.$ac_ext >&5
14625
14626 ac_header_preproc=no
14627fi
14628rm -f conftest.err conftest.$ac_ext
14629echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14630echo "${ECHO_T}$ac_header_preproc" >&6
14631
14632# So? What about this header?
14633case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14634 yes:no: )
14635 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14636echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
14638echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
14639 ac_header_preproc=yes
14640 ;;
14641 no:yes:* )
14642 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
14643echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
14645echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
14647echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
14649echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
14651echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
14653echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
14654 (
14655 cat <<\_ASBOX
14656## ------------------------------------------ ##
14657## Report this to the AC_PACKAGE_NAME lists. ##
14658## ------------------------------------------ ##
14659_ASBOX
14660 ) |
14661 sed "s/^/$as_me: WARNING: /" >&2
14662 ;;
14663esac
14664echo "$as_me:$LINENO: checking for dl.h" >&5
14665echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
14666if test "${ac_cv_header_dl_h+set}" = set; then
14667 echo $ECHO_N "(cached) $ECHO_C" >&6
14668else
14669 ac_cv_header_dl_h=$ac_header_preproc
14670fi
14671echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
14672echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014673
14674fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014675if test $ac_cv_header_dl_h = yes; then
14676 DLL=dl.h
14677fi
14678
14679
14680fi
14681
Bram Moolenaar071d4272004-06-13 20:20:40 +000014682
14683if test x${DLL} = xdlfcn.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014684
14685cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014686#define HAVE_DLFCN_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014687_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014688
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014689 echo "$as_me:$LINENO: checking for dlopen()" >&5
14690echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
14691 cat >conftest.$ac_ext <<_ACEOF
14692/* confdefs.h. */
14693_ACEOF
14694cat confdefs.h >>conftest.$ac_ext
14695cat >>conftest.$ac_ext <<_ACEOF
14696/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014697
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014698int
14699main ()
14700{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014701
14702 extern void* dlopen();
14703 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014704
14705 ;
14706 return 0;
14707}
14708_ACEOF
14709rm -f conftest.$ac_objext conftest$ac_exeext
14710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14711 (eval $ac_link) 2>conftest.er1
14712 ac_status=$?
14713 grep -v '^ *+' conftest.er1 >conftest.err
14714 rm -f conftest.er1
14715 cat conftest.err >&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -z "$ac_c_werror_flag"
14719 || test ! -s conftest.err'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14722 ac_status=$?
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; } &&
14725 { ac_try='test -s conftest$ac_exeext'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14728 ac_status=$?
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; }; then
14731 echo "$as_me:$LINENO: result: yes" >&5
14732echo "${ECHO_T}yes" >&6;
14733
14734cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014735#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014736_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014737
14738else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014739 echo "$as_me: failed program was:" >&5
14740sed 's/^/| /' conftest.$ac_ext >&5
14741
14742echo "$as_me:$LINENO: result: no" >&5
14743echo "${ECHO_T}no" >&6;
14744 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
14745echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014746 olibs=$LIBS
14747 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014748 cat >conftest.$ac_ext <<_ACEOF
14749/* confdefs.h. */
14750_ACEOF
14751cat confdefs.h >>conftest.$ac_ext
14752cat >>conftest.$ac_ext <<_ACEOF
14753/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014754
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014755int
14756main ()
14757{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014758
14759 extern void* dlopen();
14760 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014761
14762 ;
14763 return 0;
14764}
14765_ACEOF
14766rm -f conftest.$ac_objext conftest$ac_exeext
14767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14768 (eval $ac_link) 2>conftest.er1
14769 ac_status=$?
14770 grep -v '^ *+' conftest.er1 >conftest.err
14771 rm -f conftest.er1
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } &&
14775 { ac_try='test -z "$ac_c_werror_flag"
14776 || test ! -s conftest.err'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest$ac_exeext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 echo "$as_me:$LINENO: result: yes" >&5
14789echo "${ECHO_T}yes" >&6;
14790
14791cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014792#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014793_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014794
14795else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014796 echo "$as_me: failed program was:" >&5
14797sed 's/^/| /' conftest.$ac_ext >&5
14798
14799echo "$as_me:$LINENO: result: no" >&5
14800echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014801 LIBS=$olibs
14802fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014803rm -f conftest.err conftest.$ac_objext \
14804 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014805fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014806rm -f conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
14808 echo "$as_me:$LINENO: checking for dlsym()" >&5
14809echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
14810 cat >conftest.$ac_ext <<_ACEOF
14811/* confdefs.h. */
14812_ACEOF
14813cat confdefs.h >>conftest.$ac_ext
14814cat >>conftest.$ac_ext <<_ACEOF
14815/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014816
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014817int
14818main ()
14819{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014820
14821 extern void* dlsym();
14822 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014823
14824 ;
14825 return 0;
14826}
14827_ACEOF
14828rm -f conftest.$ac_objext conftest$ac_exeext
14829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14830 (eval $ac_link) 2>conftest.er1
14831 ac_status=$?
14832 grep -v '^ *+' conftest.er1 >conftest.err
14833 rm -f conftest.er1
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
14837 { ac_try='test -z "$ac_c_werror_flag"
14838 || test ! -s conftest.err'
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; } &&
14844 { ac_try='test -s conftest$ac_exeext'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 echo "$as_me:$LINENO: result: yes" >&5
14851echo "${ECHO_T}yes" >&6;
14852
14853cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014854#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014855_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014856
14857else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
14860
14861echo "$as_me:$LINENO: result: no" >&5
14862echo "${ECHO_T}no" >&6;
14863 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
14864echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014865 olibs=$LIBS
14866 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014867 cat >conftest.$ac_ext <<_ACEOF
14868/* confdefs.h. */
14869_ACEOF
14870cat confdefs.h >>conftest.$ac_ext
14871cat >>conftest.$ac_ext <<_ACEOF
14872/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014873
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014874int
14875main ()
14876{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014877
14878 extern void* dlsym();
14879 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014880
14881 ;
14882 return 0;
14883}
14884_ACEOF
14885rm -f conftest.$ac_objext conftest$ac_exeext
14886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14887 (eval $ac_link) 2>conftest.er1
14888 ac_status=$?
14889 grep -v '^ *+' conftest.er1 >conftest.err
14890 rm -f conftest.er1
14891 cat conftest.err >&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); } &&
14894 { ac_try='test -z "$ac_c_werror_flag"
14895 || test ! -s conftest.err'
14896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14897 (eval $ac_try) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); }; } &&
14901 { ac_try='test -s conftest$ac_exeext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 echo "$as_me:$LINENO: result: yes" >&5
14908echo "${ECHO_T}yes" >&6;
14909
14910cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014911#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014912_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014913
14914else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014915 echo "$as_me: failed program was:" >&5
14916sed 's/^/| /' conftest.$ac_ext >&5
14917
14918echo "$as_me:$LINENO: result: no" >&5
14919echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014920 LIBS=$olibs
14921fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014922rm -f conftest.err conftest.$ac_objext \
14923 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014924fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014925rm -f conftest.err conftest.$ac_objext \
14926 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014927elif test x${DLL} = xdl.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014928
14929cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014930#define HAVE_DL_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014931_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014932
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014933 echo "$as_me:$LINENO: checking for shl_load()" >&5
14934echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
14935 cat >conftest.$ac_ext <<_ACEOF
14936/* confdefs.h. */
14937_ACEOF
14938cat confdefs.h >>conftest.$ac_ext
14939cat >>conftest.$ac_ext <<_ACEOF
14940/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014941
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014942int
14943main ()
14944{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014945
14946 extern void* shl_load();
14947 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014948
14949 ;
14950 return 0;
14951}
14952_ACEOF
14953rm -f conftest.$ac_objext conftest$ac_exeext
14954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14955 (eval $ac_link) 2>conftest.er1
14956 ac_status=$?
14957 grep -v '^ *+' conftest.er1 >conftest.err
14958 rm -f conftest.er1
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } &&
14962 { ac_try='test -z "$ac_c_werror_flag"
14963 || test ! -s conftest.err'
14964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965 (eval $ac_try) 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; } &&
14969 { ac_try='test -s conftest$ac_exeext'
14970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971 (eval $ac_try) 2>&5
14972 ac_status=$?
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; }; then
14975 echo "$as_me:$LINENO: result: yes" >&5
14976echo "${ECHO_T}yes" >&6;
14977
14978cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014979#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014980_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014981
14982else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014983 echo "$as_me: failed program was:" >&5
14984sed 's/^/| /' conftest.$ac_ext >&5
14985
14986echo "$as_me:$LINENO: result: no" >&5
14987echo "${ECHO_T}no" >&6;
14988 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
14989echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014990 olibs=$LIBS
14991 LIBS="$LIBS -ldld"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014992 cat >conftest.$ac_ext <<_ACEOF
14993/* confdefs.h. */
14994_ACEOF
14995cat confdefs.h >>conftest.$ac_ext
14996cat >>conftest.$ac_ext <<_ACEOF
14997/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014998
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014999int
15000main ()
15001{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015002
15003 extern void* shl_load();
15004 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015005
15006 ;
15007 return 0;
15008}
15009_ACEOF
15010rm -f conftest.$ac_objext conftest$ac_exeext
15011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15012 (eval $ac_link) 2>conftest.er1
15013 ac_status=$?
15014 grep -v '^ *+' conftest.er1 >conftest.err
15015 rm -f conftest.er1
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } &&
15019 { ac_try='test -z "$ac_c_werror_flag"
15020 || test ! -s conftest.err'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest$ac_exeext'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15032 echo "$as_me:$LINENO: result: yes" >&5
15033echo "${ECHO_T}yes" >&6;
15034
15035cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015036#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015037_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015038
15039else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015040 echo "$as_me: failed program was:" >&5
15041sed 's/^/| /' conftest.$ac_ext >&5
15042
15043echo "$as_me:$LINENO: result: no" >&5
15044echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015045 LIBS=$olibs
15046fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015047rm -f conftest.err conftest.$ac_objext \
15048 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015049fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015050rm -f conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015052fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015053
15054for ac_header in setjmp.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000015055do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015056as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15057if eval "test \"\${$as_ac_Header+set}\" = set"; then
15058 echo "$as_me:$LINENO: checking for $ac_header" >&5
15059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15060if eval "test \"\${$as_ac_Header+set}\" = set"; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015062fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015065else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015066 # Is the header compilable?
15067echo "$as_me:$LINENO: checking $ac_header usability" >&5
15068echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15069cat >conftest.$ac_ext <<_ACEOF
15070/* confdefs.h. */
15071_ACEOF
15072cat confdefs.h >>conftest.$ac_ext
15073cat >>conftest.$ac_ext <<_ACEOF
15074/* end confdefs.h. */
15075$ac_includes_default
15076#include <$ac_header>
15077_ACEOF
15078rm -f conftest.$ac_objext
15079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15080 (eval $ac_compile) 2>conftest.er1
15081 ac_status=$?
15082 grep -v '^ *+' conftest.er1 >conftest.err
15083 rm -f conftest.er1
15084 cat conftest.err >&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
15087 { ac_try='test -z "$ac_c_werror_flag"
15088 || test ! -s conftest.err'
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest.$ac_objext'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_header_compiler=yes
15101else
15102 echo "$as_me: failed program was:" >&5
15103sed 's/^/| /' conftest.$ac_ext >&5
15104
15105ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015106fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15108echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15109echo "${ECHO_T}$ac_header_compiler" >&6
15110
15111# Is the header present?
15112echo "$as_me:$LINENO: checking $ac_header presence" >&5
15113echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15114cat >conftest.$ac_ext <<_ACEOF
15115/* confdefs.h. */
15116_ACEOF
15117cat confdefs.h >>conftest.$ac_ext
15118cat >>conftest.$ac_ext <<_ACEOF
15119/* end confdefs.h. */
15120#include <$ac_header>
15121_ACEOF
15122if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15123 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15124 ac_status=$?
15125 grep -v '^ *+' conftest.er1 >conftest.err
15126 rm -f conftest.er1
15127 cat conftest.err >&5
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); } >/dev/null; then
15130 if test -s conftest.err; then
15131 ac_cpp_err=$ac_c_preproc_warn_flag
15132 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15133 else
15134 ac_cpp_err=
15135 fi
15136else
15137 ac_cpp_err=yes
15138fi
15139if test -z "$ac_cpp_err"; then
15140 ac_header_preproc=yes
15141else
15142 echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5
15144
15145 ac_header_preproc=no
15146fi
15147rm -f conftest.err conftest.$ac_ext
15148echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15149echo "${ECHO_T}$ac_header_preproc" >&6
15150
15151# So? What about this header?
15152case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15153 yes:no: )
15154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15155echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15157echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15158 ac_header_preproc=yes
15159 ;;
15160 no:yes:* )
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15162echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15164echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15166echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15168echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15170echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15172echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15173 (
15174 cat <<\_ASBOX
15175## ------------------------------------------ ##
15176## Report this to the AC_PACKAGE_NAME lists. ##
15177## ------------------------------------------ ##
15178_ASBOX
15179 ) |
15180 sed "s/^/$as_me: WARNING: /" >&2
15181 ;;
15182esac
15183echo "$as_me:$LINENO: checking for $ac_header" >&5
15184echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15185if eval "test \"\${$as_ac_Header+set}\" = set"; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15187else
15188 eval "$as_ac_Header=\$ac_header_preproc"
15189fi
15190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15191echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15192
15193fi
15194if test `eval echo '${'$as_ac_Header'}'` = yes; then
15195 cat >>confdefs.h <<_ACEOF
15196#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15197_ACEOF
15198
15199fi
15200
Bram Moolenaar071d4272004-06-13 20:20:40 +000015201done
15202
15203
15204if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
15205 if echo $LIBS | grep -e '-ldl' >/dev/null; then
15206 LIBS=`echo $LIBS | sed s/-ldl//`
15207 PERL_LIBS="$PERL_LIBS -ldl"
15208 fi
15209fi
15210
15211if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
15212 && test "x$GUITYPE" != "xCARBONGUI"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015213 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
15214echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015215 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
15216 || test "x$features" = "xhuge"; then
15217 LIBS="$LIBS -framework Carbon"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015218 echo "$as_me:$LINENO: result: yes" >&5
15219echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015220 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015221 echo "$as_me:$LINENO: result: no" >&5
15222echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015223 fi
15224fi
15225
Bram Moolenaara5792f52005-11-23 21:25:05 +000015226echo "$as_me:$LINENO: checking for GCC 3 or later" >&5
15227echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015228DEPEND_CFLAGS_FILTER=
15229if test "$GCC" = yes; then
Bram Moolenaar32466aa2006-02-24 23:53:04 +000015230 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 +000015231 if test "$gccmajor" -gt "2"; then
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015232 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'"
15233 fi
15234fi
Bram Moolenaara5792f52005-11-23 21:25:05 +000015235if test "$DEPEND_CFLAGS_FILTER" = ""; then
15236 echo "$as_me:$LINENO: result: no" >&5
15237echo "${ECHO_T}no" >&6
15238else
15239 echo "$as_me:$LINENO: result: yes" >&5
15240echo "${ECHO_T}yes" >&6
15241fi
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015242
Bram Moolenaar071d4272004-06-13 20:20:40 +000015243
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015244 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
15245cat >confcache <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015246# This file is a shell script that caches the results of configure
15247# tests run on this system so they can be shared between configure
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015248# scripts and configure runs, see configure's option --config-cache.
15249# It is not useful on other systems. If it contains results you don't
15250# want to keep, you may remove or edit it.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015251#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015252# config.status only pays attention to the cache file if you give it
15253# the --recheck option to rerun configure.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015254#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015255# `ac_cv_env_foo' variables (set or unset) will be overridden when
15256# loading this file, other *unset* `ac_cv_foo' will be assigned the
15257# following values.
15258
15259_ACEOF
15260
Bram Moolenaar071d4272004-06-13 20:20:40 +000015261# The following way of writing the cache mishandles newlines in values,
15262# but we know of no workaround that is simple, portable, and efficient.
15263# So, don't put newlines in cache variables' values.
15264# Ultrix sh set writes to stderr and can't be redirected directly,
15265# and sets the high bit in the cache file unless we assign to the vars.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015266{
15267 (set) 2>&1 |
15268 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15269 *ac_space=\ *)
15270 # `set' does not quote correctly, so add quotes (double-quote
15271 # substitution turns \\\\ into \\, and sed turns \\ into \).
15272 sed -n \
15273 "s/'/'\\\\''/g;
15274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15275 ;;
15276 *)
15277 # `set' quotes correctly as required by POSIX, so do not add quotes.
15278 sed -n \
15279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15280 ;;
15281 esac;
15282} |
15283 sed '
15284 t clear
15285 : clear
15286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15287 t end
15288 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15289 : end' >>confcache
15290if diff $cache_file confcache >/dev/null 2>&1; then :; else
Bram Moolenaar071d4272004-06-13 20:20:40 +000015291 if test -w $cache_file; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015292 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15293 cat confcache >$cache_file
Bram Moolenaar071d4272004-06-13 20:20:40 +000015294 else
15295 echo "not updating unwritable cache $cache_file"
15296 fi
15297fi
15298rm -f confcache
15299
Bram Moolenaar071d4272004-06-13 20:20:40 +000015300test "x$prefix" = xNONE && prefix=$ac_default_prefix
15301# Let make expand exec_prefix.
15302test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15303
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015304# VPATH may cause trouble with some makes, so we remove $(srcdir),
15305# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15306# trailing colons and then remove the whole line if VPATH becomes empty
15307# (actually we leave an empty line to preserve line numbers).
Bram Moolenaar071d4272004-06-13 20:20:40 +000015308if test "x$srcdir" = x.; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015309 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15310s/:*\$(srcdir):*/:/;
15311s/:*\${srcdir}:*/:/;
15312s/:*@srcdir@:*/:/;
15313s/^\([^=]*=[ ]*\):*/\1/;
15314s/:*$//;
15315s/^[^=]*=[ ]*$//;
15316}'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015317fi
15318
Bram Moolenaar071d4272004-06-13 20:20:40 +000015319DEFS=-DHAVE_CONFIG_H
15320
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015321ac_libobjs=
15322ac_ltlibobjs=
15323for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15324 # 1. Remove the extension, and $U if already installed.
15325 ac_i=`echo "$ac_i" |
15326 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15327 # 2. Add them.
15328 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15329 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15330done
15331LIBOBJS=$ac_libobjs
15332
15333LTLIBOBJS=$ac_ltlibobjs
15334
15335
15336
Bram Moolenaar071d4272004-06-13 20:20:40 +000015337: ${CONFIG_STATUS=./config.status}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015338ac_clean_files_save=$ac_clean_files
15339ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15340{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15341echo "$as_me: creating $CONFIG_STATUS" >&6;}
15342cat >$CONFIG_STATUS <<_ACEOF
15343#! $SHELL
15344# Generated by $as_me.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015345# Run this file to recreate the current configuration.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015346# Compiler output produced by configure, useful for debugging
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015347# configure, is in config.log if it exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000015348
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015349debug=false
15350ac_cs_recheck=false
15351ac_cs_silent=false
15352SHELL=\${CONFIG_SHELL-$SHELL}
15353_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015354
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015355cat >>$CONFIG_STATUS <<\_ACEOF
15356## --------------------- ##
15357## M4sh Initialization. ##
15358## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000015359
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015360# Be Bourne compatible
15361if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15362 emulate sh
15363 NULLCMD=:
15364 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15365 # is contrary to our usage. Disable this feature.
15366 alias -g '${1+"$@"}'='"$@"'
15367elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15368 set -o posix
Bram Moolenaar071d4272004-06-13 20:20:40 +000015369fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015370DUALCASE=1; export DUALCASE # for MKS sh
Bram Moolenaar071d4272004-06-13 20:20:40 +000015371
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015372# Support unset when possible.
15373if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15374 as_unset=unset
15375else
15376 as_unset=false
15377fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015378
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015379
15380# Work around bugs in pre-3.0 UWIN ksh.
15381$as_unset ENV MAIL MAILPATH
15382PS1='$ '
15383PS2='> '
15384PS4='+ '
15385
15386# NLS nuisances.
15387for as_var in \
15388 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15389 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15390 LC_TELEPHONE LC_TIME
15391do
15392 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15393 eval $as_var=C; export $as_var
15394 else
15395 $as_unset $as_var
15396 fi
15397done
15398
15399# Required to use basename.
15400if expr a : '\(a\)' >/dev/null 2>&1; then
15401 as_expr=expr
15402else
15403 as_expr=false
15404fi
15405
15406if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15407 as_basename=basename
15408else
15409 as_basename=false
15410fi
15411
15412
15413# Name of the executable.
15414as_me=`$as_basename "$0" ||
15415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15416 X"$0" : 'X\(//\)$' \| \
15417 X"$0" : 'X\(/\)$' \| \
15418 . : '\(.\)' 2>/dev/null ||
15419echo X/"$0" |
15420 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15421 /^X\/\(\/\/\)$/{ s//\1/; q; }
15422 /^X\/\(\/\).*/{ s//\1/; q; }
15423 s/.*/./; q'`
15424
15425
15426# PATH needs CR, and LINENO needs CR and PATH.
15427# Avoid depending upon Character Ranges.
15428as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15429as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15430as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15431as_cr_digits='0123456789'
15432as_cr_alnum=$as_cr_Letters$as_cr_digits
15433
15434# The user is always right.
15435if test "${PATH_SEPARATOR+set}" != set; then
15436 echo "#! /bin/sh" >conf$$.sh
15437 echo "exit 0" >>conf$$.sh
15438 chmod +x conf$$.sh
15439 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15440 PATH_SEPARATOR=';'
15441 else
15442 PATH_SEPARATOR=:
15443 fi
15444 rm -f conf$$.sh
15445fi
15446
15447
15448 as_lineno_1=$LINENO
15449 as_lineno_2=$LINENO
15450 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15451 test "x$as_lineno_1" != "x$as_lineno_2" &&
15452 test "x$as_lineno_3" = "x$as_lineno_2" || {
15453 # Find who we are. Look in the path if we contain no path at all
15454 # relative or not.
15455 case $0 in
15456 *[\\/]* ) as_myself=$0 ;;
15457 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15458for as_dir in $PATH
15459do
15460 IFS=$as_save_IFS
15461 test -z "$as_dir" && as_dir=.
15462 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15463done
15464
15465 ;;
15466 esac
15467 # We did not find ourselves, most probably we were run as `sh COMMAND'
15468 # in which case we are not to be found in the path.
15469 if test "x$as_myself" = x; then
15470 as_myself=$0
15471 fi
15472 if test ! -f "$as_myself"; then
15473 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15474echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15475 { (exit 1); exit 1; }; }
15476 fi
15477 case $CONFIG_SHELL in
15478 '')
15479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15480for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15481do
15482 IFS=$as_save_IFS
15483 test -z "$as_dir" && as_dir=.
15484 for as_base in sh bash ksh sh5; do
15485 case $as_dir in
15486 /*)
15487 if ("$as_dir/$as_base" -c '
15488 as_lineno_1=$LINENO
15489 as_lineno_2=$LINENO
15490 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15491 test "x$as_lineno_1" != "x$as_lineno_2" &&
15492 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15493 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15494 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15495 CONFIG_SHELL=$as_dir/$as_base
15496 export CONFIG_SHELL
15497 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15498 fi;;
15499 esac
15500 done
15501done
15502;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015503 esac
15504
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015505 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15506 # uniformly replaced by the line number. The first 'sed' inserts a
15507 # line-number line before each line; the second 'sed' does the real
15508 # work. The second script uses 'N' to pair each line-number line
15509 # with the numbered line, and appends trailing '-' during
15510 # substitution so that $LINENO is not a special case at line end.
15511 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15512 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15513 sed '=' <$as_myself |
15514 sed '
15515 N
15516 s,$,-,
15517 : loop
15518 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15519 t loop
15520 s,-$,,
15521 s,^['$as_cr_digits']*\n,,
15522 ' >$as_me.lineno &&
15523 chmod +x $as_me.lineno ||
15524 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15525echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15526 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000015527
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015528 # Don't try to exec as it changes $[0], causing all sort of problems
15529 # (the dirname of $[0] is not the place where we might find the
15530 # original and so on. Autoconf is especially sensible to this).
15531 . ./$as_me.lineno
15532 # Exit status is that of the last command.
15533 exit
15534}
15535
15536
15537case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15538 *c*,-n*) ECHO_N= ECHO_C='
15539' ECHO_T=' ' ;;
15540 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15541 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15542esac
15543
15544if expr a : '\(a\)' >/dev/null 2>&1; then
15545 as_expr=expr
15546else
15547 as_expr=false
15548fi
15549
15550rm -f conf$$ conf$$.exe conf$$.file
15551echo >conf$$.file
15552if ln -s conf$$.file conf$$ 2>/dev/null; then
15553 # We could just check for DJGPP; but this test a) works b) is more generic
15554 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15555 if test -f conf$$.exe; then
15556 # Don't use ln at all; we don't have any links
15557 as_ln_s='cp -p'
Bram Moolenaar071d4272004-06-13 20:20:40 +000015558 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015559 as_ln_s='ln -s'
15560 fi
15561elif ln conf$$.file conf$$ 2>/dev/null; then
15562 as_ln_s=ln
15563else
15564 as_ln_s='cp -p'
15565fi
15566rm -f conf$$ conf$$.exe conf$$.file
15567
15568if mkdir -p . 2>/dev/null; then
15569 as_mkdir_p=:
15570else
15571 test -d ./-p && rmdir ./-p
15572 as_mkdir_p=false
15573fi
15574
15575as_executable_p="test -f"
15576
15577# Sed expression to map a string onto a valid CPP name.
15578as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15579
15580# Sed expression to map a string onto a valid variable name.
15581as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15582
15583
15584# IFS
15585# We need space, tab and new line, in precisely that order.
15586as_nl='
15587'
15588IFS=" $as_nl"
15589
15590# CDPATH.
15591$as_unset CDPATH
15592
15593exec 6>&1
15594
15595# Open the log real soon, to keep \$[0] and so on meaningful, and to
15596# report actual input values of CONFIG_FILES etc. instead of their
15597# values after options handling. Logging --version etc. is OK.
Bram Moolenaarc7453f52006-02-10 23:20:28 +000015598exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015599{
15600 echo
15601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15602## Running $as_me. ##
15603_ASBOX
15604} >&5
15605cat >&5 <<_CSEOF
15606
15607This file was extended by $as_me, which was
15608generated by GNU Autoconf 2.59. Invocation command line was
15609
15610 CONFIG_FILES = $CONFIG_FILES
15611 CONFIG_HEADERS = $CONFIG_HEADERS
15612 CONFIG_LINKS = $CONFIG_LINKS
15613 CONFIG_COMMANDS = $CONFIG_COMMANDS
15614 $ $0 $@
15615
15616_CSEOF
15617echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15618echo >&5
15619_ACEOF
15620
15621# Files that config.status was made for.
15622if test -n "$ac_config_files"; then
15623 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15624fi
15625
15626if test -n "$ac_config_headers"; then
15627 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15628fi
15629
15630if test -n "$ac_config_links"; then
15631 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15632fi
15633
15634if test -n "$ac_config_commands"; then
15635 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15636fi
15637
15638cat >>$CONFIG_STATUS <<\_ACEOF
15639
15640ac_cs_usage="\
15641\`$as_me' instantiates files from templates according to the
15642current configuration.
15643
15644Usage: $0 [OPTIONS] [FILE]...
15645
15646 -h, --help print this help, then exit
15647 -V, --version print version number, then exit
15648 -q, --quiet do not print progress messages
15649 -d, --debug don't remove temporary files
15650 --recheck update $as_me by reconfiguring in the same conditions
15651 --file=FILE[:TEMPLATE]
15652 instantiate the configuration file FILE
15653 --header=FILE[:TEMPLATE]
15654 instantiate the configuration header FILE
15655
15656Configuration files:
15657$config_files
15658
15659Configuration headers:
15660$config_headers
15661
15662Report bugs to <bug-autoconf@gnu.org>."
15663_ACEOF
15664
15665cat >>$CONFIG_STATUS <<_ACEOF
15666ac_cs_version="\\
15667config.status
15668configured by $0, generated by GNU Autoconf 2.59,
15669 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15670
15671Copyright (C) 2003 Free Software Foundation, Inc.
15672This config.status script is free software; the Free Software Foundation
15673gives unlimited permission to copy, distribute and modify it."
15674srcdir=$srcdir
15675_ACEOF
15676
15677cat >>$CONFIG_STATUS <<\_ACEOF
15678# If no file are specified by the user, then we need to provide default
15679# value. By we need to know if files were specified by the user.
15680ac_need_defaults=:
15681while test $# != 0
15682do
15683 case $1 in
15684 --*=*)
15685 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15686 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15687 ac_shift=:
15688 ;;
15689 -*)
15690 ac_option=$1
15691 ac_optarg=$2
15692 ac_shift=shift
15693 ;;
15694 *) # This is not an option, so the user has probably given explicit
15695 # arguments.
15696 ac_option=$1
15697 ac_need_defaults=false;;
15698 esac
15699
15700 case $ac_option in
15701 # Handling of the options.
15702_ACEOF
15703cat >>$CONFIG_STATUS <<\_ACEOF
15704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15705 ac_cs_recheck=: ;;
15706 --version | --vers* | -V )
15707 echo "$ac_cs_version"; exit 0 ;;
15708 --he | --h)
15709 # Conflict between --help and --header
15710 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15711Try \`$0 --help' for more information." >&5
15712echo "$as_me: error: ambiguous option: $1
15713Try \`$0 --help' for more information." >&2;}
15714 { (exit 1); exit 1; }; };;
15715 --help | --hel | -h )
15716 echo "$ac_cs_usage"; exit 0 ;;
15717 --debug | --d* | -d )
15718 debug=: ;;
15719 --file | --fil | --fi | --f )
15720 $ac_shift
15721 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15722 ac_need_defaults=false;;
15723 --header | --heade | --head | --hea )
15724 $ac_shift
15725 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15726 ac_need_defaults=false;;
15727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15728 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15729 ac_cs_silent=: ;;
15730
15731 # This is an error.
15732 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15733Try \`$0 --help' for more information." >&5
15734echo "$as_me: error: unrecognized option: $1
15735Try \`$0 --help' for more information." >&2;}
15736 { (exit 1); exit 1; }; } ;;
15737
15738 *) ac_config_targets="$ac_config_targets $1" ;;
15739
15740 esac
15741 shift
15742done
15743
15744ac_configure_extra_args=
15745
15746if $ac_cs_silent; then
15747 exec 6>/dev/null
15748 ac_configure_extra_args="$ac_configure_extra_args --silent"
15749fi
15750
15751_ACEOF
15752cat >>$CONFIG_STATUS <<_ACEOF
15753if \$ac_cs_recheck; then
15754 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15755 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15756fi
15757
15758_ACEOF
15759
15760
15761
15762
15763
15764cat >>$CONFIG_STATUS <<\_ACEOF
15765for ac_config_target in $ac_config_targets
15766do
15767 case "$ac_config_target" in
15768 # Handling of arguments.
15769 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
15770 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
15771 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15772echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15773 { (exit 1); exit 1; }; };;
15774 esac
15775done
15776
15777# If the user did not use the arguments to specify the items to instantiate,
15778# then the envvar interface is used. Set only those that are not.
15779# We use the long form for the default assignment because of an extremely
15780# bizarre bug on SunOS 4.1.3.
15781if $ac_need_defaults; then
15782 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15783 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15784fi
15785
15786# Have a temporary directory for convenience. Make it in the build tree
15787# simply because there is no reason to put it here, and in addition,
15788# creating and moving files from /tmp can sometimes cause problems.
15789# Create a temporary directory, and hook for its removal unless debugging.
15790$debug ||
15791{
15792 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15793 trap '{ (exit 1); exit 1; }' 1 2 13 15
15794}
15795
15796# Create a (secure) tmp directory for tmp files.
15797
15798{
15799 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15800 test -n "$tmp" && test -d "$tmp"
15801} ||
15802{
15803 tmp=./confstat$$-$RANDOM
15804 (umask 077 && mkdir $tmp)
15805} ||
15806{
15807 echo "$me: cannot create a temporary directory in ." >&2
15808 { (exit 1); exit 1; }
15809}
15810
15811_ACEOF
15812
15813cat >>$CONFIG_STATUS <<_ACEOF
15814
15815#
15816# CONFIG_FILES section.
15817#
15818
15819# No need to generate the scripts if there are no CONFIG_FILES.
15820# This happens for instance when ./config.status config.h
15821if test -n "\$CONFIG_FILES"; then
15822 # Protect against being on the right side of a sed subst in config.status.
15823 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15824 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15825s,@SHELL@,$SHELL,;t t
15826s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15827s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15828s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15829s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15830s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15831s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15832s,@exec_prefix@,$exec_prefix,;t t
15833s,@prefix@,$prefix,;t t
15834s,@program_transform_name@,$program_transform_name,;t t
15835s,@bindir@,$bindir,;t t
15836s,@sbindir@,$sbindir,;t t
15837s,@libexecdir@,$libexecdir,;t t
15838s,@datadir@,$datadir,;t t
15839s,@sysconfdir@,$sysconfdir,;t t
15840s,@sharedstatedir@,$sharedstatedir,;t t
15841s,@localstatedir@,$localstatedir,;t t
15842s,@libdir@,$libdir,;t t
15843s,@includedir@,$includedir,;t t
15844s,@oldincludedir@,$oldincludedir,;t t
15845s,@infodir@,$infodir,;t t
15846s,@mandir@,$mandir,;t t
15847s,@build_alias@,$build_alias,;t t
15848s,@host_alias@,$host_alias,;t t
15849s,@target_alias@,$target_alias,;t t
15850s,@DEFS@,$DEFS,;t t
15851s,@ECHO_C@,$ECHO_C,;t t
15852s,@ECHO_N@,$ECHO_N,;t t
15853s,@ECHO_T@,$ECHO_T,;t t
15854s,@LIBS@,$LIBS,;t t
15855s,@SET_MAKE@,$SET_MAKE,;t t
15856s,@CC@,$CC,;t t
15857s,@CFLAGS@,$CFLAGS,;t t
15858s,@LDFLAGS@,$LDFLAGS,;t t
15859s,@CPPFLAGS@,$CPPFLAGS,;t t
15860s,@ac_ct_CC@,$ac_ct_CC,;t t
15861s,@EXEEXT@,$EXEEXT,;t t
15862s,@OBJEXT@,$OBJEXT,;t t
15863s,@CPP@,$CPP,;t t
15864s,@EGREP@,$EGREP,;t t
15865s,@AWK@,$AWK,;t t
15866s,@STRIP@,$STRIP,;t t
15867s,@CPP_MM@,$CPP_MM,;t t
15868s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
15869s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
15870s,@VIMNAME@,$VIMNAME,;t t
15871s,@EXNAME@,$EXNAME,;t t
15872s,@VIEWNAME@,$VIEWNAME,;t t
15873s,@line_break@,$line_break,;t t
15874s,@dovimdiff@,$dovimdiff,;t t
15875s,@dogvimdiff@,$dogvimdiff,;t t
15876s,@compiledby@,$compiledby,;t t
15877s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
15878s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
15879s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
15880s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
15881s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
15882s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
15883s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
15884s,@vi_cv_perllib@,$vi_cv_perllib,;t t
15885s,@shrpenv@,$shrpenv,;t t
15886s,@PERL_SRC@,$PERL_SRC,;t t
15887s,@PERL_OBJ@,$PERL_OBJ,;t t
15888s,@PERL_PRO@,$PERL_PRO,;t t
15889s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
15890s,@PERL_LIBS@,$PERL_LIBS,;t t
15891s,@vi_cv_path_python@,$vi_cv_path_python,;t t
15892s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
15893s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
15894s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
15895s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
15896s,@PYTHON_SRC@,$PYTHON_SRC,;t t
15897s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
15898s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
15899s,@TCL_SRC@,$TCL_SRC,;t t
15900s,@TCL_OBJ@,$TCL_OBJ,;t t
15901s,@TCL_PRO@,$TCL_PRO,;t t
15902s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
15903s,@TCL_LIBS@,$TCL_LIBS,;t t
15904s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
15905s,@RUBY_SRC@,$RUBY_SRC,;t t
15906s,@RUBY_OBJ@,$RUBY_OBJ,;t t
15907s,@RUBY_PRO@,$RUBY_PRO,;t t
15908s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
15909s,@RUBY_LIBS@,$RUBY_LIBS,;t t
15910s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
15911s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
15912s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
15913s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
15914s,@SNIFF_SRC@,$SNIFF_SRC,;t t
15915s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
15916s,@xmkmfpath@,$xmkmfpath,;t t
15917s,@X_CFLAGS@,$X_CFLAGS,;t t
15918s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15919s,@X_LIBS@,$X_LIBS,;t t
15920s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15921s,@X_LIB@,$X_LIB,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015922s,@GTK_CONFIG@,$GTK_CONFIG,;t t
15923s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
15924s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15925s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15926s,@GTK_LIBS@,$GTK_LIBS,;t t
15927s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
15928s,@GNOME_LIBS@,$GNOME_LIBS,;t t
15929s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
15930s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
15931s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
15932s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
15933s,@NARROW_PROTO@,$NARROW_PROTO,;t t
15934s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
15935s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
15936s,@GUITYPE@,$GUITYPE,;t t
15937s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
15938s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
15939s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
15940s,@TAGPRG@,$TAGPRG,;t t
Bram Moolenaar2389c3c2005-05-22 22:07:59 +000015941s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t
15942s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015943s,@MSGFMT@,$MSGFMT,;t t
15944s,@MAKEMO@,$MAKEMO,;t t
Bram Moolenaard5cdbeb2005-10-10 20:59:28 +000015945s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015946s,@LIBOBJS@,$LIBOBJS,;t t
15947s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15948CEOF
15949
15950_ACEOF
15951
15952 cat >>$CONFIG_STATUS <<\_ACEOF
15953 # Split the substitutions into bite-sized pieces for seds with
15954 # small command number limits, like on Digital OSF/1 and HP-UX.
15955 ac_max_sed_lines=48
15956 ac_sed_frag=1 # Number of current file.
15957 ac_beg=1 # First line for current file.
15958 ac_end=$ac_max_sed_lines # Line after last line for current file.
15959 ac_more_lines=:
15960 ac_sed_cmds=
15961 while $ac_more_lines; do
15962 if test $ac_beg -gt 1; then
15963 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15964 else
15965 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15966 fi
15967 if test ! -s $tmp/subs.frag; then
15968 ac_more_lines=false
15969 else
15970 # The purpose of the label and of the branching condition is to
15971 # speed up the sed processing (if there are no `@' at all, there
15972 # is no need to browse any of the substitutions).
15973 # These are the two extra sed commands mentioned above.
15974 (echo ':t
15975 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15976 if test -z "$ac_sed_cmds"; then
15977 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15978 else
15979 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15980 fi
15981 ac_sed_frag=`expr $ac_sed_frag + 1`
15982 ac_beg=$ac_end
15983 ac_end=`expr $ac_end + $ac_max_sed_lines`
15984 fi
15985 done
15986 if test -z "$ac_sed_cmds"; then
15987 ac_sed_cmds=cat
15988 fi
15989fi # test -n "$CONFIG_FILES"
15990
15991_ACEOF
15992cat >>$CONFIG_STATUS <<\_ACEOF
15993for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15994 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15995 case $ac_file in
15996 - | *:- | *:-:* ) # input from stdin
15997 cat >$tmp/stdin
15998 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15999 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16000 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16001 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16002 * ) ac_file_in=$ac_file.in ;;
16003 esac
16004
16005 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16006 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16007$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16008 X"$ac_file" : 'X\(//\)[^/]' \| \
16009 X"$ac_file" : 'X\(//\)$' \| \
16010 X"$ac_file" : 'X\(/\)' \| \
16011 . : '\(.\)' 2>/dev/null ||
16012echo X"$ac_file" |
16013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16014 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16015 /^X\(\/\/\)$/{ s//\1/; q; }
16016 /^X\(\/\).*/{ s//\1/; q; }
16017 s/.*/./; q'`
16018 { if $as_mkdir_p; then
16019 mkdir -p "$ac_dir"
16020 else
16021 as_dir="$ac_dir"
16022 as_dirs=
16023 while test ! -d "$as_dir"; do
16024 as_dirs="$as_dir $as_dirs"
16025 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16026$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16027 X"$as_dir" : 'X\(//\)[^/]' \| \
16028 X"$as_dir" : 'X\(//\)$' \| \
16029 X"$as_dir" : 'X\(/\)' \| \
16030 . : '\(.\)' 2>/dev/null ||
16031echo X"$as_dir" |
16032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16034 /^X\(\/\/\)$/{ s//\1/; q; }
16035 /^X\(\/\).*/{ s//\1/; q; }
16036 s/.*/./; q'`
16037 done
16038 test ! -n "$as_dirs" || mkdir $as_dirs
16039 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16040echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16041 { (exit 1); exit 1; }; }; }
16042
16043 ac_builddir=.
16044
16045if test "$ac_dir" != .; then
16046 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16047 # A "../" for each directory in $ac_dir_suffix.
16048 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16049else
16050 ac_dir_suffix= ac_top_builddir=
16051fi
16052
16053case $srcdir in
16054 .) # No --srcdir option. We are building in place.
16055 ac_srcdir=.
16056 if test -z "$ac_top_builddir"; then
16057 ac_top_srcdir=.
16058 else
16059 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16060 fi ;;
16061 [\\/]* | ?:[\\/]* ) # Absolute path.
16062 ac_srcdir=$srcdir$ac_dir_suffix;
16063 ac_top_srcdir=$srcdir ;;
16064 *) # Relative path.
16065 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16066 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16067esac
16068
16069# Do not use `cd foo && pwd` to compute absolute paths, because
16070# the directories may not exist.
16071case `pwd` in
16072.) ac_abs_builddir="$ac_dir";;
16073*)
16074 case "$ac_dir" in
16075 .) ac_abs_builddir=`pwd`;;
16076 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16077 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16078 esac;;
16079esac
16080case $ac_abs_builddir in
16081.) ac_abs_top_builddir=${ac_top_builddir}.;;
16082*)
16083 case ${ac_top_builddir}. in
16084 .) ac_abs_top_builddir=$ac_abs_builddir;;
16085 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16086 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16087 esac;;
16088esac
16089case $ac_abs_builddir in
16090.) ac_abs_srcdir=$ac_srcdir;;
16091*)
16092 case $ac_srcdir in
16093 .) ac_abs_srcdir=$ac_abs_builddir;;
16094 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16095 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16096 esac;;
16097esac
16098case $ac_abs_builddir in
16099.) ac_abs_top_srcdir=$ac_top_srcdir;;
16100*)
16101 case $ac_top_srcdir in
16102 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16103 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16104 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16105 esac;;
16106esac
16107
16108
16109
16110 if test x"$ac_file" != x-; then
16111 { echo "$as_me:$LINENO: creating $ac_file" >&5
16112echo "$as_me: creating $ac_file" >&6;}
16113 rm -f "$ac_file"
16114 fi
16115 # Let's still pretend it is `configure' which instantiates (i.e., don't
16116 # use $as_me), people would be surprised to read:
16117 # /* config.h. Generated by config.status. */
16118 if test x"$ac_file" = x-; then
16119 configure_input=
16120 else
16121 configure_input="$ac_file. "
16122 fi
16123 configure_input=$configure_input"Generated from `echo $ac_file_in |
16124 sed 's,.*/,,'` by configure."
16125
16126 # First look for the input files in the build tree, otherwise in the
16127 # src tree.
16128 ac_file_inputs=`IFS=:
16129 for f in $ac_file_in; do
16130 case $f in
16131 -) echo $tmp/stdin ;;
16132 [\\/$]*)
16133 # Absolute (can't be DOS-style, as IFS=:)
16134 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16135echo "$as_me: error: cannot find input file: $f" >&2;}
16136 { (exit 1); exit 1; }; }
16137 echo "$f";;
16138 *) # Relative
16139 if test -f "$f"; then
16140 # Build tree
16141 echo "$f"
16142 elif test -f "$srcdir/$f"; then
16143 # Source tree
16144 echo "$srcdir/$f"
16145 else
16146 # /dev/null tree
16147 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16148echo "$as_me: error: cannot find input file: $f" >&2;}
16149 { (exit 1); exit 1; }; }
16150 fi;;
16151 esac
16152 done` || { (exit 1); exit 1; }
16153_ACEOF
16154cat >>$CONFIG_STATUS <<_ACEOF
16155 sed "$ac_vpsub
16156$extrasub
16157_ACEOF
16158cat >>$CONFIG_STATUS <<\_ACEOF
16159:t
16160/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16161s,@configure_input@,$configure_input,;t t
16162s,@srcdir@,$ac_srcdir,;t t
16163s,@abs_srcdir@,$ac_abs_srcdir,;t t
16164s,@top_srcdir@,$ac_top_srcdir,;t t
16165s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16166s,@builddir@,$ac_builddir,;t t
16167s,@abs_builddir@,$ac_abs_builddir,;t t
16168s,@top_builddir@,$ac_top_builddir,;t t
16169s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16170" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16171 rm -f $tmp/stdin
16172 if test x"$ac_file" != x-; then
16173 mv $tmp/out $ac_file
16174 else
16175 cat $tmp/out
16176 rm -f $tmp/out
Bram Moolenaar071d4272004-06-13 20:20:40 +000016177 fi
16178
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016179done
16180_ACEOF
16181cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016182
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016183#
16184# CONFIG_HEADER section.
16185#
Bram Moolenaar071d4272004-06-13 20:20:40 +000016186
16187# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16188# NAME is the cpp macro being defined and VALUE is the value it is being given.
16189#
16190# ac_d sets the value in "#define NAME VALUE" lines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016191ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16192ac_dB='[ ].*$,\1#\2'
16193ac_dC=' '
16194ac_dD=',;t'
16195# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16196ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16197ac_uB='$,\1#\2define\3'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016198ac_uC=' '
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016199ac_uD=',;t'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016200
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016201for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Bram Moolenaar071d4272004-06-13 20:20:40 +000016202 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016203 case $ac_file in
16204 - | *:- | *:-:* ) # input from stdin
16205 cat >$tmp/stdin
16206 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16207 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16208 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16209 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16210 * ) ac_file_in=$ac_file.in ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000016211 esac
16212
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016213 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16214echo "$as_me: creating $ac_file" >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +000016215
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016216 # First look for the input files in the build tree, otherwise in the
16217 # src tree.
16218 ac_file_inputs=`IFS=:
16219 for f in $ac_file_in; do
16220 case $f in
16221 -) echo $tmp/stdin ;;
16222 [\\/$]*)
16223 # Absolute (can't be DOS-style, as IFS=:)
16224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16225echo "$as_me: error: cannot find input file: $f" >&2;}
16226 { (exit 1); exit 1; }; }
16227 # Do quote $f, to prevent DOS paths from being IFS'd.
16228 echo "$f";;
16229 *) # Relative
16230 if test -f "$f"; then
16231 # Build tree
16232 echo "$f"
16233 elif test -f "$srcdir/$f"; then
16234 # Source tree
16235 echo "$srcdir/$f"
16236 else
16237 # /dev/null tree
16238 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16239echo "$as_me: error: cannot find input file: $f" >&2;}
16240 { (exit 1); exit 1; }; }
16241 fi;;
16242 esac
16243 done` || { (exit 1); exit 1; }
16244 # Remove the trailing spaces.
16245 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Bram Moolenaar071d4272004-06-13 20:20:40 +000016246
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016247_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016248
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016249# Transform confdefs.h into two sed scripts, `conftest.defines' and
16250# `conftest.undefs', that substitutes the proper values into
16251# config.h.in to produce config.h. The first handles `#define'
16252# templates, and the second `#undef' templates.
16253# And first: Protect against being on the right side of a sed subst in
16254# config.status. Protect against being in an unquoted here document
16255# in config.status.
16256rm -f conftest.defines conftest.undefs
16257# Using a here document instead of a string reduces the quoting nightmare.
16258# Putting comments in sed scripts is not portable.
16259#
16260# `end' is used to avoid that the second main sed command (meant for
16261# 0-ary CPP macros) applies to n-ary macro definitions.
16262# See the Autoconf documentation for `clear'.
16263cat >confdef2sed.sed <<\_ACEOF
16264s/[\\&,]/\\&/g
16265s,[\\$`],\\&,g
16266t clear
16267: clear
16268s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16269t end
16270s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16271: end
16272_ACEOF
16273# If some macros were called several times there might be several times
16274# the same #defines, which is useless. Nevertheless, we may not want to
16275# sort them, since we want the *last* AC-DEFINE to be honored.
16276uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16277sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16278rm -f confdef2sed.sed
Bram Moolenaar071d4272004-06-13 20:20:40 +000016279
16280# This sed command replaces #undef with comments. This is necessary, for
16281# example, in the case of _POSIX_SOURCE, which is predefined and required
16282# on some systems where configure will not decide to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016283cat >>conftest.undefs <<\_ACEOF
16284s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16285_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016286
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016287# Break up conftest.defines because some shells have a limit on the size
16288# of here documents, and old seds have small limits too (100 cmds).
16289echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16290echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16291echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16292echo ' :' >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016293rm -f conftest.tail
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016294while grep . conftest.defines >/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +000016295do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016296 # Write a limited-size here document to $tmp/defines.sed.
16297 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16298 # Speed up: don't consider the non `#define' lines.
16299 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16300 # Work around the forget-to-reset-the-flag bug.
16301 echo 't clr' >>$CONFIG_STATUS
16302 echo ': clr' >>$CONFIG_STATUS
16303 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016304 echo 'CEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016305 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16306 rm -f $tmp/in
16307 mv $tmp/out $tmp/in
16308' >>$CONFIG_STATUS
16309 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16310 rm -f conftest.defines
16311 mv conftest.tail conftest.defines
Bram Moolenaar071d4272004-06-13 20:20:40 +000016312done
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016313rm -f conftest.defines
16314echo ' fi # grep' >>$CONFIG_STATUS
16315echo >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000016316
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016317# Break up conftest.undefs because some shells have a limit on the size
16318# of here documents, and old seds have small limits too (100 cmds).
16319echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16320rm -f conftest.tail
16321while grep . conftest.undefs >/dev/null
16322do
16323 # Write a limited-size here document to $tmp/undefs.sed.
16324 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16325 # Speed up: don't consider the non `#undef'
16326 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16327 # Work around the forget-to-reset-the-flag bug.
16328 echo 't clr' >>$CONFIG_STATUS
16329 echo ': clr' >>$CONFIG_STATUS
16330 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16331 echo 'CEOF
16332 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16333 rm -f $tmp/in
16334 mv $tmp/out $tmp/in
16335' >>$CONFIG_STATUS
16336 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16337 rm -f conftest.undefs
16338 mv conftest.tail conftest.undefs
16339done
16340rm -f conftest.undefs
16341
16342cat >>$CONFIG_STATUS <<\_ACEOF
16343 # Let's still pretend it is `configure' which instantiates (i.e., don't
16344 # use $as_me), people would be surprised to read:
16345 # /* config.h. Generated by config.status. */
16346 if test x"$ac_file" = x-; then
16347 echo "/* Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016348 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016349 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000016350 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016351 cat $tmp/in >>$tmp/config.h
16352 rm -f $tmp/in
16353 if test x"$ac_file" != x-; then
16354 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16355 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16356echo "$as_me: $ac_file is unchanged" >&6;}
16357 else
16358 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16359$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16360 X"$ac_file" : 'X\(//\)[^/]' \| \
16361 X"$ac_file" : 'X\(//\)$' \| \
16362 X"$ac_file" : 'X\(/\)' \| \
16363 . : '\(.\)' 2>/dev/null ||
16364echo X"$ac_file" |
16365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16367 /^X\(\/\/\)$/{ s//\1/; q; }
16368 /^X\(\/\).*/{ s//\1/; q; }
16369 s/.*/./; q'`
16370 { if $as_mkdir_p; then
16371 mkdir -p "$ac_dir"
16372 else
16373 as_dir="$ac_dir"
16374 as_dirs=
16375 while test ! -d "$as_dir"; do
16376 as_dirs="$as_dir $as_dirs"
16377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16378$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16379 X"$as_dir" : 'X\(//\)[^/]' \| \
16380 X"$as_dir" : 'X\(//\)$' \| \
16381 X"$as_dir" : 'X\(/\)' \| \
16382 . : '\(.\)' 2>/dev/null ||
16383echo X"$as_dir" |
16384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16386 /^X\(\/\/\)$/{ s//\1/; q; }
16387 /^X\(\/\).*/{ s//\1/; q; }
16388 s/.*/./; q'`
16389 done
16390 test ! -n "$as_dirs" || mkdir $as_dirs
16391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16392echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16393 { (exit 1); exit 1; }; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000016394
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016395 rm -f $ac_file
16396 mv $tmp/config.h $ac_file
16397 fi
16398 else
16399 cat $tmp/config.h
16400 rm -f $tmp/config.h
16401 fi
16402done
16403_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016404
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016405cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016406
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016407{ (exit 0); exit 0; }
16408_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016409chmod +x $CONFIG_STATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016410ac_clean_files=$ac_clean_files_save
16411
16412
16413# configure is writing to config.log, and then calls config.status.
16414# config.status does its own redirection, appending to config.log.
16415# Unfortunately, on DOS this fails, as config.log is still kept open
16416# by configure, so config.status won't be able to write to it; its
16417# output is simply discarded. So we exec the FD to /dev/null,
16418# effectively closing config.log, so it can be properly (re)opened and
16419# appended to by config.status. When coming back to configure, we
16420# need to make the FD available again.
16421if test "$no_create" != yes; then
16422 ac_cs_success=:
16423 ac_config_status_args=
16424 test "$silent" = yes &&
16425 ac_config_status_args="$ac_config_status_args --quiet"
16426 exec 5>/dev/null
16427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Bram Moolenaarc7453f52006-02-10 23:20:28 +000016428 exec 5>>auto/config.log
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16430 # would make configure fail if this is the last instruction.
16431 $ac_cs_success || { (exit 1); exit 1; }
16432fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000016433
16434