blob: f22fee3d80859224f5eee990f42692c3a50bf800 [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
312ac_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 MOC KDE_CONFIG KDE_LIBS KDE_INCLUDES KDE_PREFIX CXX CXXFLAGS ac_ct_CXX QT_LIBS QT_INCLUDES ROOTQT 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 MSGFMT MAKEMO LIBOBJS LTLIBOBJS'
313ac_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
773ac_env_CXX_set=${CXX+set}
774ac_env_CXX_value=$CXX
775ac_cv_env_CXX_set=${CXX+set}
776ac_cv_env_CXX_value=$CXX
777ac_env_CXXFLAGS_set=${CXXFLAGS+set}
778ac_env_CXXFLAGS_value=$CXXFLAGS
779ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
780ac_cv_env_CXXFLAGS_value=$CXXFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +0000781
Bram Moolenaar495de9c2005-01-25 22:03:25 +0000782#
783# Report the --help message.
784#
785if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
788 cat <<_ACEOF
789\`configure' configures this package to adapt to many kinds of systems.
790
791Usage: $0 [OPTION]... [VAR=VALUE]...
792
793To assign environment variables (e.g., CC, CFLAGS...), specify them as
794VAR=VALUE. See below for descriptions of some of the useful variables.
795
796Defaults for the options are specified in brackets.
797
798Configuration:
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
808
809_ACEOF
810
811 cat <<_ACEOF
812Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
814 [$ac_default_prefix]
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816 [PREFIX]
817
818By default, \`make install' will install all the files in
819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821for instance \`--prefix=\$HOME'.
822
823For better control, use the options below.
824
825Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
838_ACEOF
839
840 cat <<\_ACEOF
841
842X features:
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
845_ACEOF
846fi
847
848if test -n "$ac_init_help"; then
849
850 cat <<\_ACEOF
851
852Optional Features:
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --disable-darwin Disable Darwin (Mac OS X) support.
856 --disable-xsmp Disable XSMP session management
857 --disable-xsmp-interact Disable XSMP interaction
858 --enable-mzschemeinterp Include MzScheme interpreter.
859 --enable-perlinterp Include Perl interpreter.
860 --enable-pythoninterp Include Python interpreter.
861 --enable-tclinterp Include Tcl interpreter.
862 --enable-rubyinterp Include Ruby interpreter.
863 --enable-cscope Include cscope interface.
864 --enable-workshop Include Sun Visual Workshop support.
865 --disable-netbeans Disable NetBeans integration support.
866 --enable-sniff Include Sniff interface.
867 --enable-multibyte Include multibyte editing support.
868 --enable-hangulinput Include Hangul input support.
869 --enable-xim Include XIM input support.
870 --enable-fontset Include X fontset output support.
871 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/kde/motif/athena/neXtaw/beos/photon/carbon
872 --enable-kde-check If auto-select GUI, check for KDE default=no
873 --enable-gtk-check If auto-select GUI, check for GTK default=yes
874 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes
875 --enable-gnome-check If GTK GUI, check for GNOME default=no
876 --enable-motif-check If auto-select GUI, check for Motif default=yes
877 --enable-athena-check If auto-select GUI, check for Athena default=yes
878 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes
879 --enable-carbon-check If auto-select GUI, check for Carbon default=yes
880 --enable-kde-toolbar if KDE GUI is selected, enable a KDE-look toolbar default=no
881 --disable-rpath Disable rpath.
882 --disable-kdetest Do not try to compile and run a test KDE program
883 --disable-gtktest Do not try to compile and run a test GTK program
884 --disable-acl Don't check for ACL support.
885 --disable-gpm Don't use gpm (Linux mouse daemon).
886 --disable-nls Don't support NLS (gettext()).
887
888Optional Packages:
889 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
890 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
891 --with-vim-name=NAME what to call the Vim executable
892 --with-ex-name=NAME what to call the Ex executable
893 --with-view-name=NAME what to call the View executable
894 --with-global-runtime=DIR global runtime directory in 'runtimepath'
895 --with-modified-by=NAME name of who modified a release version
896 --with-features=TYPE tiny, small, normal, big or huge (default: normal)
897 --with-compiledby=NAME name to show in :version message
898 --with-plthome=PLTHOME Use PLTHOME.
899 --with-python-config-dir=PATH Python's config directory
900 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)
901 --with-x use the X Window System
902 --with-qt-dir=DIR Specify prefix of QT files
903 --with-qt-includes=DIR Specify location of Qt headers
904 --with-qt-libs=DIR Specify location of Qt libraries
905 --with-kde-prefix=PFX Prefix where KDE is installed (optional)
906 --with-kde-includes=DIR Specify location of KDE headers
907 --with-kde-libs=DIR Specify location of KDE libraries
908 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
909 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
910 --with-gnome-includes=DIR Specify location of GNOME headers
911 --with-gnome-libs=DIR Specify location of GNOME libs
912 --with-gnome Specify prefix for GNOME files
913 --with-motif-lib=STRING Library for Motif
914 --with-tlib=library terminal library to be used
915
916Some influential environment variables:
917 CC C compiler command
918 CFLAGS C compiler flags
919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
920 nonstandard directory <lib dir>
921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
922 headers in a nonstandard directory <include dir>
923 CPP C preprocessor
924 CXX C++ compiler command
925 CXXFLAGS C++ compiler flags
926
927Use these variables to override the choices made by `configure' or to help
928it to find libraries and programs with nonstandard names/locations.
929
930_ACEOF
931fi
932
933if test "$ac_init_help" = "recursive"; then
934 # If there are subdirs, report their specific --help.
935 ac_popdir=`pwd`
936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937 test -d $ac_dir || continue
938 ac_builddir=.
939
940if test "$ac_dir" != .; then
941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942 # A "../" for each directory in $ac_dir_suffix.
943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944else
945 ac_dir_suffix= ac_top_builddir=
946fi
947
948case $srcdir in
949 .) # No --srcdir option. We are building in place.
950 ac_srcdir=.
951 if test -z "$ac_top_builddir"; then
952 ac_top_srcdir=.
953 else
954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955 fi ;;
956 [\\/]* | ?:[\\/]* ) # Absolute path.
957 ac_srcdir=$srcdir$ac_dir_suffix;
958 ac_top_srcdir=$srcdir ;;
959 *) # Relative path.
960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
962esac
963
964# Do not use `cd foo && pwd` to compute absolute paths, because
965# the directories may not exist.
966case `pwd` in
967.) ac_abs_builddir="$ac_dir";;
968*)
969 case "$ac_dir" in
970 .) ac_abs_builddir=`pwd`;;
971 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
972 *) ac_abs_builddir=`pwd`/"$ac_dir";;
973 esac;;
974esac
975case $ac_abs_builddir in
976.) ac_abs_top_builddir=${ac_top_builddir}.;;
977*)
978 case ${ac_top_builddir}. in
979 .) ac_abs_top_builddir=$ac_abs_builddir;;
980 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
981 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
982 esac;;
983esac
984case $ac_abs_builddir in
985.) ac_abs_srcdir=$ac_srcdir;;
986*)
987 case $ac_srcdir in
988 .) ac_abs_srcdir=$ac_abs_builddir;;
989 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
990 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
991 esac;;
992esac
993case $ac_abs_builddir in
994.) ac_abs_top_srcdir=$ac_top_srcdir;;
995*)
996 case $ac_top_srcdir in
997 .) ac_abs_top_srcdir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
999 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1000 esac;;
1001esac
1002
1003 cd $ac_dir
1004 # Check for guested configure; otherwise get Cygnus style configure.
1005 if test -f $ac_srcdir/configure.gnu; then
1006 echo
1007 $SHELL $ac_srcdir/configure.gnu --help=recursive
1008 elif test -f $ac_srcdir/configure; then
1009 echo
1010 $SHELL $ac_srcdir/configure --help=recursive
1011 elif test -f $ac_srcdir/configure.ac ||
1012 test -f $ac_srcdir/configure.in; then
1013 echo
1014 $ac_configure --help
1015 else
1016 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1017 fi
1018 cd $ac_popdir
1019 done
1020fi
1021
1022test -n "$ac_init_help" && exit 0
1023if $ac_init_version; then
1024 cat <<\_ACEOF
1025
1026Copyright (C) 2003 Free Software Foundation, Inc.
1027This configure script is free software; the Free Software Foundation
1028gives unlimited permission to copy, distribute and modify it.
1029_ACEOF
1030 exit 0
1031fi
1032exec 5>auto/config.log
1033cat >&5 <<_ACEOF
1034This file contains any messages produced by compilers while
1035running configure, to aid debugging if configure makes a mistake.
1036
1037It was created by $as_me, which was
1038generated by GNU Autoconf 2.59. Invocation command line was
1039
1040 $ $0 $@
1041
1042_ACEOF
1043{
1044cat <<_ASUNAME
1045## --------- ##
1046## Platform. ##
1047## --------- ##
1048
1049hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1050uname -m = `(uname -m) 2>/dev/null || echo unknown`
1051uname -r = `(uname -r) 2>/dev/null || echo unknown`
1052uname -s = `(uname -s) 2>/dev/null || echo unknown`
1053uname -v = `(uname -v) 2>/dev/null || echo unknown`
1054
1055/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1056/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1057
1058/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1059/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1060/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1061hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1062/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1063/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1064/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1065
1066_ASUNAME
1067
1068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1069for as_dir in $PATH
1070do
1071 IFS=$as_save_IFS
1072 test -z "$as_dir" && as_dir=.
1073 echo "PATH: $as_dir"
1074done
1075
1076} >&5
1077
1078cat >&5 <<_ACEOF
1079
1080
1081## ----------- ##
1082## Core tests. ##
1083## ----------- ##
1084
1085_ACEOF
1086
1087
1088# Keep a trace of the command line.
1089# Strip out --no-create and --no-recursion so they do not pile up.
1090# Strip out --silent because we don't want to record it for future runs.
1091# Also quote any args containing shell meta-characters.
1092# Make two passes to allow for proper duplicate-argument suppression.
1093ac_configure_args=
1094ac_configure_args0=
1095ac_configure_args1=
1096ac_sep=
1097ac_must_keep_next=false
1098for ac_pass in 1 2
1099do
1100 for ac_arg
1101 do
1102 case $ac_arg in
1103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1106 continue ;;
1107 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1108 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1109 esac
1110 case $ac_pass in
1111 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1112 2)
1113 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1114 if test $ac_must_keep_next = true; then
1115 ac_must_keep_next=false # Got value, back to normal.
1116 else
1117 case $ac_arg in
1118 *=* | --config-cache | -C | -disable-* | --disable-* \
1119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1121 | -with-* | --with-* | -without-* | --without-* | --x)
1122 case "$ac_configure_args0 " in
1123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1124 esac
1125 ;;
1126 -* ) ac_must_keep_next=true ;;
1127 esac
1128 fi
1129 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1130 # Get rid of the leading space.
1131 ac_sep=" "
1132 ;;
1133 esac
1134 done
1135done
1136$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1137$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1138
1139# When interrupted or exit'd, cleanup temporary files, and complete
1140# config.log. We remove comments because anyway the quotes in there
1141# would cause problems or look ugly.
1142# WARNING: Be sure not to use single quotes in there, as some shells,
1143# such as our DU 5.0 friend, will then `close' the trap.
1144trap 'exit_status=$?
1145 # Save into config.log some information that might help in debugging.
1146 {
1147 echo
1148
1149 cat <<\_ASBOX
1150## ---------------- ##
1151## Cache variables. ##
1152## ---------------- ##
1153_ASBOX
1154 echo
1155 # The following way of writing the cache mishandles newlines in values,
1156{
1157 (set) 2>&1 |
1158 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1159 *ac_space=\ *)
1160 sed -n \
1161 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1163 ;;
1164 *)
1165 sed -n \
1166 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1167 ;;
1168 esac;
1169}
1170 echo
1171
1172 cat <<\_ASBOX
1173## ----------------- ##
1174## Output variables. ##
1175## ----------------- ##
1176_ASBOX
1177 echo
1178 for ac_var in $ac_subst_vars
1179 do
1180 eval ac_val=$`echo $ac_var`
1181 echo "$ac_var='"'"'$ac_val'"'"'"
1182 done | sort
1183 echo
1184
1185 if test -n "$ac_subst_files"; then
1186 cat <<\_ASBOX
1187## ------------- ##
1188## Output files. ##
1189## ------------- ##
1190_ASBOX
1191 echo
1192 for ac_var in $ac_subst_files
1193 do
1194 eval ac_val=$`echo $ac_var`
1195 echo "$ac_var='"'"'$ac_val'"'"'"
1196 done | sort
1197 echo
1198 fi
1199
1200 if test -s confdefs.h; then
1201 cat <<\_ASBOX
1202## ----------- ##
1203## confdefs.h. ##
1204## ----------- ##
1205_ASBOX
1206 echo
1207 sed "/^$/d" confdefs.h | sort
1208 echo
1209 fi
1210 test "$ac_signal" != 0 &&
1211 echo "$as_me: caught signal $ac_signal"
1212 echo "$as_me: exit $exit_status"
1213 } >&5
1214 rm -f core *.core &&
1215 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1216 exit $exit_status
1217 ' 0
1218for ac_signal in 1 2 13 15; do
1219 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1220done
1221ac_signal=0
1222
1223# confdefs.h avoids OS command line length limits that DEFS can exceed.
1224rm -rf conftest* confdefs.h
1225# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1226echo >confdefs.h
1227
1228# Predefined preprocessor variables.
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_NAME "$PACKAGE_NAME"
1232_ACEOF
1233
1234
1235cat >>confdefs.h <<_ACEOF
1236#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1237_ACEOF
1238
1239
1240cat >>confdefs.h <<_ACEOF
1241#define PACKAGE_VERSION "$PACKAGE_VERSION"
1242_ACEOF
1243
1244
1245cat >>confdefs.h <<_ACEOF
1246#define PACKAGE_STRING "$PACKAGE_STRING"
1247_ACEOF
1248
1249
1250cat >>confdefs.h <<_ACEOF
1251#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1252_ACEOF
1253
1254
1255# Let the site file select an alternate cache file if it wants to.
Bram Moolenaar071d4272004-06-13 20:20:40 +00001256# Prefer explicitly selected file to automatically selected ones.
1257if test -z "$CONFIG_SITE"; then
1258 if test "x$prefix" != xNONE; then
1259 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1260 else
1261 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1262 fi
1263fi
1264for ac_site_file in $CONFIG_SITE; do
1265 if test -r "$ac_site_file"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001266 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1267echo "$as_me: loading site script $ac_site_file" >&6;}
1268 sed 's/^/| /' "$ac_site_file" >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00001269 . "$ac_site_file"
1270 fi
1271done
1272
1273if test -r "$cache_file"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001274 # Some versions of bash will fail to source /dev/null (special
1275 # files actually), so we avoid doing that.
1276 if test -f "$cache_file"; then
1277 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1278echo "$as_me: loading cache $cache_file" >&6;}
1279 case $cache_file in
1280 [\\/]* | ?:[\\/]* ) . $cache_file;;
1281 *) . ./$cache_file;;
1282 esac
1283 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001284else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001285 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1286echo "$as_me: creating cache $cache_file" >&6;}
1287 >$cache_file
1288fi
1289
1290# Check that the precious variables saved in the cache have kept the same
1291# value.
1292ac_cache_corrupted=false
1293for ac_var in `(set) 2>&1 |
1294 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1295 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1296 eval ac_new_set=\$ac_env_${ac_var}_set
1297 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1298 eval ac_new_val="\$ac_env_${ac_var}_value"
1299 case $ac_old_set,$ac_new_set in
1300 set,)
1301 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1302echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1303 ac_cache_corrupted=: ;;
1304 ,set)
1305 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1306echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1307 ac_cache_corrupted=: ;;
1308 ,);;
1309 *)
1310 if test "x$ac_old_val" != "x$ac_new_val"; then
1311 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1312echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1313 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1314echo "$as_me: former value: $ac_old_val" >&2;}
1315 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1316echo "$as_me: current value: $ac_new_val" >&2;}
1317 ac_cache_corrupted=:
1318 fi;;
1319 esac
1320 # Pass precious variables to config.status.
1321 if test "$ac_new_set" = set; then
1322 case $ac_new_val in
1323 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1324 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1325 *) ac_arg=$ac_var=$ac_new_val ;;
1326 esac
1327 case " $ac_configure_args " in
1328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1329 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1330 esac
1331 fi
1332done
1333if $ac_cache_corrupted; then
1334 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1335echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1336 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1337echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1338 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00001339fi
1340
1341ac_ext=c
Bram Moolenaar071d4272004-06-13 20:20:40 +00001342ac_cpp='$CPP $CPPFLAGS'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1345ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bram Moolenaar071d4272004-06-13 20:20:40 +00001346
1347
1348
1349
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365 ac_config_headers="$ac_config_headers auto/config.h:config.h.in"
1366
1367
1368cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001369#define UNIX 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001370_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001371
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001372echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1373echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1374set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1375if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1376 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001377else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001378 cat >conftest.make <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001379all:
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001380 @echo 'ac_maketemp="$(MAKE)"'
1381_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00001382# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001383eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Bram Moolenaar071d4272004-06-13 20:20:40 +00001384if test -n "$ac_maketemp"; then
1385 eval ac_cv_prog_make_${ac_make}_set=yes
1386else
1387 eval ac_cv_prog_make_${ac_make}_set=no
1388fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001389rm -f conftest.make
Bram Moolenaar071d4272004-06-13 20:20:40 +00001390fi
1391if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001392 echo "$as_me:$LINENO: result: yes" >&5
1393echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001394 SET_MAKE=
1395else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001396 echo "$as_me:$LINENO: result: no" >&5
1397echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001398 SET_MAKE="MAKE=${MAKE-make}"
1399fi
1400
1401
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001402ac_ext=c
1403ac_cpp='$CPP $CPPFLAGS'
1404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1406ac_compiler_gnu=$ac_cv_c_compiler_gnu
1407if test -n "$ac_tool_prefix"; then
1408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1409set dummy ${ac_tool_prefix}gcc; ac_word=$2
1410echo "$as_me:$LINENO: checking for $ac_word" >&5
1411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1412if test "${ac_cv_prog_CC+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001414else
1415 if test -n "$CC"; then
1416 ac_cv_prog_CC="$CC" # Let the user override the test.
1417else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1419for as_dir in $PATH
1420do
1421 IFS=$as_save_IFS
1422 test -z "$as_dir" && as_dir=.
1423 for ac_exec_ext in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427 break 2
1428 fi
1429done
1430done
1431
Bram Moolenaar071d4272004-06-13 20:20:40 +00001432fi
1433fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001434CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001435if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001436 echo "$as_me:$LINENO: result: $CC" >&5
1437echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001438else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001439 echo "$as_me:$LINENO: result: no" >&5
1440echo "${ECHO_T}no" >&6
1441fi
1442
1443fi
1444if test -z "$ac_cv_prog_CC"; then
1445 ac_ct_CC=$CC
1446 # Extract the first word of "gcc", so it can be a program name with args.
1447set dummy gcc; ac_word=$2
1448echo "$as_me:$LINENO: checking for $ac_word" >&5
1449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1450if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1451 echo $ECHO_N "(cached) $ECHO_C" >&6
1452else
1453 if test -n "$ac_ct_CC"; then
1454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1455else
1456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457for as_dir in $PATH
1458do
1459 IFS=$as_save_IFS
1460 test -z "$as_dir" && as_dir=.
1461 for ac_exec_ext in '' $ac_executable_extensions; do
1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463 ac_cv_prog_ac_ct_CC="gcc"
1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465 break 2
1466 fi
1467done
1468done
1469
1470fi
1471fi
1472ac_ct_CC=$ac_cv_prog_ac_ct_CC
1473if test -n "$ac_ct_CC"; then
1474 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1475echo "${ECHO_T}$ac_ct_CC" >&6
1476else
1477 echo "$as_me:$LINENO: result: no" >&5
1478echo "${ECHO_T}no" >&6
1479fi
1480
1481 CC=$ac_ct_CC
1482else
1483 CC="$ac_cv_prog_CC"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001484fi
1485
1486if test -z "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001487 if test -n "$ac_tool_prefix"; then
1488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1489set dummy ${ac_tool_prefix}cc; ac_word=$2
1490echo "$as_me:$LINENO: checking for $ac_word" >&5
1491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001494else
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC="$CC" # Let the user override the test.
1497else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499for as_dir in $PATH
1500do
1501 IFS=$as_save_IFS
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 ac_cv_prog_CC="${ac_tool_prefix}cc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 break 2
1508 fi
1509done
1510done
1511
1512fi
1513fi
1514CC=$ac_cv_prog_CC
1515if test -n "$CC"; then
1516 echo "$as_me:$LINENO: result: $CC" >&5
1517echo "${ECHO_T}$CC" >&6
1518else
1519 echo "$as_me:$LINENO: result: no" >&5
1520echo "${ECHO_T}no" >&6
1521fi
1522
1523fi
1524if test -z "$ac_cv_prog_CC"; then
1525 ac_ct_CC=$CC
1526 # Extract the first word of "cc", so it can be a program name with args.
1527set dummy cc; ac_word=$2
1528echo "$as_me:$LINENO: checking for $ac_word" >&5
1529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1532else
1533 if test -n "$ac_ct_CC"; then
1534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1535else
1536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537for as_dir in $PATH
1538do
1539 IFS=$as_save_IFS
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_ac_ct_CC="cc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 break 2
1546 fi
1547done
1548done
1549
1550fi
1551fi
1552ac_ct_CC=$ac_cv_prog_ac_ct_CC
1553if test -n "$ac_ct_CC"; then
1554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1555echo "${ECHO_T}$ac_ct_CC" >&6
1556else
1557 echo "$as_me:$LINENO: result: no" >&5
1558echo "${ECHO_T}no" >&6
1559fi
1560
1561 CC=$ac_ct_CC
1562else
1563 CC="$ac_cv_prog_CC"
1564fi
1565
1566fi
1567if test -z "$CC"; then
1568 # Extract the first word of "cc", so it can be a program name with args.
1569set dummy cc; ac_word=$2
1570echo "$as_me:$LINENO: checking for $ac_word" >&5
1571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572if test "${ac_cv_prog_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test.
1577else
Bram Moolenaar071d4272004-06-13 20:20:40 +00001578 ac_prog_rejected=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580for as_dir in $PATH
1581do
1582 IFS=$as_save_IFS
1583 test -z "$as_dir" && as_dir=.
1584 for ac_exec_ext in '' $ac_executable_extensions; do
1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1587 ac_prog_rejected=yes
1588 continue
1589 fi
1590 ac_cv_prog_CC="cc"
1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1592 break 2
1593 fi
1594done
1595done
1596
Bram Moolenaar071d4272004-06-13 20:20:40 +00001597if test $ac_prog_rejected = yes; then
1598 # We found a bogon in the path, so make sure we never use it.
1599 set dummy $ac_cv_prog_CC
1600 shift
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001601 if test $# != 0; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00001602 # We chose a different compiler from the bogus one.
1603 # However, it has the same basename, so the bogon will be chosen
1604 # first if we set CC to just the basename; use the full file name.
1605 shift
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Bram Moolenaar071d4272004-06-13 20:20:40 +00001607 fi
1608fi
1609fi
1610fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001611CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001612if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001613 echo "$as_me:$LINENO: result: $CC" >&5
1614echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001615else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001616 echo "$as_me:$LINENO: result: no" >&5
1617echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001618fi
1619
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001620fi
1621if test -z "$CC"; then
1622 if test -n "$ac_tool_prefix"; then
1623 for ac_prog in cl
1624 do
1625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1627echo "$as_me:$LINENO: checking for $ac_word" >&5
1628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629if test "${ac_cv_prog_CC+set}" = set; then
1630 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001631else
1632 if test -n "$CC"; then
1633 ac_cv_prog_CC="$CC" # Let the user override the test.
1634else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636for as_dir in $PATH
1637do
1638 IFS=$as_save_IFS
1639 test -z "$as_dir" && as_dir=.
1640 for ac_exec_ext in '' $ac_executable_extensions; do
1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644 break 2
1645 fi
1646done
1647done
1648
Bram Moolenaar071d4272004-06-13 20:20:40 +00001649fi
1650fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001651CC=$ac_cv_prog_CC
Bram Moolenaar071d4272004-06-13 20:20:40 +00001652if test -n "$CC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001653 echo "$as_me:$LINENO: result: $CC" >&5
1654echo "${ECHO_T}$CC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001655else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001656 echo "$as_me:$LINENO: result: no" >&5
1657echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001658fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001659
1660 test -n "$CC" && break
1661 done
1662fi
1663if test -z "$CC"; then
1664 ac_ct_CC=$CC
1665 for ac_prog in cl
1666do
1667 # Extract the first word of "$ac_prog", so it can be a program name with args.
1668set dummy $ac_prog; ac_word=$2
1669echo "$as_me:$LINENO: checking for $ac_word" >&5
1670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1673else
1674 if test -n "$ac_ct_CC"; then
1675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1676else
1677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678for as_dir in $PATH
1679do
1680 IFS=$as_save_IFS
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_ac_ct_CC="$ac_prog"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 break 2
Bram Moolenaar071d4272004-06-13 20:20:40 +00001687 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001688done
1689done
1690
1691fi
1692fi
1693ac_ct_CC=$ac_cv_prog_ac_ct_CC
1694if test -n "$ac_ct_CC"; then
1695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1696echo "${ECHO_T}$ac_ct_CC" >&6
1697else
1698 echo "$as_me:$LINENO: result: no" >&5
1699echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001700fi
1701
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001702 test -n "$ac_ct_CC" && break
1703done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001704
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001705 CC=$ac_ct_CC
1706fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001707
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001708fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001709
Bram Moolenaar071d4272004-06-13 20:20:40 +00001710
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001711test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1712See \`config.log' for more details." >&5
1713echo "$as_me: error: no acceptable C compiler found in \$PATH
1714See \`config.log' for more details." >&2;}
1715 { (exit 1); exit 1; }; }
1716
1717# Provide some information about the compiler.
1718echo "$as_me:$LINENO:" \
1719 "checking for C compiler version" >&5
1720ac_compiler=`set X $ac_compile; echo $2`
1721{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1722 (eval $ac_compiler --version </dev/null >&5) 2>&5
1723 ac_status=$?
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }
1726{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1727 (eval $ac_compiler -v </dev/null >&5) 2>&5
1728 ac_status=$?
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730 (exit $ac_status); }
1731{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1732 (eval $ac_compiler -V </dev/null >&5) 2>&5
1733 ac_status=$?
1734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1735 (exit $ac_status); }
1736
1737cat >conftest.$ac_ext <<_ACEOF
1738/* confdefs.h. */
1739_ACEOF
1740cat confdefs.h >>conftest.$ac_ext
1741cat >>conftest.$ac_ext <<_ACEOF
1742/* end confdefs.h. */
1743
1744int
1745main ()
1746{
1747
1748 ;
1749 return 0;
1750}
1751_ACEOF
1752ac_clean_files_save=$ac_clean_files
1753ac_clean_files="$ac_clean_files a.out a.exe b.out"
1754# Try to create an executable without -o first, disregard a.out.
1755# It will help us diagnose broken compilers, and finding out an intuition
1756# of exeext.
1757echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1758echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1759ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1760if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1761 (eval $ac_link_default) 2>&5
1762 ac_status=$?
1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1764 (exit $ac_status); }; then
1765 # Find the output, starting from the most likely. This scheme is
1766# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1767# resort.
1768
1769# Be careful to initialize this variable, since it used to be cached.
1770# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1771ac_cv_exeext=
1772# b.out is created by i960 compilers.
1773for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1774do
1775 test -f "$ac_file" || continue
1776 case $ac_file in
1777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1778 ;;
1779 conftest.$ac_ext )
1780 # This is the source file.
1781 ;;
1782 [ab].out )
1783 # We found the default executable, but exeext='' is most
1784 # certainly right.
1785 break;;
1786 *.* )
1787 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1788 # FIXME: I believe we export ac_cv_exeext for Libtool,
1789 # but it would be cool to find out if it's true. Does anybody
1790 # maintain Libtool? --akim.
1791 export ac_cv_exeext
1792 break;;
1793 * )
1794 break;;
1795 esac
1796done
1797else
1798 echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1802See \`config.log' for more details." >&5
1803echo "$as_me: error: C compiler cannot create executables
1804See \`config.log' for more details." >&2;}
1805 { (exit 77); exit 77; }; }
1806fi
1807
1808ac_exeext=$ac_cv_exeext
1809echo "$as_me:$LINENO: result: $ac_file" >&5
1810echo "${ECHO_T}$ac_file" >&6
1811
1812# Check the compiler produces executables we can run. If not, either
1813# the compiler is broken, or we cross compile.
1814echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1815echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1816# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1817# If not cross compiling, check that we can run a simple program.
1818if test "$cross_compiling" != yes; then
1819 if { ac_try='./$ac_file'
1820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1821 (eval $ac_try) 2>&5
1822 ac_status=$?
1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824 (exit $ac_status); }; }; then
1825 cross_compiling=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00001826 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001827 if test "$cross_compiling" = maybe; then
1828 cross_compiling=yes
1829 else
1830 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1831If you meant to cross compile, use \`--host'.
1832See \`config.log' for more details." >&5
1833echo "$as_me: error: cannot run C compiled programs.
1834If you meant to cross compile, use \`--host'.
1835See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1837 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001838 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00001839fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001840echo "$as_me:$LINENO: result: yes" >&5
1841echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001842
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001843rm -f a.out a.exe conftest$ac_cv_exeext b.out
1844ac_clean_files=$ac_clean_files_save
1845# Check the compiler produces executables we can run. If not, either
1846# the compiler is broken, or we cross compile.
1847echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1848echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1849echo "$as_me:$LINENO: result: $cross_compiling" >&5
1850echo "${ECHO_T}$cross_compiling" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00001851
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001852echo "$as_me:$LINENO: checking for suffix of executables" >&5
1853echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1855 (eval $ac_link) 2>&5
1856 ac_status=$?
1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858 (exit $ac_status); }; then
1859 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1860# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1861# work properly (i.e., refer to `conftest.exe'), while it won't with
1862# `rm'.
1863for ac_file in conftest.exe conftest conftest.*; do
1864 test -f "$ac_file" || continue
1865 case $ac_file in
1866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1867 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1868 export ac_cv_exeext
1869 break;;
1870 * ) break;;
1871 esac
1872done
Bram Moolenaar071d4272004-06-13 20:20:40 +00001873else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1875See \`config.log' for more details." >&5
1876echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1877See \`config.log' for more details." >&2;}
1878 { (exit 1); exit 1; }; }
1879fi
1880
1881rm -f conftest$ac_cv_exeext
1882echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1883echo "${ECHO_T}$ac_cv_exeext" >&6
1884
1885rm -f conftest.$ac_ext
1886EXEEXT=$ac_cv_exeext
1887ac_exeext=$EXEEXT
1888echo "$as_me:$LINENO: checking for suffix of object files" >&5
1889echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1890if test "${ac_cv_objext+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893 cat >conftest.$ac_ext <<_ACEOF
1894/* confdefs.h. */
1895_ACEOF
1896cat confdefs.h >>conftest.$ac_ext
1897cat >>conftest.$ac_ext <<_ACEOF
1898/* end confdefs.h. */
1899
1900int
1901main ()
1902{
1903
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908rm -f conftest.o conftest.obj
1909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1915 case $ac_file in
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1918 break;;
1919 esac
1920done
1921else
1922 echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1926See \`config.log' for more details." >&5
1927echo "$as_me: error: cannot compute suffix of object files: cannot compile
1928See \`config.log' for more details." >&2;}
1929 { (exit 1); exit 1; }; }
1930fi
1931
1932rm -f conftest.$ac_cv_objext conftest.$ac_ext
1933fi
1934echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1935echo "${ECHO_T}$ac_cv_objext" >&6
1936OBJEXT=$ac_cv_objext
1937ac_objext=$OBJEXT
1938echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1939echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1940if test "${ac_cv_c_compiler_gnu+set}" = set; then
1941 echo $ECHO_N "(cached) $ECHO_C" >&6
1942else
1943 cat >conftest.$ac_ext <<_ACEOF
1944/* confdefs.h. */
1945_ACEOF
1946cat confdefs.h >>conftest.$ac_ext
1947cat >>conftest.$ac_ext <<_ACEOF
1948/* end confdefs.h. */
1949
1950int
1951main ()
1952{
1953#ifndef __GNUC__
1954 choke me
Bram Moolenaar071d4272004-06-13 20:20:40 +00001955#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00001956
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001957 ;
1958 return 0;
1959}
1960_ACEOF
1961rm -f conftest.$ac_objext
1962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1963 (eval $ac_compile) 2>conftest.er1
1964 ac_status=$?
1965 grep -v '^ *+' conftest.er1 >conftest.err
1966 rm -f conftest.er1
1967 cat conftest.err >&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); } &&
1970 { ac_try='test -z "$ac_c_werror_flag"
1971 || test ! -s conftest.err'
1972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1973 (eval $ac_try) 2>&5
1974 ac_status=$?
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; } &&
1977 { ac_try='test -s conftest.$ac_objext'
1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1979 (eval $ac_try) 2>&5
1980 ac_status=$?
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; }; then
1983 ac_compiler_gnu=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00001984else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001985 echo "$as_me: failed program was:" >&5
1986sed 's/^/| /' conftest.$ac_ext >&5
1987
1988ac_compiler_gnu=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00001989fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1991ac_cv_c_compiler_gnu=$ac_compiler_gnu
Bram Moolenaar071d4272004-06-13 20:20:40 +00001992
Bram Moolenaar495de9c2005-01-25 22:03:25 +00001993fi
1994echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1995echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1996GCC=`test $ac_compiler_gnu = yes && echo yes`
1997ac_test_CFLAGS=${CFLAGS+set}
1998ac_save_CFLAGS=$CFLAGS
1999CFLAGS="-g"
2000echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2001echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2002if test "${ac_cv_prog_cc_g+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002004else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002005 cat >conftest.$ac_ext <<_ACEOF
2006/* confdefs.h. */
2007_ACEOF
2008cat confdefs.h >>conftest.$ac_ext
2009cat >>conftest.$ac_ext <<_ACEOF
2010/* end confdefs.h. */
2011
2012int
2013main ()
2014{
2015
2016 ;
2017 return 0;
2018}
2019_ACEOF
2020rm -f conftest.$ac_objext
2021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>conftest.er1
2023 ac_status=$?
2024 grep -v '^ *+' conftest.er1 >conftest.err
2025 rm -f conftest.er1
2026 cat conftest.err >&5
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); } &&
2029 { ac_try='test -z "$ac_c_werror_flag"
2030 || test ! -s conftest.err'
2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2032 (eval $ac_try) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }; } &&
2036 { ac_try='test -s conftest.$ac_objext'
2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038 (eval $ac_try) 2>&5
2039 ac_status=$?
2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00002042 ac_cv_prog_cc_g=yes
2043else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002044 echo "$as_me: failed program was:" >&5
2045sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00002046
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002047ac_cv_prog_cc_g=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00002048fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2050fi
2051echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2052echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002053if test "$ac_test_CFLAGS" = set; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002054 CFLAGS=$ac_save_CFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00002055elif test $ac_cv_prog_cc_g = yes; then
2056 if test "$GCC" = yes; then
2057 CFLAGS="-g -O2"
2058 else
2059 CFLAGS="-g"
2060 fi
2061else
2062 if test "$GCC" = yes; then
2063 CFLAGS="-O2"
2064 else
2065 CFLAGS=
2066 fi
2067fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002068echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2069echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2070if test "${ac_cv_prog_cc_stdc+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073 ac_cv_prog_cc_stdc=no
2074ac_save_CC=$CC
2075cat >conftest.$ac_ext <<_ACEOF
2076/* confdefs.h. */
2077_ACEOF
2078cat confdefs.h >>conftest.$ac_ext
2079cat >>conftest.$ac_ext <<_ACEOF
2080/* end confdefs.h. */
2081#include <stdarg.h>
2082#include <stdio.h>
2083#include <sys/types.h>
2084#include <sys/stat.h>
2085/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2086struct buf { int x; };
2087FILE * (*rcsopen) (struct buf *, struct stat *, int);
2088static char *e (p, i)
2089 char **p;
2090 int i;
2091{
2092 return p[i];
2093}
2094static char *f (char * (*g) (char **, int), char **p, ...)
2095{
2096 char *s;
2097 va_list v;
2098 va_start (v,p);
2099 s = g (p, va_arg (v,int));
2100 va_end (v);
2101 return s;
2102}
2103
2104/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2105 function prototypes and stuff, but not '\xHH' hex character constants.
2106 These don't provoke an error unfortunately, instead are silently treated
2107 as 'x'. The following induces an error, until -std1 is added to get
2108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2109 array size at least. It's necessary to write '\x00'==0 to get something
2110 that's true only with -std1. */
2111int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2112
2113int test (int i, double x);
2114struct s1 {int (*f) (int a);};
2115struct s2 {int (*f) (double a);};
2116int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2117int argc;
2118char **argv;
2119int
2120main ()
2121{
2122return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2123 ;
2124 return 0;
2125}
2126_ACEOF
2127# Don't try gcc -ansi; that turns off useful extensions and
2128# breaks some systems' header files.
2129# AIX -qlanglvl=ansi
2130# Ultrix and OSF/1 -std1
2131# HP-UX 10.20 and later -Ae
2132# HP-UX older versions -Aa -D_HPUX_SOURCE
2133# SVR4 -Xc -D__EXTENSIONS__
2134for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2135do
2136 CC="$ac_save_CC $ac_arg"
2137 rm -f conftest.$ac_objext
2138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>conftest.er1
2140 ac_status=$?
2141 grep -v '^ *+' conftest.er1 >conftest.err
2142 rm -f conftest.er1
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -z "$ac_c_werror_flag"
2147 || test ! -s conftest.err'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 (eval $ac_try) 2>&5
2150 ac_status=$?
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; } &&
2153 { ac_try='test -s conftest.$ac_objext'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 (eval $ac_try) 2>&5
2156 ac_status=$?
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; }; then
2159 ac_cv_prog_cc_stdc=$ac_arg
2160break
2161else
2162 echo "$as_me: failed program was:" >&5
2163sed 's/^/| /' conftest.$ac_ext >&5
2164
2165fi
2166rm -f conftest.err conftest.$ac_objext
2167done
2168rm -f conftest.$ac_ext conftest.$ac_objext
2169CC=$ac_save_CC
2170
2171fi
2172
2173case "x$ac_cv_prog_cc_stdc" in
2174 x|xno)
2175 echo "$as_me:$LINENO: result: none needed" >&5
2176echo "${ECHO_T}none needed" >&6 ;;
2177 *)
2178 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2179echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2180 CC="$CC $ac_cv_prog_cc_stdc" ;;
2181esac
2182
2183# Some people use a C++ compiler to compile C. Since we use `exit',
2184# in C++ we need to declare it. In case someone uses the same compiler
2185# for both compiling C and C++ we need to have the C++ compiler decide
2186# the declaration of exit, since it's the most demanding environment.
2187cat >conftest.$ac_ext <<_ACEOF
2188#ifndef __cplusplus
2189 choke me
2190#endif
2191_ACEOF
2192rm -f conftest.$ac_objext
2193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>conftest.er1
2195 ac_status=$?
2196 grep -v '^ *+' conftest.er1 >conftest.err
2197 rm -f conftest.er1
2198 cat conftest.err >&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try='test -z "$ac_c_werror_flag"
2202 || test ! -s conftest.err'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204 (eval $ac_try) 2>&5
2205 ac_status=$?
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; } &&
2208 { ac_try='test -s conftest.$ac_objext'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2210 (eval $ac_try) 2>&5
2211 ac_status=$?
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; }; then
2214 for ac_declaration in \
2215 '' \
2216 'extern "C" void std::exit (int) throw (); using std::exit;' \
2217 'extern "C" void std::exit (int); using std::exit;' \
2218 'extern "C" void exit (int) throw ();' \
2219 'extern "C" void exit (int);' \
2220 'void exit (int);'
2221do
2222 cat >conftest.$ac_ext <<_ACEOF
2223/* confdefs.h. */
2224_ACEOF
2225cat confdefs.h >>conftest.$ac_ext
2226cat >>conftest.$ac_ext <<_ACEOF
2227/* end confdefs.h. */
2228$ac_declaration
2229#include <stdlib.h>
2230int
2231main ()
2232{
2233exit (42);
2234 ;
2235 return 0;
2236}
2237_ACEOF
2238rm -f conftest.$ac_objext
2239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240 (eval $ac_compile) 2>conftest.er1
2241 ac_status=$?
2242 grep -v '^ *+' conftest.er1 >conftest.err
2243 rm -f conftest.er1
2244 cat conftest.err >&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); } &&
2247 { ac_try='test -z "$ac_c_werror_flag"
2248 || test ! -s conftest.err'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 (eval $ac_try) 2>&5
2251 ac_status=$?
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; } &&
2254 { ac_try='test -s conftest.$ac_objext'
2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256 (eval $ac_try) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); }; }; then
2260 :
2261else
2262 echo "$as_me: failed program was:" >&5
2263sed 's/^/| /' conftest.$ac_ext >&5
2264
2265continue
2266fi
2267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2268 cat >conftest.$ac_ext <<_ACEOF
2269/* confdefs.h. */
2270_ACEOF
2271cat confdefs.h >>conftest.$ac_ext
2272cat >>conftest.$ac_ext <<_ACEOF
2273/* end confdefs.h. */
2274$ac_declaration
2275int
2276main ()
2277{
2278exit (42);
2279 ;
2280 return 0;
2281}
2282_ACEOF
2283rm -f conftest.$ac_objext
2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>conftest.er1
2286 ac_status=$?
2287 grep -v '^ *+' conftest.er1 >conftest.err
2288 rm -f conftest.er1
2289 cat conftest.err >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -z "$ac_c_werror_flag"
2293 || test ! -s conftest.err'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2295 (eval $ac_try) 2>&5
2296 ac_status=$?
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2301 (eval $ac_try) 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2305 break
2306else
2307 echo "$as_me: failed program was:" >&5
2308sed 's/^/| /' conftest.$ac_ext >&5
2309
2310fi
2311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2312done
2313rm -f conftest*
2314if test -n "$ac_declaration"; then
2315 echo '#ifdef __cplusplus' >>confdefs.h
2316 echo $ac_declaration >>confdefs.h
2317 echo '#endif' >>confdefs.h
2318fi
2319
2320else
2321 echo "$as_me: failed program was:" >&5
2322sed 's/^/| /' conftest.$ac_ext >&5
2323
2324fi
2325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326ac_ext=c
2327ac_cpp='$CPP $CPPFLAGS'
2328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2330ac_compiler_gnu=$ac_cv_c_compiler_gnu
2331 ac_ext=c
2332ac_cpp='$CPP $CPPFLAGS'
2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2337echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002338# On Suns, sometimes $CPP names a directory.
2339if test -n "$CPP" && test -d "$CPP"; then
2340 CPP=
2341fi
2342if test -z "$CPP"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002343 if test "${ac_cv_prog_CPP+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002345else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002346 # Double quotes because CPP needs to be expanded
2347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2348 do
2349 ac_preproc_ok=false
2350for ac_c_preproc_warn_flag in '' yes
2351do
2352 # Use a header file that comes with gcc, so configuring glibc
2353 # with a fresh cross-compiler works.
2354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2355 # <limits.h> exists even on freestanding compilers.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002356 # On the NeXT, cc -E runs the code through the compiler's parser,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002357 # not just through cpp. "Syntax error" is here to catch this case.
2358 cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h. */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h. */
2364#ifdef __STDC__
2365# include <limits.h>
2366#else
2367# include <assert.h>
2368#endif
2369 Syntax error
2370_ACEOF
2371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2373 ac_status=$?
2374 grep -v '^ *+' conftest.er1 >conftest.err
2375 rm -f conftest.er1
2376 cat conftest.err >&5
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } >/dev/null; then
2379 if test -s conftest.err; then
2380 ac_cpp_err=$ac_c_preproc_warn_flag
2381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Bram Moolenaar071d4272004-06-13 20:20:40 +00002382 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002383 ac_cpp_err=
Bram Moolenaar071d4272004-06-13 20:20:40 +00002384 fi
2385else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002386 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002387fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002388if test -z "$ac_cpp_err"; then
2389 :
2390else
2391 echo "$as_me: failed program was:" >&5
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
2394 # Broken: fails on valid input.
2395continue
2396fi
2397rm -f conftest.err conftest.$ac_ext
2398
2399 # OK, works on sane cases. Now check whether non-existent headers
2400 # can be detected and how.
2401 cat >conftest.$ac_ext <<_ACEOF
2402/* confdefs.h. */
2403_ACEOF
2404cat confdefs.h >>conftest.$ac_ext
2405cat >>conftest.$ac_ext <<_ACEOF
2406/* end confdefs.h. */
2407#include <ac_nonexistent.h>
2408_ACEOF
2409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2411 ac_status=$?
2412 grep -v '^ *+' conftest.er1 >conftest.err
2413 rm -f conftest.er1
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } >/dev/null; then
2417 if test -s conftest.err; then
2418 ac_cpp_err=$ac_c_preproc_warn_flag
2419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2420 else
2421 ac_cpp_err=
2422 fi
2423else
2424 ac_cpp_err=yes
2425fi
2426if test -z "$ac_cpp_err"; then
2427 # Broken: success on invalid input.
2428continue
2429else
2430 echo "$as_me: failed program was:" >&5
2431sed 's/^/| /' conftest.$ac_ext >&5
2432
2433 # Passes both tests.
2434ac_preproc_ok=:
2435break
2436fi
2437rm -f conftest.err conftest.$ac_ext
2438
2439done
2440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2441rm -f conftest.err conftest.$ac_ext
2442if $ac_preproc_ok; then
2443 break
2444fi
2445
2446 done
2447 ac_cv_prog_CPP=$CPP
2448
2449fi
2450 CPP=$ac_cv_prog_CPP
2451else
2452 ac_cv_prog_CPP=$CPP
2453fi
2454echo "$as_me:$LINENO: result: $CPP" >&5
2455echo "${ECHO_T}$CPP" >&6
2456ac_preproc_ok=false
2457for ac_c_preproc_warn_flag in '' yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002458do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002459 # Use a header file that comes with gcc, so configuring glibc
2460 # with a fresh cross-compiler works.
2461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2462 # <limits.h> exists even on freestanding compilers.
2463 # On the NeXT, cc -E runs the code through the compiler's parser,
2464 # not just through cpp. "Syntax error" is here to catch this case.
2465 cat >conftest.$ac_ext <<_ACEOF
2466/* confdefs.h. */
2467_ACEOF
2468cat confdefs.h >>conftest.$ac_ext
2469cat >>conftest.$ac_ext <<_ACEOF
2470/* end confdefs.h. */
2471#ifdef __STDC__
2472# include <limits.h>
2473#else
2474# include <assert.h>
2475#endif
2476 Syntax error
2477_ACEOF
2478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2480 ac_status=$?
2481 grep -v '^ *+' conftest.er1 >conftest.err
2482 rm -f conftest.er1
2483 cat conftest.err >&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); } >/dev/null; then
2486 if test -s conftest.err; then
2487 ac_cpp_err=$ac_c_preproc_warn_flag
2488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2489 else
2490 ac_cpp_err=
2491 fi
2492else
2493 ac_cpp_err=yes
2494fi
2495if test -z "$ac_cpp_err"; then
2496 :
2497else
2498 echo "$as_me: failed program was:" >&5
2499sed 's/^/| /' conftest.$ac_ext >&5
2500
2501 # Broken: fails on valid input.
2502continue
2503fi
2504rm -f conftest.err conftest.$ac_ext
2505
2506 # OK, works on sane cases. Now check whether non-existent headers
2507 # can be detected and how.
2508 cat >conftest.$ac_ext <<_ACEOF
2509/* confdefs.h. */
2510_ACEOF
2511cat confdefs.h >>conftest.$ac_ext
2512cat >>conftest.$ac_ext <<_ACEOF
2513/* end confdefs.h. */
2514#include <ac_nonexistent.h>
2515_ACEOF
2516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2518 ac_status=$?
2519 grep -v '^ *+' conftest.er1 >conftest.err
2520 rm -f conftest.er1
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } >/dev/null; then
2524 if test -s conftest.err; then
2525 ac_cpp_err=$ac_c_preproc_warn_flag
2526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2527 else
2528 ac_cpp_err=
2529 fi
2530else
2531 ac_cpp_err=yes
2532fi
2533if test -z "$ac_cpp_err"; then
2534 # Broken: success on invalid input.
2535continue
2536else
2537 echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 # Passes both tests.
2541ac_preproc_ok=:
2542break
2543fi
2544rm -f conftest.err conftest.$ac_ext
2545
2546done
2547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2548rm -f conftest.err conftest.$ac_ext
2549if $ac_preproc_ok; then
2550 :
2551else
2552 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2553See \`config.log' for more details." >&5
2554echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2555See \`config.log' for more details." >&2;}
2556 { (exit 1); exit 1; }; }
2557fi
2558
2559ac_ext=c
2560ac_cpp='$CPP $CPPFLAGS'
2561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564
2565
2566echo "$as_me:$LINENO: checking for egrep" >&5
2567echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2568if test "${ac_cv_prog_egrep+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570else
2571 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2572 then ac_cv_prog_egrep='grep -E'
2573 else ac_cv_prog_egrep='egrep'
2574 fi
2575fi
2576echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2577echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2578 EGREP=$ac_cv_prog_egrep
2579
2580
2581cat >conftest.$ac_ext <<_ACEOF
2582/* confdefs.h. */
2583_ACEOF
2584cat confdefs.h >>conftest.$ac_ext
2585cat >>conftest.$ac_ext <<_ACEOF
2586/* end confdefs.h. */
2587
2588_ACEOF
2589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2590 $EGREP "" >/dev/null 2>&1; then
2591 :
2592fi
2593rm -f conftest*
2594 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2595echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2596if test "${ac_cv_search_strerror+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599 ac_func_search_save_LIBS=$LIBS
2600ac_cv_search_strerror=no
2601cat >conftest.$ac_ext <<_ACEOF
2602/* confdefs.h. */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
2606/* end confdefs.h. */
2607
2608/* Override any gcc2 internal prototype to avoid an error. */
2609#ifdef __cplusplus
2610extern "C"
2611#endif
2612/* We use char because int might match the return type of a gcc2
2613 builtin and then its argument prototype would still apply. */
2614char strerror ();
2615int
2616main ()
2617{
2618strerror ();
2619 ;
2620 return 0;
2621}
2622_ACEOF
2623rm -f conftest.$ac_objext conftest$ac_exeext
2624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2625 (eval $ac_link) 2>conftest.er1
2626 ac_status=$?
2627 grep -v '^ *+' conftest.er1 >conftest.err
2628 rm -f conftest.er1
2629 cat conftest.err >&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -z "$ac_c_werror_flag"
2633 || test ! -s conftest.err'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; } &&
2639 { ac_try='test -s conftest$ac_exeext'
2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 (eval $ac_try) 2>&5
2642 ac_status=$?
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; }; then
2645 ac_cv_search_strerror="none required"
2646else
2647 echo "$as_me: failed program was:" >&5
2648sed 's/^/| /' conftest.$ac_ext >&5
2649
2650fi
2651rm -f conftest.err conftest.$ac_objext \
2652 conftest$ac_exeext conftest.$ac_ext
2653if test "$ac_cv_search_strerror" = no; then
2654 for ac_lib in cposix; do
2655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2656 cat >conftest.$ac_ext <<_ACEOF
2657/* confdefs.h. */
2658_ACEOF
2659cat confdefs.h >>conftest.$ac_ext
2660cat >>conftest.$ac_ext <<_ACEOF
2661/* end confdefs.h. */
2662
2663/* Override any gcc2 internal prototype to avoid an error. */
2664#ifdef __cplusplus
2665extern "C"
2666#endif
2667/* We use char because int might match the return type of a gcc2
2668 builtin and then its argument prototype would still apply. */
2669char strerror ();
2670int
2671main ()
2672{
2673strerror ();
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678rm -f conftest.$ac_objext conftest$ac_exeext
2679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2680 (eval $ac_link) 2>conftest.er1
2681 ac_status=$?
2682 grep -v '^ *+' conftest.er1 >conftest.err
2683 rm -f conftest.er1
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } &&
2687 { ac_try='test -z "$ac_c_werror_flag"
2688 || test ! -s conftest.err'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; } &&
2694 { ac_try='test -s conftest$ac_exeext'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696 (eval $ac_try) 2>&5
2697 ac_status=$?
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; }; then
2700 ac_cv_search_strerror="-l$ac_lib"
2701break
2702else
2703 echo "$as_me: failed program was:" >&5
2704sed 's/^/| /' conftest.$ac_ext >&5
2705
2706fi
2707rm -f conftest.err conftest.$ac_objext \
2708 conftest$ac_exeext conftest.$ac_ext
2709 done
2710fi
2711LIBS=$ac_func_search_save_LIBS
2712fi
2713echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2714echo "${ECHO_T}$ac_cv_search_strerror" >&6
2715if test "$ac_cv_search_strerror" != no; then
2716 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2717
2718fi
2719 for ac_prog in gawk mawk nawk awk
2720do
2721 # Extract the first word of "$ac_prog", so it can be a program name with args.
Bram Moolenaar071d4272004-06-13 20:20:40 +00002722set dummy $ac_prog; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002723echo "$as_me:$LINENO: checking for $ac_word" >&5
2724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2725if test "${ac_cv_prog_AWK+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002727else
2728 if test -n "$AWK"; then
2729 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2730else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732for as_dir in $PATH
2733do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_prog_AWK="$ac_prog"
2739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2741 fi
2742done
2743done
2744
Bram Moolenaar071d4272004-06-13 20:20:40 +00002745fi
2746fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002747AWK=$ac_cv_prog_AWK
Bram Moolenaar071d4272004-06-13 20:20:40 +00002748if test -n "$AWK"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002749 echo "$as_me:$LINENO: result: $AWK" >&5
2750echo "${ECHO_T}$AWK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002751else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002752 echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002754fi
2755
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002756 test -n "$AWK" && break
Bram Moolenaar071d4272004-06-13 20:20:40 +00002757done
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002758
Bram Moolenaar071d4272004-06-13 20:20:40 +00002759# Extract the first word of "strip", so it can be a program name with args.
2760set dummy strip; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002761echo "$as_me:$LINENO: checking for $ac_word" >&5
2762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2763if test "${ac_cv_prog_STRIP+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002765else
2766 if test -n "$STRIP"; then
2767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2768else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770for as_dir in $PATH
2771do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 ac_cv_prog_STRIP="strip"
2777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780done
2781done
2782
Bram Moolenaar071d4272004-06-13 20:20:40 +00002783 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2784fi
2785fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002786STRIP=$ac_cv_prog_STRIP
Bram Moolenaar071d4272004-06-13 20:20:40 +00002787if test -n "$STRIP"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002788 echo "$as_me:$LINENO: result: $STRIP" >&5
2789echo "${ECHO_T}$STRIP" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002790else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002791 echo "$as_me:$LINENO: result: no" >&5
2792echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002793fi
2794
2795
Bram Moolenaar071d4272004-06-13 20:20:40 +00002796
2797
2798if test -z "$CFLAGS"; then
2799 CFLAGS="-O"
2800 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall"
2801fi
2802if test "$GCC" = yes; then
2803 gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'`
2804 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2"; then
2805 echo 'GCC 3.0.x has a bug in the optimizer, disabling "-O#"'
2806 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'`
2807 else
2808 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then
2809 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"'
2810 CFLAGS="$CFLAGS -fno-strength-reduce"
2811 fi
2812 fi
2813fi
2814
2815if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002816 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS
2817 (cross compiling doesn't work)" >&5
2818echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS
2819 (cross compiling doesn't work)" >&2;}
2820 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00002821fi
2822
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002823test "$GCC" = yes && CPP_MM=M;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002824
2825if test -f ./toolcheck; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002826 { echo "$as_me:$LINENO: checking for buggy tools..." >&5
2827echo "$as_me: checking for buggy tools..." >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +00002828 sh ./toolcheck 1>&6
2829fi
2830
2831OS_EXTRA_SRC=""; OS_EXTRA_OBJ=""
2832
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002833echo "$as_me:$LINENO: checking for BeOS" >&5
2834echo $ECHO_N "checking for BeOS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002835case `uname` in
2836 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002837 BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5
2838echo "${ECHO_T}yes" >&6;;
2839 *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5
2840echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002841esac
2842
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002843echo "$as_me:$LINENO: checking for QNX" >&5
2844echo $ECHO_N "checking for QNX... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002845case `uname` in
2846 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o
2847 test -z "$with_x" && with_x=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002848 QNX=yes; echo "$as_me:$LINENO: result: yes" >&5
2849echo "${ECHO_T}yes" >&6;;
2850 *) QNX=no; echo "$as_me:$LINENO: result: no" >&5
2851echo "${ECHO_T}no" >&6;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002852esac
2853
2854DEFAULT_VIMNAME=vim
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002855echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5
2856echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002857if test "`(uname) 2>/dev/null`" = Darwin; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002858 echo "$as_me:$LINENO: result: yes" >&5
2859echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002860
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002861 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5
2862echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002863 # Check whether --enable-darwin or --disable-darwin was given.
2864if test "${enable_darwin+set}" = set; then
2865 enableval="$enable_darwin"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002866
Bram Moolenaar071d4272004-06-13 20:20:40 +00002867else
2868 enable_darwin="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002869fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00002870 if test "$enable_darwin" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002871 echo "$as_me:$LINENO: result: no" >&5
2872echo "${ECHO_T}no" >&6
2873 echo "$as_me:$LINENO: checking if Darwin files are there" >&5
2874echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002875 if test -f os_macosx.c; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002876 echo "$as_me:$LINENO: result: yes" >&5
2877echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002878 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002879 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5
2880echo "${ECHO_T}no, Darwin support disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002881 enable_darwin=no
2882 fi
2883 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002884 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5
2885echo "${ECHO_T}yes, Darwin support excluded" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002886 fi
2887
2888 if test "$enable_darwin" = "yes"; then
2889 MACOSX=yes
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00002890 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c";
2891 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o"
Bram Moolenaar071d4272004-06-13 20:20:40 +00002892 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp"
2893
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002894 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2895echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2896if test "${ac_cv_header_stdc+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00002898else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002899 cat >conftest.$ac_ext <<_ACEOF
2900/* confdefs.h. */
2901_ACEOF
2902cat confdefs.h >>conftest.$ac_ext
2903cat >>conftest.$ac_ext <<_ACEOF
2904/* end confdefs.h. */
2905#include <stdlib.h>
2906#include <stdarg.h>
2907#include <string.h>
2908#include <float.h>
2909
2910int
2911main ()
2912{
2913
2914 ;
2915 return 0;
2916}
2917_ACEOF
2918rm -f conftest.$ac_objext
2919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920 (eval $ac_compile) 2>conftest.er1
2921 ac_status=$?
2922 grep -v '^ *+' conftest.er1 >conftest.err
2923 rm -f conftest.er1
2924 cat conftest.err >&5
2925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926 (exit $ac_status); } &&
2927 { ac_try='test -z "$ac_c_werror_flag"
2928 || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930 (eval $ac_try) 2>&5
2931 ac_status=$?
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 (eval $ac_try) 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_cv_header_stdc=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00002941else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002942 echo "$as_me: failed program was:" >&5
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
2945ac_cv_header_stdc=no
2946fi
2947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948
2949if test $ac_cv_header_stdc = yes; then
2950 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2951 cat >conftest.$ac_ext <<_ACEOF
2952/* confdefs.h. */
2953_ACEOF
2954cat confdefs.h >>conftest.$ac_ext
2955cat >>conftest.$ac_ext <<_ACEOF
2956/* end confdefs.h. */
2957#include <string.h>
2958
2959_ACEOF
2960if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2961 $EGREP "memchr" >/dev/null 2>&1; then
2962 :
2963else
2964 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00002965fi
2966rm -f conftest*
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002967
Bram Moolenaar071d4272004-06-13 20:20:40 +00002968fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002969
2970if test $ac_cv_header_stdc = yes; then
2971 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2972 cat >conftest.$ac_ext <<_ACEOF
2973/* confdefs.h. */
2974_ACEOF
2975cat confdefs.h >>conftest.$ac_ext
2976cat >>conftest.$ac_ext <<_ACEOF
2977/* end confdefs.h. */
2978#include <stdlib.h>
2979
2980_ACEOF
2981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982 $EGREP "free" >/dev/null 2>&1; then
2983 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00002984else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002985 ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00002986fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00002987rm -f conftest*
2988
2989fi
2990
2991if test $ac_cv_header_stdc = yes; then
2992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2993 if test "$cross_compiling" = yes; then
2994 :
2995else
2996 cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h. */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h. */
3002#include <ctype.h>
3003#if ((' ' & 0x0FF) == 0x020)
3004# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3005# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3006#else
3007# define ISLOWER(c) \
3008 (('a' <= (c) && (c) <= 'i') \
3009 || ('j' <= (c) && (c) <= 'r') \
3010 || ('s' <= (c) && (c) <= 'z'))
3011# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3012#endif
3013
3014#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3015int
3016main ()
3017{
3018 int i;
3019 for (i = 0; i < 256; i++)
3020 if (XOR (islower (i), ISLOWER (i))
3021 || toupper (i) != TOUPPER (i))
3022 exit(2);
3023 exit (0);
3024}
3025_ACEOF
3026rm -f conftest$ac_exeext
3027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028 (eval $ac_link) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 (eval $ac_try) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3037 :
3038else
3039 echo "$as_me: program exited with status $ac_status" >&5
3040echo "$as_me: failed program was:" >&5
3041sed 's/^/| /' conftest.$ac_ext >&5
3042
3043( exit $ac_status )
3044ac_cv_header_stdc=no
3045fi
3046rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3047fi
3048fi
3049fi
3050echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3051echo "${ECHO_T}$ac_cv_header_stdc" >&6
3052if test $ac_cv_header_stdc = yes; then
3053
3054cat >>confdefs.h <<\_ACEOF
3055#define STDC_HEADERS 1
3056_ACEOF
3057
3058fi
3059
3060# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3071 inttypes.h stdint.h unistd.h
3072do
3073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3074echo "$as_me:$LINENO: checking for $ac_header" >&5
3075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3076if eval "test \"\${$as_ac_Header+set}\" = set"; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078else
3079 cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
3085$ac_includes_default
3086
3087#include <$ac_header>
3088_ACEOF
3089rm -f conftest.$ac_objext
3090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 eval "$as_ac_Header=yes"
3112else
3113 echo "$as_me: failed program was:" >&5
3114sed 's/^/| /' conftest.$ac_ext >&5
3115
3116eval "$as_ac_Header=no"
3117fi
3118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3119fi
3120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3122if test `eval echo '${'$as_ac_Header'}'` = yes; then
3123 cat >>confdefs.h <<_ACEOF
3124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3125_ACEOF
3126
3127fi
3128
3129done
3130
3131
3132if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3133 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3134echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3135if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3137fi
3138echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3139echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3140else
3141 # Is the header compilable?
3142echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
3143echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
3144cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
3150$ac_includes_default
3151#include <Carbon/Carbon.h>
3152_ACEOF
3153rm -f conftest.$ac_objext
3154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_c_werror_flag"
3163 || test ! -s conftest.err'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 (eval $ac_try) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171 (eval $ac_try) 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3175 ac_header_compiler=yes
3176else
3177 echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180ac_header_compiler=no
3181fi
3182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3183echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3184echo "${ECHO_T}$ac_header_compiler" >&6
3185
3186# Is the header present?
3187echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
3188echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
3189cat >conftest.$ac_ext <<_ACEOF
3190/* confdefs.h. */
3191_ACEOF
3192cat confdefs.h >>conftest.$ac_ext
3193cat >>conftest.$ac_ext <<_ACEOF
3194/* end confdefs.h. */
3195#include <Carbon/Carbon.h>
3196_ACEOF
3197if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3199 ac_status=$?
3200 grep -v '^ *+' conftest.er1 >conftest.err
3201 rm -f conftest.er1
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); } >/dev/null; then
3205 if test -s conftest.err; then
3206 ac_cpp_err=$ac_c_preproc_warn_flag
3207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3208 else
3209 ac_cpp_err=
3210 fi
3211else
3212 ac_cpp_err=yes
3213fi
3214if test -z "$ac_cpp_err"; then
3215 ac_header_preproc=yes
3216else
3217 echo "$as_me: failed program was:" >&5
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 ac_header_preproc=no
3221fi
3222rm -f conftest.err conftest.$ac_ext
3223echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3224echo "${ECHO_T}$ac_header_preproc" >&6
3225
3226# So? What about this header?
3227case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3228 yes:no: )
3229 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
3230echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3231 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
3232echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
3233 ac_header_preproc=yes
3234 ;;
3235 no:yes:* )
3236 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
3237echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
3238 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
3239echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
3240 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
3241echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
3242 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
3243echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
3244 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
3245echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
3246 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
3247echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
3248 (
3249 cat <<\_ASBOX
3250## ------------------------------------------ ##
3251## Report this to the AC_PACKAGE_NAME lists. ##
3252## ------------------------------------------ ##
3253_ASBOX
3254 ) |
3255 sed "s/^/$as_me: WARNING: /" >&2
3256 ;;
3257esac
3258echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
3259echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
3260if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
3263 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
3264fi
3265echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
3266echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
3267
3268fi
3269if test $ac_cv_header_Carbon_Carbon_h = yes; then
3270 CARBON=yes
3271fi
3272
Bram Moolenaar071d4272004-06-13 20:20:40 +00003273
3274 if test "x$CARBON" = "xyes"; then
Bram Moolenaarab79bcb2004-07-18 21:34:53 +00003275 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 +00003276 with_x=no
3277 DEFAULT_VIMNAME=Vim
3278 fi
3279 fi
3280 fi
3281else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003282 echo "$as_me:$LINENO: result: no" >&5
3283echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003284fi
3285
3286
3287
3288
3289have_local_include=''
3290have_local_lib=''
3291if test "$GCC" = yes; then
3292 echo 'void f(){}' > conftest.c
3293 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'`
3294 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'`
3295 rm -f conftest.c conftest.o
3296fi
3297if test -z "$have_local_lib" -a -d /usr/local/lib; then
3298 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'`
3299 if test "$tt" = "$LDFLAGS"; then
3300 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3301 fi
3302fi
3303if test -z "$have_local_include" -a -d /usr/local/include; then
3304 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'`
3305 if test "$tt" = "$CPPFLAGS"; then
3306 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3307 fi
3308fi
3309
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003310echo "$as_me:$LINENO: checking --with-vim-name argument" >&5
3311echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6
3312
Bram Moolenaar071d4272004-06-13 20:20:40 +00003313# Check whether --with-vim-name or --without-vim-name was given.
3314if test "${with_vim_name+set}" = set; then
3315 withval="$with_vim_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003316 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5
3317echo "${ECHO_T}$VIMNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003318else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003319 VIMNAME="$DEFAULT_VIMNAME"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5
3320echo "${ECHO_T}Defaulting to $VIMNAME" >&6
3321fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003322
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003323echo "$as_me:$LINENO: checking --with-ex-name argument" >&5
3324echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003325
Bram Moolenaar071d4272004-06-13 20:20:40 +00003326# Check whether --with-ex-name or --without-ex-name was given.
3327if test "${with_ex_name+set}" = set; then
3328 withval="$with_ex_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003329 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5
3330echo "${ECHO_T}$EXNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003331else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003332 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5
3333echo "${ECHO_T}Defaulting to ex" >&6
3334fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003335
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003336echo "$as_me:$LINENO: checking --with-view-name argument" >&5
3337echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003338
Bram Moolenaar071d4272004-06-13 20:20:40 +00003339# Check whether --with-view-name or --without-view-name was given.
3340if test "${with_view_name+set}" = set; then
3341 withval="$with_view_name"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003342 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5
3343echo "${ECHO_T}$VIEWNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003344else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003345 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5
3346echo "${ECHO_T}Defaulting to view" >&6
3347fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003348
3349
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003350echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5
3351echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003352
Bram Moolenaar071d4272004-06-13 20:20:40 +00003353# Check whether --with-global-runtime or --without-global-runtime was given.
3354if test "${with_global_runtime+set}" = set; then
3355 withval="$with_global_runtime"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003356 echo "$as_me:$LINENO: result: $withval" >&5
3357echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003358#define RUNTIME_GLOBAL "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003359_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003360
3361else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003362 echo "$as_me:$LINENO: result: no" >&5
3363echo "${ECHO_T}no" >&6
3364fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003365
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003366echo "$as_me:$LINENO: checking --with-modified-by argument" >&5
3367echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003368
Bram Moolenaar071d4272004-06-13 20:20:40 +00003369# Check whether --with-modified-by or --without-modified-by was given.
3370if test "${with_modified_by+set}" = set; then
3371 withval="$with_modified_by"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003372 echo "$as_me:$LINENO: result: $withval" >&5
3373echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003374#define MODIFIED_BY "$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003375_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003376
3377else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003378 echo "$as_me:$LINENO: result: no" >&5
3379echo "${ECHO_T}no" >&6
3380fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003381
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003382echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5
3383echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6
3384cat >conftest.$ac_ext <<_ACEOF
3385/* confdefs.h. */
3386_ACEOF
3387cat confdefs.h >>conftest.$ac_ext
3388cat >>conftest.$ac_ext <<_ACEOF
3389/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003390
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003391int
3392main ()
3393{
Bram Moolenaar071d4272004-06-13 20:20:40 +00003394 /* TryCompile function for CharSet.
3395 Treat any failure as ASCII for compatibility with existing art.
3396 Use compile-time rather than run-time tests for cross-compiler
3397 tolerance. */
3398#if '0'!=240
3399make an error "Character set is not EBCDIC"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003400#endif
3401 ;
3402 return 0;
3403}
3404_ACEOF
3405rm -f conftest.$ac_objext
3406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407 (eval $ac_compile) 2>conftest.er1
3408 ac_status=$?
3409 grep -v '^ *+' conftest.er1 >conftest.err
3410 rm -f conftest.er1
3411 cat conftest.err >&5
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); } &&
3414 { ac_try='test -z "$ac_c_werror_flag"
3415 || test ! -s conftest.err'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417 (eval $ac_try) 2>&5
3418 ac_status=$?
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; } &&
3421 { ac_try='test -s conftest.$ac_objext'
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 (eval $ac_try) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00003427 # TryCompile action if true
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003428cf_cv_ebcdic=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003429else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003430 echo "$as_me: failed program was:" >&5
3431sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 # TryCompile action if false
Bram Moolenaar071d4272004-06-13 20:20:40 +00003434cf_cv_ebcdic=no
3435fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003437# end of TryCompile ])
3438# end of CacheVal CvEbcdic
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003439echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5
3440echo "${ECHO_T}$cf_cv_ebcdic" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003441case "$cf_cv_ebcdic" in #(vi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003442 yes) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003443#define EBCDIC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003444_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003445
3446 line_break='"\\n"'
3447 ;;
3448 *) line_break='"\\012"';;
3449esac
3450
3451
3452if test "$cf_cv_ebcdic" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003453echo "$as_me:$LINENO: checking for OS/390 Unix" >&5
3454echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003455case `uname` in
3456 OS/390) OS390Unix="yes";
3457 if test "$CC" = "cc"; then
3458 ccm="$_CC_CCMODE"
3459 ccn="CC"
3460 else
3461 if test "$CC" = "c89"; then
3462 ccm="$_CC_C89MODE"
3463 ccn="C89"
3464 else
3465 ccm=1
3466 fi
3467 fi
3468 if test "$ccm" != "1"; then
3469 echo ""
3470 echo "------------------------------------------"
3471 echo " On OS/390 Unix, the environment variable"
3472 echo " __CC_${ccn}MODE must be set to \"1\"!"
3473 echo " Do:"
3474 echo " export _CC_${ccn}MODE=1"
3475 echo " and then call configure again."
3476 echo "------------------------------------------"
3477 exit 1
3478 fi
3479 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003480 echo "$as_me:$LINENO: result: yes" >&5
3481echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003482 ;;
3483 *) OS390Unix="no";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003484 echo "$as_me:$LINENO: result: no" >&5
3485echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003486 ;;
3487esac
3488fi
3489
3490
3491
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003492echo "$as_me:$LINENO: checking --with-features argument" >&5
3493echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6
3494
Bram Moolenaar071d4272004-06-13 20:20:40 +00003495# Check whether --with-features or --without-features was given.
3496if test "${with_features+set}" = set; then
3497 withval="$with_features"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003498 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5
3499echo "${ECHO_T}$features" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003500else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003501 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5
3502echo "${ECHO_T}Defaulting to normal" >&6
3503fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003504
3505dovimdiff=""
3506dogvimdiff=""
3507case "$features" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003508 tiny) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003509#define FEAT_TINY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003510_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003511 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003512 small) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003513#define FEAT_SMALL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003514_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003515 ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003516 normal) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003517#define FEAT_NORMAL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003518_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003519 dovimdiff="installvimdiff";
3520 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003521 big) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003522#define FEAT_BIG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003523_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003524 dovimdiff="installvimdiff";
3525 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003526 huge) cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003527#define FEAT_HUGE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003528_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003529 dovimdiff="installvimdiff";
3530 dogvimdiff="installgvimdiff" ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003531 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5
3532echo "${ECHO_T}Sorry, $features is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003533esac
3534
3535
3536
3537
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003538echo "$as_me:$LINENO: checking --with-compiledby argument" >&5
3539echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6
3540
Bram Moolenaar071d4272004-06-13 20:20:40 +00003541# Check whether --with-compiledby or --without-compiledby was given.
3542if test "${with_compiledby+set}" = set; then
3543 withval="$with_compiledby"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003544 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5
3545echo "${ECHO_T}$withval" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003546else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003547 compiledby=""; echo "$as_me:$LINENO: result: no" >&5
3548echo "${ECHO_T}no" >&6
3549fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003550
3551
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003552echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5
3553echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003554# Check whether --enable-xsmp or --disable-xsmp was given.
3555if test "${enable_xsmp+set}" = set; then
3556 enableval="$enable_xsmp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003557
Bram Moolenaar071d4272004-06-13 20:20:40 +00003558else
3559 enable_xsmp="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003560fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003561
3562if test "$enable_xsmp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003563 echo "$as_me:$LINENO: result: no" >&5
3564echo "${ECHO_T}no" >&6
3565 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5
3566echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003567 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given.
3568if test "${enable_xsmp_interact+set}" = set; then
3569 enableval="$enable_xsmp_interact"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003570
Bram Moolenaar071d4272004-06-13 20:20:40 +00003571else
3572 enable_xsmp_interact="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003573fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003574 if test "$enable_xsmp_interact" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003575 echo "$as_me:$LINENO: result: no" >&5
3576echo "${ECHO_T}no" >&6
3577 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003578#define USE_XSMP_INTERACT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003579_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003580
3581 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003582 echo "$as_me:$LINENO: result: yes" >&5
3583echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003584 fi
3585else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003586 echo "$as_me:$LINENO: result: yes" >&5
3587echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003588fi
3589
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003590echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5
3591echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003592# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given.
3593if test "${enable_mzschemeinterp+set}" = set; then
3594 enableval="$enable_mzschemeinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003595
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003596else
3597 enable_mzschemeinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003598fi;
3599echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5
3600echo "${ECHO_T}$enable_mzschemeinterp" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003601
3602if test "$enable_mzschemeinterp" = "yes"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003603
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003604
3605 echo "$as_me:$LINENO: checking --with-plthome argument" >&5
3606echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6
3607
3608# Check whether --with-plthome or --without-plthome was given.
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003609if test "${with_plthome+set}" = set; then
3610 withval="$with_plthome"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003611 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5
3612echo "${ECHO_T}$with_plthome" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003613else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003614 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5
3615echo "${ECHO_T}\"no\"" >&6
3616fi;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003617
3618 if test "X$with_plthome" != "X"; then
3619 vi_cv_path_mzscheme_pfx="$with_plthome"
3620 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003621 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5
3622echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003623 if test "X$PLTHOME" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003624 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5
3625echo "${ECHO_T}\"$PLTHOME\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003626 vi_cv_path_mzscheme_pfx="$PLTHOME"
3627 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003628 echo "$as_me:$LINENO: result: \"not set\"" >&5
3629echo "${ECHO_T}\"not set\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003630 # Extract the first word of "mzscheme", so it can be a program name with args.
3631set dummy mzscheme; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003632echo "$as_me:$LINENO: checking for $ac_word" >&5
3633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3634if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003636else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003637 case $vi_cv_path_mzscheme in
3638 [\\/]* | ?:[\\/]*)
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003639 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path.
3640 ;;
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003641 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext"
3650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3652 fi
3653done
3654done
3655
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003656 ;;
3657esac
3658fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003659vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme
3660
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003661if test -n "$vi_cv_path_mzscheme"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003662 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5
3663echo "${ECHO_T}$vi_cv_path_mzscheme" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003664else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003665 echo "$as_me:$LINENO: result: no" >&5
3666echo "${ECHO_T}no" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003667fi
3668
3669
3670 if test "X$vi_cv_path_mzscheme" != "X"; then
3671 lsout=`ls -l $vi_cv_path_mzscheme`
3672 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then
3673 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'`
3674 fi
3675 fi
3676
3677 if test "X$vi_cv_path_mzscheme" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003678 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5
3679echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6
3680if test "${vi_cv_path_mzscheme_pfx+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003682else
3683 vi_cv_path_mzscheme_pfx=`
3684 ${vi_cv_path_mzscheme} -evm \
3685 "(display (simplify-path \
3686 (build-path (call-with-values \
3687 (lambda () (split-path (find-system-path (quote exec-file)))) \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003688 (lambda (base name must-be-dir?) base)) (quote up))))"`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003689fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003690echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5
3691echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003692 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'`
3693 fi
3694 fi
3695 fi
3696
3697 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003698 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5
3699echo $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 +00003700 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003701 echo "$as_me:$LINENO: result: \"yes\"" >&5
3702echo "${ECHO_T}\"yes\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003703 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003704 echo "$as_me:$LINENO: result: \"no\"" >&5
3705echo "${ECHO_T}\"no\"" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003706 vi_cv_path_mzscheme_pfx=
3707 fi
3708 fi
3709
3710 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then
3711 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then
3712 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a"
3713 else
3714 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003715 if test "$GCC" = yes; then
3716 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar21cf8232004-07-16 20:18:37 +00003717 elif test "`(uname) 2>/dev/null`" = SunOS &&
3718 uname -r | grep '^5' >/dev/null; then
3719 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib"
Bram Moolenaar2df6dcc2004-07-12 15:53:54 +00003720 fi
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003721 fi
3722 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \
3723 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'"
3724 MZSCHEME_SRC="if_mzsch.c"
3725 MZSCHEME_OBJ="objects/if_mzsch.o"
3726 MZSCHEME_PRO="if_mzsch.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003727 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003728#define FEAT_MZSCHEME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003729_ACEOF
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003730
3731 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003732
3733
3734
3735
3736
Bram Moolenaar325b7a22004-07-05 15:58:32 +00003737fi
3738
3739
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003740echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5
3741echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003742# Check whether --enable-perlinterp or --disable-perlinterp was given.
3743if test "${enable_perlinterp+set}" = set; then
3744 enableval="$enable_perlinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003745
Bram Moolenaar071d4272004-06-13 20:20:40 +00003746else
3747 enable_perlinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003748fi;
3749echo "$as_me:$LINENO: result: $enable_perlinterp" >&5
3750echo "${ECHO_T}$enable_perlinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003751if test "$enable_perlinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003752
Bram Moolenaar071d4272004-06-13 20:20:40 +00003753 # Extract the first word of "perl", so it can be a program name with args.
3754set dummy perl; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003755echo "$as_me:$LINENO: checking for $ac_word" >&5
3756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3757if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003759else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003760 case $vi_cv_path_perl in
3761 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003762 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path.
3763 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003764 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH
3767do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776done
3777done
3778
Bram Moolenaar071d4272004-06-13 20:20:40 +00003779 ;;
3780esac
3781fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003782vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl
3783
Bram Moolenaar071d4272004-06-13 20:20:40 +00003784if test -n "$vi_cv_path_perl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003785 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5
3786echo "${ECHO_T}$vi_cv_path_perl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003787else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003788 echo "$as_me:$LINENO: result: no" >&5
3789echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003790fi
3791
3792 if test "X$vi_cv_path_perl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003793 echo "$as_me:$LINENO: checking Perl version" >&5
3794echo $ECHO_N "checking Perl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003795 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then
3796 eval `$vi_cv_path_perl -V:usethreads`
3797 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then
3798 badthreads=no
3799 else
3800 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then
3801 eval `$vi_cv_path_perl -V:use5005threads`
3802 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then
3803 badthreads=no
3804 else
3805 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003806 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5
3807echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003808 fi
3809 else
3810 badthreads=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003811 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5
3812echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003813 fi
3814 fi
3815 if test $badthreads = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003816 echo "$as_me:$LINENO: result: OK" >&5
3817echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003818 eval `$vi_cv_path_perl -V:shrpenv`
3819 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04
3820 shrpenv=""
3821 fi
3822 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003823
Bram Moolenaar071d4272004-06-13 20:20:40 +00003824 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \
3825 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'`
3826 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \
3827 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \
3828 -e 's/-bE:perl.exp//' -e 's/-lc //'`
3829 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \
3830 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'`
3831
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003832 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5
3833echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003834 cflags_save=$CFLAGS
3835 libs_save=$LIBS
3836 ldflags_save=$LDFLAGS
3837 CFLAGS="$CFLAGS $perlcppflags"
3838 LIBS="$LIBS $perllibs"
3839 LDFLAGS="$perlldflags $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003840 cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h. */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
3845/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00003846
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003847int
3848main ()
3849{
3850
3851 ;
3852 return 0;
3853}
3854_ACEOF
3855rm -f conftest.$ac_objext conftest$ac_exeext
3856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3857 (eval $ac_link) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } &&
3864 { ac_try='test -z "$ac_c_werror_flag"
3865 || test ! -s conftest.err'
3866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3867 (eval $ac_try) 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; } &&
3871 { ac_try='test -s conftest$ac_exeext'
3872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3873 (eval $ac_try) 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3877 echo "$as_me:$LINENO: result: yes" >&5
3878echo "${ECHO_T}yes" >&6; perl_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00003879else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003880 echo "$as_me: failed program was:" >&5
3881sed 's/^/| /' conftest.$ac_ext >&5
3882
3883echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5
3884echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00003885fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003886rm -f conftest.err conftest.$ac_objext \
3887 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00003888 CFLAGS=$cflags_save
3889 LIBS=$libs_save
3890 LDFLAGS=$ldflags_save
3891 if test $perl_ok = yes; then
3892 if test "X$perlcppflags" != "X"; then
3893 PERL_CFLAGS="$perlcppflags"
3894 fi
3895 if test "X$perlldflags" != "X"; then
3896 LDFLAGS="$perlldflags $LDFLAGS"
3897 fi
3898 PERL_LIBS=$perllibs
3899 PERL_SRC="auto/if_perl.c if_perlsfio.c"
3900 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o"
3901 PERL_PRO="if_perl.pro if_perlsfio.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003902 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003903#define FEAT_PERL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003904_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00003905
3906 fi
3907 fi
3908 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003909 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5
3910echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003911 fi
3912 fi
3913
3914 if test "x$MACOSX" = "xyes"; then
3915 dir=/System/Library/Perl
3916 darwindir=$dir/darwin
3917 if test -d $darwindir; then
3918 PERL=/usr/bin/perl
3919 else
3920 dir=/System/Library/Perl/5.8.1
3921 darwindir=$dir/darwin-thread-multi-2level
3922 if test -d $darwindir; then
3923 PERL=/usr/bin/perl
3924 fi
3925 fi
3926 if test -n "$PERL"; then
3927 PERL_DIR="$dir"
3928 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE"
3929 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a"
3930 PERL_LIBS="-L$darwindir/CORE -lperl"
3931 fi
3932 fi
3933fi
3934
3935
3936
3937
3938
3939
3940
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003941echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5
3942echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003943# Check whether --enable-pythoninterp or --disable-pythoninterp was given.
3944if test "${enable_pythoninterp+set}" = set; then
3945 enableval="$enable_pythoninterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003946
Bram Moolenaar071d4272004-06-13 20:20:40 +00003947else
3948 enable_pythoninterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003949fi;
3950echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5
3951echo "${ECHO_T}$enable_pythoninterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003952if test "$enable_pythoninterp" = "yes"; then
3953 # Extract the first word of "python", so it can be a program name with args.
3954set dummy python; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003955echo "$as_me:$LINENO: checking for $ac_word" >&5
3956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3957if test "${ac_cv_path_vi_cv_path_python+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003959else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003960 case $vi_cv_path_python in
3961 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00003962 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path.
3963 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00003964 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH
3967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext"
3973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3974 break 2
3975 fi
3976done
3977done
3978
Bram Moolenaar071d4272004-06-13 20:20:40 +00003979 ;;
3980esac
3981fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003982vi_cv_path_python=$ac_cv_path_vi_cv_path_python
3983
Bram Moolenaar071d4272004-06-13 20:20:40 +00003984if test -n "$vi_cv_path_python"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003985 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5
3986echo "${ECHO_T}$vi_cv_path_python" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003987else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003988 echo "$as_me:$LINENO: result: no" >&5
3989echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003990fi
3991
3992 if test "X$vi_cv_path_python" != "X"; then
3993
Bram Moolenaar495de9c2005-01-25 22:03:25 +00003994 echo "$as_me:$LINENO: checking Python version" >&5
3995echo $ECHO_N "checking Python version... $ECHO_C" >&6
3996if test "${vi_cv_var_python_version+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00003998else
3999 vi_cv_var_python_version=`
4000 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004001
Bram Moolenaar071d4272004-06-13 20:20:40 +00004002fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004003echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5
4004echo "${ECHO_T}$vi_cv_var_python_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004005
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004006 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5
4007echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004008 if ${vi_cv_path_python} -c \
4009 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)"
4010 then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004011 echo "$as_me:$LINENO: result: yep" >&5
4012echo "${ECHO_T}yep" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004013
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004014 echo "$as_me:$LINENO: checking Python's install prefix" >&5
4015echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6
4016if test "${vi_cv_path_python_pfx+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004018else
4019 vi_cv_path_python_pfx=`
4020 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004021 "import sys; print sys.prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004022fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004023echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5
4024echo "${ECHO_T}$vi_cv_path_python_pfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004025
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004026 echo "$as_me:$LINENO: checking Python's execution prefix" >&5
4027echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6
4028if test "${vi_cv_path_python_epfx+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004030else
4031 vi_cv_path_python_epfx=`
4032 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004033 "import sys; print sys.exec_prefix"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004034fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004035echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5
4036echo "${ECHO_T}$vi_cv_path_python_epfx" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004037
Bram Moolenaar071d4272004-06-13 20:20:40 +00004038
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004039 if test "${vi_cv_path_pythonpath+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004041else
4042 vi_cv_path_pythonpath=`
4043 unset PYTHONPATH;
4044 ${vi_cv_path_python} -c \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004045 "import sys, string; print string.join(sys.path,':')"`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004046fi
4047
4048
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004049
4050
4051# Check whether --with-python-config-dir or --without-python-config-dir was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004052if test "${with_python_config_dir+set}" = set; then
4053 withval="$with_python_config_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004054 vi_cv_path_python_conf="${withval}"
4055fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004056
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004057 echo "$as_me:$LINENO: checking Python's configuration directory" >&5
4058echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6
4059if test "${vi_cv_path_python_conf+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004061else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004062
Bram Moolenaar071d4272004-06-13 20:20:40 +00004063 vi_cv_path_python_conf=
4064 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do
4065 for subdir in lib share; do
4066 d="${path}/${subdir}/python${vi_cv_var_python_version}/config"
4067 if test -d "$d" && test -f "$d/config.c"; then
4068 vi_cv_path_python_conf="$d"
4069 fi
4070 done
4071 done
Bram Moolenaar071d4272004-06-13 20:20:40 +00004072
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004073fi
4074echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5
4075echo "${ECHO_T}$vi_cv_path_python_conf" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004076
4077 PYTHON_CONFDIR="${vi_cv_path_python_conf}"
4078
4079 if test "X$PYTHON_CONFDIR" = "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004080 echo "$as_me:$LINENO: result: can't find it!" >&5
4081echo "${ECHO_T}can't find it!" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004082 else
4083
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004084 if test "${vi_cv_path_python_plibs+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004086else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004087
Bram Moolenaar071d4272004-06-13 20:20:40 +00004088 tmp_mkf="/tmp/Makefile-conf$$"
4089 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf}
4090__:
4091 @echo "python_MODLIBS='$(MODLIBS)'"
4092 @echo "python_LIBS='$(LIBS)'"
4093 @echo "python_SYSLIBS='$(SYSLIBS)'"
4094 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'"
4095eof
4096 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`"
4097 rm -f ${tmp_mkf}
4098 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \
4099 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then
4100 vi_cv_path_python_plibs="-framework Python"
4101 else
4102 if test "${vi_cv_var_python_version}" = "1.4"; then
4103 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a"
4104 else
4105 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}"
4106 fi
4107 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}"
4108 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//`
4109 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004110
Bram Moolenaar071d4272004-06-13 20:20:40 +00004111fi
4112
4113
4114 PYTHON_LIBS="${vi_cv_path_python_plibs}"
4115 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then
4116 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}"
4117 else
4118 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}"
4119 fi
4120 PYTHON_SRC="if_python.c"
4121 if test "x$MACOSX" = "xyes"; then
4122 PYTHON_OBJ="objects/if_python.o"
4123 else
4124 PYTHON_OBJ="objects/if_python.o objects/py_config.o"
4125 fi
4126 if test "${vi_cv_var_python_version}" = "1.4"; then
4127 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o"
4128 fi
4129 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'"
4130
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004131 echo "$as_me:$LINENO: checking if -pthread should be used" >&5
4132echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004133 threadsafe_flag=
4134 thread_lib=
4135 if test "x$MACOSX" != "xyes"; then
4136 test "$GCC" = yes && threadsafe_flag="-pthread"
4137 if test "`(uname) 2>/dev/null`" = FreeBSD; then
4138 threadsafe_flag="-D_THREAD_SAFE"
4139 thread_lib="-pthread"
4140 fi
4141 fi
4142 libs_save_old=$LIBS
4143 if test -n "$threadsafe_flag"; then
4144 cflags_save=$CFLAGS
4145 CFLAGS="$CFLAGS $threadsafe_flag"
4146 LIBS="$LIBS $thread_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004147 cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h. */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004153
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004154int
4155main ()
4156{
4157
4158 ;
4159 return 0;
4160}
4161_ACEOF
4162rm -f conftest.$ac_objext conftest$ac_exeext
4163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164 (eval $ac_link) 2>conftest.er1
4165 ac_status=$?
4166 grep -v '^ *+' conftest.er1 >conftest.err
4167 rm -f conftest.er1
4168 cat conftest.err >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); } &&
4171 { ac_try='test -z "$ac_c_werror_flag"
4172 || test ! -s conftest.err'
4173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174 (eval $ac_try) 2>&5
4175 ac_status=$?
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest$ac_exeext'
4179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 (eval $ac_try) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); }; }; then
4184 echo "$as_me:$LINENO: result: yes" >&5
4185echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004186else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004187 echo "$as_me: failed program was:" >&5
4188sed 's/^/| /' conftest.$ac_ext >&5
4189
4190echo "$as_me:$LINENO: result: no" >&5
4191echo "${ECHO_T}no" >&6; LIBS=$libs_save_old
4192
Bram Moolenaar071d4272004-06-13 20:20:40 +00004193fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004194rm -f conftest.err conftest.$ac_objext \
4195 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004196 CFLAGS=$cflags_save
4197 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004198 echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004200 fi
4201
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004202 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5
4203echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004204 cflags_save=$CFLAGS
4205 libs_save=$LIBS
4206 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
4207 LIBS="$LIBS $PYTHON_LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004208 cat >conftest.$ac_ext <<_ACEOF
4209/* confdefs.h. */
4210_ACEOF
4211cat confdefs.h >>conftest.$ac_ext
4212cat >>conftest.$ac_ext <<_ACEOF
4213/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004214
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004215int
4216main ()
4217{
4218
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223rm -f conftest.$ac_objext conftest$ac_exeext
4224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4225 (eval $ac_link) 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } &&
4232 { ac_try='test -z "$ac_c_werror_flag"
4233 || test ! -s conftest.err'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 echo "$as_me:$LINENO: result: yes" >&5
4246echo "${ECHO_T}yes" >&6; python_ok=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004247else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004248 echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
4250
4251echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5
4252echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004253fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004254rm -f conftest.err conftest.$ac_objext \
4255 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004256 CFLAGS=$cflags_save
4257 LIBS=$libs_save
4258 if test $python_ok = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004259 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004260#define FEAT_PYTHON 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004261_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004262
4263 else
4264 LIBS=$libs_save_old
4265 PYTHON_SRC=
4266 PYTHON_OBJ=
4267 PYTHON_LIBS=
4268 PYTHON_CFLAGS=
4269 fi
4270
4271 fi
4272 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004273 echo "$as_me:$LINENO: result: too old" >&5
4274echo "${ECHO_T}too old" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004275 fi
4276 fi
4277fi
4278
4279
4280
4281
4282
4283
4284
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004285echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5
4286echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004287# Check whether --enable-tclinterp or --disable-tclinterp was given.
4288if test "${enable_tclinterp+set}" = set; then
4289 enableval="$enable_tclinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004290
Bram Moolenaar071d4272004-06-13 20:20:40 +00004291else
4292 enable_tclinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004293fi;
4294echo "$as_me:$LINENO: result: $enable_tclinterp" >&5
4295echo "${ECHO_T}$enable_tclinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004296
4297if test "$enable_tclinterp" = "yes"; then
4298
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004299 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5
4300echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6
4301
4302# Check whether --with-tclsh or --without-tclsh was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004303if test "${with_tclsh+set}" = set; then
4304 withval="$with_tclsh"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004305 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5
4306echo "${ECHO_T}$tclsh_name" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004307else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004308 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5
4309echo "${ECHO_T}no" >&6
4310fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004311 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4312set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004313echo "$as_me:$LINENO: checking for $ac_word" >&5
4314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4315if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004317else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004318 case $vi_cv_path_tcl in
4319 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004320 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4321 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004322 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324for as_dir in $PATH
4325do
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4333 fi
4334done
4335done
4336
Bram Moolenaar071d4272004-06-13 20:20:40 +00004337 ;;
4338esac
4339fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004340vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4341
Bram Moolenaar071d4272004-06-13 20:20:40 +00004342if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004343 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4344echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004345else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004346 echo "$as_me:$LINENO: result: no" >&5
4347echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004348fi
4349
Bram Moolenaar071d4272004-06-13 20:20:40 +00004350
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004351
4352 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00004353 tclsh_name="tclsh8.2"
4354 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4355set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004356echo "$as_me:$LINENO: checking for $ac_word" >&5
4357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004360else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004361 case $vi_cv_path_tcl in
4362 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004363 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4364 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004365 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367for as_dir in $PATH
4368do
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4373 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4376 fi
4377done
4378done
4379
Bram Moolenaar071d4272004-06-13 20:20:40 +00004380 ;;
4381esac
4382fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004383vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4384
Bram Moolenaar071d4272004-06-13 20:20:40 +00004385if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004386 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4387echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004388else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004389 echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6
4391fi
4392
4393 fi
4394 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then
4395 tclsh_name="tclsh8.0"
4396 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4397set dummy $tclsh_name; ac_word=$2
4398echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 case $vi_cv_path_tcl in
4404 [\\/]* | ?:[\\/]*)
4405 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4406 ;;
4407 *)
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409for as_dir in $PATH
4410do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4415 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419done
4420done
4421
4422 ;;
4423esac
4424fi
4425vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4426
4427if test -n "$vi_cv_path_tcl"; then
4428 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4429echo "${ECHO_T}$vi_cv_path_tcl" >&6
4430else
4431 echo "$as_me:$LINENO: result: no" >&5
4432echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004433fi
4434
4435 fi
4436 if test "X$vi_cv_path_tcl" = "X"; then
4437 tclsh_name="tclsh"
4438 # Extract the first word of "$tclsh_name", so it can be a program name with args.
4439set dummy $tclsh_name; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004440echo "$as_me:$LINENO: checking for $ac_word" >&5
4441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004444else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004445 case $vi_cv_path_tcl in
4446 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004447 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path.
4448 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004449 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4460 fi
4461done
4462done
4463
Bram Moolenaar071d4272004-06-13 20:20:40 +00004464 ;;
4465esac
4466fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004467vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl
4468
Bram Moolenaar071d4272004-06-13 20:20:40 +00004469if test -n "$vi_cv_path_tcl"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004470 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5
4471echo "${ECHO_T}$vi_cv_path_tcl" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004472else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004473 echo "$as_me:$LINENO: result: no" >&5
4474echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004475fi
4476
4477 fi
4478 if test "X$vi_cv_path_tcl" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004479 echo "$as_me:$LINENO: checking Tcl version" >&5
4480echo $ECHO_N "checking Tcl version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004481 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then
4482 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004483 echo "$as_me:$LINENO: result: $tclver - OK" >&5
4484echo "${ECHO_T}$tclver - OK" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004485 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 -`
4486
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004487 echo "$as_me:$LINENO: checking for location of Tcl include" >&5
4488echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004489 if test "x$MACOSX" != "xyes"; then
Bram Moolenaar47136d72004-10-12 20:02:24 +00004490 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004491 else
4492 tclinc="/System/Library/Frameworks/Tcl.framework/Headers"
4493 fi
4494 for try in $tclinc; do
4495 if test -f "$try/tcl.h"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004496 echo "$as_me:$LINENO: result: $try/tcl.h" >&5
4497echo "${ECHO_T}$try/tcl.h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004498 TCL_INC=$try
4499 break
4500 fi
4501 done
4502 if test -z "$TCL_INC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004503 echo "$as_me:$LINENO: result: <not found>" >&5
4504echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004505 SKIP_TCL=YES
4506 fi
4507 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004508 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5
4509echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004510 if test "x$MACOSX" != "xyes"; then
4511 tclcnf=`echo $tclinc | sed s/include/lib/g`
4512 else
4513 tclcnf="/System/Library/Frameworks/Tcl.framework"
4514 fi
4515 for try in $tclcnf; do
4516 if test -f $try/tclConfig.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004517 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5
4518echo "${ECHO_T}$try/tclConfig.sh" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004519 . $try/tclConfig.sh
4520 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004521 TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\ /\X/' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'`
Bram Moolenaar071d4272004-06-13 20:20:40 +00004522 break
4523 fi
4524 done
4525 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004526 echo "$as_me:$LINENO: result: <not found>" >&5
4527echo "${ECHO_T}<not found>" >&6
4528 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5
4529echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004530 tcllib=`echo $tclinc | sed s/include/lib/g`
4531 for ext in .so .a ; do
4532 for ver in "" $tclver ; do
4533 for try in $tcllib ; do
4534 trylib=tcl$ver$ext
4535 if test -f $try/lib$trylib ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004536 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5
4537echo "${ECHO_T}$try/lib$trylib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004538 TCL_LIBS="-L$try -ltcl$ver -ldl -lm"
4539 if test "`(uname) 2>/dev/null`" = SunOS &&
4540 uname -r | grep '^5' >/dev/null; then
4541 TCL_LIBS="$TCL_LIBS -R $try"
4542 fi
4543 break 3
4544 fi
4545 done
4546 done
4547 done
4548 if test -z "$TCL_LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004549 echo "$as_me:$LINENO: result: <not found>" >&5
4550echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004551 SKIP_TCL=YES
4552 fi
4553 fi
4554 if test -z "$SKIP_TCL"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004555 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004556#define FEAT_TCL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004557_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004558
4559 TCL_SRC=if_tcl.c
4560 TCL_OBJ=objects/if_tcl.o
4561 TCL_PRO=if_tcl.pro
4562 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS"
4563 fi
4564 fi
4565 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004566 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5
4567echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004568 fi
4569 fi
4570fi
4571
4572
4573
4574
4575
4576
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004577echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5
4578echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004579# Check whether --enable-rubyinterp or --disable-rubyinterp was given.
4580if test "${enable_rubyinterp+set}" = set; then
4581 enableval="$enable_rubyinterp"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004582
Bram Moolenaar071d4272004-06-13 20:20:40 +00004583else
4584 enable_rubyinterp="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004585fi;
4586echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
4587echo "${ECHO_T}$enable_rubyinterp" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004588if test "$enable_rubyinterp" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004589
Bram Moolenaar071d4272004-06-13 20:20:40 +00004590 # Extract the first word of "ruby", so it can be a program name with args.
4591set dummy ruby; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004592echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004596else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004597 case $vi_cv_path_ruby in
4598 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00004599 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path.
4600 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004601 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4612 fi
4613done
4614done
4615
Bram Moolenaar071d4272004-06-13 20:20:40 +00004616 ;;
4617esac
4618fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004619vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby
4620
Bram Moolenaar071d4272004-06-13 20:20:40 +00004621if test -n "$vi_cv_path_ruby"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004622 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5
4623echo "${ECHO_T}$vi_cv_path_ruby" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004624else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004625 echo "$as_me:$LINENO: result: no" >&5
4626echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004627fi
4628
4629 if test "X$vi_cv_path_ruby" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004630 echo "$as_me:$LINENO: checking Ruby version" >&5
4631echo $ECHO_N "checking Ruby version... $ECHO_C" >&6
Bram Moolenaare4efc3b2005-03-07 23:16:51 +00004632 if $vi_cv_path_ruby -e 'RUBY_VERSION >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004633 echo "$as_me:$LINENO: result: OK" >&5
4634echo "${ECHO_T}OK" >&6
4635 echo "$as_me:$LINENO: checking Ruby header files" >&5
4636echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004637 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
4638 if test "X$rubyhdrdir" != "X"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004639 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
4640echo "${ECHO_T}$rubyhdrdir" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004641 RUBY_CFLAGS="-I$rubyhdrdir"
4642 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
4643 if test "X$rubylibs" != "X"; then
4644 RUBY_LIBS="$rubylibs"
4645 fi
4646 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'`
4647 if test -f "$rubyhdrdir/$librubyarg"; then
4648 librubyarg="$rubyhdrdir/$librubyarg"
4649 else
4650 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'`
4651 if test -f "$rubylibdir/$librubyarg"; then
4652 librubyarg="$rubylibdir/$librubyarg"
4653 elif test "$librubyarg" = "libruby.a"; then
4654 librubyarg="-lruby"
4655 else
4656 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"`
4657 fi
4658 fi
4659
4660 if test "X$librubyarg" != "X"; then
4661 RUBY_LIBS="$librubyarg $RUBY_LIBS"
4662 fi
4663 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'`
4664 if test "X$rubyldflags" != "X"; then
4665 LDFLAGS="$rubyldflags $LDFLAGS"
4666 fi
4667 RUBY_SRC="if_ruby.c"
4668 RUBY_OBJ="objects/if_ruby.o"
4669 RUBY_PRO="if_ruby.pro"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004670 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004671#define FEAT_RUBY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004672_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004673
4674 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004675 echo "$as_me:$LINENO: result: not found" >&5
4676echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004677 fi
4678 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004679 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
4680echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004681 fi
4682 fi
4683fi
4684
4685
4686
4687
4688
4689
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004690echo "$as_me:$LINENO: checking --enable-cscope argument" >&5
4691echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004692# Check whether --enable-cscope or --disable-cscope was given.
4693if test "${enable_cscope+set}" = set; then
4694 enableval="$enable_cscope"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004695
Bram Moolenaar071d4272004-06-13 20:20:40 +00004696else
4697 enable_cscope="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004698fi;
4699echo "$as_me:$LINENO: result: $enable_cscope" >&5
4700echo "${ECHO_T}$enable_cscope" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004701if test "$enable_cscope" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004702 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004703#define FEAT_CSCOPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004704_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004705
4706fi
4707
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004708echo "$as_me:$LINENO: checking --enable-workshop argument" >&5
4709echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004710# Check whether --enable-workshop or --disable-workshop was given.
4711if test "${enable_workshop+set}" = set; then
4712 enableval="$enable_workshop"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004713
Bram Moolenaar071d4272004-06-13 20:20:40 +00004714else
4715 enable_workshop="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004716fi;
4717echo "$as_me:$LINENO: result: $enable_workshop" >&5
4718echo "${ECHO_T}$enable_workshop" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004719if test "$enable_workshop" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004720 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004721#define FEAT_SUN_WORKSHOP 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004722_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004723
4724 WORKSHOP_SRC="workshop.c integration.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004725
Bram Moolenaar071d4272004-06-13 20:20:40 +00004726 WORKSHOP_OBJ="objects/workshop.o objects/integration.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004727
Bram Moolenaar071d4272004-06-13 20:20:40 +00004728 if test "${enable_gui-xxx}" = xxx; then
4729 enable_gui=motif
4730 fi
4731fi
4732
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004733echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5
4734echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004735# Check whether --enable-netbeans or --disable-netbeans was given.
4736if test "${enable_netbeans+set}" = set; then
4737 enableval="$enable_netbeans"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004738
Bram Moolenaar071d4272004-06-13 20:20:40 +00004739else
4740 enable_netbeans="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004741fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00004742if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004743 echo "$as_me:$LINENO: result: no" >&5
4744echo "${ECHO_T}no" >&6
4745
4746echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4747echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4748if test "${ac_cv_lib_socket_socket+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004750else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004751 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004752LIBS="-lsocket $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004753cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h. */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h. */
4759
Bram Moolenaar071d4272004-06-13 20:20:40 +00004760/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004761#ifdef __cplusplus
4762extern "C"
4763#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004764/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004765 builtin and then its argument prototype would still apply. */
4766char socket ();
4767int
4768main ()
4769{
4770socket ();
4771 ;
4772 return 0;
4773}
4774_ACEOF
4775rm -f conftest.$ac_objext conftest$ac_exeext
4776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4777 (eval $ac_link) 2>conftest.er1
4778 ac_status=$?
4779 grep -v '^ *+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -z "$ac_c_werror_flag"
4785 || test ! -s conftest.err'
4786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 (eval $ac_try) 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }; } &&
4791 { ac_try='test -s conftest$ac_exeext'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; }; then
4797 ac_cv_lib_socket_socket=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004798else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004799 echo "$as_me: failed program was:" >&5
4800sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004801
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004802ac_cv_lib_socket_socket=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004803fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004804rm -f conftest.err conftest.$ac_objext \
4805 conftest$ac_exeext conftest.$ac_ext
4806LIBS=$ac_check_lib_save_LIBS
4807fi
4808echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4809echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4810if test $ac_cv_lib_socket_socket = yes; then
4811 cat >>confdefs.h <<_ACEOF
4812#define HAVE_LIBSOCKET 1
4813_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004814
4815 LIBS="-lsocket $LIBS"
4816
Bram Moolenaar071d4272004-06-13 20:20:40 +00004817fi
4818
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004819
4820echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4821echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4822if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004824else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004825 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00004826LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004827cat >conftest.$ac_ext <<_ACEOF
4828/* confdefs.h. */
4829_ACEOF
4830cat confdefs.h >>conftest.$ac_ext
4831cat >>conftest.$ac_ext <<_ACEOF
4832/* end confdefs.h. */
4833
Bram Moolenaar071d4272004-06-13 20:20:40 +00004834/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004835#ifdef __cplusplus
4836extern "C"
4837#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00004838/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004839 builtin and then its argument prototype would still apply. */
4840char gethostbyname ();
4841int
4842main ()
4843{
4844gethostbyname ();
4845 ;
4846 return 0;
4847}
4848_ACEOF
4849rm -f conftest.$ac_objext conftest$ac_exeext
4850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4851 (eval $ac_link) 2>conftest.er1
4852 ac_status=$?
4853 grep -v '^ *+' conftest.er1 >conftest.err
4854 rm -f conftest.er1
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } &&
4858 { ac_try='test -z "$ac_c_werror_flag"
4859 || test ! -s conftest.err'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; } &&
4865 { ac_try='test -s conftest$ac_exeext'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; }; then
4871 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00004872else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004873 echo "$as_me: failed program was:" >&5
4874sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00004875
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004876ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00004877fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004878rm -f conftest.err conftest.$ac_objext \
4879 conftest$ac_exeext conftest.$ac_ext
4880LIBS=$ac_check_lib_save_LIBS
4881fi
4882echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4883echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4884if test $ac_cv_lib_nsl_gethostbyname = yes; then
4885 cat >>confdefs.h <<_ACEOF
4886#define HAVE_LIBNSL 1
4887_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004888
4889 LIBS="-lnsl $LIBS"
4890
Bram Moolenaar071d4272004-06-13 20:20:40 +00004891fi
4892
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004893 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5
4894echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6
4895 cat >conftest.$ac_ext <<_ACEOF
4896/* confdefs.h. */
4897_ACEOF
4898cat confdefs.h >>conftest.$ac_ext
4899cat >>conftest.$ac_ext <<_ACEOF
4900/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00004901
4902#include <stdio.h>
4903#include <stdlib.h>
4904#include <stdarg.h>
4905#include <fcntl.h>
4906#include <netdb.h>
4907#include <netinet/in.h>
4908#include <errno.h>
4909#include <sys/types.h>
4910#include <sys/socket.h>
4911 /* Check bitfields */
4912 struct nbbuf {
4913 unsigned int initDone:1;
4914 ushort signmaplen;
4915 };
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004916
4917int
4918main ()
4919{
Bram Moolenaar071d4272004-06-13 20:20:40 +00004920
4921 /* Check creating a socket. */
4922 struct sockaddr_in server;
4923 (void)socket(AF_INET, SOCK_STREAM, 0);
4924 (void)htons(100);
4925 (void)gethostbyname("microsoft.com");
4926 if (errno == ECONNREFUSED)
4927 (void)connect(1, (struct sockaddr *)&server, sizeof(server));
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004928
4929 ;
4930 return 0;
4931}
4932_ACEOF
4933rm -f conftest.$ac_objext conftest$ac_exeext
4934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4935 (eval $ac_link) 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } &&
4942 { ac_try='test -z "$ac_c_werror_flag"
4943 || test ! -s conftest.err'
4944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945 (eval $ac_try) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; } &&
4949 { ac_try='test -s conftest$ac_exeext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 echo "$as_me:$LINENO: result: yes" >&5
4956echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004957else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004958 echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961echo "$as_me:$LINENO: result: no" >&5
4962echo "${ECHO_T}no" >&6; enable_netbeans="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00004963fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004964rm -f conftest.err conftest.$ac_objext \
4965 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00004966else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004967 echo "$as_me:$LINENO: result: yes" >&5
4968echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004969fi
4970if test "$enable_netbeans" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004971 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004972#define FEAT_NETBEANS_INTG 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004973_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004974
4975 NETBEANS_SRC="netbeans.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004976
Bram Moolenaar071d4272004-06-13 20:20:40 +00004977 NETBEANS_OBJ="objects/netbeans.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004978
Bram Moolenaar071d4272004-06-13 20:20:40 +00004979fi
4980
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004981echo "$as_me:$LINENO: checking --enable-sniff argument" >&5
4982echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004983# Check whether --enable-sniff or --disable-sniff was given.
4984if test "${enable_sniff+set}" = set; then
4985 enableval="$enable_sniff"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004986
Bram Moolenaar071d4272004-06-13 20:20:40 +00004987else
4988 enable_sniff="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004989fi;
4990echo "$as_me:$LINENO: result: $enable_sniff" >&5
4991echo "${ECHO_T}$enable_sniff" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00004992if test "$enable_sniff" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004993 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004994#define FEAT_SNIFF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004995_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00004996
4997 SNIFF_SRC="if_sniff.c"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00004998
Bram Moolenaar071d4272004-06-13 20:20:40 +00004999 SNIFF_OBJ="objects/if_sniff.o"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005000
Bram Moolenaar071d4272004-06-13 20:20:40 +00005001fi
5002
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005003echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5
5004echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005005# Check whether --enable-multibyte or --disable-multibyte was given.
5006if test "${enable_multibyte+set}" = set; then
5007 enableval="$enable_multibyte"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005008
Bram Moolenaar071d4272004-06-13 20:20:40 +00005009else
5010 enable_multibyte="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005011fi;
5012echo "$as_me:$LINENO: result: $enable_multibyte" >&5
5013echo "${ECHO_T}$enable_multibyte" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005014if test "$enable_multibyte" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005015 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005016#define FEAT_MBYTE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005017_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005018
5019fi
5020
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005021echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5
5022echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005023# Check whether --enable-hangulinput or --disable-hangulinput was given.
5024if test "${enable_hangulinput+set}" = set; then
5025 enableval="$enable_hangulinput"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005026
Bram Moolenaar071d4272004-06-13 20:20:40 +00005027else
5028 enable_hangulinput="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005029fi;
5030echo "$as_me:$LINENO: result: $enable_hangulinput" >&5
5031echo "${ECHO_T}$enable_hangulinput" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005032
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005033echo "$as_me:$LINENO: checking --enable-xim argument" >&5
5034echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005035# Check whether --enable-xim or --disable-xim was given.
5036if test "${enable_xim+set}" = set; then
5037 enableval="$enable_xim"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005038 echo "$as_me:$LINENO: result: $enable_xim" >&5
5039echo "${ECHO_T}$enable_xim" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005040else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005041 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5
5042echo "${ECHO_T}defaulting to auto" >&6
5043fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005044
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005045echo "$as_me:$LINENO: checking --enable-fontset argument" >&5
5046echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005047# Check whether --enable-fontset or --disable-fontset was given.
5048if test "${enable_fontset+set}" = set; then
5049 enableval="$enable_fontset"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005050
Bram Moolenaar071d4272004-06-13 20:20:40 +00005051else
5052 enable_fontset="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005053fi;
5054echo "$as_me:$LINENO: result: $enable_fontset" >&5
5055echo "${ECHO_T}$enable_fontset" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005056
5057test -z "$with_x" && with_x=yes
5058test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes
5059if test "$with_x" = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005060 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5
5061echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005062else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005063
Bram Moolenaar071d4272004-06-13 20:20:40 +00005064 # Extract the first word of "xmkmf", so it can be a program name with args.
5065set dummy xmkmf; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005066echo "$as_me:$LINENO: checking for $ac_word" >&5
5067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5068if test "${ac_cv_path_xmkmfpath+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005070else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005071 case $xmkmfpath in
5072 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005073 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path.
5074 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005075 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077for as_dir in $PATH
5078do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext"
5084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 break 2
5086 fi
5087done
5088done
5089
Bram Moolenaar071d4272004-06-13 20:20:40 +00005090 ;;
5091esac
5092fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005093xmkmfpath=$ac_cv_path_xmkmfpath
5094
Bram Moolenaar071d4272004-06-13 20:20:40 +00005095if test -n "$xmkmfpath"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005096 echo "$as_me:$LINENO: result: $xmkmfpath" >&5
5097echo "${ECHO_T}$xmkmfpath" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005098else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005099 echo "$as_me:$LINENO: result: no" >&5
5100echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005101fi
5102
5103
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005104 echo "$as_me:$LINENO: checking for X" >&5
5105echo $ECHO_N "checking for X... $ECHO_C" >&6
5106
Bram Moolenaar071d4272004-06-13 20:20:40 +00005107
5108# Check whether --with-x or --without-x was given.
5109if test "${with_x+set}" = set; then
5110 withval="$with_x"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005111
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005112fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005113# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5114if test "x$with_x" = xno; then
5115 # The user explicitly disabled X.
5116 have_x=disabled
5117else
5118 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5119 # Both variables are already set.
5120 have_x=yes
5121 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005122 if test "${ac_cv_have_x+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005124else
5125 # One or both of the vars are not set, and there is no cached value.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005126ac_x_includes=no ac_x_libraries=no
5127rm -fr conftest.dir
5128if mkdir conftest.dir; then
5129 cd conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005130 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005131 cat >Imakefile <<'_ACEOF'
Bram Moolenaar071d4272004-06-13 20:20:40 +00005132acfindx:
5133 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005134_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005135 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5136 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5137 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5138 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5139 for ac_extension in a so sl; do
5140 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005141 test -f $ac_im_libdir/libX11.$ac_extension; then
5142 ac_im_usrlibdir=$ac_im_libdir; break
Bram Moolenaar071d4272004-06-13 20:20:40 +00005143 fi
5144 done
5145 # Screen out bogus values from the imake configuration. They are
5146 # bogus both because they are the default anyway, and because
5147 # using them would break gcc on systems where it needs fixed includes.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005148 case $ac_im_incroot in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005149 /usr/include) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005150 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005151 esac
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005152 case $ac_im_usrlibdir in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005153 /usr/lib | /lib) ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005154 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00005155 esac
5156 fi
5157 cd ..
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005158 rm -fr conftest.dir
Bram Moolenaar071d4272004-06-13 20:20:40 +00005159fi
5160
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005161# Standard set of common directories for X headers.
5162# Check X11 before X11Rn because it is often a symlink to the current release.
5163ac_x_header_dirs='
5164/usr/X11/include
5165/usr/X11R6/include
5166/usr/X11R5/include
5167/usr/X11R4/include
Bram Moolenaar071d4272004-06-13 20:20:40 +00005168
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005169/usr/include/X11
5170/usr/include/X11R6
5171/usr/include/X11R5
5172/usr/include/X11R4
5173
5174/usr/local/X11/include
5175/usr/local/X11R6/include
5176/usr/local/X11R5/include
5177/usr/local/X11R4/include
5178
5179/usr/local/include/X11
5180/usr/local/include/X11R6
5181/usr/local/include/X11R5
5182/usr/local/include/X11R4
5183
5184/usr/X386/include
5185/usr/x386/include
5186/usr/XFree86/include/X11
5187
5188/usr/include
5189/usr/local/include
5190/usr/unsupported/include
5191/usr/athena/include
5192/usr/local/x11r5/include
5193/usr/lpp/Xamples/include
5194
5195/usr/openwin/include
5196/usr/openwin/share/include'
5197
5198if test "$ac_x_includes" = no; then
5199 # Guess where to find include files, by looking for Intrinsic.h.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005200 # First, try using that file with no special directory specified.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005201 cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h. */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h. */
5207#include <X11/Intrinsic.h>
5208_ACEOF
5209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5211 ac_status=$?
5212 grep -v '^ *+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); } >/dev/null; then
5217 if test -s conftest.err; then
5218 ac_cpp_err=$ac_c_preproc_warn_flag
5219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5220 else
5221 ac_cpp_err=
5222 fi
5223else
5224 ac_cpp_err=yes
5225fi
5226if test -z "$ac_cpp_err"; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005227 # We can compile using X headers with no special include directory.
5228ac_x_includes=
5229else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005230 echo "$as_me: failed program was:" >&5
5231sed 's/^/| /' conftest.$ac_ext >&5
5232
5233 for ac_dir in $ac_x_header_dirs; do
5234 if test -r "$ac_dir/X11/Intrinsic.h"; then
5235 ac_x_includes=$ac_dir
5236 break
5237 fi
5238done
Bram Moolenaar071d4272004-06-13 20:20:40 +00005239fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005240rm -f conftest.err conftest.$ac_ext
5241fi # $ac_x_includes = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005242
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005243if test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005244 # Check for the libraries.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005245 # See if we find them without any special options.
5246 # Don't add to $LIBS permanently.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005247 ac_save_LIBS=$LIBS
5248 LIBS="-lXt $LIBS"
5249 cat >conftest.$ac_ext <<_ACEOF
5250/* confdefs.h. */
5251_ACEOF
5252cat confdefs.h >>conftest.$ac_ext
5253cat >>conftest.$ac_ext <<_ACEOF
5254/* end confdefs.h. */
5255#include <X11/Intrinsic.h>
5256int
5257main ()
5258{
5259XtMalloc (0)
5260 ;
5261 return 0;
5262}
5263_ACEOF
5264rm -f conftest.$ac_objext conftest$ac_exeext
5265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5266 (eval $ac_link) 2>conftest.er1
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try='test -z "$ac_c_werror_flag"
5274 || test ! -s conftest.err'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 (eval $ac_try) 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; } &&
5280 { ac_try='test -s conftest$ac_exeext'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; }; then
5286 LIBS=$ac_save_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005287# We can link X programs with no special library path.
5288ac_x_libraries=
5289else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005290 echo "$as_me: failed program was:" >&5
5291sed 's/^/| /' conftest.$ac_ext >&5
5292
5293LIBS=$ac_save_LIBS
5294for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Bram Moolenaar071d4272004-06-13 20:20:40 +00005295do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005296 # Don't even attempt the hair of trying to link an X program!
Bram Moolenaar071d4272004-06-13 20:20:40 +00005297 for ac_extension in a so sl; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005298 if test -r $ac_dir/libXt.$ac_extension; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005299 ac_x_libraries=$ac_dir
5300 break 2
5301 fi
5302 done
5303done
5304fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005305rm -f conftest.err conftest.$ac_objext \
5306 conftest$ac_exeext conftest.$ac_ext
5307fi # $ac_x_libraries = no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005308
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005309if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005310 # Didn't find X anywhere. Cache the known absence of X.
5311 ac_cv_have_x="have_x=no"
5312else
5313 # Record where we found X for the cache.
5314 ac_cv_have_x="have_x=yes \
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005315 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005316fi
5317fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005318
Bram Moolenaar071d4272004-06-13 20:20:40 +00005319 fi
5320 eval "$ac_cv_have_x"
5321fi # $with_x != no
5322
5323if test "$have_x" != yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005324 echo "$as_me:$LINENO: result: $have_x" >&5
5325echo "${ECHO_T}$have_x" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005326 no_x=yes
5327else
5328 # If each of the values was on the command line, it overrides each guess.
5329 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5330 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5331 # Update the cache value to reflect the command line values.
5332 ac_cv_have_x="have_x=yes \
5333 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005334 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5335echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005336fi
5337
5338if test "$no_x" = yes; then
5339 # Not all programs may use this symbol, but it does not hurt to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005340
5341cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005342#define X_DISPLAY_MISSING 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005343_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00005344
5345 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5346else
5347 if test -n "$x_includes"; then
5348 X_CFLAGS="$X_CFLAGS -I$x_includes"
5349 fi
5350
5351 # It would also be nice to do this for all -L options, not just this one.
5352 if test -n "$x_libraries"; then
5353 X_LIBS="$X_LIBS -L$x_libraries"
5354 # For Solaris; some versions of Sun CC require a space after -R and
5355 # others require no space. Words are not sufficient . . . .
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005356 case `(uname -sr) 2>/dev/null` in
Bram Moolenaar071d4272004-06-13 20:20:40 +00005357 "SunOS 5"*)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005358 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5359echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5360 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5361 cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h. */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005367
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005368int
5369main ()
5370{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005371
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005372 ;
5373 return 0;
5374}
5375_ACEOF
5376rm -f conftest.$ac_objext conftest$ac_exeext
5377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5378 (eval $ac_link) 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } &&
5385 { ac_try='test -z "$ac_c_werror_flag"
5386 || test ! -s conftest.err'
5387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388 (eval $ac_try) 2>&5
5389 ac_status=$?
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }; } &&
5392 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005398 ac_R_nospace=yes
5399else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005400 echo "$as_me: failed program was:" >&5
5401sed 's/^/| /' conftest.$ac_ext >&5
5402
5403ac_R_nospace=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005404fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005405rm -f conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005407 if test $ac_R_nospace = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005408 echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005410 X_LIBS="$X_LIBS -R$x_libraries"
5411 else
5412 LIBS="$ac_xsave_LIBS -R $x_libraries"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005413 cat >conftest.$ac_ext <<_ACEOF
5414/* confdefs.h. */
5415_ACEOF
5416cat confdefs.h >>conftest.$ac_ext
5417cat >>conftest.$ac_ext <<_ACEOF
5418/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00005419
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005420int
5421main ()
5422{
Bram Moolenaar071d4272004-06-13 20:20:40 +00005423
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005424 ;
5425 return 0;
5426}
5427_ACEOF
5428rm -f conftest.$ac_objext conftest$ac_exeext
5429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5430 (eval $ac_link) 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try='test -z "$ac_c_werror_flag"
5438 || test ! -s conftest.err'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; } &&
5444 { ac_try='test -s conftest$ac_exeext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005450 ac_R_space=yes
5451else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005452 echo "$as_me: failed program was:" >&5
5453sed 's/^/| /' conftest.$ac_ext >&5
5454
5455ac_R_space=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005456fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005457rm -f conftest.err conftest.$ac_objext \
5458 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00005459 if test $ac_R_space = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005460 echo "$as_me:$LINENO: result: yes" >&5
5461echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005462 X_LIBS="$X_LIBS -R $x_libraries"
5463 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005464 echo "$as_me:$LINENO: result: neither works" >&5
5465echo "${ECHO_T}neither works" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005466 fi
5467 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005468 LIBS=$ac_xsave_LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005469 esac
5470 fi
5471
5472 # Check for system-dependent libraries X programs must link with.
5473 # Do this before checking for the system-independent R6 libraries
5474 # (-lICE), since we may need -lsocket or whatever for X linking.
5475
5476 if test "$ISC" = yes; then
5477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5478 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005479 # Martyn Johnson says this is needed for Ultrix, if the X
5480 # libraries were built with DECnet support. And Karl Berry says
Bram Moolenaar071d4272004-06-13 20:20:40 +00005481 # the Alpha needs dnet_stub (dnet does not exist).
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005482 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5483 cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h. */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h. */
5489
Bram Moolenaar071d4272004-06-13 20:20:40 +00005490/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005491#ifdef __cplusplus
5492extern "C"
5493#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005494/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005495 builtin and then its argument prototype would still apply. */
5496char XOpenDisplay ();
5497int
5498main ()
5499{
5500XOpenDisplay ();
5501 ;
5502 return 0;
5503}
5504_ACEOF
5505rm -f conftest.$ac_objext conftest$ac_exeext
5506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5507 (eval $ac_link) 2>conftest.er1
5508 ac_status=$?
5509 grep -v '^ *+' conftest.er1 >conftest.err
5510 rm -f conftest.er1
5511 cat conftest.err >&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } &&
5514 { ac_try='test -z "$ac_c_werror_flag"
5515 || test ! -s conftest.err'
5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try='test -s conftest$ac_exeext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523 (eval $ac_try) 2>&5
5524 ac_status=$?
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 :
Bram Moolenaar071d4272004-06-13 20:20:40 +00005528else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005529 echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005531
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005532echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
5533echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
5534if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5536else
5537 ac_check_lib_save_LIBS=$LIBS
5538LIBS="-ldnet $LIBS"
5539cat >conftest.$ac_ext <<_ACEOF
5540/* confdefs.h. */
5541_ACEOF
5542cat confdefs.h >>conftest.$ac_ext
5543cat >>conftest.$ac_ext <<_ACEOF
5544/* end confdefs.h. */
5545
5546/* Override any gcc2 internal prototype to avoid an error. */
5547#ifdef __cplusplus
5548extern "C"
5549#endif
5550/* We use char because int might match the return type of a gcc2
5551 builtin and then its argument prototype would still apply. */
5552char dnet_ntoa ();
5553int
5554main ()
5555{
5556dnet_ntoa ();
5557 ;
5558 return 0;
5559}
5560_ACEOF
5561rm -f conftest.$ac_objext conftest$ac_exeext
5562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5563 (eval $ac_link) 2>conftest.er1
5564 ac_status=$?
5565 grep -v '^ *+' conftest.er1 >conftest.err
5566 rm -f conftest.er1
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } &&
5570 { ac_try='test -z "$ac_c_werror_flag"
5571 || test ! -s conftest.err'
5572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); }; } &&
5577 { ac_try='test -s conftest$ac_exeext'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 (eval $ac_try) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5583 ac_cv_lib_dnet_dnet_ntoa=yes
5584else
5585 echo "$as_me: failed program was:" >&5
5586sed 's/^/| /' conftest.$ac_ext >&5
5587
5588ac_cv_lib_dnet_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005589fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005590rm -f conftest.err conftest.$ac_objext \
5591 conftest$ac_exeext conftest.$ac_ext
5592LIBS=$ac_check_lib_save_LIBS
5593fi
5594echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5595echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
5596if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005597 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005598fi
5599
5600 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005601 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
5602echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
5603if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005605else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005606 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005607LIBS="-ldnet_stub $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005608cat >conftest.$ac_ext <<_ACEOF
5609/* confdefs.h. */
5610_ACEOF
5611cat confdefs.h >>conftest.$ac_ext
5612cat >>conftest.$ac_ext <<_ACEOF
5613/* end confdefs.h. */
5614
Bram Moolenaar071d4272004-06-13 20:20:40 +00005615/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005616#ifdef __cplusplus
5617extern "C"
5618#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005619/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005620 builtin and then its argument prototype would still apply. */
5621char dnet_ntoa ();
5622int
5623main ()
5624{
5625dnet_ntoa ();
5626 ;
5627 return 0;
5628}
5629_ACEOF
5630rm -f conftest.$ac_objext conftest$ac_exeext
5631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5632 (eval $ac_link) 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try='test -z "$ac_c_werror_flag"
5640 || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest$ac_exeext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005653else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005654 echo "$as_me: failed program was:" >&5
5655sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005656
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005657ac_cv_lib_dnet_stub_dnet_ntoa=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005658fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005659rm -f conftest.err conftest.$ac_objext \
5660 conftest$ac_exeext conftest.$ac_ext
5661LIBS=$ac_check_lib_save_LIBS
5662fi
5663echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5664echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
5665if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005666 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005667fi
5668
5669 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005670fi
5671rm -f conftest.err conftest.$ac_objext \
5672 conftest$ac_exeext conftest.$ac_ext
5673 LIBS="$ac_xsave_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005674
5675 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5676 # to get the SysV transport functions.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005677 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Bram Moolenaar071d4272004-06-13 20:20:40 +00005678 # needs -lnsl.
5679 # The nsl library prevents programs from opening the X display
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005680 # on Irix 5.2, according to T.E. Dickey.
5681 # The functions gethostbyname, getservbyname, and inet_addr are
5682 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5683 echo "$as_me:$LINENO: checking for gethostbyname" >&5
5684echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5685if test "${ac_cv_func_gethostbyname+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005687else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005688 cat >conftest.$ac_ext <<_ACEOF
5689/* confdefs.h. */
5690_ACEOF
5691cat confdefs.h >>conftest.$ac_ext
5692cat >>conftest.$ac_ext <<_ACEOF
5693/* end confdefs.h. */
5694/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5696#define gethostbyname innocuous_gethostbyname
5697
Bram Moolenaar071d4272004-06-13 20:20:40 +00005698/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005699 which can conflict with char gethostbyname (); below.
5700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5701 <limits.h> exists even on freestanding compilers. */
5702
5703#ifdef __STDC__
5704# include <limits.h>
5705#else
5706# include <assert.h>
5707#endif
5708
5709#undef gethostbyname
5710
Bram Moolenaar071d4272004-06-13 20:20:40 +00005711/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005712#ifdef __cplusplus
5713extern "C"
5714{
5715#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005716/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005717 builtin and then its argument prototype would still apply. */
5718char gethostbyname ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005719/* The GNU C library defines this for functions which it implements
5720 to always fail with ENOSYS. Some functions are actually named
5721 something starting with __ and the normal name is an alias. */
5722#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5723choke me
5724#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005725char (*f) () = gethostbyname;
5726#endif
5727#ifdef __cplusplus
5728}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005729#endif
5730
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005731int
5732main ()
5733{
5734return f != gethostbyname;
5735 ;
5736 return 0;
5737}
5738_ACEOF
5739rm -f conftest.$ac_objext conftest$ac_exeext
5740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741 (eval $ac_link) 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -z "$ac_c_werror_flag"
5749 || test ! -s conftest.err'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751 (eval $ac_try) 2>&5
5752 ac_status=$?
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; } &&
5755 { ac_try='test -s conftest$ac_exeext'
5756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 (eval $ac_try) 2>&5
5758 ac_status=$?
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5761 ac_cv_func_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005762else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005763 echo "$as_me: failed program was:" >&5
5764sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005765
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005766ac_cv_func_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005767fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005768rm -f conftest.err conftest.$ac_objext \
5769 conftest$ac_exeext conftest.$ac_ext
5770fi
5771echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5772echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005773
5774 if test $ac_cv_func_gethostbyname = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005775 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5776echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5777if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005779else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005780 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00005781LIBS="-lnsl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005782cat >conftest.$ac_ext <<_ACEOF
5783/* confdefs.h. */
5784_ACEOF
5785cat confdefs.h >>conftest.$ac_ext
5786cat >>conftest.$ac_ext <<_ACEOF
5787/* end confdefs.h. */
5788
Bram Moolenaar071d4272004-06-13 20:20:40 +00005789/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005790#ifdef __cplusplus
5791extern "C"
5792#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005793/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005794 builtin and then its argument prototype would still apply. */
5795char gethostbyname ();
5796int
5797main ()
5798{
5799gethostbyname ();
5800 ;
5801 return 0;
5802}
5803_ACEOF
5804rm -f conftest.$ac_objext conftest$ac_exeext
5805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806 (eval $ac_link) 2>conftest.er1
5807 ac_status=$?
5808 grep -v '^ *+' conftest.er1 >conftest.err
5809 rm -f conftest.er1
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -z "$ac_c_werror_flag"
5814 || test ! -s conftest.err'
5815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816 (eval $ac_try) 2>&5
5817 ac_status=$?
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); }; } &&
5820 { ac_try='test -s conftest$ac_exeext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822 (eval $ac_try) 2>&5
5823 ac_status=$?
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 ac_cv_lib_nsl_gethostbyname=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00005827else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005828 echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00005830
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005831ac_cv_lib_nsl_gethostbyname=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00005832fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005833rm -f conftest.err conftest.$ac_objext \
5834 conftest$ac_exeext conftest.$ac_ext
5835LIBS=$ac_check_lib_save_LIBS
5836fi
5837echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5838echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5839if test $ac_cv_lib_nsl_gethostbyname = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00005840 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00005841fi
5842
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005843 if test $ac_cv_lib_nsl_gethostbyname = no; then
5844 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5845echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5846if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849 ac_check_lib_save_LIBS=$LIBS
5850LIBS="-lbsd $LIBS"
5851cat >conftest.$ac_ext <<_ACEOF
5852/* confdefs.h. */
5853_ACEOF
5854cat confdefs.h >>conftest.$ac_ext
5855cat >>conftest.$ac_ext <<_ACEOF
5856/* end confdefs.h. */
5857
5858/* Override any gcc2 internal prototype to avoid an error. */
5859#ifdef __cplusplus
5860extern "C"
5861#endif
5862/* We use char because int might match the return type of a gcc2
5863 builtin and then its argument prototype would still apply. */
5864char gethostbyname ();
5865int
5866main ()
5867{
5868gethostbyname ();
5869 ;
5870 return 0;
5871}
5872_ACEOF
5873rm -f conftest.$ac_objext conftest$ac_exeext
5874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5875 (eval $ac_link) 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_c_werror_flag"
5883 || test ! -s conftest.err'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 (eval $ac_try) 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; } &&
5889 { ac_try='test -s conftest$ac_exeext'
5890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891 (eval $ac_try) 2>&5
5892 ac_status=$?
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); }; }; then
5895 ac_cv_lib_bsd_gethostbyname=yes
5896else
5897 echo "$as_me: failed program was:" >&5
5898sed 's/^/| /' conftest.$ac_ext >&5
5899
5900ac_cv_lib_bsd_gethostbyname=no
5901fi
5902rm -f conftest.err conftest.$ac_objext \
5903 conftest$ac_exeext conftest.$ac_ext
5904LIBS=$ac_check_lib_save_LIBS
5905fi
5906echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5907echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
5908if test $ac_cv_lib_bsd_gethostbyname = yes; then
5909 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5910fi
5911
5912 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00005913 fi
5914
5915 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5916 # socket/setsockopt and other routines are undefined under SCO ODT
5917 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005918 # on later versions), says Simon Leinen: it contains gethostby*
5919 # variants that don't use the name server (or something). -lsocket
5920 # must be given before -lnsl if both are needed. We assume that
5921 # if connect needs -lnsl, so does gethostbyname.
5922 echo "$as_me:$LINENO: checking for connect" >&5
5923echo $ECHO_N "checking for connect... $ECHO_C" >&6
5924if test "${ac_cv_func_connect+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00005926else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005927 cat >conftest.$ac_ext <<_ACEOF
5928/* confdefs.h. */
5929_ACEOF
5930cat confdefs.h >>conftest.$ac_ext
5931cat >>conftest.$ac_ext <<_ACEOF
5932/* end confdefs.h. */
5933/* Define connect to an innocuous variant, in case <limits.h> declares connect.
5934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5935#define connect innocuous_connect
5936
Bram Moolenaar071d4272004-06-13 20:20:40 +00005937/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005938 which can conflict with char connect (); below.
5939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5940 <limits.h> exists even on freestanding compilers. */
5941
5942#ifdef __STDC__
5943# include <limits.h>
5944#else
5945# include <assert.h>
5946#endif
5947
5948#undef connect
5949
Bram Moolenaar071d4272004-06-13 20:20:40 +00005950/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005951#ifdef __cplusplus
5952extern "C"
5953{
5954#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00005955/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005956 builtin and then its argument prototype would still apply. */
5957char connect ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00005958/* The GNU C library defines this for functions which it implements
5959 to always fail with ENOSYS. Some functions are actually named
5960 something starting with __ and the normal name is an alias. */
5961#if defined (__stub_connect) || defined (__stub___connect)
5962choke me
5963#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005964char (*f) () = connect;
5965#endif
5966#ifdef __cplusplus
5967}
Bram Moolenaar071d4272004-06-13 20:20:40 +00005968#endif
5969
Bram Moolenaar495de9c2005-01-25 22:03:25 +00005970int
5971main ()
5972{
5973return f != connect;
5974 ;
5975 return 0;
5976}
5977_ACEOF
5978rm -f conftest.$ac_objext conftest$ac_exeext
5979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980 (eval $ac_link) 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag"
5988 || test ! -s conftest.err'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 (eval $ac_try) 2>&5
5991 ac_status=$?
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest$ac_exeext'
5995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 (eval $ac_try) 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_cv_func_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006001else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006002 echo "$as_me: failed program was:" >&5
6003sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006004
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006005ac_cv_func_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006006fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006007rm -f conftest.err conftest.$ac_objext \
6008 conftest$ac_exeext conftest.$ac_ext
6009fi
6010echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6011echo "${ECHO_T}$ac_cv_func_connect" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006012
6013 if test $ac_cv_func_connect = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006014 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6015echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6016if test "${ac_cv_lib_socket_connect+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006018else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006019 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006020LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006021cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h. */
6027
Bram Moolenaar071d4272004-06-13 20:20:40 +00006028/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006029#ifdef __cplusplus
6030extern "C"
6031#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006032/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006033 builtin and then its argument prototype would still apply. */
6034char connect ();
6035int
6036main ()
6037{
6038connect ();
6039 ;
6040 return 0;
6041}
6042_ACEOF
6043rm -f conftest.$ac_objext conftest$ac_exeext
6044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6045 (eval $ac_link) 2>conftest.er1
6046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } &&
6052 { ac_try='test -z "$ac_c_werror_flag"
6053 || test ! -s conftest.err'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 (eval $ac_try) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; } &&
6059 { ac_try='test -s conftest$ac_exeext'
6060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 (eval $ac_try) 2>&5
6062 ac_status=$?
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }; }; then
6065 ac_cv_lib_socket_connect=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006066else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006067 echo "$as_me: failed program was:" >&5
6068sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006069
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006070ac_cv_lib_socket_connect=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006071fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006072rm -f conftest.err conftest.$ac_objext \
6073 conftest$ac_exeext conftest.$ac_ext
6074LIBS=$ac_check_lib_save_LIBS
6075fi
6076echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6077echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6078if test $ac_cv_lib_socket_connect = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006079 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006080fi
6081
6082 fi
6083
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006084 # Guillermo Gomez says -lposix is necessary on A/UX.
6085 echo "$as_me:$LINENO: checking for remove" >&5
6086echo $ECHO_N "checking for remove... $ECHO_C" >&6
6087if test "${ac_cv_func_remove+set}" = set; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006089else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006090 cat >conftest.$ac_ext <<_ACEOF
6091/* confdefs.h. */
6092_ACEOF
6093cat confdefs.h >>conftest.$ac_ext
6094cat >>conftest.$ac_ext <<_ACEOF
6095/* end confdefs.h. */
6096/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6098#define remove innocuous_remove
6099
Bram Moolenaar071d4272004-06-13 20:20:40 +00006100/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006101 which can conflict with char remove (); below.
6102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6103 <limits.h> exists even on freestanding compilers. */
6104
6105#ifdef __STDC__
6106# include <limits.h>
6107#else
6108# include <assert.h>
6109#endif
6110
6111#undef remove
6112
Bram Moolenaar071d4272004-06-13 20:20:40 +00006113/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006114#ifdef __cplusplus
6115extern "C"
6116{
6117#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006118/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006119 builtin and then its argument prototype would still apply. */
6120char remove ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006121/* The GNU C library defines this for functions which it implements
6122 to always fail with ENOSYS. Some functions are actually named
6123 something starting with __ and the normal name is an alias. */
6124#if defined (__stub_remove) || defined (__stub___remove)
6125choke me
6126#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006127char (*f) () = remove;
6128#endif
6129#ifdef __cplusplus
6130}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006131#endif
6132
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006133int
6134main ()
6135{
6136return f != remove;
6137 ;
6138 return 0;
6139}
6140_ACEOF
6141rm -f conftest.$ac_objext conftest$ac_exeext
6142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6143 (eval $ac_link) 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_c_werror_flag"
6151 || test ! -s conftest.err'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153 (eval $ac_try) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; } &&
6157 { ac_try='test -s conftest$ac_exeext'
6158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6159 (eval $ac_try) 2>&5
6160 ac_status=$?
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_cv_func_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006164else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006165 echo "$as_me: failed program was:" >&5
6166sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006167
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006168ac_cv_func_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006169fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006170rm -f conftest.err conftest.$ac_objext \
6171 conftest$ac_exeext conftest.$ac_ext
6172fi
6173echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6174echo "${ECHO_T}$ac_cv_func_remove" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006175
6176 if test $ac_cv_func_remove = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006177 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6178echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6179if test "${ac_cv_lib_posix_remove+set}" = set; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006181else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006182 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006183LIBS="-lposix $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006184cat >conftest.$ac_ext <<_ACEOF
6185/* confdefs.h. */
6186_ACEOF
6187cat confdefs.h >>conftest.$ac_ext
6188cat >>conftest.$ac_ext <<_ACEOF
6189/* end confdefs.h. */
6190
Bram Moolenaar071d4272004-06-13 20:20:40 +00006191/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006192#ifdef __cplusplus
6193extern "C"
6194#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006195/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006196 builtin and then its argument prototype would still apply. */
6197char remove ();
6198int
6199main ()
6200{
6201remove ();
6202 ;
6203 return 0;
6204}
6205_ACEOF
6206rm -f conftest.$ac_objext conftest$ac_exeext
6207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6208 (eval $ac_link) 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } &&
6215 { ac_try='test -z "$ac_c_werror_flag"
6216 || test ! -s conftest.err'
6217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6218 (eval $ac_try) 2>&5
6219 ac_status=$?
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); }; } &&
6222 { ac_try='test -s conftest$ac_exeext'
6223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224 (eval $ac_try) 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_lib_posix_remove=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006229else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006230 echo "$as_me: failed program was:" >&5
6231sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006232
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006233ac_cv_lib_posix_remove=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006234fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006235rm -f conftest.err conftest.$ac_objext \
6236 conftest$ac_exeext conftest.$ac_ext
6237LIBS=$ac_check_lib_save_LIBS
6238fi
6239echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6240echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6241if test $ac_cv_lib_posix_remove = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006242 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006243fi
6244
6245 fi
6246
6247 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006248 echo "$as_me:$LINENO: checking for shmat" >&5
6249echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6250if test "${ac_cv_func_shmat+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006252else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006253 cat >conftest.$ac_ext <<_ACEOF
6254/* confdefs.h. */
6255_ACEOF
6256cat confdefs.h >>conftest.$ac_ext
6257cat >>conftest.$ac_ext <<_ACEOF
6258/* end confdefs.h. */
6259/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6261#define shmat innocuous_shmat
6262
Bram Moolenaar071d4272004-06-13 20:20:40 +00006263/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006264 which can conflict with char shmat (); below.
6265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6266 <limits.h> exists even on freestanding compilers. */
6267
6268#ifdef __STDC__
6269# include <limits.h>
6270#else
6271# include <assert.h>
6272#endif
6273
6274#undef shmat
6275
Bram Moolenaar071d4272004-06-13 20:20:40 +00006276/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006277#ifdef __cplusplus
6278extern "C"
6279{
6280#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006281/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006282 builtin and then its argument prototype would still apply. */
6283char shmat ();
Bram Moolenaar071d4272004-06-13 20:20:40 +00006284/* The GNU C library defines this for functions which it implements
6285 to always fail with ENOSYS. Some functions are actually named
6286 something starting with __ and the normal name is an alias. */
6287#if defined (__stub_shmat) || defined (__stub___shmat)
6288choke me
6289#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006290char (*f) () = shmat;
6291#endif
6292#ifdef __cplusplus
6293}
Bram Moolenaar071d4272004-06-13 20:20:40 +00006294#endif
6295
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006296int
6297main ()
6298{
6299return f != shmat;
6300 ;
6301 return 0;
6302}
6303_ACEOF
6304rm -f conftest.$ac_objext conftest$ac_exeext
6305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306 (eval $ac_link) 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try='test -z "$ac_c_werror_flag"
6314 || test ! -s conftest.err'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; } &&
6320 { ac_try='test -s conftest$ac_exeext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 ac_cv_func_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006327else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006328 echo "$as_me: failed program was:" >&5
6329sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006330
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006331ac_cv_func_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006332fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006333rm -f conftest.err conftest.$ac_objext \
6334 conftest$ac_exeext conftest.$ac_ext
6335fi
6336echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6337echo "${ECHO_T}$ac_cv_func_shmat" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006338
6339 if test $ac_cv_func_shmat = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006340 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6341echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6342if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006344else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006345 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006346LIBS="-lipc $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006347cat >conftest.$ac_ext <<_ACEOF
6348/* confdefs.h. */
6349_ACEOF
6350cat confdefs.h >>conftest.$ac_ext
6351cat >>conftest.$ac_ext <<_ACEOF
6352/* end confdefs.h. */
6353
Bram Moolenaar071d4272004-06-13 20:20:40 +00006354/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006355#ifdef __cplusplus
6356extern "C"
6357#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006358/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006359 builtin and then its argument prototype would still apply. */
6360char shmat ();
6361int
6362main ()
6363{
6364shmat ();
6365 ;
6366 return 0;
6367}
6368_ACEOF
6369rm -f conftest.$ac_objext conftest$ac_exeext
6370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6371 (eval $ac_link) 2>conftest.er1
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try='test -z "$ac_c_werror_flag"
6379 || test ! -s conftest.err'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 (eval $ac_try) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; } &&
6385 { ac_try='test -s conftest$ac_exeext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_lib_ipc_shmat=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006392else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006393 echo "$as_me: failed program was:" >&5
6394sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006395
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006396ac_cv_lib_ipc_shmat=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006397fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006398rm -f conftest.err conftest.$ac_objext \
6399 conftest$ac_exeext conftest.$ac_ext
6400LIBS=$ac_check_lib_save_LIBS
6401fi
6402echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
6403echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
6404if test $ac_cv_lib_ipc_shmat = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006405 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006406fi
6407
6408 fi
6409 fi
6410
6411 # Check for libraries that X11R6 Xt/Xaw programs need.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006412 ac_save_LDFLAGS=$LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006413 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6414 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6415 # check for ICE first), but we must link in the order -lSM -lICE or
6416 # we get undefined symbols. So assume we have SM if we have ICE.
6417 # These have to be linked with before -lX11, unlike the other
6418 # libraries we check for below, so use a different variable.
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006419 # John Interrante, Karl Berry
6420 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
6421echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
6422if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006424else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006425 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006426LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006427cat >conftest.$ac_ext <<_ACEOF
6428/* confdefs.h. */
6429_ACEOF
6430cat confdefs.h >>conftest.$ac_ext
6431cat >>conftest.$ac_ext <<_ACEOF
6432/* end confdefs.h. */
6433
Bram Moolenaar071d4272004-06-13 20:20:40 +00006434/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006435#ifdef __cplusplus
6436extern "C"
6437#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006438/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006439 builtin and then its argument prototype would still apply. */
6440char IceConnectionNumber ();
6441int
6442main ()
6443{
6444IceConnectionNumber ();
6445 ;
6446 return 0;
6447}
6448_ACEOF
6449rm -f conftest.$ac_objext conftest$ac_exeext
6450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6451 (eval $ac_link) 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_c_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest$ac_exeext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 ac_cv_lib_ICE_IceConnectionNumber=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006472else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006473 echo "$as_me: failed program was:" >&5
6474sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006475
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006476ac_cv_lib_ICE_IceConnectionNumber=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006477fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006478rm -f conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6480LIBS=$ac_check_lib_save_LIBS
6481fi
6482echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6483echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
6484if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006485 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006486fi
6487
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006488 LDFLAGS=$ac_save_LDFLAGS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006489
6490fi
6491
6492
6493 if test "$OS390Unix" = "yes"; then
6494 CFLAGS="$CFLAGS -W c,dll"
6495 LDFLAGS="$LDFLAGS -W l,dll"
6496 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu"
6497 fi
6498
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006499
Bram Moolenaar071d4272004-06-13 20:20:40 +00006500 if test -d "$x_includes" && test ! -d "$x_libraries"; then
6501 x_libraries=`echo "$x_includes" | sed s/include/lib/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006502 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5
6503echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006504 X_LIBS="$X_LIBS -L$x_libraries"
6505 if test "`(uname) 2>/dev/null`" = SunOS &&
6506 uname -r | grep '^5' >/dev/null; then
6507 X_LIBS="$X_LIBS -R $x_libraries"
6508 fi
6509 fi
6510
6511 if test -d "$x_libraries" && test ! -d "$x_includes"; then
6512 x_includes=`echo "$x_libraries" | sed s/lib/include/`
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006513 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5
6514echo "${ECHO_T}Corrected X includes to $x_includes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006515 X_CFLAGS="$X_CFLAGS -I$x_includes"
6516 fi
6517
6518 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`"
6519 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`"
6520 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`"
6521
6522
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006523 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5
6524echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006525 cflags_save=$CFLAGS
6526 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006527 cat >conftest.$ac_ext <<_ACEOF
6528/* confdefs.h. */
6529_ACEOF
6530cat confdefs.h >>conftest.$ac_ext
6531cat >>conftest.$ac_ext <<_ACEOF
6532/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006533#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006534int
6535main ()
6536{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006537
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006538 ;
6539 return 0;
6540}
6541_ACEOF
6542rm -f conftest.$ac_objext
6543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544 (eval $ac_compile) 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } &&
6551 { ac_try='test -z "$ac_c_werror_flag"
6552 || test ! -s conftest.err'
6553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554 (eval $ac_try) 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560 (eval $ac_try) 2>&5
6561 ac_status=$?
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); }; }; then
6564 echo "$as_me:$LINENO: result: yes" >&5
6565echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006566else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006567 echo "$as_me: failed program was:" >&5
6568sed 's/^/| /' conftest.$ac_ext >&5
6569
6570echo "$as_me:$LINENO: result: no" >&5
6571echo "${ECHO_T}no" >&6; no_x=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006572fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006574 CFLAGS=$cflags_save
6575
6576 if test "${no_x-no}" = yes; then
6577 with_x=no
6578 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006579 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006580#define HAVE_X11 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006581_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00006582
6583 X_LIB="-lXt -lX11";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006584
Bram Moolenaar071d4272004-06-13 20:20:40 +00006585
6586 ac_save_LDFLAGS="$LDFLAGS"
6587 LDFLAGS="-L$x_libraries $LDFLAGS"
6588
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006589 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5
6590echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6
6591if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006593else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006594 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006595LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006596cat >conftest.$ac_ext <<_ACEOF
6597/* confdefs.h. */
6598_ACEOF
6599cat confdefs.h >>conftest.$ac_ext
6600cat >>conftest.$ac_ext <<_ACEOF
6601/* end confdefs.h. */
6602
Bram Moolenaar071d4272004-06-13 20:20:40 +00006603/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006604#ifdef __cplusplus
6605extern "C"
6606#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006607/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006608 builtin and then its argument prototype would still apply. */
6609char _XdmcpAuthDoIt ();
6610int
6611main ()
6612{
6613_XdmcpAuthDoIt ();
6614 ;
6615 return 0;
6616}
6617_ACEOF
6618rm -f conftest.$ac_objext conftest$ac_exeext
6619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6620 (eval $ac_link) 2>conftest.er1
6621 ac_status=$?
6622 grep -v '^ *+' conftest.er1 >conftest.err
6623 rm -f conftest.er1
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -z "$ac_c_werror_flag"
6628 || test ! -s conftest.err'
6629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630 (eval $ac_try) 2>&5
6631 ac_status=$?
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); }; } &&
6634 { ac_try='test -s conftest$ac_exeext'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636 (eval $ac_try) 2>&5
6637 ac_status=$?
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; }; then
6640 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006641else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006642 echo "$as_me: failed program was:" >&5
6643sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006644
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006645ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006646fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006647rm -f conftest.err conftest.$ac_objext \
6648 conftest$ac_exeext conftest.$ac_ext
6649LIBS=$ac_check_lib_save_LIBS
6650fi
6651echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5
6652echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6
6653if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006654 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006655fi
6656
6657
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006658 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5
6659echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6
6660if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then
6661 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006662else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006663 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006664LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006665cat >conftest.$ac_ext <<_ACEOF
6666/* confdefs.h. */
6667_ACEOF
6668cat confdefs.h >>conftest.$ac_ext
6669cat >>conftest.$ac_ext <<_ACEOF
6670/* end confdefs.h. */
6671
Bram Moolenaar071d4272004-06-13 20:20:40 +00006672/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006673#ifdef __cplusplus
6674extern "C"
6675#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006676/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006677 builtin and then its argument prototype would still apply. */
6678char IceOpenConnection ();
6679int
6680main ()
6681{
6682IceOpenConnection ();
6683 ;
6684 return 0;
6685}
6686_ACEOF
6687rm -f conftest.$ac_objext conftest$ac_exeext
6688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6689 (eval $ac_link) 2>conftest.er1
6690 ac_status=$?
6691 grep -v '^ *+' conftest.er1 >conftest.err
6692 rm -f conftest.er1
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } &&
6696 { ac_try='test -z "$ac_c_werror_flag"
6697 || test ! -s conftest.err'
6698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 (eval $ac_try) 2>&5
6700 ac_status=$?
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); }; } &&
6703 { ac_try='test -s conftest$ac_exeext'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; }; then
6709 ac_cv_lib_ICE_IceOpenConnection=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006710else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006711 echo "$as_me: failed program was:" >&5
6712sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006713
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006714ac_cv_lib_ICE_IceOpenConnection=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006715fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006716rm -f conftest.err conftest.$ac_objext \
6717 conftest$ac_exeext conftest.$ac_ext
6718LIBS=$ac_check_lib_save_LIBS
6719fi
6720echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5
6721echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6
6722if test $ac_cv_lib_ICE_IceOpenConnection = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006724fi
6725
6726
6727 LDFLAGS="$X_LIBS $ac_save_LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006728 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5
6729echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6
6730if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006732else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006733 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00006734LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006735cat >conftest.$ac_ext <<_ACEOF
6736/* confdefs.h. */
6737_ACEOF
6738cat confdefs.h >>conftest.$ac_ext
6739cat >>conftest.$ac_ext <<_ACEOF
6740/* end confdefs.h. */
6741
Bram Moolenaar071d4272004-06-13 20:20:40 +00006742/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006743#ifdef __cplusplus
6744extern "C"
6745#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00006746/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006747 builtin and then its argument prototype would still apply. */
6748char XpmCreatePixmapFromData ();
6749int
6750main ()
6751{
6752XpmCreatePixmapFromData ();
6753 ;
6754 return 0;
6755}
6756_ACEOF
6757rm -f conftest.$ac_objext conftest$ac_exeext
6758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6759 (eval $ac_link) 2>conftest.er1
6760 ac_status=$?
6761 grep -v '^ *+' conftest.er1 >conftest.err
6762 rm -f conftest.er1
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } &&
6766 { ac_try='test -z "$ac_c_werror_flag"
6767 || test ! -s conftest.err'
6768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 (eval $ac_try) 2>&5
6770 ac_status=$?
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); }; } &&
6773 { ac_try='test -s conftest$ac_exeext'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 (eval $ac_try) 2>&5
6776 ac_status=$?
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; }; then
6779 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00006780else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006781 echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00006783
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006784ac_cv_lib_Xpm_XpmCreatePixmapFromData=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00006785fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006786rm -f conftest.err conftest.$ac_objext \
6787 conftest$ac_exeext conftest.$ac_ext
6788LIBS=$ac_check_lib_save_LIBS
6789fi
6790echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5
6791echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6
6792if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006793 X_PRE_LIBS="$X_PRE_LIBS -lXpm"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006794fi
6795
6796
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006797 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5
6798echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006799 cflags_save=$CFLAGS
6800 CFLAGS="$CFLAGS $X_CFLAGS -Werror"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006801 cat >conftest.$ac_ext <<_ACEOF
6802/* confdefs.h. */
6803_ACEOF
6804cat confdefs.h >>conftest.$ac_ext
6805cat >>conftest.$ac_ext <<_ACEOF
6806/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006807#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006808int
6809main ()
6810{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006811
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006812 ;
6813 return 0;
6814}
6815_ACEOF
6816rm -f conftest.$ac_objext
6817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -z "$ac_c_werror_flag"
6826 || test ! -s conftest.err'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try='test -s conftest.$ac_objext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834 (eval $ac_try) 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 echo "$as_me:$LINENO: result: no" >&5
6839echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006840else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006841 echo "$as_me: failed program was:" >&5
6842sed 's/^/| /' conftest.$ac_ext >&5
6843
6844CFLAGS="$CFLAGS -Wno-implicit-int"
6845 cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00006851#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006852int
6853main ()
6854{
Bram Moolenaar071d4272004-06-13 20:20:40 +00006855
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006856 ;
6857 return 0;
6858}
6859_ACEOF
6860rm -f conftest.$ac_objext
6861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 echo "$as_me:$LINENO: result: yes" >&5
6883echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int"
Bram Moolenaar071d4272004-06-13 20:20:40 +00006884else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006885 echo "$as_me: failed program was:" >&5
6886sed 's/^/| /' conftest.$ac_ext >&5
6887
6888echo "$as_me:$LINENO: result: test failed" >&5
6889echo "${ECHO_T}test failed" >&6
6890
Bram Moolenaar071d4272004-06-13 20:20:40 +00006891fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6893
Bram Moolenaar071d4272004-06-13 20:20:40 +00006894fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00006896 CFLAGS=$cflags_save
6897
6898 LDFLAGS="$ac_save_LDFLAGS"
6899
6900 fi
6901fi
6902
6903test "x$with_x" = xno -a "x$BEOS" != "xyes" -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no
6904
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006905echo "$as_me:$LINENO: checking --enable-gui argument" >&5
6906echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006907# Check whether --enable-gui or --disable-gui was given.
6908if test "${enable_gui+set}" = set; then
6909 enableval="$enable_gui"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006910
Bram Moolenaar071d4272004-06-13 20:20:40 +00006911else
6912 enable_gui="auto"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006913fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00006914
6915enable_gui_canon=`echo "_$enable_gui" | \
6916 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
6917
6918SKIP_GTK=YES
6919SKIP_GTK2=YES
6920SKIP_GNOME=YES
Bram Moolenaar592e0a22004-07-03 16:05:59 +00006921SKIP_KDE=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00006922SKIP_MOTIF=YES
6923SKIP_ATHENA=YES
6924SKIP_NEXTAW=YES
6925SKIP_PHOTON=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00006926SKIP_CARBON=YES
6927GUITYPE=NONE
6928
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006929if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00006930 SKIP_PHOTON=
6931 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006932 no) echo "$as_me:$LINENO: result: no GUI support" >&5
6933echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006934 SKIP_PHOTON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006935 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
6936echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
6937 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
6938echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
6939 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5
6940echo "${ECHO_T}Photon GUI support" >&6 ;;
6941 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
6942echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006943 SKIP_PHOTON=YES ;;
6944 esac
6945
6946elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then
6947 SKIP_CARBON=
6948 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006949 no) echo "$as_me:$LINENO: result: no GUI support" >&5
6950echo "${ECHO_T}no GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006951 SKIP_CARBON=YES ;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006952 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5
6953echo "${ECHO_T}yes - automatic GUI support" >&6 ;;
6954 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5
6955echo "${ECHO_T}auto - automatic GUI support" >&6 ;;
6956 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5
6957echo "${ECHO_T}Carbon GUI support" >&6 ;;
6958 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
6959echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006960 SKIP_CARBON=YES ;;
6961 esac
6962
6963else
6964
Bram Moolenaar071d4272004-06-13 20:20:40 +00006965 case "$enable_gui_canon" in
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006966 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5
6967echo "${ECHO_T}no GUI support" >&6 ;;
6968 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5
6969echo "${ECHO_T}yes/auto - automatic GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006970 SKIP_GTK=
6971 SKIP_GTK2=
6972 SKIP_GNOME=
6973 SKIP_MOTIF=
6974 SKIP_ATHENA=
6975 SKIP_NEXTAW=
6976 SKIP_CARBON=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006977 kde|Kde|KDE) echo "$as_me:$LINENO: result: KDE 2.x or 3.x GUI support" >&5
6978echo "${ECHO_T}KDE 2.x or 3.x GUI support" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00006979 SKIP_KDE=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006980 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5
6981echo "${ECHO_T}GTK+ 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006982 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006983 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5
6984echo "${ECHO_T}GTK+ 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006985 SKIP_GTK=
6986 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006987 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5
6988echo "${ECHO_T}GNOME 1.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006989 SKIP_GNOME=
6990 SKIP_GTK=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006991 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5
6992echo "${ECHO_T}GNOME 2.x GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006993 SKIP_GNOME=
6994 SKIP_GTK=
6995 SKIP_GTK2=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006996 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5
6997echo "${ECHO_T}Motif GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00006998 SKIP_MOTIF=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00006999 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5
7000echo "${ECHO_T}Athena GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007001 SKIP_ATHENA=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007002 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5
7003echo "${ECHO_T}neXtaw GUI support" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007004 SKIP_NEXTAW=;;
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007005 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5
7006echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007007 esac
7008
7009fi
7010
Bram Moolenaar843ee412004-06-30 16:16:41 +00007011if test "x$SKIP_KDE" != "xYES" -a "$enable_gui_canon" != "kde"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007012 echo "$as_me:$LINENO: checking whether or not to look for KDE" >&5
7013echo $ECHO_N "checking whether or not to look for KDE... $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007014 # Check whether --enable-kde-check or --disable-kde-check was given.
7015if test "${enable_kde_check+set}" = set; then
7016 enableval="$enable_kde_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007017
Bram Moolenaar843ee412004-06-30 16:16:41 +00007018else
7019 enable_kde_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007020fi;
7021 echo "$as_me:$LINENO: result: $enable_kde_check" >&5
7022echo "${ECHO_T}$enable_kde_check" >&6;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007023 if test "x$enable_kde_check" = "xno"; then
7024 SKIP_KDE=YES
7025 fi
7026fi
7027
Bram Moolenaar071d4272004-06-13 20:20:40 +00007028if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007029 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5
7030echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007031 # Check whether --enable-gtk-check or --disable-gtk-check was given.
7032if test "${enable_gtk_check+set}" = set; then
7033 enableval="$enable_gtk_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007034
Bram Moolenaar071d4272004-06-13 20:20:40 +00007035else
7036 enable_gtk_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007037fi;
7038 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5
7039echo "${ECHO_T}$enable_gtk_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007040 if test "x$enable_gtk_check" = "xno"; then
7041 SKIP_GTK=YES
7042 SKIP_GNOME=YES
7043 fi
7044fi
7045
7046if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \
7047 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007048 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5
7049echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007050 # Check whether --enable-gtk2-check or --disable-gtk2-check was given.
7051if test "${enable_gtk2_check+set}" = set; then
7052 enableval="$enable_gtk2_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007053
Bram Moolenaar071d4272004-06-13 20:20:40 +00007054else
7055 enable_gtk2_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007056fi;
7057 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5
7058echo "${ECHO_T}$enable_gtk2_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007059 if test "x$enable_gtk2_check" = "xno"; then
7060 SKIP_GTK2=YES
7061 fi
7062fi
7063
7064if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \
7065 -a "$enable_gui_canon" != "gnome2"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007066 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5
7067echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007068 # Check whether --enable-gnome-check or --disable-gnome-check was given.
7069if test "${enable_gnome_check+set}" = set; then
7070 enableval="$enable_gnome_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007071
Bram Moolenaar071d4272004-06-13 20:20:40 +00007072else
7073 enable_gnome_check="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007074fi;
7075 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5
7076echo "${ECHO_T}$enable_gnome_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007077 if test "x$enable_gnome_check" = "xno"; then
7078 SKIP_GNOME=YES
7079 fi
7080fi
7081
7082if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007083 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5
7084echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007085 # Check whether --enable-motif-check or --disable-motif-check was given.
7086if test "${enable_motif_check+set}" = set; then
7087 enableval="$enable_motif_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007088
Bram Moolenaar071d4272004-06-13 20:20:40 +00007089else
7090 enable_motif_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007091fi;
7092 echo "$as_me:$LINENO: result: $enable_motif_check" >&5
7093echo "${ECHO_T}$enable_motif_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007094 if test "x$enable_motif_check" = "xno"; then
7095 SKIP_MOTIF=YES
7096 fi
7097fi
7098
7099if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007100 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5
7101echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007102 # Check whether --enable-athena-check or --disable-athena-check was given.
7103if test "${enable_athena_check+set}" = set; then
7104 enableval="$enable_athena_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007105
Bram Moolenaar071d4272004-06-13 20:20:40 +00007106else
7107 enable_athena_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007108fi;
7109 echo "$as_me:$LINENO: result: $enable_athena_check" >&5
7110echo "${ECHO_T}$enable_athena_check" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007111 if test "x$enable_athena_check" = "xno"; then
7112 SKIP_ATHENA=YES
7113 fi
7114fi
7115
7116if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007117 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5
7118echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007119 # Check whether --enable-nextaw-check or --disable-nextaw-check was given.
7120if test "${enable_nextaw_check+set}" = set; then
7121 enableval="$enable_nextaw_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007122
Bram Moolenaar071d4272004-06-13 20:20:40 +00007123else
7124 enable_nextaw_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007125fi;
7126 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5
7127echo "${ECHO_T}$enable_nextaw_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007128 if test "x$enable_nextaw_check" = "xno"; then
7129 SKIP_NEXTAW=YES
7130 fi
7131fi
7132
7133if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007134 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5
7135echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00007136 # Check whether --enable-carbon-check or --disable-carbon-check was given.
7137if test "${enable_carbon_check+set}" = set; then
7138 enableval="$enable_carbon_check"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007139
Bram Moolenaar071d4272004-06-13 20:20:40 +00007140else
7141 enable_carbon_check="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007142fi;
7143 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5
7144echo "${ECHO_T}$enable_carbon_check" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00007145 if test "x$enable_carbon_check" = "xno"; then
7146 SKIP_CARBON=YES
7147 fi
7148fi
7149
Bram Moolenaar843ee412004-06-30 16:16:41 +00007150
7151if test -z "$SKIP_KDE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007152
Bram Moolenaar843ee412004-06-30 16:16:41 +00007153# Check whether --with-qt-dir or --without-qt-dir was given.
7154if test "${with_qt_dir+set}" = set; then
7155 withval="$with_qt_dir"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007156
Bram Moolenaar843ee412004-06-30 16:16:41 +00007157 ROOTQT="$withval"
7158 MOC="$withval"/bin/moc
7159 QT_INCLUDES="$withval"/include
7160 QT_LIBS="$withval"/lib
Bram Moolenaar843ee412004-06-30 16:16:41 +00007161
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007162fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007163
7164if test "x$ROOTQT" = "x"; then
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007165 if test -z "$QTDIR"; then
7166 # Extract the first word of "moc", so it can be a program name with args.
Bram Moolenaar843ee412004-06-30 16:16:41 +00007167set dummy moc; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007168echo "$as_me:$LINENO: checking for $ac_word" >&5
7169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7170if test "${ac_cv_path_MOC+set}" = set; then
7171 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007172else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007173 case $MOC in
7174 [\\/]* | ?:[\\/]*)
Bram Moolenaar843ee412004-06-30 16:16:41 +00007175 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
7176 ;;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007177 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179for as_dir in $PATH
7180do
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7185 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
7186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7188 fi
7189done
7190done
7191
Bram Moolenaar843ee412004-06-30 16:16:41 +00007192 test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no"
7193 ;;
7194esac
7195fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007196MOC=$ac_cv_path_MOC
7197
Bram Moolenaar843ee412004-06-30 16:16:41 +00007198if test -n "$MOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007199 echo "$as_me:$LINENO: result: $MOC" >&5
7200echo "${ECHO_T}$MOC" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007201else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007202 echo "$as_me:$LINENO: result: no" >&5
7203echo "${ECHO_T}no" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007204fi
7205
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007206 if test "x$MOC" = "xno"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007207 { { echo "$as_me:$LINENO: error: could not find Qt directory" >&5
7208echo "$as_me: error: could not find Qt directory" >&2;}
7209 { (exit 1); exit 1; }; }
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007210 else
7211 ROOTQT=`echo $MOC | sed 's+/bin/moc++'`
7212 fi
7213 else
7214 ROOTQT="$QTDIR"
7215 fi
Bram Moolenaar843ee412004-06-30 16:16:41 +00007216fi
7217MOC="$ROOTQT"/bin/moc
7218QT_INCLUDES="$ROOTQT"/include
7219QT_LIBS="$ROOTQT"/lib
7220
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007221
Bram Moolenaar843ee412004-06-30 16:16:41 +00007222# Check whether --with-qt-includes or --without-qt-includes was given.
7223if test "${with_qt_includes+set}" = set; then
7224 withval="$with_qt_includes"
7225 QT_INCLUDES="$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007226
7227fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007228
7229
7230# Check whether --with-qt-libraries or --without-qt-libraries was given.
7231if test "${with_qt_libraries+set}" = set; then
7232 withval="$with_qt_libraries"
7233 QT_LIBS="$withval"
Bram Moolenaar843ee412004-06-30 16:16:41 +00007234
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007235fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007236
7237if test "x$QT_LIBS" = "x" ; then
7238 QT_LIBS="$ROOTQT"/lib
7239fi
7240if test "x$QT_INCLUDES" = "x" ; then
7241 QT_INCLUDES="$ROOTQT"/include
7242fi
7243
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007244echo "$as_me:$LINENO: checking whether or not to use a KDE Toolbar in KVim" >&5
7245echo $ECHO_N "checking whether or not to use a KDE Toolbar in KVim... $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007246# Check whether --enable-kde-toolbar or --disable-kde-toolbar was given.
7247if test "${enable_kde_toolbar+set}" = set; then
7248 enableval="$enable_kde_toolbar"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007249
Bram Moolenaar843ee412004-06-30 16:16:41 +00007250else
7251 enable_kde_toolbar="no"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007252fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007253if test "x$enable_kde_toolbar" != "xno"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007254 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar843ee412004-06-30 16:16:41 +00007255#define FEAT_KDETOOLBAR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007256_ACEOF
Bram Moolenaar843ee412004-06-30 16:16:41 +00007257
7258fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007259echo "$as_me:$LINENO: result: $enable_kde_toolbar" >&5
7260echo "${ECHO_T}$enable_kde_toolbar" >&6;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007261fi
7262
7263
7264if test -z "$SKIP_KDE"; then
7265
7266
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007267
7268
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007269echo "$as_me:$LINENO: checking --disable-rpath argument" >&5
7270echo $ECHO_N "checking --disable-rpath argument... $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007271# Check whether --enable-rpath or --disable-rpath was given.
7272if test "${enable_rpath+set}" = set; then
7273 enableval="$enable_rpath"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007274
Bram Moolenaar843ee412004-06-30 16:16:41 +00007275else
7276 enable_rpath="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007277fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007278if test "$enable_rpath" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007279 echo "$as_me:$LINENO: result: no" >&5
7280echo "${ECHO_T}no" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007281else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007282 echo "$as_me:$LINENO: result: yes" >&5
7283echo "${ECHO_T}yes" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007284fi
7285
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007286echo "$as_me:$LINENO: checking --with-kde-prefix argument" >&5
7287echo $ECHO_N "checking --with-kde-prefix argument... $ECHO_C" >&6
7288
Bram Moolenaar843ee412004-06-30 16:16:41 +00007289# Check whether --with-kde-prefix or --without-kde-prefix was given.
7290if test "${with_kde_prefix+set}" = set; then
7291 withval="$with_kde_prefix"
7292 kde_config_prefix="$withval";
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007293echo "$as_me:$LINENO: result: $kde_config_prefix" >&5
7294echo "${ECHO_T}$kde_config_prefix" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007295else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007296 kde_config_prefix="";echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6
7298fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007299
7300
7301# Check whether --with-kde-includes or --without-kde-includes was given.
7302if test "${with_kde_includes+set}" = set; then
7303 withval="$with_kde_includes"
7304 KDE_INCLUDES="$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007305
7306fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007307
7308
7309# Check whether --with-kde-libraries or --without-kde-libraries was given.
7310if test "${with_kde_libraries+set}" = set; then
7311 withval="$with_kde_libraries"
7312 KDE_LIBS="$withval"
Bram Moolenaar843ee412004-06-30 16:16:41 +00007313
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007314fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007315
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007316echo "$as_me:$LINENO: checking --disable-kdetest argument" >&5
7317echo $ECHO_N "checking --disable-kdetest argument... $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007318# Check whether --enable-kdetest or --disable-kdetest was given.
7319if test "${enable_kdetest+set}" = set; then
7320 enableval="$enable_kdetest"
7321 enable_kdetest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007322fi;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007323
7324if test "x$enable_kdetest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007325 echo "$as_me:$LINENO: result: kde test enabled" >&5
7326echo "${ECHO_T}kde test enabled" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007327else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007328 echo "$as_me:$LINENO: result: kde test disabled" >&5
7329echo "${ECHO_T}kde test disabled" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007330fi
7331
7332if test "x$kde_config_prefix" != "x" ; then
Bram Moolenaar843ee412004-06-30 16:16:41 +00007333 KDE_CONFIG=$kde_config_prefix/bin/kde-config
7334fi
7335
7336if test "X$KDE_CONFIG" = "X"; then
7337 # Extract the first word of "kde-config", so it can be a program name with args.
7338set dummy kde-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007339echo "$as_me:$LINENO: checking for $ac_word" >&5
7340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7341if test "${ac_cv_path_KDE_CONFIG+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007343else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007344 case $KDE_CONFIG in
7345 [\\/]* | ?:[\\/]*)
Bram Moolenaar843ee412004-06-30 16:16:41 +00007346 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path.
7347 ;;
Bram Moolenaar843ee412004-06-30 16:16:41 +00007348 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350for as_dir in $PATH
7351do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356 ac_cv_path_KDE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360done
7361done
7362
Bram Moolenaar843ee412004-06-30 16:16:41 +00007363 test -z "$ac_cv_path_KDE_CONFIG" && ac_cv_path_KDE_CONFIG="no"
7364 ;;
7365esac
7366fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007367KDE_CONFIG=$ac_cv_path_KDE_CONFIG
7368
Bram Moolenaar843ee412004-06-30 16:16:41 +00007369if test -n "$KDE_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007370 echo "$as_me:$LINENO: result: $KDE_CONFIG" >&5
7371echo "${ECHO_T}$KDE_CONFIG" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007372else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007373 echo "$as_me:$LINENO: result: no" >&5
7374echo "${ECHO_T}no" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007375fi
7376
7377else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007378 echo "$as_me:$LINENO: result: Using KDE configuration program $KDE_CONFIG" >&5
7379echo "${ECHO_T}Using KDE configuration program $KDE_CONFIG" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007380fi
7381
7382if test "X$KDE_CONFIG" != "X" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007383
Bram Moolenaar843ee412004-06-30 16:16:41 +00007384 if test "X$KDE_CONFIG" != "X"; then
7385 min_kde_version=2.0.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007386 echo "$as_me:$LINENO: checking for KDE version >= $min_kde_version" >&5
7387echo $ECHO_N "checking for KDE version >= $min_kde_version... $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007388 no_kde=""
7389 if test "$KDE_CONFIG" = "no" ; then
7390 no_kde=yes
7391 else
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007392 KDE_PREFIX=`$KDE_CONFIG --prefix`
Bram Moolenaar843ee412004-06-30 16:16:41 +00007393 if test "x$KDE_LIBS" = "x"; then
7394 KDE_LIBS="$KDE_PREFIX/lib"
7395 fi
7396 if test "x$KDE_INCLUDES" = "x"; then
Bram Moolenaar592e0a22004-07-03 16:05:59 +00007397 KDE_INCLUDES="$KDE_PREFIX/include"
7398 if test -d "$KDE_INCLUDES/kde"; then
7399 KDE_INCLUDES="$KDE_INCLUDES/kde"
7400 fi
Bram Moolenaar843ee412004-06-30 16:16:41 +00007401 fi
7402 kde_major_version=`$KDE_CONFIG --version | grep KDE | \
7403sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'`
7404 kde_minor_version=`$KDE_CONFIG --version | grep KDE | \
7405sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007406
Bram Moolenaar843ee412004-06-30 16:16:41 +00007407 qt_major_version=`$KDE_CONFIG --version | grep Qt | sed -e \
7408's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'`
7409 qt_minor_version=`$KDE_CONFIG --version | grep Qt | sed -e \
7410's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'`
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007411
Bram Moolenaar843ee412004-06-30 16:16:41 +00007412 if test "x$enable-kdetest" = "xyes" ; then
7413 ac_save_LIBS="$LIBS"
7414 LIBS="$LIBS $KDE_LIBS"
7415
7416 if test "$cross_compiling" = yes; then
7417 echo $ac_n "cross compiling KDE ? ? how can i remove that ? :)"
7418else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007419 cat >conftest.$ac_ext <<_ACEOF
7420/* confdefs.h. */
7421_ACEOF
7422cat confdefs.h >>conftest.$ac_ext
7423cat >>conftest.$ac_ext <<_ACEOF
7424/* end confdefs.h. */
Bram Moolenaar843ee412004-06-30 16:16:41 +00007425
7426#include <stdio.h>
7427int
7428main()
7429{ return 0; }
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007430
7431_ACEOF
7432rm -f conftest$ac_exeext
7433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7434 (eval $ac_link) 2>&5
7435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 (eval $ac_try) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; }; then
Bram Moolenaar843ee412004-06-30 16:16:41 +00007443 :
7444else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007445 echo "$as_me: program exited with status $ac_status" >&5
7446echo "$as_me: failed program was:" >&5
7447sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar843ee412004-06-30 16:16:41 +00007448
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007449( exit $ac_status )
7450no_kde=yes
7451fi
7452rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7453fi
Bram Moolenaar843ee412004-06-30 16:16:41 +00007454 LIBS="$ac_save_LIBS"
7455 fi
7456 fi
7457 if test "x$no_kde" = x ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007458 echo "$as_me:$LINENO: result: found KDE $kde_major_version.$kde_minor_version" >&5
7459echo "${ECHO_T}found KDE $kde_major_version.$kde_minor_version" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007460 GUI_LIB_LOC="-L$KDE_LIBS -lkdeui -lkdecore -lDCOP"
7461 GUI_INC_LOC="-I$KDE_INCLUDES"
7462 KDEDIR="$KDE_PREFIX"
7463 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007464 echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007466 KDE_LIBS=""
7467 :
7468 fi
7469else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007470 echo "$as_me:$LINENO: result: no" >&5
7471echo "${ECHO_T}no" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007472 KDE_LIBS=""
7473 :
7474fi
7475
7476
7477
7478
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007479
Bram Moolenaar843ee412004-06-30 16:16:41 +00007480 if test "x$KDE_PREFIX" != "x"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007481 echo "$as_me:$LINENO: checking for QT version $qt_major_version.x" >&5
7482echo $ECHO_N "checking for QT version $qt_major_version.x... $ECHO_C" >&6
Bram Moolenaar843ee412004-06-30 16:16:41 +00007483 if test "x$ROOTQT" != "x" ; then
7484 GUI_INC_LOC="-I$QT_INCLUDES $GUI_INC_LOC"
7485 if test $qt_major_version -lt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007486 { { echo "$as_me:$LINENO: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" >&5
7487echo "$as_me: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" >&2;}
7488 { (exit 1); exit 1; }; }
Bram Moolenaar843ee412004-06-30 16:16:41 +00007489 fi
7490 if test "`(uname) 2>/dev/null`" = "FreeBSD"; then
7491 CFLAGS="$CFLAGS -D_THREAD_SAFE"
7492 CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE"
7493 GUI_LIB_LOC="$GUI_LIB_LOC -pthread"
7494 LIBS="$LIBS -pthread"
7495 fi
7496
7497 if test "x$enable_rpath" = "xyes"; then
7498 if test $qt_major_version = 2; then
7499 GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC \
7500-Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS"
7501 else
7502 GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC \
7503-Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS"
7504 fi
7505 else
7506 if test $qt_major_version = 2; then
7507 GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC"
7508 else
7509 GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC"
7510 fi
7511 fi
7512
7513 GUI_INC_LOC="`echo $GUI_INC_LOC\ | sed 's%-I/usr/include %%'`"
7514
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007515 echo "$as_me:$LINENO: result: found $qt_major_version.$qt_minor_version in $ROOTQT" >&5
7516echo "${ECHO_T}found $qt_major_version.$qt_minor_version in $ROOTQT" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007517
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007518
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007519 qt_incdir=NO
7520 for i in $QT_INCLUDES;
7521 do
7522 for j in qstyle.h;
7523 do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007524 echo "configure: 7524: $i/$j" >&5
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007525 if test -r "$i/$j"; then
7526 echo "taking that" >&5
7527 qt_incdir=$i
7528 break 2
7529 fi
7530 done
7531 done
7532
7533 if test "x$qt_incdir" = "xNO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007534 { { echo "$as_me:$LINENO: error: Could not find Qt headers in $QT_INCLUDES" >&5
7535echo "$as_me: error: Could not find Qt headers in $QT_INCLUDES" >&2;}
7536 { (exit 1); exit 1; }; }
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007537 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007538
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007539 kde_incdir=NO
7540 for i in $KDE_INCLUDES;
7541 do
7542 for j in kapplication.h;
7543 do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007544 echo "configure: 7544: $i/$j" >&5
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007545 if test -r "$i/$j"; then
7546 echo "taking that" >&5
7547 kde_incdir=$i
7548 break 2
7549 fi
7550 done
7551 done
7552
7553 if test "x$kde_incdir" = "xNO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007554 { { echo "$as_me:$LINENO: error: Could not find KDE headers in $KDE_INCLUDES" >&5
7555echo "$as_me: error: Could not find KDE headers in $KDE_INCLUDES" >&2;}
7556 { (exit 1); exit 1; }; }
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007557 fi
7558
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007559
7560
7561 ac_ext=cc
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007562ac_cpp='$CXXCPP $CPPFLAGS'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7566
7567 ac_ext=cc
7568ac_cpp='$CXXCPP $CPPFLAGS'
7569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7572if test -n "$ac_tool_prefix"; then
7573 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7574 do
7575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7576set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7577echo "$as_me:$LINENO: checking for $ac_word" >&5
7578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7579if test "${ac_cv_prog_CXX+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581else
7582 if test -n "$CXX"; then
7583 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7584else
7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7595 fi
7596done
7597done
7598
7599fi
7600fi
7601CXX=$ac_cv_prog_CXX
7602if test -n "$CXX"; then
7603 echo "$as_me:$LINENO: result: $CXX" >&5
7604echo "${ECHO_T}$CXX" >&6
7605else
7606 echo "$as_me:$LINENO: result: no" >&5
7607echo "${ECHO_T}no" >&6
7608fi
7609
7610 test -n "$CXX" && break
7611 done
7612fi
7613if test -z "$CXX"; then
7614 ac_ct_CXX=$CXX
7615 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7616do
7617 # Extract the first word of "$ac_prog", so it can be a program name with args.
7618set dummy $ac_prog; ac_word=$2
7619echo "$as_me:$LINENO: checking for $ac_word" >&5
7620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7621if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623else
7624 if test -n "$ac_ct_CXX"; then
7625 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7626else
7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_ac_ct_CXX="$ac_prog"
7635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638done
7639done
7640
7641fi
7642fi
7643ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7644if test -n "$ac_ct_CXX"; then
7645 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7646echo "${ECHO_T}$ac_ct_CXX" >&6
7647else
7648 echo "$as_me:$LINENO: result: no" >&5
7649echo "${ECHO_T}no" >&6
7650fi
7651
7652 test -n "$ac_ct_CXX" && break
7653done
7654test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7655
7656 CXX=$ac_ct_CXX
7657fi
7658
7659
7660# Provide some information about the compiler.
7661echo "$as_me:$LINENO:" \
7662 "checking for C++ compiler version" >&5
7663ac_compiler=`set X $ac_compile; echo $2`
7664{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7665 (eval $ac_compiler --version </dev/null >&5) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }
7669{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7670 (eval $ac_compiler -v </dev/null >&5) 2>&5
7671 ac_status=$?
7672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673 (exit $ac_status); }
7674{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7675 (eval $ac_compiler -V </dev/null >&5) 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }
7679
7680echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7681echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7682if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7684else
7685 cat >conftest.$ac_ext <<_ACEOF
7686/* confdefs.h. */
7687_ACEOF
7688cat confdefs.h >>conftest.$ac_ext
7689cat >>conftest.$ac_ext <<_ACEOF
7690/* end confdefs.h. */
7691
7692int
7693main ()
7694{
7695#ifndef __GNUC__
7696 choke me
7697#endif
7698
7699 ;
7700 return 0;
7701}
7702_ACEOF
7703rm -f conftest.$ac_objext
7704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7705 (eval $ac_compile) 2>conftest.er1
7706 ac_status=$?
7707 grep -v '^ *+' conftest.er1 >conftest.err
7708 rm -f conftest.er1
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -z "$ac_cxx_werror_flag"
7713 || test ! -s conftest.err'
7714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 (eval $ac_try) 2>&5
7716 ac_status=$?
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); }; } &&
7719 { ac_try='test -s conftest.$ac_objext'
7720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7721 (eval $ac_try) 2>&5
7722 ac_status=$?
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 ac_compiler_gnu=yes
7726else
7727 echo "$as_me: failed program was:" >&5
7728sed 's/^/| /' conftest.$ac_ext >&5
7729
7730ac_compiler_gnu=no
7731fi
7732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7733ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7734
7735fi
7736echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7737echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7738GXX=`test $ac_compiler_gnu = yes && echo yes`
7739ac_test_CXXFLAGS=${CXXFLAGS+set}
7740ac_save_CXXFLAGS=$CXXFLAGS
7741CXXFLAGS="-g"
7742echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7743echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7744if test "${ac_cv_prog_cxx_g+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747 cat >conftest.$ac_ext <<_ACEOF
7748/* confdefs.h. */
7749_ACEOF
7750cat confdefs.h >>conftest.$ac_ext
7751cat >>conftest.$ac_ext <<_ACEOF
7752/* end confdefs.h. */
7753
7754int
7755main ()
7756{
7757
7758 ;
7759 return 0;
7760}
7761_ACEOF
7762rm -f conftest.$ac_objext
7763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7764 (eval $ac_compile) 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } &&
7771 { ac_try='test -z "$ac_cxx_werror_flag"
7772 || test ! -s conftest.err'
7773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7774 (eval $ac_try) 2>&5
7775 ac_status=$?
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; } &&
7778 { ac_try='test -s conftest.$ac_objext'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7780 (eval $ac_try) 2>&5
7781 ac_status=$?
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; }; then
7784 ac_cv_prog_cxx_g=yes
7785else
7786 echo "$as_me: failed program was:" >&5
7787sed 's/^/| /' conftest.$ac_ext >&5
7788
7789ac_cv_prog_cxx_g=no
7790fi
7791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7792fi
7793echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7794echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7795if test "$ac_test_CXXFLAGS" = set; then
7796 CXXFLAGS=$ac_save_CXXFLAGS
7797elif test $ac_cv_prog_cxx_g = yes; then
7798 if test "$GXX" = yes; then
7799 CXXFLAGS="-g -O2"
7800 else
7801 CXXFLAGS="-g"
7802 fi
7803else
7804 if test "$GXX" = yes; then
7805 CXXFLAGS="-O2"
7806 else
7807 CXXFLAGS=
7808 fi
7809fi
7810for ac_declaration in \
7811 '' \
7812 'extern "C" void std::exit (int) throw (); using std::exit;' \
7813 'extern "C" void std::exit (int); using std::exit;' \
7814 'extern "C" void exit (int) throw ();' \
7815 'extern "C" void exit (int);' \
7816 'void exit (int);'
7817do
7818 cat >conftest.$ac_ext <<_ACEOF
7819/* confdefs.h. */
7820_ACEOF
7821cat confdefs.h >>conftest.$ac_ext
7822cat >>conftest.$ac_ext <<_ACEOF
7823/* end confdefs.h. */
7824$ac_declaration
7825#include <stdlib.h>
7826int
7827main ()
7828{
7829exit (42);
7830 ;
7831 return 0;
7832}
7833_ACEOF
7834rm -f conftest.$ac_objext
7835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7836 (eval $ac_compile) 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -z "$ac_cxx_werror_flag"
7844 || test ! -s conftest.err'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; } &&
7850 { ac_try='test -s conftest.$ac_objext'
7851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 (eval $ac_try) 2>&5
7853 ac_status=$?
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; }; then
7856 :
7857else
7858 echo "$as_me: failed program was:" >&5
7859sed 's/^/| /' conftest.$ac_ext >&5
7860
7861continue
7862fi
7863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7864 cat >conftest.$ac_ext <<_ACEOF
7865/* confdefs.h. */
7866_ACEOF
7867cat confdefs.h >>conftest.$ac_ext
7868cat >>conftest.$ac_ext <<_ACEOF
7869/* end confdefs.h. */
7870$ac_declaration
7871int
7872main ()
7873{
7874exit (42);
7875 ;
7876 return 0;
7877}
7878_ACEOF
7879rm -f conftest.$ac_objext
7880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7881 (eval $ac_compile) 2>conftest.er1
7882 ac_status=$?
7883 grep -v '^ *+' conftest.er1 >conftest.err
7884 rm -f conftest.er1
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } &&
7888 { ac_try='test -z "$ac_cxx_werror_flag"
7889 || test ! -s conftest.err'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; } &&
7895 { ac_try='test -s conftest.$ac_objext'
7896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }; }; then
7901 break
7902else
7903 echo "$as_me: failed program was:" >&5
7904sed 's/^/| /' conftest.$ac_ext >&5
7905
7906fi
7907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7908done
7909rm -f conftest*
7910if test -n "$ac_declaration"; then
7911 echo '#ifdef __cplusplus' >>confdefs.h
7912 echo $ac_declaration >>confdefs.h
7913 echo '#endif' >>confdefs.h
7914fi
7915
7916ac_ext=cc
7917ac_cpp='$CXXCPP $CPPFLAGS'
7918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007921
7922 ac_save_LIBS="$LIBS"
7923 LIBS="$GUI_LIB_LOC"
7924 ac_save_CXXFLAGS="$CXXFLAGS"
7925 CXXFLAGS="$CXXFLAGS $GUI_INC_LOC"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007926 echo "$as_me:$LINENO: checking whether Qt libraries are usable" >&5
7927echo $ECHO_N "checking whether Qt libraries are usable... $ECHO_C" >&6
7928
7929cat >conftest.$ac_ext <<_ACEOF
7930/* confdefs.h. */
7931_ACEOF
7932cat confdefs.h >>conftest.$ac_ext
7933cat >>conftest.$ac_ext <<_ACEOF
7934/* end confdefs.h. */
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007935#include <qapplication.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007936int
7937main ()
7938{
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007939
7940 int argc;
7941 char** argv;
7942 QApplication app(argc, argv);
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007943
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007944 ;
7945 return 0;
7946}
7947_ACEOF
7948rm -f conftest.$ac_objext conftest$ac_exeext
7949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7950 (eval $ac_link) 2>conftest.er1
7951 ac_status=$?
7952 grep -v '^ *+' conftest.er1 >conftest.err
7953 rm -f conftest.er1
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } &&
7957 { ac_try='test -z "$ac_cxx_werror_flag"
7958 || test ! -s conftest.err'
7959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960 (eval $ac_try) 2>&5
7961 ac_status=$?
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; } &&
7964 { ac_try='test -s conftest$ac_exeext'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7966 (eval $ac_try) 2>&5
7967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 echo "$as_me:$LINENO: result: yes" >&5
7971echo "${ECHO_T}yes" >&6
7972else
7973 echo "$as_me: failed program was:" >&5
7974sed 's/^/| /' conftest.$ac_ext >&5
7975
7976echo "$as_me:$LINENO: result: no" >&5
7977echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: Qt fails to link a simple application" >&5
7978echo "$as_me: error: Qt fails to link a simple application" >&2;}
7979 { (exit check your installation and settings); exit check your installation and settings; }; }
7980fi
7981rm -f conftest.err conftest.$ac_objext \
7982 conftest$ac_exeext conftest.$ac_ext
7983
7984 echo "$as_me:$LINENO: checking whether KDE libraries are usable" >&5
7985echo $ECHO_N "checking whether KDE libraries are usable... $ECHO_C" >&6
7986 cat >conftest.$ac_ext <<_ACEOF
7987/* confdefs.h. */
7988_ACEOF
7989cat confdefs.h >>conftest.$ac_ext
7990cat >>conftest.$ac_ext <<_ACEOF
7991/* end confdefs.h. */
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007992#include <kapplication.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00007993int
7994main ()
7995{
Bram Moolenaar325b7a22004-07-05 15:58:32 +00007996
7997 int argc;
7998 char** argv;
7999 KApplication app(argc, argv);
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008000
8001 ;
8002 return 0;
8003}
8004_ACEOF
8005rm -f conftest.$ac_objext conftest$ac_exeext
8006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007 (eval $ac_link) 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } &&
8014 { ac_try='test -z "$ac_cxx_werror_flag"
8015 || test ! -s conftest.err'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017 (eval $ac_try) 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; } &&
8021 { ac_try='test -s conftest$ac_exeext'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 echo "$as_me:$LINENO: result: yes" >&5
8028echo "${ECHO_T}yes" >&6
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008029else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008030 echo "$as_me: failed program was:" >&5
8031sed 's/^/| /' conftest.$ac_ext >&5
8032
8033echo "$as_me:$LINENO: result: no" >&5
8034echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: KDE fails to link a simple application" >&5
8035echo "$as_me: error: KDE fails to link a simple application" >&2;}
8036 { (exit check your installation and settings); exit check your installation and settings; }; }
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008037fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008038rm -f conftest.err conftest.$ac_objext \
8039 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008040
8041 LIBS="$ac_save_LIBS"
8042 CXXFLAGS="$ac_save_CXXFLAGS"
8043 ac_ext=c
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008044ac_cpp='$CPP $CPPFLAGS'
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8047ac_compiler_gnu=$ac_cv_c_compiler_gnu
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008048
8049
8050
Bram Moolenaar843ee412004-06-30 16:16:41 +00008051 SKIP_GTK=YES
8052 SKIP_ATHENA=YES
8053 SKIP_MOTIF=YES
8054 GUITYPE=KDE
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008055
8056
8057
8058
8059
8060 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar843ee412004-06-30 16:16:41 +00008061#define FEAT_GUI_KDE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008062_ACEOF
Bram Moolenaar843ee412004-06-30 16:16:41 +00008063
8064 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008065 { { echo "$as_me:$LINENO: error: Detected QT version mismatched" >&5
8066echo "$as_me: error: Detected QT version mismatched" >&2;}
8067 { (exit 1); exit 1; }; }
Bram Moolenaar843ee412004-06-30 16:16:41 +00008068 fi
8069 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008070 { { echo "$as_me:$LINENO: error: Could not find KDE installation prefix" >&5
8071echo "$as_me: error: Could not find KDE installation prefix" >&2;}
8072 { (exit 1); exit 1; }; }
Bram Moolenaar843ee412004-06-30 16:16:41 +00008073 fi
8074fi
8075fi
8076
Bram Moolenaar071d4272004-06-13 20:20:40 +00008077if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008078 echo "$as_me:$LINENO: checking for Carbon GUI" >&5
8079echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6
8080 echo "$as_me:$LINENO: result: yes" >&5
8081echo "${ECHO_T}yes" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008082 GUITYPE=CARBONGUI
8083 SKIP_GTK=YES;
8084 SKIP_GTK2=YES;
8085 SKIP_GNOME=YES;
8086 SKIP_MOTIF=YES;
8087 SKIP_ATHENA=YES;
8088 SKIP_NEXTAW=YES;
8089 SKIP_PHOTON=YES;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008090 SKIP_CARBON=YES
8091fi
8092
8093
8094
8095
8096
8097
8098
8099
8100
Bram Moolenaar071d4272004-06-13 20:20:40 +00008101if test -z "$SKIP_GTK"; then
8102
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008103 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5
8104echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6
8105
8106# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008107if test "${with_gtk_prefix+set}" = set; then
8108 withval="$with_gtk_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008109 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8110echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008111else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008112 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5
8113echo "${ECHO_T}no" >&6
8114fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008115
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008116 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5
8117echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008118
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008119# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008120if test "${with_gtk_exec_prefix+set}" = set; then
8121 withval="$with_gtk_exec_prefix"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008122 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5
8123echo "${ECHO_T}$gtk_config_prefix" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008124else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008125 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5
8126echo "${ECHO_T}no" >&6
8127fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008128
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008129 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5
8130echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008131 # Check whether --enable-gtktest or --disable-gtktest was given.
8132if test "${enable_gtktest+set}" = set; then
8133 enableval="$enable_gtktest"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008134
Bram Moolenaar071d4272004-06-13 20:20:40 +00008135else
8136 enable_gtktest=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008137fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008138 if test "x$enable_gtktest" = "xyes" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008139 echo "$as_me:$LINENO: result: gtk test enabled" >&5
8140echo "${ECHO_T}gtk test enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008141 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008142 echo "$as_me:$LINENO: result: gtk test disabled" >&5
8143echo "${ECHO_T}gtk test disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008144 fi
8145
8146 if test "x$gtk_config_prefix" != "x" ; then
8147 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8148 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8149 fi
8150 if test "x$gtk_config_exec_prefix" != "x" ; then
8151 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8152 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8153 fi
8154 if test "X$GTK_CONFIG" = "X"; then
8155 # Extract the first word of "gtk-config", so it can be a program name with args.
8156set dummy gtk-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008157echo "$as_me:$LINENO: checking for $ac_word" >&5
8158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8159if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008161else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008162 case $GTK_CONFIG in
8163 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00008164 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8165 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008166 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168for as_dir in $PATH
8169do
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8177 fi
8178done
8179done
8180
Bram Moolenaar071d4272004-06-13 20:20:40 +00008181 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8182 ;;
8183esac
8184fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008185GTK_CONFIG=$ac_cv_path_GTK_CONFIG
8186
Bram Moolenaar071d4272004-06-13 20:20:40 +00008187if test -n "$GTK_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008188 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
8189echo "${ECHO_T}$GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008190else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008191 echo "$as_me:$LINENO: result: no" >&5
8192echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008193fi
8194
8195 if test "X$GTK_CONFIG" = "Xno"; then
8196 # Extract the first word of "gtk12-config", so it can be a program name with args.
8197set dummy gtk12-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008198echo "$as_me:$LINENO: checking for $ac_word" >&5
8199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8200if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then
8201 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008202else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008203 case $GTK12_CONFIG in
8204 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00008205 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path.
8206 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008207 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209for as_dir in $PATH
8210do
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8215 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8217 break 2
8218 fi
8219done
8220done
8221
Bram Moolenaar071d4272004-06-13 20:20:40 +00008222 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no"
8223 ;;
8224esac
8225fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008226GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG
8227
Bram Moolenaar071d4272004-06-13 20:20:40 +00008228if test -n "$GTK12_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008229 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5
8230echo "${ECHO_T}$GTK12_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008231else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008232 echo "$as_me:$LINENO: result: no" >&5
8233echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008234fi
8235
8236 GTK_CONFIG="$GTK12_CONFIG"
8237 fi
8238 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008239 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5
8240echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008241 fi
8242 if test "X$PKG_CONFIG" = "X"; then
8243 # Extract the first word of "pkg-config", so it can be a program name with args.
8244set dummy pkg-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008245echo "$as_me:$LINENO: checking for $ac_word" >&5
8246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8247if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008249else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008250 case $PKG_CONFIG in
8251 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00008252 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8253 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008254 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256for as_dir in $PATH
8257do
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8265 fi
8266done
8267done
8268
Bram Moolenaar071d4272004-06-13 20:20:40 +00008269 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8270 ;;
8271esac
8272fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008273PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8274
Bram Moolenaar071d4272004-06-13 20:20:40 +00008275if test -n "$PKG_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008276 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8277echo "${ECHO_T}$PKG_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008278else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008279 echo "$as_me:$LINENO: result: no" >&5
8280echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008281fi
8282
8283 fi
8284
8285 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then
8286 if test "X$SKIP_GTK2" != "XYES"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008287
Bram Moolenaar071d4272004-06-13 20:20:40 +00008288 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8289 {
8290 min_gtk_version=2.2.0
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008291 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8292echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008293 no_gtk=""
8294 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8295 && $PKG_CONFIG --exists gtk+-2.0; then
8296 {
8297 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00008298 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00008299 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8300 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8301 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8302 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8303 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8304 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8305 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8306 }
8307 elif test "X$GTK_CONFIG" != "Xno"; then
8308 {
8309 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00008310 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00008311 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8312 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8313 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8314 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8315 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8316 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8317 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8318 }
8319 else
8320 no_gtk=yes
8321 fi
8322
8323 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8324 {
8325 ac_save_CFLAGS="$CFLAGS"
8326 ac_save_LIBS="$LIBS"
8327 CFLAGS="$CFLAGS $GTK_CFLAGS"
8328 LIBS="$LIBS $GTK_LIBS"
8329
8330 rm -f conf.gtktest
8331 if test "$cross_compiling" = yes; then
8332 echo $ac_n "cross compiling; assumed OK... $ac_c"
8333else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008334 cat >conftest.$ac_ext <<_ACEOF
8335/* confdefs.h. */
8336_ACEOF
8337cat confdefs.h >>conftest.$ac_ext
8338cat >>conftest.$ac_ext <<_ACEOF
8339/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008340
8341#include <gtk/gtk.h>
8342#include <stdio.h>
8343
8344int
8345main ()
8346{
8347int major, minor, micro;
8348char *tmp_version;
8349
8350system ("touch conf.gtktest");
8351
8352/* HP/UX 9 (%@#!) writes to sscanf strings */
8353tmp_version = g_strdup("$min_gtk_version");
8354if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8355 printf("%s, bad version string\n", "$min_gtk_version");
8356 exit(1);
8357 }
8358
8359if ((gtk_major_version > major) ||
8360 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8361 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8362 (gtk_micro_version >= micro)))
8363{
8364 return 0;
8365}
8366return 1;
8367}
8368
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008369_ACEOF
8370rm -f conftest$ac_exeext
8371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8377 (eval $ac_try) 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008381 :
8382else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008383 echo "$as_me: program exited with status $ac_status" >&5
8384echo "$as_me: failed program was:" >&5
8385sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008386
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008387( exit $ac_status )
8388no_gtk=yes
8389fi
8390rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8391fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00008392 CFLAGS="$ac_save_CFLAGS"
8393 LIBS="$ac_save_LIBS"
8394 }
8395 fi
8396 if test "x$no_gtk" = x ; then
8397 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008398 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8399echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008400 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008401 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8402echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008403 fi
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00008404 GUI_LIB_LOC="$GTK_LIBDIR"
8405 GTK_LIBNAME="$GTK_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00008406 GUI_INC_LOC="$GTK_CFLAGS"
8407 else
8408 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008409 echo "$as_me:$LINENO: result: no" >&5
8410echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008411 GTK_CFLAGS=""
8412 GTK_LIBS=""
8413 :
8414 }
8415 fi
8416 }
8417 else
8418 GTK_CFLAGS=""
8419 GTK_LIBS=""
8420 :
8421 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008422
8423
Bram Moolenaar071d4272004-06-13 20:20:40 +00008424 rm -f conf.gtktest
8425
8426 if test "x$GTK_CFLAGS" != "x"; then
8427 SKIP_ATHENA=YES
8428 SKIP_NEXTAW=YES
8429 SKIP_MOTIF=YES
8430 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008431
Bram Moolenaar071d4272004-06-13 20:20:40 +00008432 fi
8433 fi
8434
8435 if test "x$GUITYPE" != "xGTK"; then
8436 SKIP_GTK2=YES
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008437
Bram Moolenaar071d4272004-06-13 20:20:40 +00008438 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then
8439 {
8440 min_gtk_version=1.1.16
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008441 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
8442echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008443 no_gtk=""
8444 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \
8445 && $PKG_CONFIG --exists gtk+-2.0; then
8446 {
8447 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00008448 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0`
Bram Moolenaar071d4272004-06-13 20:20:40 +00008449 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0`
8450 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8451 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8452 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8453 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8454 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
8455 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8456 }
8457 elif test "X$GTK_CONFIG" != "Xno"; then
8458 {
8459 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
Bram Moolenaar7b0294c2004-10-11 10:16:09 +00008460 GTK_LIBDIR=
Bram Moolenaar071d4272004-06-13 20:20:40 +00008461 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8462 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8463 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
8464 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8465 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
8466 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8467 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
8468 }
8469 else
8470 no_gtk=yes
8471 fi
8472
8473 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then
8474 {
8475 ac_save_CFLAGS="$CFLAGS"
8476 ac_save_LIBS="$LIBS"
8477 CFLAGS="$CFLAGS $GTK_CFLAGS"
8478 LIBS="$LIBS $GTK_LIBS"
8479
8480 rm -f conf.gtktest
8481 if test "$cross_compiling" = yes; then
8482 echo $ac_n "cross compiling; assumed OK... $ac_c"
8483else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008484 cat >conftest.$ac_ext <<_ACEOF
8485/* confdefs.h. */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008490
8491#include <gtk/gtk.h>
8492#include <stdio.h>
8493
8494int
8495main ()
8496{
8497int major, minor, micro;
8498char *tmp_version;
8499
8500system ("touch conf.gtktest");
8501
8502/* HP/UX 9 (%@#!) writes to sscanf strings */
8503tmp_version = g_strdup("$min_gtk_version");
8504if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8505 printf("%s, bad version string\n", "$min_gtk_version");
8506 exit(1);
8507 }
8508
8509if ((gtk_major_version > major) ||
8510 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8511 ((gtk_major_version == major) && (gtk_minor_version == minor) &&
8512 (gtk_micro_version >= micro)))
8513{
8514 return 0;
8515}
8516return 1;
8517}
8518
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008519_ACEOF
8520rm -f conftest$ac_exeext
8521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8522 (eval $ac_link) 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 (eval $ac_try) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00008531 :
8532else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008533 echo "$as_me: program exited with status $ac_status" >&5
8534echo "$as_me: failed program was:" >&5
8535sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00008536
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008537( exit $ac_status )
8538no_gtk=yes
8539fi
8540rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8541fi
Bram Moolenaar071d4272004-06-13 20:20:40 +00008542 CFLAGS="$ac_save_CFLAGS"
8543 LIBS="$ac_save_LIBS"
8544 }
8545 fi
8546 if test "x$no_gtk" = x ; then
8547 if test "x$enable_gtktest" = "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008548 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8549echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008550 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008551 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5
8552echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008553 fi
8554 GTK_LIBNAME="$GTK_LIBS"
8555 GUI_INC_LOC="$GTK_CFLAGS"
8556 else
8557 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008558 echo "$as_me:$LINENO: result: no" >&5
8559echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008560 GTK_CFLAGS=""
8561 GTK_LIBS=""
8562 :
8563 }
8564 fi
8565 }
8566 else
8567 GTK_CFLAGS=""
8568 GTK_LIBS=""
8569 :
8570 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008571
8572
Bram Moolenaar071d4272004-06-13 20:20:40 +00008573 rm -f conf.gtktest
8574
8575 if test "x$GTK_CFLAGS" != "x"; then
8576 SKIP_ATHENA=YES
8577 SKIP_NEXTAW=YES
8578 SKIP_MOTIF=YES
8579 GUITYPE=GTK
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008580
Bram Moolenaar071d4272004-06-13 20:20:40 +00008581 fi
8582 fi
8583 fi
8584 if test "x$GUITYPE" = "xGTK"; then
8585 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \
8586 -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 +00008587 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5
8588echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008589 else
8590 {
8591 if test "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008592 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008593#define HAVE_GTK2 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008594_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008595
8596 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \
8597 || test "0$gtk_minor_version" -ge 2 \
8598 || test "0$gtk_major_version" -gt 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008599 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008600#define HAVE_GTK_MULTIHEAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008601_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008602
8603 fi
8604 fi
8605 if test -z "$SKIP_GNOME"; then
8606 {
Bram Moolenaar071d4272004-06-13 20:20:40 +00008607
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008608
8609
8610
8611
8612
8613# Check whether --with-gnome-includes or --without-gnome-includes was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008614if test "${with_gnome_includes+set}" = set; then
8615 withval="$with_gnome_includes"
8616 CFLAGS="$CFLAGS -I$withval"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008617
8618fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008619
8620
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008621# Check whether --with-gnome-libs or --without-gnome-libs was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008622if test "${with_gnome_libs+set}" = set; then
8623 withval="$with_gnome_libs"
8624 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008625
8626fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008627
8628
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008629# Check whether --with-gnome or --without-gnome was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008630if test "${with_gnome+set}" = set; then
8631 withval="$with_gnome"
8632 if test x$withval = xyes; then
8633 want_gnome=yes
8634 have_gnome=yes
8635 else
8636 if test "x$withval" = xno; then
8637 want_gnome=no
8638 else
8639 want_gnome=yes
8640 LDFLAGS="$LDFLAGS -L$withval/lib"
8641 CFLAGS="$CFLAGS -I$withval/include"
8642 gnome_prefix=$withval/lib
8643 fi
8644 fi
8645else
8646 want_gnome=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008647fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008648
8649 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then
8650 {
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008651 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5
8652echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008653 if $PKG_CONFIG --exists libgnomeui-2.0; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008654 echo "$as_me:$LINENO: result: yes" >&5
8655echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008656 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0`
8657 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0`
8658 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0`
8659 have_gnome=yes
8660 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008661 echo "$as_me:$LINENO: result: not found" >&5
8662echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008663 if test "x" = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008664 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5
8665echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;}
8666 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00008667 fi
8668 fi
8669 }
8670 elif test "x$want_gnome" = xyes; then
8671 {
8672 # Extract the first word of "gnome-config", so it can be a program name with args.
8673set dummy gnome-config; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008674echo "$as_me:$LINENO: checking for $ac_word" >&5
8675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8676if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008678else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008679 case $GNOME_CONFIG in
8680 [\\/]* | ?:[\\/]*)
Bram Moolenaar071d4272004-06-13 20:20:40 +00008681 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
8682 ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008683 *)
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685for as_dir in $PATH
8686do
8687 IFS=$as_save_IFS
8688 test -z "$as_dir" && as_dir=.
8689 for ac_exec_ext in '' $ac_executable_extensions; do
8690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8691 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 break 2
8694 fi
8695done
8696done
8697
Bram Moolenaar071d4272004-06-13 20:20:40 +00008698 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
8699 ;;
8700esac
8701fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008702GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
8703
Bram Moolenaar071d4272004-06-13 20:20:40 +00008704if test -n "$GNOME_CONFIG"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008705 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
8706echo "${ECHO_T}$GNOME_CONFIG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008707else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008708 echo "$as_me:$LINENO: result: no" >&5
8709echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008710fi
8711
8712 if test "$GNOME_CONFIG" = "no"; then
8713 no_gnome_config="yes"
8714 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008715 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
8716echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008717 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008718 echo "$as_me:$LINENO: result: yes" >&5
8719echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008720 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`"
8721 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
8722 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
8723 have_gnome=yes
8724 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008725 echo "$as_me:$LINENO: result: no" >&5
8726echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008727 no_gnome_config="yes"
8728 fi
8729 fi
8730
8731 if test x$exec_prefix = xNONE; then
8732 if test x$prefix = xNONE; then
8733 gnome_prefix=$ac_default_prefix/lib
8734 else
8735 gnome_prefix=$prefix/lib
8736 fi
8737 else
8738 gnome_prefix=`eval echo \`echo $libdir\``
8739 fi
8740
8741 if test "$no_gnome_config" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008742 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
8743echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008744 if test -f $gnome_prefix/gnomeConf.sh; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008745 echo "$as_me:$LINENO: result: found" >&5
8746echo "${ECHO_T}found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008747 echo "loading gnome configuration from" \
8748 "$gnome_prefix/gnomeConf.sh"
8749 . $gnome_prefix/gnomeConf.sh
8750 have_gnome=yes
8751 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008752 echo "$as_me:$LINENO: result: not found" >&5
8753echo "${ECHO_T}not found" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008754 if test x = xfail; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008755 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
8756echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
8757 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00008758 fi
8759 fi
8760 fi
8761 }
8762 fi
8763
8764 if test x$have_gnome = xyes ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008765 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008766#define FEAT_GUI_GNOME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008767_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00008768
8769 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR"
8770 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS"
8771 fi
8772 }
8773 fi
8774 }
8775 fi
8776 fi
8777fi
8778
8779
8780if test -z "$SKIP_MOTIF"; then
8781 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"
8782 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`"
8783
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008784 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5
8785echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008786 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC"
8787 GUI_INC_LOC=
8788 for try in $gui_includes; do
8789 if test -f "$try/Xm/Xm.h"; then
8790 GUI_INC_LOC=$try
8791 fi
8792 done
8793 if test -n "$GUI_INC_LOC"; then
8794 if test "$GUI_INC_LOC" = /usr/include; then
8795 GUI_INC_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008796 echo "$as_me:$LINENO: result: in default path" >&5
8797echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008798 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008799 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5
8800echo "${ECHO_T}$GUI_INC_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008801 fi
8802 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008803 echo "$as_me:$LINENO: result: <not found>" >&5
8804echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008805 SKIP_MOTIF=YES
8806 fi
8807fi
8808
8809
8810if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008811 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5
8812echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6
8813
8814# Check whether --with-motif-lib or --without-motif-lib was given.
Bram Moolenaar071d4272004-06-13 20:20:40 +00008815if test "${with_motif_lib+set}" = set; then
8816 withval="$with_motif_lib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008817 MOTIF_LIBNAME="${withval}"
8818fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +00008819
8820 if test -n "$MOTIF_LIBNAME"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008821 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5
8822echo "${ECHO_T}$MOTIF_LIBNAME" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008823 GUI_LIB_LOC=
8824 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008827
8828 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`"
8829
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008830 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5
8831echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008832 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"
8833 GUI_LIB_LOC=
8834 for try in $gui_libs; do
Bram Moolenaar325b7a22004-07-05 15:58:32 +00008835 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do
Bram Moolenaar071d4272004-06-13 20:20:40 +00008836 if test -f "$libtry"; then
8837 GUI_LIB_LOC=$try
8838 fi
8839 done
8840 done
8841 if test -n "$GUI_LIB_LOC"; then
8842 if test "$GUI_LIB_LOC" = /usr/lib; then
8843 GUI_LIB_LOC=
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008844 echo "$as_me:$LINENO: result: in default path" >&5
8845echo "${ECHO_T}in default path" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008846 else
8847 if test -n "$GUI_LIB_LOC"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008848 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5
8849echo "${ECHO_T}$GUI_LIB_LOC" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008850 if test "`(uname) 2>/dev/null`" = SunOS &&
8851 uname -r | grep '^5' >/dev/null; then
8852 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC"
8853 fi
8854 fi
8855 fi
8856 MOTIF_LIBNAME=-lXm
8857 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008858 echo "$as_me:$LINENO: result: <not found>" >&5
8859echo "${ECHO_T}<not found>" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008860 SKIP_MOTIF=YES
8861 fi
8862 fi
8863fi
8864
8865if test -z "$SKIP_MOTIF"; then
8866 SKIP_ATHENA=YES
8867 SKIP_NEXTAW=YES
8868 GUITYPE=MOTIF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008869
Bram Moolenaar071d4272004-06-13 20:20:40 +00008870fi
8871
8872
8873GUI_X_LIBS=
8874
8875if test -z "$SKIP_ATHENA"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008876 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5
8877echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008878 cflags_save=$CFLAGS
8879 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008880 cat >conftest.$ac_ext <<_ACEOF
8881/* confdefs.h. */
8882_ACEOF
8883cat confdefs.h >>conftest.$ac_ext
8884cat >>conftest.$ac_ext <<_ACEOF
8885/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008886
8887#include <X11/Intrinsic.h>
8888#include <X11/Xaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008889int
8890main ()
8891{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008892
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008893 ;
8894 return 0;
8895}
8896_ACEOF
8897rm -f conftest.$ac_objext
8898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8899 (eval $ac_compile) 2>conftest.er1
8900 ac_status=$?
8901 grep -v '^ *+' conftest.er1 >conftest.err
8902 rm -f conftest.er1
8903 cat conftest.err >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } &&
8906 { ac_try='test -z "$ac_c_werror_flag"
8907 || test ! -s conftest.err'
8908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909 (eval $ac_try) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); }; } &&
8913 { ac_try='test -s conftest.$ac_objext'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 (eval $ac_try) 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
8919 echo "$as_me:$LINENO: result: yes" >&5
8920echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008921else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008922 echo "$as_me: failed program was:" >&5
8923sed 's/^/| /' conftest.$ac_ext >&5
8924
8925echo "$as_me:$LINENO: result: no" >&5
8926echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008927fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008929 CFLAGS=$cflags_save
8930fi
8931
8932if test -z "$SKIP_ATHENA"; then
8933 GUITYPE=ATHENA
8934fi
8935
8936if test -z "$SKIP_NEXTAW"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008937 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5
8938echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008939 cflags_save=$CFLAGS
8940 CFLAGS="$CFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008941 cat >conftest.$ac_ext <<_ACEOF
8942/* confdefs.h. */
8943_ACEOF
8944cat confdefs.h >>conftest.$ac_ext
8945cat >>conftest.$ac_ext <<_ACEOF
8946/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00008947
8948#include <X11/Intrinsic.h>
8949#include <X11/neXtaw/Paned.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008950int
8951main ()
8952{
Bram Moolenaar071d4272004-06-13 20:20:40 +00008953
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008954 ;
8955 return 0;
8956}
8957_ACEOF
8958rm -f conftest.$ac_objext
8959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8960 (eval $ac_compile) 2>conftest.er1
8961 ac_status=$?
8962 grep -v '^ *+' conftest.er1 >conftest.err
8963 rm -f conftest.er1
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag"
8968 || test ! -s conftest.err'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; } &&
8974 { ac_try='test -s conftest.$ac_objext'
8975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976 (eval $ac_try) 2>&5
8977 ac_status=$?
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); }; }; then
8980 echo "$as_me:$LINENO: result: yes" >&5
8981echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00008982else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008983 echo "$as_me: failed program was:" >&5
8984sed 's/^/| /' conftest.$ac_ext >&5
8985
8986echo "$as_me:$LINENO: result: no" >&5
8987echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES
Bram Moolenaar071d4272004-06-13 20:20:40 +00008988fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00008989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00008990 CFLAGS=$cflags_save
8991fi
8992
8993if test -z "$SKIP_NEXTAW"; then
8994 GUITYPE=NEXTAW
8995fi
8996
8997if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
8998 if test -n "$GUI_INC_LOC"; then
8999 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`"
9000 fi
9001 if test -n "$GUI_LIB_LOC"; then
9002 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`"
9003 fi
9004
9005 ldflags_save=$LDFLAGS
9006 LDFLAGS="$X_LIBS $LDFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009007 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9008echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
9009if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009011else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009012 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009013LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009014cat >conftest.$ac_ext <<_ACEOF
9015/* confdefs.h. */
9016_ACEOF
9017cat confdefs.h >>conftest.$ac_ext
9018cat >>conftest.$ac_ext <<_ACEOF
9019/* end confdefs.h. */
9020
Bram Moolenaar071d4272004-06-13 20:20:40 +00009021/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009022#ifdef __cplusplus
9023extern "C"
9024#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009025/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009026 builtin and then its argument prototype would still apply. */
9027char XShapeQueryExtension ();
9028int
9029main ()
9030{
9031XShapeQueryExtension ();
9032 ;
9033 return 0;
9034}
9035_ACEOF
9036rm -f conftest.$ac_objext conftest$ac_exeext
9037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9038 (eval $ac_link) 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -z "$ac_c_werror_flag"
9046 || test ! -s conftest.err'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048 (eval $ac_try) 2>&5
9049 ac_status=$?
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try='test -s conftest$ac_exeext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054 (eval $ac_try) 2>&5
9055 ac_status=$?
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 ac_cv_lib_Xext_XShapeQueryExtension=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009059else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009060 echo "$as_me: failed program was:" >&5
9061sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009062
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009063ac_cv_lib_Xext_XShapeQueryExtension=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009064fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009065rm -f conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9067LIBS=$ac_check_lib_save_LIBS
9068fi
9069echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9070echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
9071if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009072 GUI_X_LIBS="-lXext"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009073fi
9074
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009075 echo "$as_me:$LINENO: checking for wslen in -lw" >&5
9076echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6
9077if test "${ac_cv_lib_w_wslen+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009079else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009080 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009081LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009082cat >conftest.$ac_ext <<_ACEOF
9083/* confdefs.h. */
9084_ACEOF
9085cat confdefs.h >>conftest.$ac_ext
9086cat >>conftest.$ac_ext <<_ACEOF
9087/* end confdefs.h. */
9088
Bram Moolenaar071d4272004-06-13 20:20:40 +00009089/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009090#ifdef __cplusplus
9091extern "C"
9092#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009093/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009094 builtin and then its argument prototype would still apply. */
9095char wslen ();
9096int
9097main ()
9098{
9099wslen ();
9100 ;
9101 return 0;
9102}
9103_ACEOF
9104rm -f conftest.$ac_objext conftest$ac_exeext
9105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9106 (eval $ac_link) 2>conftest.er1
9107 ac_status=$?
9108 grep -v '^ *+' conftest.er1 >conftest.err
9109 rm -f conftest.er1
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } &&
9113 { ac_try='test -z "$ac_c_werror_flag"
9114 || test ! -s conftest.err'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; } &&
9120 { ac_try='test -s conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 ac_cv_lib_w_wslen=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009127else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009128 echo "$as_me: failed program was:" >&5
9129sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009130
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009131ac_cv_lib_w_wslen=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009132fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009133rm -f conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135LIBS=$ac_check_lib_save_LIBS
9136fi
9137echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5
9138echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6
9139if test $ac_cv_lib_w_wslen = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009140 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009141fi
9142
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009143 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5
9144echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
9145if test "${ac_cv_lib_dl_dlsym+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009147else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009148 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009149LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009150cat >conftest.$ac_ext <<_ACEOF
9151/* confdefs.h. */
9152_ACEOF
9153cat confdefs.h >>conftest.$ac_ext
9154cat >>conftest.$ac_ext <<_ACEOF
9155/* end confdefs.h. */
9156
Bram Moolenaar071d4272004-06-13 20:20:40 +00009157/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009158#ifdef __cplusplus
9159extern "C"
9160#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009161/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009162 builtin and then its argument prototype would still apply. */
9163char dlsym ();
9164int
9165main ()
9166{
9167dlsym ();
9168 ;
9169 return 0;
9170}
9171_ACEOF
9172rm -f conftest.$ac_objext conftest$ac_exeext
9173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9174 (eval $ac_link) 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } &&
9181 { ac_try='test -z "$ac_c_werror_flag"
9182 || test ! -s conftest.err'
9183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9184 (eval $ac_try) 2>&5
9185 ac_status=$?
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); }; } &&
9188 { ac_try='test -s conftest$ac_exeext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_cv_lib_dl_dlsym=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009195else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009196 echo "$as_me: failed program was:" >&5
9197sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009198
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009199ac_cv_lib_dl_dlsym=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009200fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009201rm -f conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203LIBS=$ac_check_lib_save_LIBS
9204fi
9205echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5
9206echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
9207if test $ac_cv_lib_dl_dlsym = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009208 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009209fi
9210
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009211 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5
9212echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6
9213if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009215else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009216 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009217LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009218cat >conftest.$ac_ext <<_ACEOF
9219/* confdefs.h. */
9220_ACEOF
9221cat confdefs.h >>conftest.$ac_ext
9222cat >>conftest.$ac_ext <<_ACEOF
9223/* end confdefs.h. */
9224
Bram Moolenaar071d4272004-06-13 20:20:40 +00009225/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009226#ifdef __cplusplus
9227extern "C"
9228#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009229/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009230 builtin and then its argument prototype would still apply. */
9231char XmuCreateStippledPixmap ();
9232int
9233main ()
9234{
9235XmuCreateStippledPixmap ();
9236 ;
9237 return 0;
9238}
9239_ACEOF
9240rm -f conftest.$ac_objext conftest$ac_exeext
9241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9242 (eval $ac_link) 2>conftest.er1
9243 ac_status=$?
9244 grep -v '^ *+' conftest.er1 >conftest.err
9245 rm -f conftest.er1
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } &&
9249 { ac_try='test -z "$ac_c_werror_flag"
9250 || test ! -s conftest.err'
9251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252 (eval $ac_try) 2>&5
9253 ac_status=$?
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); }; } &&
9256 { ac_try='test -s conftest$ac_exeext'
9257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258 (eval $ac_try) 2>&5
9259 ac_status=$?
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; }; then
9262 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009263else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009264 echo "$as_me: failed program was:" >&5
9265sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009266
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009267ac_cv_lib_Xmu_XmuCreateStippledPixmap=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009268fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009269rm -f conftest.err conftest.$ac_objext \
9270 conftest$ac_exeext conftest.$ac_ext
9271LIBS=$ac_check_lib_save_LIBS
9272fi
9273echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5
9274echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6
9275if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009276 GUI_X_LIBS="-lXmu $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009277fi
9278
9279 if test -z "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009280 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5
9281echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6
9282if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009284else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009285 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +00009286LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009287cat >conftest.$ac_ext <<_ACEOF
9288/* confdefs.h. */
9289_ACEOF
9290cat confdefs.h >>conftest.$ac_ext
9291cat >>conftest.$ac_ext <<_ACEOF
9292/* end confdefs.h. */
9293
Bram Moolenaar071d4272004-06-13 20:20:40 +00009294/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009295#ifdef __cplusplus
9296extern "C"
9297#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +00009298/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009299 builtin and then its argument prototype would still apply. */
9300char XpEndJob ();
9301int
9302main ()
9303{
9304XpEndJob ();
9305 ;
9306 return 0;
9307}
9308_ACEOF
9309rm -f conftest.$ac_objext conftest$ac_exeext
9310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311 (eval $ac_link) 2>conftest.er1
9312 ac_status=$?
9313 grep -v '^ *+' conftest.er1 >conftest.err
9314 rm -f conftest.er1
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -z "$ac_c_werror_flag"
9319 || test ! -s conftest.err'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 (eval $ac_try) 2>&5
9322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest$ac_exeext'
9326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 (eval $ac_try) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); }; }; then
9331 ac_cv_lib_Xp_XpEndJob=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +00009332else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009333 echo "$as_me: failed program was:" >&5
9334sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +00009335
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009336ac_cv_lib_Xp_XpEndJob=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009337fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009338rm -f conftest.err conftest.$ac_objext \
9339 conftest$ac_exeext conftest.$ac_ext
9340LIBS=$ac_check_lib_save_LIBS
9341fi
9342echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5
9343echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6
9344if test $ac_cv_lib_Xp_XpEndJob = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +00009345 GUI_X_LIBS="-lXp $GUI_X_LIBS"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009346fi
9347
9348 fi
9349 LDFLAGS=$ldflags_save
9350
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009351 echo "$as_me:$LINENO: checking for extra X11 defines" >&5
9352echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009353 NARROW_PROTO=
9354 rm -fr conftestdir
9355 if mkdir conftestdir; then
9356 cd conftestdir
9357 cat > Imakefile <<'EOF'
9358acfindx:
9359 @echo 'NARROW_PROTO="${PROTO_DEFINES}"'
9360EOF
9361 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9362 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9363 fi
9364 cd ..
9365 rm -fr conftestdir
9366 fi
9367 if test -z "$NARROW_PROTO"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009368 echo "$as_me:$LINENO: result: no" >&5
9369echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009370 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009371 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5
9372echo "${ECHO_T}$NARROW_PROTO" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009373 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009374
Bram Moolenaar071d4272004-06-13 20:20:40 +00009375fi
9376
9377if test "$enable_xsmp" = "yes"; then
9378 cppflags_save=$CPPFLAGS
9379 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009380
9381for ac_header in X11/SM/SMlib.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00009382do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9384if eval "test \"\${$as_ac_Header+set}\" = set"; then
9385 echo "$as_me:$LINENO: checking for $ac_header" >&5
9386echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9387if eval "test \"\${$as_ac_Header+set}\" = set"; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009389fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9391echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009392else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009393 # Is the header compilable?
9394echo "$as_me:$LINENO: checking $ac_header usability" >&5
9395echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9396cat >conftest.$ac_ext <<_ACEOF
9397/* confdefs.h. */
9398_ACEOF
9399cat confdefs.h >>conftest.$ac_ext
9400cat >>conftest.$ac_ext <<_ACEOF
9401/* end confdefs.h. */
9402$ac_includes_default
9403#include <$ac_header>
9404_ACEOF
9405rm -f conftest.$ac_objext
9406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9407 (eval $ac_compile) 2>conftest.er1
9408 ac_status=$?
9409 grep -v '^ *+' conftest.er1 >conftest.err
9410 rm -f conftest.er1
9411 cat conftest.err >&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -z "$ac_c_werror_flag"
9415 || test ! -s conftest.err'
9416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9417 (eval $ac_try) 2>&5
9418 ac_status=$?
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); }; } &&
9421 { ac_try='test -s conftest.$ac_objext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423 (eval $ac_try) 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_header_compiler=yes
9428else
9429 echo "$as_me: failed program was:" >&5
9430sed 's/^/| /' conftest.$ac_ext >&5
9431
9432ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009433fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9435echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9436echo "${ECHO_T}$ac_header_compiler" >&6
9437
9438# Is the header present?
9439echo "$as_me:$LINENO: checking $ac_header presence" >&5
9440echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9441cat >conftest.$ac_ext <<_ACEOF
9442/* confdefs.h. */
9443_ACEOF
9444cat confdefs.h >>conftest.$ac_ext
9445cat >>conftest.$ac_ext <<_ACEOF
9446/* end confdefs.h. */
9447#include <$ac_header>
9448_ACEOF
9449if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } >/dev/null; then
9457 if test -s conftest.err; then
9458 ac_cpp_err=$ac_c_preproc_warn_flag
9459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9460 else
9461 ac_cpp_err=
9462 fi
9463else
9464 ac_cpp_err=yes
9465fi
9466if test -z "$ac_cpp_err"; then
9467 ac_header_preproc=yes
9468else
9469 echo "$as_me: failed program was:" >&5
9470sed 's/^/| /' conftest.$ac_ext >&5
9471
9472 ac_header_preproc=no
9473fi
9474rm -f conftest.err conftest.$ac_ext
9475echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9476echo "${ECHO_T}$ac_header_preproc" >&6
9477
9478# So? What about this header?
9479case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9480 yes:no: )
9481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9482echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9484echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9485 ac_header_preproc=yes
9486 ;;
9487 no:yes:* )
9488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9489echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9491echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9493echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9495echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9497echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9499echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9500 (
9501 cat <<\_ASBOX
9502## ------------------------------------------ ##
9503## Report this to the AC_PACKAGE_NAME lists. ##
9504## ------------------------------------------ ##
9505_ASBOX
9506 ) |
9507 sed "s/^/$as_me: WARNING: /" >&2
9508 ;;
9509esac
9510echo "$as_me:$LINENO: checking for $ac_header" >&5
9511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9512if eval "test \"\${$as_ac_Header+set}\" = set"; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515 eval "$as_ac_Header=\$ac_header_preproc"
9516fi
9517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9519
9520fi
9521if test `eval echo '${'$as_ac_Header'}'` = yes; then
9522 cat >>confdefs.h <<_ACEOF
9523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9524_ACEOF
9525
9526fi
9527
Bram Moolenaar071d4272004-06-13 20:20:40 +00009528done
9529
9530 CPPFLAGS=$cppflags_save
9531fi
9532
9533
9534if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then
9535 cppflags_save=$CPPFLAGS
9536 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009537
9538
9539for ac_header in X11/xpm.h X11/Sunkeysym.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00009540do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9542if eval "test \"\${$as_ac_Header+set}\" = set"; then
9543 echo "$as_me:$LINENO: checking for $ac_header" >&5
9544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9545if eval "test \"\${$as_ac_Header+set}\" = set"; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009547fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009550else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009551 # Is the header compilable?
9552echo "$as_me:$LINENO: checking $ac_header usability" >&5
9553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9554cat >conftest.$ac_ext <<_ACEOF
9555/* confdefs.h. */
9556_ACEOF
9557cat confdefs.h >>conftest.$ac_ext
9558cat >>conftest.$ac_ext <<_ACEOF
9559/* end confdefs.h. */
9560$ac_includes_default
9561#include <$ac_header>
9562_ACEOF
9563rm -f conftest.$ac_objext
9564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9565 (eval $ac_compile) 2>conftest.er1
9566 ac_status=$?
9567 grep -v '^ *+' conftest.er1 >conftest.err
9568 rm -f conftest.er1
9569 cat conftest.err >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); } &&
9572 { ac_try='test -z "$ac_c_werror_flag"
9573 || test ! -s conftest.err'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9575 (eval $ac_try) 2>&5
9576 ac_status=$?
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; } &&
9579 { ac_try='test -s conftest.$ac_objext'
9580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9581 (eval $ac_try) 2>&5
9582 ac_status=$?
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 (exit $ac_status); }; }; then
9585 ac_header_compiler=yes
9586else
9587 echo "$as_me: failed program was:" >&5
9588sed 's/^/| /' conftest.$ac_ext >&5
9589
9590ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009591fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9593echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9594echo "${ECHO_T}$ac_header_compiler" >&6
9595
9596# Is the header present?
9597echo "$as_me:$LINENO: checking $ac_header presence" >&5
9598echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9599cat >conftest.$ac_ext <<_ACEOF
9600/* confdefs.h. */
9601_ACEOF
9602cat confdefs.h >>conftest.$ac_ext
9603cat >>conftest.$ac_ext <<_ACEOF
9604/* end confdefs.h. */
9605#include <$ac_header>
9606_ACEOF
9607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9609 ac_status=$?
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); } >/dev/null; then
9615 if test -s conftest.err; then
9616 ac_cpp_err=$ac_c_preproc_warn_flag
9617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9618 else
9619 ac_cpp_err=
9620 fi
9621else
9622 ac_cpp_err=yes
9623fi
9624if test -z "$ac_cpp_err"; then
9625 ac_header_preproc=yes
9626else
9627 echo "$as_me: failed program was:" >&5
9628sed 's/^/| /' conftest.$ac_ext >&5
9629
9630 ac_header_preproc=no
9631fi
9632rm -f conftest.err conftest.$ac_ext
9633echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9634echo "${ECHO_T}$ac_header_preproc" >&6
9635
9636# So? What about this header?
9637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9638 yes:no: )
9639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9640echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9642echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9643 ac_header_preproc=yes
9644 ;;
9645 no:yes:* )
9646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9647echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9649echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9651echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9653echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9655echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9657echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9658 (
9659 cat <<\_ASBOX
9660## ------------------------------------------ ##
9661## Report this to the AC_PACKAGE_NAME lists. ##
9662## ------------------------------------------ ##
9663_ASBOX
9664 ) |
9665 sed "s/^/$as_me: WARNING: /" >&2
9666 ;;
9667esac
9668echo "$as_me:$LINENO: checking for $ac_header" >&5
9669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9670if eval "test \"\${$as_ac_Header+set}\" = set"; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672else
9673 eval "$as_ac_Header=\$ac_header_preproc"
9674fi
9675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9677
9678fi
9679if test `eval echo '${'$as_ac_Header'}'` = yes; then
9680 cat >>confdefs.h <<_ACEOF
9681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9682_ACEOF
9683
9684fi
9685
Bram Moolenaar071d4272004-06-13 20:20:40 +00009686done
9687
9688
9689 if test ! "$enable_xim" = "no"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009690 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5
9691echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6
9692 cat >conftest.$ac_ext <<_ACEOF
9693/* confdefs.h. */
9694_ACEOF
9695cat confdefs.h >>conftest.$ac_ext
9696cat >>conftest.$ac_ext <<_ACEOF
9697/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +00009698#include <X11/Xlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009699_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009701 $EGREP "XIMText" >/dev/null 2>&1; then
9702 echo "$as_me:$LINENO: result: yes" >&5
9703echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009704else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009705 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5
9706echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009707fi
9708rm -f conftest*
9709
9710 fi
9711 CPPFLAGS=$cppflags_save
9712
9713 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \
9714 -a "x$GUITYPE" != "xNONE" ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009715 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5
9716echo "${ECHO_T}X GUI selected; xim has been enabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009717 enable_xim="yes"
9718 fi
9719fi
9720
9721if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then
9722 cppflags_save=$CPPFLAGS
9723 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009724 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5
9725echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009727/* confdefs.h. */
9728_ACEOF
9729cat confdefs.h >>conftest.$ac_ext
9730cat >>conftest.$ac_ext <<_ACEOF
9731/* end confdefs.h. */
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009732
9733#include <X11/Intrinsic.h>
9734#include <X11/Xmu/Editres.h>
9735int
9736main ()
9737{
9738int i; i = 0;
9739 ;
9740 return 0;
9741}
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009742_ACEOF
9743rm -f conftest.$ac_objext
9744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9745 (eval $ac_compile) 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009765 echo "$as_me:$LINENO: result: yes" >&5
9766echo "${ECHO_T}yes" >&6
9767 cat >>confdefs.h <<\_ACEOF
9768#define HAVE_X11_XMU_EDITRES_H 1
9769_ACEOF
9770
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009771else
9772 echo "$as_me: failed program was:" >&5
9773sed 's/^/| /' conftest.$ac_ext >&5
9774
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009775echo "$as_me:$LINENO: result: no" >&5
9776echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009777fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +00009779 CPPFLAGS=$cppflags_save
9780fi
9781
9782if test -z "$SKIP_MOTIF"; then
9783 cppflags_save=$CPPFLAGS
9784 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009785
9786
Bram Moolenaar2ce06f62005-01-31 19:19:04 +00009787
9788
9789
9790
9791for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \
9792 Xm/UnhighlightT.h
Bram Moolenaar071d4272004-06-13 20:20:40 +00009793do
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9795if eval "test \"\${$as_ac_Header+set}\" = set"; then
9796 echo "$as_me:$LINENO: checking for $ac_header" >&5
9797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9798if eval "test \"\${$as_ac_Header+set}\" = set"; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009800fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009803else
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009804 # Is the header compilable?
9805echo "$as_me:$LINENO: checking $ac_header usability" >&5
9806echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9807cat >conftest.$ac_ext <<_ACEOF
9808/* confdefs.h. */
9809_ACEOF
9810cat confdefs.h >>conftest.$ac_ext
9811cat >>conftest.$ac_ext <<_ACEOF
9812/* end confdefs.h. */
9813$ac_includes_default
9814#include <$ac_header>
9815_ACEOF
9816rm -f conftest.$ac_objext
9817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -z "$ac_c_werror_flag"
9826 || test ! -s conftest.err'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; } &&
9832 { ac_try='test -s conftest.$ac_objext'
9833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 (eval $ac_try) 2>&5
9835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 ac_header_compiler=yes
9839else
9840 echo "$as_me: failed program was:" >&5
9841sed 's/^/| /' conftest.$ac_ext >&5
9842
9843ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +00009844fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9846echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9847echo "${ECHO_T}$ac_header_compiler" >&6
9848
9849# Is the header present?
9850echo "$as_me:$LINENO: checking $ac_header presence" >&5
9851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9852cat >conftest.$ac_ext <<_ACEOF
9853/* confdefs.h. */
9854_ACEOF
9855cat confdefs.h >>conftest.$ac_ext
9856cat >>conftest.$ac_ext <<_ACEOF
9857/* end confdefs.h. */
9858#include <$ac_header>
9859_ACEOF
9860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } >/dev/null; then
9868 if test -s conftest.err; then
9869 ac_cpp_err=$ac_c_preproc_warn_flag
9870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9871 else
9872 ac_cpp_err=
9873 fi
9874else
9875 ac_cpp_err=yes
9876fi
9877if test -z "$ac_cpp_err"; then
9878 ac_header_preproc=yes
9879else
9880 echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
9883 ac_header_preproc=no
9884fi
9885rm -f conftest.err conftest.$ac_ext
9886echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9887echo "${ECHO_T}$ac_header_preproc" >&6
9888
9889# So? What about this header?
9890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9891 yes:no: )
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9893echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9895echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9896 ac_header_preproc=yes
9897 ;;
9898 no:yes:* )
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9900echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9902echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9904echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9906echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9908echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9910echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9911 (
9912 cat <<\_ASBOX
9913## ------------------------------------------ ##
9914## Report this to the AC_PACKAGE_NAME lists. ##
9915## ------------------------------------------ ##
9916_ASBOX
9917 ) |
9918 sed "s/^/$as_me: WARNING: /" >&2
9919 ;;
9920esac
9921echo "$as_me:$LINENO: checking for $ac_header" >&5
9922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9923if eval "test \"\${$as_ac_Header+set}\" = set"; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925else
9926 eval "$as_ac_Header=\$ac_header_preproc"
9927fi
9928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9930
9931fi
9932if test `eval echo '${'$as_ac_Header'}'` = yes; then
9933 cat >>confdefs.h <<_ACEOF
9934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9935_ACEOF
9936
9937fi
9938
Bram Moolenaar071d4272004-06-13 20:20:40 +00009939done
9940
9941 CPPFLAGS=$cppflags_save
9942fi
9943
9944if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009945 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5
9946echo "${ECHO_T}no GUI selected; xim has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009947 enable_xim="no"
9948fi
9949if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009950 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5
9951echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009952 enable_fontset="no"
9953fi
9954if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009955 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5
9956echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +00009957 enable_fontset="no"
9958fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009959if test "x$GUITYPE:$enable_fontset" = "xKDE:yes"; then
9960 echo "$as_me:$LINENO: result: KDE GUI selected; fontset has been disabled" >&5
9961echo "${ECHO_T}KDE GUI selected; fontset has been disabled" >&6
9962 enable_fontset="no"
Bram Moolenaar071d4272004-06-13 20:20:40 +00009963fi
9964
9965if test -z "$SKIP_PHOTON"; then
9966 GUITYPE=PHOTONGUI
9967fi
9968
9969
9970
9971
9972
9973
9974if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009975 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5
9976echo "$as_me: error: cannot use workshop without Motif" >&2;}
9977 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +00009978fi
9979
9980if test "$enable_xim" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009981 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009982#define FEAT_XIM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009983_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009984
9985fi
9986if test "$enable_fontset" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009987 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009988#define FEAT_XFONTSET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009989_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +00009990
9991fi
9992
9993
9994
9995
9996if test "$enable_hangulinput" = "yes"; then
9997 if test "x$GUITYPE" = "xNONE"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +00009998 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5
9999echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010000 enable_hangulinput=no
10001 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010002 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010003#define FEAT_HANGULIN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010004_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010005
10006 HANGULIN_SRC=hangulin.c
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010007
Bram Moolenaar071d4272004-06-13 20:20:40 +000010008 HANGULIN_OBJ=objects/hangulin.o
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010009
Bram Moolenaar071d4272004-06-13 20:20:40 +000010010 fi
10011fi
10012
10013
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010014echo "$as_me:$LINENO: checking quality of toupper" >&5
10015echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010016if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010017 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
10018echo "$as_me: error: failed to compile test program" >&2;}
10019 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000010020else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010021 cat >conftest.$ac_ext <<_ACEOF
10022/* confdefs.h. */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
10026/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010027#include <ctype.h>
10028main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010029_ACEOF
10030rm -f conftest$ac_exeext
10031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032 (eval $ac_link) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; }; then
10041 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010042#define BROKEN_TOUPPER 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010043_ACEOF
10044 echo "$as_me:$LINENO: result: bad" >&5
10045echo "${ECHO_T}bad" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010046else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010047 echo "$as_me: program exited with status $ac_status" >&5
10048echo "$as_me: failed program was:" >&5
10049sed 's/^/| /' conftest.$ac_ext >&5
10050
10051( exit $ac_status )
10052echo "$as_me:$LINENO: result: good" >&5
10053echo "${ECHO_T}good" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010054fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010055rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010056fi
10057
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010058echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5
10059echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6
10060cat >conftest.$ac_ext <<_ACEOF
10061/* confdefs.h. */
10062_ACEOF
10063cat confdefs.h >>conftest.$ac_ext
10064cat >>conftest.$ac_ext <<_ACEOF
10065/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010066
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010067int
10068main ()
10069{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010070printf("(" __DATE__ " " __TIME__ ")");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010071 ;
10072 return 0;
10073}
10074_ACEOF
10075rm -f conftest.$ac_objext
10076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10077 (eval $ac_compile) 2>conftest.er1
10078 ac_status=$?
10079 grep -v '^ *+' conftest.er1 >conftest.err
10080 rm -f conftest.er1
10081 cat conftest.err >&5
10082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083 (exit $ac_status); } &&
10084 { ac_try='test -z "$ac_c_werror_flag"
10085 || test ! -s conftest.err'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest.$ac_objext'
10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093 (eval $ac_try) 2>&5
10094 ac_status=$?
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); }; }; then
10097 echo "$as_me:$LINENO: result: yes" >&5
10098echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010099#define HAVE_DATE_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010100_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010101
10102else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010103 echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
10106echo "$as_me:$LINENO: result: no" >&5
10107echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010108fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010110
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010111if test "${ac_cv_header_elf_h+set}" = set; then
10112 echo "$as_me:$LINENO: checking for elf.h" >&5
10113echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
10114if test "${ac_cv_header_elf_h+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10116fi
10117echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10118echo "${ECHO_T}$ac_cv_header_elf_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010119else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010120 # Is the header compilable?
10121echo "$as_me:$LINENO: checking elf.h usability" >&5
10122echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
10123cat >conftest.$ac_ext <<_ACEOF
10124/* confdefs.h. */
10125_ACEOF
10126cat confdefs.h >>conftest.$ac_ext
10127cat >>conftest.$ac_ext <<_ACEOF
10128/* end confdefs.h. */
10129$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000010130#include <elf.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010131_ACEOF
10132rm -f conftest.$ac_objext
10133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10134 (eval $ac_compile) 2>conftest.er1
10135 ac_status=$?
10136 grep -v '^ *+' conftest.er1 >conftest.err
10137 rm -f conftest.er1
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest.$ac_objext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10151 ac_status=$?
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000010155else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010156 echo "$as_me: failed program was:" >&5
10157sed 's/^/| /' conftest.$ac_ext >&5
10158
10159ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010160fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10162echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10163echo "${ECHO_T}$ac_header_compiler" >&6
10164
10165# Is the header present?
10166echo "$as_me:$LINENO: checking elf.h presence" >&5
10167echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
10168cat >conftest.$ac_ext <<_ACEOF
10169/* confdefs.h. */
10170_ACEOF
10171cat confdefs.h >>conftest.$ac_ext
10172cat >>conftest.$ac_ext <<_ACEOF
10173/* end confdefs.h. */
10174#include <elf.h>
10175_ACEOF
10176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10178 ac_status=$?
10179 grep -v '^ *+' conftest.er1 >conftest.err
10180 rm -f conftest.er1
10181 cat conftest.err >&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); } >/dev/null; then
10184 if test -s conftest.err; then
10185 ac_cpp_err=$ac_c_preproc_warn_flag
10186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10187 else
10188 ac_cpp_err=
10189 fi
10190else
10191 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000010192fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010193if test -z "$ac_cpp_err"; then
10194 ac_header_preproc=yes
10195else
10196 echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
10199 ac_header_preproc=no
10200fi
10201rm -f conftest.err conftest.$ac_ext
10202echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10203echo "${ECHO_T}$ac_header_preproc" >&6
10204
10205# So? What about this header?
10206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10207 yes:no: )
10208 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
10209echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5
10211echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;}
10212 ac_header_preproc=yes
10213 ;;
10214 no:yes:* )
10215 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
10216echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
10218echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
10219 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5
10220echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;}
10221 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5
10222echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
10224echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
10225 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5
10226echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;}
10227 (
10228 cat <<\_ASBOX
10229## ------------------------------------------ ##
10230## Report this to the AC_PACKAGE_NAME lists. ##
10231## ------------------------------------------ ##
10232_ASBOX
10233 ) |
10234 sed "s/^/$as_me: WARNING: /" >&2
10235 ;;
10236esac
10237echo "$as_me:$LINENO: checking for elf.h" >&5
10238echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
10239if test "${ac_cv_header_elf_h+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241else
10242 ac_cv_header_elf_h=$ac_header_preproc
10243fi
10244echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
10245echo "${ECHO_T}$ac_cv_header_elf_h" >&6
10246
10247fi
10248if test $ac_cv_header_elf_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010249 HAS_ELF=1
Bram Moolenaar071d4272004-06-13 20:20:40 +000010250fi
10251
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010252
Bram Moolenaar071d4272004-06-13 20:20:40 +000010253if test "$HAS_ELF" = 1; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010254
10255echo "$as_me:$LINENO: checking for main in -lelf" >&5
10256echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6
10257if test "${ac_cv_lib_elf_main+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010259else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010260 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000010261LIBS="-lelf $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010262cat >conftest.$ac_ext <<_ACEOF
10263/* confdefs.h. */
10264_ACEOF
10265cat confdefs.h >>conftest.$ac_ext
10266cat >>conftest.$ac_ext <<_ACEOF
10267/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010268
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010269
10270int
10271main ()
10272{
10273main ();
10274 ;
10275 return 0;
10276}
10277_ACEOF
10278rm -f conftest.$ac_objext conftest$ac_exeext
10279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10280 (eval $ac_link) 2>conftest.er1
10281 ac_status=$?
10282 grep -v '^ *+' conftest.er1 >conftest.err
10283 rm -f conftest.er1
10284 cat conftest.err >&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); } &&
10287 { ac_try='test -z "$ac_c_werror_flag"
10288 || test ! -s conftest.err'
10289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10290 (eval $ac_try) 2>&5
10291 ac_status=$?
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); }; } &&
10294 { ac_try='test -s conftest$ac_exeext'
10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10297 ac_status=$?
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10300 ac_cv_lib_elf_main=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000010301else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010302 echo "$as_me: failed program was:" >&5
10303sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010304
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010305ac_cv_lib_elf_main=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010306fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010307rm -f conftest.err conftest.$ac_objext \
10308 conftest$ac_exeext conftest.$ac_ext
10309LIBS=$ac_check_lib_save_LIBS
10310fi
10311echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5
10312echo "${ECHO_T}$ac_cv_lib_elf_main" >&6
10313if test $ac_cv_lib_elf_main = yes; then
10314 cat >>confdefs.h <<_ACEOF
10315#define HAVE_LIBELF 1
10316_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010317
10318 LIBS="-lelf $LIBS"
10319
Bram Moolenaar071d4272004-06-13 20:20:40 +000010320fi
10321
10322fi
10323
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010324
10325
10326
10327
10328
Bram Moolenaar071d4272004-06-13 20:20:40 +000010329ac_header_dirent=no
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010330for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10331 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10332echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10333echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10334if eval "test \"\${$as_ac_Header+set}\" = set"; then
10335 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010336else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010337 cat >conftest.$ac_ext <<_ACEOF
10338/* confdefs.h. */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010343#include <sys/types.h>
10344#include <$ac_hdr>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010345
10346int
10347main ()
10348{
10349if ((DIR *) 0)
10350return 0;
10351 ;
10352 return 0;
10353}
10354_ACEOF
10355rm -f conftest.$ac_objext
10356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357 (eval $ac_compile) 2>conftest.er1
10358 ac_status=$?
10359 grep -v '^ *+' conftest.er1 >conftest.err
10360 rm -f conftest.er1
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } &&
10364 { ac_try='test -z "$ac_c_werror_flag"
10365 || test ! -s conftest.err'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; } &&
10371 { ac_try='test -s conftest.$ac_objext'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 eval "$as_ac_Header=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000010378else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010379 echo "$as_me: failed program was:" >&5
10380sed 's/^/| /' conftest.$ac_ext >&5
10381
10382eval "$as_ac_Header=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000010383fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010385fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10388if test `eval echo '${'$as_ac_Header'}'` = yes; then
10389 cat >>confdefs.h <<_ACEOF
10390#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10391_ACEOF
10392
10393ac_header_dirent=$ac_hdr; break
Bram Moolenaar071d4272004-06-13 20:20:40 +000010394fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010395
Bram Moolenaar071d4272004-06-13 20:20:40 +000010396done
10397# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10398if test $ac_header_dirent = dirent.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010399 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10400echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10401if test "${ac_cv_search_opendir+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010403else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010404 ac_func_search_save_LIBS=$LIBS
10405ac_cv_search_opendir=no
10406cat >conftest.$ac_ext <<_ACEOF
10407/* confdefs.h. */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h. */
10412
Bram Moolenaar071d4272004-06-13 20:20:40 +000010413/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010414#ifdef __cplusplus
10415extern "C"
10416#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010417/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010418 builtin and then its argument prototype would still apply. */
10419char opendir ();
10420int
10421main ()
10422{
10423opendir ();
10424 ;
10425 return 0;
10426}
10427_ACEOF
10428rm -f conftest.$ac_objext conftest$ac_exeext
10429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10430 (eval $ac_link) 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -z "$ac_c_werror_flag"
10438 || test ! -s conftest.err'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try='test -s conftest$ac_exeext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 ac_cv_search_opendir="none required"
Bram Moolenaar071d4272004-06-13 20:20:40 +000010451else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010452 echo "$as_me: failed program was:" >&5
10453sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010454
10455fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010456rm -f conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458if test "$ac_cv_search_opendir" = no; then
10459 for ac_lib in dir; do
10460 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10461 cat >conftest.$ac_ext <<_ACEOF
10462/* confdefs.h. */
10463_ACEOF
10464cat confdefs.h >>conftest.$ac_ext
10465cat >>conftest.$ac_ext <<_ACEOF
10466/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010467
Bram Moolenaar071d4272004-06-13 20:20:40 +000010468/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010469#ifdef __cplusplus
10470extern "C"
10471#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010472/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010473 builtin and then its argument prototype would still apply. */
10474char opendir ();
10475int
10476main ()
10477{
10478opendir ();
10479 ;
10480 return 0;
10481}
10482_ACEOF
10483rm -f conftest.$ac_objext conftest$ac_exeext
10484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10485 (eval $ac_link) 2>conftest.er1
10486 ac_status=$?
10487 grep -v '^ *+' conftest.er1 >conftest.err
10488 rm -f conftest.er1
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } &&
10492 { ac_try='test -z "$ac_c_werror_flag"
10493 || test ! -s conftest.err'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; } &&
10499 { ac_try='test -s conftest$ac_exeext'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_cv_search_opendir="-l$ac_lib"
10506break
Bram Moolenaar071d4272004-06-13 20:20:40 +000010507else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010508 echo "$as_me: failed program was:" >&5
10509sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010510
10511fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010512rm -f conftest.err conftest.$ac_objext \
10513 conftest$ac_exeext conftest.$ac_ext
10514 done
10515fi
10516LIBS=$ac_func_search_save_LIBS
10517fi
10518echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10519echo "${ECHO_T}$ac_cv_search_opendir" >&6
10520if test "$ac_cv_search_opendir" != no; then
10521 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10522
10523fi
10524
Bram Moolenaar071d4272004-06-13 20:20:40 +000010525else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010526 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10527echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10528if test "${ac_cv_search_opendir+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010530else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010531 ac_func_search_save_LIBS=$LIBS
10532ac_cv_search_opendir=no
10533cat >conftest.$ac_ext <<_ACEOF
10534/* confdefs.h. */
10535_ACEOF
10536cat confdefs.h >>conftest.$ac_ext
10537cat >>conftest.$ac_ext <<_ACEOF
10538/* end confdefs.h. */
10539
10540/* Override any gcc2 internal prototype to avoid an error. */
10541#ifdef __cplusplus
10542extern "C"
10543#endif
10544/* We use char because int might match the return type of a gcc2
10545 builtin and then its argument prototype would still apply. */
10546char opendir ();
10547int
10548main ()
10549{
10550opendir ();
10551 ;
10552 return 0;
10553}
10554_ACEOF
10555rm -f conftest.$ac_objext conftest$ac_exeext
10556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try='test -z "$ac_c_werror_flag"
10565 || test ! -s conftest.err'
10566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567 (eval $ac_try) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try='test -s conftest$ac_exeext'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 ac_cv_search_opendir="none required"
10578else
10579 echo "$as_me: failed program was:" >&5
10580sed 's/^/| /' conftest.$ac_ext >&5
10581
10582fi
10583rm -f conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
10585if test "$ac_cv_search_opendir" = no; then
10586 for ac_lib in x; do
10587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10588 cat >conftest.$ac_ext <<_ACEOF
10589/* confdefs.h. */
10590_ACEOF
10591cat confdefs.h >>conftest.$ac_ext
10592cat >>conftest.$ac_ext <<_ACEOF
10593/* end confdefs.h. */
10594
10595/* Override any gcc2 internal prototype to avoid an error. */
10596#ifdef __cplusplus
10597extern "C"
10598#endif
10599/* We use char because int might match the return type of a gcc2
10600 builtin and then its argument prototype would still apply. */
10601char opendir ();
10602int
10603main ()
10604{
10605opendir ();
10606 ;
10607 return 0;
10608}
10609_ACEOF
10610rm -f conftest.$ac_objext conftest$ac_exeext
10611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10612 (eval $ac_link) 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } &&
10619 { ac_try='test -z "$ac_c_werror_flag"
10620 || test ! -s conftest.err'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; } &&
10626 { ac_try='test -s conftest$ac_exeext'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; }; then
10632 ac_cv_search_opendir="-l$ac_lib"
10633break
10634else
10635 echo "$as_me: failed program was:" >&5
10636sed 's/^/| /' conftest.$ac_ext >&5
10637
10638fi
10639rm -f conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10641 done
10642fi
10643LIBS=$ac_func_search_save_LIBS
10644fi
10645echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10646echo "${ECHO_T}$ac_cv_search_opendir" >&6
10647if test "$ac_cv_search_opendir" != no; then
10648 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10649
10650fi
10651
10652fi
10653
10654
10655echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10656echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10657if test "${ac_cv_header_stdc+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659else
10660 cat >conftest.$ac_ext <<_ACEOF
10661/* confdefs.h. */
10662_ACEOF
10663cat confdefs.h >>conftest.$ac_ext
10664cat >>conftest.$ac_ext <<_ACEOF
10665/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010666#include <stdlib.h>
10667#include <stdarg.h>
10668#include <string.h>
10669#include <float.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010670
10671int
10672main ()
10673{
10674
10675 ;
10676 return 0;
10677}
10678_ACEOF
10679rm -f conftest.$ac_objext
10680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681 (eval $ac_compile) 2>conftest.er1
10682 ac_status=$?
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -f conftest.er1
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } &&
10688 { ac_try='test -z "$ac_c_werror_flag"
10689 || test ! -s conftest.err'
10690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691 (eval $ac_try) 2>&5
10692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; } &&
10695 { ac_try='test -s conftest.$ac_objext'
10696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697 (eval $ac_try) 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010701 ac_cv_header_stdc=yes
10702else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010703 echo "$as_me: failed program was:" >&5
10704sed 's/^/| /' conftest.$ac_ext >&5
10705
10706ac_cv_header_stdc=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000010707fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010709
10710if test $ac_cv_header_stdc = yes; then
10711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010712 cat >conftest.$ac_ext <<_ACEOF
10713/* confdefs.h. */
10714_ACEOF
10715cat confdefs.h >>conftest.$ac_ext
10716cat >>conftest.$ac_ext <<_ACEOF
10717/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010718#include <string.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010719
10720_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010722 $EGREP "memchr" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010723 :
10724else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010725 ac_cv_header_stdc=no
10726fi
10727rm -f conftest*
10728
10729fi
10730
10731if test $ac_cv_header_stdc = yes; then
10732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010733 cat >conftest.$ac_ext <<_ACEOF
10734/* confdefs.h. */
10735_ACEOF
10736cat confdefs.h >>conftest.$ac_ext
10737cat >>conftest.$ac_ext <<_ACEOF
10738/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010739#include <stdlib.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010740
10741_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010743 $EGREP "free" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010744 :
10745else
Bram Moolenaar071d4272004-06-13 20:20:40 +000010746 ac_cv_header_stdc=no
10747fi
10748rm -f conftest*
10749
10750fi
10751
10752if test $ac_cv_header_stdc = yes; then
10753 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010754 if test "$cross_compiling" = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010755 :
10756else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010757 cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h. */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010763#include <ctype.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010764#if ((' ' & 0x0FF) == 0x020)
10765# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10766# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10767#else
10768# define ISLOWER(c) \
10769 (('a' <= (c) && (c) <= 'i') \
10770 || ('j' <= (c) && (c) <= 'r') \
10771 || ('s' <= (c) && (c) <= 'z'))
10772# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10773#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000010774
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010775#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10776int
10777main ()
10778{
10779 int i;
10780 for (i = 0; i < 256; i++)
10781 if (XOR (islower (i), ISLOWER (i))
10782 || toupper (i) != TOUPPER (i))
10783 exit(2);
10784 exit (0);
10785}
10786_ACEOF
10787rm -f conftest$ac_exeext
10788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10789 (eval $ac_link) 2>&5
10790 ac_status=$?
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794 (eval $ac_try) 2>&5
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010798 :
10799else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010800 echo "$as_me: program exited with status $ac_status" >&5
10801echo "$as_me: failed program was:" >&5
10802sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010803
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010804( exit $ac_status )
10805ac_cv_header_stdc=no
10806fi
10807rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010808fi
10809fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010810fi
10811echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10812echo "${ECHO_T}$ac_cv_header_stdc" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010813if test $ac_cv_header_stdc = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010814
10815cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010816#define STDC_HEADERS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010817_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010818
10819fi
10820
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010821echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10822echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10823if test "${ac_cv_header_sys_wait_h+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010825else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010826 cat >conftest.$ac_ext <<_ACEOF
10827/* confdefs.h. */
10828_ACEOF
10829cat confdefs.h >>conftest.$ac_ext
10830cat >>conftest.$ac_ext <<_ACEOF
10831/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010832#include <sys/types.h>
10833#include <sys/wait.h>
10834#ifndef WEXITSTATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010835# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010836#endif
10837#ifndef WIFEXITED
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010838# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
Bram Moolenaar071d4272004-06-13 20:20:40 +000010839#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010840
10841int
10842main ()
10843{
10844 int s;
10845 wait (&s);
10846 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10847 ;
10848 return 0;
10849}
10850_ACEOF
10851rm -f conftest.$ac_objext
10852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10853 (eval $ac_compile) 2>conftest.er1
10854 ac_status=$?
10855 grep -v '^ *+' conftest.er1 >conftest.err
10856 rm -f conftest.er1
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } &&
10860 { ac_try='test -z "$ac_c_werror_flag"
10861 || test ! -s conftest.err'
10862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10864 ac_status=$?
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); }; } &&
10867 { ac_try='test -s conftest.$ac_objext'
10868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869 (eval $ac_try) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000010873 ac_cv_header_sys_wait_h=yes
10874else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010875 echo "$as_me: failed program was:" >&5
10876sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000010877
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010878ac_cv_header_sys_wait_h=no
10879fi
10880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10881fi
10882echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10883echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010884if test $ac_cv_header_sys_wait_h = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010885
10886cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010887#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010888_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010889
10890fi
10891
10892
10893if test $ac_cv_header_sys_wait_h = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010894 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5
10895echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6
10896 cat >conftest.$ac_ext <<_ACEOF
10897/* confdefs.h. */
10898_ACEOF
10899cat confdefs.h >>conftest.$ac_ext
10900cat >>conftest.$ac_ext <<_ACEOF
10901/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000010902#include <sys/wait.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010903int
10904main ()
10905{
Bram Moolenaar071d4272004-06-13 20:20:40 +000010906union wait xx, yy; xx = yy
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010907 ;
10908 return 0;
10909}
10910_ACEOF
10911rm -f conftest.$ac_objext
10912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10913 (eval $ac_compile) 2>conftest.er1
10914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try='test -z "$ac_c_werror_flag"
10921 || test ! -s conftest.err'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10924 ac_status=$?
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest.$ac_objext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 echo "$as_me:$LINENO: result: yes" >&5
10934echo "${ECHO_T}yes" >&6
10935 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010936#define HAVE_SYS_WAIT_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010937_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010938
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010939 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010940#define HAVE_UNION_WAIT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010941_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000010942
10943else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010944 echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
10946
10947echo "$as_me:$LINENO: result: no" >&5
10948echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000010949fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000010951fi
10952
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010993 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \
10994 iconv.h langinfo.h unistd.h stropts.h errno.h \
10995 sys/resource.h sys/systeminfo.h locale.h \
10996 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \
10997 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \
Bram Moolenaar495de9c2005-01-25 22:03:25 +000010998 libgen.h util/debug.h util/msg18n.h frame.h \
Bram Moolenaar071d4272004-06-13 20:20:40 +000010999 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h
11000do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11002if eval "test \"\${$as_ac_Header+set}\" = set"; then
11003 echo "$as_me:$LINENO: checking for $ac_header" >&5
11004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11005if eval "test \"\${$as_ac_Header+set}\" = set"; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011007fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011010else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011011 # Is the header compilable?
11012echo "$as_me:$LINENO: checking $ac_header usability" >&5
11013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11014cat >conftest.$ac_ext <<_ACEOF
11015/* confdefs.h. */
11016_ACEOF
11017cat confdefs.h >>conftest.$ac_ext
11018cat >>conftest.$ac_ext <<_ACEOF
11019/* end confdefs.h. */
11020$ac_includes_default
11021#include <$ac_header>
11022_ACEOF
11023rm -f conftest.$ac_objext
11024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11025 (eval $ac_compile) 2>conftest.er1
11026 ac_status=$?
11027 grep -v '^ *+' conftest.er1 >conftest.err
11028 rm -f conftest.er1
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); } &&
11032 { ac_try='test -z "$ac_c_werror_flag"
11033 || test ! -s conftest.err'
11034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11035 (eval $ac_try) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; } &&
11039 { ac_try='test -s conftest.$ac_objext'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; }; then
11045 ac_header_compiler=yes
11046else
11047 echo "$as_me: failed program was:" >&5
11048sed 's/^/| /' conftest.$ac_ext >&5
11049
11050ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011051fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11053echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11054echo "${ECHO_T}$ac_header_compiler" >&6
11055
11056# Is the header present?
11057echo "$as_me:$LINENO: checking $ac_header presence" >&5
11058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11059cat >conftest.$ac_ext <<_ACEOF
11060/* confdefs.h. */
11061_ACEOF
11062cat confdefs.h >>conftest.$ac_ext
11063cat >>conftest.$ac_ext <<_ACEOF
11064/* end confdefs.h. */
11065#include <$ac_header>
11066_ACEOF
11067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } >/dev/null; then
11075 if test -s conftest.err; then
11076 ac_cpp_err=$ac_c_preproc_warn_flag
11077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11078 else
11079 ac_cpp_err=
11080 fi
11081else
11082 ac_cpp_err=yes
11083fi
11084if test -z "$ac_cpp_err"; then
11085 ac_header_preproc=yes
11086else
11087 echo "$as_me: failed program was:" >&5
11088sed 's/^/| /' conftest.$ac_ext >&5
11089
11090 ac_header_preproc=no
11091fi
11092rm -f conftest.err conftest.$ac_ext
11093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11094echo "${ECHO_T}$ac_header_preproc" >&6
11095
11096# So? What about this header?
11097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11098 yes:no: )
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11103 ac_header_preproc=yes
11104 ;;
11105 no:yes:* )
11106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11118 (
11119 cat <<\_ASBOX
11120## ------------------------------------------ ##
11121## Report this to the AC_PACKAGE_NAME lists. ##
11122## ------------------------------------------ ##
11123_ASBOX
11124 ) |
11125 sed "s/^/$as_me: WARNING: /" >&2
11126 ;;
11127esac
11128echo "$as_me:$LINENO: checking for $ac_header" >&5
11129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11130if eval "test \"\${$as_ac_Header+set}\" = set"; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132else
11133 eval "$as_ac_Header=\$ac_header_preproc"
11134fi
11135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11137
11138fi
11139if test `eval echo '${'$as_ac_Header'}'` = yes; then
11140 cat >>confdefs.h <<_ACEOF
11141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11142_ACEOF
11143
11144fi
11145
Bram Moolenaar071d4272004-06-13 20:20:40 +000011146done
11147
11148
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011149echo "$as_me:$LINENO: checking for pthread_np.h" >&5
11150echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6
11151cat >conftest.$ac_ext <<_ACEOF
11152/* confdefs.h. */
11153_ACEOF
11154cat confdefs.h >>conftest.$ac_ext
11155cat >>conftest.$ac_ext <<_ACEOF
11156/* end confdefs.h. */
11157
11158#include <pthread.h>
11159#include <pthread_np.h>
11160int
11161main ()
11162{
11163int i; i = 0;
11164 ;
11165 return 0;
11166}
11167_ACEOF
11168rm -f conftest.$ac_objext
11169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11170 (eval $ac_compile) 2>conftest.er1
11171 ac_status=$?
11172 grep -v '^ *+' conftest.er1 >conftest.err
11173 rm -f conftest.er1
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); } &&
11177 { ac_try='test -z "$ac_c_werror_flag"
11178 || test ! -s conftest.err'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11181 ac_status=$?
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; } &&
11184 { ac_try='test -s conftest.$ac_objext'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 echo "$as_me:$LINENO: result: yes" >&5
11191echo "${ECHO_T}yes" >&6
11192 cat >>confdefs.h <<\_ACEOF
11193#define HAVE_PTHREAD_NP_H 1
11194_ACEOF
11195
11196else
11197 echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
11200echo "$as_me:$LINENO: result: no" >&5
11201echo "${ECHO_T}no" >&6
11202fi
11203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11204
Bram Moolenaar071d4272004-06-13 20:20:40 +000011205if test "x$MACOSX" != "xyes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011206
11207for ac_header in strings.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000011208do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11210if eval "test \"\${$as_ac_Header+set}\" = set"; then
11211 echo "$as_me:$LINENO: checking for $ac_header" >&5
11212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11213if eval "test \"\${$as_ac_Header+set}\" = set"; then
11214 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011215fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011218else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011219 # Is the header compilable?
11220echo "$as_me:$LINENO: checking $ac_header usability" >&5
11221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11222cat >conftest.$ac_ext <<_ACEOF
11223/* confdefs.h. */
11224_ACEOF
11225cat confdefs.h >>conftest.$ac_ext
11226cat >>conftest.$ac_ext <<_ACEOF
11227/* end confdefs.h. */
11228$ac_includes_default
11229#include <$ac_header>
11230_ACEOF
11231rm -f conftest.$ac_objext
11232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11233 (eval $ac_compile) 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } &&
11240 { ac_try='test -z "$ac_c_werror_flag"
11241 || test ! -s conftest.err'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; } &&
11247 { ac_try='test -s conftest.$ac_objext'
11248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11249 (eval $ac_try) 2>&5
11250 ac_status=$?
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 ac_header_compiler=yes
11254else
11255 echo "$as_me: failed program was:" >&5
11256sed 's/^/| /' conftest.$ac_ext >&5
11257
11258ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011259fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11261echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11262echo "${ECHO_T}$ac_header_compiler" >&6
11263
11264# Is the header present?
11265echo "$as_me:$LINENO: checking $ac_header presence" >&5
11266echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11267cat >conftest.$ac_ext <<_ACEOF
11268/* confdefs.h. */
11269_ACEOF
11270cat confdefs.h >>conftest.$ac_ext
11271cat >>conftest.$ac_ext <<_ACEOF
11272/* end confdefs.h. */
11273#include <$ac_header>
11274_ACEOF
11275if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11277 ac_status=$?
11278 grep -v '^ *+' conftest.er1 >conftest.err
11279 rm -f conftest.er1
11280 cat conftest.err >&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } >/dev/null; then
11283 if test -s conftest.err; then
11284 ac_cpp_err=$ac_c_preproc_warn_flag
11285 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11286 else
11287 ac_cpp_err=
11288 fi
11289else
11290 ac_cpp_err=yes
11291fi
11292if test -z "$ac_cpp_err"; then
11293 ac_header_preproc=yes
11294else
11295 echo "$as_me: failed program was:" >&5
11296sed 's/^/| /' conftest.$ac_ext >&5
11297
11298 ac_header_preproc=no
11299fi
11300rm -f conftest.err conftest.$ac_ext
11301echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11302echo "${ECHO_T}$ac_header_preproc" >&6
11303
11304# So? What about this header?
11305case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11306 yes:no: )
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11308echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11310echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11311 ac_header_preproc=yes
11312 ;;
11313 no:yes:* )
11314 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11315echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11316 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11317echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11319echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11320 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11321echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11323echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11325echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11326 (
11327 cat <<\_ASBOX
11328## ------------------------------------------ ##
11329## Report this to the AC_PACKAGE_NAME lists. ##
11330## ------------------------------------------ ##
11331_ASBOX
11332 ) |
11333 sed "s/^/$as_me: WARNING: /" >&2
11334 ;;
11335esac
11336echo "$as_me:$LINENO: checking for $ac_header" >&5
11337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11338if eval "test \"\${$as_ac_Header+set}\" = set"; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11340else
11341 eval "$as_ac_Header=\$ac_header_preproc"
11342fi
11343echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11344echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11345
11346fi
11347if test `eval echo '${'$as_ac_Header'}'` = yes; then
11348 cat >>confdefs.h <<_ACEOF
11349#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11350_ACEOF
11351
11352fi
11353
Bram Moolenaar071d4272004-06-13 20:20:40 +000011354done
11355
11356fi
11357
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011358echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5
11359echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011360cppflags_save=$CPPFLAGS
11361CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011362cat >conftest.$ac_ext <<_ACEOF
11363/* confdefs.h. */
11364_ACEOF
11365cat confdefs.h >>conftest.$ac_ext
11366cat >>conftest.$ac_ext <<_ACEOF
11367/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011368
11369#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO)
11370# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */
11371 /* but don't do it on AIX 5.1 (Uribarri) */
11372#endif
11373#ifdef HAVE_XM_XM_H
11374# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */
11375#endif
11376#ifdef HAVE_STRING_H
11377# include <string.h>
11378#endif
11379#if defined(HAVE_STRINGS_H)
11380# include <strings.h>
11381#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011382
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011383int
11384main ()
11385{
11386int i; i = 0;
11387 ;
11388 return 0;
11389}
11390_ACEOF
11391rm -f conftest.$ac_objext
11392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11393 (eval $ac_compile) 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -z "$ac_c_werror_flag"
11401 || test ! -s conftest.err'
11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11403 (eval $ac_try) 2>&5
11404 ac_status=$?
11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406 (exit $ac_status); }; } &&
11407 { ac_try='test -s conftest.$ac_objext'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 echo "$as_me:$LINENO: result: yes" >&5
11414echo "${ECHO_T}yes" >&6
11415else
11416 echo "$as_me: failed program was:" >&5
11417sed 's/^/| /' conftest.$ac_ext >&5
11418
11419cat >>confdefs.h <<\_ACEOF
11420#define NO_STRINGS_WITH_STRING_H 1
11421_ACEOF
11422
11423 echo "$as_me:$LINENO: result: no" >&5
11424echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011425fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011427CPPFLAGS=$cppflags_save
11428
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011429if test $ac_cv_c_compiler_gnu = yes; then
11430 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11431echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11432if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011434else
11435 ac_pattern="Autoconf.*'x'"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011436 cat >conftest.$ac_ext <<_ACEOF
11437/* confdefs.h. */
11438_ACEOF
11439cat confdefs.h >>conftest.$ac_ext
11440cat >>conftest.$ac_ext <<_ACEOF
11441/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011442#include <sgtty.h>
11443Autoconf TIOCGETP
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011444_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011446 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011447 ac_cv_prog_gcc_traditional=yes
11448else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011449 ac_cv_prog_gcc_traditional=no
11450fi
11451rm -f conftest*
11452
11453
11454 if test $ac_cv_prog_gcc_traditional = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011455 cat >conftest.$ac_ext <<_ACEOF
11456/* confdefs.h. */
11457_ACEOF
11458cat confdefs.h >>conftest.$ac_ext
11459cat >>conftest.$ac_ext <<_ACEOF
11460/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011461#include <termio.h>
11462Autoconf TCGETA
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011463_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011465 $EGREP "$ac_pattern" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011466 ac_cv_prog_gcc_traditional=yes
11467fi
11468rm -f conftest*
11469
11470 fi
11471fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011472echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11473echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011474 if test $ac_cv_prog_gcc_traditional = yes; then
11475 CC="$CC -traditional"
11476 fi
11477fi
11478
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011479echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11480echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11481if test "${ac_cv_c_const+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011483else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011484 cat >conftest.$ac_ext <<_ACEOF
11485/* confdefs.h. */
11486_ACEOF
11487cat confdefs.h >>conftest.$ac_ext
11488cat >>conftest.$ac_ext <<_ACEOF
11489/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011490
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011491int
11492main ()
11493{
11494/* FIXME: Include the comments suggested by Paul. */
11495#ifndef __cplusplus
11496 /* Ultrix mips cc rejects this. */
11497 typedef int charset[2];
11498 const charset x;
11499 /* SunOS 4.1.1 cc rejects this. */
11500 char const *const *ccp;
11501 char **p;
11502 /* NEC SVR4.0.2 mips cc rejects this. */
11503 struct point {int x, y;};
11504 static struct point const zero = {0,0};
11505 /* AIX XL C 1.02.0.0 rejects this.
11506 It does not let you subtract one const X* pointer from another in
11507 an arm of an if-expression whose if-part is not a constant
11508 expression */
11509 const char *g = "string";
11510 ccp = &g + (g ? g-g : 0);
11511 /* HPUX 7.0 cc rejects these. */
11512 ++ccp;
11513 p = (char**) ccp;
11514 ccp = (char const *const *) p;
11515 { /* SCO 3.2v4 cc rejects this. */
11516 char *t;
11517 char const *s = 0 ? (char *) 0 : (char const *) 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011518
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011519 *t++ = 0;
11520 }
11521 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11522 int x[] = {25, 17};
11523 const int *foo = &x[0];
11524 ++foo;
11525 }
11526 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11527 typedef const int *iptr;
11528 iptr p = 0;
11529 ++p;
11530 }
11531 { /* AIX XL C 1.02.0.0 rejects this saying
11532 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11533 struct s { int j; const int *ap[3]; };
11534 struct s *b; b->j = 5;
11535 }
11536 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11537 const int foo = 10;
11538 }
11539#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000011540
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011541 ;
11542 return 0;
Bram Moolenaar071d4272004-06-13 20:20:40 +000011543}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011544_ACEOF
11545rm -f conftest.$ac_objext
11546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11547 (eval $ac_compile) 2>conftest.er1
11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } &&
11554 { ac_try='test -z "$ac_c_werror_flag"
11555 || test ! -s conftest.err'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11558 ac_status=$?
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; } &&
11561 { ac_try='test -s conftest.$ac_objext'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011567 ac_cv_c_const=yes
11568else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011569 echo "$as_me: failed program was:" >&5
11570sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011571
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011572ac_cv_c_const=no
11573fi
11574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11575fi
11576echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11577echo "${ECHO_T}$ac_cv_c_const" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011578if test $ac_cv_c_const = no; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011579
11580cat >>confdefs.h <<\_ACEOF
11581#define const
11582_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011583
11584fi
11585
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011586echo "$as_me:$LINENO: checking for mode_t" >&5
11587echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11588if test "${ac_cv_type_mode_t+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011590else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011591 cat >conftest.$ac_ext <<_ACEOF
11592/* confdefs.h. */
11593_ACEOF
11594cat confdefs.h >>conftest.$ac_ext
11595cat >>conftest.$ac_ext <<_ACEOF
11596/* end confdefs.h. */
11597$ac_includes_default
11598int
11599main ()
11600{
11601if ((mode_t *) 0)
11602 return 0;
11603if (sizeof (mode_t))
11604 return 0;
11605 ;
11606 return 0;
11607}
11608_ACEOF
11609rm -f conftest.$ac_objext
11610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11611 (eval $ac_compile) 2>conftest.er1
11612 ac_status=$?
11613 grep -v '^ *+' conftest.er1 >conftest.err
11614 rm -f conftest.er1
11615 cat conftest.err >&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } &&
11618 { ac_try='test -z "$ac_c_werror_flag"
11619 || test ! -s conftest.err'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; } &&
11625 { ac_try='test -s conftest.$ac_objext'
11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11628 ac_status=$?
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011631 ac_cv_type_mode_t=yes
11632else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011633 echo "$as_me: failed program was:" >&5
11634sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011635
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011636ac_cv_type_mode_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011637fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011639fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011640echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11641echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11642if test $ac_cv_type_mode_t = yes; then
11643 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011644else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011645
11646cat >>confdefs.h <<_ACEOF
11647#define mode_t int
11648_ACEOF
11649
11650fi
11651
11652echo "$as_me:$LINENO: checking for off_t" >&5
11653echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11654if test "${ac_cv_type_off_t+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656else
11657 cat >conftest.$ac_ext <<_ACEOF
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
11663$ac_includes_default
11664int
11665main ()
11666{
11667if ((off_t *) 0)
11668 return 0;
11669if (sizeof (off_t))
11670 return 0;
11671 ;
11672 return 0;
11673}
11674_ACEOF
11675rm -f conftest.$ac_objext
11676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11677 (eval $ac_compile) 2>conftest.er1
11678 ac_status=$?
11679 grep -v '^ *+' conftest.er1 >conftest.err
11680 rm -f conftest.er1
11681 cat conftest.err >&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -z "$ac_c_werror_flag"
11685 || test ! -s conftest.err'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11688 ac_status=$?
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; } &&
11691 { ac_try='test -s conftest.$ac_objext'
11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11693 (eval $ac_try) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011697 ac_cv_type_off_t=yes
11698else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011701
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011702ac_cv_type_off_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011703fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011705fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011706echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11707echo "${ECHO_T}$ac_cv_type_off_t" >&6
11708if test $ac_cv_type_off_t = yes; then
11709 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011710else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011711
11712cat >>confdefs.h <<_ACEOF
11713#define off_t long
11714_ACEOF
11715
11716fi
11717
11718echo "$as_me:$LINENO: checking for pid_t" >&5
11719echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11720if test "${ac_cv_type_pid_t+set}" = set; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11722else
11723 cat >conftest.$ac_ext <<_ACEOF
11724/* confdefs.h. */
11725_ACEOF
11726cat confdefs.h >>conftest.$ac_ext
11727cat >>conftest.$ac_ext <<_ACEOF
11728/* end confdefs.h. */
11729$ac_includes_default
11730int
11731main ()
11732{
11733if ((pid_t *) 0)
11734 return 0;
11735if (sizeof (pid_t))
11736 return 0;
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext
11742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11743 (eval $ac_compile) 2>conftest.er1
11744 ac_status=$?
11745 grep -v '^ *+' conftest.er1 >conftest.err
11746 rm -f conftest.er1
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } &&
11750 { ac_try='test -z "$ac_c_werror_flag"
11751 || test ! -s conftest.err'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011763 ac_cv_type_pid_t=yes
11764else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011765 echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011767
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011768ac_cv_type_pid_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011769fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011771fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011772echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11773echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11774if test $ac_cv_type_pid_t = yes; then
11775 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011776else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011777
11778cat >>confdefs.h <<_ACEOF
11779#define pid_t int
11780_ACEOF
11781
11782fi
11783
11784echo "$as_me:$LINENO: checking for size_t" >&5
11785echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11786if test "${ac_cv_type_size_t+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788else
11789 cat >conftest.$ac_ext <<_ACEOF
11790/* confdefs.h. */
11791_ACEOF
11792cat confdefs.h >>conftest.$ac_ext
11793cat >>conftest.$ac_ext <<_ACEOF
11794/* end confdefs.h. */
11795$ac_includes_default
11796int
11797main ()
11798{
11799if ((size_t *) 0)
11800 return 0;
11801if (sizeof (size_t))
11802 return 0;
11803 ;
11804 return 0;
11805}
11806_ACEOF
11807rm -f conftest.$ac_objext
11808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11809 (eval $ac_compile) 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } &&
11816 { ac_try='test -z "$ac_c_werror_flag"
11817 || test ! -s conftest.err'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try='test -s conftest.$ac_objext'
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011829 ac_cv_type_size_t=yes
11830else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011831 echo "$as_me: failed program was:" >&5
11832sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011833
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011834ac_cv_type_size_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000011835fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000011837fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011838echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11839echo "${ECHO_T}$ac_cv_type_size_t" >&6
11840if test $ac_cv_type_size_t = yes; then
11841 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000011842else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011843
11844cat >>confdefs.h <<_ACEOF
11845#define size_t unsigned
11846_ACEOF
11847
11848fi
11849
11850echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11851echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11852if test "${ac_cv_type_uid_t+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854else
11855 cat >conftest.$ac_ext <<_ACEOF
11856/* confdefs.h. */
11857_ACEOF
11858cat confdefs.h >>conftest.$ac_ext
11859cat >>conftest.$ac_ext <<_ACEOF
11860/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011861#include <sys/types.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011862
11863_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011865 $EGREP "uid_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011866 ac_cv_type_uid_t=yes
11867else
Bram Moolenaar071d4272004-06-13 20:20:40 +000011868 ac_cv_type_uid_t=no
11869fi
11870rm -f conftest*
11871
11872fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011873echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11874echo "${ECHO_T}$ac_cv_type_uid_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011875if test $ac_cv_type_uid_t = no; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011876
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011877cat >>confdefs.h <<\_ACEOF
11878#define uid_t int
11879_ACEOF
11880
11881
11882cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011883#define gid_t int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011884_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011885
11886fi
11887
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011888echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11889echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11890if test "${ac_cv_header_time+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011892else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011893 cat >conftest.$ac_ext <<_ACEOF
11894/* confdefs.h. */
11895_ACEOF
11896cat confdefs.h >>conftest.$ac_ext
11897cat >>conftest.$ac_ext <<_ACEOF
11898/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000011899#include <sys/types.h>
11900#include <sys/time.h>
11901#include <time.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011902
11903int
11904main ()
11905{
11906if ((struct tm *) 0)
11907return 0;
11908 ;
11909 return 0;
11910}
11911_ACEOF
11912rm -f conftest.$ac_objext
11913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914 (eval $ac_compile) 2>conftest.er1
11915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try='test -z "$ac_c_werror_flag"
11922 || test ! -s conftest.err'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest.$ac_objext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011934 ac_cv_header_time=yes
11935else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011936 echo "$as_me: failed program was:" >&5
11937sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000011938
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011939ac_cv_header_time=no
11940fi
11941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11942fi
11943echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11944echo "${ECHO_T}$ac_cv_header_time" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011945if test $ac_cv_header_time = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011946
11947cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011948#define TIME_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011949_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000011950
11951fi
11952
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011953echo "$as_me:$LINENO: checking for ino_t" >&5
11954echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11955if test "${ac_cv_type_ino_t+set}" = set; then
11956 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000011957else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000011958 cat >conftest.$ac_ext <<_ACEOF
11959/* confdefs.h. */
11960_ACEOF
11961cat confdefs.h >>conftest.$ac_ext
11962cat >>conftest.$ac_ext <<_ACEOF
11963/* end confdefs.h. */
11964$ac_includes_default
11965int
11966main ()
11967{
11968if ((ino_t *) 0)
11969 return 0;
11970if (sizeof (ino_t))
11971 return 0;
11972 ;
11973 return 0;
11974}
11975_ACEOF
11976rm -f conftest.$ac_objext
11977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11978 (eval $ac_compile) 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } &&
11985 { ac_try='test -z "$ac_c_werror_flag"
11986 || test ! -s conftest.err'
11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988 (eval $ac_try) 2>&5
11989 ac_status=$?
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); }; } &&
11992 { ac_try='test -s conftest.$ac_objext'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000011998 ac_cv_type_ino_t=yes
11999else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012000 echo "$as_me: failed program was:" >&5
12001sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012002
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012003ac_cv_type_ino_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000012004fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012006fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012007echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12008echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12009if test $ac_cv_type_ino_t = yes; then
12010 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000012011else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012012
12013cat >>confdefs.h <<_ACEOF
12014#define ino_t long
12015_ACEOF
12016
12017fi
12018
12019echo "$as_me:$LINENO: checking for dev_t" >&5
12020echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12021if test "${ac_cv_type_dev_t+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023else
12024 cat >conftest.$ac_ext <<_ACEOF
12025/* confdefs.h. */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h. */
12030$ac_includes_default
12031int
12032main ()
12033{
12034if ((dev_t *) 0)
12035 return 0;
12036if (sizeof (dev_t))
12037 return 0;
12038 ;
12039 return 0;
12040}
12041_ACEOF
12042rm -f conftest.$ac_objext
12043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12044 (eval $ac_compile) 2>conftest.er1
12045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_c_werror_flag"
12052 || test ! -s conftest.err'
12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12055 ac_status=$?
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); }; } &&
12058 { ac_try='test -s conftest.$ac_objext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012064 ac_cv_type_dev_t=yes
12065else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012066 echo "$as_me: failed program was:" >&5
12067sed 's/^/| /' conftest.$ac_ext >&5
12068
12069ac_cv_type_dev_t=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000012070fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012072fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012073echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12074echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12075if test $ac_cv_type_dev_t = yes; then
12076 :
Bram Moolenaar071d4272004-06-13 20:20:40 +000012077else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012078
12079cat >>confdefs.h <<_ACEOF
12080#define dev_t unsigned
12081_ACEOF
12082
12083fi
12084
12085
12086echo "$as_me:$LINENO: checking for rlim_t" >&5
12087echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6
12088if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then
12089 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5
12090echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6
12091else
12092 cat >conftest.$ac_ext <<_ACEOF
12093/* confdefs.h. */
12094_ACEOF
12095cat confdefs.h >>conftest.$ac_ext
12096cat >>conftest.$ac_ext <<_ACEOF
12097/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012098
12099#include <sys/types.h>
12100#if STDC_HEADERS
12101#include <stdlib.h>
12102#include <stddef.h>
12103#endif
12104#ifdef HAVE_SYS_RESOURCE_H
12105#include <sys/resource.h>
12106#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012107
12108_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012110 $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 +000012111 ac_cv_type_rlim_t=yes
12112else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012113 ac_cv_type_rlim_t=no
12114fi
12115rm -f conftest*
12116
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012117 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5
12118echo "${ECHO_T}$ac_cv_type_rlim_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012119fi
12120if test $ac_cv_type_rlim_t = no; then
12121 cat >> confdefs.h <<\EOF
12122#define rlim_t unsigned long
12123EOF
12124fi
12125
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012126echo "$as_me:$LINENO: checking for stack_t" >&5
12127echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012128if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012129 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5
12130echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012131else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012132 cat >conftest.$ac_ext <<_ACEOF
12133/* confdefs.h. */
12134_ACEOF
12135cat confdefs.h >>conftest.$ac_ext
12136cat >>conftest.$ac_ext <<_ACEOF
12137/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012138
12139#include <sys/types.h>
12140#if STDC_HEADERS
12141#include <stdlib.h>
12142#include <stddef.h>
12143#endif
12144#include <signal.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012145
12146_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012148 $EGREP "stack_t" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012149 ac_cv_type_stack_t=yes
12150else
Bram Moolenaar071d4272004-06-13 20:20:40 +000012151 ac_cv_type_stack_t=no
12152fi
12153rm -f conftest*
12154
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012155 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
12156echo "${ECHO_T}$ac_cv_type_stack_t" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012157fi
12158if test $ac_cv_type_stack_t = no; then
12159 cat >> confdefs.h <<\EOF
12160#define stack_t struct sigaltstack
12161EOF
12162fi
12163
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012164echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5
12165echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6
12166cat >conftest.$ac_ext <<_ACEOF
12167/* confdefs.h. */
12168_ACEOF
12169cat confdefs.h >>conftest.$ac_ext
12170cat >>conftest.$ac_ext <<_ACEOF
12171/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012172
12173#include <sys/types.h>
12174#if STDC_HEADERS
12175#include <stdlib.h>
12176#include <stddef.h>
12177#endif
12178#include <signal.h>
12179#include "confdefs.h"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012180
12181int
12182main ()
12183{
12184stack_t sigstk; sigstk.ss_base = 0;
12185 ;
12186 return 0;
12187}
12188_ACEOF
12189rm -f conftest.$ac_objext
12190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191 (eval $ac_compile) 2>conftest.er1
12192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag"
12199 || test ! -s conftest.err'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } &&
12205 { ac_try='test -s conftest.$ac_objext'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12208 ac_status=$?
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 echo "$as_me:$LINENO: result: yes" >&5
12212echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012213#define HAVE_SS_BASE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012214_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012215
12216else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012217 echo "$as_me: failed program was:" >&5
12218sed 's/^/| /' conftest.$ac_ext >&5
12219
12220echo "$as_me:$LINENO: result: no" >&5
12221echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012222fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012224
12225olibs="$LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012226echo "$as_me:$LINENO: checking --with-tlib argument" >&5
12227echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6
12228
Bram Moolenaar071d4272004-06-13 20:20:40 +000012229# Check whether --with-tlib or --without-tlib was given.
12230if test "${with_tlib+set}" = set; then
12231 withval="$with_tlib"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012232
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012233fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000012234if test -n "$with_tlib"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012235 echo "$as_me:$LINENO: result: $with_tlib" >&5
12236echo "${ECHO_T}$with_tlib" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012237 LIBS="$LIBS -l$with_tlib"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012238 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5
12239echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6
12240 cat >conftest.$ac_ext <<_ACEOF
12241/* confdefs.h. */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
12245/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012246
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012247int
12248main ()
12249{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012250
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012251 ;
12252 return 0;
12253}
12254_ACEOF
12255rm -f conftest.$ac_objext conftest$ac_exeext
12256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12257 (eval $ac_link) 2>conftest.er1
12258 ac_status=$?
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -z "$ac_c_werror_flag"
12265 || test ! -s conftest.err'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s 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 echo "$as_me:$LINENO: result: OK" >&5
12278echo "${ECHO_T}OK" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012279else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012280 echo "$as_me: failed program was:" >&5
12281sed 's/^/| /' conftest.$ac_ext >&5
12282
12283{ { echo "$as_me:$LINENO: error: FAILED" >&5
12284echo "$as_me: error: FAILED" >&2;}
12285 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012286fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012287rm -f conftest.err conftest.$ac_objext \
12288 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012289 olibs="$LIBS"
12290else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012291 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5
12292echo "${ECHO_T}empty: automatic terminal library selection" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012293 case "`uname -s 2>/dev/null`" in
12294 OSF1) tlibs="ncurses curses termlib termcap";;
12295 *) tlibs="ncurses termlib termcap curses";;
12296 esac
12297 for libname in $tlibs; do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012298
12299as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh`
12300echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5
12301echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6
12302if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012304else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012305 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000012306LIBS="-l${libname} $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012307cat >conftest.$ac_ext <<_ACEOF
12308/* confdefs.h. */
12309_ACEOF
12310cat confdefs.h >>conftest.$ac_ext
12311cat >>conftest.$ac_ext <<_ACEOF
12312/* end confdefs.h. */
12313
Bram Moolenaar071d4272004-06-13 20:20:40 +000012314/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012315#ifdef __cplusplus
12316extern "C"
12317#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000012318/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012319 builtin and then its argument prototype would still apply. */
12320char tgetent ();
12321int
12322main ()
12323{
12324tgetent ();
12325 ;
12326 return 0;
12327}
12328_ACEOF
12329rm -f conftest.$ac_objext conftest$ac_exeext
12330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12331 (eval $ac_link) 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } &&
12338 { ac_try='test -z "$ac_c_werror_flag"
12339 || test ! -s conftest.err'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; } &&
12345 { ac_try='test -s conftest$ac_exeext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12351 eval "$as_ac_Lib=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012352else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012353 echo "$as_me: failed program was:" >&5
12354sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012355
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012356eval "$as_ac_Lib=no"
Bram Moolenaar071d4272004-06-13 20:20:40 +000012357fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012358rm -f conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12360LIBS=$ac_check_lib_save_LIBS
12361fi
12362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12363echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12364if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12365 cat >>confdefs.h <<_ACEOF
12366#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1
12367_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012368
12369 LIBS="-l${libname} $LIBS"
12370
Bram Moolenaar071d4272004-06-13 20:20:40 +000012371fi
12372
12373 if test "x$olibs" != "x$LIBS"; then
12374 if test "$cross_compiling" = yes; then
12375 res="FAIL"
12376else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012377 cat >conftest.$ac_ext <<_ACEOF
12378/* confdefs.h. */
12379_ACEOF
12380cat confdefs.h >>conftest.$ac_ext
12381cat >>conftest.$ac_ext <<_ACEOF
12382/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012383
12384#ifdef HAVE_TERMCAP_H
12385# include <termcap.h>
12386#endif
12387main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012388_ACEOF
12389rm -f conftest$ac_exeext
12390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12391 (eval $ac_link) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000012400 res="OK"
12401else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012402 echo "$as_me: program exited with status $ac_status" >&5
12403echo "$as_me: failed program was:" >&5
12404sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012405
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012406( exit $ac_status )
12407res="FAIL"
12408fi
12409rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12410fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012411 if test "$res" = "OK"; then
12412 break
12413 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012414 echo "$as_me:$LINENO: result: $libname library is not usable" >&5
12415echo "${ECHO_T}$libname library is not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012416 LIBS="$olibs"
12417 fi
12418 done
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012419 if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012420 echo "$as_me:$LINENO: result: no terminal library found" >&5
12421echo "${ECHO_T}no terminal library found" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012422 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012423fi
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012424
12425if test "x$olibs" = "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012426 echo "$as_me:$LINENO: checking for tgetent()" >&5
12427echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6
12428 cat >conftest.$ac_ext <<_ACEOF
12429/* confdefs.h. */
12430_ACEOF
12431cat confdefs.h >>conftest.$ac_ext
12432cat >>conftest.$ac_ext <<_ACEOF
12433/* end confdefs.h. */
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012434
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012435int
12436main ()
12437{
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012438char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012439 ;
12440 return 0;
12441}
12442_ACEOF
12443rm -f conftest.$ac_objext conftest$ac_exeext
12444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445 (eval $ac_link) 2>conftest.er1
12446 ac_status=$?
12447 grep -v '^ *+' conftest.er1 >conftest.err
12448 rm -f conftest.er1
12449 cat conftest.err >&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); } &&
12452 { ac_try='test -z "$ac_c_werror_flag"
12453 || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest$ac_exeext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12462 ac_status=$?
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 echo "$as_me:$LINENO: result: yes" >&5
12466echo "${ECHO_T}yes" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012467else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012468 echo "$as_me: failed program was:" >&5
12469sed 's/^/| /' conftest.$ac_ext >&5
12470
12471{ { echo "$as_me:$LINENO: error: NOT FOUND!
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012472 You need to install a terminal library; for example ncurses.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012473 Or specify the name of the library with --with-tlib." >&5
12474echo "$as_me: error: NOT FOUND!
12475 You need to install a terminal library; for example ncurses.
12476 Or specify the name of the library with --with-tlib." >&2;}
12477 { (exit 1); exit 1; }; }
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012478fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012479rm -f conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012481fi
12482
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012483echo "$as_me:$LINENO: checking whether we talk terminfo" >&5
12484echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6
Bram Moolenaar1cd871b2004-12-19 22:46:22 +000012485if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012486 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12487echo "$as_me: error: failed to compile test program." >&2;}
12488 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012489else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012490 cat >conftest.$ac_ext <<_ACEOF
12491/* confdefs.h. */
12492_ACEOF
12493cat confdefs.h >>conftest.$ac_ext
12494cat >>conftest.$ac_ext <<_ACEOF
12495/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012496
12497#ifdef HAVE_TERMCAP_H
12498# include <termcap.h>
12499#endif
12500main()
12501{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012502_ACEOF
12503rm -f conftest$ac_exeext
12504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5
12515echo "${ECHO_T}no -- we are in termcap land" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012516else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012517 echo "$as_me: program exited with status $ac_status" >&5
12518echo "$as_me: failed program was:" >&5
12519sed 's/^/| /' conftest.$ac_ext >&5
12520
12521( exit $ac_status )
12522echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5
12523echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012524#define TERMINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012525_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012526
12527fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012528rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012529fi
12530
Bram Moolenaar071d4272004-06-13 20:20:40 +000012531if test "x$olibs" != "x$LIBS"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012532 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5
12533echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012534 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012535 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5
12536echo "$as_me: error: failed to compile test program." >&2;}
12537 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000012538else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012539 cat >conftest.$ac_ext <<_ACEOF
12540/* confdefs.h. */
12541_ACEOF
12542cat confdefs.h >>conftest.$ac_ext
12543cat >>conftest.$ac_ext <<_ACEOF
12544/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012545
12546#ifdef HAVE_TERMCAP_H
12547# include <termcap.h>
12548#endif
12549main()
12550{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012551_ACEOF
12552rm -f conftest$ac_exeext
12553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12554 (eval $ac_link) 2>&5
12555 ac_status=$?
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 echo "$as_me:$LINENO: result: zero" >&5
12564echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012565#define TGETENT_ZERO_ERR 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012566_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012567
12568else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012569 echo "$as_me: program exited with status $ac_status" >&5
12570echo "$as_me: failed program was:" >&5
12571sed 's/^/| /' conftest.$ac_ext >&5
12572
12573( exit $ac_status )
12574echo "$as_me:$LINENO: result: non-zero" >&5
12575echo "${ECHO_T}non-zero" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012576fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012577rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12578fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000012579fi
12580
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012581echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5
12582echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6
12583cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012589
12590#ifdef HAVE_TERMCAP_H
12591# include <termcap.h>
12592#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012593
12594int
12595main ()
12596{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012597ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012598 ;
12599 return 0;
12600}
12601_ACEOF
12602rm -f conftest.$ac_objext conftest$ac_exeext
12603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12604 (eval $ac_link) 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
12611 { ac_try='test -z "$ac_c_werror_flag"
12612 || test ! -s conftest.err'
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; } &&
12618 { ac_try='test -s conftest$ac_exeext'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 echo "$as_me:$LINENO: result: yes" >&5
12625echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012626#define HAVE_OSPEED 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012627_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012628
12629else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012630 echo "$as_me: failed program was:" >&5
12631sed 's/^/| /' conftest.$ac_ext >&5
12632
12633echo "$as_me:$LINENO: result: no" >&5
12634echo "${ECHO_T}no" >&6
12635 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5
12636echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6
12637 cat >conftest.$ac_ext <<_ACEOF
12638/* confdefs.h. */
12639_ACEOF
12640cat confdefs.h >>conftest.$ac_ext
12641cat >>conftest.$ac_ext <<_ACEOF
12642/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012643
12644#ifdef HAVE_TERMCAP_H
12645# include <termcap.h>
12646#endif
12647extern short ospeed;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012648
12649int
12650main ()
12651{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012652ospeed = 20000
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012653 ;
12654 return 0;
12655}
12656_ACEOF
12657rm -f conftest.$ac_objext conftest$ac_exeext
12658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12659 (eval $ac_link) 2>conftest.er1
12660 ac_status=$?
12661 grep -v '^ *+' conftest.er1 >conftest.err
12662 rm -f conftest.er1
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag"
12667 || test ! -s conftest.err'
12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12670 ac_status=$?
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try='test -s conftest$ac_exeext'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12676 ac_status=$?
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; }; then
12679 echo "$as_me:$LINENO: result: yes" >&5
12680echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012681#define OSPEED_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012682_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012683
12684else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012687
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012688echo "$as_me:$LINENO: result: no" >&5
12689echo "${ECHO_T}no" >&6
12690fi
12691rm -f conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12693
12694fi
12695rm -f conftest.err conftest.$ac_objext \
12696 conftest$ac_exeext conftest.$ac_ext
12697
12698echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5
12699echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6
12700cat >conftest.$ac_ext <<_ACEOF
12701/* confdefs.h. */
12702_ACEOF
12703cat confdefs.h >>conftest.$ac_ext
12704cat >>conftest.$ac_ext <<_ACEOF
12705/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012706
12707#ifdef HAVE_TERMCAP_H
12708# include <termcap.h>
12709#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012710
12711int
12712main ()
12713{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012714if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012715 ;
12716 return 0;
12717}
12718_ACEOF
12719rm -f conftest.$ac_objext conftest$ac_exeext
12720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12721 (eval $ac_link) 2>conftest.er1
12722 ac_status=$?
12723 grep -v '^ *+' conftest.er1 >conftest.err
12724 rm -f conftest.er1
12725 cat conftest.err >&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } &&
12728 { ac_try='test -z "$ac_c_werror_flag"
12729 || test ! -s conftest.err'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; } &&
12735 { ac_try='test -s conftest$ac_exeext'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12738 ac_status=$?
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12741 echo "$as_me:$LINENO: result: yes" >&5
12742echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012743#define HAVE_UP_BC_PC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012744_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012745
12746else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012747 echo "$as_me: failed program was:" >&5
12748sed 's/^/| /' conftest.$ac_ext >&5
12749
12750echo "$as_me:$LINENO: result: no" >&5
12751echo "${ECHO_T}no" >&6
12752 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5
12753echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6
12754 cat >conftest.$ac_ext <<_ACEOF
12755/* confdefs.h. */
12756_ACEOF
12757cat confdefs.h >>conftest.$ac_ext
12758cat >>conftest.$ac_ext <<_ACEOF
12759/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012760
12761#ifdef HAVE_TERMCAP_H
12762# include <termcap.h>
12763#endif
12764extern char *UP, *BC, PC;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012765
12766int
12767main ()
12768{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012769if (UP == 0 && BC == 0) PC = 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012770 ;
12771 return 0;
12772}
12773_ACEOF
12774rm -f conftest.$ac_objext conftest$ac_exeext
12775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776 (eval $ac_link) 2>conftest.er1
12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } &&
12783 { ac_try='test -z "$ac_c_werror_flag"
12784 || test ! -s conftest.err'
12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12786 (eval $ac_try) 2>&5
12787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; } &&
12790 { ac_try='test -s conftest$ac_exeext'
12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792 (eval $ac_try) 2>&5
12793 ac_status=$?
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); }; }; then
12796 echo "$as_me:$LINENO: result: yes" >&5
12797echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012798#define UP_BC_PC_EXTERN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012799_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012800
12801else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012802 echo "$as_me: failed program was:" >&5
12803sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012804
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012805echo "$as_me:$LINENO: result: no" >&5
12806echo "${ECHO_T}no" >&6
12807fi
12808rm -f conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext conftest.$ac_ext
12810
12811fi
12812rm -f conftest.err conftest.$ac_objext \
12813 conftest$ac_exeext conftest.$ac_ext
12814
12815echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5
12816echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6
12817cat >conftest.$ac_ext <<_ACEOF
12818/* confdefs.h. */
12819_ACEOF
12820cat confdefs.h >>conftest.$ac_ext
12821cat >>conftest.$ac_ext <<_ACEOF
12822/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012823
12824#ifdef HAVE_TERMCAP_H
12825# include <termcap.h>
12826#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012827
12828int
12829main ()
12830{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012831extern int xx(); tputs("test", 1, (outfuntype)xx)
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012832 ;
12833 return 0;
12834}
12835_ACEOF
12836rm -f conftest.$ac_objext
12837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12838 (eval $ac_compile) 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_c_werror_flag"
12846 || test ! -s conftest.err'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest.$ac_objext'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 echo "$as_me:$LINENO: result: yes" >&5
12859echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012860#define HAVE_OUTFUNTYPE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012861_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012862
12863else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012864 echo "$as_me: failed program was:" >&5
12865sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000012866
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012867echo "$as_me:$LINENO: result: no" >&5
12868echo "${ECHO_T}no" >&6
12869fi
12870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12871
12872echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5
12873echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6
12874cat >conftest.$ac_ext <<_ACEOF
12875/* confdefs.h. */
12876_ACEOF
12877cat confdefs.h >>conftest.$ac_ext
12878cat >>conftest.$ac_ext <<_ACEOF
12879/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012880
12881#include <sys/types.h>
12882#include <sys/time.h>
12883#include <sys/select.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012884int
12885main ()
12886{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012887
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012888 ;
12889 return 0;
12890}
12891_ACEOF
12892rm -f conftest.$ac_objext
12893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag"
12902 || test ! -s conftest.err'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest.$ac_objext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 echo "$as_me:$LINENO: result: yes" >&5
12915echo "${ECHO_T}yes" >&6
12916 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012917#define SYS_SELECT_WITH_SYS_TIME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012918_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012919
12920else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012921 echo "$as_me: failed program was:" >&5
12922sed 's/^/| /' conftest.$ac_ext >&5
12923
12924echo "$as_me:$LINENO: result: no" >&5
12925echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012926fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012928
12929
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012930echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12931echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012932if test -r /dev/ptc; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012933 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012934#define HAVE_DEV_PTC 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012935_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012936
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012937 echo "$as_me:$LINENO: result: yes" >&5
12938echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012939else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012940 echo "$as_me:$LINENO: result: no" >&5
12941echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012942fi
12943
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012944echo "$as_me:$LINENO: checking for SVR4 ptys" >&5
12945echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012946if test -c /dev/ptmx ; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012947 cat >conftest.$ac_ext <<_ACEOF
12948/* confdefs.h. */
12949_ACEOF
12950cat confdefs.h >>conftest.$ac_ext
12951cat >>conftest.$ac_ext <<_ACEOF
12952/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000012953
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012954int
12955main ()
12956{
Bram Moolenaar071d4272004-06-13 20:20:40 +000012957ptsname(0);grantpt(0);unlockpt(0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012958 ;
12959 return 0;
12960}
12961_ACEOF
12962rm -f conftest.$ac_objext conftest$ac_exeext
12963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12964 (eval $ac_link) 2>conftest.er1
12965 ac_status=$?
12966 grep -v '^ *+' conftest.er1 >conftest.err
12967 rm -f conftest.er1
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); } &&
12971 { ac_try='test -z "$ac_c_werror_flag"
12972 || test ! -s conftest.err'
12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12974 (eval $ac_try) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; } &&
12978 { ac_try='test -s conftest$ac_exeext'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12981 ac_status=$?
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12984 echo "$as_me:$LINENO: result: yes" >&5
12985echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012986#define HAVE_SVR4_PTYS 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012987_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000012988
12989else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012990 echo "$as_me: failed program was:" >&5
12991sed 's/^/| /' conftest.$ac_ext >&5
12992
12993echo "$as_me:$LINENO: result: no" >&5
12994echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000012995fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012996rm -f conftest.err conftest.$ac_objext \
12997 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000012998else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000012999 echo "$as_me:$LINENO: result: no" >&5
13000echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013001fi
13002
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013003echo "$as_me:$LINENO: checking for ptyranges" >&5
13004echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013005if test -d /dev/ptym ; then
13006 pdir='/dev/ptym'
13007else
13008 pdir='/dev'
13009fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013010cat >conftest.$ac_ext <<_ACEOF
13011/* confdefs.h. */
13012_ACEOF
13013cat confdefs.h >>conftest.$ac_ext
13014cat >>conftest.$ac_ext <<_ACEOF
13015/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013016#ifdef M_UNIX
13017 yes;
13018#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013019
13020_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013022 $EGREP "yes" >/dev/null 2>&1; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013023 ptys=`echo /dev/ptyp??`
13024else
Bram Moolenaar071d4272004-06-13 20:20:40 +000013025 ptys=`echo $pdir/pty??`
13026fi
13027rm -f conftest*
13028
13029if test "$ptys" != "$pdir/pty??" ; then
13030 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
13031 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013032 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013033#define PTYRANGE0 "$p0"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013034_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013035
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013036 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013037#define PTYRANGE1 "$p1"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013038_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013039
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013040 echo "$as_me:$LINENO: result: $p0 / $p1" >&5
13041echo "${ECHO_T}$p0 / $p1" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013042else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013043 echo "$as_me:$LINENO: result: don't know" >&5
13044echo "${ECHO_T}don't know" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013045fi
13046
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013047echo "$as_me:$LINENO: checking default tty permissions/group" >&5
13048echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013049rm -f conftest_grp
13050if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013051 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13052echo "$as_me: error: failed to compile test program" >&2;}
13053 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013054else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013055 cat >conftest.$ac_ext <<_ACEOF
13056/* confdefs.h. */
13057_ACEOF
13058cat confdefs.h >>conftest.$ac_ext
13059cat >>conftest.$ac_ext <<_ACEOF
13060/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013061
13062#include <sys/types.h>
13063#include <sys/stat.h>
13064#include <stdio.h>
13065main()
13066{
13067 struct stat sb;
13068 char *x,*ttyname();
13069 int om, m;
13070 FILE *fp;
13071
13072 if (!(x = ttyname(0))) exit(1);
13073 if (stat(x, &sb)) exit(1);
13074 om = sb.st_mode;
13075 if (om & 002) exit(0);
13076 m = system("mesg y");
13077 if (m == -1 || m == 127) exit(1);
13078 if (stat(x, &sb)) exit(1);
13079 m = sb.st_mode;
13080 if (chmod(x, om)) exit(1);
13081 if (m & 002) exit(0);
13082 if (sb.st_gid == getgid()) exit(1);
13083 if (!(fp=fopen("conftest_grp", "w")))
13084 exit(1);
13085 fprintf(fp, "%d\n", sb.st_gid);
13086 fclose(fp);
13087 exit(0);
13088}
13089
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013090_ACEOF
13091rm -f conftest$ac_exeext
13092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13093 (eval $ac_link) 2>&5
13094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13098 (eval $ac_try) 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; }; then
13102
Bram Moolenaar071d4272004-06-13 20:20:40 +000013103 if test -f conftest_grp; then
13104 ptygrp=`cat conftest_grp`
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013105 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5
13106echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6
13107 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013108#define PTYMODE 0620
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013109_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013110
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013111 cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013112#define PTYGROUP $ptygrp
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013113_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013114
13115 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013116 echo "$as_me:$LINENO: result: ptys are world accessable" >&5
13117echo "${ECHO_T}ptys are world accessable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013118 fi
13119
13120else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013121 echo "$as_me: program exited with status $ac_status" >&5
13122echo "$as_me: failed program was:" >&5
13123sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013124
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013125( exit $ac_status )
13126echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5
13127echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6
13128fi
13129rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13130fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000013131rm -f conftest_grp
13132
13133
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013134echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13135echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13136if test "${ac_cv_type_signal+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013138else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013139 cat >conftest.$ac_ext <<_ACEOF
13140/* confdefs.h. */
13141_ACEOF
13142cat confdefs.h >>conftest.$ac_ext
13143cat >>conftest.$ac_ext <<_ACEOF
13144/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013145#include <sys/types.h>
13146#include <signal.h>
13147#ifdef signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013148# undef signal
Bram Moolenaar071d4272004-06-13 20:20:40 +000013149#endif
13150#ifdef __cplusplus
13151extern "C" void (*signal (int, void (*)(int)))(int);
13152#else
13153void (*signal ()) ();
13154#endif
13155
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013156int
13157main ()
13158{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013159int i;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013160 ;
13161 return 0;
13162}
13163_ACEOF
13164rm -f conftest.$ac_objext
13165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166 (eval $ac_compile) 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
13173 { ac_try='test -z "$ac_c_werror_flag"
13174 || test ! -s conftest.err'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; } &&
13180 { ac_try='test -s conftest.$ac_objext'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013186 ac_cv_type_signal=void
13187else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013188 echo "$as_me: failed program was:" >&5
13189sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013190
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013191ac_cv_type_signal=int
13192fi
13193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13194fi
13195echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13196echo "${ECHO_T}$ac_cv_type_signal" >&6
13197
13198cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013199#define RETSIGTYPE $ac_cv_type_signal
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013200_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013201
13202
13203
13204if test $ac_cv_type_signal = void; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013205 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013206#define SIGRETURN return
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013207_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013208
13209else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013210 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013211#define SIGRETURN return 0
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013212_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013213
13214fi
13215
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013216echo "$as_me:$LINENO: checking for struct sigcontext" >&5
13217echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6
13218cat >conftest.$ac_ext <<_ACEOF
13219/* confdefs.h. */
13220_ACEOF
13221cat confdefs.h >>conftest.$ac_ext
13222cat >>conftest.$ac_ext <<_ACEOF
13223/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013224
13225#include <signal.h>
13226test_sig()
13227{
13228 struct sigcontext *scont;
13229 scont = (struct sigcontext *)0;
13230 return 1;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013231}
13232int
13233main ()
13234{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013235
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013236 ;
13237 return 0;
13238}
13239_ACEOF
13240rm -f conftest.$ac_objext
13241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242 (eval $ac_compile) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag"
13250 || test ! -s conftest.err'
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); }; } &&
13256 { ac_try='test -s conftest.$ac_objext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 echo "$as_me:$LINENO: result: yes" >&5
13263echo "${ECHO_T}yes" >&6
13264 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013265#define HAVE_SIGCONTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013266_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013267
13268else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272echo "$as_me:$LINENO: result: no" >&5
13273echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013274fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013276
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013277echo "$as_me:$LINENO: checking getcwd implementation" >&5
13278echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013279if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013280 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13281echo "$as_me: error: failed to compile test program" >&2;}
13282 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013283else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013284 cat >conftest.$ac_ext <<_ACEOF
13285/* confdefs.h. */
13286_ACEOF
13287cat confdefs.h >>conftest.$ac_ext
13288cat >>conftest.$ac_ext <<_ACEOF
13289/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013290
13291char *dagger[] = { "IFS=pwd", 0 };
13292main()
13293{
13294 char buffer[500];
13295 extern char **environ;
13296 environ = dagger;
13297 return getcwd(buffer, 500) ? 0 : 1;
13298}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013299_ACEOF
13300rm -f conftest$ac_exeext
13301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13302 (eval $ac_link) 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; }; then
13311 echo "$as_me:$LINENO: result: it is usable" >&5
13312echo "${ECHO_T}it is usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013313else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013314 echo "$as_me: program exited with status $ac_status" >&5
13315echo "$as_me: failed program was:" >&5
13316sed 's/^/| /' conftest.$ac_ext >&5
13317
13318( exit $ac_status )
13319echo "$as_me:$LINENO: result: it stinks" >&5
13320echo "${ECHO_T}it stinks" >&6
13321 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013322#define BAD_GETCWD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013323_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013324
13325fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013326rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013327fi
13328
13329
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
Bram Moolenaar071d4272004-06-13 20:20:40 +000013375for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \
13376 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \
13377 memset nanosleep opendir putenv qsort readlink select setenv \
13378 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \
13379 sigvec snprintf strcasecmp strerror strftime stricmp strncasecmp \
13380 strnicmp strpbrk strtol tgetent towlower towupper usleep utime utimes
13381do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13383echo "$as_me:$LINENO: checking for $ac_func" >&5
13384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13385if eval "test \"\${$as_ac_var+set}\" = set"; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013387else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013388 cat >conftest.$ac_ext <<_ACEOF
13389/* confdefs.h. */
13390_ACEOF
13391cat confdefs.h >>conftest.$ac_ext
13392cat >>conftest.$ac_ext <<_ACEOF
13393/* end confdefs.h. */
13394/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13396#define $ac_func innocuous_$ac_func
13397
Bram Moolenaar071d4272004-06-13 20:20:40 +000013398/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013399 which can conflict with char $ac_func (); below.
13400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13401 <limits.h> exists even on freestanding compilers. */
13402
13403#ifdef __STDC__
13404# include <limits.h>
13405#else
13406# include <assert.h>
13407#endif
13408
13409#undef $ac_func
13410
Bram Moolenaar071d4272004-06-13 20:20:40 +000013411/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013412#ifdef __cplusplus
13413extern "C"
13414{
13415#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013416/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013417 builtin and then its argument prototype would still apply. */
13418char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000013419/* The GNU C library defines this for functions which it implements
13420 to always fail with ENOSYS. Some functions are actually named
13421 something starting with __ and the normal name is an alias. */
13422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13423choke me
13424#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013425char (*f) () = $ac_func;
13426#endif
13427#ifdef __cplusplus
13428}
Bram Moolenaar071d4272004-06-13 20:20:40 +000013429#endif
13430
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013431int
13432main ()
13433{
13434return f != $ac_func;
13435 ;
13436 return 0;
13437}
13438_ACEOF
13439rm -f conftest.$ac_objext conftest$ac_exeext
13440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13441 (eval $ac_link) 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_c_werror_flag"
13449 || test ! -s conftest.err'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13452 ac_status=$?
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; } &&
13455 { ac_try='test -s conftest$ac_exeext'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13461 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013462else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013463 echo "$as_me: failed program was:" >&5
13464sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013465
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013466eval "$as_ac_var=no"
13467fi
13468rm -f conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13470fi
13471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13472echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13473if test `eval echo '${'$as_ac_var'}'` = yes; then
13474 cat >>confdefs.h <<_ACEOF
13475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13476_ACEOF
13477
Bram Moolenaar071d4272004-06-13 20:20:40 +000013478fi
13479done
13480
13481
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013482echo "$as_me:$LINENO: checking for st_blksize" >&5
13483echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6
13484cat >conftest.$ac_ext <<_ACEOF
13485/* confdefs.h. */
13486_ACEOF
13487cat confdefs.h >>conftest.$ac_ext
13488cat >>conftest.$ac_ext <<_ACEOF
13489/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013490#include <sys/types.h>
13491#include <sys/stat.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013492int
13493main ()
13494{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013495 struct stat st;
13496 int n;
13497
13498 stat("/", &st);
13499 n = (int)st.st_blksize;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013500 ;
13501 return 0;
13502}
13503_ACEOF
13504rm -f conftest.$ac_objext
13505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506 (eval $ac_compile) 2>conftest.er1
13507 ac_status=$?
13508 grep -v '^ *+' conftest.er1 >conftest.err
13509 rm -f conftest.er1
13510 cat conftest.err >&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } &&
13513 { ac_try='test -z "$ac_c_werror_flag"
13514 || test ! -s conftest.err'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13517 ac_status=$?
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; } &&
13520 { ac_try='test -s conftest.$ac_objext'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; }; then
13526 echo "$as_me:$LINENO: result: yes" >&5
13527echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013528#define HAVE_ST_BLKSIZE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013529_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013530
13531else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013532 echo "$as_me: failed program was:" >&5
13533sed 's/^/| /' conftest.$ac_ext >&5
13534
13535echo "$as_me:$LINENO: result: no" >&5
13536echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013537fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013539
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013540echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5
13541echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013542if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013543 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
13544echo "$as_me: error: failed to compile test program" >&2;}
13545 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000013546else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013547 cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h. */
13549_ACEOF
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013553#include <sys/types.h>
13554#include <sys/stat.h>
13555main() {struct stat st; exit(stat("configure/", &st) != 0); }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013556_ACEOF
13557rm -f conftest$ac_exeext
13558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13559 (eval $ac_link) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; }; then
13568 echo "$as_me:$LINENO: result: yes" >&5
13569echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013570#define STAT_IGNORES_SLASH 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013571_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013572
13573else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013574 echo "$as_me: program exited with status $ac_status" >&5
13575echo "$as_me: failed program was:" >&5
13576sed 's/^/| /' conftest.$ac_ext >&5
13577
13578( exit $ac_status )
13579echo "$as_me:$LINENO: result: no" >&5
13580echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013581fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013582rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013583fi
13584
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013585echo "$as_me:$LINENO: checking for iconv_open()" >&5
13586echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013587save_LIBS="$LIBS"
13588LIBS="$LIBS -liconv"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013589cat >conftest.$ac_ext <<_ACEOF
13590/* confdefs.h. */
13591_ACEOF
13592cat confdefs.h >>conftest.$ac_ext
13593cat >>conftest.$ac_ext <<_ACEOF
13594/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013595
13596#ifdef HAVE_ICONV_H
13597# include <iconv.h>
13598#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013599
13600int
13601main ()
13602{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013603iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013604 ;
13605 return 0;
13606}
13607_ACEOF
13608rm -f conftest.$ac_objext conftest$ac_exeext
13609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13610 (eval $ac_link) 2>conftest.er1
13611 ac_status=$?
13612 grep -v '^ *+' conftest.er1 >conftest.err
13613 rm -f conftest.er1
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -z "$ac_c_werror_flag"
13618 || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13621 ac_status=$?
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest$ac_exeext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13627 ac_status=$?
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13630 echo "$as_me:$LINENO: result: yes; with -liconv" >&5
13631echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013632#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013633_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013634
13635else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013636 echo "$as_me: failed program was:" >&5
13637sed 's/^/| /' conftest.$ac_ext >&5
13638
13639LIBS="$save_LIBS"
13640 cat >conftest.$ac_ext <<_ACEOF
13641/* confdefs.h. */
13642_ACEOF
13643cat confdefs.h >>conftest.$ac_ext
13644cat >>conftest.$ac_ext <<_ACEOF
13645/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013646
13647#ifdef HAVE_ICONV_H
13648# include <iconv.h>
13649#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013650
13651int
13652main ()
13653{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013654iconv_open("fr", "to");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013655 ;
13656 return 0;
13657}
13658_ACEOF
13659rm -f conftest.$ac_objext conftest$ac_exeext
13660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13661 (eval $ac_link) 2>conftest.er1
13662 ac_status=$?
13663 grep -v '^ *+' conftest.er1 >conftest.err
13664 rm -f conftest.er1
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -z "$ac_c_werror_flag"
13669 || test ! -s conftest.err'
13670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671 (eval $ac_try) 2>&5
13672 ac_status=$?
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); }; } &&
13675 { ac_try='test -s conftest$ac_exeext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 echo "$as_me:$LINENO: result: yes" >&5
13682echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013683#define HAVE_ICONV 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013684_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013685
13686else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013687 echo "$as_me: failed program was:" >&5
13688sed 's/^/| /' conftest.$ac_ext >&5
13689
13690echo "$as_me:$LINENO: result: no" >&5
13691echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013692fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013693rm -f conftest.err conftest.$ac_objext \
13694 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013695fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013696rm -f conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000013698
13699
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013700echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
13701echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
13702cat >conftest.$ac_ext <<_ACEOF
13703/* confdefs.h. */
13704_ACEOF
13705cat confdefs.h >>conftest.$ac_ext
13706cat >>conftest.$ac_ext <<_ACEOF
13707/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013708
13709#ifdef HAVE_LANGINFO_H
13710# include <langinfo.h>
13711#endif
13712
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013713int
13714main ()
13715{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013716char *cs = nl_langinfo(CODESET);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013717 ;
13718 return 0;
13719}
13720_ACEOF
13721rm -f conftest.$ac_objext conftest$ac_exeext
13722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723 (eval $ac_link) 2>conftest.er1
13724 ac_status=$?
13725 grep -v '^ *+' conftest.er1 >conftest.err
13726 rm -f conftest.er1
13727 cat conftest.err >&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); } &&
13730 { ac_try='test -z "$ac_c_werror_flag"
13731 || test ! -s conftest.err'
13732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13734 ac_status=$?
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; } &&
13737 { ac_try='test -s conftest$ac_exeext'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; }; then
13743 echo "$as_me:$LINENO: result: yes" >&5
13744echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013745#define HAVE_NL_LANGINFO_CODESET 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013746_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000013747
13748else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013749 echo "$as_me: failed program was:" >&5
13750sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013751
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013752echo "$as_me:$LINENO: result: no" >&5
13753echo "${ECHO_T}no" >&6
13754fi
13755rm -f conftest.err conftest.$ac_objext \
13756 conftest$ac_exeext conftest.$ac_ext
13757
13758echo "$as_me:$LINENO: checking --disable-acl argument" >&5
13759echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013760# Check whether --enable-acl or --disable-acl was given.
13761if test "${enable_acl+set}" = set; then
13762 enableval="$enable_acl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013763
Bram Moolenaar071d4272004-06-13 20:20:40 +000013764else
13765 enable_acl="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013766fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000013767if test "$enable_acl" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013768echo "$as_me:$LINENO: result: no" >&5
13769echo "${ECHO_T}no" >&6
13770echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5
13771echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6
13772if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013774else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013775 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013776LIBS="-lposix1e $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013777cat >conftest.$ac_ext <<_ACEOF
13778/* confdefs.h. */
13779_ACEOF
13780cat confdefs.h >>conftest.$ac_ext
13781cat >>conftest.$ac_ext <<_ACEOF
13782/* end confdefs.h. */
13783
Bram Moolenaar071d4272004-06-13 20:20:40 +000013784/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013785#ifdef __cplusplus
13786extern "C"
13787#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013788/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013789 builtin and then its argument prototype would still apply. */
13790char acl_get_file ();
13791int
13792main ()
13793{
13794acl_get_file ();
13795 ;
13796 return 0;
13797}
13798_ACEOF
13799rm -f conftest.$ac_objext conftest$ac_exeext
13800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13801 (eval $ac_link) 2>conftest.er1
13802 ac_status=$?
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -z "$ac_c_werror_flag"
13809 || test ! -s conftest.err'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest$ac_exeext'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_cv_lib_posix1e_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013822else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013825
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013826ac_cv_lib_posix1e_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013827fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013828rm -f conftest.err conftest.$ac_objext \
13829 conftest$ac_exeext conftest.$ac_ext
13830LIBS=$ac_check_lib_save_LIBS
13831fi
13832echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5
13833echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6
13834if test $ac_cv_lib_posix1e_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013835 LIBS="$LIBS -lposix1e"
13836else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013837 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
13838echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
13839if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013841else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013842 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013843LIBS="-lacl $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013844cat >conftest.$ac_ext <<_ACEOF
13845/* confdefs.h. */
13846_ACEOF
13847cat confdefs.h >>conftest.$ac_ext
13848cat >>conftest.$ac_ext <<_ACEOF
13849/* end confdefs.h. */
13850
Bram Moolenaar071d4272004-06-13 20:20:40 +000013851/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013852#ifdef __cplusplus
13853extern "C"
13854#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013855/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013856 builtin and then its argument prototype would still apply. */
13857char acl_get_file ();
13858int
13859main ()
13860{
13861acl_get_file ();
13862 ;
13863 return 0;
13864}
13865_ACEOF
13866rm -f conftest.$ac_objext conftest$ac_exeext
13867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13868 (eval $ac_link) 2>conftest.er1
13869 ac_status=$?
13870 grep -v '^ *+' conftest.er1 >conftest.err
13871 rm -f conftest.er1
13872 cat conftest.err >&5
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); } &&
13875 { ac_try='test -z "$ac_c_werror_flag"
13876 || test ! -s conftest.err'
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; } &&
13882 { ac_try='test -s conftest$ac_exeext'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; }; then
13888 ac_cv_lib_acl_acl_get_file=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013889else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013890 echo "$as_me: failed program was:" >&5
13891sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013892
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013893ac_cv_lib_acl_acl_get_file=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013894fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013895rm -f conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13897LIBS=$ac_check_lib_save_LIBS
13898fi
13899echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
13900echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
13901if test $ac_cv_lib_acl_acl_get_file = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013902 LIBS="$LIBS -lacl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013903 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5
13904echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6
13905if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000013907else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013908 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000013909LIBS="-lattr $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013910cat >conftest.$ac_ext <<_ACEOF
13911/* confdefs.h. */
13912_ACEOF
13913cat confdefs.h >>conftest.$ac_ext
13914cat >>conftest.$ac_ext <<_ACEOF
13915/* end confdefs.h. */
13916
Bram Moolenaar071d4272004-06-13 20:20:40 +000013917/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013918#ifdef __cplusplus
13919extern "C"
13920#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000013921/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013922 builtin and then its argument prototype would still apply. */
13923char fgetxattr ();
13924int
13925main ()
13926{
13927fgetxattr ();
13928 ;
13929 return 0;
13930}
13931_ACEOF
13932rm -f conftest.$ac_objext conftest$ac_exeext
13933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13934 (eval $ac_link) 2>conftest.er1
13935 ac_status=$?
13936 grep -v '^ *+' conftest.er1 >conftest.err
13937 rm -f conftest.er1
13938 cat conftest.err >&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); } &&
13941 { ac_try='test -z "$ac_c_werror_flag"
13942 || test ! -s conftest.err'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; } &&
13948 { ac_try='test -s conftest$ac_exeext'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13954 ac_cv_lib_attr_fgetxattr=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000013955else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013956 echo "$as_me: failed program was:" >&5
13957sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000013958
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013959ac_cv_lib_attr_fgetxattr=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000013960fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013961rm -f conftest.err conftest.$ac_objext \
13962 conftest$ac_exeext conftest.$ac_ext
13963LIBS=$ac_check_lib_save_LIBS
13964fi
13965echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5
13966echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6
13967if test $ac_cv_lib_attr_fgetxattr = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000013968 LIBS="$LIBS -lattr"
Bram Moolenaar071d4272004-06-13 20:20:40 +000013969fi
13970
Bram Moolenaar071d4272004-06-13 20:20:40 +000013971fi
13972
13973fi
13974
13975
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013976echo "$as_me:$LINENO: checking for POSIX ACL support" >&5
13977echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6
13978cat >conftest.$ac_ext <<_ACEOF
13979/* confdefs.h. */
13980_ACEOF
13981cat confdefs.h >>conftest.$ac_ext
13982cat >>conftest.$ac_ext <<_ACEOF
13983/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000013984
13985#include <sys/types.h>
13986#ifdef HAVE_SYS_ACL_H
13987# include <sys/acl.h>
13988#endif
13989acl_t acl;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013990int
13991main ()
13992{
Bram Moolenaar071d4272004-06-13 20:20:40 +000013993acl = acl_get_file("foo", ACL_TYPE_ACCESS);
13994 acl_set_file("foo", ACL_TYPE_ACCESS, acl);
13995 acl_free(acl);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000013996 ;
13997 return 0;
13998}
13999_ACEOF
14000rm -f conftest.$ac_objext conftest$ac_exeext
14001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14002 (eval $ac_link) 2>conftest.er1
14003 ac_status=$?
14004 grep -v '^ *+' conftest.er1 >conftest.err
14005 rm -f conftest.er1
14006 cat conftest.err >&5
14007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008 (exit $ac_status); } &&
14009 { ac_try='test -z "$ac_c_werror_flag"
14010 || test ! -s conftest.err'
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); }; } &&
14016 { ac_try='test -s conftest$ac_exeext'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; }; then
14022 echo "$as_me:$LINENO: result: yes" >&5
14023echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014024#define HAVE_POSIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014025_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014026
14027else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014028 echo "$as_me: failed program was:" >&5
14029sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014030
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014031echo "$as_me:$LINENO: result: no" >&5
14032echo "${ECHO_T}no" >&6
14033fi
14034rm -f conftest.err conftest.$ac_objext \
14035 conftest$ac_exeext conftest.$ac_ext
14036
14037echo "$as_me:$LINENO: checking for Solaris ACL support" >&5
14038echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6
14039cat >conftest.$ac_ext <<_ACEOF
14040/* confdefs.h. */
14041_ACEOF
14042cat confdefs.h >>conftest.$ac_ext
14043cat >>conftest.$ac_ext <<_ACEOF
14044/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014045
14046#ifdef HAVE_SYS_ACL_H
14047# include <sys/acl.h>
14048#endif
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014049int
14050main ()
14051{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014052acl("foo", GETACLCNT, 0, NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014053
14054 ;
14055 return 0;
14056}
14057_ACEOF
14058rm -f conftest.$ac_objext conftest$ac_exeext
14059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14060 (eval $ac_link) 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try='test -z "$ac_c_werror_flag"
14068 || test ! -s conftest.err'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; } &&
14074 { ac_try='test -s conftest$ac_exeext'
14075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076 (eval $ac_try) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; }; then
14080 echo "$as_me:$LINENO: result: yes" >&5
14081echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014082#define HAVE_SOLARIS_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014083_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014084
14085else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014086 echo "$as_me: failed program was:" >&5
14087sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014088
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014089echo "$as_me:$LINENO: result: no" >&5
14090echo "${ECHO_T}no" >&6
14091fi
14092rm -f conftest.err conftest.$ac_objext \
14093 conftest$ac_exeext conftest.$ac_ext
14094
14095echo "$as_me:$LINENO: checking for AIX ACL support" >&5
14096echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6
14097cat >conftest.$ac_ext <<_ACEOF
14098/* confdefs.h. */
14099_ACEOF
14100cat confdefs.h >>conftest.$ac_ext
14101cat >>conftest.$ac_ext <<_ACEOF
14102/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014103
14104#ifdef HAVE_SYS_ACL_H
14105# include <sys/acl.h>
14106#endif
14107#ifdef HAVE_SYS_ACCESS_H
14108# include <sys/access.h>
14109#endif
14110#define _ALL_SOURCE
14111
14112#include <sys/stat.h>
14113
14114int aclsize;
14115struct acl *aclent;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014116int
14117main ()
14118{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014119aclsize = sizeof(struct acl);
14120 aclent = (void *)malloc(aclsize);
14121 statacl("foo", STX_NORMAL, aclent, aclsize);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014122
14123 ;
14124 return 0;
14125}
14126_ACEOF
14127rm -f conftest.$ac_objext conftest$ac_exeext
14128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14129 (eval $ac_link) 2>conftest.er1
14130 ac_status=$?
14131 grep -v '^ *+' conftest.er1 >conftest.err
14132 rm -f conftest.er1
14133 cat conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
14136 { ac_try='test -z "$ac_c_werror_flag"
14137 || test ! -s conftest.err'
14138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139 (eval $ac_try) 2>&5
14140 ac_status=$?
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); }; } &&
14143 { ac_try='test -s conftest$ac_exeext'
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; }; then
14149 echo "$as_me:$LINENO: result: yes" >&5
14150echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014151#define HAVE_AIX_ACL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014152_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014153
14154else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014155 echo "$as_me: failed program was:" >&5
14156sed 's/^/| /' conftest.$ac_ext >&5
14157
14158echo "$as_me:$LINENO: result: no" >&5
14159echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014160fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014161rm -f conftest.err conftest.$ac_objext \
14162 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014163else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014164 echo "$as_me:$LINENO: result: yes" >&5
14165echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014166fi
14167
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014168echo "$as_me:$LINENO: checking --disable-gpm argument" >&5
14169echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014170# Check whether --enable-gpm or --disable-gpm was given.
14171if test "${enable_gpm+set}" = set; then
14172 enableval="$enable_gpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014173
Bram Moolenaar071d4272004-06-13 20:20:40 +000014174else
14175 enable_gpm="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014176fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014177
14178if test "$enable_gpm" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014179 echo "$as_me:$LINENO: result: no" >&5
14180echo "${ECHO_T}no" >&6
14181 echo "$as_me:$LINENO: checking for gpm" >&5
14182echo $ECHO_N "checking for gpm... $ECHO_C" >&6
14183if test "${vi_cv_have_gpm+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014185else
14186 olibs="$LIBS" ; LIBS="-lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014187 cat >conftest.$ac_ext <<_ACEOF
14188/* confdefs.h. */
14189_ACEOF
14190cat confdefs.h >>conftest.$ac_ext
14191cat >>conftest.$ac_ext <<_ACEOF
14192/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014193#include <gpm.h>
14194 #include <linux/keyboard.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014195int
14196main ()
14197{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014198Gpm_GetLibVersion(NULL);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014199 ;
14200 return 0;
14201}
14202_ACEOF
14203rm -f conftest.$ac_objext conftest$ac_exeext
14204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14205 (eval $ac_link) 2>conftest.er1
14206 ac_status=$?
14207 grep -v '^ *+' conftest.er1 >conftest.err
14208 rm -f conftest.er1
14209 cat conftest.err >&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); } &&
14212 { ac_try='test -z "$ac_c_werror_flag"
14213 || test ! -s conftest.err'
14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215 (eval $ac_try) 2>&5
14216 ac_status=$?
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); }; } &&
14219 { ac_try='test -s conftest$ac_exeext'
14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14221 (eval $ac_try) 2>&5
14222 ac_status=$?
14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014225 vi_cv_have_gpm=yes
14226else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014227 echo "$as_me: failed program was:" >&5
14228sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014229
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014230vi_cv_have_gpm=no
14231fi
14232rm -f conftest.err conftest.$ac_objext \
14233 conftest$ac_exeext conftest.$ac_ext
14234 LIBS="$olibs"
14235
14236fi
14237echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5
14238echo "${ECHO_T}$vi_cv_have_gpm" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014239 if test $vi_cv_have_gpm = yes; then
14240 LIBS="$LIBS -lgpm"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014241 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014242#define HAVE_GPM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014243_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014244
14245 fi
14246else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014247 echo "$as_me:$LINENO: result: yes" >&5
14248echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014249fi
14250
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014251echo "$as_me:$LINENO: checking for vsnprintf()" >&5
14252echo $ECHO_N "checking for vsnprintf()... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014253if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014254 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14255echo "$as_me: error: failed to compile test program" >&2;}
14256 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000014257else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014258 cat >conftest.$ac_ext <<_ACEOF
14259/* confdefs.h. */
14260_ACEOF
14261cat confdefs.h >>conftest.$ac_ext
14262cat >>conftest.$ac_ext <<_ACEOF
14263/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014264
14265#include <stdio.h>
14266#include <stdarg.h>
14267 /* Check use of vsnprintf() */
14268 void warn(char *fmt, ...);
14269 void warn(char *fmt, ...)
14270 {
14271 va_list ap; char buf[20];
14272 va_start(ap, fmt);
14273 vsnprintf(buf, 20, fmt, ap);
14274 va_end(ap);
14275 }
14276 main()
14277 {
14278 warn("testing %s\n", "a very long string that won't fit");
14279 exit(0);
14280 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014281
14282_ACEOF
14283rm -f conftest$ac_exeext
14284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14285 (eval $ac_link) 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
14294 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014295#define HAVE_VSNPRINTF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014296_ACEOF
14297 echo "$as_me:$LINENO: result: yes" >&5
14298echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014299else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014300 echo "$as_me: program exited with status $ac_status" >&5
14301echo "$as_me: failed program was:" >&5
14302sed 's/^/| /' conftest.$ac_ext >&5
14303
14304( exit $ac_status )
14305echo "$as_me:$LINENO: result: no" >&5
14306echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014307fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014308rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014309fi
14310
14311
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014312echo "$as_me:$LINENO: checking for rename" >&5
14313echo $ECHO_N "checking for rename... $ECHO_C" >&6
14314cat >conftest.$ac_ext <<_ACEOF
14315/* confdefs.h. */
14316_ACEOF
14317cat confdefs.h >>conftest.$ac_ext
14318cat >>conftest.$ac_ext <<_ACEOF
14319/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014320#include <stdio.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014321int
14322main ()
14323{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014324rename("this", "that")
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014325 ;
14326 return 0;
14327}
14328_ACEOF
14329rm -f conftest.$ac_objext conftest$ac_exeext
14330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14331 (eval $ac_link) 2>conftest.er1
14332 ac_status=$?
14333 grep -v '^ *+' conftest.er1 >conftest.err
14334 rm -f conftest.er1
14335 cat conftest.err >&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } &&
14338 { ac_try='test -z "$ac_c_werror_flag"
14339 || test ! -s conftest.err'
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14342 ac_status=$?
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; } &&
14345 { ac_try='test -s conftest$ac_exeext'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14348 ac_status=$?
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; }; then
14351 echo "$as_me:$LINENO: result: yes" >&5
14352echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014353#define HAVE_RENAME 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014354_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014355
14356else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014357 echo "$as_me: failed program was:" >&5
14358sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014359
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014360echo "$as_me:$LINENO: result: no" >&5
14361echo "${ECHO_T}no" >&6
14362fi
14363rm -f conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14365
14366echo "$as_me:$LINENO: checking for sysctl" >&5
14367echo $ECHO_N "checking for sysctl... $ECHO_C" >&6
14368cat >conftest.$ac_ext <<_ACEOF
14369/* confdefs.h. */
14370_ACEOF
14371cat confdefs.h >>conftest.$ac_ext
14372cat >>conftest.$ac_ext <<_ACEOF
14373/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014374#include <sys/types.h>
14375#include <sys/sysctl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014376int
14377main ()
14378{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014379 int mib[2], r;
14380 size_t len;
14381
14382 mib[0] = CTL_HW;
14383 mib[1] = HW_USERMEM;
14384 len = sizeof(r);
14385 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014386
14387 ;
14388 return 0;
14389}
14390_ACEOF
14391rm -f conftest.$ac_objext
14392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14393 (eval $ac_compile) 2>conftest.er1
14394 ac_status=$?
14395 grep -v '^ *+' conftest.er1 >conftest.err
14396 rm -f conftest.er1
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } &&
14400 { ac_try='test -z "$ac_c_werror_flag"
14401 || test ! -s conftest.err'
14402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14403 (eval $ac_try) 2>&5
14404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest.$ac_objext'
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
14413 echo "$as_me:$LINENO: result: yes" >&5
14414echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014415#define HAVE_SYSCTL 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014416_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014417
14418else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014419 echo "$as_me: failed program was:" >&5
14420sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014421
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014422echo "$as_me:$LINENO: result: not usable" >&5
14423echo "${ECHO_T}not usable" >&6
14424fi
14425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14426
14427echo "$as_me:$LINENO: checking for sysinfo" >&5
14428echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6
14429cat >conftest.$ac_ext <<_ACEOF
14430/* confdefs.h. */
14431_ACEOF
14432cat confdefs.h >>conftest.$ac_ext
14433cat >>conftest.$ac_ext <<_ACEOF
14434/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014435#include <sys/types.h>
14436#include <sys/sysinfo.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014437int
14438main ()
14439{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014440 struct sysinfo sinfo;
14441 int t;
14442
14443 (void)sysinfo(&sinfo);
14444 t = sinfo.totalram;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014445
14446 ;
14447 return 0;
14448}
14449_ACEOF
14450rm -f conftest.$ac_objext
14451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14452 (eval $ac_compile) 2>conftest.er1
14453 ac_status=$?
14454 grep -v '^ *+' conftest.er1 >conftest.err
14455 rm -f conftest.er1
14456 cat conftest.err >&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try='test -z "$ac_c_werror_flag"
14460 || test ! -s conftest.err'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest.$ac_objext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 echo "$as_me:$LINENO: result: yes" >&5
14473echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014474#define HAVE_SYSINFO 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014475_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014476
14477else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014478 echo "$as_me: failed program was:" >&5
14479sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014480
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014481echo "$as_me:$LINENO: result: not usable" >&5
14482echo "${ECHO_T}not usable" >&6
14483fi
14484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14485
14486echo "$as_me:$LINENO: checking for sysconf" >&5
14487echo $ECHO_N "checking for sysconf... $ECHO_C" >&6
14488cat >conftest.$ac_ext <<_ACEOF
14489/* confdefs.h. */
14490_ACEOF
14491cat confdefs.h >>conftest.$ac_ext
14492cat >>conftest.$ac_ext <<_ACEOF
14493/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014494#include <unistd.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014495int
14496main ()
14497{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014498 (void)sysconf(_SC_PAGESIZE);
14499 (void)sysconf(_SC_PHYS_PAGES);
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014500
14501 ;
14502 return 0;
14503}
14504_ACEOF
14505rm -f conftest.$ac_objext
14506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14507 (eval $ac_compile) 2>conftest.er1
14508 ac_status=$?
14509 grep -v '^ *+' conftest.er1 >conftest.err
14510 rm -f conftest.er1
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -z "$ac_c_werror_flag"
14515 || test ! -s conftest.err'
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; } &&
14521 { ac_try='test -s conftest.$ac_objext'
14522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14523 (eval $ac_try) 2>&5
14524 ac_status=$?
14525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526 (exit $ac_status); }; }; then
14527 echo "$as_me:$LINENO: result: yes" >&5
14528echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014529#define HAVE_SYSCONF 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014530_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014531
14532else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014533 echo "$as_me: failed program was:" >&5
14534sed 's/^/| /' conftest.$ac_ext >&5
14535
14536echo "$as_me:$LINENO: result: not usable" >&5
14537echo "${ECHO_T}not usable" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014538fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014540
14541
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014542echo "$as_me:$LINENO: checking size of int" >&5
14543echo $ECHO_N "checking size of int... $ECHO_C" >&6
14544if test "${ac_cv_sizeof_int+set}" = set; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014546else
14547 if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014548 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14549echo "$as_me: error: failed to compile test program" >&2;}
14550 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000014551else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014552 cat >conftest.$ac_ext <<_ACEOF
14553/* confdefs.h. */
14554_ACEOF
14555cat confdefs.h >>conftest.$ac_ext
14556cat >>conftest.$ac_ext <<_ACEOF
14557/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014558#include <stdio.h>
14559 main()
14560 {
14561 FILE *f=fopen("conftestval", "w");
14562 if (!f) exit(1);
14563 fprintf(f, "%d\n", (int)sizeof(int));
14564 exit(0);
14565 }
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014566_ACEOF
14567rm -f conftest$ac_exeext
14568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14569 (eval $ac_link) 2>&5
14570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014578 ac_cv_sizeof_int=`cat conftestval`
14579else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014580 echo "$as_me: program exited with status $ac_status" >&5
14581echo "$as_me: failed program was:" >&5
14582sed 's/^/| /' conftest.$ac_ext >&5
14583
14584( exit $ac_status )
14585ac_cv_sizeof_int=0
Bram Moolenaar071d4272004-06-13 20:20:40 +000014586fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014587rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14588fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014589fi
14590
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014591echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14592echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14593cat >>confdefs.h <<_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014594#define SIZEOF_INT $ac_cv_sizeof_int
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014595_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014596
14597
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014598echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5
14599echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014600bcopy_test_prog='
14601main() {
14602 char buf[10];
14603 strcpy(buf, "abcdefghi");
14604 mch_memmove(buf, buf + 2, 3);
14605 if (strncmp(buf, "ababcf", 6))
14606 exit(1);
14607 strcpy(buf, "abcdefghi");
14608 mch_memmove(buf + 2, buf, 3);
14609 if (strncmp(buf, "cdedef", 6))
14610 exit(1);
14611 exit(0); /* libc version works properly. */
14612}'
14613
14614
14615if test "$cross_compiling" = yes; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014616 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14617echo "$as_me: error: failed to compile test program" >&2;}
14618 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000014619else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014620 cat >conftest.$ac_ext <<_ACEOF
14621/* confdefs.h. */
14622_ACEOF
14623cat confdefs.h >>conftest.$ac_ext
14624cat >>conftest.$ac_ext <<_ACEOF
14625/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014626#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014627_ACEOF
14628rm -f conftest$ac_exeext
14629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14630 (eval $ac_link) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; }; then
14639 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014640#define USEMEMMOVE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014641_ACEOF
14642 echo "$as_me:$LINENO: result: memmove does" >&5
14643echo "${ECHO_T}memmove does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014644else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014645 echo "$as_me: program exited with status $ac_status" >&5
14646echo "$as_me: failed program was:" >&5
14647sed 's/^/| /' conftest.$ac_ext >&5
14648
14649( exit $ac_status )
14650if test "$cross_compiling" = yes; then
14651 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14652echo "$as_me: error: failed to compile test program" >&2;}
14653 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000014654else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014655 cat >conftest.$ac_ext <<_ACEOF
14656/* confdefs.h. */
14657_ACEOF
14658cat confdefs.h >>conftest.$ac_ext
14659cat >>conftest.$ac_ext <<_ACEOF
14660/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014661#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014662_ACEOF
14663rm -f conftest$ac_exeext
14664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14665 (eval $ac_link) 2>&5
14666 ac_status=$?
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14671 ac_status=$?
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14674 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014675#define USEBCOPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014676_ACEOF
14677 echo "$as_me:$LINENO: result: bcopy does" >&5
14678echo "${ECHO_T}bcopy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014679else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014680 echo "$as_me: program exited with status $ac_status" >&5
14681echo "$as_me: failed program was:" >&5
14682sed 's/^/| /' conftest.$ac_ext >&5
14683
14684( exit $ac_status )
14685if test "$cross_compiling" = yes; then
14686 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5
14687echo "$as_me: error: failed to compile test program" >&2;}
14688 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000014689else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014690 cat >conftest.$ac_ext <<_ACEOF
14691/* confdefs.h. */
14692_ACEOF
14693cat confdefs.h >>conftest.$ac_ext
14694cat >>conftest.$ac_ext <<_ACEOF
14695/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014696#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014697_ACEOF
14698rm -f conftest$ac_exeext
14699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14700 (eval $ac_link) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14709 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014710#define USEMEMCPY 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014711_ACEOF
14712 echo "$as_me:$LINENO: result: memcpy does" >&5
14713echo "${ECHO_T}memcpy does" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014714else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014715 echo "$as_me: program exited with status $ac_status" >&5
14716echo "$as_me: failed program was:" >&5
14717sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014718
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014719( exit $ac_status )
14720echo "$as_me:$LINENO: result: no" >&5
14721echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014722fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014723rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014724fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014725fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014726rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014727fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014728fi
14729rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14730fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000014731
14732
14733if test "$enable_multibyte" = "yes"; then
14734 cflags_save=$CFLAGS
14735 ldflags_save=$LDFLAGS
14736 if test -n "$x_includes" ; then
14737 CFLAGS="$CFLAGS -I$x_includes"
14738 LDFLAGS="$X_LIBS $LDFLAGS -lX11"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014739 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5
14740echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6
14741 cat >conftest.$ac_ext <<_ACEOF
14742/* confdefs.h. */
14743_ACEOF
14744cat confdefs.h >>conftest.$ac_ext
14745cat >>conftest.$ac_ext <<_ACEOF
14746/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000014747#include <X11/Xlocale.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014748int
14749main ()
14750{
Bram Moolenaar071d4272004-06-13 20:20:40 +000014751
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014752 ;
14753 return 0;
14754}
14755_ACEOF
14756rm -f conftest.$ac_objext
14757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14758 (eval $ac_compile) 2>conftest.er1
14759 ac_status=$?
14760 grep -v '^ *+' conftest.er1 >conftest.err
14761 rm -f conftest.er1
14762 cat conftest.err >&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); } &&
14765 { ac_try='test -z "$ac_c_werror_flag"
14766 || test ! -s conftest.err'
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest.$ac_objext'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 cat >conftest.$ac_ext <<_ACEOF
14779/* confdefs.h. */
14780_ACEOF
14781cat confdefs.h >>conftest.$ac_ext
14782cat >>conftest.$ac_ext <<_ACEOF
14783/* end confdefs.h. */
14784
Bram Moolenaar071d4272004-06-13 20:20:40 +000014785/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014786#ifdef __cplusplus
14787extern "C"
14788#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014789/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014790 builtin and then its argument prototype would still apply. */
14791char _Xsetlocale ();
14792int
14793main ()
14794{
14795_Xsetlocale ();
14796 ;
14797 return 0;
14798}
14799_ACEOF
14800rm -f conftest.$ac_objext conftest$ac_exeext
14801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14802 (eval $ac_link) 2>conftest.er1
14803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -z "$ac_c_werror_flag"
14810 || test ! -s conftest.err'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } &&
14816 { ac_try='test -s conftest$ac_exeext'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 echo "$as_me:$LINENO: result: yes" >&5
14823echo "${ECHO_T}yes" >&6
14824 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014825#define X_LOCALE 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014826_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014827
14828else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014829 echo "$as_me: failed program was:" >&5
14830sed 's/^/| /' conftest.$ac_ext >&5
14831
14832echo "$as_me:$LINENO: result: no" >&5
14833echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014834fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014835rm -f conftest.err conftest.$ac_objext \
14836 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014837else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014838 echo "$as_me: failed program was:" >&5
14839sed 's/^/| /' conftest.$ac_ext >&5
14840
14841echo "$as_me:$LINENO: result: no" >&5
14842echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014843fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000014845 fi
14846 CFLAGS=$cflags_save
14847 LDFLAGS=$ldflags_save
14848fi
14849
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014850echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
14851echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
14852if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014854else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014855 ac_check_lib_save_LIBS=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000014856LIBS="-lxpg4 $LIBS"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014857cat >conftest.$ac_ext <<_ACEOF
14858/* confdefs.h. */
14859_ACEOF
14860cat confdefs.h >>conftest.$ac_ext
14861cat >>conftest.$ac_ext <<_ACEOF
14862/* end confdefs.h. */
14863
Bram Moolenaar071d4272004-06-13 20:20:40 +000014864/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014865#ifdef __cplusplus
14866extern "C"
14867#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000014868/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014869 builtin and then its argument prototype would still apply. */
14870char _xpg4_setrunelocale ();
14871int
14872main ()
14873{
14874_xpg4_setrunelocale ();
14875 ;
14876 return 0;
14877}
14878_ACEOF
14879rm -f conftest.$ac_objext conftest$ac_exeext
14880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14881 (eval $ac_link) 2>conftest.er1
14882 ac_status=$?
14883 grep -v '^ *+' conftest.er1 >conftest.err
14884 rm -f conftest.er1
14885 cat conftest.err >&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); } &&
14888 { ac_try='test -z "$ac_c_werror_flag"
14889 || test ! -s conftest.err'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; } &&
14895 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14901 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000014902else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014903 echo "$as_me: failed program was:" >&5
14904sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000014905
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014906ac_cv_lib_xpg4__xpg4_setrunelocale=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000014907fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014908rm -f conftest.err conftest.$ac_objext \
14909 conftest$ac_exeext conftest.$ac_ext
14910LIBS=$ac_check_lib_save_LIBS
14911fi
14912echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
14913echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
14914if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000014915 LIBS="$LIBS -lxpg4"
Bram Moolenaar071d4272004-06-13 20:20:40 +000014916fi
14917
14918
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014919echo "$as_me:$LINENO: checking how to create tags" >&5
14920echo $ECHO_N "checking how to create tags... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014921test -f tags && mv tags tags.save
14922if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then
14923 TAGPRG="ctags"
14924else
14925 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags"
14926 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c"
14927 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags"
14928 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t"
14929 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts"
14930 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs"
14931 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m"
14932fi
14933test -f tags.save && mv tags.save tags
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014934echo "$as_me:$LINENO: result: $TAGPRG" >&5
14935echo "${ECHO_T}$TAGPRG" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014936
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014937echo "$as_me:$LINENO: checking how to run man with a section nr" >&5
14938echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014939MANDEF="man"
14940(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014941echo "$as_me:$LINENO: result: $MANDEF" >&5
14942echo "${ECHO_T}$MANDEF" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014943if test "$MANDEF" = "man -s"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014944 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014945#define USEMAN_S 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014946_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000014947
14948fi
14949
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014950echo "$as_me:$LINENO: checking --disable-nls argument" >&5
14951echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014952# Check whether --enable-nls or --disable-nls was given.
14953if test "${enable_nls+set}" = set; then
14954 enableval="$enable_nls"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014955
Bram Moolenaar071d4272004-06-13 20:20:40 +000014956else
14957 enable_nls="yes"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014958fi;
Bram Moolenaar071d4272004-06-13 20:20:40 +000014959
14960if test "$enable_nls" = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014961 echo "$as_me:$LINENO: result: no" >&5
14962echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014963 # Extract the first word of "msgfmt", so it can be a program name with args.
14964set dummy msgfmt; ac_word=$2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014965echo "$as_me:$LINENO: checking for $ac_word" >&5
14966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14967if test "${ac_cv_prog_MSGFMT+set}" = set; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014969else
14970 if test -n "$MSGFMT"; then
14971 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
14972else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14974for as_dir in $PATH
14975do
14976 IFS=$as_save_IFS
14977 test -z "$as_dir" && as_dir=.
14978 for ac_exec_ext in '' $ac_executable_extensions; do
14979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14980 ac_cv_prog_MSGFMT="msgfmt"
14981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14982 break 2
14983 fi
14984done
14985done
14986
Bram Moolenaar071d4272004-06-13 20:20:40 +000014987fi
14988fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014989MSGFMT=$ac_cv_prog_MSGFMT
Bram Moolenaar071d4272004-06-13 20:20:40 +000014990if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014991 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14992echo "${ECHO_T}$MSGFMT" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014993else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014994 echo "$as_me:$LINENO: result: no" >&5
14995echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000014996fi
14997
Bram Moolenaar495de9c2005-01-25 22:03:25 +000014998 echo "$as_me:$LINENO: checking for NLS" >&5
14999echo $ECHO_N "checking for NLS... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015000 if test -f po/Makefile; then
15001 have_gettext="no"
15002 if test -n "$MSGFMT"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015003 cat >conftest.$ac_ext <<_ACEOF
15004/* confdefs.h. */
15005_ACEOF
15006cat confdefs.h >>conftest.$ac_ext
15007cat >>conftest.$ac_ext <<_ACEOF
15008/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015009#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015010int
15011main ()
15012{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015013gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015014 ;
15015 return 0;
15016}
15017_ACEOF
15018rm -f conftest.$ac_objext conftest$ac_exeext
15019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15020 (eval $ac_link) 2>conftest.er1
15021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } &&
15027 { ac_try='test -z "$ac_c_werror_flag"
15028 || test ! -s conftest.err'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; } &&
15034 { ac_try='test -s conftest$ac_exeext'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 echo "$as_me:$LINENO: result: gettext() works" >&5
15041echo "${ECHO_T}gettext() works" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000015042else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015043 echo "$as_me: failed program was:" >&5
15044sed 's/^/| /' conftest.$ac_ext >&5
15045
15046olibs=$LIBS
Bram Moolenaar071d4272004-06-13 20:20:40 +000015047 LIBS="$LIBS -lintl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015048 cat >conftest.$ac_ext <<_ACEOF
15049/* confdefs.h. */
15050_ACEOF
15051cat confdefs.h >>conftest.$ac_ext
15052cat >>conftest.$ac_ext <<_ACEOF
15053/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015054#include <libintl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015055int
15056main ()
15057{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015058gettext("Test");
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015059 ;
15060 return 0;
15061}
15062_ACEOF
15063rm -f conftest.$ac_objext conftest$ac_exeext
15064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15065 (eval $ac_link) 2>conftest.er1
15066 ac_status=$?
15067 grep -v '^ *+' conftest.er1 >conftest.err
15068 rm -f conftest.er1
15069 cat conftest.err >&5
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); } &&
15072 { ac_try='test -z "$ac_c_werror_flag"
15073 || test ! -s conftest.err'
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; } &&
15079 { ac_try='test -s conftest$ac_exeext'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5
15086echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000015087else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015088 echo "$as_me: failed program was:" >&5
15089sed 's/^/| /' conftest.$ac_ext >&5
15090
15091echo "$as_me:$LINENO: result: gettext() doesn't work" >&5
15092echo "${ECHO_T}gettext() doesn't work" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015093 LIBS=$olibs
15094fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015095rm -f conftest.err conftest.$ac_objext \
15096 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015097fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015098rm -f conftest.err conftest.$ac_objext \
15099 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015100 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015101 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5
15102echo "${ECHO_T}msgfmt not found - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015103 fi
15104 if test $have_gettext = "yes"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015105 cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015106#define HAVE_GETTEXT 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015107_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015108
15109 MAKEMO=yes
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015110
15111
15112for ac_func in bind_textdomain_codeset
Bram Moolenaar071d4272004-06-13 20:20:40 +000015113do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15115echo "$as_me:$LINENO: checking for $ac_func" >&5
15116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15117if eval "test \"\${$as_ac_var+set}\" = set"; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015119else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015120 cat >conftest.$ac_ext <<_ACEOF
15121/* confdefs.h. */
15122_ACEOF
15123cat confdefs.h >>conftest.$ac_ext
15124cat >>conftest.$ac_ext <<_ACEOF
15125/* end confdefs.h. */
15126/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15128#define $ac_func innocuous_$ac_func
15129
Bram Moolenaar071d4272004-06-13 20:20:40 +000015130/* System header to define __stub macros and hopefully few prototypes,
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015131 which can conflict with char $ac_func (); below.
15132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15133 <limits.h> exists even on freestanding compilers. */
15134
15135#ifdef __STDC__
15136# include <limits.h>
15137#else
15138# include <assert.h>
15139#endif
15140
15141#undef $ac_func
15142
Bram Moolenaar071d4272004-06-13 20:20:40 +000015143/* Override any gcc2 internal prototype to avoid an error. */
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015144#ifdef __cplusplus
15145extern "C"
15146{
15147#endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000015148/* We use char because int might match the return type of a gcc2
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015149 builtin and then its argument prototype would still apply. */
15150char $ac_func ();
Bram Moolenaar071d4272004-06-13 20:20:40 +000015151/* The GNU C library defines this for functions which it implements
15152 to always fail with ENOSYS. Some functions are actually named
15153 something starting with __ and the normal name is an alias. */
15154#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15155choke me
15156#else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015157char (*f) () = $ac_func;
15158#endif
15159#ifdef __cplusplus
15160}
Bram Moolenaar071d4272004-06-13 20:20:40 +000015161#endif
15162
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015163int
15164main ()
15165{
15166return f != $ac_func;
15167 ;
15168 return 0;
15169}
15170_ACEOF
15171rm -f conftest.$ac_objext conftest$ac_exeext
15172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15173 (eval $ac_link) 2>conftest.er1
15174 ac_status=$?
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
15180 { ac_try='test -z "$ac_c_werror_flag"
15181 || test ! -s conftest.err'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest$ac_exeext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 eval "$as_ac_var=yes"
Bram Moolenaar071d4272004-06-13 20:20:40 +000015194else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015195 echo "$as_me: failed program was:" >&5
15196sed 's/^/| /' conftest.$ac_ext >&5
Bram Moolenaar071d4272004-06-13 20:20:40 +000015197
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015198eval "$as_ac_var=no"
15199fi
15200rm -f conftest.err conftest.$ac_objext \
15201 conftest$ac_exeext conftest.$ac_ext
15202fi
15203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15204echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15205if test `eval echo '${'$as_ac_var'}'` = yes; then
15206 cat >>confdefs.h <<_ACEOF
15207#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15208_ACEOF
15209
Bram Moolenaar071d4272004-06-13 20:20:40 +000015210fi
15211done
15212
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015213 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5
15214echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6
15215 cat >conftest.$ac_ext <<_ACEOF
15216/* confdefs.h. */
15217_ACEOF
15218cat confdefs.h >>conftest.$ac_ext
15219cat >>conftest.$ac_ext <<_ACEOF
15220/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015221#include <libintl.h>
15222 extern int _nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015223int
15224main ()
15225{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015226++_nl_msg_cat_cntr;
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015227 ;
15228 return 0;
15229}
15230_ACEOF
15231rm -f conftest.$ac_objext conftest$ac_exeext
15232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15233 (eval $ac_link) 2>conftest.er1
15234 ac_status=$?
15235 grep -v '^ *+' conftest.er1 >conftest.err
15236 rm -f conftest.er1
15237 cat conftest.err >&5
15238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239 (exit $ac_status); } &&
15240 { ac_try='test -z "$ac_c_werror_flag"
15241 || test ! -s conftest.err'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15244 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; } &&
15247 { ac_try='test -s conftest$ac_exeext'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; }; then
15253 echo "$as_me:$LINENO: result: yes" >&5
15254echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015255#define HAVE_NL_MSG_CAT_CNTR 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015256_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015257
15258else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015259 echo "$as_me: failed program was:" >&5
15260sed 's/^/| /' conftest.$ac_ext >&5
15261
15262echo "$as_me:$LINENO: result: no" >&5
15263echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015264fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015265rm -f conftest.err conftest.$ac_objext \
15266 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015267 fi
15268 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015269 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5
15270echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015271 fi
15272else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015273 echo "$as_me:$LINENO: result: yes" >&5
15274echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015275fi
15276
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015277if test "${ac_cv_header_dlfcn_h+set}" = set; then
15278 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15279echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
15280if test "${ac_cv_header_dlfcn_h+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15282fi
15283echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15284echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015285else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015286 # Is the header compilable?
15287echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
15288echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
15289cat >conftest.$ac_ext <<_ACEOF
15290/* confdefs.h. */
15291_ACEOF
15292cat confdefs.h >>conftest.$ac_ext
15293cat >>conftest.$ac_ext <<_ACEOF
15294/* end confdefs.h. */
15295$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000015296#include <dlfcn.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015297_ACEOF
15298rm -f conftest.$ac_objext
15299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15300 (eval $ac_compile) 2>conftest.er1
15301 ac_status=$?
15302 grep -v '^ *+' conftest.er1 >conftest.err
15303 rm -f conftest.er1
15304 cat conftest.err >&5
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } &&
15307 { ac_try='test -z "$ac_c_werror_flag"
15308 || test ! -s conftest.err'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest.$ac_objext'
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15320 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000015321else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015322 echo "$as_me: failed program was:" >&5
15323sed 's/^/| /' conftest.$ac_ext >&5
15324
15325ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015326fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15328echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15329echo "${ECHO_T}$ac_header_compiler" >&6
15330
15331# Is the header present?
15332echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
15333echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
15334cat >conftest.$ac_ext <<_ACEOF
15335/* confdefs.h. */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
15339/* end confdefs.h. */
15340#include <dlfcn.h>
15341_ACEOF
15342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15344 ac_status=$?
15345 grep -v '^ *+' conftest.er1 >conftest.err
15346 rm -f conftest.er1
15347 cat conftest.err >&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } >/dev/null; then
15350 if test -s conftest.err; then
15351 ac_cpp_err=$ac_c_preproc_warn_flag
15352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15353 else
15354 ac_cpp_err=
15355 fi
15356else
15357 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000015358fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015359if test -z "$ac_cpp_err"; then
15360 ac_header_preproc=yes
15361else
15362 echo "$as_me: failed program was:" >&5
15363sed 's/^/| /' conftest.$ac_ext >&5
15364
15365 ac_header_preproc=no
15366fi
15367rm -f conftest.err conftest.$ac_ext
15368echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15369echo "${ECHO_T}$ac_header_preproc" >&6
15370
15371# So? What about this header?
15372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15373 yes:no: )
15374 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
15375echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15376 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
15377echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
15378 ac_header_preproc=yes
15379 ;;
15380 no:yes:* )
15381 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
15382echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
15384echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
15386echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
15387 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
15388echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
15389 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
15390echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
15391 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
15392echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
15393 (
15394 cat <<\_ASBOX
15395## ------------------------------------------ ##
15396## Report this to the AC_PACKAGE_NAME lists. ##
15397## ------------------------------------------ ##
15398_ASBOX
15399 ) |
15400 sed "s/^/$as_me: WARNING: /" >&2
15401 ;;
15402esac
15403echo "$as_me:$LINENO: checking for dlfcn.h" >&5
15404echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
15405if test "${ac_cv_header_dlfcn_h+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407else
15408 ac_cv_header_dlfcn_h=$ac_header_preproc
15409fi
15410echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
15411echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
15412
15413fi
15414if test $ac_cv_header_dlfcn_h = yes; then
Bram Moolenaar071d4272004-06-13 20:20:40 +000015415 DLL=dlfcn.h
15416else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015417 if test "${ac_cv_header_dl_h+set}" = set; then
15418 echo "$as_me:$LINENO: checking for dl.h" >&5
15419echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
15420if test "${ac_cv_header_dl_h+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422fi
15423echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
15424echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015425else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015426 # Is the header compilable?
15427echo "$as_me:$LINENO: checking dl.h usability" >&5
15428echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6
15429cat >conftest.$ac_ext <<_ACEOF
15430/* confdefs.h. */
15431_ACEOF
15432cat confdefs.h >>conftest.$ac_ext
15433cat >>conftest.$ac_ext <<_ACEOF
15434/* end confdefs.h. */
15435$ac_includes_default
Bram Moolenaar071d4272004-06-13 20:20:40 +000015436#include <dl.h>
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015437_ACEOF
15438rm -f conftest.$ac_objext
15439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>conftest.er1
15441 ac_status=$?
15442 grep -v '^ *+' conftest.er1 >conftest.err
15443 rm -f conftest.er1
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -z "$ac_c_werror_flag"
15448 || test ! -s conftest.err'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; } &&
15454 { ac_try='test -s conftest.$ac_objext'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15460 ac_header_compiler=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000015461else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015462 echo "$as_me: failed program was:" >&5
15463sed 's/^/| /' conftest.$ac_ext >&5
15464
15465ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015466fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15468echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15469echo "${ECHO_T}$ac_header_compiler" >&6
15470
15471# Is the header present?
15472echo "$as_me:$LINENO: checking dl.h presence" >&5
15473echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6
15474cat >conftest.$ac_ext <<_ACEOF
15475/* confdefs.h. */
15476_ACEOF
15477cat confdefs.h >>conftest.$ac_ext
15478cat >>conftest.$ac_ext <<_ACEOF
15479/* end confdefs.h. */
15480#include <dl.h>
15481_ACEOF
15482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15483 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15484 ac_status=$?
15485 grep -v '^ *+' conftest.er1 >conftest.err
15486 rm -f conftest.er1
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } >/dev/null; then
15490 if test -s conftest.err; then
15491 ac_cpp_err=$ac_c_preproc_warn_flag
15492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15493 else
15494 ac_cpp_err=
15495 fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000015496else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015497 ac_cpp_err=yes
Bram Moolenaar071d4272004-06-13 20:20:40 +000015498fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015499if test -z "$ac_cpp_err"; then
15500 ac_header_preproc=yes
15501else
15502 echo "$as_me: failed program was:" >&5
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
15505 ac_header_preproc=no
15506fi
15507rm -f conftest.err conftest.$ac_ext
15508echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15509echo "${ECHO_T}$ac_header_preproc" >&6
15510
15511# So? What about this header?
15512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15513 yes:no: )
15514 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15515echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15516 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5
15517echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;}
15518 ac_header_preproc=yes
15519 ;;
15520 no:yes:* )
15521 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5
15522echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;}
15523 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5
15524echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;}
15525 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5
15526echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;}
15527 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5
15528echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15529 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5
15530echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;}
15531 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5
15532echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;}
15533 (
15534 cat <<\_ASBOX
15535## ------------------------------------------ ##
15536## Report this to the AC_PACKAGE_NAME lists. ##
15537## ------------------------------------------ ##
15538_ASBOX
15539 ) |
15540 sed "s/^/$as_me: WARNING: /" >&2
15541 ;;
15542esac
15543echo "$as_me:$LINENO: checking for dl.h" >&5
15544echo $ECHO_N "checking for dl.h... $ECHO_C" >&6
15545if test "${ac_cv_header_dl_h+set}" = set; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15547else
15548 ac_cv_header_dl_h=$ac_header_preproc
15549fi
15550echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5
15551echo "${ECHO_T}$ac_cv_header_dl_h" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015552
15553fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015554if test $ac_cv_header_dl_h = yes; then
15555 DLL=dl.h
15556fi
15557
15558
15559fi
15560
Bram Moolenaar071d4272004-06-13 20:20:40 +000015561
15562if test x${DLL} = xdlfcn.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015563
15564cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015565#define HAVE_DLFCN_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015566_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015567
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015568 echo "$as_me:$LINENO: checking for dlopen()" >&5
15569echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6
15570 cat >conftest.$ac_ext <<_ACEOF
15571/* confdefs.h. */
15572_ACEOF
15573cat confdefs.h >>conftest.$ac_ext
15574cat >>conftest.$ac_ext <<_ACEOF
15575/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015576
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015577int
15578main ()
15579{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015580
15581 extern void* dlopen();
15582 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015583
15584 ;
15585 return 0;
15586}
15587_ACEOF
15588rm -f conftest.$ac_objext conftest$ac_exeext
15589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15590 (eval $ac_link) 2>conftest.er1
15591 ac_status=$?
15592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try='test -z "$ac_c_werror_flag"
15598 || test ! -s conftest.err'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest$ac_exeext'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 echo "$as_me:$LINENO: result: yes" >&5
15611echo "${ECHO_T}yes" >&6;
15612
15613cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015614#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015615_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015616
15617else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015618 echo "$as_me: failed program was:" >&5
15619sed 's/^/| /' conftest.$ac_ext >&5
15620
15621echo "$as_me:$LINENO: result: no" >&5
15622echo "${ECHO_T}no" >&6;
15623 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5
15624echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015625 olibs=$LIBS
15626 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015627 cat >conftest.$ac_ext <<_ACEOF
15628/* confdefs.h. */
15629_ACEOF
15630cat confdefs.h >>conftest.$ac_ext
15631cat >>conftest.$ac_ext <<_ACEOF
15632/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015633
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015634int
15635main ()
15636{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015637
15638 extern void* dlopen();
15639 dlopen();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015640
15641 ;
15642 return 0;
15643}
15644_ACEOF
15645rm -f conftest.$ac_objext conftest$ac_exeext
15646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15647 (eval $ac_link) 2>conftest.er1
15648 ac_status=$?
15649 grep -v '^ *+' conftest.er1 >conftest.err
15650 rm -f conftest.er1
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try='test -z "$ac_c_werror_flag"
15655 || test ! -s conftest.err'
15656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657 (eval $ac_try) 2>&5
15658 ac_status=$?
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); }; } &&
15661 { ac_try='test -s conftest$ac_exeext'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; }; then
15667 echo "$as_me:$LINENO: result: yes" >&5
15668echo "${ECHO_T}yes" >&6;
15669
15670cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015671#define HAVE_DLOPEN 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015672_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015673
15674else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015675 echo "$as_me: failed program was:" >&5
15676sed 's/^/| /' conftest.$ac_ext >&5
15677
15678echo "$as_me:$LINENO: result: no" >&5
15679echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015680 LIBS=$olibs
15681fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015682rm -f conftest.err conftest.$ac_objext \
15683 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015684fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015685rm -f conftest.err conftest.$ac_objext \
15686 conftest$ac_exeext conftest.$ac_ext
15687 echo "$as_me:$LINENO: checking for dlsym()" >&5
15688echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6
15689 cat >conftest.$ac_ext <<_ACEOF
15690/* confdefs.h. */
15691_ACEOF
15692cat confdefs.h >>conftest.$ac_ext
15693cat >>conftest.$ac_ext <<_ACEOF
15694/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015695
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015696int
15697main ()
15698{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015699
15700 extern void* dlsym();
15701 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015702
15703 ;
15704 return 0;
15705}
15706_ACEOF
15707rm -f conftest.$ac_objext conftest$ac_exeext
15708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15709 (eval $ac_link) 2>conftest.er1
15710 ac_status=$?
15711 grep -v '^ *+' conftest.er1 >conftest.err
15712 rm -f conftest.er1
15713 cat conftest.err >&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } &&
15716 { ac_try='test -z "$ac_c_werror_flag"
15717 || test ! -s conftest.err'
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; } &&
15723 { ac_try='test -s conftest$ac_exeext'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 echo "$as_me:$LINENO: result: yes" >&5
15730echo "${ECHO_T}yes" >&6;
15731
15732cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015733#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015734_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015735
15736else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015737 echo "$as_me: failed program was:" >&5
15738sed 's/^/| /' conftest.$ac_ext >&5
15739
15740echo "$as_me:$LINENO: result: no" >&5
15741echo "${ECHO_T}no" >&6;
15742 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5
15743echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015744 olibs=$LIBS
15745 LIBS="$LIBS -ldl"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015746 cat >conftest.$ac_ext <<_ACEOF
15747/* confdefs.h. */
15748_ACEOF
15749cat confdefs.h >>conftest.$ac_ext
15750cat >>conftest.$ac_ext <<_ACEOF
15751/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015752
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015753int
15754main ()
15755{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015756
15757 extern void* dlsym();
15758 dlsym();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015759
15760 ;
15761 return 0;
15762}
15763_ACEOF
15764rm -f conftest.$ac_objext conftest$ac_exeext
15765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15766 (eval $ac_link) 2>conftest.er1
15767 ac_status=$?
15768 grep -v '^ *+' conftest.er1 >conftest.err
15769 rm -f conftest.er1
15770 cat conftest.err >&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -z "$ac_c_werror_flag"
15774 || test ! -s conftest.err'
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; } &&
15780 { ac_try='test -s conftest$ac_exeext'
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; }; then
15786 echo "$as_me:$LINENO: result: yes" >&5
15787echo "${ECHO_T}yes" >&6;
15788
15789cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015790#define HAVE_DLSYM 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015791_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015792
15793else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015794 echo "$as_me: failed program was:" >&5
15795sed 's/^/| /' conftest.$ac_ext >&5
15796
15797echo "$as_me:$LINENO: result: no" >&5
15798echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015799 LIBS=$olibs
15800fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015801rm -f conftest.err conftest.$ac_objext \
15802 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015803fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015804rm -f conftest.err conftest.$ac_objext \
15805 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015806elif test x${DLL} = xdl.h; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015807
15808cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015809#define HAVE_DL_H 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015810_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015811
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015812 echo "$as_me:$LINENO: checking for shl_load()" >&5
15813echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6
15814 cat >conftest.$ac_ext <<_ACEOF
15815/* confdefs.h. */
15816_ACEOF
15817cat confdefs.h >>conftest.$ac_ext
15818cat >>conftest.$ac_ext <<_ACEOF
15819/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015820
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015821int
15822main ()
15823{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015824
15825 extern void* shl_load();
15826 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015827
15828 ;
15829 return 0;
15830}
15831_ACEOF
15832rm -f conftest.$ac_objext conftest$ac_exeext
15833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15834 (eval $ac_link) 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -z "$ac_c_werror_flag"
15842 || test ! -s conftest.err'
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try='test -s conftest$ac_exeext'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854 echo "$as_me:$LINENO: result: yes" >&5
15855echo "${ECHO_T}yes" >&6;
15856
15857cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015858#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015859_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015860
15861else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015862 echo "$as_me: failed program was:" >&5
15863sed 's/^/| /' conftest.$ac_ext >&5
15864
15865echo "$as_me:$LINENO: result: no" >&5
15866echo "${ECHO_T}no" >&6;
15867 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5
15868echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015869 olibs=$LIBS
15870 LIBS="$LIBS -ldld"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015871 cat >conftest.$ac_ext <<_ACEOF
15872/* confdefs.h. */
15873_ACEOF
15874cat confdefs.h >>conftest.$ac_ext
15875cat >>conftest.$ac_ext <<_ACEOF
15876/* end confdefs.h. */
Bram Moolenaar071d4272004-06-13 20:20:40 +000015877
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015878int
15879main ()
15880{
Bram Moolenaar071d4272004-06-13 20:20:40 +000015881
15882 extern void* shl_load();
15883 shl_load();
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015884
15885 ;
15886 return 0;
15887}
15888_ACEOF
15889rm -f conftest.$ac_objext conftest$ac_exeext
15890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15891 (eval $ac_link) 2>conftest.er1
15892 ac_status=$?
15893 grep -v '^ *+' conftest.er1 >conftest.err
15894 rm -f conftest.er1
15895 cat conftest.err >&5
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); } &&
15898 { ac_try='test -z "$ac_c_werror_flag"
15899 || test ! -s conftest.err'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; } &&
15905 { ac_try='test -s conftest$ac_exeext'
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15911 echo "$as_me:$LINENO: result: yes" >&5
15912echo "${ECHO_T}yes" >&6;
15913
15914cat >>confdefs.h <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015915#define HAVE_SHL_LOAD 1
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015916_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000015917
15918else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015919 echo "$as_me: failed program was:" >&5
15920sed 's/^/| /' conftest.$ac_ext >&5
15921
15922echo "$as_me:$LINENO: result: no" >&5
15923echo "${ECHO_T}no" >&6;
Bram Moolenaar071d4272004-06-13 20:20:40 +000015924 LIBS=$olibs
15925fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015926rm -f conftest.err conftest.$ac_objext \
15927 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015928fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015929rm -f conftest.err conftest.$ac_objext \
15930 conftest$ac_exeext conftest.$ac_ext
Bram Moolenaar071d4272004-06-13 20:20:40 +000015931fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015932
15933for ac_header in setjmp.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000015934do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015935as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15936if eval "test \"\${$as_ac_Header+set}\" = set"; then
15937 echo "$as_me:$LINENO: checking for $ac_header" >&5
15938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15939if eval "test \"\${$as_ac_Header+set}\" = set"; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015941fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15943echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000015944else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015945 # Is the header compilable?
15946echo "$as_me:$LINENO: checking $ac_header usability" >&5
15947echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15948cat >conftest.$ac_ext <<_ACEOF
15949/* confdefs.h. */
15950_ACEOF
15951cat confdefs.h >>conftest.$ac_ext
15952cat >>conftest.$ac_ext <<_ACEOF
15953/* end confdefs.h. */
15954$ac_includes_default
15955#include <$ac_header>
15956_ACEOF
15957rm -f conftest.$ac_objext
15958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15959 (eval $ac_compile) 2>conftest.er1
15960 ac_status=$?
15961 grep -v '^ *+' conftest.er1 >conftest.err
15962 rm -f conftest.er1
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } &&
15966 { ac_try='test -z "$ac_c_werror_flag"
15967 || test ! -s conftest.err'
15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969 (eval $ac_try) 2>&5
15970 ac_status=$?
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); }; } &&
15973 { ac_try='test -s conftest.$ac_objext'
15974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15975 (eval $ac_try) 2>&5
15976 ac_status=$?
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); }; }; then
15979 ac_header_compiler=yes
15980else
15981 echo "$as_me: failed program was:" >&5
15982sed 's/^/| /' conftest.$ac_ext >&5
15983
15984ac_header_compiler=no
Bram Moolenaar071d4272004-06-13 20:20:40 +000015985fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000015986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15987echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15988echo "${ECHO_T}$ac_header_compiler" >&6
15989
15990# Is the header present?
15991echo "$as_me:$LINENO: checking $ac_header presence" >&5
15992echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15993cat >conftest.$ac_ext <<_ACEOF
15994/* confdefs.h. */
15995_ACEOF
15996cat confdefs.h >>conftest.$ac_ext
15997cat >>conftest.$ac_ext <<_ACEOF
15998/* end confdefs.h. */
15999#include <$ac_header>
16000_ACEOF
16001if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16002 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16003 ac_status=$?
16004 grep -v '^ *+' conftest.er1 >conftest.err
16005 rm -f conftest.er1
16006 cat conftest.err >&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } >/dev/null; then
16009 if test -s conftest.err; then
16010 ac_cpp_err=$ac_c_preproc_warn_flag
16011 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16012 else
16013 ac_cpp_err=
16014 fi
16015else
16016 ac_cpp_err=yes
16017fi
16018if test -z "$ac_cpp_err"; then
16019 ac_header_preproc=yes
16020else
16021 echo "$as_me: failed program was:" >&5
16022sed 's/^/| /' conftest.$ac_ext >&5
16023
16024 ac_header_preproc=no
16025fi
16026rm -f conftest.err conftest.$ac_ext
16027echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16028echo "${ECHO_T}$ac_header_preproc" >&6
16029
16030# So? What about this header?
16031case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16032 yes:no: )
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16034echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16036echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16037 ac_header_preproc=yes
16038 ;;
16039 no:yes:* )
16040 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16041echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16042 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16043echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16044 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16045echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16047echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16049echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16051echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16052 (
16053 cat <<\_ASBOX
16054## ------------------------------------------ ##
16055## Report this to the AC_PACKAGE_NAME lists. ##
16056## ------------------------------------------ ##
16057_ASBOX
16058 ) |
16059 sed "s/^/$as_me: WARNING: /" >&2
16060 ;;
16061esac
16062echo "$as_me:$LINENO: checking for $ac_header" >&5
16063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16064if eval "test \"\${$as_ac_Header+set}\" = set"; then
16065 echo $ECHO_N "(cached) $ECHO_C" >&6
16066else
16067 eval "$as_ac_Header=\$ac_header_preproc"
16068fi
16069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16071
16072fi
16073if test `eval echo '${'$as_ac_Header'}'` = yes; then
16074 cat >>confdefs.h <<_ACEOF
16075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16076_ACEOF
16077
16078fi
16079
Bram Moolenaar071d4272004-06-13 20:20:40 +000016080done
16081
16082
16083if test "x$MACOSX" = "xyes" -a -n "$PERL"; then
16084 if echo $LIBS | grep -e '-ldl' >/dev/null; then
16085 LIBS=`echo $LIBS | sed s/-ldl//`
16086 PERL_LIBS="$PERL_LIBS -ldl"
16087 fi
16088fi
16089
16090if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \
16091 && test "x$GUITYPE" != "xCARBONGUI"; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016092 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5
16093echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000016094 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \
16095 || test "x$features" = "xhuge"; then
16096 LIBS="$LIBS -framework Carbon"
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016097 echo "$as_me:$LINENO: result: yes" >&5
16098echo "${ECHO_T}yes" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000016099 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016100 echo "$as_me:$LINENO: result: no" >&5
16101echo "${ECHO_T}no" >&6
Bram Moolenaar071d4272004-06-13 20:20:40 +000016102 fi
16103fi
16104
16105
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016106 ac_config_files="$ac_config_files auto/config.mk:config.mk.in"
16107cat >confcache <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016108# This file is a shell script that caches the results of configure
16109# tests run on this system so they can be shared between configure
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016110# scripts and configure runs, see configure's option --config-cache.
16111# It is not useful on other systems. If it contains results you don't
16112# want to keep, you may remove or edit it.
Bram Moolenaar071d4272004-06-13 20:20:40 +000016113#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016114# config.status only pays attention to the cache file if you give it
16115# the --recheck option to rerun configure.
Bram Moolenaar071d4272004-06-13 20:20:40 +000016116#
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016117# `ac_cv_env_foo' variables (set or unset) will be overridden when
16118# loading this file, other *unset* `ac_cv_foo' will be assigned the
16119# following values.
16120
16121_ACEOF
16122
Bram Moolenaar071d4272004-06-13 20:20:40 +000016123# The following way of writing the cache mishandles newlines in values,
16124# but we know of no workaround that is simple, portable, and efficient.
16125# So, don't put newlines in cache variables' values.
16126# Ultrix sh set writes to stderr and can't be redirected directly,
16127# and sets the high bit in the cache file unless we assign to the vars.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016128{
16129 (set) 2>&1 |
16130 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16131 *ac_space=\ *)
16132 # `set' does not quote correctly, so add quotes (double-quote
16133 # substitution turns \\\\ into \\, and sed turns \\ into \).
16134 sed -n \
16135 "s/'/'\\\\''/g;
16136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16137 ;;
16138 *)
16139 # `set' quotes correctly as required by POSIX, so do not add quotes.
16140 sed -n \
16141 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16142 ;;
16143 esac;
16144} |
16145 sed '
16146 t clear
16147 : clear
16148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16149 t end
16150 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16151 : end' >>confcache
16152if diff $cache_file confcache >/dev/null 2>&1; then :; else
Bram Moolenaar071d4272004-06-13 20:20:40 +000016153 if test -w $cache_file; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016154 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16155 cat confcache >$cache_file
Bram Moolenaar071d4272004-06-13 20:20:40 +000016156 else
16157 echo "not updating unwritable cache $cache_file"
16158 fi
16159fi
16160rm -f confcache
16161
Bram Moolenaar071d4272004-06-13 20:20:40 +000016162test "x$prefix" = xNONE && prefix=$ac_default_prefix
16163# Let make expand exec_prefix.
16164test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16165
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016166# VPATH may cause trouble with some makes, so we remove $(srcdir),
16167# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16168# trailing colons and then remove the whole line if VPATH becomes empty
16169# (actually we leave an empty line to preserve line numbers).
Bram Moolenaar071d4272004-06-13 20:20:40 +000016170if test "x$srcdir" = x.; then
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016171 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16172s/:*\$(srcdir):*/:/;
16173s/:*\${srcdir}:*/:/;
16174s/:*@srcdir@:*/:/;
16175s/^\([^=]*=[ ]*\):*/\1/;
16176s/:*$//;
16177s/^[^=]*=[ ]*$//;
16178}'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016179fi
16180
Bram Moolenaar071d4272004-06-13 20:20:40 +000016181DEFS=-DHAVE_CONFIG_H
16182
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016183ac_libobjs=
16184ac_ltlibobjs=
16185for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16186 # 1. Remove the extension, and $U if already installed.
16187 ac_i=`echo "$ac_i" |
16188 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16189 # 2. Add them.
16190 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16191 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16192done
16193LIBOBJS=$ac_libobjs
16194
16195LTLIBOBJS=$ac_ltlibobjs
16196
16197
16198
Bram Moolenaar071d4272004-06-13 20:20:40 +000016199: ${CONFIG_STATUS=./config.status}
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016200ac_clean_files_save=$ac_clean_files
16201ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16202{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16203echo "$as_me: creating $CONFIG_STATUS" >&6;}
16204cat >$CONFIG_STATUS <<_ACEOF
16205#! $SHELL
16206# Generated by $as_me.
Bram Moolenaar071d4272004-06-13 20:20:40 +000016207# Run this file to recreate the current configuration.
Bram Moolenaar071d4272004-06-13 20:20:40 +000016208# Compiler output produced by configure, useful for debugging
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016209# configure, is in config.log if it exists.
Bram Moolenaar071d4272004-06-13 20:20:40 +000016210
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016211debug=false
16212ac_cs_recheck=false
16213ac_cs_silent=false
16214SHELL=\${CONFIG_SHELL-$SHELL}
16215_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000016216
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016217cat >>$CONFIG_STATUS <<\_ACEOF
16218## --------------------- ##
16219## M4sh Initialization. ##
16220## --------------------- ##
Bram Moolenaar071d4272004-06-13 20:20:40 +000016221
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016222# Be Bourne compatible
16223if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16224 emulate sh
16225 NULLCMD=:
16226 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16227 # is contrary to our usage. Disable this feature.
16228 alias -g '${1+"$@"}'='"$@"'
16229elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16230 set -o posix
Bram Moolenaar071d4272004-06-13 20:20:40 +000016231fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016232DUALCASE=1; export DUALCASE # for MKS sh
Bram Moolenaar071d4272004-06-13 20:20:40 +000016233
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016234# Support unset when possible.
16235if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16236 as_unset=unset
16237else
16238 as_unset=false
16239fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000016240
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016241
16242# Work around bugs in pre-3.0 UWIN ksh.
16243$as_unset ENV MAIL MAILPATH
16244PS1='$ '
16245PS2='> '
16246PS4='+ '
16247
16248# NLS nuisances.
16249for as_var in \
16250 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16251 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16252 LC_TELEPHONE LC_TIME
16253do
16254 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16255 eval $as_var=C; export $as_var
16256 else
16257 $as_unset $as_var
16258 fi
16259done
16260
16261# Required to use basename.
16262if expr a : '\(a\)' >/dev/null 2>&1; then
16263 as_expr=expr
16264else
16265 as_expr=false
16266fi
16267
16268if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16269 as_basename=basename
16270else
16271 as_basename=false
16272fi
16273
16274
16275# Name of the executable.
16276as_me=`$as_basename "$0" ||
16277$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16278 X"$0" : 'X\(//\)$' \| \
16279 X"$0" : 'X\(/\)$' \| \
16280 . : '\(.\)' 2>/dev/null ||
16281echo X/"$0" |
16282 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16283 /^X\/\(\/\/\)$/{ s//\1/; q; }
16284 /^X\/\(\/\).*/{ s//\1/; q; }
16285 s/.*/./; q'`
16286
16287
16288# PATH needs CR, and LINENO needs CR and PATH.
16289# Avoid depending upon Character Ranges.
16290as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16291as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16292as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16293as_cr_digits='0123456789'
16294as_cr_alnum=$as_cr_Letters$as_cr_digits
16295
16296# The user is always right.
16297if test "${PATH_SEPARATOR+set}" != set; then
16298 echo "#! /bin/sh" >conf$$.sh
16299 echo "exit 0" >>conf$$.sh
16300 chmod +x conf$$.sh
16301 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16302 PATH_SEPARATOR=';'
16303 else
16304 PATH_SEPARATOR=:
16305 fi
16306 rm -f conf$$.sh
16307fi
16308
16309
16310 as_lineno_1=$LINENO
16311 as_lineno_2=$LINENO
16312 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16313 test "x$as_lineno_1" != "x$as_lineno_2" &&
16314 test "x$as_lineno_3" = "x$as_lineno_2" || {
16315 # Find who we are. Look in the path if we contain no path at all
16316 # relative or not.
16317 case $0 in
16318 *[\\/]* ) as_myself=$0 ;;
16319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16320for as_dir in $PATH
16321do
16322 IFS=$as_save_IFS
16323 test -z "$as_dir" && as_dir=.
16324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16325done
16326
16327 ;;
16328 esac
16329 # We did not find ourselves, most probably we were run as `sh COMMAND'
16330 # in which case we are not to be found in the path.
16331 if test "x$as_myself" = x; then
16332 as_myself=$0
16333 fi
16334 if test ! -f "$as_myself"; then
16335 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16336echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16337 { (exit 1); exit 1; }; }
16338 fi
16339 case $CONFIG_SHELL in
16340 '')
16341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16342for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16343do
16344 IFS=$as_save_IFS
16345 test -z "$as_dir" && as_dir=.
16346 for as_base in sh bash ksh sh5; do
16347 case $as_dir in
16348 /*)
16349 if ("$as_dir/$as_base" -c '
16350 as_lineno_1=$LINENO
16351 as_lineno_2=$LINENO
16352 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16353 test "x$as_lineno_1" != "x$as_lineno_2" &&
16354 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16355 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16356 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16357 CONFIG_SHELL=$as_dir/$as_base
16358 export CONFIG_SHELL
16359 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16360 fi;;
16361 esac
16362 done
16363done
16364;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000016365 esac
16366
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016367 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16368 # uniformly replaced by the line number. The first 'sed' inserts a
16369 # line-number line before each line; the second 'sed' does the real
16370 # work. The second script uses 'N' to pair each line-number line
16371 # with the numbered line, and appends trailing '-' during
16372 # substitution so that $LINENO is not a special case at line end.
16373 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16374 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16375 sed '=' <$as_myself |
16376 sed '
16377 N
16378 s,$,-,
16379 : loop
16380 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16381 t loop
16382 s,-$,,
16383 s,^['$as_cr_digits']*\n,,
16384 ' >$as_me.lineno &&
16385 chmod +x $as_me.lineno ||
16386 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16387echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16388 { (exit 1); exit 1; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000016389
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016390 # Don't try to exec as it changes $[0], causing all sort of problems
16391 # (the dirname of $[0] is not the place where we might find the
16392 # original and so on. Autoconf is especially sensible to this).
16393 . ./$as_me.lineno
16394 # Exit status is that of the last command.
16395 exit
16396}
16397
16398
16399case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16400 *c*,-n*) ECHO_N= ECHO_C='
16401' ECHO_T=' ' ;;
16402 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16403 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16404esac
16405
16406if expr a : '\(a\)' >/dev/null 2>&1; then
16407 as_expr=expr
16408else
16409 as_expr=false
16410fi
16411
16412rm -f conf$$ conf$$.exe conf$$.file
16413echo >conf$$.file
16414if ln -s conf$$.file conf$$ 2>/dev/null; then
16415 # We could just check for DJGPP; but this test a) works b) is more generic
16416 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16417 if test -f conf$$.exe; then
16418 # Don't use ln at all; we don't have any links
16419 as_ln_s='cp -p'
Bram Moolenaar071d4272004-06-13 20:20:40 +000016420 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000016421 as_ln_s='ln -s'
16422 fi
16423elif ln conf$$.file conf$$ 2>/dev/null; then
16424 as_ln_s=ln
16425else
16426 as_ln_s='cp -p'
16427fi
16428rm -f conf$$ conf$$.exe conf$$.file
16429
16430if mkdir -p . 2>/dev/null; then
16431 as_mkdir_p=:
16432else
16433 test -d ./-p && rmdir ./-p
16434 as_mkdir_p=false
16435fi
16436
16437as_executable_p="test -f"
16438
16439# Sed expression to map a string onto a valid CPP name.
16440as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16441
16442# Sed expression to map a string onto a valid variable name.
16443as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16444
16445
16446# IFS
16447# We need space, tab and new line, in precisely that order.
16448as_nl='
16449'
16450IFS=" $as_nl"
16451
16452# CDPATH.
16453$as_unset CDPATH
16454
16455exec 6>&1
16456
16457# Open the log real soon, to keep \$[0] and so on meaningful, and to
16458# report actual input values of CONFIG_FILES etc. instead of their
16459# values after options handling. Logging --version etc. is OK.
16460exec 5>>auto/config.log
16461{
16462 echo
16463 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16464## Running $as_me. ##
16465_ASBOX
16466} >&5
16467cat >&5 <<_CSEOF
16468
16469This file was extended by $as_me, which was
16470generated by GNU Autoconf 2.59. Invocation command line was
16471
16472 CONFIG_FILES = $CONFIG_FILES
16473 CONFIG_HEADERS = $CONFIG_HEADERS
16474 CONFIG_LINKS = $CONFIG_LINKS
16475 CONFIG_COMMANDS = $CONFIG_COMMANDS
16476 $ $0 $@
16477
16478_CSEOF
16479echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16480echo >&5
16481_ACEOF
16482
16483# Files that config.status was made for.
16484if test -n "$ac_config_files"; then
16485 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16486fi
16487
16488if test -n "$ac_config_headers"; then
16489 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16490fi
16491
16492if test -n "$ac_config_links"; then
16493 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16494fi
16495
16496if test -n "$ac_config_commands"; then
16497 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16498fi
16499
16500cat >>$CONFIG_STATUS <<\_ACEOF
16501
16502ac_cs_usage="\
16503\`$as_me' instantiates files from templates according to the
16504current configuration.
16505
16506Usage: $0 [OPTIONS] [FILE]...
16507
16508 -h, --help print this help, then exit
16509 -V, --version print version number, then exit
16510 -q, --quiet do not print progress messages
16511 -d, --debug don't remove temporary files
16512 --recheck update $as_me by reconfiguring in the same conditions
16513 --file=FILE[:TEMPLATE]
16514 instantiate the configuration file FILE
16515 --header=FILE[:TEMPLATE]
16516 instantiate the configuration header FILE
16517
16518Configuration files:
16519$config_files
16520
16521Configuration headers:
16522$config_headers
16523
16524Report bugs to <bug-autoconf@gnu.org>."
16525_ACEOF
16526
16527cat >>$CONFIG_STATUS <<_ACEOF
16528ac_cs_version="\\
16529config.status
16530configured by $0, generated by GNU Autoconf 2.59,
16531 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16532
16533Copyright (C) 2003 Free Software Foundation, Inc.
16534This config.status script is free software; the Free Software Foundation
16535gives unlimited permission to copy, distribute and modify it."
16536srcdir=$srcdir
16537_ACEOF
16538
16539cat >>$CONFIG_STATUS <<\_ACEOF
16540# If no file are specified by the user, then we need to provide default
16541# value. By we need to know if files were specified by the user.
16542ac_need_defaults=:
16543while test $# != 0
16544do
16545 case $1 in
16546 --*=*)
16547 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16548 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16549 ac_shift=:
16550 ;;
16551 -*)
16552 ac_option=$1
16553 ac_optarg=$2
16554 ac_shift=shift
16555 ;;
16556 *) # This is not an option, so the user has probably given explicit
16557 # arguments.
16558 ac_option=$1
16559 ac_need_defaults=false;;
16560 esac
16561
16562 case $ac_option in
16563 # Handling of the options.
16564_ACEOF
16565cat >>$CONFIG_STATUS <<\_ACEOF
16566 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16567 ac_cs_recheck=: ;;
16568 --version | --vers* | -V )
16569 echo "$ac_cs_version"; exit 0 ;;
16570 --he | --h)
16571 # Conflict between --help and --header
16572 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16573Try \`$0 --help' for more information." >&5
16574echo "$as_me: error: ambiguous option: $1
16575Try \`$0 --help' for more information." >&2;}
16576 { (exit 1); exit 1; }; };;
16577 --help | --hel | -h )
16578 echo "$ac_cs_usage"; exit 0 ;;
16579 --debug | --d* | -d )
16580 debug=: ;;
16581 --file | --fil | --fi | --f )
16582 $ac_shift
16583 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16584 ac_need_defaults=false;;
16585 --header | --heade | --head | --hea )
16586 $ac_shift
16587 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16588 ac_need_defaults=false;;
16589 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16590 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16591 ac_cs_silent=: ;;
16592
16593 # This is an error.
16594 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16595Try \`$0 --help' for more information." >&5
16596echo "$as_me: error: unrecognized option: $1
16597Try \`$0 --help' for more information." >&2;}
16598 { (exit 1); exit 1; }; } ;;
16599
16600 *) ac_config_targets="$ac_config_targets $1" ;;
16601
16602 esac
16603 shift
16604done
16605
16606ac_configure_extra_args=
16607
16608if $ac_cs_silent; then
16609 exec 6>/dev/null
16610 ac_configure_extra_args="$ac_configure_extra_args --silent"
16611fi
16612
16613_ACEOF
16614cat >>$CONFIG_STATUS <<_ACEOF
16615if \$ac_cs_recheck; then
16616 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16617 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16618fi
16619
16620_ACEOF
16621
16622
16623
16624
16625
16626cat >>$CONFIG_STATUS <<\_ACEOF
16627for ac_config_target in $ac_config_targets
16628do
16629 case "$ac_config_target" in
16630 # Handling of arguments.
16631 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;;
16632 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;;
16633 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16634echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16635 { (exit 1); exit 1; }; };;
16636 esac
16637done
16638
16639# If the user did not use the arguments to specify the items to instantiate,
16640# then the envvar interface is used. Set only those that are not.
16641# We use the long form for the default assignment because of an extremely
16642# bizarre bug on SunOS 4.1.3.
16643if $ac_need_defaults; then
16644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16646fi
16647
16648# Have a temporary directory for convenience. Make it in the build tree
16649# simply because there is no reason to put it here, and in addition,
16650# creating and moving files from /tmp can sometimes cause problems.
16651# Create a temporary directory, and hook for its removal unless debugging.
16652$debug ||
16653{
16654 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16655 trap '{ (exit 1); exit 1; }' 1 2 13 15
16656}
16657
16658# Create a (secure) tmp directory for tmp files.
16659
16660{
16661 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16662 test -n "$tmp" && test -d "$tmp"
16663} ||
16664{
16665 tmp=./confstat$$-$RANDOM
16666 (umask 077 && mkdir $tmp)
16667} ||
16668{
16669 echo "$me: cannot create a temporary directory in ." >&2
16670 { (exit 1); exit 1; }
16671}
16672
16673_ACEOF
16674
16675cat >>$CONFIG_STATUS <<_ACEOF
16676
16677#
16678# CONFIG_FILES section.
16679#
16680
16681# No need to generate the scripts if there are no CONFIG_FILES.
16682# This happens for instance when ./config.status config.h
16683if test -n "\$CONFIG_FILES"; then
16684 # Protect against being on the right side of a sed subst in config.status.
16685 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16686 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16687s,@SHELL@,$SHELL,;t t
16688s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16689s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16690s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16691s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16692s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16693s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16694s,@exec_prefix@,$exec_prefix,;t t
16695s,@prefix@,$prefix,;t t
16696s,@program_transform_name@,$program_transform_name,;t t
16697s,@bindir@,$bindir,;t t
16698s,@sbindir@,$sbindir,;t t
16699s,@libexecdir@,$libexecdir,;t t
16700s,@datadir@,$datadir,;t t
16701s,@sysconfdir@,$sysconfdir,;t t
16702s,@sharedstatedir@,$sharedstatedir,;t t
16703s,@localstatedir@,$localstatedir,;t t
16704s,@libdir@,$libdir,;t t
16705s,@includedir@,$includedir,;t t
16706s,@oldincludedir@,$oldincludedir,;t t
16707s,@infodir@,$infodir,;t t
16708s,@mandir@,$mandir,;t t
16709s,@build_alias@,$build_alias,;t t
16710s,@host_alias@,$host_alias,;t t
16711s,@target_alias@,$target_alias,;t t
16712s,@DEFS@,$DEFS,;t t
16713s,@ECHO_C@,$ECHO_C,;t t
16714s,@ECHO_N@,$ECHO_N,;t t
16715s,@ECHO_T@,$ECHO_T,;t t
16716s,@LIBS@,$LIBS,;t t
16717s,@SET_MAKE@,$SET_MAKE,;t t
16718s,@CC@,$CC,;t t
16719s,@CFLAGS@,$CFLAGS,;t t
16720s,@LDFLAGS@,$LDFLAGS,;t t
16721s,@CPPFLAGS@,$CPPFLAGS,;t t
16722s,@ac_ct_CC@,$ac_ct_CC,;t t
16723s,@EXEEXT@,$EXEEXT,;t t
16724s,@OBJEXT@,$OBJEXT,;t t
16725s,@CPP@,$CPP,;t t
16726s,@EGREP@,$EGREP,;t t
16727s,@AWK@,$AWK,;t t
16728s,@STRIP@,$STRIP,;t t
16729s,@CPP_MM@,$CPP_MM,;t t
16730s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t
16731s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t
16732s,@VIMNAME@,$VIMNAME,;t t
16733s,@EXNAME@,$EXNAME,;t t
16734s,@VIEWNAME@,$VIEWNAME,;t t
16735s,@line_break@,$line_break,;t t
16736s,@dovimdiff@,$dovimdiff,;t t
16737s,@dogvimdiff@,$dogvimdiff,;t t
16738s,@compiledby@,$compiledby,;t t
16739s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t
16740s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t
16741s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t
16742s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t
16743s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t
16744s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t
16745s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t
16746s,@vi_cv_perllib@,$vi_cv_perllib,;t t
16747s,@shrpenv@,$shrpenv,;t t
16748s,@PERL_SRC@,$PERL_SRC,;t t
16749s,@PERL_OBJ@,$PERL_OBJ,;t t
16750s,@PERL_PRO@,$PERL_PRO,;t t
16751s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t
16752s,@PERL_LIBS@,$PERL_LIBS,;t t
16753s,@vi_cv_path_python@,$vi_cv_path_python,;t t
16754s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t
16755s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
16756s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t
16757s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
16758s,@PYTHON_SRC@,$PYTHON_SRC,;t t
16759s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t
16760s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t
16761s,@TCL_SRC@,$TCL_SRC,;t t
16762s,@TCL_OBJ@,$TCL_OBJ,;t t
16763s,@TCL_PRO@,$TCL_PRO,;t t
16764s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t
16765s,@TCL_LIBS@,$TCL_LIBS,;t t
16766s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t
16767s,@RUBY_SRC@,$RUBY_SRC,;t t
16768s,@RUBY_OBJ@,$RUBY_OBJ,;t t
16769s,@RUBY_PRO@,$RUBY_PRO,;t t
16770s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t
16771s,@RUBY_LIBS@,$RUBY_LIBS,;t t
16772s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t
16773s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t
16774s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t
16775s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t
16776s,@SNIFF_SRC@,$SNIFF_SRC,;t t
16777s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t
16778s,@xmkmfpath@,$xmkmfpath,;t t
16779s,@X_CFLAGS@,$X_CFLAGS,;t t
16780s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16781s,@X_LIBS@,$X_LIBS,;t t
16782s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16783s,@X_LIB@,$X_LIB,;t t
16784s,@MOC@,$MOC,;t t
16785s,@KDE_CONFIG@,$KDE_CONFIG,;t t
16786s,@KDE_LIBS@,$KDE_LIBS,;t t
16787s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t
16788s,@KDE_PREFIX@,$KDE_PREFIX,;t t
16789s,@CXX@,$CXX,;t t
16790s,@CXXFLAGS@,$CXXFLAGS,;t t
16791s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16792s,@QT_LIBS@,$QT_LIBS,;t t
16793s,@QT_INCLUDES@,$QT_INCLUDES,;t t
16794s,@ROOTQT@,$ROOTQT,;t t
16795s,@GTK_CONFIG@,$GTK_CONFIG,;t t
16796s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t
16797s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16798s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16799s,@GTK_LIBS@,$GTK_LIBS,;t t
16800s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t
16801s,@GNOME_LIBS@,$GNOME_LIBS,;t t
16802s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
16803s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
16804s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
16805s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t
16806s,@NARROW_PROTO@,$NARROW_PROTO,;t t
16807s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t
16808s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t
16809s,@GUITYPE@,$GUITYPE,;t t
16810s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t
16811s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t
16812s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t
16813s,@TAGPRG@,$TAGPRG,;t t
16814s,@MSGFMT@,$MSGFMT,;t t
16815s,@MAKEMO@,$MAKEMO,;t t
16816s,@LIBOBJS@,$LIBOBJS,;t t
16817s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16818CEOF
16819
16820_ACEOF
16821
16822 cat >>$CONFIG_STATUS <<\_ACEOF
16823 # Split the substitutions into bite-sized pieces for seds with
16824 # small command number limits, like on Digital OSF/1 and HP-UX.
16825 ac_max_sed_lines=48
16826 ac_sed_frag=1 # Number of current file.
16827 ac_beg=1 # First line for current file.
16828 ac_end=$ac_max_sed_lines # Line after last line for current file.
16829 ac_more_lines=:
16830 ac_sed_cmds=
16831 while $ac_more_lines; do
16832 if test $ac_beg -gt 1; then
16833 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16834 else
16835 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16836 fi
16837 if test ! -s $tmp/subs.frag; then
16838 ac_more_lines=false
16839 else
16840 # The purpose of the label and of the branching condition is to
16841 # speed up the sed processing (if there are no `@' at all, there
16842 # is no need to browse any of the substitutions).
16843 # These are the two extra sed commands mentioned above.
16844 (echo ':t
16845 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16846 if test -z "$ac_sed_cmds"; then
16847 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16848 else
16849 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16850 fi
16851 ac_sed_frag=`expr $ac_sed_frag + 1`
16852 ac_beg=$ac_end
16853 ac_end=`expr $ac_end + $ac_max_sed_lines`
16854 fi
16855 done
16856 if test -z "$ac_sed_cmds"; then
16857 ac_sed_cmds=cat
16858 fi
16859fi # test -n "$CONFIG_FILES"
16860
16861_ACEOF
16862cat >>$CONFIG_STATUS <<\_ACEOF
16863for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16864 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16865 case $ac_file in
16866 - | *:- | *:-:* ) # input from stdin
16867 cat >$tmp/stdin
16868 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16869 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16870 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16871 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16872 * ) ac_file_in=$ac_file.in ;;
16873 esac
16874
16875 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16876 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16877$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16878 X"$ac_file" : 'X\(//\)[^/]' \| \
16879 X"$ac_file" : 'X\(//\)$' \| \
16880 X"$ac_file" : 'X\(/\)' \| \
16881 . : '\(.\)' 2>/dev/null ||
16882echo X"$ac_file" |
16883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16885 /^X\(\/\/\)$/{ s//\1/; q; }
16886 /^X\(\/\).*/{ s//\1/; q; }
16887 s/.*/./; q'`
16888 { if $as_mkdir_p; then
16889 mkdir -p "$ac_dir"
16890 else
16891 as_dir="$ac_dir"
16892 as_dirs=
16893 while test ! -d "$as_dir"; do
16894 as_dirs="$as_dir $as_dirs"
16895 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16896$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16897 X"$as_dir" : 'X\(//\)[^/]' \| \
16898 X"$as_dir" : 'X\(//\)$' \| \
16899 X"$as_dir" : 'X\(/\)' \| \
16900 . : '\(.\)' 2>/dev/null ||
16901echo X"$as_dir" |
16902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16903 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16904 /^X\(\/\/\)$/{ s//\1/; q; }
16905 /^X\(\/\).*/{ s//\1/; q; }
16906 s/.*/./; q'`
16907 done
16908 test ! -n "$as_dirs" || mkdir $as_dirs
16909 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16910echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16911 { (exit 1); exit 1; }; }; }
16912
16913 ac_builddir=.
16914
16915if test "$ac_dir" != .; then
16916 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16917 # A "../" for each directory in $ac_dir_suffix.
16918 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16919else
16920 ac_dir_suffix= ac_top_builddir=
16921fi
16922
16923case $srcdir in
16924 .) # No --srcdir option. We are building in place.
16925 ac_srcdir=.
16926 if test -z "$ac_top_builddir"; then
16927 ac_top_srcdir=.
16928 else
16929 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16930 fi ;;
16931 [\\/]* | ?:[\\/]* ) # Absolute path.
16932 ac_srcdir=$srcdir$ac_dir_suffix;
16933 ac_top_srcdir=$srcdir ;;
16934 *) # Relative path.
16935 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16936 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16937esac
16938
16939# Do not use `cd foo && pwd` to compute absolute paths, because
16940# the directories may not exist.
16941case `pwd` in
16942.) ac_abs_builddir="$ac_dir";;
16943*)
16944 case "$ac_dir" in
16945 .) ac_abs_builddir=`pwd`;;
16946 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16947 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16948 esac;;
16949esac
16950case $ac_abs_builddir in
16951.) ac_abs_top_builddir=${ac_top_builddir}.;;
16952*)
16953 case ${ac_top_builddir}. in
16954 .) ac_abs_top_builddir=$ac_abs_builddir;;
16955 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16956 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16957 esac;;
16958esac
16959case $ac_abs_builddir in
16960.) ac_abs_srcdir=$ac_srcdir;;
16961*)
16962 case $ac_srcdir in
16963 .) ac_abs_srcdir=$ac_abs_builddir;;
16964 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16965 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16966 esac;;
16967esac
16968case $ac_abs_builddir in
16969.) ac_abs_top_srcdir=$ac_top_srcdir;;
16970*)
16971 case $ac_top_srcdir in
16972 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16973 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16974 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16975 esac;;
16976esac
16977
16978
16979
16980 if test x"$ac_file" != x-; then
16981 { echo "$as_me:$LINENO: creating $ac_file" >&5
16982echo "$as_me: creating $ac_file" >&6;}
16983 rm -f "$ac_file"
16984 fi
16985 # Let's still pretend it is `configure' which instantiates (i.e., don't
16986 # use $as_me), people would be surprised to read:
16987 # /* config.h. Generated by config.status. */
16988 if test x"$ac_file" = x-; then
16989 configure_input=
16990 else
16991 configure_input="$ac_file. "
16992 fi
16993 configure_input=$configure_input"Generated from `echo $ac_file_in |
16994 sed 's,.*/,,'` by configure."
16995
16996 # First look for the input files in the build tree, otherwise in the
16997 # src tree.
16998 ac_file_inputs=`IFS=:
16999 for f in $ac_file_in; do
17000 case $f in
17001 -) echo $tmp/stdin ;;
17002 [\\/$]*)
17003 # Absolute (can't be DOS-style, as IFS=:)
17004 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17005echo "$as_me: error: cannot find input file: $f" >&2;}
17006 { (exit 1); exit 1; }; }
17007 echo "$f";;
17008 *) # Relative
17009 if test -f "$f"; then
17010 # Build tree
17011 echo "$f"
17012 elif test -f "$srcdir/$f"; then
17013 # Source tree
17014 echo "$srcdir/$f"
17015 else
17016 # /dev/null tree
17017 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17018echo "$as_me: error: cannot find input file: $f" >&2;}
17019 { (exit 1); exit 1; }; }
17020 fi;;
17021 esac
17022 done` || { (exit 1); exit 1; }
17023_ACEOF
17024cat >>$CONFIG_STATUS <<_ACEOF
17025 sed "$ac_vpsub
17026$extrasub
17027_ACEOF
17028cat >>$CONFIG_STATUS <<\_ACEOF
17029:t
17030/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17031s,@configure_input@,$configure_input,;t t
17032s,@srcdir@,$ac_srcdir,;t t
17033s,@abs_srcdir@,$ac_abs_srcdir,;t t
17034s,@top_srcdir@,$ac_top_srcdir,;t t
17035s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17036s,@builddir@,$ac_builddir,;t t
17037s,@abs_builddir@,$ac_abs_builddir,;t t
17038s,@top_builddir@,$ac_top_builddir,;t t
17039s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17040" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17041 rm -f $tmp/stdin
17042 if test x"$ac_file" != x-; then
17043 mv $tmp/out $ac_file
17044 else
17045 cat $tmp/out
17046 rm -f $tmp/out
Bram Moolenaar071d4272004-06-13 20:20:40 +000017047 fi
17048
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017049done
17050_ACEOF
17051cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000017052
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017053#
17054# CONFIG_HEADER section.
17055#
Bram Moolenaar071d4272004-06-13 20:20:40 +000017056
17057# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17058# NAME is the cpp macro being defined and VALUE is the value it is being given.
17059#
17060# ac_d sets the value in "#define NAME VALUE" lines.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017061ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17062ac_dB='[ ].*$,\1#\2'
17063ac_dC=' '
17064ac_dD=',;t'
17065# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17066ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17067ac_uB='$,\1#\2define\3'
Bram Moolenaar071d4272004-06-13 20:20:40 +000017068ac_uC=' '
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017069ac_uD=',;t'
Bram Moolenaar071d4272004-06-13 20:20:40 +000017070
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017071for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Bram Moolenaar071d4272004-06-13 20:20:40 +000017072 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017073 case $ac_file in
17074 - | *:- | *:-:* ) # input from stdin
17075 cat >$tmp/stdin
17076 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17077 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17078 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17079 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17080 * ) ac_file_in=$ac_file.in ;;
Bram Moolenaar071d4272004-06-13 20:20:40 +000017081 esac
17082
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017083 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17084echo "$as_me: creating $ac_file" >&6;}
Bram Moolenaar071d4272004-06-13 20:20:40 +000017085
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017086 # First look for the input files in the build tree, otherwise in the
17087 # src tree.
17088 ac_file_inputs=`IFS=:
17089 for f in $ac_file_in; do
17090 case $f in
17091 -) echo $tmp/stdin ;;
17092 [\\/$]*)
17093 # Absolute (can't be DOS-style, as IFS=:)
17094 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17095echo "$as_me: error: cannot find input file: $f" >&2;}
17096 { (exit 1); exit 1; }; }
17097 # Do quote $f, to prevent DOS paths from being IFS'd.
17098 echo "$f";;
17099 *) # Relative
17100 if test -f "$f"; then
17101 # Build tree
17102 echo "$f"
17103 elif test -f "$srcdir/$f"; then
17104 # Source tree
17105 echo "$srcdir/$f"
17106 else
17107 # /dev/null tree
17108 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17109echo "$as_me: error: cannot find input file: $f" >&2;}
17110 { (exit 1); exit 1; }; }
17111 fi;;
17112 esac
17113 done` || { (exit 1); exit 1; }
17114 # Remove the trailing spaces.
17115 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Bram Moolenaar071d4272004-06-13 20:20:40 +000017116
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017117_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000017118
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017119# Transform confdefs.h into two sed scripts, `conftest.defines' and
17120# `conftest.undefs', that substitutes the proper values into
17121# config.h.in to produce config.h. The first handles `#define'
17122# templates, and the second `#undef' templates.
17123# And first: Protect against being on the right side of a sed subst in
17124# config.status. Protect against being in an unquoted here document
17125# in config.status.
17126rm -f conftest.defines conftest.undefs
17127# Using a here document instead of a string reduces the quoting nightmare.
17128# Putting comments in sed scripts is not portable.
17129#
17130# `end' is used to avoid that the second main sed command (meant for
17131# 0-ary CPP macros) applies to n-ary macro definitions.
17132# See the Autoconf documentation for `clear'.
17133cat >confdef2sed.sed <<\_ACEOF
17134s/[\\&,]/\\&/g
17135s,[\\$`],\\&,g
17136t clear
17137: clear
17138s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17139t end
17140s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17141: end
17142_ACEOF
17143# If some macros were called several times there might be several times
17144# the same #defines, which is useless. Nevertheless, we may not want to
17145# sort them, since we want the *last* AC-DEFINE to be honored.
17146uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17147sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17148rm -f confdef2sed.sed
Bram Moolenaar071d4272004-06-13 20:20:40 +000017149
17150# This sed command replaces #undef with comments. This is necessary, for
17151# example, in the case of _POSIX_SOURCE, which is predefined and required
17152# on some systems where configure will not decide to define it.
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017153cat >>conftest.undefs <<\_ACEOF
17154s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17155_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000017156
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017157# Break up conftest.defines because some shells have a limit on the size
17158# of here documents, and old seds have small limits too (100 cmds).
17159echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17160echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17161echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17162echo ' :' >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000017163rm -f conftest.tail
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017164while grep . conftest.defines >/dev/null
Bram Moolenaar071d4272004-06-13 20:20:40 +000017165do
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017166 # Write a limited-size here document to $tmp/defines.sed.
17167 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17168 # Speed up: don't consider the non `#define' lines.
17169 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17170 # Work around the forget-to-reset-the-flag bug.
17171 echo 't clr' >>$CONFIG_STATUS
17172 echo ': clr' >>$CONFIG_STATUS
17173 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000017174 echo 'CEOF
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017175 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17176 rm -f $tmp/in
17177 mv $tmp/out $tmp/in
17178' >>$CONFIG_STATUS
17179 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17180 rm -f conftest.defines
17181 mv conftest.tail conftest.defines
Bram Moolenaar071d4272004-06-13 20:20:40 +000017182done
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017183rm -f conftest.defines
17184echo ' fi # grep' >>$CONFIG_STATUS
17185echo >>$CONFIG_STATUS
Bram Moolenaar071d4272004-06-13 20:20:40 +000017186
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017187# Break up conftest.undefs because some shells have a limit on the size
17188# of here documents, and old seds have small limits too (100 cmds).
17189echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17190rm -f conftest.tail
17191while grep . conftest.undefs >/dev/null
17192do
17193 # Write a limited-size here document to $tmp/undefs.sed.
17194 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17195 # Speed up: don't consider the non `#undef'
17196 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17197 # Work around the forget-to-reset-the-flag bug.
17198 echo 't clr' >>$CONFIG_STATUS
17199 echo ': clr' >>$CONFIG_STATUS
17200 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17201 echo 'CEOF
17202 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17203 rm -f $tmp/in
17204 mv $tmp/out $tmp/in
17205' >>$CONFIG_STATUS
17206 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17207 rm -f conftest.undefs
17208 mv conftest.tail conftest.undefs
17209done
17210rm -f conftest.undefs
17211
17212cat >>$CONFIG_STATUS <<\_ACEOF
17213 # Let's still pretend it is `configure' which instantiates (i.e., don't
17214 # use $as_me), people would be surprised to read:
17215 # /* config.h. Generated by config.status. */
17216 if test x"$ac_file" = x-; then
17217 echo "/* Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000017218 else
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017219 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Bram Moolenaar071d4272004-06-13 20:20:40 +000017220 fi
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017221 cat $tmp/in >>$tmp/config.h
17222 rm -f $tmp/in
17223 if test x"$ac_file" != x-; then
17224 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17225 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17226echo "$as_me: $ac_file is unchanged" >&6;}
17227 else
17228 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17229$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17230 X"$ac_file" : 'X\(//\)[^/]' \| \
17231 X"$ac_file" : 'X\(//\)$' \| \
17232 X"$ac_file" : 'X\(/\)' \| \
17233 . : '\(.\)' 2>/dev/null ||
17234echo X"$ac_file" |
17235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17236 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17237 /^X\(\/\/\)$/{ s//\1/; q; }
17238 /^X\(\/\).*/{ s//\1/; q; }
17239 s/.*/./; q'`
17240 { if $as_mkdir_p; then
17241 mkdir -p "$ac_dir"
17242 else
17243 as_dir="$ac_dir"
17244 as_dirs=
17245 while test ! -d "$as_dir"; do
17246 as_dirs="$as_dir $as_dirs"
17247 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17248$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17249 X"$as_dir" : 'X\(//\)[^/]' \| \
17250 X"$as_dir" : 'X\(//\)$' \| \
17251 X"$as_dir" : 'X\(/\)' \| \
17252 . : '\(.\)' 2>/dev/null ||
17253echo X"$as_dir" |
17254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17256 /^X\(\/\/\)$/{ s//\1/; q; }
17257 /^X\(\/\).*/{ s//\1/; q; }
17258 s/.*/./; q'`
17259 done
17260 test ! -n "$as_dirs" || mkdir $as_dirs
17261 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17262echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17263 { (exit 1); exit 1; }; }; }
Bram Moolenaar071d4272004-06-13 20:20:40 +000017264
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017265 rm -f $ac_file
17266 mv $tmp/config.h $ac_file
17267 fi
17268 else
17269 cat $tmp/config.h
17270 rm -f $tmp/config.h
17271 fi
17272done
17273_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000017274
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017275cat >>$CONFIG_STATUS <<\_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000017276
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017277{ (exit 0); exit 0; }
17278_ACEOF
Bram Moolenaar071d4272004-06-13 20:20:40 +000017279chmod +x $CONFIG_STATUS
Bram Moolenaar495de9c2005-01-25 22:03:25 +000017280ac_clean_files=$ac_clean_files_save
17281
17282
17283# configure is writing to config.log, and then calls config.status.
17284# config.status does its own redirection, appending to config.log.
17285# Unfortunately, on DOS this fails, as config.log is still kept open
17286# by configure, so config.status won't be able to write to it; its
17287# output is simply discarded. So we exec the FD to /dev/null,
17288# effectively closing config.log, so it can be properly (re)opened and
17289# appended to by config.status. When coming back to configure, we
17290# need to make the FD available again.
17291if test "$no_create" != yes; then
17292 ac_cs_success=:
17293 ac_config_status_args=
17294 test "$silent" = yes &&
17295 ac_config_status_args="$ac_config_status_args --quiet"
17296 exec 5>/dev/null
17297 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17298 exec 5>>auto/config.log
17299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17300 # would make configure fail if this is the last instruction.
17301 $ac_cs_success || { (exit 1); exit 1; }
17302fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000017303
17304