Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12 | # Be Bourne compatible |
| 13 | if 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+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for 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 |
| 43 | do |
| 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 |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo 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. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if 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 |
| 97 | fi |
| 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 |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 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 |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 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 |
| 152 | done |
| 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 | |
| 187 | case `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= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if 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 |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_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. |
| 231 | as_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. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $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. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 254 | ac_default_prefix=/usr/local |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 255 | ac_config_libobj_dir=. |
| 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${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. |
| 268 | PACKAGE_NAME= |
| 269 | PACKAGE_TARNAME= |
| 270 | PACKAGE_VERSION= |
| 271 | PACKAGE_STRING= |
| 272 | PACKAGE_BUGREPORT= |
| 273 | |
| 274 | ac_unique_file="vim.h" |
| 275 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK STRIP CPP_MM OS_EXTRA_SRC OS_EXTRA_OBJ VIMNAME EXNAME VIEWNAME line_break dovimdiff dogvimdiff compiledby vi_cv_path_mzscheme MZSCHEME_SRC MZSCHEME_OBJ MZSCHEME_PRO MZSCHEME_LIBS MZSCHEME_CFLAGS vi_cv_path_perl vi_cv_perllib shrpenv PERL_SRC PERL_OBJ PERL_PRO PERL_CFLAGS PERL_LIBS vi_cv_path_python PYTHON_CONFDIR PYTHON_LIBS PYTHON_GETPATH_CFLAGS PYTHON_CFLAGS PYTHON_SRC PYTHON_OBJ vi_cv_path_tcl TCL_SRC TCL_OBJ TCL_PRO TCL_CFLAGS TCL_LIBS vi_cv_path_ruby RUBY_SRC RUBY_OBJ RUBY_PRO RUBY_CFLAGS RUBY_LIBS WORKSHOP_SRC WORKSHOP_OBJ NETBEANS_SRC NETBEANS_OBJ SNIFF_SRC SNIFF_OBJ xmkmfpath X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIB GTK_CONFIG GTK12_CONFIG PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_LIBNAME GNOME_LIBS GNOME_LIBDIR GNOME_INCLUDEDIR GNOME_CONFIG MOTIF_LIBNAME NARROW_PROTO GUI_INC_LOC GUI_LIB_LOC GUITYPE GUI_X_LIBS HANGULIN_SRC HANGULIN_OBJ TAGPRG INSTALL_LANGS INSTALL_TOOL_LANGS MSGFMT MAKEMO DEPEND_CFLAGS_FILTER LIBOBJS LTLIBOBJS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 313 | ac_subst_files='' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 314 | |
| 315 | # Initialize some variables set by options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 316 | ac_init_help= |
| 317 | ac_init_version=false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 318 | # The variables have the same names as the options, with |
| 319 | # dashes changed to underlines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 320 | cache_file=/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 321 | exec_prefix=NONE |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 322 | no_create= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 323 | no_recursion= |
| 324 | prefix=NONE |
| 325 | program_prefix=NONE |
| 326 | program_suffix=NONE |
| 327 | program_transform_name=s,x,x, |
| 328 | silent= |
| 329 | site= |
| 330 | srcdir= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 331 | verbose= |
| 332 | x_includes=NONE |
| 333 | x_libraries=NONE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 334 | |
| 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 340 | bindir='${exec_prefix}/bin' |
| 341 | sbindir='${exec_prefix}/sbin' |
| 342 | libexecdir='${exec_prefix}/libexec' |
| 343 | datadir='${prefix}/share' |
| 344 | sysconfdir='${prefix}/etc' |
| 345 | sharedstatedir='${prefix}/com' |
| 346 | localstatedir='${prefix}/var' |
| 347 | libdir='${exec_prefix}/lib' |
| 348 | includedir='${prefix}/include' |
| 349 | oldincludedir='/usr/include' |
| 350 | infodir='${prefix}/info' |
| 351 | mandir='${prefix}/man' |
| 352 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 353 | ac_prev= |
| 354 | for ac_option |
| 355 | do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 356 | # 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 364 | |
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 366 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 367 | case $ac_option in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 368 | |
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 370 | ac_prev=bindir ;; |
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 372 | bindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 373 | |
| 374 | -build | --build | --buil | --bui | --bu) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 375 | ac_prev=build_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 377 | build_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 378 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 384 | cache_file=$ac_optarg ;; |
| 385 | |
| 386 | --config-cache | -C) |
| 387 | cache_file=config.cache ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 388 | |
| 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 390 | ac_prev=datadir ;; |
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 392 | | --da=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 393 | datadir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 394 | |
| 395 | -disable-* | --disable-*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 397 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 398 | 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 403 | |
| 404 | -enable-* | --enable-*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 406 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 407 | 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 413 | *) ac_optarg=yes ;; |
| 414 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 416 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 424 | exec_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 425 | |
| 426 | -gas | --gas | --ga | --g) |
| 427 | # Obsolete; use --with-gas. |
| 428 | with_gas=yes ;; |
| 429 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 430 | -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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 436 | |
| 437 | -host | --host | --hos | --ho) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 438 | ac_prev=host_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 439 | -host=* | --host=* | --hos=* | --ho=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 440 | host_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 441 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 447 | includedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 448 | |
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 450 | ac_prev=infodir ;; |
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 452 | infodir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 453 | |
| 454 | -libdir | --libdir | --libdi | --libd) |
| 455 | ac_prev=libdir ;; |
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 457 | libdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 458 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 464 | libexecdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 465 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 473 | localstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 474 | |
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 476 | ac_prev=mandir ;; |
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 478 | mandir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 479 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 485 | | --no-cr | --no-c | -n) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 486 | 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 499 | oldincludedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 500 | |
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 502 | ac_prev=prefix ;; |
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 504 | prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 505 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 511 | program_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 512 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 518 | program_suffix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 519 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 535 | program_transform_name=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 536 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 545 | sbindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 546 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 556 | sharedstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 557 | |
| 558 | -site | --site | --sit) |
| 559 | ac_prev=site ;; |
| 560 | -site=* | --site=* | --sit=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 561 | site=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 562 | |
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 564 | ac_prev=srcdir ;; |
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 566 | srcdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 567 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 573 | sysconfdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 574 | |
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 576 | ac_prev=target_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 578 | target_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 579 | |
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 581 | verbose=yes ;; |
| 582 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 583 | -version | --version | --versio | --versi | --vers | -V) |
| 584 | ac_init_version=: ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 585 | |
| 586 | -with-* | --with-*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 588 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 589 | 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 593 | case $ac_option in |
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 595 | *) ac_optarg=yes ;; |
| 596 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 598 | |
| 599 | -without-* | --without-*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 601 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 602 | 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 607 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 617 | x_includes=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 618 | |
| 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 Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 624 | x_libraries=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 625 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 627 | Try \`$0 --help' for more information." >&2 |
| 628 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 629 | ;; |
| 630 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 631 | *=*) |
| 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 641 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 642 | # 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 647 | ;; |
| 648 | |
| 649 | esac |
| 650 | done |
| 651 | |
| 652 | if test -n "$ac_prev"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 653 | 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 656 | fi |
| 657 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 658 | # Be sure to have absolute paths. |
| 659 | for ac_var in exec_prefix prefix |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 660 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 661 | 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 666 | esac |
| 667 | done |
| 668 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 669 | # Be sure to have absolute paths. |
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 671 | localstatedir libdir includedir oldincludedir infodir mandir |
| 672 | do |
| 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 |
| 679 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 680 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 681 | # 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. |
| 684 | build=$build_alias |
| 685 | host=$host_alias |
| 686 | target=$target_alias |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 687 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 688 | # FIXME: To remove some day. |
| 689 | if 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 |
| 697 | fi |
| 698 | |
| 699 | ac_tool_prefix= |
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 | |
| 702 | test "$silent" = yes && exec 6>/dev/null |
| 703 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 704 | |
| 705 | # Find the source files, if location was not specified. |
| 706 | if test -z "$srcdir"; then |
| 707 | ac_srcdir_defaulted=yes |
| 708 | # Try the directory containing this script, then its parent. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 709 | 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 || |
| 715 | echo 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 721 | srcdir=$ac_confdir |
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
| 723 | srcdir=.. |
| 724 | fi |
| 725 | else |
| 726 | ac_srcdir_defaulted=no |
| 727 | fi |
| 728 | if test ! -r $srcdir/$ac_unique_file; then |
| 729 | if test "$ac_srcdir_defaulted" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 731 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 732 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 734 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 735 | fi |
| 736 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 737 | (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; }; } |
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 | ac_env_build_alias_set=${build_alias+set} |
| 742 | ac_env_build_alias_value=$build_alias |
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
| 744 | ac_cv_env_build_alias_value=$build_alias |
| 745 | ac_env_host_alias_set=${host_alias+set} |
| 746 | ac_env_host_alias_value=$host_alias |
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
| 748 | ac_cv_env_host_alias_value=$host_alias |
| 749 | ac_env_target_alias_set=${target_alias+set} |
| 750 | ac_env_target_alias_value=$target_alias |
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
| 752 | ac_cv_env_target_alias_value=$target_alias |
| 753 | ac_env_CC_set=${CC+set} |
| 754 | ac_env_CC_value=$CC |
| 755 | ac_cv_env_CC_set=${CC+set} |
| 756 | ac_cv_env_CC_value=$CC |
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 | ac_env_CFLAGS_value=$CFLAGS |
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_env_CPP_set=${CPP+set} |
| 770 | ac_env_CPP_value=$CPP |
| 771 | ac_cv_env_CPP_set=${CPP+set} |
| 772 | ac_cv_env_CPP_value=$CPP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 773 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 774 | # |
| 775 | # Report the --help message. |
| 776 | # |
| 777 | if test "$ac_init_help" = "long"; then |
| 778 | # Omit some internal or obsolete options to make the list less imposing. |
| 779 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 780 | cat <<_ACEOF |
| 781 | \`configure' configures this package to adapt to many kinds of systems. |
| 782 | |
| 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 784 | |
| 785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 786 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 787 | |
| 788 | Defaults for the options are specified in brackets. |
| 789 | |
| 790 | Configuration: |
| 791 | -h, --help display this help and exit |
| 792 | --help=short display options specific to this package |
| 793 | --help=recursive display the short help of all the included packages |
| 794 | -V, --version display version information and exit |
| 795 | -q, --quiet, --silent do not print \`checking...' messages |
| 796 | --cache-file=FILE cache test results in FILE [disabled] |
| 797 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 798 | -n, --no-create do not create output files |
| 799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 800 | |
| 801 | _ACEOF |
| 802 | |
| 803 | cat <<_ACEOF |
| 804 | Installation directories: |
| 805 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 806 | [$ac_default_prefix] |
| 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 808 | [PREFIX] |
| 809 | |
| 810 | By default, \`make install' will install all the files in |
| 811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 813 | for instance \`--prefix=\$HOME'. |
| 814 | |
| 815 | For better control, use the options below. |
| 816 | |
| 817 | Fine tuning of the installation directories: |
| 818 | --bindir=DIR user executables [EPREFIX/bin] |
| 819 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 820 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 825 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 826 | --includedir=DIR C header files [PREFIX/include] |
| 827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 828 | --infodir=DIR info documentation [PREFIX/info] |
| 829 | --mandir=DIR man documentation [PREFIX/man] |
| 830 | _ACEOF |
| 831 | |
| 832 | cat <<\_ACEOF |
| 833 | |
| 834 | X features: |
| 835 | --x-includes=DIR X include files are in DIR |
| 836 | --x-libraries=DIR X library files are in DIR |
| 837 | _ACEOF |
| 838 | fi |
| 839 | |
| 840 | if test -n "$ac_init_help"; then |
| 841 | |
| 842 | cat <<\_ACEOF |
| 843 | |
| 844 | Optional Features: |
| 845 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 846 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 847 | --disable-darwin Disable Darwin (Mac OS X) support. |
| 848 | --disable-xsmp Disable XSMP session management |
| 849 | --disable-xsmp-interact Disable XSMP interaction |
| 850 | --enable-mzschemeinterp Include MzScheme interpreter. |
| 851 | --enable-perlinterp Include Perl interpreter. |
| 852 | --enable-pythoninterp Include Python interpreter. |
| 853 | --enable-tclinterp Include Tcl interpreter. |
| 854 | --enable-rubyinterp Include Ruby interpreter. |
| 855 | --enable-cscope Include cscope interface. |
| 856 | --enable-workshop Include Sun Visual Workshop support. |
| 857 | --disable-netbeans Disable NetBeans integration support. |
| 858 | --enable-sniff Include Sniff interface. |
| 859 | --enable-multibyte Include multibyte editing support. |
| 860 | --enable-hangulinput Include Hangul input support. |
| 861 | --enable-xim Include XIM input support. |
| 862 | --enable-fontset Include X fontset output support. |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 863 | --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 864 | --enable-gtk-check If auto-select GUI, check for GTK default=yes |
| 865 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes |
| 866 | --enable-gnome-check If GTK GUI, check for GNOME default=no |
| 867 | --enable-motif-check If auto-select GUI, check for Motif default=yes |
| 868 | --enable-athena-check If auto-select GUI, check for Athena default=yes |
| 869 | --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes |
| 870 | --enable-carbon-check If auto-select GUI, check for Carbon default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 871 | --disable-gtktest Do not try to compile and run a test GTK program |
| 872 | --disable-acl Don't check for ACL support. |
| 873 | --disable-gpm Don't use gpm (Linux mouse daemon). |
| 874 | --disable-nls Don't support NLS (gettext()). |
| 875 | |
| 876 | Optional Packages: |
| 877 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 878 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 879 | --with-mac-arch=ARCH intel, ppc or both |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 880 | --with-vim-name=NAME what to call the Vim executable |
| 881 | --with-ex-name=NAME what to call the Ex executable |
| 882 | --with-view-name=NAME what to call the View executable |
| 883 | --with-global-runtime=DIR global runtime directory in 'runtimepath' |
| 884 | --with-modified-by=NAME name of who modified a release version |
| 885 | --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
| 886 | --with-compiledby=NAME name to show in :version message |
| 887 | --with-plthome=PLTHOME Use PLTHOME. |
| 888 | --with-python-config-dir=PATH Python's config directory |
| 889 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
| 890 | --with-x use the X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 891 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
| 892 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
| 893 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 894 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 895 | --with-gnome Specify prefix for GNOME files |
| 896 | --with-motif-lib=STRING Library for Motif |
| 897 | --with-tlib=library terminal library to be used |
| 898 | |
| 899 | Some influential environment variables: |
| 900 | CC C compiler command |
| 901 | CFLAGS C compiler flags |
| 902 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 903 | nonstandard directory <lib dir> |
| 904 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 905 | headers in a nonstandard directory <include dir> |
| 906 | CPP C preprocessor |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 907 | |
| 908 | Use these variables to override the choices made by `configure' or to help |
| 909 | it to find libraries and programs with nonstandard names/locations. |
| 910 | |
| 911 | _ACEOF |
| 912 | fi |
| 913 | |
| 914 | if test "$ac_init_help" = "recursive"; then |
| 915 | # If there are subdirs, report their specific --help. |
| 916 | ac_popdir=`pwd` |
| 917 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 918 | test -d $ac_dir || continue |
| 919 | ac_builddir=. |
| 920 | |
| 921 | if test "$ac_dir" != .; then |
| 922 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 923 | # A "../" for each directory in $ac_dir_suffix. |
| 924 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 925 | else |
| 926 | ac_dir_suffix= ac_top_builddir= |
| 927 | fi |
| 928 | |
| 929 | case $srcdir in |
| 930 | .) # No --srcdir option. We are building in place. |
| 931 | ac_srcdir=. |
| 932 | if test -z "$ac_top_builddir"; then |
| 933 | ac_top_srcdir=. |
| 934 | else |
| 935 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 936 | fi ;; |
| 937 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 938 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 939 | ac_top_srcdir=$srcdir ;; |
| 940 | *) # Relative path. |
| 941 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 942 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 943 | esac |
| 944 | |
| 945 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 946 | # the directories may not exist. |
| 947 | case `pwd` in |
| 948 | .) ac_abs_builddir="$ac_dir";; |
| 949 | *) |
| 950 | case "$ac_dir" in |
| 951 | .) ac_abs_builddir=`pwd`;; |
| 952 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 953 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 954 | esac;; |
| 955 | esac |
| 956 | case $ac_abs_builddir in |
| 957 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 958 | *) |
| 959 | case ${ac_top_builddir}. in |
| 960 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 961 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 962 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 963 | esac;; |
| 964 | esac |
| 965 | case $ac_abs_builddir in |
| 966 | .) ac_abs_srcdir=$ac_srcdir;; |
| 967 | *) |
| 968 | case $ac_srcdir in |
| 969 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 970 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 971 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 972 | esac;; |
| 973 | esac |
| 974 | case $ac_abs_builddir in |
| 975 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 976 | *) |
| 977 | case $ac_top_srcdir in |
| 978 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 979 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 980 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 981 | esac;; |
| 982 | esac |
| 983 | |
| 984 | cd $ac_dir |
| 985 | # Check for guested configure; otherwise get Cygnus style configure. |
| 986 | if test -f $ac_srcdir/configure.gnu; then |
| 987 | echo |
| 988 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 989 | elif test -f $ac_srcdir/configure; then |
| 990 | echo |
| 991 | $SHELL $ac_srcdir/configure --help=recursive |
| 992 | elif test -f $ac_srcdir/configure.ac || |
| 993 | test -f $ac_srcdir/configure.in; then |
| 994 | echo |
| 995 | $ac_configure --help |
| 996 | else |
| 997 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 998 | fi |
| 999 | cd $ac_popdir |
| 1000 | done |
| 1001 | fi |
| 1002 | |
| 1003 | test -n "$ac_init_help" && exit 0 |
| 1004 | if $ac_init_version; then |
| 1005 | cat <<\_ACEOF |
| 1006 | |
| 1007 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1008 | This configure script is free software; the Free Software Foundation |
| 1009 | gives unlimited permission to copy, distribute and modify it. |
| 1010 | _ACEOF |
| 1011 | exit 0 |
| 1012 | fi |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 1013 | exec 5>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1014 | cat >&5 <<_ACEOF |
| 1015 | This file contains any messages produced by compilers while |
| 1016 | running configure, to aid debugging if configure makes a mistake. |
| 1017 | |
| 1018 | It was created by $as_me, which was |
| 1019 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1020 | |
| 1021 | $ $0 $@ |
| 1022 | |
| 1023 | _ACEOF |
| 1024 | { |
| 1025 | cat <<_ASUNAME |
| 1026 | ## --------- ## |
| 1027 | ## Platform. ## |
| 1028 | ## --------- ## |
| 1029 | |
| 1030 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1031 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1032 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1033 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1034 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1035 | |
| 1036 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1037 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1038 | |
| 1039 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1040 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1041 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1042 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1043 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1044 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1045 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1046 | |
| 1047 | _ASUNAME |
| 1048 | |
| 1049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1050 | for as_dir in $PATH |
| 1051 | do |
| 1052 | IFS=$as_save_IFS |
| 1053 | test -z "$as_dir" && as_dir=. |
| 1054 | echo "PATH: $as_dir" |
| 1055 | done |
| 1056 | |
| 1057 | } >&5 |
| 1058 | |
| 1059 | cat >&5 <<_ACEOF |
| 1060 | |
| 1061 | |
| 1062 | ## ----------- ## |
| 1063 | ## Core tests. ## |
| 1064 | ## ----------- ## |
| 1065 | |
| 1066 | _ACEOF |
| 1067 | |
| 1068 | |
| 1069 | # Keep a trace of the command line. |
| 1070 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1071 | # Strip out --silent because we don't want to record it for future runs. |
| 1072 | # Also quote any args containing shell meta-characters. |
| 1073 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1074 | ac_configure_args= |
| 1075 | ac_configure_args0= |
| 1076 | ac_configure_args1= |
| 1077 | ac_sep= |
| 1078 | ac_must_keep_next=false |
| 1079 | for ac_pass in 1 2 |
| 1080 | do |
| 1081 | for ac_arg |
| 1082 | do |
| 1083 | case $ac_arg in |
| 1084 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1085 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1086 | | -silent | --silent | --silen | --sile | --sil) |
| 1087 | continue ;; |
| 1088 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1089 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1090 | esac |
| 1091 | case $ac_pass in |
| 1092 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1093 | 2) |
| 1094 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1095 | if test $ac_must_keep_next = true; then |
| 1096 | ac_must_keep_next=false # Got value, back to normal. |
| 1097 | else |
| 1098 | case $ac_arg in |
| 1099 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1100 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1101 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1102 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1103 | case "$ac_configure_args0 " in |
| 1104 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1105 | esac |
| 1106 | ;; |
| 1107 | -* ) ac_must_keep_next=true ;; |
| 1108 | esac |
| 1109 | fi |
| 1110 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1111 | # Get rid of the leading space. |
| 1112 | ac_sep=" " |
| 1113 | ;; |
| 1114 | esac |
| 1115 | done |
| 1116 | done |
| 1117 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1118 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1119 | |
| 1120 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1121 | # config.log. We remove comments because anyway the quotes in there |
| 1122 | # would cause problems or look ugly. |
| 1123 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1124 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1125 | trap 'exit_status=$? |
| 1126 | # Save into config.log some information that might help in debugging. |
| 1127 | { |
| 1128 | echo |
| 1129 | |
| 1130 | cat <<\_ASBOX |
| 1131 | ## ---------------- ## |
| 1132 | ## Cache variables. ## |
| 1133 | ## ---------------- ## |
| 1134 | _ASBOX |
| 1135 | echo |
| 1136 | # The following way of writing the cache mishandles newlines in values, |
| 1137 | { |
| 1138 | (set) 2>&1 | |
| 1139 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1140 | *ac_space=\ *) |
| 1141 | sed -n \ |
| 1142 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1143 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1144 | ;; |
| 1145 | *) |
| 1146 | sed -n \ |
| 1147 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1148 | ;; |
| 1149 | esac; |
| 1150 | } |
| 1151 | echo |
| 1152 | |
| 1153 | cat <<\_ASBOX |
| 1154 | ## ----------------- ## |
| 1155 | ## Output variables. ## |
| 1156 | ## ----------------- ## |
| 1157 | _ASBOX |
| 1158 | echo |
| 1159 | for ac_var in $ac_subst_vars |
| 1160 | do |
| 1161 | eval ac_val=$`echo $ac_var` |
| 1162 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1163 | done | sort |
| 1164 | echo |
| 1165 | |
| 1166 | if test -n "$ac_subst_files"; then |
| 1167 | cat <<\_ASBOX |
| 1168 | ## ------------- ## |
| 1169 | ## Output files. ## |
| 1170 | ## ------------- ## |
| 1171 | _ASBOX |
| 1172 | echo |
| 1173 | for ac_var in $ac_subst_files |
| 1174 | do |
| 1175 | eval ac_val=$`echo $ac_var` |
| 1176 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1177 | done | sort |
| 1178 | echo |
| 1179 | fi |
| 1180 | |
| 1181 | if test -s confdefs.h; then |
| 1182 | cat <<\_ASBOX |
| 1183 | ## ----------- ## |
| 1184 | ## confdefs.h. ## |
| 1185 | ## ----------- ## |
| 1186 | _ASBOX |
| 1187 | echo |
| 1188 | sed "/^$/d" confdefs.h | sort |
| 1189 | echo |
| 1190 | fi |
| 1191 | test "$ac_signal" != 0 && |
| 1192 | echo "$as_me: caught signal $ac_signal" |
| 1193 | echo "$as_me: exit $exit_status" |
| 1194 | } >&5 |
| 1195 | rm -f core *.core && |
| 1196 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1197 | exit $exit_status |
| 1198 | ' 0 |
| 1199 | for ac_signal in 1 2 13 15; do |
| 1200 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1201 | done |
| 1202 | ac_signal=0 |
| 1203 | |
| 1204 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1205 | rm -rf conftest* confdefs.h |
| 1206 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1207 | echo >confdefs.h |
| 1208 | |
| 1209 | # Predefined preprocessor variables. |
| 1210 | |
| 1211 | cat >>confdefs.h <<_ACEOF |
| 1212 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1213 | _ACEOF |
| 1214 | |
| 1215 | |
| 1216 | cat >>confdefs.h <<_ACEOF |
| 1217 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1218 | _ACEOF |
| 1219 | |
| 1220 | |
| 1221 | cat >>confdefs.h <<_ACEOF |
| 1222 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1223 | _ACEOF |
| 1224 | |
| 1225 | |
| 1226 | cat >>confdefs.h <<_ACEOF |
| 1227 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1228 | _ACEOF |
| 1229 | |
| 1230 | |
| 1231 | cat >>confdefs.h <<_ACEOF |
| 1232 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1233 | _ACEOF |
| 1234 | |
| 1235 | |
| 1236 | # Let the site file select an alternate cache file if it wants to. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1237 | # Prefer explicitly selected file to automatically selected ones. |
| 1238 | if test -z "$CONFIG_SITE"; then |
| 1239 | if test "x$prefix" != xNONE; then |
| 1240 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1241 | else |
| 1242 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1243 | fi |
| 1244 | fi |
| 1245 | for ac_site_file in $CONFIG_SITE; do |
| 1246 | if test -r "$ac_site_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1247 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1248 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1249 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1250 | . "$ac_site_file" |
| 1251 | fi |
| 1252 | done |
| 1253 | |
| 1254 | if test -r "$cache_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1255 | # Some versions of bash will fail to source /dev/null (special |
| 1256 | # files actually), so we avoid doing that. |
| 1257 | if test -f "$cache_file"; then |
| 1258 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1259 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1260 | case $cache_file in |
| 1261 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1262 | *) . ./$cache_file;; |
| 1263 | esac |
| 1264 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1265 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1266 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1267 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1268 | >$cache_file |
| 1269 | fi |
| 1270 | |
| 1271 | # Check that the precious variables saved in the cache have kept the same |
| 1272 | # value. |
| 1273 | ac_cache_corrupted=false |
| 1274 | for ac_var in `(set) 2>&1 | |
| 1275 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1276 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1277 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1278 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1279 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1280 | case $ac_old_set,$ac_new_set in |
| 1281 | set,) |
| 1282 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1283 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1284 | ac_cache_corrupted=: ;; |
| 1285 | ,set) |
| 1286 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1287 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1288 | ac_cache_corrupted=: ;; |
| 1289 | ,);; |
| 1290 | *) |
| 1291 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1292 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1293 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1294 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1295 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1296 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1297 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1298 | ac_cache_corrupted=: |
| 1299 | fi;; |
| 1300 | esac |
| 1301 | # Pass precious variables to config.status. |
| 1302 | if test "$ac_new_set" = set; then |
| 1303 | case $ac_new_val in |
| 1304 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1305 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1306 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1307 | esac |
| 1308 | case " $ac_configure_args " in |
| 1309 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1310 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1311 | esac |
| 1312 | fi |
| 1313 | done |
| 1314 | if $ac_cache_corrupted; then |
| 1315 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1316 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1317 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1318 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1319 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1320 | fi |
| 1321 | |
| 1322 | ac_ext=c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1323 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1324 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1325 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
| 1344 | |
| 1345 | |
| 1346 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
| 1347 | |
| 1348 | |
| 1349 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1350 | #define UNIX 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1351 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1352 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1353 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1354 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1355 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 1356 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1358 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1359 | cat >conftest.make <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1360 | all: |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1361 | @echo 'ac_maketemp="$(MAKE)"' |
| 1362 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1363 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1364 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1365 | if test -n "$ac_maketemp"; then |
| 1366 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1367 | else |
| 1368 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1369 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1370 | rm -f conftest.make |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1371 | fi |
| 1372 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1373 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1374 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1375 | SET_MAKE= |
| 1376 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1377 | echo "$as_me:$LINENO: result: no" >&5 |
| 1378 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1379 | SET_MAKE="MAKE=${MAKE-make}" |
| 1380 | fi |
| 1381 | |
| 1382 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1383 | ac_ext=c |
| 1384 | ac_cpp='$CPP $CPPFLAGS' |
| 1385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1388 | if test -n "$ac_tool_prefix"; then |
| 1389 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1390 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1391 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1393 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1395 | else |
| 1396 | if test -n "$CC"; then |
| 1397 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1398 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1400 | for as_dir in $PATH |
| 1401 | do |
| 1402 | IFS=$as_save_IFS |
| 1403 | test -z "$as_dir" && as_dir=. |
| 1404 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1405 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1406 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1408 | break 2 |
| 1409 | fi |
| 1410 | done |
| 1411 | done |
| 1412 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1413 | fi |
| 1414 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1415 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1416 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1417 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1418 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1419 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1420 | echo "$as_me:$LINENO: result: no" >&5 |
| 1421 | echo "${ECHO_T}no" >&6 |
| 1422 | fi |
| 1423 | |
| 1424 | fi |
| 1425 | if test -z "$ac_cv_prog_CC"; then |
| 1426 | ac_ct_CC=$CC |
| 1427 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1428 | set dummy gcc; ac_word=$2 |
| 1429 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1430 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1431 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1433 | else |
| 1434 | if test -n "$ac_ct_CC"; then |
| 1435 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1436 | else |
| 1437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1438 | for as_dir in $PATH |
| 1439 | do |
| 1440 | IFS=$as_save_IFS |
| 1441 | test -z "$as_dir" && as_dir=. |
| 1442 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1443 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1444 | ac_cv_prog_ac_ct_CC="gcc" |
| 1445 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1446 | break 2 |
| 1447 | fi |
| 1448 | done |
| 1449 | done |
| 1450 | |
| 1451 | fi |
| 1452 | fi |
| 1453 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1454 | if test -n "$ac_ct_CC"; then |
| 1455 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1456 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1457 | else |
| 1458 | echo "$as_me:$LINENO: result: no" >&5 |
| 1459 | echo "${ECHO_T}no" >&6 |
| 1460 | fi |
| 1461 | |
| 1462 | CC=$ac_ct_CC |
| 1463 | else |
| 1464 | CC="$ac_cv_prog_CC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1465 | fi |
| 1466 | |
| 1467 | if test -z "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1468 | if test -n "$ac_tool_prefix"; then |
| 1469 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1470 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1471 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1473 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1475 | else |
| 1476 | if test -n "$CC"; then |
| 1477 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1478 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1480 | for as_dir in $PATH |
| 1481 | do |
| 1482 | IFS=$as_save_IFS |
| 1483 | test -z "$as_dir" && as_dir=. |
| 1484 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1485 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1486 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1488 | break 2 |
| 1489 | fi |
| 1490 | done |
| 1491 | done |
| 1492 | |
| 1493 | fi |
| 1494 | fi |
| 1495 | CC=$ac_cv_prog_CC |
| 1496 | if test -n "$CC"; then |
| 1497 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1498 | echo "${ECHO_T}$CC" >&6 |
| 1499 | else |
| 1500 | echo "$as_me:$LINENO: result: no" >&5 |
| 1501 | echo "${ECHO_T}no" >&6 |
| 1502 | fi |
| 1503 | |
| 1504 | fi |
| 1505 | if test -z "$ac_cv_prog_CC"; then |
| 1506 | ac_ct_CC=$CC |
| 1507 | # Extract the first word of "cc", so it can be a program name with args. |
| 1508 | set dummy cc; ac_word=$2 |
| 1509 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1510 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1511 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1513 | else |
| 1514 | if test -n "$ac_ct_CC"; then |
| 1515 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1516 | else |
| 1517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1518 | for as_dir in $PATH |
| 1519 | do |
| 1520 | IFS=$as_save_IFS |
| 1521 | test -z "$as_dir" && as_dir=. |
| 1522 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1523 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1524 | ac_cv_prog_ac_ct_CC="cc" |
| 1525 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1526 | break 2 |
| 1527 | fi |
| 1528 | done |
| 1529 | done |
| 1530 | |
| 1531 | fi |
| 1532 | fi |
| 1533 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1534 | if test -n "$ac_ct_CC"; then |
| 1535 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1536 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1537 | else |
| 1538 | echo "$as_me:$LINENO: result: no" >&5 |
| 1539 | echo "${ECHO_T}no" >&6 |
| 1540 | fi |
| 1541 | |
| 1542 | CC=$ac_ct_CC |
| 1543 | else |
| 1544 | CC="$ac_cv_prog_CC" |
| 1545 | fi |
| 1546 | |
| 1547 | fi |
| 1548 | if test -z "$CC"; then |
| 1549 | # Extract the first word of "cc", so it can be a program name with args. |
| 1550 | set dummy cc; ac_word=$2 |
| 1551 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1552 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1553 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1555 | else |
| 1556 | if test -n "$CC"; then |
| 1557 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1558 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1559 | ac_prog_rejected=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1561 | for as_dir in $PATH |
| 1562 | do |
| 1563 | IFS=$as_save_IFS |
| 1564 | test -z "$as_dir" && as_dir=. |
| 1565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1567 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1568 | ac_prog_rejected=yes |
| 1569 | continue |
| 1570 | fi |
| 1571 | ac_cv_prog_CC="cc" |
| 1572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1573 | break 2 |
| 1574 | fi |
| 1575 | done |
| 1576 | done |
| 1577 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1578 | if test $ac_prog_rejected = yes; then |
| 1579 | # We found a bogon in the path, so make sure we never use it. |
| 1580 | set dummy $ac_cv_prog_CC |
| 1581 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1582 | if test $# != 0; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1583 | # We chose a different compiler from the bogus one. |
| 1584 | # However, it has the same basename, so the bogon will be chosen |
| 1585 | # first if we set CC to just the basename; use the full file name. |
| 1586 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1587 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1588 | fi |
| 1589 | fi |
| 1590 | fi |
| 1591 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1592 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1593 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1594 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1595 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1596 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1597 | echo "$as_me:$LINENO: result: no" >&5 |
| 1598 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1599 | fi |
| 1600 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1601 | fi |
| 1602 | if test -z "$CC"; then |
| 1603 | if test -n "$ac_tool_prefix"; then |
| 1604 | for ac_prog in cl |
| 1605 | do |
| 1606 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1607 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1608 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1610 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1612 | else |
| 1613 | if test -n "$CC"; then |
| 1614 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1615 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1617 | for as_dir in $PATH |
| 1618 | do |
| 1619 | IFS=$as_save_IFS |
| 1620 | test -z "$as_dir" && as_dir=. |
| 1621 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1623 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1625 | break 2 |
| 1626 | fi |
| 1627 | done |
| 1628 | done |
| 1629 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1630 | fi |
| 1631 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1632 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1633 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1634 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1635 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1636 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1637 | echo "$as_me:$LINENO: result: no" >&5 |
| 1638 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1639 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1640 | |
| 1641 | test -n "$CC" && break |
| 1642 | done |
| 1643 | fi |
| 1644 | if test -z "$CC"; then |
| 1645 | ac_ct_CC=$CC |
| 1646 | for ac_prog in cl |
| 1647 | do |
| 1648 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1649 | set dummy $ac_prog; ac_word=$2 |
| 1650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1652 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1654 | else |
| 1655 | if test -n "$ac_ct_CC"; then |
| 1656 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1657 | else |
| 1658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1659 | for as_dir in $PATH |
| 1660 | do |
| 1661 | IFS=$as_save_IFS |
| 1662 | test -z "$as_dir" && as_dir=. |
| 1663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1665 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1667 | break 2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1668 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1669 | done |
| 1670 | done |
| 1671 | |
| 1672 | fi |
| 1673 | fi |
| 1674 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1675 | if test -n "$ac_ct_CC"; then |
| 1676 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1677 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1678 | else |
| 1679 | echo "$as_me:$LINENO: result: no" >&5 |
| 1680 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1681 | fi |
| 1682 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1683 | test -n "$ac_ct_CC" && break |
| 1684 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1685 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1686 | CC=$ac_ct_CC |
| 1687 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1688 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1689 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1690 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1691 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1692 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1693 | See \`config.log' for more details." >&5 |
| 1694 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1695 | See \`config.log' for more details." >&2;} |
| 1696 | { (exit 1); exit 1; }; } |
| 1697 | |
| 1698 | # Provide some information about the compiler. |
| 1699 | echo "$as_me:$LINENO:" \ |
| 1700 | "checking for C compiler version" >&5 |
| 1701 | ac_compiler=`set X $ac_compile; echo $2` |
| 1702 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1703 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1704 | ac_status=$? |
| 1705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1706 | (exit $ac_status); } |
| 1707 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1708 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1709 | ac_status=$? |
| 1710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1711 | (exit $ac_status); } |
| 1712 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1713 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1714 | ac_status=$? |
| 1715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1716 | (exit $ac_status); } |
| 1717 | |
| 1718 | cat >conftest.$ac_ext <<_ACEOF |
| 1719 | /* confdefs.h. */ |
| 1720 | _ACEOF |
| 1721 | cat confdefs.h >>conftest.$ac_ext |
| 1722 | cat >>conftest.$ac_ext <<_ACEOF |
| 1723 | /* end confdefs.h. */ |
| 1724 | |
| 1725 | int |
| 1726 | main () |
| 1727 | { |
| 1728 | |
| 1729 | ; |
| 1730 | return 0; |
| 1731 | } |
| 1732 | _ACEOF |
| 1733 | ac_clean_files_save=$ac_clean_files |
| 1734 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1735 | # Try to create an executable without -o first, disregard a.out. |
| 1736 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1737 | # of exeext. |
| 1738 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1739 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1740 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1741 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1742 | (eval $ac_link_default) 2>&5 |
| 1743 | ac_status=$? |
| 1744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1745 | (exit $ac_status); }; then |
| 1746 | # Find the output, starting from the most likely. This scheme is |
| 1747 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1748 | # resort. |
| 1749 | |
| 1750 | # Be careful to initialize this variable, since it used to be cached. |
| 1751 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1752 | ac_cv_exeext= |
| 1753 | # b.out is created by i960 compilers. |
| 1754 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1755 | do |
| 1756 | test -f "$ac_file" || continue |
| 1757 | case $ac_file in |
| 1758 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1759 | ;; |
| 1760 | conftest.$ac_ext ) |
| 1761 | # This is the source file. |
| 1762 | ;; |
| 1763 | [ab].out ) |
| 1764 | # We found the default executable, but exeext='' is most |
| 1765 | # certainly right. |
| 1766 | break;; |
| 1767 | *.* ) |
| 1768 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1769 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1770 | # but it would be cool to find out if it's true. Does anybody |
| 1771 | # maintain Libtool? --akim. |
| 1772 | export ac_cv_exeext |
| 1773 | break;; |
| 1774 | * ) |
| 1775 | break;; |
| 1776 | esac |
| 1777 | done |
| 1778 | else |
| 1779 | echo "$as_me: failed program was:" >&5 |
| 1780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1781 | |
| 1782 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1783 | See \`config.log' for more details." >&5 |
| 1784 | echo "$as_me: error: C compiler cannot create executables |
| 1785 | See \`config.log' for more details." >&2;} |
| 1786 | { (exit 77); exit 77; }; } |
| 1787 | fi |
| 1788 | |
| 1789 | ac_exeext=$ac_cv_exeext |
| 1790 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1791 | echo "${ECHO_T}$ac_file" >&6 |
| 1792 | |
| 1793 | # Check the compiler produces executables we can run. If not, either |
| 1794 | # the compiler is broken, or we cross compile. |
| 1795 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1796 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1797 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1798 | # If not cross compiling, check that we can run a simple program. |
| 1799 | if test "$cross_compiling" != yes; then |
| 1800 | if { ac_try='./$ac_file' |
| 1801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1802 | (eval $ac_try) 2>&5 |
| 1803 | ac_status=$? |
| 1804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1805 | (exit $ac_status); }; }; then |
| 1806 | cross_compiling=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1807 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1808 | if test "$cross_compiling" = maybe; then |
| 1809 | cross_compiling=yes |
| 1810 | else |
| 1811 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1812 | If you meant to cross compile, use \`--host'. |
| 1813 | See \`config.log' for more details." >&5 |
| 1814 | echo "$as_me: error: cannot run C compiled programs. |
| 1815 | If you meant to cross compile, use \`--host'. |
| 1816 | See \`config.log' for more details." >&2;} |
| 1817 | { (exit 1); exit 1; }; } |
| 1818 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1819 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1820 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1821 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1822 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1823 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1824 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1825 | ac_clean_files=$ac_clean_files_save |
| 1826 | # Check the compiler produces executables we can run. If not, either |
| 1827 | # the compiler is broken, or we cross compile. |
| 1828 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1829 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1830 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1831 | echo "${ECHO_T}$cross_compiling" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1832 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1833 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1834 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1836 | (eval $ac_link) 2>&5 |
| 1837 | ac_status=$? |
| 1838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1839 | (exit $ac_status); }; then |
| 1840 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1841 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1842 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1843 | # `rm'. |
| 1844 | for ac_file in conftest.exe conftest conftest.*; do |
| 1845 | test -f "$ac_file" || continue |
| 1846 | case $ac_file in |
| 1847 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1848 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1849 | export ac_cv_exeext |
| 1850 | break;; |
| 1851 | * ) break;; |
| 1852 | esac |
| 1853 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1854 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1855 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1856 | See \`config.log' for more details." >&5 |
| 1857 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1858 | See \`config.log' for more details." >&2;} |
| 1859 | { (exit 1); exit 1; }; } |
| 1860 | fi |
| 1861 | |
| 1862 | rm -f conftest$ac_cv_exeext |
| 1863 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1864 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1865 | |
| 1866 | rm -f conftest.$ac_ext |
| 1867 | EXEEXT=$ac_cv_exeext |
| 1868 | ac_exeext=$EXEEXT |
| 1869 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1870 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1871 | if test "${ac_cv_objext+set}" = set; then |
| 1872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1873 | else |
| 1874 | cat >conftest.$ac_ext <<_ACEOF |
| 1875 | /* confdefs.h. */ |
| 1876 | _ACEOF |
| 1877 | cat confdefs.h >>conftest.$ac_ext |
| 1878 | cat >>conftest.$ac_ext <<_ACEOF |
| 1879 | /* end confdefs.h. */ |
| 1880 | |
| 1881 | int |
| 1882 | main () |
| 1883 | { |
| 1884 | |
| 1885 | ; |
| 1886 | return 0; |
| 1887 | } |
| 1888 | _ACEOF |
| 1889 | rm -f conftest.o conftest.obj |
| 1890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1891 | (eval $ac_compile) 2>&5 |
| 1892 | ac_status=$? |
| 1893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1894 | (exit $ac_status); }; then |
| 1895 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1896 | case $ac_file in |
| 1897 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1898 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1899 | break;; |
| 1900 | esac |
| 1901 | done |
| 1902 | else |
| 1903 | echo "$as_me: failed program was:" >&5 |
| 1904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1905 | |
| 1906 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1907 | See \`config.log' for more details." >&5 |
| 1908 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1909 | See \`config.log' for more details." >&2;} |
| 1910 | { (exit 1); exit 1; }; } |
| 1911 | fi |
| 1912 | |
| 1913 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1914 | fi |
| 1915 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1916 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1917 | OBJEXT=$ac_cv_objext |
| 1918 | ac_objext=$OBJEXT |
| 1919 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1920 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1921 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1923 | else |
| 1924 | cat >conftest.$ac_ext <<_ACEOF |
| 1925 | /* confdefs.h. */ |
| 1926 | _ACEOF |
| 1927 | cat confdefs.h >>conftest.$ac_ext |
| 1928 | cat >>conftest.$ac_ext <<_ACEOF |
| 1929 | /* end confdefs.h. */ |
| 1930 | |
| 1931 | int |
| 1932 | main () |
| 1933 | { |
| 1934 | #ifndef __GNUC__ |
| 1935 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1936 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1937 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1938 | ; |
| 1939 | return 0; |
| 1940 | } |
| 1941 | _ACEOF |
| 1942 | rm -f conftest.$ac_objext |
| 1943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1944 | (eval $ac_compile) 2>conftest.er1 |
| 1945 | ac_status=$? |
| 1946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1947 | rm -f conftest.er1 |
| 1948 | cat conftest.err >&5 |
| 1949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1950 | (exit $ac_status); } && |
| 1951 | { ac_try='test -z "$ac_c_werror_flag" |
| 1952 | || test ! -s conftest.err' |
| 1953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1954 | (eval $ac_try) 2>&5 |
| 1955 | ac_status=$? |
| 1956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1957 | (exit $ac_status); }; } && |
| 1958 | { ac_try='test -s conftest.$ac_objext' |
| 1959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1960 | (eval $ac_try) 2>&5 |
| 1961 | ac_status=$? |
| 1962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1963 | (exit $ac_status); }; }; then |
| 1964 | ac_compiler_gnu=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1965 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1966 | echo "$as_me: failed program was:" >&5 |
| 1967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1968 | |
| 1969 | ac_compiler_gnu=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1970 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1972 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1973 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1974 | fi |
| 1975 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1976 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1977 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1978 | ac_test_CFLAGS=${CFLAGS+set} |
| 1979 | ac_save_CFLAGS=$CFLAGS |
| 1980 | CFLAGS="-g" |
| 1981 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1982 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1983 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1985 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1986 | cat >conftest.$ac_ext <<_ACEOF |
| 1987 | /* confdefs.h. */ |
| 1988 | _ACEOF |
| 1989 | cat confdefs.h >>conftest.$ac_ext |
| 1990 | cat >>conftest.$ac_ext <<_ACEOF |
| 1991 | /* end confdefs.h. */ |
| 1992 | |
| 1993 | int |
| 1994 | main () |
| 1995 | { |
| 1996 | |
| 1997 | ; |
| 1998 | return 0; |
| 1999 | } |
| 2000 | _ACEOF |
| 2001 | rm -f conftest.$ac_objext |
| 2002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2003 | (eval $ac_compile) 2>conftest.er1 |
| 2004 | ac_status=$? |
| 2005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2006 | rm -f conftest.er1 |
| 2007 | cat conftest.err >&5 |
| 2008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2009 | (exit $ac_status); } && |
| 2010 | { ac_try='test -z "$ac_c_werror_flag" |
| 2011 | || test ! -s conftest.err' |
| 2012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2013 | (eval $ac_try) 2>&5 |
| 2014 | ac_status=$? |
| 2015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2016 | (exit $ac_status); }; } && |
| 2017 | { ac_try='test -s conftest.$ac_objext' |
| 2018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2019 | (eval $ac_try) 2>&5 |
| 2020 | ac_status=$? |
| 2021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2022 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2023 | ac_cv_prog_cc_g=yes |
| 2024 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2025 | echo "$as_me: failed program was:" >&5 |
| 2026 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2027 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2028 | ac_cv_prog_cc_g=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2029 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2031 | fi |
| 2032 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2033 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2034 | if test "$ac_test_CFLAGS" = set; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2035 | CFLAGS=$ac_save_CFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2036 | elif test $ac_cv_prog_cc_g = yes; then |
| 2037 | if test "$GCC" = yes; then |
| 2038 | CFLAGS="-g -O2" |
| 2039 | else |
| 2040 | CFLAGS="-g" |
| 2041 | fi |
| 2042 | else |
| 2043 | if test "$GCC" = yes; then |
| 2044 | CFLAGS="-O2" |
| 2045 | else |
| 2046 | CFLAGS= |
| 2047 | fi |
| 2048 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2049 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2050 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2051 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2053 | else |
| 2054 | ac_cv_prog_cc_stdc=no |
| 2055 | ac_save_CC=$CC |
| 2056 | cat >conftest.$ac_ext <<_ACEOF |
| 2057 | /* confdefs.h. */ |
| 2058 | _ACEOF |
| 2059 | cat confdefs.h >>conftest.$ac_ext |
| 2060 | cat >>conftest.$ac_ext <<_ACEOF |
| 2061 | /* end confdefs.h. */ |
| 2062 | #include <stdarg.h> |
| 2063 | #include <stdio.h> |
| 2064 | #include <sys/types.h> |
| 2065 | #include <sys/stat.h> |
| 2066 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2067 | struct buf { int x; }; |
| 2068 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2069 | static char *e (p, i) |
| 2070 | char **p; |
| 2071 | int i; |
| 2072 | { |
| 2073 | return p[i]; |
| 2074 | } |
| 2075 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2076 | { |
| 2077 | char *s; |
| 2078 | va_list v; |
| 2079 | va_start (v,p); |
| 2080 | s = g (p, va_arg (v,int)); |
| 2081 | va_end (v); |
| 2082 | return s; |
| 2083 | } |
| 2084 | |
| 2085 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2086 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2087 | These don't provoke an error unfortunately, instead are silently treated |
| 2088 | as 'x'. The following induces an error, until -std1 is added to get |
| 2089 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2090 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2091 | that's true only with -std1. */ |
| 2092 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2093 | |
| 2094 | int test (int i, double x); |
| 2095 | struct s1 {int (*f) (int a);}; |
| 2096 | struct s2 {int (*f) (double a);}; |
| 2097 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2098 | int argc; |
| 2099 | char **argv; |
| 2100 | int |
| 2101 | main () |
| 2102 | { |
| 2103 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2104 | ; |
| 2105 | return 0; |
| 2106 | } |
| 2107 | _ACEOF |
| 2108 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2109 | # breaks some systems' header files. |
| 2110 | # AIX -qlanglvl=ansi |
| 2111 | # Ultrix and OSF/1 -std1 |
| 2112 | # HP-UX 10.20 and later -Ae |
| 2113 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2114 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2115 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2116 | do |
| 2117 | CC="$ac_save_CC $ac_arg" |
| 2118 | rm -f conftest.$ac_objext |
| 2119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2120 | (eval $ac_compile) 2>conftest.er1 |
| 2121 | ac_status=$? |
| 2122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2123 | rm -f conftest.er1 |
| 2124 | cat conftest.err >&5 |
| 2125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2126 | (exit $ac_status); } && |
| 2127 | { ac_try='test -z "$ac_c_werror_flag" |
| 2128 | || test ! -s conftest.err' |
| 2129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2130 | (eval $ac_try) 2>&5 |
| 2131 | ac_status=$? |
| 2132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2133 | (exit $ac_status); }; } && |
| 2134 | { ac_try='test -s conftest.$ac_objext' |
| 2135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2136 | (eval $ac_try) 2>&5 |
| 2137 | ac_status=$? |
| 2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2139 | (exit $ac_status); }; }; then |
| 2140 | ac_cv_prog_cc_stdc=$ac_arg |
| 2141 | break |
| 2142 | else |
| 2143 | echo "$as_me: failed program was:" >&5 |
| 2144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2145 | |
| 2146 | fi |
| 2147 | rm -f conftest.err conftest.$ac_objext |
| 2148 | done |
| 2149 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2150 | CC=$ac_save_CC |
| 2151 | |
| 2152 | fi |
| 2153 | |
| 2154 | case "x$ac_cv_prog_cc_stdc" in |
| 2155 | x|xno) |
| 2156 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2157 | echo "${ECHO_T}none needed" >&6 ;; |
| 2158 | *) |
| 2159 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2160 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2161 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2162 | esac |
| 2163 | |
| 2164 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2165 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2166 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2167 | # the declaration of exit, since it's the most demanding environment. |
| 2168 | cat >conftest.$ac_ext <<_ACEOF |
| 2169 | #ifndef __cplusplus |
| 2170 | choke me |
| 2171 | #endif |
| 2172 | _ACEOF |
| 2173 | rm -f conftest.$ac_objext |
| 2174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2175 | (eval $ac_compile) 2>conftest.er1 |
| 2176 | ac_status=$? |
| 2177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2178 | rm -f conftest.er1 |
| 2179 | cat conftest.err >&5 |
| 2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2181 | (exit $ac_status); } && |
| 2182 | { ac_try='test -z "$ac_c_werror_flag" |
| 2183 | || test ! -s conftest.err' |
| 2184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2185 | (eval $ac_try) 2>&5 |
| 2186 | ac_status=$? |
| 2187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2188 | (exit $ac_status); }; } && |
| 2189 | { ac_try='test -s conftest.$ac_objext' |
| 2190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2191 | (eval $ac_try) 2>&5 |
| 2192 | ac_status=$? |
| 2193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2194 | (exit $ac_status); }; }; then |
| 2195 | for ac_declaration in \ |
| 2196 | '' \ |
| 2197 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2198 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2199 | 'extern "C" void exit (int) throw ();' \ |
| 2200 | 'extern "C" void exit (int);' \ |
| 2201 | 'void exit (int);' |
| 2202 | do |
| 2203 | cat >conftest.$ac_ext <<_ACEOF |
| 2204 | /* confdefs.h. */ |
| 2205 | _ACEOF |
| 2206 | cat confdefs.h >>conftest.$ac_ext |
| 2207 | cat >>conftest.$ac_ext <<_ACEOF |
| 2208 | /* end confdefs.h. */ |
| 2209 | $ac_declaration |
| 2210 | #include <stdlib.h> |
| 2211 | int |
| 2212 | main () |
| 2213 | { |
| 2214 | exit (42); |
| 2215 | ; |
| 2216 | return 0; |
| 2217 | } |
| 2218 | _ACEOF |
| 2219 | rm -f conftest.$ac_objext |
| 2220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2221 | (eval $ac_compile) 2>conftest.er1 |
| 2222 | ac_status=$? |
| 2223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2224 | rm -f conftest.er1 |
| 2225 | cat conftest.err >&5 |
| 2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2227 | (exit $ac_status); } && |
| 2228 | { ac_try='test -z "$ac_c_werror_flag" |
| 2229 | || test ! -s conftest.err' |
| 2230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2231 | (eval $ac_try) 2>&5 |
| 2232 | ac_status=$? |
| 2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2234 | (exit $ac_status); }; } && |
| 2235 | { ac_try='test -s conftest.$ac_objext' |
| 2236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2237 | (eval $ac_try) 2>&5 |
| 2238 | ac_status=$? |
| 2239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2240 | (exit $ac_status); }; }; then |
| 2241 | : |
| 2242 | else |
| 2243 | echo "$as_me: failed program was:" >&5 |
| 2244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2245 | |
| 2246 | continue |
| 2247 | fi |
| 2248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2249 | cat >conftest.$ac_ext <<_ACEOF |
| 2250 | /* confdefs.h. */ |
| 2251 | _ACEOF |
| 2252 | cat confdefs.h >>conftest.$ac_ext |
| 2253 | cat >>conftest.$ac_ext <<_ACEOF |
| 2254 | /* end confdefs.h. */ |
| 2255 | $ac_declaration |
| 2256 | int |
| 2257 | main () |
| 2258 | { |
| 2259 | exit (42); |
| 2260 | ; |
| 2261 | return 0; |
| 2262 | } |
| 2263 | _ACEOF |
| 2264 | rm -f conftest.$ac_objext |
| 2265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2266 | (eval $ac_compile) 2>conftest.er1 |
| 2267 | ac_status=$? |
| 2268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2269 | rm -f conftest.er1 |
| 2270 | cat conftest.err >&5 |
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2272 | (exit $ac_status); } && |
| 2273 | { ac_try='test -z "$ac_c_werror_flag" |
| 2274 | || test ! -s conftest.err' |
| 2275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2276 | (eval $ac_try) 2>&5 |
| 2277 | ac_status=$? |
| 2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2279 | (exit $ac_status); }; } && |
| 2280 | { ac_try='test -s conftest.$ac_objext' |
| 2281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2282 | (eval $ac_try) 2>&5 |
| 2283 | ac_status=$? |
| 2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2285 | (exit $ac_status); }; }; then |
| 2286 | break |
| 2287 | else |
| 2288 | echo "$as_me: failed program was:" >&5 |
| 2289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2290 | |
| 2291 | fi |
| 2292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2293 | done |
| 2294 | rm -f conftest* |
| 2295 | if test -n "$ac_declaration"; then |
| 2296 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2297 | echo $ac_declaration >>confdefs.h |
| 2298 | echo '#endif' >>confdefs.h |
| 2299 | fi |
| 2300 | |
| 2301 | else |
| 2302 | echo "$as_me: failed program was:" >&5 |
| 2303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2304 | |
| 2305 | fi |
| 2306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2307 | ac_ext=c |
| 2308 | ac_cpp='$CPP $CPPFLAGS' |
| 2309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2312 | ac_ext=c |
| 2313 | ac_cpp='$CPP $CPPFLAGS' |
| 2314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2317 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2318 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2319 | # On Suns, sometimes $CPP names a directory. |
| 2320 | if test -n "$CPP" && test -d "$CPP"; then |
| 2321 | CPP= |
| 2322 | fi |
| 2323 | if test -z "$CPP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2324 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2326 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2327 | # Double quotes because CPP needs to be expanded |
| 2328 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2329 | do |
| 2330 | ac_preproc_ok=false |
| 2331 | for ac_c_preproc_warn_flag in '' yes |
| 2332 | do |
| 2333 | # Use a header file that comes with gcc, so configuring glibc |
| 2334 | # with a fresh cross-compiler works. |
| 2335 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2336 | # <limits.h> exists even on freestanding compilers. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2337 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2338 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2339 | cat >conftest.$ac_ext <<_ACEOF |
| 2340 | /* confdefs.h. */ |
| 2341 | _ACEOF |
| 2342 | cat confdefs.h >>conftest.$ac_ext |
| 2343 | cat >>conftest.$ac_ext <<_ACEOF |
| 2344 | /* end confdefs.h. */ |
| 2345 | #ifdef __STDC__ |
| 2346 | # include <limits.h> |
| 2347 | #else |
| 2348 | # include <assert.h> |
| 2349 | #endif |
| 2350 | Syntax error |
| 2351 | _ACEOF |
| 2352 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2353 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2354 | ac_status=$? |
| 2355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2356 | rm -f conftest.er1 |
| 2357 | cat conftest.err >&5 |
| 2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2359 | (exit $ac_status); } >/dev/null; then |
| 2360 | if test -s conftest.err; then |
| 2361 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2362 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2363 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2364 | ac_cpp_err= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2365 | fi |
| 2366 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2367 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2368 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2369 | if test -z "$ac_cpp_err"; then |
| 2370 | : |
| 2371 | else |
| 2372 | echo "$as_me: failed program was:" >&5 |
| 2373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2374 | |
| 2375 | # Broken: fails on valid input. |
| 2376 | continue |
| 2377 | fi |
| 2378 | rm -f conftest.err conftest.$ac_ext |
| 2379 | |
| 2380 | # OK, works on sane cases. Now check whether non-existent headers |
| 2381 | # can be detected and how. |
| 2382 | cat >conftest.$ac_ext <<_ACEOF |
| 2383 | /* confdefs.h. */ |
| 2384 | _ACEOF |
| 2385 | cat confdefs.h >>conftest.$ac_ext |
| 2386 | cat >>conftest.$ac_ext <<_ACEOF |
| 2387 | /* end confdefs.h. */ |
| 2388 | #include <ac_nonexistent.h> |
| 2389 | _ACEOF |
| 2390 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2391 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2392 | ac_status=$? |
| 2393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2394 | rm -f conftest.er1 |
| 2395 | cat conftest.err >&5 |
| 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); } >/dev/null; then |
| 2398 | if test -s conftest.err; then |
| 2399 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2400 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2401 | else |
| 2402 | ac_cpp_err= |
| 2403 | fi |
| 2404 | else |
| 2405 | ac_cpp_err=yes |
| 2406 | fi |
| 2407 | if test -z "$ac_cpp_err"; then |
| 2408 | # Broken: success on invalid input. |
| 2409 | continue |
| 2410 | else |
| 2411 | echo "$as_me: failed program was:" >&5 |
| 2412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2413 | |
| 2414 | # Passes both tests. |
| 2415 | ac_preproc_ok=: |
| 2416 | break |
| 2417 | fi |
| 2418 | rm -f conftest.err conftest.$ac_ext |
| 2419 | |
| 2420 | done |
| 2421 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2422 | rm -f conftest.err conftest.$ac_ext |
| 2423 | if $ac_preproc_ok; then |
| 2424 | break |
| 2425 | fi |
| 2426 | |
| 2427 | done |
| 2428 | ac_cv_prog_CPP=$CPP |
| 2429 | |
| 2430 | fi |
| 2431 | CPP=$ac_cv_prog_CPP |
| 2432 | else |
| 2433 | ac_cv_prog_CPP=$CPP |
| 2434 | fi |
| 2435 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2436 | echo "${ECHO_T}$CPP" >&6 |
| 2437 | ac_preproc_ok=false |
| 2438 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2439 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2440 | # Use a header file that comes with gcc, so configuring glibc |
| 2441 | # with a fresh cross-compiler works. |
| 2442 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2443 | # <limits.h> exists even on freestanding compilers. |
| 2444 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2445 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2446 | cat >conftest.$ac_ext <<_ACEOF |
| 2447 | /* confdefs.h. */ |
| 2448 | _ACEOF |
| 2449 | cat confdefs.h >>conftest.$ac_ext |
| 2450 | cat >>conftest.$ac_ext <<_ACEOF |
| 2451 | /* end confdefs.h. */ |
| 2452 | #ifdef __STDC__ |
| 2453 | # include <limits.h> |
| 2454 | #else |
| 2455 | # include <assert.h> |
| 2456 | #endif |
| 2457 | Syntax error |
| 2458 | _ACEOF |
| 2459 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2460 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2461 | ac_status=$? |
| 2462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2463 | rm -f conftest.er1 |
| 2464 | cat conftest.err >&5 |
| 2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2466 | (exit $ac_status); } >/dev/null; then |
| 2467 | if test -s conftest.err; then |
| 2468 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2469 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2470 | else |
| 2471 | ac_cpp_err= |
| 2472 | fi |
| 2473 | else |
| 2474 | ac_cpp_err=yes |
| 2475 | fi |
| 2476 | if test -z "$ac_cpp_err"; then |
| 2477 | : |
| 2478 | else |
| 2479 | echo "$as_me: failed program was:" >&5 |
| 2480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2481 | |
| 2482 | # Broken: fails on valid input. |
| 2483 | continue |
| 2484 | fi |
| 2485 | rm -f conftest.err conftest.$ac_ext |
| 2486 | |
| 2487 | # OK, works on sane cases. Now check whether non-existent headers |
| 2488 | # can be detected and how. |
| 2489 | cat >conftest.$ac_ext <<_ACEOF |
| 2490 | /* confdefs.h. */ |
| 2491 | _ACEOF |
| 2492 | cat confdefs.h >>conftest.$ac_ext |
| 2493 | cat >>conftest.$ac_ext <<_ACEOF |
| 2494 | /* end confdefs.h. */ |
| 2495 | #include <ac_nonexistent.h> |
| 2496 | _ACEOF |
| 2497 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2498 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2499 | ac_status=$? |
| 2500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2501 | rm -f conftest.er1 |
| 2502 | cat conftest.err >&5 |
| 2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2504 | (exit $ac_status); } >/dev/null; then |
| 2505 | if test -s conftest.err; then |
| 2506 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2507 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2508 | else |
| 2509 | ac_cpp_err= |
| 2510 | fi |
| 2511 | else |
| 2512 | ac_cpp_err=yes |
| 2513 | fi |
| 2514 | if test -z "$ac_cpp_err"; then |
| 2515 | # Broken: success on invalid input. |
| 2516 | continue |
| 2517 | else |
| 2518 | echo "$as_me: failed program was:" >&5 |
| 2519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2520 | |
| 2521 | # Passes both tests. |
| 2522 | ac_preproc_ok=: |
| 2523 | break |
| 2524 | fi |
| 2525 | rm -f conftest.err conftest.$ac_ext |
| 2526 | |
| 2527 | done |
| 2528 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2529 | rm -f conftest.err conftest.$ac_ext |
| 2530 | if $ac_preproc_ok; then |
| 2531 | : |
| 2532 | else |
| 2533 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2534 | See \`config.log' for more details." >&5 |
| 2535 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2536 | See \`config.log' for more details." >&2;} |
| 2537 | { (exit 1); exit 1; }; } |
| 2538 | fi |
| 2539 | |
| 2540 | ac_ext=c |
| 2541 | ac_cpp='$CPP $CPPFLAGS' |
| 2542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2545 | |
| 2546 | |
| 2547 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2548 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2549 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2551 | else |
| 2552 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2553 | then ac_cv_prog_egrep='grep -E' |
| 2554 | else ac_cv_prog_egrep='egrep' |
| 2555 | fi |
| 2556 | fi |
| 2557 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2558 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2559 | EGREP=$ac_cv_prog_egrep |
| 2560 | |
| 2561 | |
| 2562 | cat >conftest.$ac_ext <<_ACEOF |
| 2563 | /* confdefs.h. */ |
| 2564 | _ACEOF |
| 2565 | cat confdefs.h >>conftest.$ac_ext |
| 2566 | cat >>conftest.$ac_ext <<_ACEOF |
| 2567 | /* end confdefs.h. */ |
| 2568 | |
| 2569 | _ACEOF |
| 2570 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2571 | $EGREP "" >/dev/null 2>&1; then |
| 2572 | : |
| 2573 | fi |
| 2574 | rm -f conftest* |
| 2575 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 2576 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
| 2577 | if test "${ac_cv_search_strerror+set}" = set; then |
| 2578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2579 | else |
| 2580 | ac_func_search_save_LIBS=$LIBS |
| 2581 | ac_cv_search_strerror=no |
| 2582 | cat >conftest.$ac_ext <<_ACEOF |
| 2583 | /* confdefs.h. */ |
| 2584 | _ACEOF |
| 2585 | cat confdefs.h >>conftest.$ac_ext |
| 2586 | cat >>conftest.$ac_ext <<_ACEOF |
| 2587 | /* end confdefs.h. */ |
| 2588 | |
| 2589 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2590 | #ifdef __cplusplus |
| 2591 | extern "C" |
| 2592 | #endif |
| 2593 | /* We use char because int might match the return type of a gcc2 |
| 2594 | builtin and then its argument prototype would still apply. */ |
| 2595 | char strerror (); |
| 2596 | int |
| 2597 | main () |
| 2598 | { |
| 2599 | strerror (); |
| 2600 | ; |
| 2601 | return 0; |
| 2602 | } |
| 2603 | _ACEOF |
| 2604 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2606 | (eval $ac_link) 2>conftest.er1 |
| 2607 | ac_status=$? |
| 2608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2609 | rm -f conftest.er1 |
| 2610 | cat conftest.err >&5 |
| 2611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2612 | (exit $ac_status); } && |
| 2613 | { ac_try='test -z "$ac_c_werror_flag" |
| 2614 | || test ! -s conftest.err' |
| 2615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2616 | (eval $ac_try) 2>&5 |
| 2617 | ac_status=$? |
| 2618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2619 | (exit $ac_status); }; } && |
| 2620 | { ac_try='test -s conftest$ac_exeext' |
| 2621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2622 | (eval $ac_try) 2>&5 |
| 2623 | ac_status=$? |
| 2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2625 | (exit $ac_status); }; }; then |
| 2626 | ac_cv_search_strerror="none required" |
| 2627 | else |
| 2628 | echo "$as_me: failed program was:" >&5 |
| 2629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2630 | |
| 2631 | fi |
| 2632 | rm -f conftest.err conftest.$ac_objext \ |
| 2633 | conftest$ac_exeext conftest.$ac_ext |
| 2634 | if test "$ac_cv_search_strerror" = no; then |
| 2635 | for ac_lib in cposix; do |
| 2636 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 2637 | cat >conftest.$ac_ext <<_ACEOF |
| 2638 | /* confdefs.h. */ |
| 2639 | _ACEOF |
| 2640 | cat confdefs.h >>conftest.$ac_ext |
| 2641 | cat >>conftest.$ac_ext <<_ACEOF |
| 2642 | /* end confdefs.h. */ |
| 2643 | |
| 2644 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2645 | #ifdef __cplusplus |
| 2646 | extern "C" |
| 2647 | #endif |
| 2648 | /* We use char because int might match the return type of a gcc2 |
| 2649 | builtin and then its argument prototype would still apply. */ |
| 2650 | char strerror (); |
| 2651 | int |
| 2652 | main () |
| 2653 | { |
| 2654 | strerror (); |
| 2655 | ; |
| 2656 | return 0; |
| 2657 | } |
| 2658 | _ACEOF |
| 2659 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2661 | (eval $ac_link) 2>conftest.er1 |
| 2662 | ac_status=$? |
| 2663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2664 | rm -f conftest.er1 |
| 2665 | cat conftest.err >&5 |
| 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2667 | (exit $ac_status); } && |
| 2668 | { ac_try='test -z "$ac_c_werror_flag" |
| 2669 | || test ! -s conftest.err' |
| 2670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2671 | (eval $ac_try) 2>&5 |
| 2672 | ac_status=$? |
| 2673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2674 | (exit $ac_status); }; } && |
| 2675 | { ac_try='test -s conftest$ac_exeext' |
| 2676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2677 | (eval $ac_try) 2>&5 |
| 2678 | ac_status=$? |
| 2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2680 | (exit $ac_status); }; }; then |
| 2681 | ac_cv_search_strerror="-l$ac_lib" |
| 2682 | break |
| 2683 | else |
| 2684 | echo "$as_me: failed program was:" >&5 |
| 2685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2686 | |
| 2687 | fi |
| 2688 | rm -f conftest.err conftest.$ac_objext \ |
| 2689 | conftest$ac_exeext conftest.$ac_ext |
| 2690 | done |
| 2691 | fi |
| 2692 | LIBS=$ac_func_search_save_LIBS |
| 2693 | fi |
| 2694 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 2695 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
| 2696 | if test "$ac_cv_search_strerror" != no; then |
| 2697 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
| 2698 | |
| 2699 | fi |
| 2700 | for ac_prog in gawk mawk nawk awk |
| 2701 | do |
| 2702 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2703 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2706 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2708 | else |
| 2709 | if test -n "$AWK"; then |
| 2710 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2711 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2713 | for as_dir in $PATH |
| 2714 | do |
| 2715 | IFS=$as_save_IFS |
| 2716 | test -z "$as_dir" && as_dir=. |
| 2717 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2719 | ac_cv_prog_AWK="$ac_prog" |
| 2720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2721 | break 2 |
| 2722 | fi |
| 2723 | done |
| 2724 | done |
| 2725 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2726 | fi |
| 2727 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2728 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2729 | if test -n "$AWK"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2730 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2731 | echo "${ECHO_T}$AWK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2732 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2733 | echo "$as_me:$LINENO: result: no" >&5 |
| 2734 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2735 | fi |
| 2736 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2737 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2738 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2739 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2740 | # Extract the first word of "strip", so it can be a program name with args. |
| 2741 | set dummy strip; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2744 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2746 | else |
| 2747 | if test -n "$STRIP"; then |
| 2748 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2749 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2751 | for as_dir in $PATH |
| 2752 | do |
| 2753 | IFS=$as_save_IFS |
| 2754 | test -z "$as_dir" && as_dir=. |
| 2755 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2757 | ac_cv_prog_STRIP="strip" |
| 2758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2759 | break 2 |
| 2760 | fi |
| 2761 | done |
| 2762 | done |
| 2763 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2764 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 2765 | fi |
| 2766 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2767 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2768 | if test -n "$STRIP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2769 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2770 | echo "${ECHO_T}$STRIP" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2771 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2772 | echo "$as_me:$LINENO: result: no" >&5 |
| 2773 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2774 | fi |
| 2775 | |
| 2776 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2777 | |
| 2778 | |
| 2779 | if test -z "$CFLAGS"; then |
| 2780 | CFLAGS="-O" |
| 2781 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 2782 | fi |
| 2783 | if test "$GCC" = yes; then |
Bram Moolenaar | 32466aa | 2006-02-24 23:53:04 +0000 | [diff] [blame] | 2784 | gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\(darwin.[^0-9]*\)*\([0-9]\.[0-9.]*\).*$/\2/g'` |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 2785 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2786 | echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2787 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 2788 | else |
| 2789 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 2790 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 2791 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 2792 | fi |
| 2793 | fi |
| 2794 | fi |
| 2795 | |
| 2796 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2797 | { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS |
| 2798 | (cross compiling doesn't work)" >&5 |
| 2799 | echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS |
| 2800 | (cross compiling doesn't work)" >&2;} |
| 2801 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2802 | fi |
| 2803 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2804 | test "$GCC" = yes && CPP_MM=M; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2805 | |
| 2806 | if test -f ./toolcheck; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2807 | { echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 2808 | echo "$as_me: checking for buggy tools..." >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2809 | sh ./toolcheck 1>&6 |
| 2810 | fi |
| 2811 | |
| 2812 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 2813 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2814 | echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 2815 | echo $ECHO_N "checking for BeOS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2816 | case `uname` in |
| 2817 | BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2818 | BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2819 | echo "${ECHO_T}yes" >&6;; |
| 2820 | *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2821 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2822 | esac |
| 2823 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2824 | echo "$as_me:$LINENO: checking for QNX" >&5 |
| 2825 | echo $ECHO_N "checking for QNX... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2826 | case `uname` in |
| 2827 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 2828 | test -z "$with_x" && with_x=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2829 | QNX=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2830 | echo "${ECHO_T}yes" >&6;; |
| 2831 | *) QNX=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2832 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2833 | esac |
| 2834 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2835 | echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 2836 | echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2837 | if test "`(uname) 2>/dev/null`" = Darwin; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2838 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2839 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2840 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2841 | echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 2842 | echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2843 | # Check whether --enable-darwin or --disable-darwin was given. |
| 2844 | if test "${enable_darwin+set}" = set; then |
| 2845 | enableval="$enable_darwin" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2846 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2847 | else |
| 2848 | enable_darwin="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2849 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2850 | if test "$enable_darwin" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2851 | echo "$as_me:$LINENO: result: no" >&5 |
| 2852 | echo "${ECHO_T}no" >&6 |
| 2853 | echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 2854 | echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2855 | if test -f os_macosx.c; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2856 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2857 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2858 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2859 | echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 2860 | echo "${ECHO_T}no, Darwin support disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2861 | enable_darwin=no |
| 2862 | fi |
| 2863 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2864 | echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 2865 | echo "${ECHO_T}yes, Darwin support excluded" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2866 | fi |
| 2867 | |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2868 | echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5 |
| 2869 | echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6 |
| 2870 | |
| 2871 | # Check whether --with-mac-arch or --without-mac-arch was given. |
| 2872 | if test "${with_mac_arch+set}" = set; then |
| 2873 | withval="$with_mac_arch" |
| 2874 | MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5 |
| 2875 | echo "${ECHO_T}$MACARCH" >&6 |
| 2876 | else |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2877 | MACARCH="both"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5 |
| 2878 | echo "${ECHO_T}defaulting to $MACARCH" >&6 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2879 | fi; |
| 2880 | |
| 2881 | if test "x$MACARCH" = "xboth"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2882 | echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5 |
| 2883 | echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6 |
| 2884 | save_cppflags="$CPPFLAGS" |
| 2885 | save_cflags="$CFLAGS" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2886 | save_ldflags="$LDFLAGS" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2887 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2888 | cat >conftest.$ac_ext <<_ACEOF |
| 2889 | /* confdefs.h. */ |
| 2890 | _ACEOF |
| 2891 | cat confdefs.h >>conftest.$ac_ext |
| 2892 | cat >>conftest.$ac_ext <<_ACEOF |
| 2893 | /* end confdefs.h. */ |
| 2894 | |
| 2895 | int |
| 2896 | main () |
| 2897 | { |
| 2898 | |
| 2899 | ; |
| 2900 | return 0; |
| 2901 | } |
| 2902 | _ACEOF |
| 2903 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2905 | (eval $ac_link) 2>conftest.er1 |
| 2906 | ac_status=$? |
| 2907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2908 | rm -f conftest.er1 |
| 2909 | cat conftest.err >&5 |
| 2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2911 | (exit $ac_status); } && |
| 2912 | { ac_try='test -z "$ac_c_werror_flag" |
| 2913 | || test ! -s conftest.err' |
| 2914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2915 | (eval $ac_try) 2>&5 |
| 2916 | ac_status=$? |
| 2917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2918 | (exit $ac_status); }; } && |
| 2919 | { ac_try='test -s conftest$ac_exeext' |
| 2920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2921 | (eval $ac_try) 2>&5 |
| 2922 | ac_status=$? |
| 2923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2924 | (exit $ac_status); }; }; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2925 | echo "$as_me:$LINENO: result: found" >&5 |
| 2926 | echo "${ECHO_T}found" >&6 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2927 | else |
| 2928 | echo "$as_me: failed program was:" >&5 |
| 2929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2930 | |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2931 | echo "$as_me:$LINENO: result: not found" >&5 |
| 2932 | echo "${ECHO_T}not found" >&6 |
| 2933 | CFLAGS="save_cflags" |
| 2934 | echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2935 | echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2936 | CPPFLAGS="$CPPFLAGS -arch i386" |
| 2937 | LDFLAGS="$save_ldflags -arch i386" |
| 2938 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2939 | /* confdefs.h. */ |
| 2940 | _ACEOF |
| 2941 | cat confdefs.h >>conftest.$ac_ext |
| 2942 | cat >>conftest.$ac_ext <<_ACEOF |
| 2943 | /* end confdefs.h. */ |
| 2944 | |
| 2945 | int |
| 2946 | main () |
| 2947 | { |
| 2948 | |
| 2949 | ; |
| 2950 | return 0; |
| 2951 | } |
| 2952 | _ACEOF |
| 2953 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2955 | (eval $ac_link) 2>conftest.er1 |
| 2956 | ac_status=$? |
| 2957 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2958 | rm -f conftest.er1 |
| 2959 | cat conftest.err >&5 |
| 2960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2961 | (exit $ac_status); } && |
| 2962 | { ac_try='test -z "$ac_c_werror_flag" |
| 2963 | || test ! -s conftest.err' |
| 2964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2965 | (eval $ac_try) 2>&5 |
| 2966 | ac_status=$? |
| 2967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2968 | (exit $ac_status); }; } && |
| 2969 | { ac_try='test -s conftest$ac_exeext' |
| 2970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2971 | (eval $ac_try) 2>&5 |
| 2972 | ac_status=$? |
| 2973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2974 | (exit $ac_status); }; }; then |
| 2975 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2976 | echo "${ECHO_T}yes" >&6; MACARCH="intel" |
| 2977 | else |
| 2978 | echo "$as_me: failed program was:" >&5 |
| 2979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2980 | |
| 2981 | echo "$as_me:$LINENO: result: no" >&5 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2982 | echo "${ECHO_T}no" >&6 |
| 2983 | MACARCH="ppc" |
| 2984 | CPPFLAGS="$save_cppflags -arch ppc" |
| 2985 | LDFLAGS="$save_ldflags -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2986 | fi |
| 2987 | rm -f conftest.err conftest.$ac_objext \ |
| 2988 | conftest$ac_exeext conftest.$ac_ext |
| 2989 | fi |
| 2990 | rm -f conftest.err conftest.$ac_objext \ |
| 2991 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2992 | elif test "x$MACARCH" = "xintel"; then |
| 2993 | CPPFLAGS="$CPPFLAGS -arch intel" |
| 2994 | LDFLAGS="$LDFLAGS -arch intel" |
| 2995 | else |
| 2996 | CPPFLAGS="$CPPFLAGS -arch ppc" |
| 2997 | LDFLAGS="$LDFLAGS -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2998 | fi |
| 2999 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3000 | if test "$enable_darwin" = "yes"; then |
| 3001 | MACOSX=yes |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 3002 | OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; |
| 3003 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 3004 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" |
| 3005 | if test "x$MACARCH" = "xboth"; then |
| 3006 | CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" |
| 3007 | else |
| 3008 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon" |
| 3009 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3010 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3011 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3012 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3013 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3015 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3016 | cat >conftest.$ac_ext <<_ACEOF |
| 3017 | /* confdefs.h. */ |
| 3018 | _ACEOF |
| 3019 | cat confdefs.h >>conftest.$ac_ext |
| 3020 | cat >>conftest.$ac_ext <<_ACEOF |
| 3021 | /* end confdefs.h. */ |
| 3022 | #include <stdlib.h> |
| 3023 | #include <stdarg.h> |
| 3024 | #include <string.h> |
| 3025 | #include <float.h> |
| 3026 | |
| 3027 | int |
| 3028 | main () |
| 3029 | { |
| 3030 | |
| 3031 | ; |
| 3032 | return 0; |
| 3033 | } |
| 3034 | _ACEOF |
| 3035 | rm -f conftest.$ac_objext |
| 3036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3037 | (eval $ac_compile) 2>conftest.er1 |
| 3038 | ac_status=$? |
| 3039 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3040 | rm -f conftest.er1 |
| 3041 | cat conftest.err >&5 |
| 3042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3043 | (exit $ac_status); } && |
| 3044 | { ac_try='test -z "$ac_c_werror_flag" |
| 3045 | || test ! -s conftest.err' |
| 3046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3047 | (eval $ac_try) 2>&5 |
| 3048 | ac_status=$? |
| 3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3050 | (exit $ac_status); }; } && |
| 3051 | { ac_try='test -s conftest.$ac_objext' |
| 3052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3053 | (eval $ac_try) 2>&5 |
| 3054 | ac_status=$? |
| 3055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3056 | (exit $ac_status); }; }; then |
| 3057 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3058 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3059 | echo "$as_me: failed program was:" >&5 |
| 3060 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3061 | |
| 3062 | ac_cv_header_stdc=no |
| 3063 | fi |
| 3064 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3065 | |
| 3066 | if test $ac_cv_header_stdc = yes; then |
| 3067 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3068 | cat >conftest.$ac_ext <<_ACEOF |
| 3069 | /* confdefs.h. */ |
| 3070 | _ACEOF |
| 3071 | cat confdefs.h >>conftest.$ac_ext |
| 3072 | cat >>conftest.$ac_ext <<_ACEOF |
| 3073 | /* end confdefs.h. */ |
| 3074 | #include <string.h> |
| 3075 | |
| 3076 | _ACEOF |
| 3077 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3078 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3079 | : |
| 3080 | else |
| 3081 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3082 | fi |
| 3083 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3084 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3085 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3086 | |
| 3087 | if test $ac_cv_header_stdc = yes; then |
| 3088 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3089 | cat >conftest.$ac_ext <<_ACEOF |
| 3090 | /* confdefs.h. */ |
| 3091 | _ACEOF |
| 3092 | cat confdefs.h >>conftest.$ac_ext |
| 3093 | cat >>conftest.$ac_ext <<_ACEOF |
| 3094 | /* end confdefs.h. */ |
| 3095 | #include <stdlib.h> |
| 3096 | |
| 3097 | _ACEOF |
| 3098 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3099 | $EGREP "free" >/dev/null 2>&1; then |
| 3100 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3101 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3102 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3103 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3104 | rm -f conftest* |
| 3105 | |
| 3106 | fi |
| 3107 | |
| 3108 | if test $ac_cv_header_stdc = yes; then |
| 3109 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3110 | if test "$cross_compiling" = yes; then |
| 3111 | : |
| 3112 | else |
| 3113 | cat >conftest.$ac_ext <<_ACEOF |
| 3114 | /* confdefs.h. */ |
| 3115 | _ACEOF |
| 3116 | cat confdefs.h >>conftest.$ac_ext |
| 3117 | cat >>conftest.$ac_ext <<_ACEOF |
| 3118 | /* end confdefs.h. */ |
| 3119 | #include <ctype.h> |
| 3120 | #if ((' ' & 0x0FF) == 0x020) |
| 3121 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3122 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3123 | #else |
| 3124 | # define ISLOWER(c) \ |
| 3125 | (('a' <= (c) && (c) <= 'i') \ |
| 3126 | || ('j' <= (c) && (c) <= 'r') \ |
| 3127 | || ('s' <= (c) && (c) <= 'z')) |
| 3128 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3129 | #endif |
| 3130 | |
| 3131 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3132 | int |
| 3133 | main () |
| 3134 | { |
| 3135 | int i; |
| 3136 | for (i = 0; i < 256; i++) |
| 3137 | if (XOR (islower (i), ISLOWER (i)) |
| 3138 | || toupper (i) != TOUPPER (i)) |
| 3139 | exit(2); |
| 3140 | exit (0); |
| 3141 | } |
| 3142 | _ACEOF |
| 3143 | rm -f conftest$ac_exeext |
| 3144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3145 | (eval $ac_link) 2>&5 |
| 3146 | ac_status=$? |
| 3147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3148 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3150 | (eval $ac_try) 2>&5 |
| 3151 | ac_status=$? |
| 3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3153 | (exit $ac_status); }; }; then |
| 3154 | : |
| 3155 | else |
| 3156 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3157 | echo "$as_me: failed program was:" >&5 |
| 3158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3159 | |
| 3160 | ( exit $ac_status ) |
| 3161 | ac_cv_header_stdc=no |
| 3162 | fi |
| 3163 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3164 | fi |
| 3165 | fi |
| 3166 | fi |
| 3167 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3168 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3169 | if test $ac_cv_header_stdc = yes; then |
| 3170 | |
| 3171 | cat >>confdefs.h <<\_ACEOF |
| 3172 | #define STDC_HEADERS 1 |
| 3173 | _ACEOF |
| 3174 | |
| 3175 | fi |
| 3176 | |
| 3177 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3178 | |
| 3179 | |
| 3180 | |
| 3181 | |
| 3182 | |
| 3183 | |
| 3184 | |
| 3185 | |
| 3186 | |
| 3187 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3188 | inttypes.h stdint.h unistd.h |
| 3189 | do |
| 3190 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3191 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3192 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3193 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3195 | else |
| 3196 | cat >conftest.$ac_ext <<_ACEOF |
| 3197 | /* confdefs.h. */ |
| 3198 | _ACEOF |
| 3199 | cat confdefs.h >>conftest.$ac_ext |
| 3200 | cat >>conftest.$ac_ext <<_ACEOF |
| 3201 | /* end confdefs.h. */ |
| 3202 | $ac_includes_default |
| 3203 | |
| 3204 | #include <$ac_header> |
| 3205 | _ACEOF |
| 3206 | rm -f conftest.$ac_objext |
| 3207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3208 | (eval $ac_compile) 2>conftest.er1 |
| 3209 | ac_status=$? |
| 3210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3211 | rm -f conftest.er1 |
| 3212 | cat conftest.err >&5 |
| 3213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3214 | (exit $ac_status); } && |
| 3215 | { ac_try='test -z "$ac_c_werror_flag" |
| 3216 | || test ! -s conftest.err' |
| 3217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3218 | (eval $ac_try) 2>&5 |
| 3219 | ac_status=$? |
| 3220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3221 | (exit $ac_status); }; } && |
| 3222 | { ac_try='test -s conftest.$ac_objext' |
| 3223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3224 | (eval $ac_try) 2>&5 |
| 3225 | ac_status=$? |
| 3226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3227 | (exit $ac_status); }; }; then |
| 3228 | eval "$as_ac_Header=yes" |
| 3229 | else |
| 3230 | echo "$as_me: failed program was:" >&5 |
| 3231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3232 | |
| 3233 | eval "$as_ac_Header=no" |
| 3234 | fi |
| 3235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3236 | fi |
| 3237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3238 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3239 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3240 | cat >>confdefs.h <<_ACEOF |
| 3241 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3242 | _ACEOF |
| 3243 | |
| 3244 | fi |
| 3245 | |
| 3246 | done |
| 3247 | |
| 3248 | |
| 3249 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3250 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3251 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3252 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3254 | fi |
| 3255 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3256 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3257 | else |
| 3258 | # Is the header compilable? |
| 3259 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 3260 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 |
| 3261 | cat >conftest.$ac_ext <<_ACEOF |
| 3262 | /* confdefs.h. */ |
| 3263 | _ACEOF |
| 3264 | cat confdefs.h >>conftest.$ac_ext |
| 3265 | cat >>conftest.$ac_ext <<_ACEOF |
| 3266 | /* end confdefs.h. */ |
| 3267 | $ac_includes_default |
| 3268 | #include <Carbon/Carbon.h> |
| 3269 | _ACEOF |
| 3270 | rm -f conftest.$ac_objext |
| 3271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3272 | (eval $ac_compile) 2>conftest.er1 |
| 3273 | ac_status=$? |
| 3274 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3275 | rm -f conftest.er1 |
| 3276 | cat conftest.err >&5 |
| 3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3278 | (exit $ac_status); } && |
| 3279 | { ac_try='test -z "$ac_c_werror_flag" |
| 3280 | || test ! -s conftest.err' |
| 3281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3282 | (eval $ac_try) 2>&5 |
| 3283 | ac_status=$? |
| 3284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3285 | (exit $ac_status); }; } && |
| 3286 | { ac_try='test -s conftest.$ac_objext' |
| 3287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3288 | (eval $ac_try) 2>&5 |
| 3289 | ac_status=$? |
| 3290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3291 | (exit $ac_status); }; }; then |
| 3292 | ac_header_compiler=yes |
| 3293 | else |
| 3294 | echo "$as_me: failed program was:" >&5 |
| 3295 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3296 | |
| 3297 | ac_header_compiler=no |
| 3298 | fi |
| 3299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3300 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3301 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3302 | |
| 3303 | # Is the header present? |
| 3304 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 3305 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 |
| 3306 | cat >conftest.$ac_ext <<_ACEOF |
| 3307 | /* confdefs.h. */ |
| 3308 | _ACEOF |
| 3309 | cat confdefs.h >>conftest.$ac_ext |
| 3310 | cat >>conftest.$ac_ext <<_ACEOF |
| 3311 | /* end confdefs.h. */ |
| 3312 | #include <Carbon/Carbon.h> |
| 3313 | _ACEOF |
| 3314 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3315 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3316 | ac_status=$? |
| 3317 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3318 | rm -f conftest.er1 |
| 3319 | cat conftest.err >&5 |
| 3320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3321 | (exit $ac_status); } >/dev/null; then |
| 3322 | if test -s conftest.err; then |
| 3323 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3324 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3325 | else |
| 3326 | ac_cpp_err= |
| 3327 | fi |
| 3328 | else |
| 3329 | ac_cpp_err=yes |
| 3330 | fi |
| 3331 | if test -z "$ac_cpp_err"; then |
| 3332 | ac_header_preproc=yes |
| 3333 | else |
| 3334 | echo "$as_me: failed program was:" >&5 |
| 3335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3336 | |
| 3337 | ac_header_preproc=no |
| 3338 | fi |
| 3339 | rm -f conftest.err conftest.$ac_ext |
| 3340 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3341 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3342 | |
| 3343 | # So? What about this header? |
| 3344 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3345 | yes:no: ) |
| 3346 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3347 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3348 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 3349 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} |
| 3350 | ac_header_preproc=yes |
| 3351 | ;; |
| 3352 | no:yes:* ) |
| 3353 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 3354 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 3355 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 3356 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 3357 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 3358 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 3359 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3360 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3361 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 3362 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 3363 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 3364 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 3365 | ( |
| 3366 | cat <<\_ASBOX |
| 3367 | ## ------------------------------------------ ## |
| 3368 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3369 | ## ------------------------------------------ ## |
| 3370 | _ASBOX |
| 3371 | ) | |
| 3372 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3373 | ;; |
| 3374 | esac |
| 3375 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3376 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3377 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3379 | else |
| 3380 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 3381 | fi |
| 3382 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3383 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3384 | |
| 3385 | fi |
| 3386 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
| 3387 | CARBON=yes |
| 3388 | fi |
| 3389 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3390 | |
| 3391 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 3392 | 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 Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3393 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3394 | fi |
| 3395 | fi |
| 3396 | fi |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 3397 | |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 3398 | if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 3399 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` |
| 3400 | fi |
| 3401 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3402 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3403 | echo "$as_me:$LINENO: result: no" >&5 |
| 3404 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3405 | fi |
| 3406 | |
| 3407 | |
| 3408 | |
| 3409 | |
| 3410 | have_local_include='' |
| 3411 | have_local_lib='' |
| 3412 | if test "$GCC" = yes; then |
| 3413 | echo 'void f(){}' > conftest.c |
| 3414 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'` |
| 3415 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'` |
| 3416 | rm -f conftest.c conftest.o |
| 3417 | fi |
| 3418 | if test -z "$have_local_lib" -a -d /usr/local/lib; then |
| 3419 | tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'` |
| 3420 | if test "$tt" = "$LDFLAGS"; then |
| 3421 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 3422 | fi |
| 3423 | fi |
| 3424 | if test -z "$have_local_include" -a -d /usr/local/include; then |
| 3425 | tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'` |
| 3426 | if test "$tt" = "$CPPFLAGS"; then |
| 3427 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 3428 | fi |
| 3429 | fi |
| 3430 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3431 | echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
| 3432 | echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6 |
| 3433 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3434 | # Check whether --with-vim-name or --without-vim-name was given. |
| 3435 | if test "${with_vim_name+set}" = set; then |
| 3436 | withval="$with_vim_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3437 | VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
| 3438 | echo "${ECHO_T}$VIMNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3439 | else |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 3440 | VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3441 | echo "${ECHO_T}Defaulting to $VIMNAME" >&6 |
| 3442 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3443 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3444 | echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
| 3445 | echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3446 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3447 | # Check whether --with-ex-name or --without-ex-name was given. |
| 3448 | if test "${with_ex_name+set}" = set; then |
| 3449 | withval="$with_ex_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3450 | EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5 |
| 3451 | echo "${ECHO_T}$EXNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3452 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3453 | EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
| 3454 | echo "${ECHO_T}Defaulting to ex" >&6 |
| 3455 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3456 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3457 | echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
| 3458 | echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3459 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3460 | # Check whether --with-view-name or --without-view-name was given. |
| 3461 | if test "${with_view_name+set}" = set; then |
| 3462 | withval="$with_view_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3463 | VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
| 3464 | echo "${ECHO_T}$VIEWNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3465 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3466 | VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
| 3467 | echo "${ECHO_T}Defaulting to view" >&6 |
| 3468 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3469 | |
| 3470 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3471 | echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
| 3472 | echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3473 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3474 | # Check whether --with-global-runtime or --without-global-runtime was given. |
| 3475 | if test "${with_global_runtime+set}" = set; then |
| 3476 | withval="$with_global_runtime" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3477 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 3478 | echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3479 | #define RUNTIME_GLOBAL "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3480 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3481 | |
| 3482 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3483 | echo "$as_me:$LINENO: result: no" >&5 |
| 3484 | echo "${ECHO_T}no" >&6 |
| 3485 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3486 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3487 | echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
| 3488 | echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3489 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3490 | # Check whether --with-modified-by or --without-modified-by was given. |
| 3491 | if test "${with_modified_by+set}" = set; then |
| 3492 | withval="$with_modified_by" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3493 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 3494 | echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3495 | #define MODIFIED_BY "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3496 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3497 | |
| 3498 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3499 | echo "$as_me:$LINENO: result: no" >&5 |
| 3500 | echo "${ECHO_T}no" >&6 |
| 3501 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3502 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3503 | echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
| 3504 | echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6 |
| 3505 | cat >conftest.$ac_ext <<_ACEOF |
| 3506 | /* confdefs.h. */ |
| 3507 | _ACEOF |
| 3508 | cat confdefs.h >>conftest.$ac_ext |
| 3509 | cat >>conftest.$ac_ext <<_ACEOF |
| 3510 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3511 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3512 | int |
| 3513 | main () |
| 3514 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3515 | /* TryCompile function for CharSet. |
| 3516 | Treat any failure as ASCII for compatibility with existing art. |
| 3517 | Use compile-time rather than run-time tests for cross-compiler |
| 3518 | tolerance. */ |
| 3519 | #if '0'!=240 |
| 3520 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3521 | #endif |
| 3522 | ; |
| 3523 | return 0; |
| 3524 | } |
| 3525 | _ACEOF |
| 3526 | rm -f conftest.$ac_objext |
| 3527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3528 | (eval $ac_compile) 2>conftest.er1 |
| 3529 | ac_status=$? |
| 3530 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3531 | rm -f conftest.er1 |
| 3532 | cat conftest.err >&5 |
| 3533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3534 | (exit $ac_status); } && |
| 3535 | { ac_try='test -z "$ac_c_werror_flag" |
| 3536 | || test ! -s conftest.err' |
| 3537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3538 | (eval $ac_try) 2>&5 |
| 3539 | ac_status=$? |
| 3540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3541 | (exit $ac_status); }; } && |
| 3542 | { ac_try='test -s conftest.$ac_objext' |
| 3543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3544 | (eval $ac_try) 2>&5 |
| 3545 | ac_status=$? |
| 3546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3547 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3548 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3549 | cf_cv_ebcdic=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3550 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3551 | echo "$as_me: failed program was:" >&5 |
| 3552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3553 | |
| 3554 | # TryCompile action if false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3555 | cf_cv_ebcdic=no |
| 3556 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3558 | # end of TryCompile ]) |
| 3559 | # end of CacheVal CvEbcdic |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3560 | echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
| 3561 | echo "${ECHO_T}$cf_cv_ebcdic" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3562 | case "$cf_cv_ebcdic" in #(vi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3563 | yes) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3564 | #define EBCDIC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3565 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3566 | |
| 3567 | line_break='"\\n"' |
| 3568 | ;; |
| 3569 | *) line_break='"\\012"';; |
| 3570 | esac |
| 3571 | |
| 3572 | |
| 3573 | if test "$cf_cv_ebcdic" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3574 | echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
| 3575 | echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3576 | case `uname` in |
| 3577 | OS/390) OS390Unix="yes"; |
| 3578 | if test "$CC" = "cc"; then |
| 3579 | ccm="$_CC_CCMODE" |
| 3580 | ccn="CC" |
| 3581 | else |
| 3582 | if test "$CC" = "c89"; then |
| 3583 | ccm="$_CC_C89MODE" |
| 3584 | ccn="C89" |
| 3585 | else |
| 3586 | ccm=1 |
| 3587 | fi |
| 3588 | fi |
| 3589 | if test "$ccm" != "1"; then |
| 3590 | echo "" |
| 3591 | echo "------------------------------------------" |
| 3592 | echo " On OS/390 Unix, the environment variable" |
| 3593 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 3594 | echo " Do:" |
| 3595 | echo " export _CC_${ccn}MODE=1" |
| 3596 | echo " and then call configure again." |
| 3597 | echo "------------------------------------------" |
| 3598 | exit 1 |
| 3599 | fi |
| 3600 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3601 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3602 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3603 | ;; |
| 3604 | *) OS390Unix="no"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3605 | echo "$as_me:$LINENO: result: no" >&5 |
| 3606 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3607 | ;; |
| 3608 | esac |
| 3609 | fi |
| 3610 | |
| 3611 | |
| 3612 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3613 | echo "$as_me:$LINENO: checking --with-features argument" >&5 |
| 3614 | echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6 |
| 3615 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3616 | # Check whether --with-features or --without-features was given. |
| 3617 | if test "${with_features+set}" = set; then |
| 3618 | withval="$with_features" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3619 | features="$withval"; echo "$as_me:$LINENO: result: $features" >&5 |
| 3620 | echo "${ECHO_T}$features" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3621 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3622 | features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
| 3623 | echo "${ECHO_T}Defaulting to normal" >&6 |
| 3624 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3625 | |
| 3626 | dovimdiff="" |
| 3627 | dogvimdiff="" |
| 3628 | case "$features" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3629 | tiny) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3630 | #define FEAT_TINY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3631 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3632 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3633 | small) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3634 | #define FEAT_SMALL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3635 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3636 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3637 | normal) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3638 | #define FEAT_NORMAL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3639 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3640 | dovimdiff="installvimdiff"; |
| 3641 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3642 | big) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3643 | #define FEAT_BIG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3644 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3645 | dovimdiff="installvimdiff"; |
| 3646 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3647 | huge) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3648 | #define FEAT_HUGE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3649 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3650 | dovimdiff="installvimdiff"; |
| 3651 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3652 | *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
| 3653 | echo "${ECHO_T}Sorry, $features is not supported" >&6 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3654 | esac |
| 3655 | |
| 3656 | |
| 3657 | |
| 3658 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3659 | echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
| 3660 | echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6 |
| 3661 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3662 | # Check whether --with-compiledby or --without-compiledby was given. |
| 3663 | if test "${with_compiledby+set}" = set; then |
| 3664 | withval="$with_compiledby" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3665 | compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5 |
| 3666 | echo "${ECHO_T}$withval" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3667 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3668 | compiledby=""; echo "$as_me:$LINENO: result: no" >&5 |
| 3669 | echo "${ECHO_T}no" >&6 |
| 3670 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3671 | |
| 3672 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3673 | echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
| 3674 | echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3675 | # Check whether --enable-xsmp or --disable-xsmp was given. |
| 3676 | if test "${enable_xsmp+set}" = set; then |
| 3677 | enableval="$enable_xsmp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3678 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3679 | else |
| 3680 | enable_xsmp="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3681 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3682 | |
| 3683 | if test "$enable_xsmp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3684 | echo "$as_me:$LINENO: result: no" >&5 |
| 3685 | echo "${ECHO_T}no" >&6 |
| 3686 | echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
| 3687 | echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3688 | # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given. |
| 3689 | if test "${enable_xsmp_interact+set}" = set; then |
| 3690 | enableval="$enable_xsmp_interact" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3691 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3692 | else |
| 3693 | enable_xsmp_interact="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3694 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3695 | if test "$enable_xsmp_interact" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3696 | echo "$as_me:$LINENO: result: no" >&5 |
| 3697 | echo "${ECHO_T}no" >&6 |
| 3698 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3699 | #define USE_XSMP_INTERACT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3700 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3701 | |
| 3702 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3703 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3704 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3705 | fi |
| 3706 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3707 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3708 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3709 | fi |
| 3710 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3711 | echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
| 3712 | echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3713 | # Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given. |
| 3714 | if test "${enable_mzschemeinterp+set}" = set; then |
| 3715 | enableval="$enable_mzschemeinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3716 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3717 | else |
| 3718 | enable_mzschemeinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3719 | fi; |
| 3720 | echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
| 3721 | echo "${ECHO_T}$enable_mzschemeinterp" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3722 | |
| 3723 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3724 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3725 | |
| 3726 | echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
| 3727 | echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6 |
| 3728 | |
| 3729 | # Check whether --with-plthome or --without-plthome was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3730 | if test "${with_plthome+set}" = set; then |
| 3731 | withval="$with_plthome" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3732 | with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5 |
| 3733 | echo "${ECHO_T}$with_plthome" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3734 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3735 | with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3736 | echo "${ECHO_T}\"no\"" >&6 |
| 3737 | fi; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3738 | |
| 3739 | if test "X$with_plthome" != "X"; then |
| 3740 | vi_cv_path_mzscheme_pfx="$with_plthome" |
| 3741 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3742 | echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
| 3743 | echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3744 | if test "X$PLTHOME" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3745 | echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
| 3746 | echo "${ECHO_T}\"$PLTHOME\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3747 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
| 3748 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3749 | echo "$as_me:$LINENO: result: \"not set\"" >&5 |
| 3750 | echo "${ECHO_T}\"not set\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3751 | # Extract the first word of "mzscheme", so it can be a program name with args. |
| 3752 | set dummy mzscheme; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3753 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3754 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3755 | if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
| 3756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3757 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3758 | case $vi_cv_path_mzscheme in |
| 3759 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3760 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 3761 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3762 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3764 | for as_dir in $PATH |
| 3765 | do |
| 3766 | IFS=$as_save_IFS |
| 3767 | test -z "$as_dir" && as_dir=. |
| 3768 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3769 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3770 | ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" |
| 3771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3772 | break 2 |
| 3773 | fi |
| 3774 | done |
| 3775 | done |
| 3776 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3777 | ;; |
| 3778 | esac |
| 3779 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3780 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
| 3781 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3782 | if test -n "$vi_cv_path_mzscheme"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3783 | echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
| 3784 | echo "${ECHO_T}$vi_cv_path_mzscheme" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3785 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3786 | echo "$as_me:$LINENO: result: no" >&5 |
| 3787 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3788 | fi |
| 3789 | |
| 3790 | |
| 3791 | if test "X$vi_cv_path_mzscheme" != "X"; then |
| 3792 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 3793 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 3794 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 3795 | fi |
| 3796 | fi |
| 3797 | |
| 3798 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3799 | echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
| 3800 | echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6 |
| 3801 | if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
| 3802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3803 | else |
| 3804 | vi_cv_path_mzscheme_pfx=` |
| 3805 | ${vi_cv_path_mzscheme} -evm \ |
| 3806 | "(display (simplify-path \ |
| 3807 | (build-path (call-with-values \ |
| 3808 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3809 | (lambda (base name must-be-dir?) base)) (quote up))))"` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3810 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3811 | echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 3812 | echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3813 | vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'` |
| 3814 | fi |
| 3815 | fi |
| 3816 | fi |
| 3817 | |
| 3818 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3819 | echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 3820 | echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3821 | if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3822 | echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 3823 | echo "${ECHO_T}\"yes\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3824 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3825 | echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3826 | echo "${ECHO_T}\"no\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3827 | vi_cv_path_mzscheme_pfx= |
| 3828 | fi |
| 3829 | fi |
| 3830 | |
| 3831 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
| 3832 | if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then |
| 3833 | MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a" |
| 3834 | else |
| 3835 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 3836 | if test "$GCC" = yes; then |
| 3837 | MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 21cf823 | 2004-07-16 20:18:37 +0000 | [diff] [blame] | 3838 | elif test "`(uname) 2>/dev/null`" = SunOS && |
| 3839 | uname -r | grep '^5' >/dev/null; then |
| 3840 | MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 3841 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3842 | fi |
| 3843 | MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \ |
| 3844 | -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'" |
| 3845 | MZSCHEME_SRC="if_mzsch.c" |
| 3846 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 3847 | MZSCHEME_PRO="if_mzsch.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3848 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3849 | #define FEAT_MZSCHEME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3850 | _ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3851 | |
| 3852 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3853 | |
| 3854 | |
| 3855 | |
| 3856 | |
| 3857 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3858 | fi |
| 3859 | |
| 3860 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3861 | echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
| 3862 | echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3863 | # Check whether --enable-perlinterp or --disable-perlinterp was given. |
| 3864 | if test "${enable_perlinterp+set}" = set; then |
| 3865 | enableval="$enable_perlinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3866 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3867 | else |
| 3868 | enable_perlinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3869 | fi; |
| 3870 | echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
| 3871 | echo "${ECHO_T}$enable_perlinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3872 | if test "$enable_perlinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3873 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3874 | # Extract the first word of "perl", so it can be a program name with args. |
| 3875 | set dummy perl; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3876 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3878 | if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
| 3879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3880 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3881 | case $vi_cv_path_perl in |
| 3882 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3883 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 3884 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3885 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3887 | for as_dir in $PATH |
| 3888 | do |
| 3889 | IFS=$as_save_IFS |
| 3890 | test -z "$as_dir" && as_dir=. |
| 3891 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3892 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3893 | ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" |
| 3894 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3895 | break 2 |
| 3896 | fi |
| 3897 | done |
| 3898 | done |
| 3899 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3900 | ;; |
| 3901 | esac |
| 3902 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3903 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
| 3904 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3905 | if test -n "$vi_cv_path_perl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3906 | echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
| 3907 | echo "${ECHO_T}$vi_cv_path_perl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3908 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3909 | echo "$as_me:$LINENO: result: no" >&5 |
| 3910 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3911 | fi |
| 3912 | |
| 3913 | if test "X$vi_cv_path_perl" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3914 | echo "$as_me:$LINENO: checking Perl version" >&5 |
| 3915 | echo $ECHO_N "checking Perl version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3916 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 3917 | eval `$vi_cv_path_perl -V:usethreads` |
| 3918 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 3919 | badthreads=no |
| 3920 | else |
| 3921 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 3922 | eval `$vi_cv_path_perl -V:use5005threads` |
| 3923 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 3924 | badthreads=no |
| 3925 | else |
| 3926 | badthreads=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3927 | echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 3928 | echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3929 | fi |
| 3930 | else |
| 3931 | badthreads=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3932 | echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 3933 | echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3934 | fi |
| 3935 | fi |
| 3936 | if test $badthreads = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3937 | echo "$as_me:$LINENO: result: OK" >&5 |
| 3938 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3939 | eval `$vi_cv_path_perl -V:shrpenv` |
| 3940 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 3941 | shrpenv="" |
| 3942 | fi |
| 3943 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3944 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3945 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 3946 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 3947 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 3948 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 3949 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 3950 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 3951 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 3952 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3953 | echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
| 3954 | echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3955 | cflags_save=$CFLAGS |
| 3956 | libs_save=$LIBS |
| 3957 | ldflags_save=$LDFLAGS |
| 3958 | CFLAGS="$CFLAGS $perlcppflags" |
| 3959 | LIBS="$LIBS $perllibs" |
| 3960 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3961 | cat >conftest.$ac_ext <<_ACEOF |
| 3962 | /* confdefs.h. */ |
| 3963 | _ACEOF |
| 3964 | cat confdefs.h >>conftest.$ac_ext |
| 3965 | cat >>conftest.$ac_ext <<_ACEOF |
| 3966 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3967 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3968 | int |
| 3969 | main () |
| 3970 | { |
| 3971 | |
| 3972 | ; |
| 3973 | return 0; |
| 3974 | } |
| 3975 | _ACEOF |
| 3976 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3978 | (eval $ac_link) 2>conftest.er1 |
| 3979 | ac_status=$? |
| 3980 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3981 | rm -f conftest.er1 |
| 3982 | cat conftest.err >&5 |
| 3983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3984 | (exit $ac_status); } && |
| 3985 | { ac_try='test -z "$ac_c_werror_flag" |
| 3986 | || test ! -s conftest.err' |
| 3987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3988 | (eval $ac_try) 2>&5 |
| 3989 | ac_status=$? |
| 3990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3991 | (exit $ac_status); }; } && |
| 3992 | { ac_try='test -s conftest$ac_exeext' |
| 3993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3994 | (eval $ac_try) 2>&5 |
| 3995 | ac_status=$? |
| 3996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3997 | (exit $ac_status); }; }; then |
| 3998 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3999 | echo "${ECHO_T}yes" >&6; perl_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4000 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4001 | echo "$as_me: failed program was:" >&5 |
| 4002 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4003 | |
| 4004 | echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 |
| 4005 | echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4006 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4007 | rm -f conftest.err conftest.$ac_objext \ |
| 4008 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4009 | CFLAGS=$cflags_save |
| 4010 | LIBS=$libs_save |
| 4011 | LDFLAGS=$ldflags_save |
| 4012 | if test $perl_ok = yes; then |
| 4013 | if test "X$perlcppflags" != "X"; then |
| 4014 | PERL_CFLAGS="$perlcppflags" |
| 4015 | fi |
| 4016 | if test "X$perlldflags" != "X"; then |
| 4017 | LDFLAGS="$perlldflags $LDFLAGS" |
| 4018 | fi |
| 4019 | PERL_LIBS=$perllibs |
| 4020 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 4021 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 4022 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4023 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4024 | #define FEAT_PERL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4025 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4026 | |
| 4027 | fi |
| 4028 | fi |
| 4029 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4030 | echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 4031 | echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4032 | fi |
| 4033 | fi |
| 4034 | |
| 4035 | if test "x$MACOSX" = "xyes"; then |
| 4036 | dir=/System/Library/Perl |
| 4037 | darwindir=$dir/darwin |
| 4038 | if test -d $darwindir; then |
| 4039 | PERL=/usr/bin/perl |
| 4040 | else |
| 4041 | dir=/System/Library/Perl/5.8.1 |
| 4042 | darwindir=$dir/darwin-thread-multi-2level |
| 4043 | if test -d $darwindir; then |
| 4044 | PERL=/usr/bin/perl |
| 4045 | fi |
| 4046 | fi |
| 4047 | if test -n "$PERL"; then |
| 4048 | PERL_DIR="$dir" |
| 4049 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 4050 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 4051 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 4052 | fi |
| 4053 | fi |
| 4054 | fi |
| 4055 | |
| 4056 | |
| 4057 | |
| 4058 | |
| 4059 | |
| 4060 | |
| 4061 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4062 | echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
| 4063 | echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4064 | # Check whether --enable-pythoninterp or --disable-pythoninterp was given. |
| 4065 | if test "${enable_pythoninterp+set}" = set; then |
| 4066 | enableval="$enable_pythoninterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4067 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4068 | else |
| 4069 | enable_pythoninterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4070 | fi; |
| 4071 | echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
| 4072 | echo "${ECHO_T}$enable_pythoninterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4073 | if test "$enable_pythoninterp" = "yes"; then |
| 4074 | # Extract the first word of "python", so it can be a program name with args. |
| 4075 | set dummy python; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4076 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4078 | if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
| 4079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4080 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4081 | case $vi_cv_path_python in |
| 4082 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4083 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 4084 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4085 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4087 | for as_dir in $PATH |
| 4088 | do |
| 4089 | IFS=$as_save_IFS |
| 4090 | test -z "$as_dir" && as_dir=. |
| 4091 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4092 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4093 | ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" |
| 4094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4095 | break 2 |
| 4096 | fi |
| 4097 | done |
| 4098 | done |
| 4099 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4100 | ;; |
| 4101 | esac |
| 4102 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4103 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
| 4104 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4105 | if test -n "$vi_cv_path_python"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4106 | echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
| 4107 | echo "${ECHO_T}$vi_cv_path_python" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4108 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4109 | echo "$as_me:$LINENO: result: no" >&5 |
| 4110 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4111 | fi |
| 4112 | |
| 4113 | if test "X$vi_cv_path_python" != "X"; then |
| 4114 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4115 | echo "$as_me:$LINENO: checking Python version" >&5 |
| 4116 | echo $ECHO_N "checking Python version... $ECHO_C" >&6 |
| 4117 | if test "${vi_cv_var_python_version+set}" = set; then |
| 4118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4119 | else |
| 4120 | vi_cv_var_python_version=` |
| 4121 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4122 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4123 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4124 | echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 |
| 4125 | echo "${ECHO_T}$vi_cv_var_python_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4126 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4127 | echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
| 4128 | echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4129 | if ${vi_cv_path_python} -c \ |
| 4130 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 4131 | then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4132 | echo "$as_me:$LINENO: result: yep" >&5 |
| 4133 | echo "${ECHO_T}yep" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4134 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4135 | echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
| 4136 | echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6 |
| 4137 | if test "${vi_cv_path_python_pfx+set}" = set; then |
| 4138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4139 | else |
| 4140 | vi_cv_path_python_pfx=` |
| 4141 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4142 | "import sys; print sys.prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4143 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4144 | echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
| 4145 | echo "${ECHO_T}$vi_cv_path_python_pfx" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4146 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4147 | echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
| 4148 | echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6 |
| 4149 | if test "${vi_cv_path_python_epfx+set}" = set; then |
| 4150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4151 | else |
| 4152 | vi_cv_path_python_epfx=` |
| 4153 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4154 | "import sys; print sys.exec_prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4155 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4156 | echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
| 4157 | echo "${ECHO_T}$vi_cv_path_python_epfx" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4158 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4159 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4160 | if test "${vi_cv_path_pythonpath+set}" = set; then |
| 4161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4162 | else |
| 4163 | vi_cv_path_pythonpath=` |
| 4164 | unset PYTHONPATH; |
| 4165 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4166 | "import sys, string; print string.join(sys.path,':')"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4167 | fi |
| 4168 | |
| 4169 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4170 | |
| 4171 | |
| 4172 | # Check whether --with-python-config-dir or --without-python-config-dir was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4173 | if test "${with_python_config_dir+set}" = set; then |
| 4174 | withval="$with_python_config_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4175 | vi_cv_path_python_conf="${withval}" |
| 4176 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4177 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4178 | echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
| 4179 | echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6 |
| 4180 | if test "${vi_cv_path_python_conf+set}" = set; then |
| 4181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4182 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4183 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4184 | vi_cv_path_python_conf= |
| 4185 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 4186 | for subdir in lib share; do |
| 4187 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 4188 | if test -d "$d" && test -f "$d/config.c"; then |
| 4189 | vi_cv_path_python_conf="$d" |
| 4190 | fi |
| 4191 | done |
| 4192 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4193 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4194 | fi |
| 4195 | echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
| 4196 | echo "${ECHO_T}$vi_cv_path_python_conf" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4197 | |
| 4198 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 4199 | |
| 4200 | if test "X$PYTHON_CONFDIR" = "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4201 | echo "$as_me:$LINENO: result: can't find it!" >&5 |
| 4202 | echo "${ECHO_T}can't find it!" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4203 | else |
| 4204 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4205 | if test "${vi_cv_path_python_plibs+set}" = set; then |
| 4206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4207 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4208 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4209 | tmp_mkf="/tmp/Makefile-conf$$" |
| 4210 | cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} |
| 4211 | __: |
| 4212 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 4213 | @echo "python_LIBS='$(LIBS)'" |
| 4214 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 4215 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 4216 | eof |
| 4217 | eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" |
| 4218 | rm -f ${tmp_mkf} |
| 4219 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 4220 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 4221 | vi_cv_path_python_plibs="-framework Python" |
| 4222 | else |
| 4223 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 4224 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 4225 | else |
| 4226 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 4227 | fi |
| 4228 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 4229 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 4230 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4231 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4232 | fi |
| 4233 | |
| 4234 | |
| 4235 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 4236 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 4237 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 4238 | else |
| 4239 | 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}" |
| 4240 | fi |
| 4241 | PYTHON_SRC="if_python.c" |
| 4242 | if test "x$MACOSX" = "xyes"; then |
| 4243 | PYTHON_OBJ="objects/if_python.o" |
| 4244 | else |
| 4245 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 4246 | fi |
| 4247 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 4248 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 4249 | fi |
| 4250 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 4251 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4252 | echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
| 4253 | echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4254 | threadsafe_flag= |
| 4255 | thread_lib= |
| 4256 | if test "x$MACOSX" != "xyes"; then |
| 4257 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 4258 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 4259 | threadsafe_flag="-D_THREAD_SAFE" |
| 4260 | thread_lib="-pthread" |
| 4261 | fi |
| 4262 | fi |
| 4263 | libs_save_old=$LIBS |
| 4264 | if test -n "$threadsafe_flag"; then |
| 4265 | cflags_save=$CFLAGS |
| 4266 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 4267 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4268 | cat >conftest.$ac_ext <<_ACEOF |
| 4269 | /* confdefs.h. */ |
| 4270 | _ACEOF |
| 4271 | cat confdefs.h >>conftest.$ac_ext |
| 4272 | cat >>conftest.$ac_ext <<_ACEOF |
| 4273 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4274 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4275 | int |
| 4276 | main () |
| 4277 | { |
| 4278 | |
| 4279 | ; |
| 4280 | return 0; |
| 4281 | } |
| 4282 | _ACEOF |
| 4283 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4285 | (eval $ac_link) 2>conftest.er1 |
| 4286 | ac_status=$? |
| 4287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4288 | rm -f conftest.er1 |
| 4289 | cat conftest.err >&5 |
| 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4291 | (exit $ac_status); } && |
| 4292 | { ac_try='test -z "$ac_c_werror_flag" |
| 4293 | || test ! -s conftest.err' |
| 4294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4295 | (eval $ac_try) 2>&5 |
| 4296 | ac_status=$? |
| 4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4298 | (exit $ac_status); }; } && |
| 4299 | { ac_try='test -s conftest$ac_exeext' |
| 4300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4301 | (eval $ac_try) 2>&5 |
| 4302 | ac_status=$? |
| 4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4304 | (exit $ac_status); }; }; then |
| 4305 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4306 | echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4307 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4308 | echo "$as_me: failed program was:" >&5 |
| 4309 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4310 | |
| 4311 | echo "$as_me:$LINENO: result: no" >&5 |
| 4312 | echo "${ECHO_T}no" >&6; LIBS=$libs_save_old |
| 4313 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4314 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4315 | rm -f conftest.err conftest.$ac_objext \ |
| 4316 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4317 | CFLAGS=$cflags_save |
| 4318 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4319 | echo "$as_me:$LINENO: result: no" >&5 |
| 4320 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4321 | fi |
| 4322 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4323 | echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
| 4324 | echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4325 | cflags_save=$CFLAGS |
| 4326 | libs_save=$LIBS |
| 4327 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 4328 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4329 | cat >conftest.$ac_ext <<_ACEOF |
| 4330 | /* confdefs.h. */ |
| 4331 | _ACEOF |
| 4332 | cat confdefs.h >>conftest.$ac_ext |
| 4333 | cat >>conftest.$ac_ext <<_ACEOF |
| 4334 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4335 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4336 | int |
| 4337 | main () |
| 4338 | { |
| 4339 | |
| 4340 | ; |
| 4341 | return 0; |
| 4342 | } |
| 4343 | _ACEOF |
| 4344 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4346 | (eval $ac_link) 2>conftest.er1 |
| 4347 | ac_status=$? |
| 4348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4349 | rm -f conftest.er1 |
| 4350 | cat conftest.err >&5 |
| 4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4352 | (exit $ac_status); } && |
| 4353 | { ac_try='test -z "$ac_c_werror_flag" |
| 4354 | || test ! -s conftest.err' |
| 4355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4356 | (eval $ac_try) 2>&5 |
| 4357 | ac_status=$? |
| 4358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4359 | (exit $ac_status); }; } && |
| 4360 | { ac_try='test -s conftest$ac_exeext' |
| 4361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4362 | (eval $ac_try) 2>&5 |
| 4363 | ac_status=$? |
| 4364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4365 | (exit $ac_status); }; }; then |
| 4366 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4367 | echo "${ECHO_T}yes" >&6; python_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4368 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4369 | echo "$as_me: failed program was:" >&5 |
| 4370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4371 | |
| 4372 | echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 |
| 4373 | echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4374 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4375 | rm -f conftest.err conftest.$ac_objext \ |
| 4376 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4377 | CFLAGS=$cflags_save |
| 4378 | LIBS=$libs_save |
| 4379 | if test $python_ok = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4380 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4381 | #define FEAT_PYTHON 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4382 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4383 | |
| 4384 | else |
| 4385 | LIBS=$libs_save_old |
| 4386 | PYTHON_SRC= |
| 4387 | PYTHON_OBJ= |
| 4388 | PYTHON_LIBS= |
| 4389 | PYTHON_CFLAGS= |
| 4390 | fi |
| 4391 | |
| 4392 | fi |
| 4393 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4394 | echo "$as_me:$LINENO: result: too old" >&5 |
| 4395 | echo "${ECHO_T}too old" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4396 | fi |
| 4397 | fi |
| 4398 | fi |
| 4399 | |
| 4400 | |
| 4401 | |
| 4402 | |
| 4403 | |
| 4404 | |
| 4405 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4406 | echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
| 4407 | echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4408 | # Check whether --enable-tclinterp or --disable-tclinterp was given. |
| 4409 | if test "${enable_tclinterp+set}" = set; then |
| 4410 | enableval="$enable_tclinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4411 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4412 | else |
| 4413 | enable_tclinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4414 | fi; |
| 4415 | echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
| 4416 | echo "${ECHO_T}$enable_tclinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4417 | |
| 4418 | if test "$enable_tclinterp" = "yes"; then |
| 4419 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4420 | echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
| 4421 | echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6 |
| 4422 | |
| 4423 | # Check whether --with-tclsh or --without-tclsh was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4424 | if test "${with_tclsh+set}" = set; then |
| 4425 | withval="$with_tclsh" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4426 | tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
| 4427 | echo "${ECHO_T}$tclsh_name" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4428 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4429 | tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5 |
| 4430 | echo "${ECHO_T}no" >&6 |
| 4431 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4432 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4433 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4434 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4435 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4436 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4438 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4439 | case $vi_cv_path_tcl in |
| 4440 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4441 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4442 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4443 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4444 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4445 | for as_dir in $PATH |
| 4446 | do |
| 4447 | IFS=$as_save_IFS |
| 4448 | test -z "$as_dir" && as_dir=. |
| 4449 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4450 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4451 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4452 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4453 | break 2 |
| 4454 | fi |
| 4455 | done |
| 4456 | done |
| 4457 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4458 | ;; |
| 4459 | esac |
| 4460 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4461 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4462 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4463 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4464 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4465 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4466 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4467 | echo "$as_me:$LINENO: result: no" >&5 |
| 4468 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4469 | fi |
| 4470 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4471 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4472 | |
| 4473 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4474 | tclsh_name="tclsh8.2" |
| 4475 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4476 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4477 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4479 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4481 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4482 | case $vi_cv_path_tcl in |
| 4483 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4484 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4485 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4486 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4488 | for as_dir in $PATH |
| 4489 | do |
| 4490 | IFS=$as_save_IFS |
| 4491 | test -z "$as_dir" && as_dir=. |
| 4492 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4493 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4494 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4496 | break 2 |
| 4497 | fi |
| 4498 | done |
| 4499 | done |
| 4500 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4501 | ;; |
| 4502 | esac |
| 4503 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4504 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4505 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4506 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4507 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4508 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4509 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4510 | echo "$as_me:$LINENO: result: no" >&5 |
| 4511 | echo "${ECHO_T}no" >&6 |
| 4512 | fi |
| 4513 | |
| 4514 | fi |
| 4515 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 4516 | tclsh_name="tclsh8.0" |
| 4517 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4518 | set dummy $tclsh_name; ac_word=$2 |
| 4519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4521 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4523 | else |
| 4524 | case $vi_cv_path_tcl in |
| 4525 | [\\/]* | ?:[\\/]*) |
| 4526 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4527 | ;; |
| 4528 | *) |
| 4529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4530 | for as_dir in $PATH |
| 4531 | do |
| 4532 | IFS=$as_save_IFS |
| 4533 | test -z "$as_dir" && as_dir=. |
| 4534 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4535 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4536 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4538 | break 2 |
| 4539 | fi |
| 4540 | done |
| 4541 | done |
| 4542 | |
| 4543 | ;; |
| 4544 | esac |
| 4545 | fi |
| 4546 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4547 | |
| 4548 | if test -n "$vi_cv_path_tcl"; then |
| 4549 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4550 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
| 4551 | else |
| 4552 | echo "$as_me:$LINENO: result: no" >&5 |
| 4553 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4554 | fi |
| 4555 | |
| 4556 | fi |
| 4557 | if test "X$vi_cv_path_tcl" = "X"; then |
| 4558 | tclsh_name="tclsh" |
| 4559 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4560 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4563 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4565 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4566 | case $vi_cv_path_tcl in |
| 4567 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4568 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4569 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4570 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4572 | for as_dir in $PATH |
| 4573 | do |
| 4574 | IFS=$as_save_IFS |
| 4575 | test -z "$as_dir" && as_dir=. |
| 4576 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4577 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4578 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4579 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4580 | break 2 |
| 4581 | fi |
| 4582 | done |
| 4583 | done |
| 4584 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4585 | ;; |
| 4586 | esac |
| 4587 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4588 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4589 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4590 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4591 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4592 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4593 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4594 | echo "$as_me:$LINENO: result: no" >&5 |
| 4595 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4596 | fi |
| 4597 | |
| 4598 | fi |
| 4599 | if test "X$vi_cv_path_tcl" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4600 | echo "$as_me:$LINENO: checking Tcl version" >&5 |
| 4601 | echo $ECHO_N "checking Tcl version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4602 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 4603 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4604 | echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
| 4605 | echo "${ECHO_T}$tclver - OK" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4606 | 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 -` |
| 4607 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4608 | echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
| 4609 | echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4610 | if test "x$MACOSX" != "xyes"; then |
Bram Moolenaar | 47136d7 | 2004-10-12 20:02:24 +0000 | [diff] [blame] | 4611 | tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4612 | else |
| 4613 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 4614 | fi |
| 4615 | for try in $tclinc; do |
| 4616 | if test -f "$try/tcl.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4617 | echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
| 4618 | echo "${ECHO_T}$try/tcl.h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4619 | TCL_INC=$try |
| 4620 | break |
| 4621 | fi |
| 4622 | done |
| 4623 | if test -z "$TCL_INC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4624 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4625 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4626 | SKIP_TCL=YES |
| 4627 | fi |
| 4628 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4629 | echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
| 4630 | echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4631 | if test "x$MACOSX" != "xyes"; then |
| 4632 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
| 4633 | else |
| 4634 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 4635 | fi |
| 4636 | for try in $tclcnf; do |
| 4637 | if test -f $try/tclConfig.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4638 | echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
| 4639 | echo "${ECHO_T}$try/tclConfig.sh" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4640 | . $try/tclConfig.sh |
| 4641 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 4642 | TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\\\\ /\\\\X/g' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr '\012' ' ' | sed -e 's/\\\\X/\\\\ /g'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4643 | break |
| 4644 | fi |
| 4645 | done |
| 4646 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4647 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4648 | echo "${ECHO_T}<not found>" >&6 |
| 4649 | echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
| 4650 | echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4651 | tcllib=`echo $tclinc | sed s/include/lib/g` |
| 4652 | for ext in .so .a ; do |
| 4653 | for ver in "" $tclver ; do |
| 4654 | for try in $tcllib ; do |
| 4655 | trylib=tcl$ver$ext |
| 4656 | if test -f $try/lib$trylib ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4657 | echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
| 4658 | echo "${ECHO_T}$try/lib$trylib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4659 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 4660 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 4661 | uname -r | grep '^5' >/dev/null; then |
| 4662 | TCL_LIBS="$TCL_LIBS -R $try" |
| 4663 | fi |
| 4664 | break 3 |
| 4665 | fi |
| 4666 | done |
| 4667 | done |
| 4668 | done |
| 4669 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4670 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4671 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4672 | SKIP_TCL=YES |
| 4673 | fi |
| 4674 | fi |
| 4675 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4676 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4677 | #define FEAT_TCL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4678 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4679 | |
| 4680 | TCL_SRC=if_tcl.c |
| 4681 | TCL_OBJ=objects/if_tcl.o |
| 4682 | TCL_PRO=if_tcl.pro |
| 4683 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 4684 | fi |
| 4685 | fi |
| 4686 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4687 | echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
| 4688 | echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4689 | fi |
| 4690 | fi |
| 4691 | fi |
| 4692 | |
| 4693 | |
| 4694 | |
| 4695 | |
| 4696 | |
| 4697 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4698 | echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
| 4699 | echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4700 | # Check whether --enable-rubyinterp or --disable-rubyinterp was given. |
| 4701 | if test "${enable_rubyinterp+set}" = set; then |
| 4702 | enableval="$enable_rubyinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4703 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4704 | else |
| 4705 | enable_rubyinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4706 | fi; |
| 4707 | echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
| 4708 | echo "${ECHO_T}$enable_rubyinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4709 | if test "$enable_rubyinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4710 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4711 | # Extract the first word of "ruby", so it can be a program name with args. |
| 4712 | set dummy ruby; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4713 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4714 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4715 | if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
| 4716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4717 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4718 | case $vi_cv_path_ruby in |
| 4719 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4720 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 4721 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4722 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4724 | for as_dir in $PATH |
| 4725 | do |
| 4726 | IFS=$as_save_IFS |
| 4727 | test -z "$as_dir" && as_dir=. |
| 4728 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4729 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4730 | ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" |
| 4731 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4732 | break 2 |
| 4733 | fi |
| 4734 | done |
| 4735 | done |
| 4736 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4737 | ;; |
| 4738 | esac |
| 4739 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4740 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
| 4741 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4742 | if test -n "$vi_cv_path_ruby"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4743 | echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
| 4744 | echo "${ECHO_T}$vi_cv_path_ruby" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4745 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4746 | echo "$as_me:$LINENO: result: no" >&5 |
| 4747 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4748 | fi |
| 4749 | |
| 4750 | if test "X$vi_cv_path_ruby" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4751 | echo "$as_me:$LINENO: checking Ruby version" >&5 |
| 4752 | echo $ECHO_N "checking Ruby version... $ECHO_C" >&6 |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 4753 | if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4754 | echo "$as_me:$LINENO: result: OK" >&5 |
| 4755 | echo "${ECHO_T}OK" >&6 |
| 4756 | echo "$as_me:$LINENO: checking Ruby header files" >&5 |
| 4757 | echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4758 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
| 4759 | if test "X$rubyhdrdir" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4760 | echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
| 4761 | echo "${ECHO_T}$rubyhdrdir" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4762 | RUBY_CFLAGS="-I$rubyhdrdir" |
| 4763 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 4764 | if test "X$rubylibs" != "X"; then |
| 4765 | RUBY_LIBS="$rubylibs" |
| 4766 | fi |
| 4767 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 4768 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 4769 | librubyarg="$rubyhdrdir/$librubyarg" |
| 4770 | else |
| 4771 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 4772 | if test -f "$rubylibdir/$librubyarg"; then |
| 4773 | librubyarg="$rubylibdir/$librubyarg" |
| 4774 | elif test "$librubyarg" = "libruby.a"; then |
| 4775 | librubyarg="-lruby" |
| 4776 | else |
| 4777 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 4778 | fi |
| 4779 | fi |
| 4780 | |
| 4781 | if test "X$librubyarg" != "X"; then |
| 4782 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 4783 | fi |
| 4784 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 4785 | if test "X$rubyldflags" != "X"; then |
| 4786 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 4787 | fi |
| 4788 | RUBY_SRC="if_ruby.c" |
| 4789 | RUBY_OBJ="objects/if_ruby.o" |
| 4790 | RUBY_PRO="if_ruby.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4791 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4792 | #define FEAT_RUBY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4793 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4794 | |
| 4795 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4796 | echo "$as_me:$LINENO: result: not found" >&5 |
| 4797 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4798 | fi |
| 4799 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4800 | echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
| 4801 | echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4802 | fi |
| 4803 | fi |
| 4804 | fi |
| 4805 | |
| 4806 | |
| 4807 | |
| 4808 | |
| 4809 | |
| 4810 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4811 | echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
| 4812 | echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4813 | # Check whether --enable-cscope or --disable-cscope was given. |
| 4814 | if test "${enable_cscope+set}" = set; then |
| 4815 | enableval="$enable_cscope" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4816 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4817 | else |
| 4818 | enable_cscope="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4819 | fi; |
| 4820 | echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
| 4821 | echo "${ECHO_T}$enable_cscope" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4822 | if test "$enable_cscope" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4823 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4824 | #define FEAT_CSCOPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4825 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4826 | |
| 4827 | fi |
| 4828 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4829 | echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
| 4830 | echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4831 | # Check whether --enable-workshop or --disable-workshop was given. |
| 4832 | if test "${enable_workshop+set}" = set; then |
| 4833 | enableval="$enable_workshop" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4834 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4835 | else |
| 4836 | enable_workshop="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4837 | fi; |
| 4838 | echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
| 4839 | echo "${ECHO_T}$enable_workshop" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4840 | if test "$enable_workshop" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4841 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4842 | #define FEAT_SUN_WORKSHOP 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4843 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4844 | |
| 4845 | WORKSHOP_SRC="workshop.c integration.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4846 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4847 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4848 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4849 | if test "${enable_gui-xxx}" = xxx; then |
| 4850 | enable_gui=motif |
| 4851 | fi |
| 4852 | fi |
| 4853 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4854 | echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
| 4855 | echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4856 | # Check whether --enable-netbeans or --disable-netbeans was given. |
| 4857 | if test "${enable_netbeans+set}" = set; then |
| 4858 | enableval="$enable_netbeans" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4859 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4860 | else |
| 4861 | enable_netbeans="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4862 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4863 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4864 | echo "$as_me:$LINENO: result: no" >&5 |
| 4865 | echo "${ECHO_T}no" >&6 |
| 4866 | |
| 4867 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 4868 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 4869 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 4870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4871 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4872 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4873 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4874 | cat >conftest.$ac_ext <<_ACEOF |
| 4875 | /* confdefs.h. */ |
| 4876 | _ACEOF |
| 4877 | cat confdefs.h >>conftest.$ac_ext |
| 4878 | cat >>conftest.$ac_ext <<_ACEOF |
| 4879 | /* end confdefs.h. */ |
| 4880 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4881 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4882 | #ifdef __cplusplus |
| 4883 | extern "C" |
| 4884 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4885 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4886 | builtin and then its argument prototype would still apply. */ |
| 4887 | char socket (); |
| 4888 | int |
| 4889 | main () |
| 4890 | { |
| 4891 | socket (); |
| 4892 | ; |
| 4893 | return 0; |
| 4894 | } |
| 4895 | _ACEOF |
| 4896 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4898 | (eval $ac_link) 2>conftest.er1 |
| 4899 | ac_status=$? |
| 4900 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4901 | rm -f conftest.er1 |
| 4902 | cat conftest.err >&5 |
| 4903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4904 | (exit $ac_status); } && |
| 4905 | { ac_try='test -z "$ac_c_werror_flag" |
| 4906 | || test ! -s conftest.err' |
| 4907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4908 | (eval $ac_try) 2>&5 |
| 4909 | ac_status=$? |
| 4910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4911 | (exit $ac_status); }; } && |
| 4912 | { ac_try='test -s conftest$ac_exeext' |
| 4913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4914 | (eval $ac_try) 2>&5 |
| 4915 | ac_status=$? |
| 4916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4917 | (exit $ac_status); }; }; then |
| 4918 | ac_cv_lib_socket_socket=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4919 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4920 | echo "$as_me: failed program was:" >&5 |
| 4921 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4922 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4923 | ac_cv_lib_socket_socket=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4924 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4925 | rm -f conftest.err conftest.$ac_objext \ |
| 4926 | conftest$ac_exeext conftest.$ac_ext |
| 4927 | LIBS=$ac_check_lib_save_LIBS |
| 4928 | fi |
| 4929 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 4930 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 4931 | if test $ac_cv_lib_socket_socket = yes; then |
| 4932 | cat >>confdefs.h <<_ACEOF |
| 4933 | #define HAVE_LIBSOCKET 1 |
| 4934 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4935 | |
| 4936 | LIBS="-lsocket $LIBS" |
| 4937 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4938 | fi |
| 4939 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4940 | |
| 4941 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 4942 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 4943 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 4944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4945 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4946 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4947 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4948 | cat >conftest.$ac_ext <<_ACEOF |
| 4949 | /* confdefs.h. */ |
| 4950 | _ACEOF |
| 4951 | cat confdefs.h >>conftest.$ac_ext |
| 4952 | cat >>conftest.$ac_ext <<_ACEOF |
| 4953 | /* end confdefs.h. */ |
| 4954 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4955 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4956 | #ifdef __cplusplus |
| 4957 | extern "C" |
| 4958 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4959 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4960 | builtin and then its argument prototype would still apply. */ |
| 4961 | char gethostbyname (); |
| 4962 | int |
| 4963 | main () |
| 4964 | { |
| 4965 | gethostbyname (); |
| 4966 | ; |
| 4967 | return 0; |
| 4968 | } |
| 4969 | _ACEOF |
| 4970 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4972 | (eval $ac_link) 2>conftest.er1 |
| 4973 | ac_status=$? |
| 4974 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4975 | rm -f conftest.er1 |
| 4976 | cat conftest.err >&5 |
| 4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4978 | (exit $ac_status); } && |
| 4979 | { ac_try='test -z "$ac_c_werror_flag" |
| 4980 | || test ! -s conftest.err' |
| 4981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4982 | (eval $ac_try) 2>&5 |
| 4983 | ac_status=$? |
| 4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4985 | (exit $ac_status); }; } && |
| 4986 | { ac_try='test -s conftest$ac_exeext' |
| 4987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4988 | (eval $ac_try) 2>&5 |
| 4989 | ac_status=$? |
| 4990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4991 | (exit $ac_status); }; }; then |
| 4992 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4993 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4994 | echo "$as_me: failed program was:" >&5 |
| 4995 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4996 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4997 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4998 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4999 | rm -f conftest.err conftest.$ac_objext \ |
| 5000 | conftest$ac_exeext conftest.$ac_ext |
| 5001 | LIBS=$ac_check_lib_save_LIBS |
| 5002 | fi |
| 5003 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 5004 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5005 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 5006 | cat >>confdefs.h <<_ACEOF |
| 5007 | #define HAVE_LIBNSL 1 |
| 5008 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5009 | |
| 5010 | LIBS="-lnsl $LIBS" |
| 5011 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5012 | fi |
| 5013 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5014 | echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
| 5015 | echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6 |
| 5016 | cat >conftest.$ac_ext <<_ACEOF |
| 5017 | /* confdefs.h. */ |
| 5018 | _ACEOF |
| 5019 | cat confdefs.h >>conftest.$ac_ext |
| 5020 | cat >>conftest.$ac_ext <<_ACEOF |
| 5021 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5022 | |
| 5023 | #include <stdio.h> |
| 5024 | #include <stdlib.h> |
| 5025 | #include <stdarg.h> |
| 5026 | #include <fcntl.h> |
| 5027 | #include <netdb.h> |
| 5028 | #include <netinet/in.h> |
| 5029 | #include <errno.h> |
| 5030 | #include <sys/types.h> |
| 5031 | #include <sys/socket.h> |
| 5032 | /* Check bitfields */ |
| 5033 | struct nbbuf { |
| 5034 | unsigned int initDone:1; |
| 5035 | ushort signmaplen; |
| 5036 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5037 | |
| 5038 | int |
| 5039 | main () |
| 5040 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5041 | |
| 5042 | /* Check creating a socket. */ |
| 5043 | struct sockaddr_in server; |
| 5044 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 5045 | (void)htons(100); |
| 5046 | (void)gethostbyname("microsoft.com"); |
| 5047 | if (errno == ECONNREFUSED) |
| 5048 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5049 | |
| 5050 | ; |
| 5051 | return 0; |
| 5052 | } |
| 5053 | _ACEOF |
| 5054 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5056 | (eval $ac_link) 2>conftest.er1 |
| 5057 | ac_status=$? |
| 5058 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5059 | rm -f conftest.er1 |
| 5060 | cat conftest.err >&5 |
| 5061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5062 | (exit $ac_status); } && |
| 5063 | { ac_try='test -z "$ac_c_werror_flag" |
| 5064 | || test ! -s conftest.err' |
| 5065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5066 | (eval $ac_try) 2>&5 |
| 5067 | ac_status=$? |
| 5068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5069 | (exit $ac_status); }; } && |
| 5070 | { ac_try='test -s conftest$ac_exeext' |
| 5071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5072 | (eval $ac_try) 2>&5 |
| 5073 | ac_status=$? |
| 5074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5075 | (exit $ac_status); }; }; then |
| 5076 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5077 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5078 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5079 | echo "$as_me: failed program was:" >&5 |
| 5080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5081 | |
| 5082 | echo "$as_me:$LINENO: result: no" >&5 |
| 5083 | echo "${ECHO_T}no" >&6; enable_netbeans="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5084 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5085 | rm -f conftest.err conftest.$ac_objext \ |
| 5086 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5087 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5088 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5089 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5090 | fi |
| 5091 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5092 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5093 | #define FEAT_NETBEANS_INTG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5094 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5095 | |
| 5096 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5097 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5098 | NETBEANS_OBJ="objects/netbeans.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5099 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5100 | fi |
| 5101 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5102 | echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
| 5103 | echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5104 | # Check whether --enable-sniff or --disable-sniff was given. |
| 5105 | if test "${enable_sniff+set}" = set; then |
| 5106 | enableval="$enable_sniff" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5107 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5108 | else |
| 5109 | enable_sniff="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5110 | fi; |
| 5111 | echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
| 5112 | echo "${ECHO_T}$enable_sniff" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5113 | if test "$enable_sniff" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5114 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5115 | #define FEAT_SNIFF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5116 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5117 | |
| 5118 | SNIFF_SRC="if_sniff.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5119 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5120 | SNIFF_OBJ="objects/if_sniff.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5121 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5122 | fi |
| 5123 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5124 | echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
| 5125 | echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5126 | # Check whether --enable-multibyte or --disable-multibyte was given. |
| 5127 | if test "${enable_multibyte+set}" = set; then |
| 5128 | enableval="$enable_multibyte" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5129 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5130 | else |
| 5131 | enable_multibyte="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5132 | fi; |
| 5133 | echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
| 5134 | echo "${ECHO_T}$enable_multibyte" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5135 | if test "$enable_multibyte" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5136 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5137 | #define FEAT_MBYTE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5138 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5139 | |
| 5140 | fi |
| 5141 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5142 | echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
| 5143 | echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5144 | # Check whether --enable-hangulinput or --disable-hangulinput was given. |
| 5145 | if test "${enable_hangulinput+set}" = set; then |
| 5146 | enableval="$enable_hangulinput" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5147 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5148 | else |
| 5149 | enable_hangulinput="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5150 | fi; |
| 5151 | echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
| 5152 | echo "${ECHO_T}$enable_hangulinput" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5153 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5154 | echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
| 5155 | echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5156 | # Check whether --enable-xim or --disable-xim was given. |
| 5157 | if test "${enable_xim+set}" = set; then |
| 5158 | enableval="$enable_xim" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5159 | echo "$as_me:$LINENO: result: $enable_xim" >&5 |
| 5160 | echo "${ECHO_T}$enable_xim" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5161 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5162 | enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
| 5163 | echo "${ECHO_T}defaulting to auto" >&6 |
| 5164 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5165 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5166 | echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
| 5167 | echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5168 | # Check whether --enable-fontset or --disable-fontset was given. |
| 5169 | if test "${enable_fontset+set}" = set; then |
| 5170 | enableval="$enable_fontset" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5171 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5172 | else |
| 5173 | enable_fontset="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5174 | fi; |
| 5175 | echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
| 5176 | echo "${ECHO_T}$enable_fontset" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5177 | |
| 5178 | test -z "$with_x" && with_x=yes |
| 5179 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 5180 | if test "$with_x" = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5181 | echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
| 5182 | echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5183 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5184 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5185 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 5186 | set dummy xmkmf; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5187 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5189 | if test "${ac_cv_path_xmkmfpath+set}" = set; then |
| 5190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5191 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5192 | case $xmkmfpath in |
| 5193 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5194 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 5195 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5196 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5198 | for as_dir in $PATH |
| 5199 | do |
| 5200 | IFS=$as_save_IFS |
| 5201 | test -z "$as_dir" && as_dir=. |
| 5202 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5203 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5204 | ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
| 5205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5206 | break 2 |
| 5207 | fi |
| 5208 | done |
| 5209 | done |
| 5210 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5211 | ;; |
| 5212 | esac |
| 5213 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5214 | xmkmfpath=$ac_cv_path_xmkmfpath |
| 5215 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5216 | if test -n "$xmkmfpath"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5217 | echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
| 5218 | echo "${ECHO_T}$xmkmfpath" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5219 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5220 | echo "$as_me:$LINENO: result: no" >&5 |
| 5221 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5222 | fi |
| 5223 | |
| 5224 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5225 | echo "$as_me:$LINENO: checking for X" >&5 |
| 5226 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 5227 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5228 | |
| 5229 | # Check whether --with-x or --without-x was given. |
| 5230 | if test "${with_x+set}" = set; then |
| 5231 | withval="$with_x" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5232 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5233 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5234 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 5235 | if test "x$with_x" = xno; then |
| 5236 | # The user explicitly disabled X. |
| 5237 | have_x=disabled |
| 5238 | else |
| 5239 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 5240 | # Both variables are already set. |
| 5241 | have_x=yes |
| 5242 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5243 | if test "${ac_cv_have_x+set}" = set; then |
| 5244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5245 | else |
| 5246 | # One or both of the vars are not set, and there is no cached value. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5247 | ac_x_includes=no ac_x_libraries=no |
| 5248 | rm -fr conftest.dir |
| 5249 | if mkdir conftest.dir; then |
| 5250 | cd conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5251 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5252 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5253 | acfindx: |
| 5254 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5255 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5256 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 5257 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 5258 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 5259 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 5260 | for ac_extension in a so sl; do |
| 5261 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5262 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 5263 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5264 | fi |
| 5265 | done |
| 5266 | # Screen out bogus values from the imake configuration. They are |
| 5267 | # bogus both because they are the default anyway, and because |
| 5268 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5269 | case $ac_im_incroot in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5270 | /usr/include) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5271 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5272 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5273 | case $ac_im_usrlibdir in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5274 | /usr/lib | /lib) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5275 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5276 | esac |
| 5277 | fi |
| 5278 | cd .. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5279 | rm -fr conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5280 | fi |
| 5281 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5282 | # Standard set of common directories for X headers. |
| 5283 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 5284 | ac_x_header_dirs=' |
| 5285 | /usr/X11/include |
| 5286 | /usr/X11R6/include |
| 5287 | /usr/X11R5/include |
| 5288 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5289 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5290 | /usr/include/X11 |
| 5291 | /usr/include/X11R6 |
| 5292 | /usr/include/X11R5 |
| 5293 | /usr/include/X11R4 |
| 5294 | |
| 5295 | /usr/local/X11/include |
| 5296 | /usr/local/X11R6/include |
| 5297 | /usr/local/X11R5/include |
| 5298 | /usr/local/X11R4/include |
| 5299 | |
| 5300 | /usr/local/include/X11 |
| 5301 | /usr/local/include/X11R6 |
| 5302 | /usr/local/include/X11R5 |
| 5303 | /usr/local/include/X11R4 |
| 5304 | |
| 5305 | /usr/X386/include |
| 5306 | /usr/x386/include |
| 5307 | /usr/XFree86/include/X11 |
| 5308 | |
| 5309 | /usr/include |
| 5310 | /usr/local/include |
| 5311 | /usr/unsupported/include |
| 5312 | /usr/athena/include |
| 5313 | /usr/local/x11r5/include |
| 5314 | /usr/lpp/Xamples/include |
| 5315 | |
| 5316 | /usr/openwin/include |
| 5317 | /usr/openwin/share/include' |
| 5318 | |
| 5319 | if test "$ac_x_includes" = no; then |
| 5320 | # Guess where to find include files, by looking for Intrinsic.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5321 | # First, try using that file with no special directory specified. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5322 | cat >conftest.$ac_ext <<_ACEOF |
| 5323 | /* confdefs.h. */ |
| 5324 | _ACEOF |
| 5325 | cat confdefs.h >>conftest.$ac_ext |
| 5326 | cat >>conftest.$ac_ext <<_ACEOF |
| 5327 | /* end confdefs.h. */ |
| 5328 | #include <X11/Intrinsic.h> |
| 5329 | _ACEOF |
| 5330 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5331 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5332 | ac_status=$? |
| 5333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5334 | rm -f conftest.er1 |
| 5335 | cat conftest.err >&5 |
| 5336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5337 | (exit $ac_status); } >/dev/null; then |
| 5338 | if test -s conftest.err; then |
| 5339 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5340 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5341 | else |
| 5342 | ac_cpp_err= |
| 5343 | fi |
| 5344 | else |
| 5345 | ac_cpp_err=yes |
| 5346 | fi |
| 5347 | if test -z "$ac_cpp_err"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5348 | # We can compile using X headers with no special include directory. |
| 5349 | ac_x_includes= |
| 5350 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5351 | echo "$as_me: failed program was:" >&5 |
| 5352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5353 | |
| 5354 | for ac_dir in $ac_x_header_dirs; do |
| 5355 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 5356 | ac_x_includes=$ac_dir |
| 5357 | break |
| 5358 | fi |
| 5359 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5360 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5361 | rm -f conftest.err conftest.$ac_ext |
| 5362 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5363 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5364 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5365 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5366 | # See if we find them without any special options. |
| 5367 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5368 | ac_save_LIBS=$LIBS |
| 5369 | LIBS="-lXt $LIBS" |
| 5370 | cat >conftest.$ac_ext <<_ACEOF |
| 5371 | /* confdefs.h. */ |
| 5372 | _ACEOF |
| 5373 | cat confdefs.h >>conftest.$ac_ext |
| 5374 | cat >>conftest.$ac_ext <<_ACEOF |
| 5375 | /* end confdefs.h. */ |
| 5376 | #include <X11/Intrinsic.h> |
| 5377 | int |
| 5378 | main () |
| 5379 | { |
| 5380 | XtMalloc (0) |
| 5381 | ; |
| 5382 | return 0; |
| 5383 | } |
| 5384 | _ACEOF |
| 5385 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5387 | (eval $ac_link) 2>conftest.er1 |
| 5388 | ac_status=$? |
| 5389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5390 | rm -f conftest.er1 |
| 5391 | cat conftest.err >&5 |
| 5392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5393 | (exit $ac_status); } && |
| 5394 | { ac_try='test -z "$ac_c_werror_flag" |
| 5395 | || test ! -s conftest.err' |
| 5396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5397 | (eval $ac_try) 2>&5 |
| 5398 | ac_status=$? |
| 5399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5400 | (exit $ac_status); }; } && |
| 5401 | { ac_try='test -s conftest$ac_exeext' |
| 5402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5403 | (eval $ac_try) 2>&5 |
| 5404 | ac_status=$? |
| 5405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5406 | (exit $ac_status); }; }; then |
| 5407 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5408 | # We can link X programs with no special library path. |
| 5409 | ac_x_libraries= |
| 5410 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5411 | echo "$as_me: failed program was:" >&5 |
| 5412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5413 | |
| 5414 | LIBS=$ac_save_LIBS |
| 5415 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5416 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5417 | # Don't even attempt the hair of trying to link an X program! |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5418 | for ac_extension in a so sl; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5419 | if test -r $ac_dir/libXt.$ac_extension; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5420 | ac_x_libraries=$ac_dir |
| 5421 | break 2 |
| 5422 | fi |
| 5423 | done |
| 5424 | done |
| 5425 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5426 | rm -f conftest.err conftest.$ac_objext \ |
| 5427 | conftest$ac_exeext conftest.$ac_ext |
| 5428 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5429 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5430 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5431 | # Didn't find X anywhere. Cache the known absence of X. |
| 5432 | ac_cv_have_x="have_x=no" |
| 5433 | else |
| 5434 | # Record where we found X for the cache. |
| 5435 | ac_cv_have_x="have_x=yes \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5436 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5437 | fi |
| 5438 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5439 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5440 | fi |
| 5441 | eval "$ac_cv_have_x" |
| 5442 | fi # $with_x != no |
| 5443 | |
| 5444 | if test "$have_x" != yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5445 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 5446 | echo "${ECHO_T}$have_x" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5447 | no_x=yes |
| 5448 | else |
| 5449 | # If each of the values was on the command line, it overrides each guess. |
| 5450 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 5451 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 5452 | # Update the cache value to reflect the command line values. |
| 5453 | ac_cv_have_x="have_x=yes \ |
| 5454 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5455 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 5456 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5457 | fi |
| 5458 | |
| 5459 | if test "$no_x" = yes; then |
| 5460 | # Not all programs may use this symbol, but it does not hurt to define it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5461 | |
| 5462 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5463 | #define X_DISPLAY_MISSING 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5464 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5465 | |
| 5466 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 5467 | else |
| 5468 | if test -n "$x_includes"; then |
| 5469 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 5470 | fi |
| 5471 | |
| 5472 | # It would also be nice to do this for all -L options, not just this one. |
| 5473 | if test -n "$x_libraries"; then |
| 5474 | X_LIBS="$X_LIBS -L$x_libraries" |
| 5475 | # For Solaris; some versions of Sun CC require a space after -R and |
| 5476 | # others require no space. Words are not sufficient . . . . |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5477 | case `(uname -sr) 2>/dev/null` in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5478 | "SunOS 5"*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5479 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 5480 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 5481 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 5482 | cat >conftest.$ac_ext <<_ACEOF |
| 5483 | /* confdefs.h. */ |
| 5484 | _ACEOF |
| 5485 | cat confdefs.h >>conftest.$ac_ext |
| 5486 | cat >>conftest.$ac_ext <<_ACEOF |
| 5487 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5488 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5489 | int |
| 5490 | main () |
| 5491 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5492 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5493 | ; |
| 5494 | return 0; |
| 5495 | } |
| 5496 | _ACEOF |
| 5497 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5499 | (eval $ac_link) 2>conftest.er1 |
| 5500 | ac_status=$? |
| 5501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5502 | rm -f conftest.er1 |
| 5503 | cat conftest.err >&5 |
| 5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5505 | (exit $ac_status); } && |
| 5506 | { ac_try='test -z "$ac_c_werror_flag" |
| 5507 | || test ! -s conftest.err' |
| 5508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5509 | (eval $ac_try) 2>&5 |
| 5510 | ac_status=$? |
| 5511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5512 | (exit $ac_status); }; } && |
| 5513 | { ac_try='test -s conftest$ac_exeext' |
| 5514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5515 | (eval $ac_try) 2>&5 |
| 5516 | ac_status=$? |
| 5517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5518 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5519 | ac_R_nospace=yes |
| 5520 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5521 | echo "$as_me: failed program was:" >&5 |
| 5522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5523 | |
| 5524 | ac_R_nospace=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5525 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5526 | rm -f conftest.err conftest.$ac_objext \ |
| 5527 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5528 | if test $ac_R_nospace = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5529 | echo "$as_me:$LINENO: result: no" >&5 |
| 5530 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5531 | X_LIBS="$X_LIBS -R$x_libraries" |
| 5532 | else |
| 5533 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5534 | cat >conftest.$ac_ext <<_ACEOF |
| 5535 | /* confdefs.h. */ |
| 5536 | _ACEOF |
| 5537 | cat confdefs.h >>conftest.$ac_ext |
| 5538 | cat >>conftest.$ac_ext <<_ACEOF |
| 5539 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5540 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5541 | int |
| 5542 | main () |
| 5543 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5544 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5545 | ; |
| 5546 | return 0; |
| 5547 | } |
| 5548 | _ACEOF |
| 5549 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5551 | (eval $ac_link) 2>conftest.er1 |
| 5552 | ac_status=$? |
| 5553 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5554 | rm -f conftest.er1 |
| 5555 | cat conftest.err >&5 |
| 5556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5557 | (exit $ac_status); } && |
| 5558 | { ac_try='test -z "$ac_c_werror_flag" |
| 5559 | || test ! -s conftest.err' |
| 5560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5561 | (eval $ac_try) 2>&5 |
| 5562 | ac_status=$? |
| 5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5564 | (exit $ac_status); }; } && |
| 5565 | { ac_try='test -s conftest$ac_exeext' |
| 5566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5567 | (eval $ac_try) 2>&5 |
| 5568 | ac_status=$? |
| 5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5570 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5571 | ac_R_space=yes |
| 5572 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5573 | echo "$as_me: failed program was:" >&5 |
| 5574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5575 | |
| 5576 | ac_R_space=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5577 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5578 | rm -f conftest.err conftest.$ac_objext \ |
| 5579 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5580 | if test $ac_R_space = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5581 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5582 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5583 | X_LIBS="$X_LIBS -R $x_libraries" |
| 5584 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5585 | echo "$as_me:$LINENO: result: neither works" >&5 |
| 5586 | echo "${ECHO_T}neither works" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5587 | fi |
| 5588 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5589 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5590 | esac |
| 5591 | fi |
| 5592 | |
| 5593 | # Check for system-dependent libraries X programs must link with. |
| 5594 | # Do this before checking for the system-independent R6 libraries |
| 5595 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 5596 | |
| 5597 | if test "$ISC" = yes; then |
| 5598 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 5599 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5600 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 5601 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5602 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5603 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 5604 | cat >conftest.$ac_ext <<_ACEOF |
| 5605 | /* confdefs.h. */ |
| 5606 | _ACEOF |
| 5607 | cat confdefs.h >>conftest.$ac_ext |
| 5608 | cat >>conftest.$ac_ext <<_ACEOF |
| 5609 | /* end confdefs.h. */ |
| 5610 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5611 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5612 | #ifdef __cplusplus |
| 5613 | extern "C" |
| 5614 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5615 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5616 | builtin and then its argument prototype would still apply. */ |
| 5617 | char XOpenDisplay (); |
| 5618 | int |
| 5619 | main () |
| 5620 | { |
| 5621 | XOpenDisplay (); |
| 5622 | ; |
| 5623 | return 0; |
| 5624 | } |
| 5625 | _ACEOF |
| 5626 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5628 | (eval $ac_link) 2>conftest.er1 |
| 5629 | ac_status=$? |
| 5630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5631 | rm -f conftest.er1 |
| 5632 | cat conftest.err >&5 |
| 5633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5634 | (exit $ac_status); } && |
| 5635 | { ac_try='test -z "$ac_c_werror_flag" |
| 5636 | || test ! -s conftest.err' |
| 5637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5638 | (eval $ac_try) 2>&5 |
| 5639 | ac_status=$? |
| 5640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5641 | (exit $ac_status); }; } && |
| 5642 | { ac_try='test -s conftest$ac_exeext' |
| 5643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5644 | (eval $ac_try) 2>&5 |
| 5645 | ac_status=$? |
| 5646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5647 | (exit $ac_status); }; }; then |
| 5648 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5649 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5650 | echo "$as_me: failed program was:" >&5 |
| 5651 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5652 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5653 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 5654 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 5655 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 5656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5657 | else |
| 5658 | ac_check_lib_save_LIBS=$LIBS |
| 5659 | LIBS="-ldnet $LIBS" |
| 5660 | cat >conftest.$ac_ext <<_ACEOF |
| 5661 | /* confdefs.h. */ |
| 5662 | _ACEOF |
| 5663 | cat confdefs.h >>conftest.$ac_ext |
| 5664 | cat >>conftest.$ac_ext <<_ACEOF |
| 5665 | /* end confdefs.h. */ |
| 5666 | |
| 5667 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5668 | #ifdef __cplusplus |
| 5669 | extern "C" |
| 5670 | #endif |
| 5671 | /* We use char because int might match the return type of a gcc2 |
| 5672 | builtin and then its argument prototype would still apply. */ |
| 5673 | char dnet_ntoa (); |
| 5674 | int |
| 5675 | main () |
| 5676 | { |
| 5677 | dnet_ntoa (); |
| 5678 | ; |
| 5679 | return 0; |
| 5680 | } |
| 5681 | _ACEOF |
| 5682 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5684 | (eval $ac_link) 2>conftest.er1 |
| 5685 | ac_status=$? |
| 5686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5687 | rm -f conftest.er1 |
| 5688 | cat conftest.err >&5 |
| 5689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5690 | (exit $ac_status); } && |
| 5691 | { ac_try='test -z "$ac_c_werror_flag" |
| 5692 | || test ! -s conftest.err' |
| 5693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5694 | (eval $ac_try) 2>&5 |
| 5695 | ac_status=$? |
| 5696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5697 | (exit $ac_status); }; } && |
| 5698 | { ac_try='test -s conftest$ac_exeext' |
| 5699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5700 | (eval $ac_try) 2>&5 |
| 5701 | ac_status=$? |
| 5702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5703 | (exit $ac_status); }; }; then |
| 5704 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 5705 | else |
| 5706 | echo "$as_me: failed program was:" >&5 |
| 5707 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5708 | |
| 5709 | ac_cv_lib_dnet_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5710 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5711 | rm -f conftest.err conftest.$ac_objext \ |
| 5712 | conftest$ac_exeext conftest.$ac_ext |
| 5713 | LIBS=$ac_check_lib_save_LIBS |
| 5714 | fi |
| 5715 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 5716 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 5717 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5718 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5719 | fi |
| 5720 | |
| 5721 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5722 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 5723 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 5724 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 5725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5726 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5727 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5728 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5729 | cat >conftest.$ac_ext <<_ACEOF |
| 5730 | /* confdefs.h. */ |
| 5731 | _ACEOF |
| 5732 | cat confdefs.h >>conftest.$ac_ext |
| 5733 | cat >>conftest.$ac_ext <<_ACEOF |
| 5734 | /* end confdefs.h. */ |
| 5735 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5736 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5737 | #ifdef __cplusplus |
| 5738 | extern "C" |
| 5739 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5740 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5741 | builtin and then its argument prototype would still apply. */ |
| 5742 | char dnet_ntoa (); |
| 5743 | int |
| 5744 | main () |
| 5745 | { |
| 5746 | dnet_ntoa (); |
| 5747 | ; |
| 5748 | return 0; |
| 5749 | } |
| 5750 | _ACEOF |
| 5751 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5753 | (eval $ac_link) 2>conftest.er1 |
| 5754 | ac_status=$? |
| 5755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5756 | rm -f conftest.er1 |
| 5757 | cat conftest.err >&5 |
| 5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5759 | (exit $ac_status); } && |
| 5760 | { ac_try='test -z "$ac_c_werror_flag" |
| 5761 | || test ! -s conftest.err' |
| 5762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5763 | (eval $ac_try) 2>&5 |
| 5764 | ac_status=$? |
| 5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5766 | (exit $ac_status); }; } && |
| 5767 | { ac_try='test -s conftest$ac_exeext' |
| 5768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5769 | (eval $ac_try) 2>&5 |
| 5770 | ac_status=$? |
| 5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5772 | (exit $ac_status); }; }; then |
| 5773 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5774 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5775 | echo "$as_me: failed program was:" >&5 |
| 5776 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5777 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5778 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5779 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5780 | rm -f conftest.err conftest.$ac_objext \ |
| 5781 | conftest$ac_exeext conftest.$ac_ext |
| 5782 | LIBS=$ac_check_lib_save_LIBS |
| 5783 | fi |
| 5784 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 5785 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 5786 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5787 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5788 | fi |
| 5789 | |
| 5790 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5791 | fi |
| 5792 | rm -f conftest.err conftest.$ac_objext \ |
| 5793 | conftest$ac_exeext conftest.$ac_ext |
| 5794 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5795 | |
| 5796 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 5797 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5798 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5799 | # needs -lnsl. |
| 5800 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5801 | # on Irix 5.2, according to T.E. Dickey. |
| 5802 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 5803 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 5804 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 5805 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 5806 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 5807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5808 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5809 | cat >conftest.$ac_ext <<_ACEOF |
| 5810 | /* confdefs.h. */ |
| 5811 | _ACEOF |
| 5812 | cat confdefs.h >>conftest.$ac_ext |
| 5813 | cat >>conftest.$ac_ext <<_ACEOF |
| 5814 | /* end confdefs.h. */ |
| 5815 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 5816 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5817 | #define gethostbyname innocuous_gethostbyname |
| 5818 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5819 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5820 | which can conflict with char gethostbyname (); below. |
| 5821 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5822 | <limits.h> exists even on freestanding compilers. */ |
| 5823 | |
| 5824 | #ifdef __STDC__ |
| 5825 | # include <limits.h> |
| 5826 | #else |
| 5827 | # include <assert.h> |
| 5828 | #endif |
| 5829 | |
| 5830 | #undef gethostbyname |
| 5831 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5832 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5833 | #ifdef __cplusplus |
| 5834 | extern "C" |
| 5835 | { |
| 5836 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5837 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5838 | builtin and then its argument prototype would still apply. */ |
| 5839 | char gethostbyname (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5840 | /* The GNU C library defines this for functions which it implements |
| 5841 | to always fail with ENOSYS. Some functions are actually named |
| 5842 | something starting with __ and the normal name is an alias. */ |
| 5843 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 5844 | choke me |
| 5845 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5846 | char (*f) () = gethostbyname; |
| 5847 | #endif |
| 5848 | #ifdef __cplusplus |
| 5849 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5850 | #endif |
| 5851 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5852 | int |
| 5853 | main () |
| 5854 | { |
| 5855 | return f != gethostbyname; |
| 5856 | ; |
| 5857 | return 0; |
| 5858 | } |
| 5859 | _ACEOF |
| 5860 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5862 | (eval $ac_link) 2>conftest.er1 |
| 5863 | ac_status=$? |
| 5864 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5865 | rm -f conftest.er1 |
| 5866 | cat conftest.err >&5 |
| 5867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5868 | (exit $ac_status); } && |
| 5869 | { ac_try='test -z "$ac_c_werror_flag" |
| 5870 | || test ! -s conftest.err' |
| 5871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5872 | (eval $ac_try) 2>&5 |
| 5873 | ac_status=$? |
| 5874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5875 | (exit $ac_status); }; } && |
| 5876 | { ac_try='test -s conftest$ac_exeext' |
| 5877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5878 | (eval $ac_try) 2>&5 |
| 5879 | ac_status=$? |
| 5880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5881 | (exit $ac_status); }; }; then |
| 5882 | ac_cv_func_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5883 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5884 | echo "$as_me: failed program was:" >&5 |
| 5885 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5886 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5887 | ac_cv_func_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5888 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5889 | rm -f conftest.err conftest.$ac_objext \ |
| 5890 | conftest$ac_exeext conftest.$ac_ext |
| 5891 | fi |
| 5892 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 5893 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5894 | |
| 5895 | if test $ac_cv_func_gethostbyname = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5896 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 5897 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 5898 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 5899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5900 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5901 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5902 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5903 | cat >conftest.$ac_ext <<_ACEOF |
| 5904 | /* confdefs.h. */ |
| 5905 | _ACEOF |
| 5906 | cat confdefs.h >>conftest.$ac_ext |
| 5907 | cat >>conftest.$ac_ext <<_ACEOF |
| 5908 | /* end confdefs.h. */ |
| 5909 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5910 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5911 | #ifdef __cplusplus |
| 5912 | extern "C" |
| 5913 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5914 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5915 | builtin and then its argument prototype would still apply. */ |
| 5916 | char gethostbyname (); |
| 5917 | int |
| 5918 | main () |
| 5919 | { |
| 5920 | gethostbyname (); |
| 5921 | ; |
| 5922 | return 0; |
| 5923 | } |
| 5924 | _ACEOF |
| 5925 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5927 | (eval $ac_link) 2>conftest.er1 |
| 5928 | ac_status=$? |
| 5929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5930 | rm -f conftest.er1 |
| 5931 | cat conftest.err >&5 |
| 5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5933 | (exit $ac_status); } && |
| 5934 | { ac_try='test -z "$ac_c_werror_flag" |
| 5935 | || test ! -s conftest.err' |
| 5936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5937 | (eval $ac_try) 2>&5 |
| 5938 | ac_status=$? |
| 5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5940 | (exit $ac_status); }; } && |
| 5941 | { ac_try='test -s conftest$ac_exeext' |
| 5942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5943 | (eval $ac_try) 2>&5 |
| 5944 | ac_status=$? |
| 5945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5946 | (exit $ac_status); }; }; then |
| 5947 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5948 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5949 | echo "$as_me: failed program was:" >&5 |
| 5950 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5951 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5952 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5953 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5954 | rm -f conftest.err conftest.$ac_objext \ |
| 5955 | conftest$ac_exeext conftest.$ac_ext |
| 5956 | LIBS=$ac_check_lib_save_LIBS |
| 5957 | fi |
| 5958 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 5959 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5960 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5961 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5962 | fi |
| 5963 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5964 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 5965 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 5966 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 5967 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 5968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5969 | else |
| 5970 | ac_check_lib_save_LIBS=$LIBS |
| 5971 | LIBS="-lbsd $LIBS" |
| 5972 | cat >conftest.$ac_ext <<_ACEOF |
| 5973 | /* confdefs.h. */ |
| 5974 | _ACEOF |
| 5975 | cat confdefs.h >>conftest.$ac_ext |
| 5976 | cat >>conftest.$ac_ext <<_ACEOF |
| 5977 | /* end confdefs.h. */ |
| 5978 | |
| 5979 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5980 | #ifdef __cplusplus |
| 5981 | extern "C" |
| 5982 | #endif |
| 5983 | /* We use char because int might match the return type of a gcc2 |
| 5984 | builtin and then its argument prototype would still apply. */ |
| 5985 | char gethostbyname (); |
| 5986 | int |
| 5987 | main () |
| 5988 | { |
| 5989 | gethostbyname (); |
| 5990 | ; |
| 5991 | return 0; |
| 5992 | } |
| 5993 | _ACEOF |
| 5994 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5996 | (eval $ac_link) 2>conftest.er1 |
| 5997 | ac_status=$? |
| 5998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5999 | rm -f conftest.er1 |
| 6000 | cat conftest.err >&5 |
| 6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6002 | (exit $ac_status); } && |
| 6003 | { ac_try='test -z "$ac_c_werror_flag" |
| 6004 | || test ! -s conftest.err' |
| 6005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6006 | (eval $ac_try) 2>&5 |
| 6007 | ac_status=$? |
| 6008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6009 | (exit $ac_status); }; } && |
| 6010 | { ac_try='test -s conftest$ac_exeext' |
| 6011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6012 | (eval $ac_try) 2>&5 |
| 6013 | ac_status=$? |
| 6014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6015 | (exit $ac_status); }; }; then |
| 6016 | ac_cv_lib_bsd_gethostbyname=yes |
| 6017 | else |
| 6018 | echo "$as_me: failed program was:" >&5 |
| 6019 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6020 | |
| 6021 | ac_cv_lib_bsd_gethostbyname=no |
| 6022 | fi |
| 6023 | rm -f conftest.err conftest.$ac_objext \ |
| 6024 | conftest$ac_exeext conftest.$ac_ext |
| 6025 | LIBS=$ac_check_lib_save_LIBS |
| 6026 | fi |
| 6027 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 6028 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 6029 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 6030 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 6031 | fi |
| 6032 | |
| 6033 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6034 | fi |
| 6035 | |
| 6036 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 6037 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 6038 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6039 | # on later versions), says Simon Leinen: it contains gethostby* |
| 6040 | # variants that don't use the name server (or something). -lsocket |
| 6041 | # must be given before -lnsl if both are needed. We assume that |
| 6042 | # if connect needs -lnsl, so does gethostbyname. |
| 6043 | echo "$as_me:$LINENO: checking for connect" >&5 |
| 6044 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 6045 | if test "${ac_cv_func_connect+set}" = set; then |
| 6046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6047 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6048 | cat >conftest.$ac_ext <<_ACEOF |
| 6049 | /* confdefs.h. */ |
| 6050 | _ACEOF |
| 6051 | cat confdefs.h >>conftest.$ac_ext |
| 6052 | cat >>conftest.$ac_ext <<_ACEOF |
| 6053 | /* end confdefs.h. */ |
| 6054 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 6055 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6056 | #define connect innocuous_connect |
| 6057 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6058 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6059 | which can conflict with char connect (); below. |
| 6060 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6061 | <limits.h> exists even on freestanding compilers. */ |
| 6062 | |
| 6063 | #ifdef __STDC__ |
| 6064 | # include <limits.h> |
| 6065 | #else |
| 6066 | # include <assert.h> |
| 6067 | #endif |
| 6068 | |
| 6069 | #undef connect |
| 6070 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6071 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6072 | #ifdef __cplusplus |
| 6073 | extern "C" |
| 6074 | { |
| 6075 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6076 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6077 | builtin and then its argument prototype would still apply. */ |
| 6078 | char connect (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6079 | /* The GNU C library defines this for functions which it implements |
| 6080 | to always fail with ENOSYS. Some functions are actually named |
| 6081 | something starting with __ and the normal name is an alias. */ |
| 6082 | #if defined (__stub_connect) || defined (__stub___connect) |
| 6083 | choke me |
| 6084 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6085 | char (*f) () = connect; |
| 6086 | #endif |
| 6087 | #ifdef __cplusplus |
| 6088 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6089 | #endif |
| 6090 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6091 | int |
| 6092 | main () |
| 6093 | { |
| 6094 | return f != connect; |
| 6095 | ; |
| 6096 | return 0; |
| 6097 | } |
| 6098 | _ACEOF |
| 6099 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6101 | (eval $ac_link) 2>conftest.er1 |
| 6102 | ac_status=$? |
| 6103 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6104 | rm -f conftest.er1 |
| 6105 | cat conftest.err >&5 |
| 6106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6107 | (exit $ac_status); } && |
| 6108 | { ac_try='test -z "$ac_c_werror_flag" |
| 6109 | || test ! -s conftest.err' |
| 6110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6111 | (eval $ac_try) 2>&5 |
| 6112 | ac_status=$? |
| 6113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6114 | (exit $ac_status); }; } && |
| 6115 | { ac_try='test -s conftest$ac_exeext' |
| 6116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6117 | (eval $ac_try) 2>&5 |
| 6118 | ac_status=$? |
| 6119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6120 | (exit $ac_status); }; }; then |
| 6121 | ac_cv_func_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6122 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6123 | echo "$as_me: failed program was:" >&5 |
| 6124 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6125 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6126 | ac_cv_func_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6127 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6128 | rm -f conftest.err conftest.$ac_objext \ |
| 6129 | conftest$ac_exeext conftest.$ac_ext |
| 6130 | fi |
| 6131 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 6132 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6133 | |
| 6134 | if test $ac_cv_func_connect = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6135 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 6136 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 6137 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 6138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6139 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6140 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6141 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6142 | cat >conftest.$ac_ext <<_ACEOF |
| 6143 | /* confdefs.h. */ |
| 6144 | _ACEOF |
| 6145 | cat confdefs.h >>conftest.$ac_ext |
| 6146 | cat >>conftest.$ac_ext <<_ACEOF |
| 6147 | /* end confdefs.h. */ |
| 6148 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6149 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6150 | #ifdef __cplusplus |
| 6151 | extern "C" |
| 6152 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6153 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6154 | builtin and then its argument prototype would still apply. */ |
| 6155 | char connect (); |
| 6156 | int |
| 6157 | main () |
| 6158 | { |
| 6159 | connect (); |
| 6160 | ; |
| 6161 | return 0; |
| 6162 | } |
| 6163 | _ACEOF |
| 6164 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6166 | (eval $ac_link) 2>conftest.er1 |
| 6167 | ac_status=$? |
| 6168 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6169 | rm -f conftest.er1 |
| 6170 | cat conftest.err >&5 |
| 6171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6172 | (exit $ac_status); } && |
| 6173 | { ac_try='test -z "$ac_c_werror_flag" |
| 6174 | || test ! -s conftest.err' |
| 6175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6176 | (eval $ac_try) 2>&5 |
| 6177 | ac_status=$? |
| 6178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6179 | (exit $ac_status); }; } && |
| 6180 | { ac_try='test -s conftest$ac_exeext' |
| 6181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6182 | (eval $ac_try) 2>&5 |
| 6183 | ac_status=$? |
| 6184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6185 | (exit $ac_status); }; }; then |
| 6186 | ac_cv_lib_socket_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6187 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6188 | echo "$as_me: failed program was:" >&5 |
| 6189 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6190 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6191 | ac_cv_lib_socket_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6192 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6193 | rm -f conftest.err conftest.$ac_objext \ |
| 6194 | conftest$ac_exeext conftest.$ac_ext |
| 6195 | LIBS=$ac_check_lib_save_LIBS |
| 6196 | fi |
| 6197 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 6198 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 6199 | if test $ac_cv_lib_socket_connect = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6200 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6201 | fi |
| 6202 | |
| 6203 | fi |
| 6204 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6205 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 6206 | echo "$as_me:$LINENO: checking for remove" >&5 |
| 6207 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 6208 | if test "${ac_cv_func_remove+set}" = set; then |
| 6209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6210 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6211 | cat >conftest.$ac_ext <<_ACEOF |
| 6212 | /* confdefs.h. */ |
| 6213 | _ACEOF |
| 6214 | cat confdefs.h >>conftest.$ac_ext |
| 6215 | cat >>conftest.$ac_ext <<_ACEOF |
| 6216 | /* end confdefs.h. */ |
| 6217 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 6218 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6219 | #define remove innocuous_remove |
| 6220 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6221 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6222 | which can conflict with char remove (); below. |
| 6223 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6224 | <limits.h> exists even on freestanding compilers. */ |
| 6225 | |
| 6226 | #ifdef __STDC__ |
| 6227 | # include <limits.h> |
| 6228 | #else |
| 6229 | # include <assert.h> |
| 6230 | #endif |
| 6231 | |
| 6232 | #undef remove |
| 6233 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6234 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6235 | #ifdef __cplusplus |
| 6236 | extern "C" |
| 6237 | { |
| 6238 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6239 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6240 | builtin and then its argument prototype would still apply. */ |
| 6241 | char remove (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6242 | /* The GNU C library defines this for functions which it implements |
| 6243 | to always fail with ENOSYS. Some functions are actually named |
| 6244 | something starting with __ and the normal name is an alias. */ |
| 6245 | #if defined (__stub_remove) || defined (__stub___remove) |
| 6246 | choke me |
| 6247 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6248 | char (*f) () = remove; |
| 6249 | #endif |
| 6250 | #ifdef __cplusplus |
| 6251 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6252 | #endif |
| 6253 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6254 | int |
| 6255 | main () |
| 6256 | { |
| 6257 | return f != remove; |
| 6258 | ; |
| 6259 | return 0; |
| 6260 | } |
| 6261 | _ACEOF |
| 6262 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6264 | (eval $ac_link) 2>conftest.er1 |
| 6265 | ac_status=$? |
| 6266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6267 | rm -f conftest.er1 |
| 6268 | cat conftest.err >&5 |
| 6269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6270 | (exit $ac_status); } && |
| 6271 | { ac_try='test -z "$ac_c_werror_flag" |
| 6272 | || test ! -s conftest.err' |
| 6273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6274 | (eval $ac_try) 2>&5 |
| 6275 | ac_status=$? |
| 6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6277 | (exit $ac_status); }; } && |
| 6278 | { ac_try='test -s conftest$ac_exeext' |
| 6279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6280 | (eval $ac_try) 2>&5 |
| 6281 | ac_status=$? |
| 6282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6283 | (exit $ac_status); }; }; then |
| 6284 | ac_cv_func_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6285 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6286 | echo "$as_me: failed program was:" >&5 |
| 6287 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6288 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6289 | ac_cv_func_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6290 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6291 | rm -f conftest.err conftest.$ac_objext \ |
| 6292 | conftest$ac_exeext conftest.$ac_ext |
| 6293 | fi |
| 6294 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 6295 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6296 | |
| 6297 | if test $ac_cv_func_remove = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6298 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 6299 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 6300 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 6301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6302 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6303 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6304 | LIBS="-lposix $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6305 | cat >conftest.$ac_ext <<_ACEOF |
| 6306 | /* confdefs.h. */ |
| 6307 | _ACEOF |
| 6308 | cat confdefs.h >>conftest.$ac_ext |
| 6309 | cat >>conftest.$ac_ext <<_ACEOF |
| 6310 | /* end confdefs.h. */ |
| 6311 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6312 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6313 | #ifdef __cplusplus |
| 6314 | extern "C" |
| 6315 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6316 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6317 | builtin and then its argument prototype would still apply. */ |
| 6318 | char remove (); |
| 6319 | int |
| 6320 | main () |
| 6321 | { |
| 6322 | remove (); |
| 6323 | ; |
| 6324 | return 0; |
| 6325 | } |
| 6326 | _ACEOF |
| 6327 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6329 | (eval $ac_link) 2>conftest.er1 |
| 6330 | ac_status=$? |
| 6331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6332 | rm -f conftest.er1 |
| 6333 | cat conftest.err >&5 |
| 6334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6335 | (exit $ac_status); } && |
| 6336 | { ac_try='test -z "$ac_c_werror_flag" |
| 6337 | || test ! -s conftest.err' |
| 6338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6339 | (eval $ac_try) 2>&5 |
| 6340 | ac_status=$? |
| 6341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6342 | (exit $ac_status); }; } && |
| 6343 | { ac_try='test -s conftest$ac_exeext' |
| 6344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6345 | (eval $ac_try) 2>&5 |
| 6346 | ac_status=$? |
| 6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6348 | (exit $ac_status); }; }; then |
| 6349 | ac_cv_lib_posix_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6350 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6351 | echo "$as_me: failed program was:" >&5 |
| 6352 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6353 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6354 | ac_cv_lib_posix_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6355 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6356 | rm -f conftest.err conftest.$ac_objext \ |
| 6357 | conftest$ac_exeext conftest.$ac_ext |
| 6358 | LIBS=$ac_check_lib_save_LIBS |
| 6359 | fi |
| 6360 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 6361 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 6362 | if test $ac_cv_lib_posix_remove = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6363 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6364 | fi |
| 6365 | |
| 6366 | fi |
| 6367 | |
| 6368 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6369 | echo "$as_me:$LINENO: checking for shmat" >&5 |
| 6370 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 6371 | if test "${ac_cv_func_shmat+set}" = set; then |
| 6372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6373 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6374 | cat >conftest.$ac_ext <<_ACEOF |
| 6375 | /* confdefs.h. */ |
| 6376 | _ACEOF |
| 6377 | cat confdefs.h >>conftest.$ac_ext |
| 6378 | cat >>conftest.$ac_ext <<_ACEOF |
| 6379 | /* end confdefs.h. */ |
| 6380 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 6381 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6382 | #define shmat innocuous_shmat |
| 6383 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6384 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6385 | which can conflict with char shmat (); below. |
| 6386 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6387 | <limits.h> exists even on freestanding compilers. */ |
| 6388 | |
| 6389 | #ifdef __STDC__ |
| 6390 | # include <limits.h> |
| 6391 | #else |
| 6392 | # include <assert.h> |
| 6393 | #endif |
| 6394 | |
| 6395 | #undef shmat |
| 6396 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6397 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6398 | #ifdef __cplusplus |
| 6399 | extern "C" |
| 6400 | { |
| 6401 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6402 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6403 | builtin and then its argument prototype would still apply. */ |
| 6404 | char shmat (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6405 | /* The GNU C library defines this for functions which it implements |
| 6406 | to always fail with ENOSYS. Some functions are actually named |
| 6407 | something starting with __ and the normal name is an alias. */ |
| 6408 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 6409 | choke me |
| 6410 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6411 | char (*f) () = shmat; |
| 6412 | #endif |
| 6413 | #ifdef __cplusplus |
| 6414 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6415 | #endif |
| 6416 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6417 | int |
| 6418 | main () |
| 6419 | { |
| 6420 | return f != shmat; |
| 6421 | ; |
| 6422 | return 0; |
| 6423 | } |
| 6424 | _ACEOF |
| 6425 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6427 | (eval $ac_link) 2>conftest.er1 |
| 6428 | ac_status=$? |
| 6429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6430 | rm -f conftest.er1 |
| 6431 | cat conftest.err >&5 |
| 6432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6433 | (exit $ac_status); } && |
| 6434 | { ac_try='test -z "$ac_c_werror_flag" |
| 6435 | || test ! -s conftest.err' |
| 6436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6437 | (eval $ac_try) 2>&5 |
| 6438 | ac_status=$? |
| 6439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6440 | (exit $ac_status); }; } && |
| 6441 | { ac_try='test -s conftest$ac_exeext' |
| 6442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6443 | (eval $ac_try) 2>&5 |
| 6444 | ac_status=$? |
| 6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6446 | (exit $ac_status); }; }; then |
| 6447 | ac_cv_func_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6448 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6449 | echo "$as_me: failed program was:" >&5 |
| 6450 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6451 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6452 | ac_cv_func_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6453 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6454 | rm -f conftest.err conftest.$ac_objext \ |
| 6455 | conftest$ac_exeext conftest.$ac_ext |
| 6456 | fi |
| 6457 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 6458 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6459 | |
| 6460 | if test $ac_cv_func_shmat = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6461 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 6462 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 6463 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 6464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6465 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6466 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6467 | LIBS="-lipc $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6468 | cat >conftest.$ac_ext <<_ACEOF |
| 6469 | /* confdefs.h. */ |
| 6470 | _ACEOF |
| 6471 | cat confdefs.h >>conftest.$ac_ext |
| 6472 | cat >>conftest.$ac_ext <<_ACEOF |
| 6473 | /* end confdefs.h. */ |
| 6474 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6475 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6476 | #ifdef __cplusplus |
| 6477 | extern "C" |
| 6478 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6479 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6480 | builtin and then its argument prototype would still apply. */ |
| 6481 | char shmat (); |
| 6482 | int |
| 6483 | main () |
| 6484 | { |
| 6485 | shmat (); |
| 6486 | ; |
| 6487 | return 0; |
| 6488 | } |
| 6489 | _ACEOF |
| 6490 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6491 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6492 | (eval $ac_link) 2>conftest.er1 |
| 6493 | ac_status=$? |
| 6494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6495 | rm -f conftest.er1 |
| 6496 | cat conftest.err >&5 |
| 6497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6498 | (exit $ac_status); } && |
| 6499 | { ac_try='test -z "$ac_c_werror_flag" |
| 6500 | || test ! -s conftest.err' |
| 6501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6502 | (eval $ac_try) 2>&5 |
| 6503 | ac_status=$? |
| 6504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6505 | (exit $ac_status); }; } && |
| 6506 | { ac_try='test -s conftest$ac_exeext' |
| 6507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6508 | (eval $ac_try) 2>&5 |
| 6509 | ac_status=$? |
| 6510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6511 | (exit $ac_status); }; }; then |
| 6512 | ac_cv_lib_ipc_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6513 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6514 | echo "$as_me: failed program was:" >&5 |
| 6515 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6516 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6517 | ac_cv_lib_ipc_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6518 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6519 | rm -f conftest.err conftest.$ac_objext \ |
| 6520 | conftest$ac_exeext conftest.$ac_ext |
| 6521 | LIBS=$ac_check_lib_save_LIBS |
| 6522 | fi |
| 6523 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 6524 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 6525 | if test $ac_cv_lib_ipc_shmat = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6526 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6527 | fi |
| 6528 | |
| 6529 | fi |
| 6530 | fi |
| 6531 | |
| 6532 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6533 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6534 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 6535 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 6536 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 6537 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 6538 | # These have to be linked with before -lX11, unlike the other |
| 6539 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6540 | # John Interrante, Karl Berry |
| 6541 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 6542 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 6543 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 6544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6545 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6546 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6547 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6548 | cat >conftest.$ac_ext <<_ACEOF |
| 6549 | /* confdefs.h. */ |
| 6550 | _ACEOF |
| 6551 | cat confdefs.h >>conftest.$ac_ext |
| 6552 | cat >>conftest.$ac_ext <<_ACEOF |
| 6553 | /* end confdefs.h. */ |
| 6554 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6555 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6556 | #ifdef __cplusplus |
| 6557 | extern "C" |
| 6558 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6559 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6560 | builtin and then its argument prototype would still apply. */ |
| 6561 | char IceConnectionNumber (); |
| 6562 | int |
| 6563 | main () |
| 6564 | { |
| 6565 | IceConnectionNumber (); |
| 6566 | ; |
| 6567 | return 0; |
| 6568 | } |
| 6569 | _ACEOF |
| 6570 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6572 | (eval $ac_link) 2>conftest.er1 |
| 6573 | ac_status=$? |
| 6574 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6575 | rm -f conftest.er1 |
| 6576 | cat conftest.err >&5 |
| 6577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6578 | (exit $ac_status); } && |
| 6579 | { ac_try='test -z "$ac_c_werror_flag" |
| 6580 | || test ! -s conftest.err' |
| 6581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6582 | (eval $ac_try) 2>&5 |
| 6583 | ac_status=$? |
| 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6585 | (exit $ac_status); }; } && |
| 6586 | { ac_try='test -s conftest$ac_exeext' |
| 6587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6588 | (eval $ac_try) 2>&5 |
| 6589 | ac_status=$? |
| 6590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6591 | (exit $ac_status); }; }; then |
| 6592 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6593 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6594 | echo "$as_me: failed program was:" >&5 |
| 6595 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6596 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6597 | ac_cv_lib_ICE_IceConnectionNumber=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6598 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6599 | rm -f conftest.err conftest.$ac_objext \ |
| 6600 | conftest$ac_exeext conftest.$ac_ext |
| 6601 | LIBS=$ac_check_lib_save_LIBS |
| 6602 | fi |
| 6603 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 6604 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 6605 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6606 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6607 | fi |
| 6608 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6609 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6610 | |
| 6611 | fi |
| 6612 | |
| 6613 | |
| 6614 | if test "$OS390Unix" = "yes"; then |
| 6615 | CFLAGS="$CFLAGS -W c,dll" |
| 6616 | LDFLAGS="$LDFLAGS -W l,dll" |
| 6617 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 6618 | fi |
| 6619 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6620 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6621 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 6622 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6623 | echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
| 6624 | echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6625 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6626 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 6627 | uname -r | grep '^5' >/dev/null; then |
| 6628 | X_LIBS="$X_LIBS -R $x_libraries" |
| 6629 | fi |
| 6630 | fi |
| 6631 | |
| 6632 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 6633 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6634 | echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
| 6635 | echo "${ECHO_T}Corrected X includes to $x_includes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6636 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6637 | fi |
| 6638 | |
| 6639 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 6640 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 6641 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 6642 | |
| 6643 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6644 | echo "$as_me:$LINENO: checking if X11 header files can be found" >&5 |
| 6645 | echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6646 | cflags_save=$CFLAGS |
| 6647 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6648 | cat >conftest.$ac_ext <<_ACEOF |
| 6649 | /* confdefs.h. */ |
| 6650 | _ACEOF |
| 6651 | cat confdefs.h >>conftest.$ac_ext |
| 6652 | cat >>conftest.$ac_ext <<_ACEOF |
| 6653 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6654 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6655 | int |
| 6656 | main () |
| 6657 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6658 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6659 | ; |
| 6660 | return 0; |
| 6661 | } |
| 6662 | _ACEOF |
| 6663 | rm -f conftest.$ac_objext |
| 6664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6665 | (eval $ac_compile) 2>conftest.er1 |
| 6666 | ac_status=$? |
| 6667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6668 | rm -f conftest.er1 |
| 6669 | cat conftest.err >&5 |
| 6670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6671 | (exit $ac_status); } && |
| 6672 | { ac_try='test -z "$ac_c_werror_flag" |
| 6673 | || test ! -s conftest.err' |
| 6674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6675 | (eval $ac_try) 2>&5 |
| 6676 | ac_status=$? |
| 6677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6678 | (exit $ac_status); }; } && |
| 6679 | { ac_try='test -s conftest.$ac_objext' |
| 6680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6681 | (eval $ac_try) 2>&5 |
| 6682 | ac_status=$? |
| 6683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6684 | (exit $ac_status); }; }; then |
| 6685 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6686 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6687 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6688 | echo "$as_me: failed program was:" >&5 |
| 6689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6690 | |
| 6691 | echo "$as_me:$LINENO: result: no" >&5 |
| 6692 | echo "${ECHO_T}no" >&6; no_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6693 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6695 | CFLAGS=$cflags_save |
| 6696 | |
| 6697 | if test "${no_x-no}" = yes; then |
| 6698 | with_x=no |
| 6699 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6700 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6701 | #define HAVE_X11 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6702 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6703 | |
| 6704 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6705 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6706 | |
| 6707 | ac_save_LDFLAGS="$LDFLAGS" |
| 6708 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 6709 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6710 | echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 6711 | echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6 |
| 6712 | if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then |
| 6713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6714 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6715 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6716 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6717 | cat >conftest.$ac_ext <<_ACEOF |
| 6718 | /* confdefs.h. */ |
| 6719 | _ACEOF |
| 6720 | cat confdefs.h >>conftest.$ac_ext |
| 6721 | cat >>conftest.$ac_ext <<_ACEOF |
| 6722 | /* end confdefs.h. */ |
| 6723 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6724 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6725 | #ifdef __cplusplus |
| 6726 | extern "C" |
| 6727 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6728 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6729 | builtin and then its argument prototype would still apply. */ |
| 6730 | char _XdmcpAuthDoIt (); |
| 6731 | int |
| 6732 | main () |
| 6733 | { |
| 6734 | _XdmcpAuthDoIt (); |
| 6735 | ; |
| 6736 | return 0; |
| 6737 | } |
| 6738 | _ACEOF |
| 6739 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6741 | (eval $ac_link) 2>conftest.er1 |
| 6742 | ac_status=$? |
| 6743 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6744 | rm -f conftest.er1 |
| 6745 | cat conftest.err >&5 |
| 6746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6747 | (exit $ac_status); } && |
| 6748 | { ac_try='test -z "$ac_c_werror_flag" |
| 6749 | || test ! -s conftest.err' |
| 6750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6751 | (eval $ac_try) 2>&5 |
| 6752 | ac_status=$? |
| 6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6754 | (exit $ac_status); }; } && |
| 6755 | { ac_try='test -s conftest$ac_exeext' |
| 6756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6757 | (eval $ac_try) 2>&5 |
| 6758 | ac_status=$? |
| 6759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6760 | (exit $ac_status); }; }; then |
| 6761 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6762 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6763 | echo "$as_me: failed program was:" >&5 |
| 6764 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6765 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6766 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6767 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6768 | rm -f conftest.err conftest.$ac_objext \ |
| 6769 | conftest$ac_exeext conftest.$ac_ext |
| 6770 | LIBS=$ac_check_lib_save_LIBS |
| 6771 | fi |
| 6772 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 6773 | echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6 |
| 6774 | if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6775 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6776 | fi |
| 6777 | |
| 6778 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6779 | echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
| 6780 | echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6 |
| 6781 | if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
| 6782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6783 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6784 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6785 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6786 | cat >conftest.$ac_ext <<_ACEOF |
| 6787 | /* confdefs.h. */ |
| 6788 | _ACEOF |
| 6789 | cat confdefs.h >>conftest.$ac_ext |
| 6790 | cat >>conftest.$ac_ext <<_ACEOF |
| 6791 | /* end confdefs.h. */ |
| 6792 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6793 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6794 | #ifdef __cplusplus |
| 6795 | extern "C" |
| 6796 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6797 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6798 | builtin and then its argument prototype would still apply. */ |
| 6799 | char IceOpenConnection (); |
| 6800 | int |
| 6801 | main () |
| 6802 | { |
| 6803 | IceOpenConnection (); |
| 6804 | ; |
| 6805 | return 0; |
| 6806 | } |
| 6807 | _ACEOF |
| 6808 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6809 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6810 | (eval $ac_link) 2>conftest.er1 |
| 6811 | ac_status=$? |
| 6812 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6813 | rm -f conftest.er1 |
| 6814 | cat conftest.err >&5 |
| 6815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6816 | (exit $ac_status); } && |
| 6817 | { ac_try='test -z "$ac_c_werror_flag" |
| 6818 | || test ! -s conftest.err' |
| 6819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6820 | (eval $ac_try) 2>&5 |
| 6821 | ac_status=$? |
| 6822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6823 | (exit $ac_status); }; } && |
| 6824 | { ac_try='test -s conftest$ac_exeext' |
| 6825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6826 | (eval $ac_try) 2>&5 |
| 6827 | ac_status=$? |
| 6828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6829 | (exit $ac_status); }; }; then |
| 6830 | ac_cv_lib_ICE_IceOpenConnection=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6831 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6832 | echo "$as_me: failed program was:" >&5 |
| 6833 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6834 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6835 | ac_cv_lib_ICE_IceOpenConnection=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6836 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6837 | rm -f conftest.err conftest.$ac_objext \ |
| 6838 | conftest$ac_exeext conftest.$ac_ext |
| 6839 | LIBS=$ac_check_lib_save_LIBS |
| 6840 | fi |
| 6841 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 6842 | echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6 |
| 6843 | if test $ac_cv_lib_ICE_IceOpenConnection = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6844 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6845 | fi |
| 6846 | |
| 6847 | |
| 6848 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6849 | echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 6850 | echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 |
| 6851 | if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
| 6852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6853 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6854 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6855 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6856 | cat >conftest.$ac_ext <<_ACEOF |
| 6857 | /* confdefs.h. */ |
| 6858 | _ACEOF |
| 6859 | cat confdefs.h >>conftest.$ac_ext |
| 6860 | cat >>conftest.$ac_ext <<_ACEOF |
| 6861 | /* end confdefs.h. */ |
| 6862 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6863 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6864 | #ifdef __cplusplus |
| 6865 | extern "C" |
| 6866 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6867 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6868 | builtin and then its argument prototype would still apply. */ |
| 6869 | char XpmCreatePixmapFromData (); |
| 6870 | int |
| 6871 | main () |
| 6872 | { |
| 6873 | XpmCreatePixmapFromData (); |
| 6874 | ; |
| 6875 | return 0; |
| 6876 | } |
| 6877 | _ACEOF |
| 6878 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6880 | (eval $ac_link) 2>conftest.er1 |
| 6881 | ac_status=$? |
| 6882 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6883 | rm -f conftest.er1 |
| 6884 | cat conftest.err >&5 |
| 6885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6886 | (exit $ac_status); } && |
| 6887 | { ac_try='test -z "$ac_c_werror_flag" |
| 6888 | || test ! -s conftest.err' |
| 6889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6890 | (eval $ac_try) 2>&5 |
| 6891 | ac_status=$? |
| 6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6893 | (exit $ac_status); }; } && |
| 6894 | { ac_try='test -s conftest$ac_exeext' |
| 6895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6896 | (eval $ac_try) 2>&5 |
| 6897 | ac_status=$? |
| 6898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6899 | (exit $ac_status); }; }; then |
| 6900 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6901 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6902 | echo "$as_me: failed program was:" >&5 |
| 6903 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6904 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6905 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6906 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6907 | rm -f conftest.err conftest.$ac_objext \ |
| 6908 | conftest$ac_exeext conftest.$ac_ext |
| 6909 | LIBS=$ac_check_lib_save_LIBS |
| 6910 | fi |
| 6911 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 6912 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 |
| 6913 | if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6914 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6915 | fi |
| 6916 | |
| 6917 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6918 | echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
| 6919 | echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6920 | cflags_save=$CFLAGS |
| 6921 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6922 | cat >conftest.$ac_ext <<_ACEOF |
| 6923 | /* confdefs.h. */ |
| 6924 | _ACEOF |
| 6925 | cat confdefs.h >>conftest.$ac_ext |
| 6926 | cat >>conftest.$ac_ext <<_ACEOF |
| 6927 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6928 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6929 | int |
| 6930 | main () |
| 6931 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6932 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6933 | ; |
| 6934 | return 0; |
| 6935 | } |
| 6936 | _ACEOF |
| 6937 | rm -f conftest.$ac_objext |
| 6938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6939 | (eval $ac_compile) 2>conftest.er1 |
| 6940 | ac_status=$? |
| 6941 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6942 | rm -f conftest.er1 |
| 6943 | cat conftest.err >&5 |
| 6944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6945 | (exit $ac_status); } && |
| 6946 | { ac_try='test -z "$ac_c_werror_flag" |
| 6947 | || test ! -s conftest.err' |
| 6948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6949 | (eval $ac_try) 2>&5 |
| 6950 | ac_status=$? |
| 6951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6952 | (exit $ac_status); }; } && |
| 6953 | { ac_try='test -s conftest.$ac_objext' |
| 6954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6955 | (eval $ac_try) 2>&5 |
| 6956 | ac_status=$? |
| 6957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6958 | (exit $ac_status); }; }; then |
| 6959 | echo "$as_me:$LINENO: result: no" >&5 |
| 6960 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6961 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6962 | echo "$as_me: failed program was:" >&5 |
| 6963 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6964 | |
| 6965 | CFLAGS="$CFLAGS -Wno-implicit-int" |
| 6966 | cat >conftest.$ac_ext <<_ACEOF |
| 6967 | /* confdefs.h. */ |
| 6968 | _ACEOF |
| 6969 | cat confdefs.h >>conftest.$ac_ext |
| 6970 | cat >>conftest.$ac_ext <<_ACEOF |
| 6971 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6972 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6973 | int |
| 6974 | main () |
| 6975 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6976 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6977 | ; |
| 6978 | return 0; |
| 6979 | } |
| 6980 | _ACEOF |
| 6981 | rm -f conftest.$ac_objext |
| 6982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6983 | (eval $ac_compile) 2>conftest.er1 |
| 6984 | ac_status=$? |
| 6985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6986 | rm -f conftest.er1 |
| 6987 | cat conftest.err >&5 |
| 6988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6989 | (exit $ac_status); } && |
| 6990 | { ac_try='test -z "$ac_c_werror_flag" |
| 6991 | || test ! -s conftest.err' |
| 6992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6993 | (eval $ac_try) 2>&5 |
| 6994 | ac_status=$? |
| 6995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6996 | (exit $ac_status); }; } && |
| 6997 | { ac_try='test -s conftest.$ac_objext' |
| 6998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6999 | (eval $ac_try) 2>&5 |
| 7000 | ac_status=$? |
| 7001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7002 | (exit $ac_status); }; }; then |
| 7003 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7004 | echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7005 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7006 | echo "$as_me: failed program was:" >&5 |
| 7007 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7008 | |
| 7009 | echo "$as_me:$LINENO: result: test failed" >&5 |
| 7010 | echo "${ECHO_T}test failed" >&6 |
| 7011 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7012 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7014 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7015 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7017 | CFLAGS=$cflags_save |
| 7018 | |
| 7019 | LDFLAGS="$ac_save_LDFLAGS" |
| 7020 | |
| 7021 | fi |
| 7022 | fi |
| 7023 | |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 7024 | test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7025 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7026 | echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
| 7027 | echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7028 | # Check whether --enable-gui or --disable-gui was given. |
| 7029 | if test "${enable_gui+set}" = set; then |
| 7030 | enableval="$enable_gui" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7031 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7032 | else |
| 7033 | enable_gui="auto" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7034 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7035 | |
| 7036 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 7037 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 7038 | |
| 7039 | SKIP_GTK=YES |
| 7040 | SKIP_GTK2=YES |
| 7041 | SKIP_GNOME=YES |
| 7042 | SKIP_MOTIF=YES |
| 7043 | SKIP_ATHENA=YES |
| 7044 | SKIP_NEXTAW=YES |
| 7045 | SKIP_PHOTON=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7046 | SKIP_CARBON=YES |
| 7047 | GUITYPE=NONE |
| 7048 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7049 | if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7050 | SKIP_PHOTON= |
| 7051 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7052 | no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7053 | echo "${ECHO_T}no GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7054 | SKIP_PHOTON=YES ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7055 | yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 7056 | echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
| 7057 | auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 7058 | echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
| 7059 | photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5 |
| 7060 | echo "${ECHO_T}Photon GUI support" >&6 ;; |
| 7061 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7062 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7063 | SKIP_PHOTON=YES ;; |
| 7064 | esac |
| 7065 | |
| 7066 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 7067 | SKIP_CARBON= |
| 7068 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7069 | no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7070 | echo "${ECHO_T}no GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7071 | SKIP_CARBON=YES ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7072 | yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 7073 | echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
| 7074 | auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 7075 | echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
| 7076 | carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5 |
| 7077 | echo "${ECHO_T}Carbon GUI support" >&6 ;; |
| 7078 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7079 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7080 | SKIP_CARBON=YES ;; |
| 7081 | esac |
| 7082 | |
| 7083 | else |
| 7084 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7085 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7086 | no|none) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7087 | echo "${ECHO_T}no GUI support" >&6 ;; |
| 7088 | yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 |
| 7089 | echo "${ECHO_T}yes/auto - automatic GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7090 | SKIP_GTK= |
| 7091 | SKIP_GTK2= |
| 7092 | SKIP_GNOME= |
| 7093 | SKIP_MOTIF= |
| 7094 | SKIP_ATHENA= |
| 7095 | SKIP_NEXTAW= |
| 7096 | SKIP_CARBON=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7097 | gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
| 7098 | echo "${ECHO_T}GTK+ 1.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7099 | SKIP_GTK=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7100 | gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
| 7101 | echo "${ECHO_T}GTK+ 2.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7102 | SKIP_GTK= |
| 7103 | SKIP_GTK2=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7104 | gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
| 7105 | echo "${ECHO_T}GNOME 1.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7106 | SKIP_GNOME= |
| 7107 | SKIP_GTK=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7108 | gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
| 7109 | echo "${ECHO_T}GNOME 2.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7110 | SKIP_GNOME= |
| 7111 | SKIP_GTK= |
| 7112 | SKIP_GTK2=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7113 | motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
| 7114 | echo "${ECHO_T}Motif GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7115 | SKIP_MOTIF=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7116 | athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
| 7117 | echo "${ECHO_T}Athena GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7118 | SKIP_ATHENA=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7119 | nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
| 7120 | echo "${ECHO_T}neXtaw GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7121 | SKIP_NEXTAW=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7122 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7123 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7124 | esac |
| 7125 | |
| 7126 | fi |
| 7127 | |
| 7128 | if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7129 | echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
| 7130 | echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7131 | # Check whether --enable-gtk-check or --disable-gtk-check was given. |
| 7132 | if test "${enable_gtk_check+set}" = set; then |
| 7133 | enableval="$enable_gtk_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7134 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7135 | else |
| 7136 | enable_gtk_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7137 | fi; |
| 7138 | echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
| 7139 | echo "${ECHO_T}$enable_gtk_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7140 | if test "x$enable_gtk_check" = "xno"; then |
| 7141 | SKIP_GTK=YES |
| 7142 | SKIP_GNOME=YES |
| 7143 | fi |
| 7144 | fi |
| 7145 | |
| 7146 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 7147 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7148 | echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
| 7149 | echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7150 | # Check whether --enable-gtk2-check or --disable-gtk2-check was given. |
| 7151 | if test "${enable_gtk2_check+set}" = set; then |
| 7152 | enableval="$enable_gtk2_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7153 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7154 | else |
| 7155 | enable_gtk2_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7156 | fi; |
| 7157 | echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
| 7158 | echo "${ECHO_T}$enable_gtk2_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7159 | if test "x$enable_gtk2_check" = "xno"; then |
| 7160 | SKIP_GTK2=YES |
| 7161 | fi |
| 7162 | fi |
| 7163 | |
| 7164 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 7165 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7166 | echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
| 7167 | echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7168 | # Check whether --enable-gnome-check or --disable-gnome-check was given. |
| 7169 | if test "${enable_gnome_check+set}" = set; then |
| 7170 | enableval="$enable_gnome_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7171 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7172 | else |
| 7173 | enable_gnome_check="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7174 | fi; |
| 7175 | echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
| 7176 | echo "${ECHO_T}$enable_gnome_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7177 | if test "x$enable_gnome_check" = "xno"; then |
| 7178 | SKIP_GNOME=YES |
| 7179 | fi |
| 7180 | fi |
| 7181 | |
| 7182 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7183 | echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
| 7184 | echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7185 | # Check whether --enable-motif-check or --disable-motif-check was given. |
| 7186 | if test "${enable_motif_check+set}" = set; then |
| 7187 | enableval="$enable_motif_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7188 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7189 | else |
| 7190 | enable_motif_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7191 | fi; |
| 7192 | echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
| 7193 | echo "${ECHO_T}$enable_motif_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7194 | if test "x$enable_motif_check" = "xno"; then |
| 7195 | SKIP_MOTIF=YES |
| 7196 | fi |
| 7197 | fi |
| 7198 | |
| 7199 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7200 | echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
| 7201 | echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7202 | # Check whether --enable-athena-check or --disable-athena-check was given. |
| 7203 | if test "${enable_athena_check+set}" = set; then |
| 7204 | enableval="$enable_athena_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7205 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7206 | else |
| 7207 | enable_athena_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7208 | fi; |
| 7209 | echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
| 7210 | echo "${ECHO_T}$enable_athena_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7211 | if test "x$enable_athena_check" = "xno"; then |
| 7212 | SKIP_ATHENA=YES |
| 7213 | fi |
| 7214 | fi |
| 7215 | |
| 7216 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7217 | echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
| 7218 | echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7219 | # Check whether --enable-nextaw-check or --disable-nextaw-check was given. |
| 7220 | if test "${enable_nextaw_check+set}" = set; then |
| 7221 | enableval="$enable_nextaw_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7222 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7223 | else |
| 7224 | enable_nextaw_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7225 | fi; |
| 7226 | echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
| 7227 | echo "${ECHO_T}$enable_nextaw_check" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7228 | if test "x$enable_nextaw_check" = "xno"; then |
| 7229 | SKIP_NEXTAW=YES |
| 7230 | fi |
| 7231 | fi |
| 7232 | |
| 7233 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7234 | echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
| 7235 | echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7236 | # Check whether --enable-carbon-check or --disable-carbon-check was given. |
| 7237 | if test "${enable_carbon_check+set}" = set; then |
| 7238 | enableval="$enable_carbon_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7239 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7240 | else |
| 7241 | enable_carbon_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7242 | fi; |
| 7243 | echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
| 7244 | echo "${ECHO_T}$enable_carbon_check" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7245 | if test "x$enable_carbon_check" = "xno"; then |
| 7246 | SKIP_CARBON=YES |
| 7247 | fi |
| 7248 | fi |
| 7249 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7250 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7251 | if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7252 | echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
| 7253 | echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6 |
| 7254 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7255 | echo "${ECHO_T}yes" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7256 | GUITYPE=CARBONGUI |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 7257 | if test "$VIMNAME" = "vim"; then |
| 7258 | VIMNAME=Vim |
| 7259 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7260 | SKIP_GTK=YES; |
| 7261 | SKIP_GTK2=YES; |
| 7262 | SKIP_GNOME=YES; |
| 7263 | SKIP_MOTIF=YES; |
| 7264 | SKIP_ATHENA=YES; |
| 7265 | SKIP_NEXTAW=YES; |
| 7266 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7267 | SKIP_CARBON=YES |
| 7268 | fi |
| 7269 | |
| 7270 | |
| 7271 | |
| 7272 | |
| 7273 | |
| 7274 | |
| 7275 | |
| 7276 | |
| 7277 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7278 | if test -z "$SKIP_GTK"; then |
| 7279 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7280 | echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 7281 | echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6 |
| 7282 | |
| 7283 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7284 | if test "${with_gtk_prefix+set}" = set; then |
| 7285 | withval="$with_gtk_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7286 | gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 7287 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7288 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7289 | gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 7290 | echo "${ECHO_T}no" >&6 |
| 7291 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7292 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7293 | echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 7294 | echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7295 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7296 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7297 | if test "${with_gtk_exec_prefix+set}" = set; then |
| 7298 | withval="$with_gtk_exec_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7299 | gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 7300 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7301 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7302 | gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 7303 | echo "${ECHO_T}no" >&6 |
| 7304 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7305 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7306 | echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 7307 | echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7308 | # Check whether --enable-gtktest or --disable-gtktest was given. |
| 7309 | if test "${enable_gtktest+set}" = set; then |
| 7310 | enableval="$enable_gtktest" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7311 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7312 | else |
| 7313 | enable_gtktest=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7314 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7315 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7316 | echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 7317 | echo "${ECHO_T}gtk test enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7318 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7319 | echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 7320 | echo "${ECHO_T}gtk test disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7321 | fi |
| 7322 | |
| 7323 | if test "x$gtk_config_prefix" != "x" ; then |
| 7324 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 7325 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 7326 | fi |
| 7327 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 7328 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 7329 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 7330 | fi |
| 7331 | if test "X$GTK_CONFIG" = "X"; then |
| 7332 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 7333 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7334 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7336 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
| 7337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7338 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7339 | case $GTK_CONFIG in |
| 7340 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7341 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 7342 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7343 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7345 | for as_dir in $PATH |
| 7346 | do |
| 7347 | IFS=$as_save_IFS |
| 7348 | test -z "$as_dir" && as_dir=. |
| 7349 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7350 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7351 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7353 | break 2 |
| 7354 | fi |
| 7355 | done |
| 7356 | done |
| 7357 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7358 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 7359 | ;; |
| 7360 | esac |
| 7361 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7362 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
| 7363 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7364 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7365 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 7366 | echo "${ECHO_T}$GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7367 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7368 | echo "$as_me:$LINENO: result: no" >&5 |
| 7369 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7370 | fi |
| 7371 | |
| 7372 | if test "X$GTK_CONFIG" = "Xno"; then |
| 7373 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 7374 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7375 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7377 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
| 7378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7379 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7380 | case $GTK12_CONFIG in |
| 7381 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7382 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 7383 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7384 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7386 | for as_dir in $PATH |
| 7387 | do |
| 7388 | IFS=$as_save_IFS |
| 7389 | test -z "$as_dir" && as_dir=. |
| 7390 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7391 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7392 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7393 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7394 | break 2 |
| 7395 | fi |
| 7396 | done |
| 7397 | done |
| 7398 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7399 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 7400 | ;; |
| 7401 | esac |
| 7402 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7403 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
| 7404 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7405 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7406 | echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 7407 | echo "${ECHO_T}$GTK12_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7408 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7409 | echo "$as_me:$LINENO: result: no" >&5 |
| 7410 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7411 | fi |
| 7412 | |
| 7413 | GTK_CONFIG="$GTK12_CONFIG" |
| 7414 | fi |
| 7415 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7416 | echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 7417 | echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7418 | fi |
| 7419 | if test "X$PKG_CONFIG" = "X"; then |
| 7420 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 7421 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7422 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7424 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 7425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7426 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7427 | case $PKG_CONFIG in |
| 7428 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7429 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 7430 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7431 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7433 | for as_dir in $PATH |
| 7434 | do |
| 7435 | IFS=$as_save_IFS |
| 7436 | test -z "$as_dir" && as_dir=. |
| 7437 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7438 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7439 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7440 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7441 | break 2 |
| 7442 | fi |
| 7443 | done |
| 7444 | done |
| 7445 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7446 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 7447 | ;; |
| 7448 | esac |
| 7449 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7450 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 7451 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7452 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7453 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 7454 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7455 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7456 | echo "$as_me:$LINENO: result: no" >&5 |
| 7457 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7458 | fi |
| 7459 | |
| 7460 | fi |
| 7461 | |
| 7462 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 7463 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7464 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7465 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 7466 | { |
| 7467 | min_gtk_version=2.2.0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7468 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 7469 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7470 | no_gtk="" |
| 7471 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 7472 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 7473 | { |
| 7474 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7475 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7476 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 7477 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7478 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7479 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7480 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7481 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7482 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7483 | } |
| 7484 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 7485 | { |
| 7486 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7487 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7488 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 7489 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7490 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7491 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7492 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7493 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7494 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7495 | } |
| 7496 | else |
| 7497 | no_gtk=yes |
| 7498 | fi |
| 7499 | |
| 7500 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 7501 | { |
| 7502 | ac_save_CFLAGS="$CFLAGS" |
| 7503 | ac_save_LIBS="$LIBS" |
| 7504 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 7505 | LIBS="$LIBS $GTK_LIBS" |
| 7506 | |
| 7507 | rm -f conf.gtktest |
| 7508 | if test "$cross_compiling" = yes; then |
| 7509 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 7510 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7511 | cat >conftest.$ac_ext <<_ACEOF |
| 7512 | /* confdefs.h. */ |
| 7513 | _ACEOF |
| 7514 | cat confdefs.h >>conftest.$ac_ext |
| 7515 | cat >>conftest.$ac_ext <<_ACEOF |
| 7516 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7517 | |
| 7518 | #include <gtk/gtk.h> |
| 7519 | #include <stdio.h> |
| 7520 | |
| 7521 | int |
| 7522 | main () |
| 7523 | { |
| 7524 | int major, minor, micro; |
| 7525 | char *tmp_version; |
| 7526 | |
| 7527 | system ("touch conf.gtktest"); |
| 7528 | |
| 7529 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 7530 | tmp_version = g_strdup("$min_gtk_version"); |
| 7531 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 7532 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 7533 | exit(1); |
| 7534 | } |
| 7535 | |
| 7536 | if ((gtk_major_version > major) || |
| 7537 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 7538 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 7539 | (gtk_micro_version >= micro))) |
| 7540 | { |
| 7541 | return 0; |
| 7542 | } |
| 7543 | return 1; |
| 7544 | } |
| 7545 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7546 | _ACEOF |
| 7547 | rm -f conftest$ac_exeext |
| 7548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7549 | (eval $ac_link) 2>&5 |
| 7550 | ac_status=$? |
| 7551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7552 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7554 | (eval $ac_try) 2>&5 |
| 7555 | ac_status=$? |
| 7556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7557 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7558 | : |
| 7559 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7560 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7561 | echo "$as_me: failed program was:" >&5 |
| 7562 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7563 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7564 | ( exit $ac_status ) |
| 7565 | no_gtk=yes |
| 7566 | fi |
| 7567 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7568 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7569 | CFLAGS="$ac_save_CFLAGS" |
| 7570 | LIBS="$ac_save_LIBS" |
| 7571 | } |
| 7572 | fi |
| 7573 | if test "x$no_gtk" = x ; then |
| 7574 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7575 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7576 | echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7577 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7578 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7579 | echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7580 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7581 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 7582 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7583 | GUI_INC_LOC="$GTK_CFLAGS" |
| 7584 | else |
| 7585 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7586 | echo "$as_me:$LINENO: result: no" >&5 |
| 7587 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7588 | GTK_CFLAGS="" |
| 7589 | GTK_LIBS="" |
| 7590 | : |
| 7591 | } |
| 7592 | fi |
| 7593 | } |
| 7594 | else |
| 7595 | GTK_CFLAGS="" |
| 7596 | GTK_LIBS="" |
| 7597 | : |
| 7598 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7599 | |
| 7600 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7601 | rm -f conf.gtktest |
| 7602 | |
| 7603 | if test "x$GTK_CFLAGS" != "x"; then |
| 7604 | SKIP_ATHENA=YES |
| 7605 | SKIP_NEXTAW=YES |
| 7606 | SKIP_MOTIF=YES |
| 7607 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7608 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7609 | fi |
| 7610 | fi |
| 7611 | |
| 7612 | if test "x$GUITYPE" != "xGTK"; then |
| 7613 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7614 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7615 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 7616 | { |
| 7617 | min_gtk_version=1.1.16 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7618 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 7619 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7620 | no_gtk="" |
| 7621 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 7622 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 7623 | { |
| 7624 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7625 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7626 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 7627 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7628 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7629 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7630 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7631 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7632 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7633 | } |
| 7634 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 7635 | { |
| 7636 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7637 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7638 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 7639 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7640 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7641 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7642 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7643 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7644 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7645 | } |
| 7646 | else |
| 7647 | no_gtk=yes |
| 7648 | fi |
| 7649 | |
| 7650 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 7651 | { |
| 7652 | ac_save_CFLAGS="$CFLAGS" |
| 7653 | ac_save_LIBS="$LIBS" |
| 7654 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 7655 | LIBS="$LIBS $GTK_LIBS" |
| 7656 | |
| 7657 | rm -f conf.gtktest |
| 7658 | if test "$cross_compiling" = yes; then |
| 7659 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 7660 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7661 | cat >conftest.$ac_ext <<_ACEOF |
| 7662 | /* confdefs.h. */ |
| 7663 | _ACEOF |
| 7664 | cat confdefs.h >>conftest.$ac_ext |
| 7665 | cat >>conftest.$ac_ext <<_ACEOF |
| 7666 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7667 | |
| 7668 | #include <gtk/gtk.h> |
| 7669 | #include <stdio.h> |
| 7670 | |
| 7671 | int |
| 7672 | main () |
| 7673 | { |
| 7674 | int major, minor, micro; |
| 7675 | char *tmp_version; |
| 7676 | |
| 7677 | system ("touch conf.gtktest"); |
| 7678 | |
| 7679 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 7680 | tmp_version = g_strdup("$min_gtk_version"); |
| 7681 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 7682 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 7683 | exit(1); |
| 7684 | } |
| 7685 | |
| 7686 | if ((gtk_major_version > major) || |
| 7687 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 7688 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 7689 | (gtk_micro_version >= micro))) |
| 7690 | { |
| 7691 | return 0; |
| 7692 | } |
| 7693 | return 1; |
| 7694 | } |
| 7695 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7696 | _ACEOF |
| 7697 | rm -f conftest$ac_exeext |
| 7698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7699 | (eval $ac_link) 2>&5 |
| 7700 | ac_status=$? |
| 7701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7702 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7704 | (eval $ac_try) 2>&5 |
| 7705 | ac_status=$? |
| 7706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7707 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7708 | : |
| 7709 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7710 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7711 | echo "$as_me: failed program was:" >&5 |
| 7712 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7713 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7714 | ( exit $ac_status ) |
| 7715 | no_gtk=yes |
| 7716 | fi |
| 7717 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7718 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7719 | CFLAGS="$ac_save_CFLAGS" |
| 7720 | LIBS="$ac_save_LIBS" |
| 7721 | } |
| 7722 | fi |
| 7723 | if test "x$no_gtk" = x ; then |
| 7724 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7725 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7726 | echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7727 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7728 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7729 | echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7730 | fi |
| 7731 | GTK_LIBNAME="$GTK_LIBS" |
| 7732 | GUI_INC_LOC="$GTK_CFLAGS" |
| 7733 | else |
| 7734 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7735 | echo "$as_me:$LINENO: result: no" >&5 |
| 7736 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7737 | GTK_CFLAGS="" |
| 7738 | GTK_LIBS="" |
| 7739 | : |
| 7740 | } |
| 7741 | fi |
| 7742 | } |
| 7743 | else |
| 7744 | GTK_CFLAGS="" |
| 7745 | GTK_LIBS="" |
| 7746 | : |
| 7747 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7748 | |
| 7749 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7750 | rm -f conf.gtktest |
| 7751 | |
| 7752 | if test "x$GTK_CFLAGS" != "x"; then |
| 7753 | SKIP_ATHENA=YES |
| 7754 | SKIP_NEXTAW=YES |
| 7755 | SKIP_MOTIF=YES |
| 7756 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7757 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7758 | fi |
| 7759 | fi |
| 7760 | fi |
| 7761 | if test "x$GUITYPE" = "xGTK"; then |
| 7762 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 7763 | -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7764 | echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 7765 | echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7766 | else |
| 7767 | { |
| 7768 | if test "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7769 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7770 | #define HAVE_GTK2 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7771 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7772 | |
| 7773 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 7774 | || test "0$gtk_minor_version" -ge 2 \ |
| 7775 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7776 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7777 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7778 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7779 | |
| 7780 | fi |
| 7781 | fi |
| 7782 | if test -z "$SKIP_GNOME"; then |
| 7783 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7784 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7785 | |
| 7786 | |
| 7787 | |
| 7788 | |
| 7789 | |
| 7790 | # Check whether --with-gnome-includes or --without-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7791 | if test "${with_gnome_includes+set}" = set; then |
| 7792 | withval="$with_gnome_includes" |
| 7793 | CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7794 | |
| 7795 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7796 | |
| 7797 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7798 | # Check whether --with-gnome-libs or --without-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7799 | if test "${with_gnome_libs+set}" = set; then |
| 7800 | withval="$with_gnome_libs" |
| 7801 | LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7802 | |
| 7803 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7804 | |
| 7805 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7806 | # Check whether --with-gnome or --without-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7807 | if test "${with_gnome+set}" = set; then |
| 7808 | withval="$with_gnome" |
| 7809 | if test x$withval = xyes; then |
| 7810 | want_gnome=yes |
| 7811 | have_gnome=yes |
| 7812 | else |
| 7813 | if test "x$withval" = xno; then |
| 7814 | want_gnome=no |
| 7815 | else |
| 7816 | want_gnome=yes |
| 7817 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 7818 | CFLAGS="$CFLAGS -I$withval/include" |
| 7819 | gnome_prefix=$withval/lib |
| 7820 | fi |
| 7821 | fi |
| 7822 | else |
| 7823 | want_gnome=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7824 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7825 | |
| 7826 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 7827 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7828 | echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 7829 | echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7830 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7831 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7832 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7833 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 7834 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 7835 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
| 7836 | have_gnome=yes |
| 7837 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7838 | echo "$as_me:$LINENO: result: not found" >&5 |
| 7839 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7840 | if test "x" = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7841 | { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 7842 | echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;} |
| 7843 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7844 | fi |
| 7845 | fi |
| 7846 | } |
| 7847 | elif test "x$want_gnome" = xyes; then |
| 7848 | { |
| 7849 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 7850 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7851 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7853 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
| 7854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7855 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7856 | case $GNOME_CONFIG in |
| 7857 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7858 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 7859 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7860 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7862 | for as_dir in $PATH |
| 7863 | do |
| 7864 | IFS=$as_save_IFS |
| 7865 | test -z "$as_dir" && as_dir=. |
| 7866 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7867 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7868 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7870 | break 2 |
| 7871 | fi |
| 7872 | done |
| 7873 | done |
| 7874 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7875 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 7876 | ;; |
| 7877 | esac |
| 7878 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7879 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
| 7880 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7881 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7882 | echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 7883 | echo "${ECHO_T}$GNOME_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7884 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7885 | echo "$as_me:$LINENO: result: no" >&5 |
| 7886 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7887 | fi |
| 7888 | |
| 7889 | if test "$GNOME_CONFIG" = "no"; then |
| 7890 | no_gnome_config="yes" |
| 7891 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7892 | echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 7893 | echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7894 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7895 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7896 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7897 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 7898 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 7899 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 7900 | have_gnome=yes |
| 7901 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7902 | echo "$as_me:$LINENO: result: no" >&5 |
| 7903 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7904 | no_gnome_config="yes" |
| 7905 | fi |
| 7906 | fi |
| 7907 | |
| 7908 | if test x$exec_prefix = xNONE; then |
| 7909 | if test x$prefix = xNONE; then |
| 7910 | gnome_prefix=$ac_default_prefix/lib |
| 7911 | else |
| 7912 | gnome_prefix=$prefix/lib |
| 7913 | fi |
| 7914 | else |
| 7915 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 7916 | fi |
| 7917 | |
| 7918 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7919 | echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 7920 | echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7921 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7922 | echo "$as_me:$LINENO: result: found" >&5 |
| 7923 | echo "${ECHO_T}found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7924 | echo "loading gnome configuration from" \ |
| 7925 | "$gnome_prefix/gnomeConf.sh" |
| 7926 | . $gnome_prefix/gnomeConf.sh |
| 7927 | have_gnome=yes |
| 7928 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7929 | echo "$as_me:$LINENO: result: not found" >&5 |
| 7930 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7931 | if test x = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7932 | { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 7933 | echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;} |
| 7934 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7935 | fi |
| 7936 | fi |
| 7937 | fi |
| 7938 | } |
| 7939 | fi |
| 7940 | |
| 7941 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7942 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7943 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7944 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7945 | |
| 7946 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 7947 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 7948 | fi |
| 7949 | } |
| 7950 | fi |
| 7951 | } |
| 7952 | fi |
| 7953 | fi |
| 7954 | fi |
| 7955 | |
| 7956 | |
| 7957 | if test -z "$SKIP_MOTIF"; then |
| 7958 | 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" |
| 7959 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 7960 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7961 | echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 7962 | echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7963 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 7964 | GUI_INC_LOC= |
| 7965 | for try in $gui_includes; do |
| 7966 | if test -f "$try/Xm/Xm.h"; then |
| 7967 | GUI_INC_LOC=$try |
| 7968 | fi |
| 7969 | done |
| 7970 | if test -n "$GUI_INC_LOC"; then |
| 7971 | if test "$GUI_INC_LOC" = /usr/include; then |
| 7972 | GUI_INC_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7973 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 7974 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7975 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7976 | echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 7977 | echo "${ECHO_T}$GUI_INC_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7978 | fi |
| 7979 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7980 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 7981 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7982 | SKIP_MOTIF=YES |
| 7983 | fi |
| 7984 | fi |
| 7985 | |
| 7986 | |
| 7987 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7988 | echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 7989 | echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6 |
| 7990 | |
| 7991 | # Check whether --with-motif-lib or --without-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7992 | if test "${with_motif_lib+set}" = set; then |
| 7993 | withval="$with_motif_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7994 | MOTIF_LIBNAME="${withval}" |
| 7995 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7996 | |
| 7997 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7998 | echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 7999 | echo "${ECHO_T}$MOTIF_LIBNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8000 | GUI_LIB_LOC= |
| 8001 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8002 | echo "$as_me:$LINENO: result: no" >&5 |
| 8003 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8004 | |
| 8005 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 8006 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8007 | echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 8008 | echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8009 | 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" |
| 8010 | GUI_LIB_LOC= |
| 8011 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8012 | for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8013 | if test -f "$libtry"; then |
| 8014 | GUI_LIB_LOC=$try |
| 8015 | fi |
| 8016 | done |
| 8017 | done |
| 8018 | if test -n "$GUI_LIB_LOC"; then |
| 8019 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 8020 | GUI_LIB_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8021 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 8022 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8023 | else |
| 8024 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8025 | echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 8026 | echo "${ECHO_T}$GUI_LIB_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8027 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 8028 | uname -r | grep '^5' >/dev/null; then |
| 8029 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 8030 | fi |
| 8031 | fi |
| 8032 | fi |
| 8033 | MOTIF_LIBNAME=-lXm |
| 8034 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8035 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8036 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8037 | SKIP_MOTIF=YES |
| 8038 | fi |
| 8039 | fi |
| 8040 | fi |
| 8041 | |
| 8042 | if test -z "$SKIP_MOTIF"; then |
| 8043 | SKIP_ATHENA=YES |
| 8044 | SKIP_NEXTAW=YES |
| 8045 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8046 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8047 | fi |
| 8048 | |
| 8049 | |
| 8050 | GUI_X_LIBS= |
| 8051 | |
| 8052 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8053 | echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 8054 | echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8055 | cflags_save=$CFLAGS |
| 8056 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8057 | cat >conftest.$ac_ext <<_ACEOF |
| 8058 | /* confdefs.h. */ |
| 8059 | _ACEOF |
| 8060 | cat confdefs.h >>conftest.$ac_ext |
| 8061 | cat >>conftest.$ac_ext <<_ACEOF |
| 8062 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8063 | |
| 8064 | #include <X11/Intrinsic.h> |
| 8065 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8066 | int |
| 8067 | main () |
| 8068 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8069 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8070 | ; |
| 8071 | return 0; |
| 8072 | } |
| 8073 | _ACEOF |
| 8074 | rm -f conftest.$ac_objext |
| 8075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8076 | (eval $ac_compile) 2>conftest.er1 |
| 8077 | ac_status=$? |
| 8078 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8079 | rm -f conftest.er1 |
| 8080 | cat conftest.err >&5 |
| 8081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8082 | (exit $ac_status); } && |
| 8083 | { ac_try='test -z "$ac_c_werror_flag" |
| 8084 | || test ! -s conftest.err' |
| 8085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8086 | (eval $ac_try) 2>&5 |
| 8087 | ac_status=$? |
| 8088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8089 | (exit $ac_status); }; } && |
| 8090 | { ac_try='test -s conftest.$ac_objext' |
| 8091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8092 | (eval $ac_try) 2>&5 |
| 8093 | ac_status=$? |
| 8094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8095 | (exit $ac_status); }; }; then |
| 8096 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8097 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8098 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8099 | echo "$as_me: failed program was:" >&5 |
| 8100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8101 | |
| 8102 | echo "$as_me:$LINENO: result: no" >&5 |
| 8103 | echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8104 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8106 | CFLAGS=$cflags_save |
| 8107 | fi |
| 8108 | |
| 8109 | if test -z "$SKIP_ATHENA"; then |
| 8110 | GUITYPE=ATHENA |
| 8111 | fi |
| 8112 | |
| 8113 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8114 | echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 8115 | echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8116 | cflags_save=$CFLAGS |
| 8117 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8118 | cat >conftest.$ac_ext <<_ACEOF |
| 8119 | /* confdefs.h. */ |
| 8120 | _ACEOF |
| 8121 | cat confdefs.h >>conftest.$ac_ext |
| 8122 | cat >>conftest.$ac_ext <<_ACEOF |
| 8123 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8124 | |
| 8125 | #include <X11/Intrinsic.h> |
| 8126 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8127 | int |
| 8128 | main () |
| 8129 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8130 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8131 | ; |
| 8132 | return 0; |
| 8133 | } |
| 8134 | _ACEOF |
| 8135 | rm -f conftest.$ac_objext |
| 8136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8137 | (eval $ac_compile) 2>conftest.er1 |
| 8138 | ac_status=$? |
| 8139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8140 | rm -f conftest.er1 |
| 8141 | cat conftest.err >&5 |
| 8142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8143 | (exit $ac_status); } && |
| 8144 | { ac_try='test -z "$ac_c_werror_flag" |
| 8145 | || test ! -s conftest.err' |
| 8146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8147 | (eval $ac_try) 2>&5 |
| 8148 | ac_status=$? |
| 8149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8150 | (exit $ac_status); }; } && |
| 8151 | { ac_try='test -s conftest.$ac_objext' |
| 8152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8153 | (eval $ac_try) 2>&5 |
| 8154 | ac_status=$? |
| 8155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8156 | (exit $ac_status); }; }; then |
| 8157 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8158 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8159 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8160 | echo "$as_me: failed program was:" >&5 |
| 8161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8162 | |
| 8163 | echo "$as_me:$LINENO: result: no" >&5 |
| 8164 | echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8165 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8167 | CFLAGS=$cflags_save |
| 8168 | fi |
| 8169 | |
| 8170 | if test -z "$SKIP_NEXTAW"; then |
| 8171 | GUITYPE=NEXTAW |
| 8172 | fi |
| 8173 | |
| 8174 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 8175 | if test -n "$GUI_INC_LOC"; then |
| 8176 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 8177 | fi |
| 8178 | if test -n "$GUI_LIB_LOC"; then |
| 8179 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 8180 | fi |
| 8181 | |
| 8182 | ldflags_save=$LDFLAGS |
| 8183 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8184 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 8185 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 8186 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 8187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8188 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8189 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8190 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8191 | cat >conftest.$ac_ext <<_ACEOF |
| 8192 | /* confdefs.h. */ |
| 8193 | _ACEOF |
| 8194 | cat confdefs.h >>conftest.$ac_ext |
| 8195 | cat >>conftest.$ac_ext <<_ACEOF |
| 8196 | /* end confdefs.h. */ |
| 8197 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8198 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8199 | #ifdef __cplusplus |
| 8200 | extern "C" |
| 8201 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8202 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8203 | builtin and then its argument prototype would still apply. */ |
| 8204 | char XShapeQueryExtension (); |
| 8205 | int |
| 8206 | main () |
| 8207 | { |
| 8208 | XShapeQueryExtension (); |
| 8209 | ; |
| 8210 | return 0; |
| 8211 | } |
| 8212 | _ACEOF |
| 8213 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8215 | (eval $ac_link) 2>conftest.er1 |
| 8216 | ac_status=$? |
| 8217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8218 | rm -f conftest.er1 |
| 8219 | cat conftest.err >&5 |
| 8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8221 | (exit $ac_status); } && |
| 8222 | { ac_try='test -z "$ac_c_werror_flag" |
| 8223 | || test ! -s conftest.err' |
| 8224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8225 | (eval $ac_try) 2>&5 |
| 8226 | ac_status=$? |
| 8227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8228 | (exit $ac_status); }; } && |
| 8229 | { ac_try='test -s conftest$ac_exeext' |
| 8230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8231 | (eval $ac_try) 2>&5 |
| 8232 | ac_status=$? |
| 8233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8234 | (exit $ac_status); }; }; then |
| 8235 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8236 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8237 | echo "$as_me: failed program was:" >&5 |
| 8238 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8239 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8240 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8241 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8242 | rm -f conftest.err conftest.$ac_objext \ |
| 8243 | conftest$ac_exeext conftest.$ac_ext |
| 8244 | LIBS=$ac_check_lib_save_LIBS |
| 8245 | fi |
| 8246 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 8247 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 8248 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8249 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8250 | fi |
| 8251 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8252 | echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 8253 | echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6 |
| 8254 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
| 8255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8256 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8257 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8258 | LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8259 | cat >conftest.$ac_ext <<_ACEOF |
| 8260 | /* confdefs.h. */ |
| 8261 | _ACEOF |
| 8262 | cat confdefs.h >>conftest.$ac_ext |
| 8263 | cat >>conftest.$ac_ext <<_ACEOF |
| 8264 | /* end confdefs.h. */ |
| 8265 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8266 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8267 | #ifdef __cplusplus |
| 8268 | extern "C" |
| 8269 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8270 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8271 | builtin and then its argument prototype would still apply. */ |
| 8272 | char wslen (); |
| 8273 | int |
| 8274 | main () |
| 8275 | { |
| 8276 | wslen (); |
| 8277 | ; |
| 8278 | return 0; |
| 8279 | } |
| 8280 | _ACEOF |
| 8281 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8283 | (eval $ac_link) 2>conftest.er1 |
| 8284 | ac_status=$? |
| 8285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8286 | rm -f conftest.er1 |
| 8287 | cat conftest.err >&5 |
| 8288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8289 | (exit $ac_status); } && |
| 8290 | { ac_try='test -z "$ac_c_werror_flag" |
| 8291 | || test ! -s conftest.err' |
| 8292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8293 | (eval $ac_try) 2>&5 |
| 8294 | ac_status=$? |
| 8295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8296 | (exit $ac_status); }; } && |
| 8297 | { ac_try='test -s conftest$ac_exeext' |
| 8298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8299 | (eval $ac_try) 2>&5 |
| 8300 | ac_status=$? |
| 8301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8302 | (exit $ac_status); }; }; then |
| 8303 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8304 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8305 | echo "$as_me: failed program was:" >&5 |
| 8306 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8307 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8308 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8309 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8310 | rm -f conftest.err conftest.$ac_objext \ |
| 8311 | conftest$ac_exeext conftest.$ac_ext |
| 8312 | LIBS=$ac_check_lib_save_LIBS |
| 8313 | fi |
| 8314 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 8315 | echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6 |
| 8316 | if test $ac_cv_lib_w_wslen = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8317 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8318 | fi |
| 8319 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8320 | echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 8321 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 |
| 8322 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
| 8323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8324 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8325 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8326 | LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8327 | cat >conftest.$ac_ext <<_ACEOF |
| 8328 | /* confdefs.h. */ |
| 8329 | _ACEOF |
| 8330 | cat confdefs.h >>conftest.$ac_ext |
| 8331 | cat >>conftest.$ac_ext <<_ACEOF |
| 8332 | /* end confdefs.h. */ |
| 8333 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8334 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8335 | #ifdef __cplusplus |
| 8336 | extern "C" |
| 8337 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8338 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8339 | builtin and then its argument prototype would still apply. */ |
| 8340 | char dlsym (); |
| 8341 | int |
| 8342 | main () |
| 8343 | { |
| 8344 | dlsym (); |
| 8345 | ; |
| 8346 | return 0; |
| 8347 | } |
| 8348 | _ACEOF |
| 8349 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8351 | (eval $ac_link) 2>conftest.er1 |
| 8352 | ac_status=$? |
| 8353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8354 | rm -f conftest.er1 |
| 8355 | cat conftest.err >&5 |
| 8356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8357 | (exit $ac_status); } && |
| 8358 | { ac_try='test -z "$ac_c_werror_flag" |
| 8359 | || test ! -s conftest.err' |
| 8360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8361 | (eval $ac_try) 2>&5 |
| 8362 | ac_status=$? |
| 8363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8364 | (exit $ac_status); }; } && |
| 8365 | { ac_try='test -s conftest$ac_exeext' |
| 8366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8367 | (eval $ac_try) 2>&5 |
| 8368 | ac_status=$? |
| 8369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8370 | (exit $ac_status); }; }; then |
| 8371 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8372 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8373 | echo "$as_me: failed program was:" >&5 |
| 8374 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8375 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8376 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8377 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8378 | rm -f conftest.err conftest.$ac_objext \ |
| 8379 | conftest$ac_exeext conftest.$ac_ext |
| 8380 | LIBS=$ac_check_lib_save_LIBS |
| 8381 | fi |
| 8382 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 8383 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 |
| 8384 | if test $ac_cv_lib_dl_dlsym = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8385 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8386 | fi |
| 8387 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8388 | echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 8389 | echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6 |
| 8390 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
| 8391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8392 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8393 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8394 | LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8395 | cat >conftest.$ac_ext <<_ACEOF |
| 8396 | /* confdefs.h. */ |
| 8397 | _ACEOF |
| 8398 | cat confdefs.h >>conftest.$ac_ext |
| 8399 | cat >>conftest.$ac_ext <<_ACEOF |
| 8400 | /* end confdefs.h. */ |
| 8401 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8402 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8403 | #ifdef __cplusplus |
| 8404 | extern "C" |
| 8405 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8406 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8407 | builtin and then its argument prototype would still apply. */ |
| 8408 | char XmuCreateStippledPixmap (); |
| 8409 | int |
| 8410 | main () |
| 8411 | { |
| 8412 | XmuCreateStippledPixmap (); |
| 8413 | ; |
| 8414 | return 0; |
| 8415 | } |
| 8416 | _ACEOF |
| 8417 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8419 | (eval $ac_link) 2>conftest.er1 |
| 8420 | ac_status=$? |
| 8421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8422 | rm -f conftest.er1 |
| 8423 | cat conftest.err >&5 |
| 8424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8425 | (exit $ac_status); } && |
| 8426 | { ac_try='test -z "$ac_c_werror_flag" |
| 8427 | || test ! -s conftest.err' |
| 8428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8429 | (eval $ac_try) 2>&5 |
| 8430 | ac_status=$? |
| 8431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8432 | (exit $ac_status); }; } && |
| 8433 | { ac_try='test -s conftest$ac_exeext' |
| 8434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8435 | (eval $ac_try) 2>&5 |
| 8436 | ac_status=$? |
| 8437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8438 | (exit $ac_status); }; }; then |
| 8439 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8440 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8441 | echo "$as_me: failed program was:" >&5 |
| 8442 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8443 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8444 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8445 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8446 | rm -f conftest.err conftest.$ac_objext \ |
| 8447 | conftest$ac_exeext conftest.$ac_ext |
| 8448 | LIBS=$ac_check_lib_save_LIBS |
| 8449 | fi |
| 8450 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 8451 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6 |
| 8452 | if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8453 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8454 | fi |
| 8455 | |
| 8456 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8457 | echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 8458 | echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6 |
| 8459 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
| 8460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8461 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8462 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8463 | LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8464 | cat >conftest.$ac_ext <<_ACEOF |
| 8465 | /* confdefs.h. */ |
| 8466 | _ACEOF |
| 8467 | cat confdefs.h >>conftest.$ac_ext |
| 8468 | cat >>conftest.$ac_ext <<_ACEOF |
| 8469 | /* end confdefs.h. */ |
| 8470 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8471 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8472 | #ifdef __cplusplus |
| 8473 | extern "C" |
| 8474 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8475 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8476 | builtin and then its argument prototype would still apply. */ |
| 8477 | char XpEndJob (); |
| 8478 | int |
| 8479 | main () |
| 8480 | { |
| 8481 | XpEndJob (); |
| 8482 | ; |
| 8483 | return 0; |
| 8484 | } |
| 8485 | _ACEOF |
| 8486 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8488 | (eval $ac_link) 2>conftest.er1 |
| 8489 | ac_status=$? |
| 8490 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8491 | rm -f conftest.er1 |
| 8492 | cat conftest.err >&5 |
| 8493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8494 | (exit $ac_status); } && |
| 8495 | { ac_try='test -z "$ac_c_werror_flag" |
| 8496 | || test ! -s conftest.err' |
| 8497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8498 | (eval $ac_try) 2>&5 |
| 8499 | ac_status=$? |
| 8500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8501 | (exit $ac_status); }; } && |
| 8502 | { ac_try='test -s conftest$ac_exeext' |
| 8503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8504 | (eval $ac_try) 2>&5 |
| 8505 | ac_status=$? |
| 8506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8507 | (exit $ac_status); }; }; then |
| 8508 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8509 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8510 | echo "$as_me: failed program was:" >&5 |
| 8511 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8512 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8513 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8514 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8515 | rm -f conftest.err conftest.$ac_objext \ |
| 8516 | conftest$ac_exeext conftest.$ac_ext |
| 8517 | LIBS=$ac_check_lib_save_LIBS |
| 8518 | fi |
| 8519 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 8520 | echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6 |
| 8521 | if test $ac_cv_lib_Xp_XpEndJob = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8522 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8523 | fi |
| 8524 | |
| 8525 | fi |
| 8526 | LDFLAGS=$ldflags_save |
| 8527 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8528 | echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 8529 | echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8530 | NARROW_PROTO= |
| 8531 | rm -fr conftestdir |
| 8532 | if mkdir conftestdir; then |
| 8533 | cd conftestdir |
| 8534 | cat > Imakefile <<'EOF' |
| 8535 | acfindx: |
| 8536 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 8537 | EOF |
| 8538 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 8539 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 8540 | fi |
| 8541 | cd .. |
| 8542 | rm -fr conftestdir |
| 8543 | fi |
| 8544 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8545 | echo "$as_me:$LINENO: result: no" >&5 |
| 8546 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8547 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8548 | echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 8549 | echo "${ECHO_T}$NARROW_PROTO" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8550 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8551 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8552 | fi |
| 8553 | |
| 8554 | if test "$enable_xsmp" = "yes"; then |
| 8555 | cppflags_save=$CPPFLAGS |
| 8556 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8557 | |
| 8558 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8559 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8560 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8561 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8562 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8566 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8568 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8569 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8570 | # Is the header compilable? |
| 8571 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8572 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8573 | cat >conftest.$ac_ext <<_ACEOF |
| 8574 | /* confdefs.h. */ |
| 8575 | _ACEOF |
| 8576 | cat confdefs.h >>conftest.$ac_ext |
| 8577 | cat >>conftest.$ac_ext <<_ACEOF |
| 8578 | /* end confdefs.h. */ |
| 8579 | $ac_includes_default |
| 8580 | #include <$ac_header> |
| 8581 | _ACEOF |
| 8582 | rm -f conftest.$ac_objext |
| 8583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8584 | (eval $ac_compile) 2>conftest.er1 |
| 8585 | ac_status=$? |
| 8586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8587 | rm -f conftest.er1 |
| 8588 | cat conftest.err >&5 |
| 8589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8590 | (exit $ac_status); } && |
| 8591 | { ac_try='test -z "$ac_c_werror_flag" |
| 8592 | || test ! -s conftest.err' |
| 8593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8594 | (eval $ac_try) 2>&5 |
| 8595 | ac_status=$? |
| 8596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8597 | (exit $ac_status); }; } && |
| 8598 | { ac_try='test -s conftest.$ac_objext' |
| 8599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8600 | (eval $ac_try) 2>&5 |
| 8601 | ac_status=$? |
| 8602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8603 | (exit $ac_status); }; }; then |
| 8604 | ac_header_compiler=yes |
| 8605 | else |
| 8606 | echo "$as_me: failed program was:" >&5 |
| 8607 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8608 | |
| 8609 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8610 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8612 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8613 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8614 | |
| 8615 | # Is the header present? |
| 8616 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8617 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8618 | cat >conftest.$ac_ext <<_ACEOF |
| 8619 | /* confdefs.h. */ |
| 8620 | _ACEOF |
| 8621 | cat confdefs.h >>conftest.$ac_ext |
| 8622 | cat >>conftest.$ac_ext <<_ACEOF |
| 8623 | /* end confdefs.h. */ |
| 8624 | #include <$ac_header> |
| 8625 | _ACEOF |
| 8626 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8627 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8628 | ac_status=$? |
| 8629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8630 | rm -f conftest.er1 |
| 8631 | cat conftest.err >&5 |
| 8632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8633 | (exit $ac_status); } >/dev/null; then |
| 8634 | if test -s conftest.err; then |
| 8635 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8636 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8637 | else |
| 8638 | ac_cpp_err= |
| 8639 | fi |
| 8640 | else |
| 8641 | ac_cpp_err=yes |
| 8642 | fi |
| 8643 | if test -z "$ac_cpp_err"; then |
| 8644 | ac_header_preproc=yes |
| 8645 | else |
| 8646 | echo "$as_me: failed program was:" >&5 |
| 8647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8648 | |
| 8649 | ac_header_preproc=no |
| 8650 | fi |
| 8651 | rm -f conftest.err conftest.$ac_ext |
| 8652 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8653 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8654 | |
| 8655 | # So? What about this header? |
| 8656 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8657 | yes:no: ) |
| 8658 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8659 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8660 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8661 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8662 | ac_header_preproc=yes |
| 8663 | ;; |
| 8664 | no:yes:* ) |
| 8665 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8666 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8667 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8668 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8669 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8670 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8671 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8672 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8673 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8674 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8675 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8676 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8677 | ( |
| 8678 | cat <<\_ASBOX |
| 8679 | ## ------------------------------------------ ## |
| 8680 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8681 | ## ------------------------------------------ ## |
| 8682 | _ASBOX |
| 8683 | ) | |
| 8684 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8685 | ;; |
| 8686 | esac |
| 8687 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8688 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8689 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8691 | else |
| 8692 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8693 | fi |
| 8694 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8695 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8696 | |
| 8697 | fi |
| 8698 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8699 | cat >>confdefs.h <<_ACEOF |
| 8700 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8701 | _ACEOF |
| 8702 | |
| 8703 | fi |
| 8704 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8705 | done |
| 8706 | |
| 8707 | CPPFLAGS=$cppflags_save |
| 8708 | fi |
| 8709 | |
| 8710 | |
| 8711 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 8712 | cppflags_save=$CPPFLAGS |
| 8713 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8714 | |
| 8715 | |
| 8716 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8717 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8718 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8724 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8725 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8726 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8727 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8728 | # Is the header compilable? |
| 8729 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8730 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8731 | cat >conftest.$ac_ext <<_ACEOF |
| 8732 | /* confdefs.h. */ |
| 8733 | _ACEOF |
| 8734 | cat confdefs.h >>conftest.$ac_ext |
| 8735 | cat >>conftest.$ac_ext <<_ACEOF |
| 8736 | /* end confdefs.h. */ |
| 8737 | $ac_includes_default |
| 8738 | #include <$ac_header> |
| 8739 | _ACEOF |
| 8740 | rm -f conftest.$ac_objext |
| 8741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8742 | (eval $ac_compile) 2>conftest.er1 |
| 8743 | ac_status=$? |
| 8744 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8745 | rm -f conftest.er1 |
| 8746 | cat conftest.err >&5 |
| 8747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8748 | (exit $ac_status); } && |
| 8749 | { ac_try='test -z "$ac_c_werror_flag" |
| 8750 | || test ! -s conftest.err' |
| 8751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8752 | (eval $ac_try) 2>&5 |
| 8753 | ac_status=$? |
| 8754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8755 | (exit $ac_status); }; } && |
| 8756 | { ac_try='test -s conftest.$ac_objext' |
| 8757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8758 | (eval $ac_try) 2>&5 |
| 8759 | ac_status=$? |
| 8760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8761 | (exit $ac_status); }; }; then |
| 8762 | ac_header_compiler=yes |
| 8763 | else |
| 8764 | echo "$as_me: failed program was:" >&5 |
| 8765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8766 | |
| 8767 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8768 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8769 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8770 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8771 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8772 | |
| 8773 | # Is the header present? |
| 8774 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8775 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8776 | cat >conftest.$ac_ext <<_ACEOF |
| 8777 | /* confdefs.h. */ |
| 8778 | _ACEOF |
| 8779 | cat confdefs.h >>conftest.$ac_ext |
| 8780 | cat >>conftest.$ac_ext <<_ACEOF |
| 8781 | /* end confdefs.h. */ |
| 8782 | #include <$ac_header> |
| 8783 | _ACEOF |
| 8784 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8785 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8786 | ac_status=$? |
| 8787 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8788 | rm -f conftest.er1 |
| 8789 | cat conftest.err >&5 |
| 8790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8791 | (exit $ac_status); } >/dev/null; then |
| 8792 | if test -s conftest.err; then |
| 8793 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8794 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8795 | else |
| 8796 | ac_cpp_err= |
| 8797 | fi |
| 8798 | else |
| 8799 | ac_cpp_err=yes |
| 8800 | fi |
| 8801 | if test -z "$ac_cpp_err"; then |
| 8802 | ac_header_preproc=yes |
| 8803 | else |
| 8804 | echo "$as_me: failed program was:" >&5 |
| 8805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8806 | |
| 8807 | ac_header_preproc=no |
| 8808 | fi |
| 8809 | rm -f conftest.err conftest.$ac_ext |
| 8810 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8811 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8812 | |
| 8813 | # So? What about this header? |
| 8814 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8815 | yes:no: ) |
| 8816 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8817 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8818 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8819 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8820 | ac_header_preproc=yes |
| 8821 | ;; |
| 8822 | no:yes:* ) |
| 8823 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8824 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8825 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8826 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8827 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8828 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8829 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8830 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8831 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8832 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8833 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8834 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8835 | ( |
| 8836 | cat <<\_ASBOX |
| 8837 | ## ------------------------------------------ ## |
| 8838 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8839 | ## ------------------------------------------ ## |
| 8840 | _ASBOX |
| 8841 | ) | |
| 8842 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8843 | ;; |
| 8844 | esac |
| 8845 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8846 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8847 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8849 | else |
| 8850 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8851 | fi |
| 8852 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8853 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8854 | |
| 8855 | fi |
| 8856 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8857 | cat >>confdefs.h <<_ACEOF |
| 8858 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8859 | _ACEOF |
| 8860 | |
| 8861 | fi |
| 8862 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8863 | done |
| 8864 | |
| 8865 | |
| 8866 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8867 | echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 8868 | echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6 |
| 8869 | cat >conftest.$ac_ext <<_ACEOF |
| 8870 | /* confdefs.h. */ |
| 8871 | _ACEOF |
| 8872 | cat confdefs.h >>conftest.$ac_ext |
| 8873 | cat >>conftest.$ac_ext <<_ACEOF |
| 8874 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8875 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8876 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8877 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8878 | $EGREP "XIMText" >/dev/null 2>&1; then |
| 8879 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8880 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8881 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8882 | echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 8883 | echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8884 | fi |
| 8885 | rm -f conftest* |
| 8886 | |
| 8887 | fi |
| 8888 | CPPFLAGS=$cppflags_save |
| 8889 | |
| 8890 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 8891 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8892 | echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 8893 | echo "${ECHO_T}X GUI selected; xim has been enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8894 | enable_xim="yes" |
| 8895 | fi |
| 8896 | fi |
| 8897 | |
| 8898 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 8899 | cppflags_save=$CPPFLAGS |
| 8900 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8901 | echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 8902 | echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6 |
| 8903 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8904 | /* confdefs.h. */ |
| 8905 | _ACEOF |
| 8906 | cat confdefs.h >>conftest.$ac_ext |
| 8907 | cat >>conftest.$ac_ext <<_ACEOF |
| 8908 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8909 | |
| 8910 | #include <X11/Intrinsic.h> |
| 8911 | #include <X11/Xmu/Editres.h> |
| 8912 | int |
| 8913 | main () |
| 8914 | { |
| 8915 | int i; i = 0; |
| 8916 | ; |
| 8917 | return 0; |
| 8918 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8919 | _ACEOF |
| 8920 | rm -f conftest.$ac_objext |
| 8921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8922 | (eval $ac_compile) 2>conftest.er1 |
| 8923 | ac_status=$? |
| 8924 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8925 | rm -f conftest.er1 |
| 8926 | cat conftest.err >&5 |
| 8927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8928 | (exit $ac_status); } && |
| 8929 | { ac_try='test -z "$ac_c_werror_flag" |
| 8930 | || test ! -s conftest.err' |
| 8931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8932 | (eval $ac_try) 2>&5 |
| 8933 | ac_status=$? |
| 8934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8935 | (exit $ac_status); }; } && |
| 8936 | { ac_try='test -s conftest.$ac_objext' |
| 8937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8938 | (eval $ac_try) 2>&5 |
| 8939 | ac_status=$? |
| 8940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8941 | (exit $ac_status); }; }; then |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8942 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8943 | echo "${ECHO_T}yes" >&6 |
| 8944 | cat >>confdefs.h <<\_ACEOF |
| 8945 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 8946 | _ACEOF |
| 8947 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8948 | else |
| 8949 | echo "$as_me: failed program was:" >&5 |
| 8950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8951 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8952 | echo "$as_me:$LINENO: result: no" >&5 |
| 8953 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8954 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8956 | CPPFLAGS=$cppflags_save |
| 8957 | fi |
| 8958 | |
| 8959 | if test -z "$SKIP_MOTIF"; then |
| 8960 | cppflags_save=$CPPFLAGS |
| 8961 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8962 | |
| 8963 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8964 | |
| 8965 | |
| 8966 | |
| 8967 | |
| 8968 | for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \ |
| 8969 | Xm/UnhighlightT.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8970 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8971 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8972 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8973 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8974 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8975 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8977 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8978 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8979 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8980 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8981 | # Is the header compilable? |
| 8982 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8983 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8984 | cat >conftest.$ac_ext <<_ACEOF |
| 8985 | /* confdefs.h. */ |
| 8986 | _ACEOF |
| 8987 | cat confdefs.h >>conftest.$ac_ext |
| 8988 | cat >>conftest.$ac_ext <<_ACEOF |
| 8989 | /* end confdefs.h. */ |
| 8990 | $ac_includes_default |
| 8991 | #include <$ac_header> |
| 8992 | _ACEOF |
| 8993 | rm -f conftest.$ac_objext |
| 8994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8995 | (eval $ac_compile) 2>conftest.er1 |
| 8996 | ac_status=$? |
| 8997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8998 | rm -f conftest.er1 |
| 8999 | cat conftest.err >&5 |
| 9000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9001 | (exit $ac_status); } && |
| 9002 | { ac_try='test -z "$ac_c_werror_flag" |
| 9003 | || test ! -s conftest.err' |
| 9004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9005 | (eval $ac_try) 2>&5 |
| 9006 | ac_status=$? |
| 9007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9008 | (exit $ac_status); }; } && |
| 9009 | { ac_try='test -s conftest.$ac_objext' |
| 9010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9011 | (eval $ac_try) 2>&5 |
| 9012 | ac_status=$? |
| 9013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9014 | (exit $ac_status); }; }; then |
| 9015 | ac_header_compiler=yes |
| 9016 | else |
| 9017 | echo "$as_me: failed program was:" >&5 |
| 9018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9019 | |
| 9020 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9021 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9023 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9024 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9025 | |
| 9026 | # Is the header present? |
| 9027 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9028 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9029 | cat >conftest.$ac_ext <<_ACEOF |
| 9030 | /* confdefs.h. */ |
| 9031 | _ACEOF |
| 9032 | cat confdefs.h >>conftest.$ac_ext |
| 9033 | cat >>conftest.$ac_ext <<_ACEOF |
| 9034 | /* end confdefs.h. */ |
| 9035 | #include <$ac_header> |
| 9036 | _ACEOF |
| 9037 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9038 | (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then |
| 9045 | if test -s conftest.err; then |
| 9046 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9047 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9048 | else |
| 9049 | ac_cpp_err= |
| 9050 | fi |
| 9051 | else |
| 9052 | ac_cpp_err=yes |
| 9053 | fi |
| 9054 | if test -z "$ac_cpp_err"; then |
| 9055 | ac_header_preproc=yes |
| 9056 | else |
| 9057 | echo "$as_me: failed program was:" >&5 |
| 9058 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9059 | |
| 9060 | ac_header_preproc=no |
| 9061 | fi |
| 9062 | rm -f conftest.err conftest.$ac_ext |
| 9063 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9064 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9065 | |
| 9066 | # So? What about this header? |
| 9067 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9068 | yes:no: ) |
| 9069 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9070 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9071 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9072 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9073 | ac_header_preproc=yes |
| 9074 | ;; |
| 9075 | no:yes:* ) |
| 9076 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9077 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9078 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9079 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9080 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9081 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9082 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9083 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9084 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9085 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9086 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9087 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9088 | ( |
| 9089 | cat <<\_ASBOX |
| 9090 | ## ------------------------------------------ ## |
| 9091 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9092 | ## ------------------------------------------ ## |
| 9093 | _ASBOX |
| 9094 | ) | |
| 9095 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9096 | ;; |
| 9097 | esac |
| 9098 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9099 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9100 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9102 | else |
| 9103 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9104 | fi |
| 9105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9106 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9107 | |
| 9108 | fi |
| 9109 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9110 | cat >>confdefs.h <<_ACEOF |
| 9111 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9112 | _ACEOF |
| 9113 | |
| 9114 | fi |
| 9115 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9116 | done |
| 9117 | |
| 9118 | CPPFLAGS=$cppflags_save |
| 9119 | fi |
| 9120 | |
| 9121 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9122 | echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 9123 | echo "${ECHO_T}no GUI selected; xim has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9124 | enable_xim="no" |
| 9125 | fi |
| 9126 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9127 | echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 9128 | echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9129 | enable_fontset="no" |
| 9130 | fi |
| 9131 | if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9132 | echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 9133 | echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9134 | enable_fontset="no" |
| 9135 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9136 | |
| 9137 | if test -z "$SKIP_PHOTON"; then |
| 9138 | GUITYPE=PHOTONGUI |
| 9139 | fi |
| 9140 | |
| 9141 | |
| 9142 | |
| 9143 | |
| 9144 | |
| 9145 | |
| 9146 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9147 | { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 9148 | echo "$as_me: error: cannot use workshop without Motif" >&2;} |
| 9149 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9150 | fi |
| 9151 | |
| 9152 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9153 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9154 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9155 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9156 | |
| 9157 | fi |
| 9158 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9159 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9160 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9161 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9162 | |
| 9163 | fi |
| 9164 | |
| 9165 | |
| 9166 | |
| 9167 | |
| 9168 | if test "$enable_hangulinput" = "yes"; then |
| 9169 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9170 | echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 9171 | echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9172 | enable_hangulinput=no |
| 9173 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9174 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9175 | #define FEAT_HANGULIN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9176 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9177 | |
| 9178 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9179 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9180 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9181 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9182 | fi |
| 9183 | fi |
| 9184 | |
| 9185 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9186 | echo "$as_me:$LINENO: checking quality of toupper" >&5 |
| 9187 | echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9188 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9189 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 9190 | echo "$as_me: error: failed to compile test program" >&2;} |
| 9191 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9192 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9193 | cat >conftest.$ac_ext <<_ACEOF |
| 9194 | /* confdefs.h. */ |
| 9195 | _ACEOF |
| 9196 | cat confdefs.h >>conftest.$ac_ext |
| 9197 | cat >>conftest.$ac_ext <<_ACEOF |
| 9198 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9199 | #include <ctype.h> |
| 9200 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9201 | _ACEOF |
| 9202 | rm -f conftest$ac_exeext |
| 9203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9204 | (eval $ac_link) 2>&5 |
| 9205 | ac_status=$? |
| 9206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9207 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9209 | (eval $ac_try) 2>&5 |
| 9210 | ac_status=$? |
| 9211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9212 | (exit $ac_status); }; }; then |
| 9213 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9214 | #define BROKEN_TOUPPER 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9215 | _ACEOF |
| 9216 | echo "$as_me:$LINENO: result: bad" >&5 |
| 9217 | echo "${ECHO_T}bad" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9218 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9219 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9220 | echo "$as_me: failed program was:" >&5 |
| 9221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9222 | |
| 9223 | ( exit $ac_status ) |
| 9224 | echo "$as_me:$LINENO: result: good" >&5 |
| 9225 | echo "${ECHO_T}good" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9226 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9227 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9228 | fi |
| 9229 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9230 | echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 9231 | echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6 |
| 9232 | cat >conftest.$ac_ext <<_ACEOF |
| 9233 | /* confdefs.h. */ |
| 9234 | _ACEOF |
| 9235 | cat confdefs.h >>conftest.$ac_ext |
| 9236 | cat >>conftest.$ac_ext <<_ACEOF |
| 9237 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9238 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9239 | int |
| 9240 | main () |
| 9241 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9242 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9243 | ; |
| 9244 | return 0; |
| 9245 | } |
| 9246 | _ACEOF |
| 9247 | rm -f conftest.$ac_objext |
| 9248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9249 | (eval $ac_compile) 2>conftest.er1 |
| 9250 | ac_status=$? |
| 9251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9252 | rm -f conftest.er1 |
| 9253 | cat conftest.err >&5 |
| 9254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9255 | (exit $ac_status); } && |
| 9256 | { ac_try='test -z "$ac_c_werror_flag" |
| 9257 | || test ! -s conftest.err' |
| 9258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9259 | (eval $ac_try) 2>&5 |
| 9260 | ac_status=$? |
| 9261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9262 | (exit $ac_status); }; } && |
| 9263 | { ac_try='test -s conftest.$ac_objext' |
| 9264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9265 | (eval $ac_try) 2>&5 |
| 9266 | ac_status=$? |
| 9267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9268 | (exit $ac_status); }; }; then |
| 9269 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9270 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9271 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9272 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9273 | |
| 9274 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9275 | echo "$as_me: failed program was:" >&5 |
| 9276 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9277 | |
| 9278 | echo "$as_me:$LINENO: result: no" >&5 |
| 9279 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9280 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9282 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9283 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9284 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 9285 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 9286 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9288 | fi |
| 9289 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 9290 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9291 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9292 | # Is the header compilable? |
| 9293 | echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 9294 | echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6 |
| 9295 | cat >conftest.$ac_ext <<_ACEOF |
| 9296 | /* confdefs.h. */ |
| 9297 | _ACEOF |
| 9298 | cat confdefs.h >>conftest.$ac_ext |
| 9299 | cat >>conftest.$ac_ext <<_ACEOF |
| 9300 | /* end confdefs.h. */ |
| 9301 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9302 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9303 | _ACEOF |
| 9304 | rm -f conftest.$ac_objext |
| 9305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9306 | (eval $ac_compile) 2>conftest.er1 |
| 9307 | ac_status=$? |
| 9308 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9309 | rm -f conftest.er1 |
| 9310 | cat conftest.err >&5 |
| 9311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9312 | (exit $ac_status); } && |
| 9313 | { ac_try='test -z "$ac_c_werror_flag" |
| 9314 | || test ! -s conftest.err' |
| 9315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9316 | (eval $ac_try) 2>&5 |
| 9317 | ac_status=$? |
| 9318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9319 | (exit $ac_status); }; } && |
| 9320 | { ac_try='test -s conftest.$ac_objext' |
| 9321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9322 | (eval $ac_try) 2>&5 |
| 9323 | ac_status=$? |
| 9324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9325 | (exit $ac_status); }; }; then |
| 9326 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9327 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9328 | echo "$as_me: failed program was:" >&5 |
| 9329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9330 | |
| 9331 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9332 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9334 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9335 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9336 | |
| 9337 | # Is the header present? |
| 9338 | echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 9339 | echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6 |
| 9340 | cat >conftest.$ac_ext <<_ACEOF |
| 9341 | /* confdefs.h. */ |
| 9342 | _ACEOF |
| 9343 | cat confdefs.h >>conftest.$ac_ext |
| 9344 | cat >>conftest.$ac_ext <<_ACEOF |
| 9345 | /* end confdefs.h. */ |
| 9346 | #include <elf.h> |
| 9347 | _ACEOF |
| 9348 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9349 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9350 | ac_status=$? |
| 9351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9352 | rm -f conftest.er1 |
| 9353 | cat conftest.err >&5 |
| 9354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9355 | (exit $ac_status); } >/dev/null; then |
| 9356 | if test -s conftest.err; then |
| 9357 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9358 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9359 | else |
| 9360 | ac_cpp_err= |
| 9361 | fi |
| 9362 | else |
| 9363 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9364 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9365 | if test -z "$ac_cpp_err"; then |
| 9366 | ac_header_preproc=yes |
| 9367 | else |
| 9368 | echo "$as_me: failed program was:" >&5 |
| 9369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9370 | |
| 9371 | ac_header_preproc=no |
| 9372 | fi |
| 9373 | rm -f conftest.err conftest.$ac_ext |
| 9374 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9375 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9376 | |
| 9377 | # So? What about this header? |
| 9378 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9379 | yes:no: ) |
| 9380 | { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9381 | echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9382 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 9383 | echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;} |
| 9384 | ac_header_preproc=yes |
| 9385 | ;; |
| 9386 | no:yes:* ) |
| 9387 | { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 9388 | echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 9389 | { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 9390 | echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 9391 | { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 9392 | echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 9393 | { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9394 | echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9395 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 9396 | echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 9397 | { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 9398 | echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 9399 | ( |
| 9400 | cat <<\_ASBOX |
| 9401 | ## ------------------------------------------ ## |
| 9402 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9403 | ## ------------------------------------------ ## |
| 9404 | _ASBOX |
| 9405 | ) | |
| 9406 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9407 | ;; |
| 9408 | esac |
| 9409 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 9410 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 9411 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9413 | else |
| 9414 | ac_cv_header_elf_h=$ac_header_preproc |
| 9415 | fi |
| 9416 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 9417 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
| 9418 | |
| 9419 | fi |
| 9420 | if test $ac_cv_header_elf_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9421 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9422 | fi |
| 9423 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9424 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9425 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9426 | |
| 9427 | echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 9428 | echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6 |
| 9429 | if test "${ac_cv_lib_elf_main+set}" = set; then |
| 9430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9431 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9432 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9433 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9434 | cat >conftest.$ac_ext <<_ACEOF |
| 9435 | /* confdefs.h. */ |
| 9436 | _ACEOF |
| 9437 | cat confdefs.h >>conftest.$ac_ext |
| 9438 | cat >>conftest.$ac_ext <<_ACEOF |
| 9439 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9440 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9441 | |
| 9442 | int |
| 9443 | main () |
| 9444 | { |
| 9445 | main (); |
| 9446 | ; |
| 9447 | return 0; |
| 9448 | } |
| 9449 | _ACEOF |
| 9450 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9452 | (eval $ac_link) 2>conftest.er1 |
| 9453 | ac_status=$? |
| 9454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9455 | rm -f conftest.er1 |
| 9456 | cat conftest.err >&5 |
| 9457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9458 | (exit $ac_status); } && |
| 9459 | { ac_try='test -z "$ac_c_werror_flag" |
| 9460 | || test ! -s conftest.err' |
| 9461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9462 | (eval $ac_try) 2>&5 |
| 9463 | ac_status=$? |
| 9464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9465 | (exit $ac_status); }; } && |
| 9466 | { ac_try='test -s conftest$ac_exeext' |
| 9467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9468 | (eval $ac_try) 2>&5 |
| 9469 | ac_status=$? |
| 9470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9471 | (exit $ac_status); }; }; then |
| 9472 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9473 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9474 | echo "$as_me: failed program was:" >&5 |
| 9475 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9476 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9477 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9478 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9479 | rm -f conftest.err conftest.$ac_objext \ |
| 9480 | conftest$ac_exeext conftest.$ac_ext |
| 9481 | LIBS=$ac_check_lib_save_LIBS |
| 9482 | fi |
| 9483 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 9484 | echo "${ECHO_T}$ac_cv_lib_elf_main" >&6 |
| 9485 | if test $ac_cv_lib_elf_main = yes; then |
| 9486 | cat >>confdefs.h <<_ACEOF |
| 9487 | #define HAVE_LIBELF 1 |
| 9488 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9489 | |
| 9490 | LIBS="-lelf $LIBS" |
| 9491 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9492 | fi |
| 9493 | |
| 9494 | fi |
| 9495 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9496 | |
| 9497 | |
| 9498 | |
| 9499 | |
| 9500 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9501 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9502 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 9503 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9504 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9505 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 9506 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9508 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9509 | cat >conftest.$ac_ext <<_ACEOF |
| 9510 | /* confdefs.h. */ |
| 9511 | _ACEOF |
| 9512 | cat confdefs.h >>conftest.$ac_ext |
| 9513 | cat >>conftest.$ac_ext <<_ACEOF |
| 9514 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9515 | #include <sys/types.h> |
| 9516 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9517 | |
| 9518 | int |
| 9519 | main () |
| 9520 | { |
| 9521 | if ((DIR *) 0) |
| 9522 | return 0; |
| 9523 | ; |
| 9524 | return 0; |
| 9525 | } |
| 9526 | _ACEOF |
| 9527 | rm -f conftest.$ac_objext |
| 9528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9529 | (eval $ac_compile) 2>conftest.er1 |
| 9530 | ac_status=$? |
| 9531 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9532 | rm -f conftest.er1 |
| 9533 | cat conftest.err >&5 |
| 9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9535 | (exit $ac_status); } && |
| 9536 | { ac_try='test -z "$ac_c_werror_flag" |
| 9537 | || test ! -s conftest.err' |
| 9538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9539 | (eval $ac_try) 2>&5 |
| 9540 | ac_status=$? |
| 9541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9542 | (exit $ac_status); }; } && |
| 9543 | { ac_try='test -s conftest.$ac_objext' |
| 9544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9545 | (eval $ac_try) 2>&5 |
| 9546 | ac_status=$? |
| 9547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9548 | (exit $ac_status); }; }; then |
| 9549 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9550 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9551 | echo "$as_me: failed program was:" >&5 |
| 9552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9553 | |
| 9554 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9555 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9557 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9558 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9559 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9560 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9561 | cat >>confdefs.h <<_ACEOF |
| 9562 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 9563 | _ACEOF |
| 9564 | |
| 9565 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9566 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9567 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9568 | done |
| 9569 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9570 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9571 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9572 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 9573 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9575 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9576 | ac_func_search_save_LIBS=$LIBS |
| 9577 | ac_cv_search_opendir=no |
| 9578 | cat >conftest.$ac_ext <<_ACEOF |
| 9579 | /* confdefs.h. */ |
| 9580 | _ACEOF |
| 9581 | cat confdefs.h >>conftest.$ac_ext |
| 9582 | cat >>conftest.$ac_ext <<_ACEOF |
| 9583 | /* end confdefs.h. */ |
| 9584 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9585 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9586 | #ifdef __cplusplus |
| 9587 | extern "C" |
| 9588 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9589 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9590 | builtin and then its argument prototype would still apply. */ |
| 9591 | char opendir (); |
| 9592 | int |
| 9593 | main () |
| 9594 | { |
| 9595 | opendir (); |
| 9596 | ; |
| 9597 | return 0; |
| 9598 | } |
| 9599 | _ACEOF |
| 9600 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9602 | (eval $ac_link) 2>conftest.er1 |
| 9603 | ac_status=$? |
| 9604 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9605 | rm -f conftest.er1 |
| 9606 | cat conftest.err >&5 |
| 9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9608 | (exit $ac_status); } && |
| 9609 | { ac_try='test -z "$ac_c_werror_flag" |
| 9610 | || test ! -s conftest.err' |
| 9611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9612 | (eval $ac_try) 2>&5 |
| 9613 | ac_status=$? |
| 9614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9615 | (exit $ac_status); }; } && |
| 9616 | { ac_try='test -s conftest$ac_exeext' |
| 9617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9618 | (eval $ac_try) 2>&5 |
| 9619 | ac_status=$? |
| 9620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9621 | (exit $ac_status); }; }; then |
| 9622 | ac_cv_search_opendir="none required" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9623 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9624 | echo "$as_me: failed program was:" >&5 |
| 9625 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9626 | |
| 9627 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9628 | rm -f conftest.err conftest.$ac_objext \ |
| 9629 | conftest$ac_exeext conftest.$ac_ext |
| 9630 | if test "$ac_cv_search_opendir" = no; then |
| 9631 | for ac_lib in dir; do |
| 9632 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9633 | cat >conftest.$ac_ext <<_ACEOF |
| 9634 | /* confdefs.h. */ |
| 9635 | _ACEOF |
| 9636 | cat confdefs.h >>conftest.$ac_ext |
| 9637 | cat >>conftest.$ac_ext <<_ACEOF |
| 9638 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9639 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9640 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9641 | #ifdef __cplusplus |
| 9642 | extern "C" |
| 9643 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9644 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9645 | builtin and then its argument prototype would still apply. */ |
| 9646 | char opendir (); |
| 9647 | int |
| 9648 | main () |
| 9649 | { |
| 9650 | opendir (); |
| 9651 | ; |
| 9652 | return 0; |
| 9653 | } |
| 9654 | _ACEOF |
| 9655 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9657 | (eval $ac_link) 2>conftest.er1 |
| 9658 | ac_status=$? |
| 9659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9660 | rm -f conftest.er1 |
| 9661 | cat conftest.err >&5 |
| 9662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9663 | (exit $ac_status); } && |
| 9664 | { ac_try='test -z "$ac_c_werror_flag" |
| 9665 | || test ! -s conftest.err' |
| 9666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9667 | (eval $ac_try) 2>&5 |
| 9668 | ac_status=$? |
| 9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9670 | (exit $ac_status); }; } && |
| 9671 | { ac_try='test -s conftest$ac_exeext' |
| 9672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9673 | (eval $ac_try) 2>&5 |
| 9674 | ac_status=$? |
| 9675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9676 | (exit $ac_status); }; }; then |
| 9677 | ac_cv_search_opendir="-l$ac_lib" |
| 9678 | break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9679 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9680 | echo "$as_me: failed program was:" >&5 |
| 9681 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9682 | |
| 9683 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9684 | rm -f conftest.err conftest.$ac_objext \ |
| 9685 | conftest$ac_exeext conftest.$ac_ext |
| 9686 | done |
| 9687 | fi |
| 9688 | LIBS=$ac_func_search_save_LIBS |
| 9689 | fi |
| 9690 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9691 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 9692 | if test "$ac_cv_search_opendir" != no; then |
| 9693 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 9694 | |
| 9695 | fi |
| 9696 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9697 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9698 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9699 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 9700 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9702 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9703 | ac_func_search_save_LIBS=$LIBS |
| 9704 | ac_cv_search_opendir=no |
| 9705 | cat >conftest.$ac_ext <<_ACEOF |
| 9706 | /* confdefs.h. */ |
| 9707 | _ACEOF |
| 9708 | cat confdefs.h >>conftest.$ac_ext |
| 9709 | cat >>conftest.$ac_ext <<_ACEOF |
| 9710 | /* end confdefs.h. */ |
| 9711 | |
| 9712 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9713 | #ifdef __cplusplus |
| 9714 | extern "C" |
| 9715 | #endif |
| 9716 | /* We use char because int might match the return type of a gcc2 |
| 9717 | builtin and then its argument prototype would still apply. */ |
| 9718 | char opendir (); |
| 9719 | int |
| 9720 | main () |
| 9721 | { |
| 9722 | opendir (); |
| 9723 | ; |
| 9724 | return 0; |
| 9725 | } |
| 9726 | _ACEOF |
| 9727 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9729 | (eval $ac_link) 2>conftest.er1 |
| 9730 | ac_status=$? |
| 9731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9732 | rm -f conftest.er1 |
| 9733 | cat conftest.err >&5 |
| 9734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9735 | (exit $ac_status); } && |
| 9736 | { ac_try='test -z "$ac_c_werror_flag" |
| 9737 | || test ! -s conftest.err' |
| 9738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9739 | (eval $ac_try) 2>&5 |
| 9740 | ac_status=$? |
| 9741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9742 | (exit $ac_status); }; } && |
| 9743 | { ac_try='test -s conftest$ac_exeext' |
| 9744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9745 | (eval $ac_try) 2>&5 |
| 9746 | ac_status=$? |
| 9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9748 | (exit $ac_status); }; }; then |
| 9749 | ac_cv_search_opendir="none required" |
| 9750 | else |
| 9751 | echo "$as_me: failed program was:" >&5 |
| 9752 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9753 | |
| 9754 | fi |
| 9755 | rm -f conftest.err conftest.$ac_objext \ |
| 9756 | conftest$ac_exeext conftest.$ac_ext |
| 9757 | if test "$ac_cv_search_opendir" = no; then |
| 9758 | for ac_lib in x; do |
| 9759 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9760 | cat >conftest.$ac_ext <<_ACEOF |
| 9761 | /* confdefs.h. */ |
| 9762 | _ACEOF |
| 9763 | cat confdefs.h >>conftest.$ac_ext |
| 9764 | cat >>conftest.$ac_ext <<_ACEOF |
| 9765 | /* end confdefs.h. */ |
| 9766 | |
| 9767 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9768 | #ifdef __cplusplus |
| 9769 | extern "C" |
| 9770 | #endif |
| 9771 | /* We use char because int might match the return type of a gcc2 |
| 9772 | builtin and then its argument prototype would still apply. */ |
| 9773 | char opendir (); |
| 9774 | int |
| 9775 | main () |
| 9776 | { |
| 9777 | opendir (); |
| 9778 | ; |
| 9779 | return 0; |
| 9780 | } |
| 9781 | _ACEOF |
| 9782 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9784 | (eval $ac_link) 2>conftest.er1 |
| 9785 | ac_status=$? |
| 9786 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9787 | rm -f conftest.er1 |
| 9788 | cat conftest.err >&5 |
| 9789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9790 | (exit $ac_status); } && |
| 9791 | { ac_try='test -z "$ac_c_werror_flag" |
| 9792 | || test ! -s conftest.err' |
| 9793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9794 | (eval $ac_try) 2>&5 |
| 9795 | ac_status=$? |
| 9796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9797 | (exit $ac_status); }; } && |
| 9798 | { ac_try='test -s conftest$ac_exeext' |
| 9799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9800 | (eval $ac_try) 2>&5 |
| 9801 | ac_status=$? |
| 9802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9803 | (exit $ac_status); }; }; then |
| 9804 | ac_cv_search_opendir="-l$ac_lib" |
| 9805 | break |
| 9806 | else |
| 9807 | echo "$as_me: failed program was:" >&5 |
| 9808 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9809 | |
| 9810 | fi |
| 9811 | rm -f conftest.err conftest.$ac_objext \ |
| 9812 | conftest$ac_exeext conftest.$ac_ext |
| 9813 | done |
| 9814 | fi |
| 9815 | LIBS=$ac_func_search_save_LIBS |
| 9816 | fi |
| 9817 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9818 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 9819 | if test "$ac_cv_search_opendir" != no; then |
| 9820 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 9821 | |
| 9822 | fi |
| 9823 | |
| 9824 | fi |
| 9825 | |
| 9826 | |
| 9827 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 9828 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 9829 | if test "${ac_cv_header_stdc+set}" = set; then |
| 9830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9831 | else |
| 9832 | cat >conftest.$ac_ext <<_ACEOF |
| 9833 | /* confdefs.h. */ |
| 9834 | _ACEOF |
| 9835 | cat confdefs.h >>conftest.$ac_ext |
| 9836 | cat >>conftest.$ac_ext <<_ACEOF |
| 9837 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9838 | #include <stdlib.h> |
| 9839 | #include <stdarg.h> |
| 9840 | #include <string.h> |
| 9841 | #include <float.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9842 | |
| 9843 | int |
| 9844 | main () |
| 9845 | { |
| 9846 | |
| 9847 | ; |
| 9848 | return 0; |
| 9849 | } |
| 9850 | _ACEOF |
| 9851 | rm -f conftest.$ac_objext |
| 9852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9853 | (eval $ac_compile) 2>conftest.er1 |
| 9854 | ac_status=$? |
| 9855 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9856 | rm -f conftest.er1 |
| 9857 | cat conftest.err >&5 |
| 9858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9859 | (exit $ac_status); } && |
| 9860 | { ac_try='test -z "$ac_c_werror_flag" |
| 9861 | || test ! -s conftest.err' |
| 9862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9863 | (eval $ac_try) 2>&5 |
| 9864 | ac_status=$? |
| 9865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9866 | (exit $ac_status); }; } && |
| 9867 | { ac_try='test -s conftest.$ac_objext' |
| 9868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9869 | (eval $ac_try) 2>&5 |
| 9870 | ac_status=$? |
| 9871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9872 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9873 | ac_cv_header_stdc=yes |
| 9874 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9875 | echo "$as_me: failed program was:" >&5 |
| 9876 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9877 | |
| 9878 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9879 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9881 | |
| 9882 | if test $ac_cv_header_stdc = yes; then |
| 9883 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9884 | cat >conftest.$ac_ext <<_ACEOF |
| 9885 | /* confdefs.h. */ |
| 9886 | _ACEOF |
| 9887 | cat confdefs.h >>conftest.$ac_ext |
| 9888 | cat >>conftest.$ac_ext <<_ACEOF |
| 9889 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9890 | #include <string.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9891 | |
| 9892 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9893 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9894 | $EGREP "memchr" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9895 | : |
| 9896 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9897 | ac_cv_header_stdc=no |
| 9898 | fi |
| 9899 | rm -f conftest* |
| 9900 | |
| 9901 | fi |
| 9902 | |
| 9903 | if test $ac_cv_header_stdc = yes; then |
| 9904 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9905 | cat >conftest.$ac_ext <<_ACEOF |
| 9906 | /* confdefs.h. */ |
| 9907 | _ACEOF |
| 9908 | cat confdefs.h >>conftest.$ac_ext |
| 9909 | cat >>conftest.$ac_ext <<_ACEOF |
| 9910 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9911 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9912 | |
| 9913 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9914 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9915 | $EGREP "free" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9916 | : |
| 9917 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9918 | ac_cv_header_stdc=no |
| 9919 | fi |
| 9920 | rm -f conftest* |
| 9921 | |
| 9922 | fi |
| 9923 | |
| 9924 | if test $ac_cv_header_stdc = yes; then |
| 9925 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9926 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9927 | : |
| 9928 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9929 | cat >conftest.$ac_ext <<_ACEOF |
| 9930 | /* confdefs.h. */ |
| 9931 | _ACEOF |
| 9932 | cat confdefs.h >>conftest.$ac_ext |
| 9933 | cat >>conftest.$ac_ext <<_ACEOF |
| 9934 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9935 | #include <ctype.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9936 | #if ((' ' & 0x0FF) == 0x020) |
| 9937 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 9938 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 9939 | #else |
| 9940 | # define ISLOWER(c) \ |
| 9941 | (('a' <= (c) && (c) <= 'i') \ |
| 9942 | || ('j' <= (c) && (c) <= 'r') \ |
| 9943 | || ('s' <= (c) && (c) <= 'z')) |
| 9944 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 9945 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9946 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9947 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 9948 | int |
| 9949 | main () |
| 9950 | { |
| 9951 | int i; |
| 9952 | for (i = 0; i < 256; i++) |
| 9953 | if (XOR (islower (i), ISLOWER (i)) |
| 9954 | || toupper (i) != TOUPPER (i)) |
| 9955 | exit(2); |
| 9956 | exit (0); |
| 9957 | } |
| 9958 | _ACEOF |
| 9959 | rm -f conftest$ac_exeext |
| 9960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9961 | (eval $ac_link) 2>&5 |
| 9962 | ac_status=$? |
| 9963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9964 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9966 | (eval $ac_try) 2>&5 |
| 9967 | ac_status=$? |
| 9968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9969 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9970 | : |
| 9971 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9972 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9973 | echo "$as_me: failed program was:" >&5 |
| 9974 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9975 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9976 | ( exit $ac_status ) |
| 9977 | ac_cv_header_stdc=no |
| 9978 | fi |
| 9979 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9980 | fi |
| 9981 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9982 | fi |
| 9983 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 9984 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9985 | if test $ac_cv_header_stdc = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9986 | |
| 9987 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9988 | #define STDC_HEADERS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9989 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9990 | |
| 9991 | fi |
| 9992 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9993 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 9994 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 9995 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 9996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9997 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9998 | cat >conftest.$ac_ext <<_ACEOF |
| 9999 | /* confdefs.h. */ |
| 10000 | _ACEOF |
| 10001 | cat confdefs.h >>conftest.$ac_ext |
| 10002 | cat >>conftest.$ac_ext <<_ACEOF |
| 10003 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10004 | #include <sys/types.h> |
| 10005 | #include <sys/wait.h> |
| 10006 | #ifndef WEXITSTATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10007 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10008 | #endif |
| 10009 | #ifndef WIFEXITED |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10010 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10011 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10012 | |
| 10013 | int |
| 10014 | main () |
| 10015 | { |
| 10016 | int s; |
| 10017 | wait (&s); |
| 10018 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 10019 | ; |
| 10020 | return 0; |
| 10021 | } |
| 10022 | _ACEOF |
| 10023 | rm -f conftest.$ac_objext |
| 10024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10025 | (eval $ac_compile) 2>conftest.er1 |
| 10026 | ac_status=$? |
| 10027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10028 | rm -f conftest.er1 |
| 10029 | cat conftest.err >&5 |
| 10030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10031 | (exit $ac_status); } && |
| 10032 | { ac_try='test -z "$ac_c_werror_flag" |
| 10033 | || test ! -s conftest.err' |
| 10034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10035 | (eval $ac_try) 2>&5 |
| 10036 | ac_status=$? |
| 10037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10038 | (exit $ac_status); }; } && |
| 10039 | { ac_try='test -s conftest.$ac_objext' |
| 10040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10041 | (eval $ac_try) 2>&5 |
| 10042 | ac_status=$? |
| 10043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10044 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10045 | ac_cv_header_sys_wait_h=yes |
| 10046 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10047 | echo "$as_me: failed program was:" >&5 |
| 10048 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10049 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10050 | ac_cv_header_sys_wait_h=no |
| 10051 | fi |
| 10052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10053 | fi |
| 10054 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 10055 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10056 | if test $ac_cv_header_sys_wait_h = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10057 | |
| 10058 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10059 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10060 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10061 | |
| 10062 | fi |
| 10063 | |
| 10064 | |
| 10065 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10066 | echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 10067 | echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6 |
| 10068 | cat >conftest.$ac_ext <<_ACEOF |
| 10069 | /* confdefs.h. */ |
| 10070 | _ACEOF |
| 10071 | cat confdefs.h >>conftest.$ac_ext |
| 10072 | cat >>conftest.$ac_ext <<_ACEOF |
| 10073 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10074 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10075 | int |
| 10076 | main () |
| 10077 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10078 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10079 | ; |
| 10080 | return 0; |
| 10081 | } |
| 10082 | _ACEOF |
| 10083 | rm -f conftest.$ac_objext |
| 10084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10085 | (eval $ac_compile) 2>conftest.er1 |
| 10086 | ac_status=$? |
| 10087 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10088 | rm -f conftest.er1 |
| 10089 | cat conftest.err >&5 |
| 10090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10091 | (exit $ac_status); } && |
| 10092 | { ac_try='test -z "$ac_c_werror_flag" |
| 10093 | || test ! -s conftest.err' |
| 10094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10095 | (eval $ac_try) 2>&5 |
| 10096 | ac_status=$? |
| 10097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10098 | (exit $ac_status); }; } && |
| 10099 | { ac_try='test -s conftest.$ac_objext' |
| 10100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10101 | (eval $ac_try) 2>&5 |
| 10102 | ac_status=$? |
| 10103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10104 | (exit $ac_status); }; }; then |
| 10105 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10106 | echo "${ECHO_T}yes" >&6 |
| 10107 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10108 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10109 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10110 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10111 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10112 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10113 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10114 | |
| 10115 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10116 | echo "$as_me: failed program was:" >&5 |
| 10117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10118 | |
| 10119 | echo "$as_me:$LINENO: result: no" >&5 |
| 10120 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10121 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10123 | fi |
| 10124 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10125 | |
| 10126 | |
| 10127 | |
| 10128 | |
| 10129 | |
| 10130 | |
| 10131 | |
| 10132 | |
| 10133 | |
| 10134 | |
| 10135 | |
| 10136 | |
| 10137 | |
| 10138 | |
| 10139 | |
| 10140 | |
| 10141 | |
| 10142 | |
| 10143 | |
| 10144 | |
| 10145 | |
| 10146 | |
| 10147 | |
| 10148 | |
| 10149 | |
| 10150 | |
| 10151 | |
| 10152 | |
| 10153 | |
| 10154 | |
| 10155 | |
| 10156 | |
| 10157 | |
| 10158 | |
| 10159 | |
| 10160 | |
| 10161 | |
| 10162 | |
| 10163 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10164 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10165 | for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10166 | termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \ |
| 10167 | iconv.h langinfo.h unistd.h stropts.h errno.h \ |
| 10168 | sys/resource.h sys/systeminfo.h locale.h \ |
| 10169 | sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ |
| 10170 | poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10171 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10172 | sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10173 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10174 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10175 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10176 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10177 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10180 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10182 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10183 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10184 | # Is the header compilable? |
| 10185 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10186 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10187 | cat >conftest.$ac_ext <<_ACEOF |
| 10188 | /* confdefs.h. */ |
| 10189 | _ACEOF |
| 10190 | cat confdefs.h >>conftest.$ac_ext |
| 10191 | cat >>conftest.$ac_ext <<_ACEOF |
| 10192 | /* end confdefs.h. */ |
| 10193 | $ac_includes_default |
| 10194 | #include <$ac_header> |
| 10195 | _ACEOF |
| 10196 | rm -f conftest.$ac_objext |
| 10197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10198 | (eval $ac_compile) 2>conftest.er1 |
| 10199 | ac_status=$? |
| 10200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10201 | rm -f conftest.er1 |
| 10202 | cat conftest.err >&5 |
| 10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10204 | (exit $ac_status); } && |
| 10205 | { ac_try='test -z "$ac_c_werror_flag" |
| 10206 | || test ! -s conftest.err' |
| 10207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10208 | (eval $ac_try) 2>&5 |
| 10209 | ac_status=$? |
| 10210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10211 | (exit $ac_status); }; } && |
| 10212 | { ac_try='test -s conftest.$ac_objext' |
| 10213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10214 | (eval $ac_try) 2>&5 |
| 10215 | ac_status=$? |
| 10216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10217 | (exit $ac_status); }; }; then |
| 10218 | ac_header_compiler=yes |
| 10219 | else |
| 10220 | echo "$as_me: failed program was:" >&5 |
| 10221 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10222 | |
| 10223 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10224 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10226 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10227 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10228 | |
| 10229 | # Is the header present? |
| 10230 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10231 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10232 | cat >conftest.$ac_ext <<_ACEOF |
| 10233 | /* confdefs.h. */ |
| 10234 | _ACEOF |
| 10235 | cat confdefs.h >>conftest.$ac_ext |
| 10236 | cat >>conftest.$ac_ext <<_ACEOF |
| 10237 | /* end confdefs.h. */ |
| 10238 | #include <$ac_header> |
| 10239 | _ACEOF |
| 10240 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10241 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10242 | ac_status=$? |
| 10243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10244 | rm -f conftest.er1 |
| 10245 | cat conftest.err >&5 |
| 10246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10247 | (exit $ac_status); } >/dev/null; then |
| 10248 | if test -s conftest.err; then |
| 10249 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10250 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10251 | else |
| 10252 | ac_cpp_err= |
| 10253 | fi |
| 10254 | else |
| 10255 | ac_cpp_err=yes |
| 10256 | fi |
| 10257 | if test -z "$ac_cpp_err"; then |
| 10258 | ac_header_preproc=yes |
| 10259 | else |
| 10260 | echo "$as_me: failed program was:" >&5 |
| 10261 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10262 | |
| 10263 | ac_header_preproc=no |
| 10264 | fi |
| 10265 | rm -f conftest.err conftest.$ac_ext |
| 10266 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10267 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10268 | |
| 10269 | # So? What about this header? |
| 10270 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10271 | yes:no: ) |
| 10272 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10273 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10274 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10275 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10276 | ac_header_preproc=yes |
| 10277 | ;; |
| 10278 | no:yes:* ) |
| 10279 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10280 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10281 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10282 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10283 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10284 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10285 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10286 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10287 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10288 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10289 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10290 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10291 | ( |
| 10292 | cat <<\_ASBOX |
| 10293 | ## ------------------------------------------ ## |
| 10294 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10295 | ## ------------------------------------------ ## |
| 10296 | _ASBOX |
| 10297 | ) | |
| 10298 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10299 | ;; |
| 10300 | esac |
| 10301 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10305 | else |
| 10306 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10307 | fi |
| 10308 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10309 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10310 | |
| 10311 | fi |
| 10312 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10313 | cat >>confdefs.h <<_ACEOF |
| 10314 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10315 | _ACEOF |
| 10316 | |
| 10317 | fi |
| 10318 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10319 | done |
| 10320 | |
| 10321 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10322 | echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 10323 | echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6 |
| 10324 | cat >conftest.$ac_ext <<_ACEOF |
| 10325 | /* confdefs.h. */ |
| 10326 | _ACEOF |
| 10327 | cat confdefs.h >>conftest.$ac_ext |
| 10328 | cat >>conftest.$ac_ext <<_ACEOF |
| 10329 | /* end confdefs.h. */ |
| 10330 | |
| 10331 | #include <pthread.h> |
| 10332 | #include <pthread_np.h> |
| 10333 | int |
| 10334 | main () |
| 10335 | { |
| 10336 | int i; i = 0; |
| 10337 | ; |
| 10338 | return 0; |
| 10339 | } |
| 10340 | _ACEOF |
| 10341 | rm -f conftest.$ac_objext |
| 10342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10343 | (eval $ac_compile) 2>conftest.er1 |
| 10344 | ac_status=$? |
| 10345 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10346 | rm -f conftest.er1 |
| 10347 | cat conftest.err >&5 |
| 10348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10349 | (exit $ac_status); } && |
| 10350 | { ac_try='test -z "$ac_c_werror_flag" |
| 10351 | || test ! -s conftest.err' |
| 10352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10353 | (eval $ac_try) 2>&5 |
| 10354 | ac_status=$? |
| 10355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10356 | (exit $ac_status); }; } && |
| 10357 | { ac_try='test -s conftest.$ac_objext' |
| 10358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10359 | (eval $ac_try) 2>&5 |
| 10360 | ac_status=$? |
| 10361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10362 | (exit $ac_status); }; }; then |
| 10363 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10364 | echo "${ECHO_T}yes" >&6 |
| 10365 | cat >>confdefs.h <<\_ACEOF |
| 10366 | #define HAVE_PTHREAD_NP_H 1 |
| 10367 | _ACEOF |
| 10368 | |
| 10369 | else |
| 10370 | echo "$as_me: failed program was:" >&5 |
| 10371 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10372 | |
| 10373 | echo "$as_me:$LINENO: result: no" >&5 |
| 10374 | echo "${ECHO_T}no" >&6 |
| 10375 | fi |
| 10376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10377 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10378 | |
| 10379 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10380 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10381 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10382 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10383 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10384 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10385 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10387 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10388 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10389 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10390 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10391 | # Is the header compilable? |
| 10392 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10393 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10394 | cat >conftest.$ac_ext <<_ACEOF |
| 10395 | /* confdefs.h. */ |
| 10396 | _ACEOF |
| 10397 | cat confdefs.h >>conftest.$ac_ext |
| 10398 | cat >>conftest.$ac_ext <<_ACEOF |
| 10399 | /* end confdefs.h. */ |
| 10400 | $ac_includes_default |
| 10401 | #include <$ac_header> |
| 10402 | _ACEOF |
| 10403 | rm -f conftest.$ac_objext |
| 10404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10405 | (eval $ac_compile) 2>conftest.er1 |
| 10406 | ac_status=$? |
| 10407 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10408 | rm -f conftest.er1 |
| 10409 | cat conftest.err >&5 |
| 10410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10411 | (exit $ac_status); } && |
| 10412 | { ac_try='test -z "$ac_c_werror_flag" |
| 10413 | || test ! -s conftest.err' |
| 10414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10415 | (eval $ac_try) 2>&5 |
| 10416 | ac_status=$? |
| 10417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10418 | (exit $ac_status); }; } && |
| 10419 | { ac_try='test -s conftest.$ac_objext' |
| 10420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10421 | (eval $ac_try) 2>&5 |
| 10422 | ac_status=$? |
| 10423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10424 | (exit $ac_status); }; }; then |
| 10425 | ac_header_compiler=yes |
| 10426 | else |
| 10427 | echo "$as_me: failed program was:" >&5 |
| 10428 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10429 | |
| 10430 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10431 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10432 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10433 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10434 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10435 | |
| 10436 | # Is the header present? |
| 10437 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10438 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10439 | cat >conftest.$ac_ext <<_ACEOF |
| 10440 | /* confdefs.h. */ |
| 10441 | _ACEOF |
| 10442 | cat confdefs.h >>conftest.$ac_ext |
| 10443 | cat >>conftest.$ac_ext <<_ACEOF |
| 10444 | /* end confdefs.h. */ |
| 10445 | #include <$ac_header> |
| 10446 | _ACEOF |
| 10447 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10448 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10449 | ac_status=$? |
| 10450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10451 | rm -f conftest.er1 |
| 10452 | cat conftest.err >&5 |
| 10453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10454 | (exit $ac_status); } >/dev/null; then |
| 10455 | if test -s conftest.err; then |
| 10456 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10457 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10458 | else |
| 10459 | ac_cpp_err= |
| 10460 | fi |
| 10461 | else |
| 10462 | ac_cpp_err=yes |
| 10463 | fi |
| 10464 | if test -z "$ac_cpp_err"; then |
| 10465 | ac_header_preproc=yes |
| 10466 | else |
| 10467 | echo "$as_me: failed program was:" >&5 |
| 10468 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10469 | |
| 10470 | ac_header_preproc=no |
| 10471 | fi |
| 10472 | rm -f conftest.err conftest.$ac_ext |
| 10473 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10474 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10475 | |
| 10476 | # So? What about this header? |
| 10477 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10478 | yes:no: ) |
| 10479 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10480 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10481 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10482 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10483 | ac_header_preproc=yes |
| 10484 | ;; |
| 10485 | no:yes:* ) |
| 10486 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10487 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10488 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10489 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10490 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10491 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10492 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10493 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10494 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10495 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10496 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10497 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10498 | ( |
| 10499 | cat <<\_ASBOX |
| 10500 | ## ------------------------------------------ ## |
| 10501 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10502 | ## ------------------------------------------ ## |
| 10503 | _ASBOX |
| 10504 | ) | |
| 10505 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10506 | ;; |
| 10507 | esac |
| 10508 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10509 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10510 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10512 | else |
| 10513 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10514 | fi |
| 10515 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10516 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10517 | |
| 10518 | fi |
| 10519 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10520 | cat >>confdefs.h <<_ACEOF |
| 10521 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10522 | _ACEOF |
| 10523 | |
| 10524 | fi |
| 10525 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10526 | done |
| 10527 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 10528 | if test "x$MACOSX" = "xyes"; then |
| 10529 | cat >>confdefs.h <<\_ACEOF |
| 10530 | #define NO_STRINGS_WITH_STRING_H 1 |
| 10531 | _ACEOF |
| 10532 | |
| 10533 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10534 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10535 | echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 10536 | echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10537 | cppflags_save=$CPPFLAGS |
| 10538 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10539 | cat >conftest.$ac_ext <<_ACEOF |
| 10540 | /* confdefs.h. */ |
| 10541 | _ACEOF |
| 10542 | cat confdefs.h >>conftest.$ac_ext |
| 10543 | cat >>conftest.$ac_ext <<_ACEOF |
| 10544 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10545 | |
| 10546 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 10547 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 10548 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 10549 | #endif |
| 10550 | #ifdef HAVE_XM_XM_H |
| 10551 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 10552 | #endif |
| 10553 | #ifdef HAVE_STRING_H |
| 10554 | # include <string.h> |
| 10555 | #endif |
| 10556 | #if defined(HAVE_STRINGS_H) |
| 10557 | # include <strings.h> |
| 10558 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10559 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10560 | int |
| 10561 | main () |
| 10562 | { |
| 10563 | int i; i = 0; |
| 10564 | ; |
| 10565 | return 0; |
| 10566 | } |
| 10567 | _ACEOF |
| 10568 | rm -f conftest.$ac_objext |
| 10569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10570 | (eval $ac_compile) 2>conftest.er1 |
| 10571 | ac_status=$? |
| 10572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10573 | rm -f conftest.er1 |
| 10574 | cat conftest.err >&5 |
| 10575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10576 | (exit $ac_status); } && |
| 10577 | { ac_try='test -z "$ac_c_werror_flag" |
| 10578 | || test ! -s conftest.err' |
| 10579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10580 | (eval $ac_try) 2>&5 |
| 10581 | ac_status=$? |
| 10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10583 | (exit $ac_status); }; } && |
| 10584 | { ac_try='test -s conftest.$ac_objext' |
| 10585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10586 | (eval $ac_try) 2>&5 |
| 10587 | ac_status=$? |
| 10588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10589 | (exit $ac_status); }; }; then |
| 10590 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10591 | echo "${ECHO_T}yes" >&6 |
| 10592 | else |
| 10593 | echo "$as_me: failed program was:" >&5 |
| 10594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10595 | |
| 10596 | cat >>confdefs.h <<\_ACEOF |
| 10597 | #define NO_STRINGS_WITH_STRING_H 1 |
| 10598 | _ACEOF |
| 10599 | |
| 10600 | echo "$as_me:$LINENO: result: no" >&5 |
| 10601 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10602 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10604 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 10605 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10606 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10607 | if test $ac_cv_c_compiler_gnu = yes; then |
| 10608 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 10609 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 10610 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 10611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10612 | else |
| 10613 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10614 | cat >conftest.$ac_ext <<_ACEOF |
| 10615 | /* confdefs.h. */ |
| 10616 | _ACEOF |
| 10617 | cat confdefs.h >>conftest.$ac_ext |
| 10618 | cat >>conftest.$ac_ext <<_ACEOF |
| 10619 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10620 | #include <sgtty.h> |
| 10621 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10622 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10624 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10625 | ac_cv_prog_gcc_traditional=yes |
| 10626 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10627 | ac_cv_prog_gcc_traditional=no |
| 10628 | fi |
| 10629 | rm -f conftest* |
| 10630 | |
| 10631 | |
| 10632 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10633 | cat >conftest.$ac_ext <<_ACEOF |
| 10634 | /* confdefs.h. */ |
| 10635 | _ACEOF |
| 10636 | cat confdefs.h >>conftest.$ac_ext |
| 10637 | cat >>conftest.$ac_ext <<_ACEOF |
| 10638 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10639 | #include <termio.h> |
| 10640 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10641 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10642 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10643 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10644 | ac_cv_prog_gcc_traditional=yes |
| 10645 | fi |
| 10646 | rm -f conftest* |
| 10647 | |
| 10648 | fi |
| 10649 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10650 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 10651 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10652 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 10653 | CC="$CC -traditional" |
| 10654 | fi |
| 10655 | fi |
| 10656 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10657 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 10658 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 10659 | if test "${ac_cv_c_const+set}" = set; then |
| 10660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10661 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10662 | cat >conftest.$ac_ext <<_ACEOF |
| 10663 | /* confdefs.h. */ |
| 10664 | _ACEOF |
| 10665 | cat confdefs.h >>conftest.$ac_ext |
| 10666 | cat >>conftest.$ac_ext <<_ACEOF |
| 10667 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10668 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10669 | int |
| 10670 | main () |
| 10671 | { |
| 10672 | /* FIXME: Include the comments suggested by Paul. */ |
| 10673 | #ifndef __cplusplus |
| 10674 | /* Ultrix mips cc rejects this. */ |
| 10675 | typedef int charset[2]; |
| 10676 | const charset x; |
| 10677 | /* SunOS 4.1.1 cc rejects this. */ |
| 10678 | char const *const *ccp; |
| 10679 | char **p; |
| 10680 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 10681 | struct point {int x, y;}; |
| 10682 | static struct point const zero = {0,0}; |
| 10683 | /* AIX XL C 1.02.0.0 rejects this. |
| 10684 | It does not let you subtract one const X* pointer from another in |
| 10685 | an arm of an if-expression whose if-part is not a constant |
| 10686 | expression */ |
| 10687 | const char *g = "string"; |
| 10688 | ccp = &g + (g ? g-g : 0); |
| 10689 | /* HPUX 7.0 cc rejects these. */ |
| 10690 | ++ccp; |
| 10691 | p = (char**) ccp; |
| 10692 | ccp = (char const *const *) p; |
| 10693 | { /* SCO 3.2v4 cc rejects this. */ |
| 10694 | char *t; |
| 10695 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10696 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10697 | *t++ = 0; |
| 10698 | } |
| 10699 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 10700 | int x[] = {25, 17}; |
| 10701 | const int *foo = &x[0]; |
| 10702 | ++foo; |
| 10703 | } |
| 10704 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 10705 | typedef const int *iptr; |
| 10706 | iptr p = 0; |
| 10707 | ++p; |
| 10708 | } |
| 10709 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 10710 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 10711 | struct s { int j; const int *ap[3]; }; |
| 10712 | struct s *b; b->j = 5; |
| 10713 | } |
| 10714 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 10715 | const int foo = 10; |
| 10716 | } |
| 10717 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10718 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10719 | ; |
| 10720 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10721 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10722 | _ACEOF |
| 10723 | rm -f conftest.$ac_objext |
| 10724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10725 | (eval $ac_compile) 2>conftest.er1 |
| 10726 | ac_status=$? |
| 10727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10728 | rm -f conftest.er1 |
| 10729 | cat conftest.err >&5 |
| 10730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10731 | (exit $ac_status); } && |
| 10732 | { ac_try='test -z "$ac_c_werror_flag" |
| 10733 | || test ! -s conftest.err' |
| 10734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10735 | (eval $ac_try) 2>&5 |
| 10736 | ac_status=$? |
| 10737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10738 | (exit $ac_status); }; } && |
| 10739 | { ac_try='test -s conftest.$ac_objext' |
| 10740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10741 | (eval $ac_try) 2>&5 |
| 10742 | ac_status=$? |
| 10743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10744 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10745 | ac_cv_c_const=yes |
| 10746 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10747 | echo "$as_me: failed program was:" >&5 |
| 10748 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10749 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10750 | ac_cv_c_const=no |
| 10751 | fi |
| 10752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10753 | fi |
| 10754 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 10755 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10756 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10757 | |
| 10758 | cat >>confdefs.h <<\_ACEOF |
| 10759 | #define const |
| 10760 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10761 | |
| 10762 | fi |
| 10763 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10764 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 10765 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 10766 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 10767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10768 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10769 | cat >conftest.$ac_ext <<_ACEOF |
| 10770 | /* confdefs.h. */ |
| 10771 | _ACEOF |
| 10772 | cat confdefs.h >>conftest.$ac_ext |
| 10773 | cat >>conftest.$ac_ext <<_ACEOF |
| 10774 | /* end confdefs.h. */ |
| 10775 | $ac_includes_default |
| 10776 | int |
| 10777 | main () |
| 10778 | { |
| 10779 | if ((mode_t *) 0) |
| 10780 | return 0; |
| 10781 | if (sizeof (mode_t)) |
| 10782 | return 0; |
| 10783 | ; |
| 10784 | return 0; |
| 10785 | } |
| 10786 | _ACEOF |
| 10787 | rm -f conftest.$ac_objext |
| 10788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10789 | (eval $ac_compile) 2>conftest.er1 |
| 10790 | ac_status=$? |
| 10791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10792 | rm -f conftest.er1 |
| 10793 | cat conftest.err >&5 |
| 10794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10795 | (exit $ac_status); } && |
| 10796 | { ac_try='test -z "$ac_c_werror_flag" |
| 10797 | || test ! -s conftest.err' |
| 10798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10799 | (eval $ac_try) 2>&5 |
| 10800 | ac_status=$? |
| 10801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10802 | (exit $ac_status); }; } && |
| 10803 | { ac_try='test -s conftest.$ac_objext' |
| 10804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10805 | (eval $ac_try) 2>&5 |
| 10806 | ac_status=$? |
| 10807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10808 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10809 | ac_cv_type_mode_t=yes |
| 10810 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10811 | echo "$as_me: failed program was:" >&5 |
| 10812 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10813 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10814 | ac_cv_type_mode_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10815 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10817 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10818 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 10819 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 10820 | if test $ac_cv_type_mode_t = yes; then |
| 10821 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10822 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10823 | |
| 10824 | cat >>confdefs.h <<_ACEOF |
| 10825 | #define mode_t int |
| 10826 | _ACEOF |
| 10827 | |
| 10828 | fi |
| 10829 | |
| 10830 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 10831 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 10832 | if test "${ac_cv_type_off_t+set}" = set; then |
| 10833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10834 | else |
| 10835 | cat >conftest.$ac_ext <<_ACEOF |
| 10836 | /* confdefs.h. */ |
| 10837 | _ACEOF |
| 10838 | cat confdefs.h >>conftest.$ac_ext |
| 10839 | cat >>conftest.$ac_ext <<_ACEOF |
| 10840 | /* end confdefs.h. */ |
| 10841 | $ac_includes_default |
| 10842 | int |
| 10843 | main () |
| 10844 | { |
| 10845 | if ((off_t *) 0) |
| 10846 | return 0; |
| 10847 | if (sizeof (off_t)) |
| 10848 | return 0; |
| 10849 | ; |
| 10850 | return 0; |
| 10851 | } |
| 10852 | _ACEOF |
| 10853 | rm -f conftest.$ac_objext |
| 10854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10855 | (eval $ac_compile) 2>conftest.er1 |
| 10856 | ac_status=$? |
| 10857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10858 | rm -f conftest.er1 |
| 10859 | cat conftest.err >&5 |
| 10860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10861 | (exit $ac_status); } && |
| 10862 | { ac_try='test -z "$ac_c_werror_flag" |
| 10863 | || test ! -s conftest.err' |
| 10864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10865 | (eval $ac_try) 2>&5 |
| 10866 | ac_status=$? |
| 10867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10868 | (exit $ac_status); }; } && |
| 10869 | { ac_try='test -s conftest.$ac_objext' |
| 10870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10871 | (eval $ac_try) 2>&5 |
| 10872 | ac_status=$? |
| 10873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10874 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10875 | ac_cv_type_off_t=yes |
| 10876 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10877 | echo "$as_me: failed program was:" >&5 |
| 10878 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10879 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10880 | ac_cv_type_off_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10881 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10883 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10884 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 10885 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 10886 | if test $ac_cv_type_off_t = yes; then |
| 10887 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10888 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10889 | |
| 10890 | cat >>confdefs.h <<_ACEOF |
| 10891 | #define off_t long |
| 10892 | _ACEOF |
| 10893 | |
| 10894 | fi |
| 10895 | |
| 10896 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 10897 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 10898 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 10899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10900 | else |
| 10901 | cat >conftest.$ac_ext <<_ACEOF |
| 10902 | /* confdefs.h. */ |
| 10903 | _ACEOF |
| 10904 | cat confdefs.h >>conftest.$ac_ext |
| 10905 | cat >>conftest.$ac_ext <<_ACEOF |
| 10906 | /* end confdefs.h. */ |
| 10907 | $ac_includes_default |
| 10908 | int |
| 10909 | main () |
| 10910 | { |
| 10911 | if ((pid_t *) 0) |
| 10912 | return 0; |
| 10913 | if (sizeof (pid_t)) |
| 10914 | return 0; |
| 10915 | ; |
| 10916 | return 0; |
| 10917 | } |
| 10918 | _ACEOF |
| 10919 | rm -f conftest.$ac_objext |
| 10920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10921 | (eval $ac_compile) 2>conftest.er1 |
| 10922 | ac_status=$? |
| 10923 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10924 | rm -f conftest.er1 |
| 10925 | cat conftest.err >&5 |
| 10926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10927 | (exit $ac_status); } && |
| 10928 | { ac_try='test -z "$ac_c_werror_flag" |
| 10929 | || test ! -s conftest.err' |
| 10930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10931 | (eval $ac_try) 2>&5 |
| 10932 | ac_status=$? |
| 10933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10934 | (exit $ac_status); }; } && |
| 10935 | { ac_try='test -s conftest.$ac_objext' |
| 10936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10937 | (eval $ac_try) 2>&5 |
| 10938 | ac_status=$? |
| 10939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10940 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10941 | ac_cv_type_pid_t=yes |
| 10942 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10943 | echo "$as_me: failed program was:" >&5 |
| 10944 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10945 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10946 | ac_cv_type_pid_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10947 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10949 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10950 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 10951 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 10952 | if test $ac_cv_type_pid_t = yes; then |
| 10953 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10954 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10955 | |
| 10956 | cat >>confdefs.h <<_ACEOF |
| 10957 | #define pid_t int |
| 10958 | _ACEOF |
| 10959 | |
| 10960 | fi |
| 10961 | |
| 10962 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 10963 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 10964 | if test "${ac_cv_type_size_t+set}" = set; then |
| 10965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10966 | else |
| 10967 | cat >conftest.$ac_ext <<_ACEOF |
| 10968 | /* confdefs.h. */ |
| 10969 | _ACEOF |
| 10970 | cat confdefs.h >>conftest.$ac_ext |
| 10971 | cat >>conftest.$ac_ext <<_ACEOF |
| 10972 | /* end confdefs.h. */ |
| 10973 | $ac_includes_default |
| 10974 | int |
| 10975 | main () |
| 10976 | { |
| 10977 | if ((size_t *) 0) |
| 10978 | return 0; |
| 10979 | if (sizeof (size_t)) |
| 10980 | return 0; |
| 10981 | ; |
| 10982 | return 0; |
| 10983 | } |
| 10984 | _ACEOF |
| 10985 | rm -f conftest.$ac_objext |
| 10986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10987 | (eval $ac_compile) 2>conftest.er1 |
| 10988 | ac_status=$? |
| 10989 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10990 | rm -f conftest.er1 |
| 10991 | cat conftest.err >&5 |
| 10992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10993 | (exit $ac_status); } && |
| 10994 | { ac_try='test -z "$ac_c_werror_flag" |
| 10995 | || test ! -s conftest.err' |
| 10996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10997 | (eval $ac_try) 2>&5 |
| 10998 | ac_status=$? |
| 10999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11000 | (exit $ac_status); }; } && |
| 11001 | { ac_try='test -s conftest.$ac_objext' |
| 11002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11003 | (eval $ac_try) 2>&5 |
| 11004 | ac_status=$? |
| 11005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11006 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11007 | ac_cv_type_size_t=yes |
| 11008 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11009 | echo "$as_me: failed program was:" >&5 |
| 11010 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11011 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11012 | ac_cv_type_size_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11013 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11015 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11016 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 11017 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 11018 | if test $ac_cv_type_size_t = yes; then |
| 11019 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11020 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11021 | |
| 11022 | cat >>confdefs.h <<_ACEOF |
| 11023 | #define size_t unsigned |
| 11024 | _ACEOF |
| 11025 | |
| 11026 | fi |
| 11027 | |
| 11028 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 11029 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 11030 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 11031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11032 | else |
| 11033 | cat >conftest.$ac_ext <<_ACEOF |
| 11034 | /* confdefs.h. */ |
| 11035 | _ACEOF |
| 11036 | cat confdefs.h >>conftest.$ac_ext |
| 11037 | cat >>conftest.$ac_ext <<_ACEOF |
| 11038 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11039 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11040 | |
| 11041 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11042 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11043 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11044 | ac_cv_type_uid_t=yes |
| 11045 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11046 | ac_cv_type_uid_t=no |
| 11047 | fi |
| 11048 | rm -f conftest* |
| 11049 | |
| 11050 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11051 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 11052 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11053 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11054 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11055 | cat >>confdefs.h <<\_ACEOF |
| 11056 | #define uid_t int |
| 11057 | _ACEOF |
| 11058 | |
| 11059 | |
| 11060 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11061 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11062 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11063 | |
| 11064 | fi |
| 11065 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11066 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 11067 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 11068 | if test "${ac_cv_header_time+set}" = set; then |
| 11069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11070 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11071 | cat >conftest.$ac_ext <<_ACEOF |
| 11072 | /* confdefs.h. */ |
| 11073 | _ACEOF |
| 11074 | cat confdefs.h >>conftest.$ac_ext |
| 11075 | cat >>conftest.$ac_ext <<_ACEOF |
| 11076 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11077 | #include <sys/types.h> |
| 11078 | #include <sys/time.h> |
| 11079 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11080 | |
| 11081 | int |
| 11082 | main () |
| 11083 | { |
| 11084 | if ((struct tm *) 0) |
| 11085 | return 0; |
| 11086 | ; |
| 11087 | return 0; |
| 11088 | } |
| 11089 | _ACEOF |
| 11090 | rm -f conftest.$ac_objext |
| 11091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11092 | (eval $ac_compile) 2>conftest.er1 |
| 11093 | ac_status=$? |
| 11094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11095 | rm -f conftest.er1 |
| 11096 | cat conftest.err >&5 |
| 11097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11098 | (exit $ac_status); } && |
| 11099 | { ac_try='test -z "$ac_c_werror_flag" |
| 11100 | || test ! -s conftest.err' |
| 11101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11102 | (eval $ac_try) 2>&5 |
| 11103 | ac_status=$? |
| 11104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11105 | (exit $ac_status); }; } && |
| 11106 | { ac_try='test -s conftest.$ac_objext' |
| 11107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11108 | (eval $ac_try) 2>&5 |
| 11109 | ac_status=$? |
| 11110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11111 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11112 | ac_cv_header_time=yes |
| 11113 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11114 | echo "$as_me: failed program was:" >&5 |
| 11115 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11116 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11117 | ac_cv_header_time=no |
| 11118 | fi |
| 11119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11120 | fi |
| 11121 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 11122 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11123 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11124 | |
| 11125 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11126 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11127 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11128 | |
| 11129 | fi |
| 11130 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11131 | echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 11132 | echo $ECHO_N "checking for ino_t... $ECHO_C" >&6 |
| 11133 | if test "${ac_cv_type_ino_t+set}" = set; then |
| 11134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11135 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11136 | cat >conftest.$ac_ext <<_ACEOF |
| 11137 | /* confdefs.h. */ |
| 11138 | _ACEOF |
| 11139 | cat confdefs.h >>conftest.$ac_ext |
| 11140 | cat >>conftest.$ac_ext <<_ACEOF |
| 11141 | /* end confdefs.h. */ |
| 11142 | $ac_includes_default |
| 11143 | int |
| 11144 | main () |
| 11145 | { |
| 11146 | if ((ino_t *) 0) |
| 11147 | return 0; |
| 11148 | if (sizeof (ino_t)) |
| 11149 | return 0; |
| 11150 | ; |
| 11151 | return 0; |
| 11152 | } |
| 11153 | _ACEOF |
| 11154 | rm -f conftest.$ac_objext |
| 11155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11156 | (eval $ac_compile) 2>conftest.er1 |
| 11157 | ac_status=$? |
| 11158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11159 | rm -f conftest.er1 |
| 11160 | cat conftest.err >&5 |
| 11161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11162 | (exit $ac_status); } && |
| 11163 | { ac_try='test -z "$ac_c_werror_flag" |
| 11164 | || test ! -s conftest.err' |
| 11165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11166 | (eval $ac_try) 2>&5 |
| 11167 | ac_status=$? |
| 11168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11169 | (exit $ac_status); }; } && |
| 11170 | { ac_try='test -s conftest.$ac_objext' |
| 11171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11172 | (eval $ac_try) 2>&5 |
| 11173 | ac_status=$? |
| 11174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11175 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11176 | ac_cv_type_ino_t=yes |
| 11177 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11178 | echo "$as_me: failed program was:" >&5 |
| 11179 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11180 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11181 | ac_cv_type_ino_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11182 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11184 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11185 | echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 11186 | echo "${ECHO_T}$ac_cv_type_ino_t" >&6 |
| 11187 | if test $ac_cv_type_ino_t = yes; then |
| 11188 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11189 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11190 | |
| 11191 | cat >>confdefs.h <<_ACEOF |
| 11192 | #define ino_t long |
| 11193 | _ACEOF |
| 11194 | |
| 11195 | fi |
| 11196 | |
| 11197 | echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 11198 | echo $ECHO_N "checking for dev_t... $ECHO_C" >&6 |
| 11199 | if test "${ac_cv_type_dev_t+set}" = set; then |
| 11200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11201 | else |
| 11202 | cat >conftest.$ac_ext <<_ACEOF |
| 11203 | /* confdefs.h. */ |
| 11204 | _ACEOF |
| 11205 | cat confdefs.h >>conftest.$ac_ext |
| 11206 | cat >>conftest.$ac_ext <<_ACEOF |
| 11207 | /* end confdefs.h. */ |
| 11208 | $ac_includes_default |
| 11209 | int |
| 11210 | main () |
| 11211 | { |
| 11212 | if ((dev_t *) 0) |
| 11213 | return 0; |
| 11214 | if (sizeof (dev_t)) |
| 11215 | return 0; |
| 11216 | ; |
| 11217 | return 0; |
| 11218 | } |
| 11219 | _ACEOF |
| 11220 | rm -f conftest.$ac_objext |
| 11221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11222 | (eval $ac_compile) 2>conftest.er1 |
| 11223 | ac_status=$? |
| 11224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11225 | rm -f conftest.er1 |
| 11226 | cat conftest.err >&5 |
| 11227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11228 | (exit $ac_status); } && |
| 11229 | { ac_try='test -z "$ac_c_werror_flag" |
| 11230 | || test ! -s conftest.err' |
| 11231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11232 | (eval $ac_try) 2>&5 |
| 11233 | ac_status=$? |
| 11234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11235 | (exit $ac_status); }; } && |
| 11236 | { ac_try='test -s conftest.$ac_objext' |
| 11237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11238 | (eval $ac_try) 2>&5 |
| 11239 | ac_status=$? |
| 11240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11241 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11242 | ac_cv_type_dev_t=yes |
| 11243 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11244 | echo "$as_me: failed program was:" >&5 |
| 11245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11246 | |
| 11247 | ac_cv_type_dev_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11248 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11250 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11251 | echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 11252 | echo "${ECHO_T}$ac_cv_type_dev_t" >&6 |
| 11253 | if test $ac_cv_type_dev_t = yes; then |
| 11254 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11255 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11256 | |
| 11257 | cat >>confdefs.h <<_ACEOF |
| 11258 | #define dev_t unsigned |
| 11259 | _ACEOF |
| 11260 | |
| 11261 | fi |
| 11262 | |
| 11263 | |
| 11264 | echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 11265 | echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6 |
| 11266 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
| 11267 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 11268 | echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6 |
| 11269 | else |
| 11270 | cat >conftest.$ac_ext <<_ACEOF |
| 11271 | /* confdefs.h. */ |
| 11272 | _ACEOF |
| 11273 | cat confdefs.h >>conftest.$ac_ext |
| 11274 | cat >>conftest.$ac_ext <<_ACEOF |
| 11275 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11276 | |
| 11277 | #include <sys/types.h> |
| 11278 | #if STDC_HEADERS |
| 11279 | #include <stdlib.h> |
| 11280 | #include <stddef.h> |
| 11281 | #endif |
| 11282 | #ifdef HAVE_SYS_RESOURCE_H |
| 11283 | #include <sys/resource.h> |
| 11284 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11285 | |
| 11286 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11287 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11288 | $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11289 | ac_cv_type_rlim_t=yes |
| 11290 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11291 | ac_cv_type_rlim_t=no |
| 11292 | fi |
| 11293 | rm -f conftest* |
| 11294 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11295 | echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 11296 | echo "${ECHO_T}$ac_cv_type_rlim_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11297 | fi |
| 11298 | if test $ac_cv_type_rlim_t = no; then |
| 11299 | cat >> confdefs.h <<\EOF |
| 11300 | #define rlim_t unsigned long |
| 11301 | EOF |
| 11302 | fi |
| 11303 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11304 | echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 11305 | echo $ECHO_N "checking for stack_t... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11306 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11307 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 11308 | echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11309 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11310 | cat >conftest.$ac_ext <<_ACEOF |
| 11311 | /* confdefs.h. */ |
| 11312 | _ACEOF |
| 11313 | cat confdefs.h >>conftest.$ac_ext |
| 11314 | cat >>conftest.$ac_ext <<_ACEOF |
| 11315 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11316 | |
| 11317 | #include <sys/types.h> |
| 11318 | #if STDC_HEADERS |
| 11319 | #include <stdlib.h> |
| 11320 | #include <stddef.h> |
| 11321 | #endif |
| 11322 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11323 | |
| 11324 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11325 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11326 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11327 | ac_cv_type_stack_t=yes |
| 11328 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11329 | ac_cv_type_stack_t=no |
| 11330 | fi |
| 11331 | rm -f conftest* |
| 11332 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11333 | echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 11334 | echo "${ECHO_T}$ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11335 | fi |
| 11336 | if test $ac_cv_type_stack_t = no; then |
| 11337 | cat >> confdefs.h <<\EOF |
| 11338 | #define stack_t struct sigaltstack |
| 11339 | EOF |
| 11340 | fi |
| 11341 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11342 | echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 11343 | echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6 |
| 11344 | cat >conftest.$ac_ext <<_ACEOF |
| 11345 | /* confdefs.h. */ |
| 11346 | _ACEOF |
| 11347 | cat confdefs.h >>conftest.$ac_ext |
| 11348 | cat >>conftest.$ac_ext <<_ACEOF |
| 11349 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11350 | |
| 11351 | #include <sys/types.h> |
| 11352 | #if STDC_HEADERS |
| 11353 | #include <stdlib.h> |
| 11354 | #include <stddef.h> |
| 11355 | #endif |
| 11356 | #include <signal.h> |
| 11357 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11358 | |
| 11359 | int |
| 11360 | main () |
| 11361 | { |
| 11362 | stack_t sigstk; sigstk.ss_base = 0; |
| 11363 | ; |
| 11364 | return 0; |
| 11365 | } |
| 11366 | _ACEOF |
| 11367 | rm -f conftest.$ac_objext |
| 11368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11369 | (eval $ac_compile) 2>conftest.er1 |
| 11370 | ac_status=$? |
| 11371 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11372 | rm -f conftest.er1 |
| 11373 | cat conftest.err >&5 |
| 11374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11375 | (exit $ac_status); } && |
| 11376 | { ac_try='test -z "$ac_c_werror_flag" |
| 11377 | || test ! -s conftest.err' |
| 11378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11379 | (eval $ac_try) 2>&5 |
| 11380 | ac_status=$? |
| 11381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11382 | (exit $ac_status); }; } && |
| 11383 | { ac_try='test -s conftest.$ac_objext' |
| 11384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11385 | (eval $ac_try) 2>&5 |
| 11386 | ac_status=$? |
| 11387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11388 | (exit $ac_status); }; }; then |
| 11389 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11390 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11391 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11392 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11393 | |
| 11394 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11395 | echo "$as_me: failed program was:" >&5 |
| 11396 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11397 | |
| 11398 | echo "$as_me:$LINENO: result: no" >&5 |
| 11399 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11400 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11402 | |
| 11403 | olibs="$LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11404 | echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 11405 | echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6 |
| 11406 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11407 | # Check whether --with-tlib or --without-tlib was given. |
| 11408 | if test "${with_tlib+set}" = set; then |
| 11409 | withval="$with_tlib" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11410 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11411 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11412 | if test -n "$with_tlib"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11413 | echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 11414 | echo "${ECHO_T}$with_tlib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11415 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11416 | echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 11417 | echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6 |
| 11418 | cat >conftest.$ac_ext <<_ACEOF |
| 11419 | /* confdefs.h. */ |
| 11420 | _ACEOF |
| 11421 | cat confdefs.h >>conftest.$ac_ext |
| 11422 | cat >>conftest.$ac_ext <<_ACEOF |
| 11423 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11424 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11425 | int |
| 11426 | main () |
| 11427 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11428 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11429 | ; |
| 11430 | return 0; |
| 11431 | } |
| 11432 | _ACEOF |
| 11433 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11435 | (eval $ac_link) 2>conftest.er1 |
| 11436 | ac_status=$? |
| 11437 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11438 | rm -f conftest.er1 |
| 11439 | cat conftest.err >&5 |
| 11440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11441 | (exit $ac_status); } && |
| 11442 | { ac_try='test -z "$ac_c_werror_flag" |
| 11443 | || test ! -s conftest.err' |
| 11444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11445 | (eval $ac_try) 2>&5 |
| 11446 | ac_status=$? |
| 11447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11448 | (exit $ac_status); }; } && |
| 11449 | { ac_try='test -s conftest$ac_exeext' |
| 11450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11451 | (eval $ac_try) 2>&5 |
| 11452 | ac_status=$? |
| 11453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11454 | (exit $ac_status); }; }; then |
| 11455 | echo "$as_me:$LINENO: result: OK" >&5 |
| 11456 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11457 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11458 | echo "$as_me: failed program was:" >&5 |
| 11459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11460 | |
| 11461 | { { echo "$as_me:$LINENO: error: FAILED" >&5 |
| 11462 | echo "$as_me: error: FAILED" >&2;} |
| 11463 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11464 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11465 | rm -f conftest.err conftest.$ac_objext \ |
| 11466 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11467 | olibs="$LIBS" |
| 11468 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11469 | echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 11470 | echo "${ECHO_T}empty: automatic terminal library selection" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11471 | case "`uname -s 2>/dev/null`" in |
| 11472 | OSF1) tlibs="ncurses curses termlib termcap";; |
| 11473 | *) tlibs="ncurses termlib termcap curses";; |
| 11474 | esac |
| 11475 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11476 | |
| 11477 | as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 11478 | echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 11479 | echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6 |
| 11480 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
| 11481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11482 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11483 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11484 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11485 | cat >conftest.$ac_ext <<_ACEOF |
| 11486 | /* confdefs.h. */ |
| 11487 | _ACEOF |
| 11488 | cat confdefs.h >>conftest.$ac_ext |
| 11489 | cat >>conftest.$ac_ext <<_ACEOF |
| 11490 | /* end confdefs.h. */ |
| 11491 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11492 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11493 | #ifdef __cplusplus |
| 11494 | extern "C" |
| 11495 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11496 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11497 | builtin and then its argument prototype would still apply. */ |
| 11498 | char tgetent (); |
| 11499 | int |
| 11500 | main () |
| 11501 | { |
| 11502 | tgetent (); |
| 11503 | ; |
| 11504 | return 0; |
| 11505 | } |
| 11506 | _ACEOF |
| 11507 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11509 | (eval $ac_link) 2>conftest.er1 |
| 11510 | ac_status=$? |
| 11511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11512 | rm -f conftest.er1 |
| 11513 | cat conftest.err >&5 |
| 11514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11515 | (exit $ac_status); } && |
| 11516 | { ac_try='test -z "$ac_c_werror_flag" |
| 11517 | || test ! -s conftest.err' |
| 11518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11519 | (eval $ac_try) 2>&5 |
| 11520 | ac_status=$? |
| 11521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11522 | (exit $ac_status); }; } && |
| 11523 | { ac_try='test -s conftest$ac_exeext' |
| 11524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11525 | (eval $ac_try) 2>&5 |
| 11526 | ac_status=$? |
| 11527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11528 | (exit $ac_status); }; }; then |
| 11529 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11530 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11531 | echo "$as_me: failed program was:" >&5 |
| 11532 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11533 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11534 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11535 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11536 | rm -f conftest.err conftest.$ac_objext \ |
| 11537 | conftest$ac_exeext conftest.$ac_ext |
| 11538 | LIBS=$ac_check_lib_save_LIBS |
| 11539 | fi |
| 11540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
| 11541 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
| 11542 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
| 11543 | cat >>confdefs.h <<_ACEOF |
| 11544 | #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
| 11545 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11546 | |
| 11547 | LIBS="-l${libname} $LIBS" |
| 11548 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11549 | fi |
| 11550 | |
| 11551 | if test "x$olibs" != "x$LIBS"; then |
| 11552 | if test "$cross_compiling" = yes; then |
| 11553 | res="FAIL" |
| 11554 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11555 | cat >conftest.$ac_ext <<_ACEOF |
| 11556 | /* confdefs.h. */ |
| 11557 | _ACEOF |
| 11558 | cat confdefs.h >>conftest.$ac_ext |
| 11559 | cat >>conftest.$ac_ext <<_ACEOF |
| 11560 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11561 | |
| 11562 | #ifdef HAVE_TERMCAP_H |
| 11563 | # include <termcap.h> |
| 11564 | #endif |
| 11565 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11566 | _ACEOF |
| 11567 | rm -f conftest$ac_exeext |
| 11568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11569 | (eval $ac_link) 2>&5 |
| 11570 | ac_status=$? |
| 11571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11572 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11574 | (eval $ac_try) 2>&5 |
| 11575 | ac_status=$? |
| 11576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11577 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11578 | res="OK" |
| 11579 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11580 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11581 | echo "$as_me: failed program was:" >&5 |
| 11582 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11583 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11584 | ( exit $ac_status ) |
| 11585 | res="FAIL" |
| 11586 | fi |
| 11587 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11588 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11589 | if test "$res" = "OK"; then |
| 11590 | break |
| 11591 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11592 | echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 11593 | echo "${ECHO_T}$libname library is not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11594 | LIBS="$olibs" |
| 11595 | fi |
| 11596 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11597 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11598 | echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 11599 | echo "${ECHO_T}no terminal library found" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11600 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11601 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11602 | |
| 11603 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11604 | echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 11605 | echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6 |
| 11606 | cat >conftest.$ac_ext <<_ACEOF |
| 11607 | /* confdefs.h. */ |
| 11608 | _ACEOF |
| 11609 | cat confdefs.h >>conftest.$ac_ext |
| 11610 | cat >>conftest.$ac_ext <<_ACEOF |
| 11611 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11612 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11613 | int |
| 11614 | main () |
| 11615 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11616 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11617 | ; |
| 11618 | return 0; |
| 11619 | } |
| 11620 | _ACEOF |
| 11621 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11623 | (eval $ac_link) 2>conftest.er1 |
| 11624 | ac_status=$? |
| 11625 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11626 | rm -f conftest.er1 |
| 11627 | cat conftest.err >&5 |
| 11628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11629 | (exit $ac_status); } && |
| 11630 | { ac_try='test -z "$ac_c_werror_flag" |
| 11631 | || test ! -s conftest.err' |
| 11632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11633 | (eval $ac_try) 2>&5 |
| 11634 | ac_status=$? |
| 11635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11636 | (exit $ac_status); }; } && |
| 11637 | { ac_try='test -s conftest$ac_exeext' |
| 11638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11639 | (eval $ac_try) 2>&5 |
| 11640 | ac_status=$? |
| 11641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11642 | (exit $ac_status); }; }; then |
| 11643 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11644 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11645 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11646 | echo "$as_me: failed program was:" >&5 |
| 11647 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11648 | |
| 11649 | { { echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11650 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11651 | Or specify the name of the library with --with-tlib." >&5 |
| 11652 | echo "$as_me: error: NOT FOUND! |
| 11653 | You need to install a terminal library; for example ncurses. |
| 11654 | Or specify the name of the library with --with-tlib." >&2;} |
| 11655 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11656 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11657 | rm -f conftest.err conftest.$ac_objext \ |
| 11658 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11659 | fi |
| 11660 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11661 | echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 11662 | echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11663 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11664 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 11665 | echo "$as_me: error: failed to compile test program." >&2;} |
| 11666 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11667 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11668 | cat >conftest.$ac_ext <<_ACEOF |
| 11669 | /* confdefs.h. */ |
| 11670 | _ACEOF |
| 11671 | cat confdefs.h >>conftest.$ac_ext |
| 11672 | cat >>conftest.$ac_ext <<_ACEOF |
| 11673 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11674 | |
| 11675 | #ifdef HAVE_TERMCAP_H |
| 11676 | # include <termcap.h> |
| 11677 | #endif |
| 11678 | main() |
| 11679 | {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11680 | _ACEOF |
| 11681 | rm -f conftest$ac_exeext |
| 11682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11683 | (eval $ac_link) 2>&5 |
| 11684 | ac_status=$? |
| 11685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11686 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11688 | (eval $ac_try) 2>&5 |
| 11689 | ac_status=$? |
| 11690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11691 | (exit $ac_status); }; }; then |
| 11692 | echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5 |
| 11693 | echo "${ECHO_T}no -- we are in termcap land" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11694 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11695 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11696 | echo "$as_me: failed program was:" >&5 |
| 11697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11698 | |
| 11699 | ( exit $ac_status ) |
| 11700 | echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5 |
| 11701 | echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11702 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11703 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11704 | |
| 11705 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11706 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11707 | fi |
| 11708 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11709 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11710 | echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 11711 | echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11712 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11713 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 11714 | echo "$as_me: error: failed to compile test program." >&2;} |
| 11715 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11716 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11717 | cat >conftest.$ac_ext <<_ACEOF |
| 11718 | /* confdefs.h. */ |
| 11719 | _ACEOF |
| 11720 | cat confdefs.h >>conftest.$ac_ext |
| 11721 | cat >>conftest.$ac_ext <<_ACEOF |
| 11722 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11723 | |
| 11724 | #ifdef HAVE_TERMCAP_H |
| 11725 | # include <termcap.h> |
| 11726 | #endif |
| 11727 | main() |
| 11728 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11729 | _ACEOF |
| 11730 | rm -f conftest$ac_exeext |
| 11731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11732 | (eval $ac_link) 2>&5 |
| 11733 | ac_status=$? |
| 11734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11735 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11737 | (eval $ac_try) 2>&5 |
| 11738 | ac_status=$? |
| 11739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11740 | (exit $ac_status); }; }; then |
| 11741 | echo "$as_me:$LINENO: result: zero" >&5 |
| 11742 | echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11743 | #define TGETENT_ZERO_ERR 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11744 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11745 | |
| 11746 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11747 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11748 | echo "$as_me: failed program was:" >&5 |
| 11749 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11750 | |
| 11751 | ( exit $ac_status ) |
| 11752 | echo "$as_me:$LINENO: result: non-zero" >&5 |
| 11753 | echo "${ECHO_T}non-zero" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11754 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11755 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11756 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11757 | fi |
| 11758 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11759 | echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 11760 | echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6 |
| 11761 | cat >conftest.$ac_ext <<_ACEOF |
| 11762 | /* confdefs.h. */ |
| 11763 | _ACEOF |
| 11764 | cat confdefs.h >>conftest.$ac_ext |
| 11765 | cat >>conftest.$ac_ext <<_ACEOF |
| 11766 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11767 | |
| 11768 | #ifdef HAVE_TERMCAP_H |
| 11769 | # include <termcap.h> |
| 11770 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11771 | |
| 11772 | int |
| 11773 | main () |
| 11774 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11775 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11776 | ; |
| 11777 | return 0; |
| 11778 | } |
| 11779 | _ACEOF |
| 11780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11782 | (eval $ac_link) 2>conftest.er1 |
| 11783 | ac_status=$? |
| 11784 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11785 | rm -f conftest.er1 |
| 11786 | cat conftest.err >&5 |
| 11787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11788 | (exit $ac_status); } && |
| 11789 | { ac_try='test -z "$ac_c_werror_flag" |
| 11790 | || test ! -s conftest.err' |
| 11791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11792 | (eval $ac_try) 2>&5 |
| 11793 | ac_status=$? |
| 11794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11795 | (exit $ac_status); }; } && |
| 11796 | { ac_try='test -s conftest$ac_exeext' |
| 11797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11798 | (eval $ac_try) 2>&5 |
| 11799 | ac_status=$? |
| 11800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11801 | (exit $ac_status); }; }; then |
| 11802 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11803 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11804 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11805 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11806 | |
| 11807 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11808 | echo "$as_me: failed program was:" >&5 |
| 11809 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11810 | |
| 11811 | echo "$as_me:$LINENO: result: no" >&5 |
| 11812 | echo "${ECHO_T}no" >&6 |
| 11813 | echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 11814 | echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6 |
| 11815 | cat >conftest.$ac_ext <<_ACEOF |
| 11816 | /* confdefs.h. */ |
| 11817 | _ACEOF |
| 11818 | cat confdefs.h >>conftest.$ac_ext |
| 11819 | cat >>conftest.$ac_ext <<_ACEOF |
| 11820 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11821 | |
| 11822 | #ifdef HAVE_TERMCAP_H |
| 11823 | # include <termcap.h> |
| 11824 | #endif |
| 11825 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11826 | |
| 11827 | int |
| 11828 | main () |
| 11829 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11830 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11831 | ; |
| 11832 | return 0; |
| 11833 | } |
| 11834 | _ACEOF |
| 11835 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11837 | (eval $ac_link) 2>conftest.er1 |
| 11838 | ac_status=$? |
| 11839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11840 | rm -f conftest.er1 |
| 11841 | cat conftest.err >&5 |
| 11842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11843 | (exit $ac_status); } && |
| 11844 | { ac_try='test -z "$ac_c_werror_flag" |
| 11845 | || test ! -s conftest.err' |
| 11846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11847 | (eval $ac_try) 2>&5 |
| 11848 | ac_status=$? |
| 11849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11850 | (exit $ac_status); }; } && |
| 11851 | { ac_try='test -s conftest$ac_exeext' |
| 11852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11853 | (eval $ac_try) 2>&5 |
| 11854 | ac_status=$? |
| 11855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11856 | (exit $ac_status); }; }; then |
| 11857 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11858 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11859 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11860 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11861 | |
| 11862 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11863 | echo "$as_me: failed program was:" >&5 |
| 11864 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11865 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11866 | echo "$as_me:$LINENO: result: no" >&5 |
| 11867 | echo "${ECHO_T}no" >&6 |
| 11868 | fi |
| 11869 | rm -f conftest.err conftest.$ac_objext \ |
| 11870 | conftest$ac_exeext conftest.$ac_ext |
| 11871 | |
| 11872 | fi |
| 11873 | rm -f conftest.err conftest.$ac_objext \ |
| 11874 | conftest$ac_exeext conftest.$ac_ext |
| 11875 | |
| 11876 | echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 11877 | echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6 |
| 11878 | cat >conftest.$ac_ext <<_ACEOF |
| 11879 | /* confdefs.h. */ |
| 11880 | _ACEOF |
| 11881 | cat confdefs.h >>conftest.$ac_ext |
| 11882 | cat >>conftest.$ac_ext <<_ACEOF |
| 11883 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11884 | |
| 11885 | #ifdef HAVE_TERMCAP_H |
| 11886 | # include <termcap.h> |
| 11887 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11888 | |
| 11889 | int |
| 11890 | main () |
| 11891 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11892 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11893 | ; |
| 11894 | return 0; |
| 11895 | } |
| 11896 | _ACEOF |
| 11897 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11899 | (eval $ac_link) 2>conftest.er1 |
| 11900 | ac_status=$? |
| 11901 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11902 | rm -f conftest.er1 |
| 11903 | cat conftest.err >&5 |
| 11904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11905 | (exit $ac_status); } && |
| 11906 | { ac_try='test -z "$ac_c_werror_flag" |
| 11907 | || test ! -s conftest.err' |
| 11908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11909 | (eval $ac_try) 2>&5 |
| 11910 | ac_status=$? |
| 11911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11912 | (exit $ac_status); }; } && |
| 11913 | { ac_try='test -s conftest$ac_exeext' |
| 11914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11915 | (eval $ac_try) 2>&5 |
| 11916 | ac_status=$? |
| 11917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11918 | (exit $ac_status); }; }; then |
| 11919 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11920 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11921 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11922 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11923 | |
| 11924 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11925 | echo "$as_me: failed program was:" >&5 |
| 11926 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11927 | |
| 11928 | echo "$as_me:$LINENO: result: no" >&5 |
| 11929 | echo "${ECHO_T}no" >&6 |
| 11930 | echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 11931 | echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6 |
| 11932 | cat >conftest.$ac_ext <<_ACEOF |
| 11933 | /* confdefs.h. */ |
| 11934 | _ACEOF |
| 11935 | cat confdefs.h >>conftest.$ac_ext |
| 11936 | cat >>conftest.$ac_ext <<_ACEOF |
| 11937 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11938 | |
| 11939 | #ifdef HAVE_TERMCAP_H |
| 11940 | # include <termcap.h> |
| 11941 | #endif |
| 11942 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11943 | |
| 11944 | int |
| 11945 | main () |
| 11946 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11947 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11948 | ; |
| 11949 | return 0; |
| 11950 | } |
| 11951 | _ACEOF |
| 11952 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11954 | (eval $ac_link) 2>conftest.er1 |
| 11955 | ac_status=$? |
| 11956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11957 | rm -f conftest.er1 |
| 11958 | cat conftest.err >&5 |
| 11959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11960 | (exit $ac_status); } && |
| 11961 | { ac_try='test -z "$ac_c_werror_flag" |
| 11962 | || test ! -s conftest.err' |
| 11963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11964 | (eval $ac_try) 2>&5 |
| 11965 | ac_status=$? |
| 11966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11967 | (exit $ac_status); }; } && |
| 11968 | { ac_try='test -s conftest$ac_exeext' |
| 11969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11970 | (eval $ac_try) 2>&5 |
| 11971 | ac_status=$? |
| 11972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11973 | (exit $ac_status); }; }; then |
| 11974 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11975 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11976 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11977 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11978 | |
| 11979 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11980 | echo "$as_me: failed program was:" >&5 |
| 11981 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11982 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11983 | echo "$as_me:$LINENO: result: no" >&5 |
| 11984 | echo "${ECHO_T}no" >&6 |
| 11985 | fi |
| 11986 | rm -f conftest.err conftest.$ac_objext \ |
| 11987 | conftest$ac_exeext conftest.$ac_ext |
| 11988 | |
| 11989 | fi |
| 11990 | rm -f conftest.err conftest.$ac_objext \ |
| 11991 | conftest$ac_exeext conftest.$ac_ext |
| 11992 | |
| 11993 | echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 11994 | echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6 |
| 11995 | cat >conftest.$ac_ext <<_ACEOF |
| 11996 | /* confdefs.h. */ |
| 11997 | _ACEOF |
| 11998 | cat confdefs.h >>conftest.$ac_ext |
| 11999 | cat >>conftest.$ac_ext <<_ACEOF |
| 12000 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12001 | |
| 12002 | #ifdef HAVE_TERMCAP_H |
| 12003 | # include <termcap.h> |
| 12004 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12005 | |
| 12006 | int |
| 12007 | main () |
| 12008 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12009 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12010 | ; |
| 12011 | return 0; |
| 12012 | } |
| 12013 | _ACEOF |
| 12014 | rm -f conftest.$ac_objext |
| 12015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12016 | (eval $ac_compile) 2>conftest.er1 |
| 12017 | ac_status=$? |
| 12018 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12019 | rm -f conftest.er1 |
| 12020 | cat conftest.err >&5 |
| 12021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12022 | (exit $ac_status); } && |
| 12023 | { ac_try='test -z "$ac_c_werror_flag" |
| 12024 | || test ! -s conftest.err' |
| 12025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12026 | (eval $ac_try) 2>&5 |
| 12027 | ac_status=$? |
| 12028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12029 | (exit $ac_status); }; } && |
| 12030 | { ac_try='test -s conftest.$ac_objext' |
| 12031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12032 | (eval $ac_try) 2>&5 |
| 12033 | ac_status=$? |
| 12034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12035 | (exit $ac_status); }; }; then |
| 12036 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12037 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12038 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12039 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12040 | |
| 12041 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12042 | echo "$as_me: failed program was:" >&5 |
| 12043 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12044 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12045 | echo "$as_me:$LINENO: result: no" >&5 |
| 12046 | echo "${ECHO_T}no" >&6 |
| 12047 | fi |
| 12048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12049 | |
| 12050 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 12051 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12052 | cat >conftest.$ac_ext <<_ACEOF |
| 12053 | /* confdefs.h. */ |
| 12054 | _ACEOF |
| 12055 | cat confdefs.h >>conftest.$ac_ext |
| 12056 | cat >>conftest.$ac_ext <<_ACEOF |
| 12057 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12058 | |
| 12059 | #include <sys/types.h> |
| 12060 | #include <sys/time.h> |
| 12061 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12062 | int |
| 12063 | main () |
| 12064 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12065 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12066 | ; |
| 12067 | return 0; |
| 12068 | } |
| 12069 | _ACEOF |
| 12070 | rm -f conftest.$ac_objext |
| 12071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12072 | (eval $ac_compile) 2>conftest.er1 |
| 12073 | ac_status=$? |
| 12074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12075 | rm -f conftest.er1 |
| 12076 | cat conftest.err >&5 |
| 12077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12078 | (exit $ac_status); } && |
| 12079 | { ac_try='test -z "$ac_c_werror_flag" |
| 12080 | || test ! -s conftest.err' |
| 12081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12082 | (eval $ac_try) 2>&5 |
| 12083 | ac_status=$? |
| 12084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12085 | (exit $ac_status); }; } && |
| 12086 | { ac_try='test -s conftest.$ac_objext' |
| 12087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12088 | (eval $ac_try) 2>&5 |
| 12089 | ac_status=$? |
| 12090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12091 | (exit $ac_status); }; }; then |
| 12092 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12093 | echo "${ECHO_T}yes" >&6 |
| 12094 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12095 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12096 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12097 | |
| 12098 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12099 | echo "$as_me: failed program was:" >&5 |
| 12100 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12101 | |
| 12102 | echo "$as_me:$LINENO: result: no" >&5 |
| 12103 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12104 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12106 | |
| 12107 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12108 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 12109 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12110 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12111 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12112 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12113 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12114 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12115 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12116 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12117 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12118 | echo "$as_me:$LINENO: result: no" >&5 |
| 12119 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12120 | fi |
| 12121 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12122 | echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 12123 | echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12124 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12125 | cat >conftest.$ac_ext <<_ACEOF |
| 12126 | /* confdefs.h. */ |
| 12127 | _ACEOF |
| 12128 | cat confdefs.h >>conftest.$ac_ext |
| 12129 | cat >>conftest.$ac_ext <<_ACEOF |
| 12130 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12131 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12132 | int |
| 12133 | main () |
| 12134 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12135 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12136 | ; |
| 12137 | return 0; |
| 12138 | } |
| 12139 | _ACEOF |
| 12140 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12142 | (eval $ac_link) 2>conftest.er1 |
| 12143 | ac_status=$? |
| 12144 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12145 | rm -f conftest.er1 |
| 12146 | cat conftest.err >&5 |
| 12147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12148 | (exit $ac_status); } && |
| 12149 | { ac_try='test -z "$ac_c_werror_flag" |
| 12150 | || test ! -s conftest.err' |
| 12151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12152 | (eval $ac_try) 2>&5 |
| 12153 | ac_status=$? |
| 12154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12155 | (exit $ac_status); }; } && |
| 12156 | { ac_try='test -s conftest$ac_exeext' |
| 12157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12158 | (eval $ac_try) 2>&5 |
| 12159 | ac_status=$? |
| 12160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12161 | (exit $ac_status); }; }; then |
| 12162 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12163 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12164 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12165 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12166 | |
| 12167 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12168 | echo "$as_me: failed program was:" >&5 |
| 12169 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12170 | |
| 12171 | echo "$as_me:$LINENO: result: no" >&5 |
| 12172 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12173 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12174 | rm -f conftest.err conftest.$ac_objext \ |
| 12175 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12176 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12177 | echo "$as_me:$LINENO: result: no" >&5 |
| 12178 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12179 | fi |
| 12180 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12181 | echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 12182 | echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12183 | if test -d /dev/ptym ; then |
| 12184 | pdir='/dev/ptym' |
| 12185 | else |
| 12186 | pdir='/dev' |
| 12187 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12188 | cat >conftest.$ac_ext <<_ACEOF |
| 12189 | /* confdefs.h. */ |
| 12190 | _ACEOF |
| 12191 | cat confdefs.h >>conftest.$ac_ext |
| 12192 | cat >>conftest.$ac_ext <<_ACEOF |
| 12193 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12194 | #ifdef M_UNIX |
| 12195 | yes; |
| 12196 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12197 | |
| 12198 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12199 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12200 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12201 | ptys=`echo /dev/ptyp??` |
| 12202 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12203 | ptys=`echo $pdir/pty??` |
| 12204 | fi |
| 12205 | rm -f conftest* |
| 12206 | |
| 12207 | if test "$ptys" != "$pdir/pty??" ; then |
| 12208 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 12209 | p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12210 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12211 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12212 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12213 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12214 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12215 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12216 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12217 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12218 | echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 12219 | echo "${ECHO_T}$p0 / $p1" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12220 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12221 | echo "$as_me:$LINENO: result: don't know" >&5 |
| 12222 | echo "${ECHO_T}don't know" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12223 | fi |
| 12224 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12225 | echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 12226 | echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12227 | rm -f conftest_grp |
| 12228 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12229 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12230 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12231 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12232 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12233 | cat >conftest.$ac_ext <<_ACEOF |
| 12234 | /* confdefs.h. */ |
| 12235 | _ACEOF |
| 12236 | cat confdefs.h >>conftest.$ac_ext |
| 12237 | cat >>conftest.$ac_ext <<_ACEOF |
| 12238 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12239 | |
| 12240 | #include <sys/types.h> |
| 12241 | #include <sys/stat.h> |
| 12242 | #include <stdio.h> |
| 12243 | main() |
| 12244 | { |
| 12245 | struct stat sb; |
| 12246 | char *x,*ttyname(); |
| 12247 | int om, m; |
| 12248 | FILE *fp; |
| 12249 | |
| 12250 | if (!(x = ttyname(0))) exit(1); |
| 12251 | if (stat(x, &sb)) exit(1); |
| 12252 | om = sb.st_mode; |
| 12253 | if (om & 002) exit(0); |
| 12254 | m = system("mesg y"); |
| 12255 | if (m == -1 || m == 127) exit(1); |
| 12256 | if (stat(x, &sb)) exit(1); |
| 12257 | m = sb.st_mode; |
| 12258 | if (chmod(x, om)) exit(1); |
| 12259 | if (m & 002) exit(0); |
| 12260 | if (sb.st_gid == getgid()) exit(1); |
| 12261 | if (!(fp=fopen("conftest_grp", "w"))) |
| 12262 | exit(1); |
| 12263 | fprintf(fp, "%d\n", sb.st_gid); |
| 12264 | fclose(fp); |
| 12265 | exit(0); |
| 12266 | } |
| 12267 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12268 | _ACEOF |
| 12269 | rm -f conftest$ac_exeext |
| 12270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12271 | (eval $ac_link) 2>&5 |
| 12272 | ac_status=$? |
| 12273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12274 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12276 | (eval $ac_try) 2>&5 |
| 12277 | ac_status=$? |
| 12278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12279 | (exit $ac_status); }; }; then |
| 12280 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12281 | if test -f conftest_grp; then |
| 12282 | ptygrp=`cat conftest_grp` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12283 | echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5 |
| 12284 | echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6 |
| 12285 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12286 | #define PTYMODE 0620 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12287 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12288 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12289 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12290 | #define PTYGROUP $ptygrp |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12291 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12292 | |
| 12293 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12294 | echo "$as_me:$LINENO: result: ptys are world accessable" >&5 |
| 12295 | echo "${ECHO_T}ptys are world accessable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12296 | fi |
| 12297 | |
| 12298 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12299 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12300 | echo "$as_me: failed program was:" >&5 |
| 12301 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12302 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12303 | ( exit $ac_status ) |
| 12304 | echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 |
| 12305 | echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6 |
| 12306 | fi |
| 12307 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12308 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12309 | rm -f conftest_grp |
| 12310 | |
| 12311 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12312 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 12313 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 12314 | if test "${ac_cv_type_signal+set}" = set; then |
| 12315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12316 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12317 | cat >conftest.$ac_ext <<_ACEOF |
| 12318 | /* confdefs.h. */ |
| 12319 | _ACEOF |
| 12320 | cat confdefs.h >>conftest.$ac_ext |
| 12321 | cat >>conftest.$ac_ext <<_ACEOF |
| 12322 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12323 | #include <sys/types.h> |
| 12324 | #include <signal.h> |
| 12325 | #ifdef signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12326 | # undef signal |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12327 | #endif |
| 12328 | #ifdef __cplusplus |
| 12329 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 12330 | #else |
| 12331 | void (*signal ()) (); |
| 12332 | #endif |
| 12333 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12334 | int |
| 12335 | main () |
| 12336 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12337 | int i; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12338 | ; |
| 12339 | return 0; |
| 12340 | } |
| 12341 | _ACEOF |
| 12342 | rm -f conftest.$ac_objext |
| 12343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12344 | (eval $ac_compile) 2>conftest.er1 |
| 12345 | ac_status=$? |
| 12346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12347 | rm -f conftest.er1 |
| 12348 | cat conftest.err >&5 |
| 12349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12350 | (exit $ac_status); } && |
| 12351 | { ac_try='test -z "$ac_c_werror_flag" |
| 12352 | || test ! -s conftest.err' |
| 12353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12354 | (eval $ac_try) 2>&5 |
| 12355 | ac_status=$? |
| 12356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12357 | (exit $ac_status); }; } && |
| 12358 | { ac_try='test -s conftest.$ac_objext' |
| 12359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12360 | (eval $ac_try) 2>&5 |
| 12361 | ac_status=$? |
| 12362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12363 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12364 | ac_cv_type_signal=void |
| 12365 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12366 | echo "$as_me: failed program was:" >&5 |
| 12367 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12368 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12369 | ac_cv_type_signal=int |
| 12370 | fi |
| 12371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12372 | fi |
| 12373 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 12374 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 12375 | |
| 12376 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12377 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12378 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12379 | |
| 12380 | |
| 12381 | |
| 12382 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12383 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12384 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12385 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12386 | |
| 12387 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12388 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12389 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12390 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12391 | |
| 12392 | fi |
| 12393 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12394 | echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 12395 | echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6 |
| 12396 | cat >conftest.$ac_ext <<_ACEOF |
| 12397 | /* confdefs.h. */ |
| 12398 | _ACEOF |
| 12399 | cat confdefs.h >>conftest.$ac_ext |
| 12400 | cat >>conftest.$ac_ext <<_ACEOF |
| 12401 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12402 | |
| 12403 | #include <signal.h> |
| 12404 | test_sig() |
| 12405 | { |
| 12406 | struct sigcontext *scont; |
| 12407 | scont = (struct sigcontext *)0; |
| 12408 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12409 | } |
| 12410 | int |
| 12411 | main () |
| 12412 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12413 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12414 | ; |
| 12415 | return 0; |
| 12416 | } |
| 12417 | _ACEOF |
| 12418 | rm -f conftest.$ac_objext |
| 12419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12420 | (eval $ac_compile) 2>conftest.er1 |
| 12421 | ac_status=$? |
| 12422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12423 | rm -f conftest.er1 |
| 12424 | cat conftest.err >&5 |
| 12425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12426 | (exit $ac_status); } && |
| 12427 | { ac_try='test -z "$ac_c_werror_flag" |
| 12428 | || test ! -s conftest.err' |
| 12429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12430 | (eval $ac_try) 2>&5 |
| 12431 | ac_status=$? |
| 12432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12433 | (exit $ac_status); }; } && |
| 12434 | { ac_try='test -s conftest.$ac_objext' |
| 12435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12436 | (eval $ac_try) 2>&5 |
| 12437 | ac_status=$? |
| 12438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12439 | (exit $ac_status); }; }; then |
| 12440 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12441 | echo "${ECHO_T}yes" >&6 |
| 12442 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12443 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12444 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12445 | |
| 12446 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12447 | echo "$as_me: failed program was:" >&5 |
| 12448 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12449 | |
| 12450 | echo "$as_me:$LINENO: result: no" >&5 |
| 12451 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12452 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12454 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12455 | echo "$as_me:$LINENO: checking getcwd implementation" >&5 |
| 12456 | echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12457 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12458 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12459 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12460 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12461 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12462 | cat >conftest.$ac_ext <<_ACEOF |
| 12463 | /* confdefs.h. */ |
| 12464 | _ACEOF |
| 12465 | cat confdefs.h >>conftest.$ac_ext |
| 12466 | cat >>conftest.$ac_ext <<_ACEOF |
| 12467 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12468 | |
| 12469 | char *dagger[] = { "IFS=pwd", 0 }; |
| 12470 | main() |
| 12471 | { |
| 12472 | char buffer[500]; |
| 12473 | extern char **environ; |
| 12474 | environ = dagger; |
| 12475 | return getcwd(buffer, 500) ? 0 : 1; |
| 12476 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12477 | _ACEOF |
| 12478 | rm -f conftest$ac_exeext |
| 12479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12480 | (eval $ac_link) 2>&5 |
| 12481 | ac_status=$? |
| 12482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12483 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12485 | (eval $ac_try) 2>&5 |
| 12486 | ac_status=$? |
| 12487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12488 | (exit $ac_status); }; }; then |
| 12489 | echo "$as_me:$LINENO: result: it is usable" >&5 |
| 12490 | echo "${ECHO_T}it is usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12491 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12492 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12493 | echo "$as_me: failed program was:" >&5 |
| 12494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12495 | |
| 12496 | ( exit $ac_status ) |
| 12497 | echo "$as_me:$LINENO: result: it stinks" >&5 |
| 12498 | echo "${ECHO_T}it stinks" >&6 |
| 12499 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12500 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12501 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12502 | |
| 12503 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12504 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12505 | fi |
| 12506 | |
| 12507 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12508 | |
| 12509 | |
| 12510 | |
| 12511 | |
| 12512 | |
| 12513 | |
| 12514 | |
| 12515 | |
| 12516 | |
| 12517 | |
| 12518 | |
| 12519 | |
| 12520 | |
| 12521 | |
| 12522 | |
| 12523 | |
| 12524 | |
| 12525 | |
| 12526 | |
| 12527 | |
| 12528 | |
| 12529 | |
| 12530 | |
| 12531 | |
| 12532 | |
| 12533 | |
| 12534 | |
| 12535 | |
| 12536 | |
| 12537 | |
| 12538 | |
| 12539 | |
| 12540 | |
| 12541 | |
| 12542 | |
| 12543 | |
| 12544 | |
| 12545 | |
| 12546 | |
| 12547 | |
| 12548 | |
| 12549 | |
| 12550 | |
| 12551 | |
| 12552 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12553 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 12554 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
| 12555 | memset nanosleep opendir putenv qsort readlink select setenv \ |
| 12556 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 12557 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 12558 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 12559 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12560 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12561 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12562 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12563 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12564 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12566 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12567 | cat >conftest.$ac_ext <<_ACEOF |
| 12568 | /* confdefs.h. */ |
| 12569 | _ACEOF |
| 12570 | cat confdefs.h >>conftest.$ac_ext |
| 12571 | cat >>conftest.$ac_ext <<_ACEOF |
| 12572 | /* end confdefs.h. */ |
| 12573 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12574 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12575 | #define $ac_func innocuous_$ac_func |
| 12576 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12577 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12578 | which can conflict with char $ac_func (); below. |
| 12579 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12580 | <limits.h> exists even on freestanding compilers. */ |
| 12581 | |
| 12582 | #ifdef __STDC__ |
| 12583 | # include <limits.h> |
| 12584 | #else |
| 12585 | # include <assert.h> |
| 12586 | #endif |
| 12587 | |
| 12588 | #undef $ac_func |
| 12589 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12590 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12591 | #ifdef __cplusplus |
| 12592 | extern "C" |
| 12593 | { |
| 12594 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12595 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12596 | builtin and then its argument prototype would still apply. */ |
| 12597 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12598 | /* The GNU C library defines this for functions which it implements |
| 12599 | to always fail with ENOSYS. Some functions are actually named |
| 12600 | something starting with __ and the normal name is an alias. */ |
| 12601 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12602 | choke me |
| 12603 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12604 | char (*f) () = $ac_func; |
| 12605 | #endif |
| 12606 | #ifdef __cplusplus |
| 12607 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12608 | #endif |
| 12609 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12610 | int |
| 12611 | main () |
| 12612 | { |
| 12613 | return f != $ac_func; |
| 12614 | ; |
| 12615 | return 0; |
| 12616 | } |
| 12617 | _ACEOF |
| 12618 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12620 | (eval $ac_link) 2>conftest.er1 |
| 12621 | ac_status=$? |
| 12622 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12623 | rm -f conftest.er1 |
| 12624 | cat conftest.err >&5 |
| 12625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12626 | (exit $ac_status); } && |
| 12627 | { ac_try='test -z "$ac_c_werror_flag" |
| 12628 | || test ! -s conftest.err' |
| 12629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12630 | (eval $ac_try) 2>&5 |
| 12631 | ac_status=$? |
| 12632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12633 | (exit $ac_status); }; } && |
| 12634 | { ac_try='test -s conftest$ac_exeext' |
| 12635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12636 | (eval $ac_try) 2>&5 |
| 12637 | ac_status=$? |
| 12638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12639 | (exit $ac_status); }; }; then |
| 12640 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12641 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12642 | echo "$as_me: failed program was:" >&5 |
| 12643 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12644 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12645 | eval "$as_ac_var=no" |
| 12646 | fi |
| 12647 | rm -f conftest.err conftest.$ac_objext \ |
| 12648 | conftest$ac_exeext conftest.$ac_ext |
| 12649 | fi |
| 12650 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12651 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12652 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12653 | cat >>confdefs.h <<_ACEOF |
| 12654 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12655 | _ACEOF |
| 12656 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12657 | fi |
| 12658 | done |
| 12659 | |
| 12660 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12661 | echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 12662 | echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6 |
| 12663 | cat >conftest.$ac_ext <<_ACEOF |
| 12664 | /* confdefs.h. */ |
| 12665 | _ACEOF |
| 12666 | cat confdefs.h >>conftest.$ac_ext |
| 12667 | cat >>conftest.$ac_ext <<_ACEOF |
| 12668 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12669 | #include <sys/types.h> |
| 12670 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12671 | int |
| 12672 | main () |
| 12673 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12674 | struct stat st; |
| 12675 | int n; |
| 12676 | |
| 12677 | stat("/", &st); |
| 12678 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12679 | ; |
| 12680 | return 0; |
| 12681 | } |
| 12682 | _ACEOF |
| 12683 | rm -f conftest.$ac_objext |
| 12684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12685 | (eval $ac_compile) 2>conftest.er1 |
| 12686 | ac_status=$? |
| 12687 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12688 | rm -f conftest.er1 |
| 12689 | cat conftest.err >&5 |
| 12690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12691 | (exit $ac_status); } && |
| 12692 | { ac_try='test -z "$ac_c_werror_flag" |
| 12693 | || test ! -s conftest.err' |
| 12694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12695 | (eval $ac_try) 2>&5 |
| 12696 | ac_status=$? |
| 12697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12698 | (exit $ac_status); }; } && |
| 12699 | { ac_try='test -s conftest.$ac_objext' |
| 12700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12701 | (eval $ac_try) 2>&5 |
| 12702 | ac_status=$? |
| 12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12704 | (exit $ac_status); }; }; then |
| 12705 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12706 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12707 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12708 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12709 | |
| 12710 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12711 | echo "$as_me: failed program was:" >&5 |
| 12712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12713 | |
| 12714 | echo "$as_me:$LINENO: result: no" >&5 |
| 12715 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12716 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12718 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12719 | echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 12720 | echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12721 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12722 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12723 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12724 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12725 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12726 | cat >conftest.$ac_ext <<_ACEOF |
| 12727 | /* confdefs.h. */ |
| 12728 | _ACEOF |
| 12729 | cat confdefs.h >>conftest.$ac_ext |
| 12730 | cat >>conftest.$ac_ext <<_ACEOF |
| 12731 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12732 | #include <sys/types.h> |
| 12733 | #include <sys/stat.h> |
| 12734 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12735 | _ACEOF |
| 12736 | rm -f conftest$ac_exeext |
| 12737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12738 | (eval $ac_link) 2>&5 |
| 12739 | ac_status=$? |
| 12740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12741 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12743 | (eval $ac_try) 2>&5 |
| 12744 | ac_status=$? |
| 12745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12746 | (exit $ac_status); }; }; then |
| 12747 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12748 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12749 | #define STAT_IGNORES_SLASH 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12750 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12751 | |
| 12752 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12753 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12754 | echo "$as_me: failed program was:" >&5 |
| 12755 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12756 | |
| 12757 | ( exit $ac_status ) |
| 12758 | echo "$as_me:$LINENO: result: no" >&5 |
| 12759 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12760 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12761 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12762 | fi |
| 12763 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12764 | echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 12765 | echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12766 | save_LIBS="$LIBS" |
| 12767 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12768 | cat >conftest.$ac_ext <<_ACEOF |
| 12769 | /* confdefs.h. */ |
| 12770 | _ACEOF |
| 12771 | cat confdefs.h >>conftest.$ac_ext |
| 12772 | cat >>conftest.$ac_ext <<_ACEOF |
| 12773 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12774 | |
| 12775 | #ifdef HAVE_ICONV_H |
| 12776 | # include <iconv.h> |
| 12777 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12778 | |
| 12779 | int |
| 12780 | main () |
| 12781 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12782 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12783 | ; |
| 12784 | return 0; |
| 12785 | } |
| 12786 | _ACEOF |
| 12787 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12789 | (eval $ac_link) 2>conftest.er1 |
| 12790 | ac_status=$? |
| 12791 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12792 | rm -f conftest.er1 |
| 12793 | cat conftest.err >&5 |
| 12794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12795 | (exit $ac_status); } && |
| 12796 | { ac_try='test -z "$ac_c_werror_flag" |
| 12797 | || test ! -s conftest.err' |
| 12798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12799 | (eval $ac_try) 2>&5 |
| 12800 | ac_status=$? |
| 12801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12802 | (exit $ac_status); }; } && |
| 12803 | { ac_try='test -s conftest$ac_exeext' |
| 12804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12805 | (eval $ac_try) 2>&5 |
| 12806 | ac_status=$? |
| 12807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12808 | (exit $ac_status); }; }; then |
| 12809 | echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 12810 | echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12811 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12812 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12813 | |
| 12814 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12815 | echo "$as_me: failed program was:" >&5 |
| 12816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12817 | |
| 12818 | LIBS="$save_LIBS" |
| 12819 | cat >conftest.$ac_ext <<_ACEOF |
| 12820 | /* confdefs.h. */ |
| 12821 | _ACEOF |
| 12822 | cat confdefs.h >>conftest.$ac_ext |
| 12823 | cat >>conftest.$ac_ext <<_ACEOF |
| 12824 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12825 | |
| 12826 | #ifdef HAVE_ICONV_H |
| 12827 | # include <iconv.h> |
| 12828 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12829 | |
| 12830 | int |
| 12831 | main () |
| 12832 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12833 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12834 | ; |
| 12835 | return 0; |
| 12836 | } |
| 12837 | _ACEOF |
| 12838 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12840 | (eval $ac_link) 2>conftest.er1 |
| 12841 | ac_status=$? |
| 12842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12843 | rm -f conftest.er1 |
| 12844 | cat conftest.err >&5 |
| 12845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12846 | (exit $ac_status); } && |
| 12847 | { ac_try='test -z "$ac_c_werror_flag" |
| 12848 | || test ! -s conftest.err' |
| 12849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12850 | (eval $ac_try) 2>&5 |
| 12851 | ac_status=$? |
| 12852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12853 | (exit $ac_status); }; } && |
| 12854 | { ac_try='test -s conftest$ac_exeext' |
| 12855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12856 | (eval $ac_try) 2>&5 |
| 12857 | ac_status=$? |
| 12858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12859 | (exit $ac_status); }; }; then |
| 12860 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12861 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12862 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12863 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12864 | |
| 12865 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12866 | echo "$as_me: failed program was:" >&5 |
| 12867 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12868 | |
| 12869 | echo "$as_me:$LINENO: result: no" >&5 |
| 12870 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12871 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12872 | rm -f conftest.err conftest.$ac_objext \ |
| 12873 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12874 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12875 | rm -f conftest.err conftest.$ac_objext \ |
| 12876 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12877 | |
| 12878 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12879 | echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 12880 | echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6 |
| 12881 | cat >conftest.$ac_ext <<_ACEOF |
| 12882 | /* confdefs.h. */ |
| 12883 | _ACEOF |
| 12884 | cat confdefs.h >>conftest.$ac_ext |
| 12885 | cat >>conftest.$ac_ext <<_ACEOF |
| 12886 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12887 | |
| 12888 | #ifdef HAVE_LANGINFO_H |
| 12889 | # include <langinfo.h> |
| 12890 | #endif |
| 12891 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12892 | int |
| 12893 | main () |
| 12894 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12895 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12896 | ; |
| 12897 | return 0; |
| 12898 | } |
| 12899 | _ACEOF |
| 12900 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12902 | (eval $ac_link) 2>conftest.er1 |
| 12903 | ac_status=$? |
| 12904 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12905 | rm -f conftest.er1 |
| 12906 | cat conftest.err >&5 |
| 12907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12908 | (exit $ac_status); } && |
| 12909 | { ac_try='test -z "$ac_c_werror_flag" |
| 12910 | || test ! -s conftest.err' |
| 12911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12912 | (eval $ac_try) 2>&5 |
| 12913 | ac_status=$? |
| 12914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12915 | (exit $ac_status); }; } && |
| 12916 | { ac_try='test -s conftest$ac_exeext' |
| 12917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12918 | (eval $ac_try) 2>&5 |
| 12919 | ac_status=$? |
| 12920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12921 | (exit $ac_status); }; }; then |
| 12922 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12923 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12924 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12925 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12926 | |
| 12927 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12928 | echo "$as_me: failed program was:" >&5 |
| 12929 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12930 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12931 | echo "$as_me:$LINENO: result: no" >&5 |
| 12932 | echo "${ECHO_T}no" >&6 |
| 12933 | fi |
| 12934 | rm -f conftest.err conftest.$ac_objext \ |
| 12935 | conftest$ac_exeext conftest.$ac_ext |
| 12936 | |
| 12937 | echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 12938 | echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12939 | # Check whether --enable-acl or --disable-acl was given. |
| 12940 | if test "${enable_acl+set}" = set; then |
| 12941 | enableval="$enable_acl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12942 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12943 | else |
| 12944 | enable_acl="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12945 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12946 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12947 | echo "$as_me:$LINENO: result: no" >&5 |
| 12948 | echo "${ECHO_T}no" >&6 |
| 12949 | echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 12950 | echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6 |
| 12951 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
| 12952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12953 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12954 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12955 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12956 | cat >conftest.$ac_ext <<_ACEOF |
| 12957 | /* confdefs.h. */ |
| 12958 | _ACEOF |
| 12959 | cat confdefs.h >>conftest.$ac_ext |
| 12960 | cat >>conftest.$ac_ext <<_ACEOF |
| 12961 | /* end confdefs.h. */ |
| 12962 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12963 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12964 | #ifdef __cplusplus |
| 12965 | extern "C" |
| 12966 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12967 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12968 | builtin and then its argument prototype would still apply. */ |
| 12969 | char acl_get_file (); |
| 12970 | int |
| 12971 | main () |
| 12972 | { |
| 12973 | acl_get_file (); |
| 12974 | ; |
| 12975 | return 0; |
| 12976 | } |
| 12977 | _ACEOF |
| 12978 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12980 | (eval $ac_link) 2>conftest.er1 |
| 12981 | ac_status=$? |
| 12982 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12983 | rm -f conftest.er1 |
| 12984 | cat conftest.err >&5 |
| 12985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12986 | (exit $ac_status); } && |
| 12987 | { ac_try='test -z "$ac_c_werror_flag" |
| 12988 | || test ! -s conftest.err' |
| 12989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12990 | (eval $ac_try) 2>&5 |
| 12991 | ac_status=$? |
| 12992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12993 | (exit $ac_status); }; } && |
| 12994 | { ac_try='test -s conftest$ac_exeext' |
| 12995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12996 | (eval $ac_try) 2>&5 |
| 12997 | ac_status=$? |
| 12998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12999 | (exit $ac_status); }; }; then |
| 13000 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13001 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13002 | echo "$as_me: failed program was:" >&5 |
| 13003 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13004 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13005 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13006 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13007 | rm -f conftest.err conftest.$ac_objext \ |
| 13008 | conftest$ac_exeext conftest.$ac_ext |
| 13009 | LIBS=$ac_check_lib_save_LIBS |
| 13010 | fi |
| 13011 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 13012 | echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6 |
| 13013 | if test $ac_cv_lib_posix1e_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13014 | LIBS="$LIBS -lposix1e" |
| 13015 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13016 | echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 13017 | echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6 |
| 13018 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
| 13019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13020 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13021 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13022 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13023 | cat >conftest.$ac_ext <<_ACEOF |
| 13024 | /* confdefs.h. */ |
| 13025 | _ACEOF |
| 13026 | cat confdefs.h >>conftest.$ac_ext |
| 13027 | cat >>conftest.$ac_ext <<_ACEOF |
| 13028 | /* end confdefs.h. */ |
| 13029 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13030 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13031 | #ifdef __cplusplus |
| 13032 | extern "C" |
| 13033 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13034 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13035 | builtin and then its argument prototype would still apply. */ |
| 13036 | char acl_get_file (); |
| 13037 | int |
| 13038 | main () |
| 13039 | { |
| 13040 | acl_get_file (); |
| 13041 | ; |
| 13042 | return 0; |
| 13043 | } |
| 13044 | _ACEOF |
| 13045 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13047 | (eval $ac_link) 2>conftest.er1 |
| 13048 | ac_status=$? |
| 13049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13050 | rm -f conftest.er1 |
| 13051 | cat conftest.err >&5 |
| 13052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13053 | (exit $ac_status); } && |
| 13054 | { ac_try='test -z "$ac_c_werror_flag" |
| 13055 | || test ! -s conftest.err' |
| 13056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13057 | (eval $ac_try) 2>&5 |
| 13058 | ac_status=$? |
| 13059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13060 | (exit $ac_status); }; } && |
| 13061 | { ac_try='test -s conftest$ac_exeext' |
| 13062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13063 | (eval $ac_try) 2>&5 |
| 13064 | ac_status=$? |
| 13065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13066 | (exit $ac_status); }; }; then |
| 13067 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13068 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13069 | echo "$as_me: failed program was:" >&5 |
| 13070 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13071 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13072 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13073 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13074 | rm -f conftest.err conftest.$ac_objext \ |
| 13075 | conftest$ac_exeext conftest.$ac_ext |
| 13076 | LIBS=$ac_check_lib_save_LIBS |
| 13077 | fi |
| 13078 | echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 13079 | echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6 |
| 13080 | if test $ac_cv_lib_acl_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13081 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13082 | echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 13083 | echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6 |
| 13084 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
| 13085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13086 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13087 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13088 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13089 | cat >conftest.$ac_ext <<_ACEOF |
| 13090 | /* confdefs.h. */ |
| 13091 | _ACEOF |
| 13092 | cat confdefs.h >>conftest.$ac_ext |
| 13093 | cat >>conftest.$ac_ext <<_ACEOF |
| 13094 | /* end confdefs.h. */ |
| 13095 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13096 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13097 | #ifdef __cplusplus |
| 13098 | extern "C" |
| 13099 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13100 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13101 | builtin and then its argument prototype would still apply. */ |
| 13102 | char fgetxattr (); |
| 13103 | int |
| 13104 | main () |
| 13105 | { |
| 13106 | fgetxattr (); |
| 13107 | ; |
| 13108 | return 0; |
| 13109 | } |
| 13110 | _ACEOF |
| 13111 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13113 | (eval $ac_link) 2>conftest.er1 |
| 13114 | ac_status=$? |
| 13115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13116 | rm -f conftest.er1 |
| 13117 | cat conftest.err >&5 |
| 13118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13119 | (exit $ac_status); } && |
| 13120 | { ac_try='test -z "$ac_c_werror_flag" |
| 13121 | || test ! -s conftest.err' |
| 13122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13123 | (eval $ac_try) 2>&5 |
| 13124 | ac_status=$? |
| 13125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13126 | (exit $ac_status); }; } && |
| 13127 | { ac_try='test -s conftest$ac_exeext' |
| 13128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13129 | (eval $ac_try) 2>&5 |
| 13130 | ac_status=$? |
| 13131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13132 | (exit $ac_status); }; }; then |
| 13133 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13134 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13135 | echo "$as_me: failed program was:" >&5 |
| 13136 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13137 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13138 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13139 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13140 | rm -f conftest.err conftest.$ac_objext \ |
| 13141 | conftest$ac_exeext conftest.$ac_ext |
| 13142 | LIBS=$ac_check_lib_save_LIBS |
| 13143 | fi |
| 13144 | echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 13145 | echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6 |
| 13146 | if test $ac_cv_lib_attr_fgetxattr = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13147 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13148 | fi |
| 13149 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13150 | fi |
| 13151 | |
| 13152 | fi |
| 13153 | |
| 13154 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13155 | echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 13156 | echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6 |
| 13157 | cat >conftest.$ac_ext <<_ACEOF |
| 13158 | /* confdefs.h. */ |
| 13159 | _ACEOF |
| 13160 | cat confdefs.h >>conftest.$ac_ext |
| 13161 | cat >>conftest.$ac_ext <<_ACEOF |
| 13162 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13163 | |
| 13164 | #include <sys/types.h> |
| 13165 | #ifdef HAVE_SYS_ACL_H |
| 13166 | # include <sys/acl.h> |
| 13167 | #endif |
| 13168 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13169 | int |
| 13170 | main () |
| 13171 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13172 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 13173 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 13174 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13175 | ; |
| 13176 | return 0; |
| 13177 | } |
| 13178 | _ACEOF |
| 13179 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13181 | (eval $ac_link) 2>conftest.er1 |
| 13182 | ac_status=$? |
| 13183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13184 | rm -f conftest.er1 |
| 13185 | cat conftest.err >&5 |
| 13186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13187 | (exit $ac_status); } && |
| 13188 | { ac_try='test -z "$ac_c_werror_flag" |
| 13189 | || test ! -s conftest.err' |
| 13190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13191 | (eval $ac_try) 2>&5 |
| 13192 | ac_status=$? |
| 13193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13194 | (exit $ac_status); }; } && |
| 13195 | { ac_try='test -s conftest$ac_exeext' |
| 13196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13197 | (eval $ac_try) 2>&5 |
| 13198 | ac_status=$? |
| 13199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13200 | (exit $ac_status); }; }; then |
| 13201 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13202 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13203 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13204 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13205 | |
| 13206 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13207 | echo "$as_me: failed program was:" >&5 |
| 13208 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13209 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13210 | echo "$as_me:$LINENO: result: no" >&5 |
| 13211 | echo "${ECHO_T}no" >&6 |
| 13212 | fi |
| 13213 | rm -f conftest.err conftest.$ac_objext \ |
| 13214 | conftest$ac_exeext conftest.$ac_ext |
| 13215 | |
| 13216 | echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 13217 | echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6 |
| 13218 | cat >conftest.$ac_ext <<_ACEOF |
| 13219 | /* confdefs.h. */ |
| 13220 | _ACEOF |
| 13221 | cat confdefs.h >>conftest.$ac_ext |
| 13222 | cat >>conftest.$ac_ext <<_ACEOF |
| 13223 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13224 | |
| 13225 | #ifdef HAVE_SYS_ACL_H |
| 13226 | # include <sys/acl.h> |
| 13227 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13228 | int |
| 13229 | main () |
| 13230 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13231 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13232 | |
| 13233 | ; |
| 13234 | return 0; |
| 13235 | } |
| 13236 | _ACEOF |
| 13237 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13239 | (eval $ac_link) 2>conftest.er1 |
| 13240 | ac_status=$? |
| 13241 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13242 | rm -f conftest.er1 |
| 13243 | cat conftest.err >&5 |
| 13244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13245 | (exit $ac_status); } && |
| 13246 | { ac_try='test -z "$ac_c_werror_flag" |
| 13247 | || test ! -s conftest.err' |
| 13248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13249 | (eval $ac_try) 2>&5 |
| 13250 | ac_status=$? |
| 13251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13252 | (exit $ac_status); }; } && |
| 13253 | { ac_try='test -s conftest$ac_exeext' |
| 13254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13255 | (eval $ac_try) 2>&5 |
| 13256 | ac_status=$? |
| 13257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13258 | (exit $ac_status); }; }; then |
| 13259 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13260 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13261 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13262 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13263 | |
| 13264 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13265 | echo "$as_me: failed program was:" >&5 |
| 13266 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13267 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13268 | echo "$as_me:$LINENO: result: no" >&5 |
| 13269 | echo "${ECHO_T}no" >&6 |
| 13270 | fi |
| 13271 | rm -f conftest.err conftest.$ac_objext \ |
| 13272 | conftest$ac_exeext conftest.$ac_ext |
| 13273 | |
| 13274 | echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 13275 | echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6 |
| 13276 | cat >conftest.$ac_ext <<_ACEOF |
| 13277 | /* confdefs.h. */ |
| 13278 | _ACEOF |
| 13279 | cat confdefs.h >>conftest.$ac_ext |
| 13280 | cat >>conftest.$ac_ext <<_ACEOF |
| 13281 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13282 | |
| 13283 | #ifdef HAVE_SYS_ACL_H |
| 13284 | # include <sys/acl.h> |
| 13285 | #endif |
| 13286 | #ifdef HAVE_SYS_ACCESS_H |
| 13287 | # include <sys/access.h> |
| 13288 | #endif |
| 13289 | #define _ALL_SOURCE |
| 13290 | |
| 13291 | #include <sys/stat.h> |
| 13292 | |
| 13293 | int aclsize; |
| 13294 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13295 | int |
| 13296 | main () |
| 13297 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13298 | aclsize = sizeof(struct acl); |
| 13299 | aclent = (void *)malloc(aclsize); |
| 13300 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13301 | |
| 13302 | ; |
| 13303 | return 0; |
| 13304 | } |
| 13305 | _ACEOF |
| 13306 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13308 | (eval $ac_link) 2>conftest.er1 |
| 13309 | ac_status=$? |
| 13310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13311 | rm -f conftest.er1 |
| 13312 | cat conftest.err >&5 |
| 13313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13314 | (exit $ac_status); } && |
| 13315 | { ac_try='test -z "$ac_c_werror_flag" |
| 13316 | || test ! -s conftest.err' |
| 13317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13318 | (eval $ac_try) 2>&5 |
| 13319 | ac_status=$? |
| 13320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13321 | (exit $ac_status); }; } && |
| 13322 | { ac_try='test -s conftest$ac_exeext' |
| 13323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13324 | (eval $ac_try) 2>&5 |
| 13325 | ac_status=$? |
| 13326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13327 | (exit $ac_status); }; }; then |
| 13328 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13329 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13330 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13331 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13332 | |
| 13333 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13334 | echo "$as_me: failed program was:" >&5 |
| 13335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13336 | |
| 13337 | echo "$as_me:$LINENO: result: no" >&5 |
| 13338 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13339 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13340 | rm -f conftest.err conftest.$ac_objext \ |
| 13341 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13342 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13343 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13344 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13345 | fi |
| 13346 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13347 | echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 13348 | echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13349 | # Check whether --enable-gpm or --disable-gpm was given. |
| 13350 | if test "${enable_gpm+set}" = set; then |
| 13351 | enableval="$enable_gpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13352 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13353 | else |
| 13354 | enable_gpm="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13355 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13356 | |
| 13357 | if test "$enable_gpm" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13358 | echo "$as_me:$LINENO: result: no" >&5 |
| 13359 | echo "${ECHO_T}no" >&6 |
| 13360 | echo "$as_me:$LINENO: checking for gpm" >&5 |
| 13361 | echo $ECHO_N "checking for gpm... $ECHO_C" >&6 |
| 13362 | if test "${vi_cv_have_gpm+set}" = set; then |
| 13363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13364 | else |
| 13365 | olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13366 | cat >conftest.$ac_ext <<_ACEOF |
| 13367 | /* confdefs.h. */ |
| 13368 | _ACEOF |
| 13369 | cat confdefs.h >>conftest.$ac_ext |
| 13370 | cat >>conftest.$ac_ext <<_ACEOF |
| 13371 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13372 | #include <gpm.h> |
| 13373 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13374 | int |
| 13375 | main () |
| 13376 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13377 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13378 | ; |
| 13379 | return 0; |
| 13380 | } |
| 13381 | _ACEOF |
| 13382 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13384 | (eval $ac_link) 2>conftest.er1 |
| 13385 | ac_status=$? |
| 13386 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13387 | rm -f conftest.er1 |
| 13388 | cat conftest.err >&5 |
| 13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13390 | (exit $ac_status); } && |
| 13391 | { ac_try='test -z "$ac_c_werror_flag" |
| 13392 | || test ! -s conftest.err' |
| 13393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13394 | (eval $ac_try) 2>&5 |
| 13395 | ac_status=$? |
| 13396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13397 | (exit $ac_status); }; } && |
| 13398 | { ac_try='test -s conftest$ac_exeext' |
| 13399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13400 | (eval $ac_try) 2>&5 |
| 13401 | ac_status=$? |
| 13402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13403 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13404 | vi_cv_have_gpm=yes |
| 13405 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13406 | echo "$as_me: failed program was:" >&5 |
| 13407 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13408 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13409 | vi_cv_have_gpm=no |
| 13410 | fi |
| 13411 | rm -f conftest.err conftest.$ac_objext \ |
| 13412 | conftest$ac_exeext conftest.$ac_ext |
| 13413 | LIBS="$olibs" |
| 13414 | |
| 13415 | fi |
| 13416 | echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 13417 | echo "${ECHO_T}$vi_cv_have_gpm" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13418 | if test $vi_cv_have_gpm = yes; then |
| 13419 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13420 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13421 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13422 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13423 | |
| 13424 | fi |
| 13425 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13426 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13427 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13428 | fi |
| 13429 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13430 | echo "$as_me:$LINENO: checking for rename" >&5 |
| 13431 | echo $ECHO_N "checking for rename... $ECHO_C" >&6 |
| 13432 | cat >conftest.$ac_ext <<_ACEOF |
| 13433 | /* confdefs.h. */ |
| 13434 | _ACEOF |
| 13435 | cat confdefs.h >>conftest.$ac_ext |
| 13436 | cat >>conftest.$ac_ext <<_ACEOF |
| 13437 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13438 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13439 | int |
| 13440 | main () |
| 13441 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13442 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13443 | ; |
| 13444 | return 0; |
| 13445 | } |
| 13446 | _ACEOF |
| 13447 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13449 | (eval $ac_link) 2>conftest.er1 |
| 13450 | ac_status=$? |
| 13451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13452 | rm -f conftest.er1 |
| 13453 | cat conftest.err >&5 |
| 13454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13455 | (exit $ac_status); } && |
| 13456 | { ac_try='test -z "$ac_c_werror_flag" |
| 13457 | || test ! -s conftest.err' |
| 13458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13459 | (eval $ac_try) 2>&5 |
| 13460 | ac_status=$? |
| 13461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13462 | (exit $ac_status); }; } && |
| 13463 | { ac_try='test -s conftest$ac_exeext' |
| 13464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13465 | (eval $ac_try) 2>&5 |
| 13466 | ac_status=$? |
| 13467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13468 | (exit $ac_status); }; }; then |
| 13469 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13470 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13471 | #define HAVE_RENAME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13472 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13473 | |
| 13474 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13475 | echo "$as_me: failed program was:" >&5 |
| 13476 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13477 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13478 | echo "$as_me:$LINENO: result: no" >&5 |
| 13479 | echo "${ECHO_T}no" >&6 |
| 13480 | fi |
| 13481 | rm -f conftest.err conftest.$ac_objext \ |
| 13482 | conftest$ac_exeext conftest.$ac_ext |
| 13483 | |
| 13484 | echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 13485 | echo $ECHO_N "checking for sysctl... $ECHO_C" >&6 |
| 13486 | cat >conftest.$ac_ext <<_ACEOF |
| 13487 | /* confdefs.h. */ |
| 13488 | _ACEOF |
| 13489 | cat confdefs.h >>conftest.$ac_ext |
| 13490 | cat >>conftest.$ac_ext <<_ACEOF |
| 13491 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13492 | #include <sys/types.h> |
| 13493 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13494 | int |
| 13495 | main () |
| 13496 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13497 | int mib[2], r; |
| 13498 | size_t len; |
| 13499 | |
| 13500 | mib[0] = CTL_HW; |
| 13501 | mib[1] = HW_USERMEM; |
| 13502 | len = sizeof(r); |
| 13503 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13504 | |
| 13505 | ; |
| 13506 | return 0; |
| 13507 | } |
| 13508 | _ACEOF |
| 13509 | rm -f conftest.$ac_objext |
| 13510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13511 | (eval $ac_compile) 2>conftest.er1 |
| 13512 | ac_status=$? |
| 13513 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13514 | rm -f conftest.er1 |
| 13515 | cat conftest.err >&5 |
| 13516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13517 | (exit $ac_status); } && |
| 13518 | { ac_try='test -z "$ac_c_werror_flag" |
| 13519 | || test ! -s conftest.err' |
| 13520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13521 | (eval $ac_try) 2>&5 |
| 13522 | ac_status=$? |
| 13523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13524 | (exit $ac_status); }; } && |
| 13525 | { ac_try='test -s conftest.$ac_objext' |
| 13526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13527 | (eval $ac_try) 2>&5 |
| 13528 | ac_status=$? |
| 13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13530 | (exit $ac_status); }; }; then |
| 13531 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13532 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13533 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13534 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13535 | |
| 13536 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13537 | echo "$as_me: failed program was:" >&5 |
| 13538 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13539 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13540 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13541 | echo "${ECHO_T}not usable" >&6 |
| 13542 | fi |
| 13543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13544 | |
| 13545 | echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 13546 | echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6 |
| 13547 | cat >conftest.$ac_ext <<_ACEOF |
| 13548 | /* confdefs.h. */ |
| 13549 | _ACEOF |
| 13550 | cat confdefs.h >>conftest.$ac_ext |
| 13551 | cat >>conftest.$ac_ext <<_ACEOF |
| 13552 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13553 | #include <sys/types.h> |
| 13554 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13555 | int |
| 13556 | main () |
| 13557 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13558 | struct sysinfo sinfo; |
| 13559 | int t; |
| 13560 | |
| 13561 | (void)sysinfo(&sinfo); |
| 13562 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13563 | |
| 13564 | ; |
| 13565 | return 0; |
| 13566 | } |
| 13567 | _ACEOF |
| 13568 | rm -f conftest.$ac_objext |
| 13569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13570 | (eval $ac_compile) 2>conftest.er1 |
| 13571 | ac_status=$? |
| 13572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13573 | rm -f conftest.er1 |
| 13574 | cat conftest.err >&5 |
| 13575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13576 | (exit $ac_status); } && |
| 13577 | { ac_try='test -z "$ac_c_werror_flag" |
| 13578 | || test ! -s conftest.err' |
| 13579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13580 | (eval $ac_try) 2>&5 |
| 13581 | ac_status=$? |
| 13582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13583 | (exit $ac_status); }; } && |
| 13584 | { ac_try='test -s conftest.$ac_objext' |
| 13585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13586 | (eval $ac_try) 2>&5 |
| 13587 | ac_status=$? |
| 13588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13589 | (exit $ac_status); }; }; then |
| 13590 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13591 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13592 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13593 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13594 | |
| 13595 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13596 | echo "$as_me: failed program was:" >&5 |
| 13597 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13598 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13599 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13600 | echo "${ECHO_T}not usable" >&6 |
| 13601 | fi |
| 13602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13603 | |
| 13604 | echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 13605 | echo $ECHO_N "checking for sysconf... $ECHO_C" >&6 |
| 13606 | cat >conftest.$ac_ext <<_ACEOF |
| 13607 | /* confdefs.h. */ |
| 13608 | _ACEOF |
| 13609 | cat confdefs.h >>conftest.$ac_ext |
| 13610 | cat >>conftest.$ac_ext <<_ACEOF |
| 13611 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13612 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13613 | int |
| 13614 | main () |
| 13615 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13616 | (void)sysconf(_SC_PAGESIZE); |
| 13617 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13618 | |
| 13619 | ; |
| 13620 | return 0; |
| 13621 | } |
| 13622 | _ACEOF |
| 13623 | rm -f conftest.$ac_objext |
| 13624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13625 | (eval $ac_compile) 2>conftest.er1 |
| 13626 | ac_status=$? |
| 13627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13628 | rm -f conftest.er1 |
| 13629 | cat conftest.err >&5 |
| 13630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13631 | (exit $ac_status); } && |
| 13632 | { ac_try='test -z "$ac_c_werror_flag" |
| 13633 | || test ! -s conftest.err' |
| 13634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13635 | (eval $ac_try) 2>&5 |
| 13636 | ac_status=$? |
| 13637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13638 | (exit $ac_status); }; } && |
| 13639 | { ac_try='test -s conftest.$ac_objext' |
| 13640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13641 | (eval $ac_try) 2>&5 |
| 13642 | ac_status=$? |
| 13643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13644 | (exit $ac_status); }; }; then |
| 13645 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13646 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13647 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13648 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13649 | |
| 13650 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13651 | echo "$as_me: failed program was:" >&5 |
| 13652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13653 | |
| 13654 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13655 | echo "${ECHO_T}not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13656 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13658 | |
| 13659 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13660 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 13661 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 13662 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 13663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13664 | else |
| 13665 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13666 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13667 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13668 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13669 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13670 | cat >conftest.$ac_ext <<_ACEOF |
| 13671 | /* confdefs.h. */ |
| 13672 | _ACEOF |
| 13673 | cat confdefs.h >>conftest.$ac_ext |
| 13674 | cat >>conftest.$ac_ext <<_ACEOF |
| 13675 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13676 | #include <stdio.h> |
| 13677 | main() |
| 13678 | { |
| 13679 | FILE *f=fopen("conftestval", "w"); |
| 13680 | if (!f) exit(1); |
| 13681 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 13682 | exit(0); |
| 13683 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13684 | _ACEOF |
| 13685 | rm -f conftest$ac_exeext |
| 13686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13687 | (eval $ac_link) 2>&5 |
| 13688 | ac_status=$? |
| 13689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13690 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13692 | (eval $ac_try) 2>&5 |
| 13693 | ac_status=$? |
| 13694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13695 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13696 | ac_cv_sizeof_int=`cat conftestval` |
| 13697 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13698 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13699 | echo "$as_me: failed program was:" >&5 |
| 13700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13701 | |
| 13702 | ( exit $ac_status ) |
| 13703 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13704 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13705 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13706 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13707 | fi |
| 13708 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13709 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13710 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 13711 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13712 | #define SIZEOF_INT $ac_cv_sizeof_int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13713 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13714 | |
| 13715 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13716 | echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5 |
| 13717 | echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13718 | bcopy_test_prog=' |
| 13719 | main() { |
| 13720 | char buf[10]; |
| 13721 | strcpy(buf, "abcdefghi"); |
| 13722 | mch_memmove(buf, buf + 2, 3); |
| 13723 | if (strncmp(buf, "ababcf", 6)) |
| 13724 | exit(1); |
| 13725 | strcpy(buf, "abcdefghi"); |
| 13726 | mch_memmove(buf + 2, buf, 3); |
| 13727 | if (strncmp(buf, "cdedef", 6)) |
| 13728 | exit(1); |
| 13729 | exit(0); /* libc version works properly. */ |
| 13730 | }' |
| 13731 | |
| 13732 | |
| 13733 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13734 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13735 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13736 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13737 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13738 | cat >conftest.$ac_ext <<_ACEOF |
| 13739 | /* confdefs.h. */ |
| 13740 | _ACEOF |
| 13741 | cat confdefs.h >>conftest.$ac_ext |
| 13742 | cat >>conftest.$ac_ext <<_ACEOF |
| 13743 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13744 | #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13745 | _ACEOF |
| 13746 | rm -f conftest$ac_exeext |
| 13747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13748 | (eval $ac_link) 2>&5 |
| 13749 | ac_status=$? |
| 13750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13751 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13753 | (eval $ac_try) 2>&5 |
| 13754 | ac_status=$? |
| 13755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13756 | (exit $ac_status); }; }; then |
| 13757 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13758 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13759 | _ACEOF |
| 13760 | echo "$as_me:$LINENO: result: memmove does" >&5 |
| 13761 | echo "${ECHO_T}memmove does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13762 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13763 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13764 | echo "$as_me: failed program was:" >&5 |
| 13765 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13766 | |
| 13767 | ( exit $ac_status ) |
| 13768 | if test "$cross_compiling" = yes; then |
| 13769 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13770 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13771 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13772 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13773 | cat >conftest.$ac_ext <<_ACEOF |
| 13774 | /* confdefs.h. */ |
| 13775 | _ACEOF |
| 13776 | cat confdefs.h >>conftest.$ac_ext |
| 13777 | cat >>conftest.$ac_ext <<_ACEOF |
| 13778 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13779 | #define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13780 | _ACEOF |
| 13781 | rm -f conftest$ac_exeext |
| 13782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13783 | (eval $ac_link) 2>&5 |
| 13784 | ac_status=$? |
| 13785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13788 | (eval $ac_try) 2>&5 |
| 13789 | ac_status=$? |
| 13790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13791 | (exit $ac_status); }; }; then |
| 13792 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13793 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13794 | _ACEOF |
| 13795 | echo "$as_me:$LINENO: result: bcopy does" >&5 |
| 13796 | echo "${ECHO_T}bcopy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13797 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13798 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13799 | echo "$as_me: failed program was:" >&5 |
| 13800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13801 | |
| 13802 | ( exit $ac_status ) |
| 13803 | if test "$cross_compiling" = yes; then |
| 13804 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13805 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13806 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13807 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13808 | cat >conftest.$ac_ext <<_ACEOF |
| 13809 | /* confdefs.h. */ |
| 13810 | _ACEOF |
| 13811 | cat confdefs.h >>conftest.$ac_ext |
| 13812 | cat >>conftest.$ac_ext <<_ACEOF |
| 13813 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13814 | #define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13815 | _ACEOF |
| 13816 | rm -f conftest$ac_exeext |
| 13817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13818 | (eval $ac_link) 2>&5 |
| 13819 | ac_status=$? |
| 13820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13821 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13823 | (eval $ac_try) 2>&5 |
| 13824 | ac_status=$? |
| 13825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13826 | (exit $ac_status); }; }; then |
| 13827 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13828 | #define USEMEMCPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13829 | _ACEOF |
| 13830 | echo "$as_me:$LINENO: result: memcpy does" >&5 |
| 13831 | echo "${ECHO_T}memcpy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13832 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13833 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13834 | echo "$as_me: failed program was:" >&5 |
| 13835 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13836 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13837 | ( exit $ac_status ) |
| 13838 | echo "$as_me:$LINENO: result: no" >&5 |
| 13839 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13840 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13841 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13842 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13843 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13844 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13845 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13846 | fi |
| 13847 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13848 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13849 | |
| 13850 | |
| 13851 | if test "$enable_multibyte" = "yes"; then |
| 13852 | cflags_save=$CFLAGS |
| 13853 | ldflags_save=$LDFLAGS |
| 13854 | if test -n "$x_includes" ; then |
| 13855 | CFLAGS="$CFLAGS -I$x_includes" |
| 13856 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13857 | echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 13858 | echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6 |
| 13859 | cat >conftest.$ac_ext <<_ACEOF |
| 13860 | /* confdefs.h. */ |
| 13861 | _ACEOF |
| 13862 | cat confdefs.h >>conftest.$ac_ext |
| 13863 | cat >>conftest.$ac_ext <<_ACEOF |
| 13864 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13865 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13866 | int |
| 13867 | main () |
| 13868 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13869 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13870 | ; |
| 13871 | return 0; |
| 13872 | } |
| 13873 | _ACEOF |
| 13874 | rm -f conftest.$ac_objext |
| 13875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13876 | (eval $ac_compile) 2>conftest.er1 |
| 13877 | ac_status=$? |
| 13878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13879 | rm -f conftest.er1 |
| 13880 | cat conftest.err >&5 |
| 13881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13882 | (exit $ac_status); } && |
| 13883 | { ac_try='test -z "$ac_c_werror_flag" |
| 13884 | || test ! -s conftest.err' |
| 13885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13886 | (eval $ac_try) 2>&5 |
| 13887 | ac_status=$? |
| 13888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13889 | (exit $ac_status); }; } && |
| 13890 | { ac_try='test -s conftest.$ac_objext' |
| 13891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13892 | (eval $ac_try) 2>&5 |
| 13893 | ac_status=$? |
| 13894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13895 | (exit $ac_status); }; }; then |
| 13896 | cat >conftest.$ac_ext <<_ACEOF |
| 13897 | /* confdefs.h. */ |
| 13898 | _ACEOF |
| 13899 | cat confdefs.h >>conftest.$ac_ext |
| 13900 | cat >>conftest.$ac_ext <<_ACEOF |
| 13901 | /* end confdefs.h. */ |
| 13902 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13903 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13904 | #ifdef __cplusplus |
| 13905 | extern "C" |
| 13906 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13907 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13908 | builtin and then its argument prototype would still apply. */ |
| 13909 | char _Xsetlocale (); |
| 13910 | int |
| 13911 | main () |
| 13912 | { |
| 13913 | _Xsetlocale (); |
| 13914 | ; |
| 13915 | return 0; |
| 13916 | } |
| 13917 | _ACEOF |
| 13918 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13920 | (eval $ac_link) 2>conftest.er1 |
| 13921 | ac_status=$? |
| 13922 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13923 | rm -f conftest.er1 |
| 13924 | cat conftest.err >&5 |
| 13925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13926 | (exit $ac_status); } && |
| 13927 | { ac_try='test -z "$ac_c_werror_flag" |
| 13928 | || test ! -s conftest.err' |
| 13929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13930 | (eval $ac_try) 2>&5 |
| 13931 | ac_status=$? |
| 13932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13933 | (exit $ac_status); }; } && |
| 13934 | { ac_try='test -s conftest$ac_exeext' |
| 13935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13936 | (eval $ac_try) 2>&5 |
| 13937 | ac_status=$? |
| 13938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13939 | (exit $ac_status); }; }; then |
| 13940 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13941 | echo "${ECHO_T}yes" >&6 |
| 13942 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13943 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13944 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13945 | |
| 13946 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13947 | echo "$as_me: failed program was:" >&5 |
| 13948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13949 | |
| 13950 | echo "$as_me:$LINENO: result: no" >&5 |
| 13951 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13952 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13953 | rm -f conftest.err conftest.$ac_objext \ |
| 13954 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13955 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13956 | echo "$as_me: failed program was:" >&5 |
| 13957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13958 | |
| 13959 | echo "$as_me:$LINENO: result: no" >&5 |
| 13960 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13961 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13963 | fi |
| 13964 | CFLAGS=$cflags_save |
| 13965 | LDFLAGS=$ldflags_save |
| 13966 | fi |
| 13967 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13968 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 13969 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 13970 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 13971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13972 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13973 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13974 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13975 | cat >conftest.$ac_ext <<_ACEOF |
| 13976 | /* confdefs.h. */ |
| 13977 | _ACEOF |
| 13978 | cat confdefs.h >>conftest.$ac_ext |
| 13979 | cat >>conftest.$ac_ext <<_ACEOF |
| 13980 | /* end confdefs.h. */ |
| 13981 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13982 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13983 | #ifdef __cplusplus |
| 13984 | extern "C" |
| 13985 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13986 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13987 | builtin and then its argument prototype would still apply. */ |
| 13988 | char _xpg4_setrunelocale (); |
| 13989 | int |
| 13990 | main () |
| 13991 | { |
| 13992 | _xpg4_setrunelocale (); |
| 13993 | ; |
| 13994 | return 0; |
| 13995 | } |
| 13996 | _ACEOF |
| 13997 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13999 | (eval $ac_link) 2>conftest.er1 |
| 14000 | ac_status=$? |
| 14001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14002 | rm -f conftest.er1 |
| 14003 | cat conftest.err >&5 |
| 14004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14005 | (exit $ac_status); } && |
| 14006 | { ac_try='test -z "$ac_c_werror_flag" |
| 14007 | || test ! -s conftest.err' |
| 14008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14009 | (eval $ac_try) 2>&5 |
| 14010 | ac_status=$? |
| 14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14012 | (exit $ac_status); }; } && |
| 14013 | { ac_try='test -s conftest$ac_exeext' |
| 14014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14015 | (eval $ac_try) 2>&5 |
| 14016 | ac_status=$? |
| 14017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14018 | (exit $ac_status); }; }; then |
| 14019 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14020 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14021 | echo "$as_me: failed program was:" >&5 |
| 14022 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14023 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14024 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14025 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14026 | rm -f conftest.err conftest.$ac_objext \ |
| 14027 | conftest$ac_exeext conftest.$ac_ext |
| 14028 | LIBS=$ac_check_lib_save_LIBS |
| 14029 | fi |
| 14030 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 14031 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 14032 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14033 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14034 | fi |
| 14035 | |
| 14036 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14037 | echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 14038 | echo $ECHO_N "checking how to create tags... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14039 | test -f tags && mv tags tags.save |
| 14040 | if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
Bram Moolenaar | 78984f5 | 2005-08-01 07:19:10 +0000 | [diff] [blame] | 14041 | TAGPRG="ctags -I INIT+" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14042 | else |
| 14043 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 14044 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 14045 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 14046 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 14047 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 14048 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 14049 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 14050 | fi |
| 14051 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14052 | echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 14053 | echo "${ECHO_T}$TAGPRG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14054 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14055 | echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 14056 | echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14057 | MANDEF="man" |
| 14058 | (eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14059 | echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 14060 | echo "${ECHO_T}$MANDEF" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14061 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14062 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14063 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14064 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14065 | |
| 14066 | fi |
| 14067 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14068 | echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 14069 | echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14070 | # Check whether --enable-nls or --disable-nls was given. |
| 14071 | if test "${enable_nls+set}" = set; then |
| 14072 | enableval="$enable_nls" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14073 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14074 | else |
| 14075 | enable_nls="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14076 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14077 | |
| 14078 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14079 | echo "$as_me:$LINENO: result: no" >&5 |
| 14080 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 14081 | |
| 14082 | INSTALL_LANGS=install-languages |
| 14083 | |
| 14084 | INSTALL_TOOL_LANGS=install-tool-languages |
| 14085 | |
| 14086 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14087 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 14088 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14089 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14091 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
| 14092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14093 | else |
| 14094 | if test -n "$MSGFMT"; then |
| 14095 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 14096 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14098 | for as_dir in $PATH |
| 14099 | do |
| 14100 | IFS=$as_save_IFS |
| 14101 | test -z "$as_dir" && as_dir=. |
| 14102 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14103 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14104 | ac_cv_prog_MSGFMT="msgfmt" |
| 14105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14106 | break 2 |
| 14107 | fi |
| 14108 | done |
| 14109 | done |
| 14110 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14111 | fi |
| 14112 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14113 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14114 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14115 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 14116 | echo "${ECHO_T}$MSGFMT" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14117 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14118 | echo "$as_me:$LINENO: result: no" >&5 |
| 14119 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14120 | fi |
| 14121 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14122 | echo "$as_me:$LINENO: checking for NLS" >&5 |
| 14123 | echo $ECHO_N "checking for NLS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14124 | if test -f po/Makefile; then |
| 14125 | have_gettext="no" |
| 14126 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14127 | cat >conftest.$ac_ext <<_ACEOF |
| 14128 | /* confdefs.h. */ |
| 14129 | _ACEOF |
| 14130 | cat confdefs.h >>conftest.$ac_ext |
| 14131 | cat >>conftest.$ac_ext <<_ACEOF |
| 14132 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14133 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14134 | int |
| 14135 | main () |
| 14136 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14137 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14138 | ; |
| 14139 | return 0; |
| 14140 | } |
| 14141 | _ACEOF |
| 14142 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14144 | (eval $ac_link) 2>conftest.er1 |
| 14145 | ac_status=$? |
| 14146 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14147 | rm -f conftest.er1 |
| 14148 | cat conftest.err >&5 |
| 14149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14150 | (exit $ac_status); } && |
| 14151 | { ac_try='test -z "$ac_c_werror_flag" |
| 14152 | || test ! -s conftest.err' |
| 14153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14154 | (eval $ac_try) 2>&5 |
| 14155 | ac_status=$? |
| 14156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14157 | (exit $ac_status); }; } && |
| 14158 | { ac_try='test -s conftest$ac_exeext' |
| 14159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14160 | (eval $ac_try) 2>&5 |
| 14161 | ac_status=$? |
| 14162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14163 | (exit $ac_status); }; }; then |
| 14164 | echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 14165 | echo "${ECHO_T}gettext() works" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14166 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14167 | echo "$as_me: failed program was:" >&5 |
| 14168 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14169 | |
| 14170 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14171 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14172 | cat >conftest.$ac_ext <<_ACEOF |
| 14173 | /* confdefs.h. */ |
| 14174 | _ACEOF |
| 14175 | cat confdefs.h >>conftest.$ac_ext |
| 14176 | cat >>conftest.$ac_ext <<_ACEOF |
| 14177 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14178 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14179 | int |
| 14180 | main () |
| 14181 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14182 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14183 | ; |
| 14184 | return 0; |
| 14185 | } |
| 14186 | _ACEOF |
| 14187 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14189 | (eval $ac_link) 2>conftest.er1 |
| 14190 | ac_status=$? |
| 14191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14192 | rm -f conftest.er1 |
| 14193 | cat conftest.err >&5 |
| 14194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14195 | (exit $ac_status); } && |
| 14196 | { ac_try='test -z "$ac_c_werror_flag" |
| 14197 | || test ! -s conftest.err' |
| 14198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14199 | (eval $ac_try) 2>&5 |
| 14200 | ac_status=$? |
| 14201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14202 | (exit $ac_status); }; } && |
| 14203 | { ac_try='test -s conftest$ac_exeext' |
| 14204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14205 | (eval $ac_try) 2>&5 |
| 14206 | ac_status=$? |
| 14207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14208 | (exit $ac_status); }; }; then |
| 14209 | echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 14210 | echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14211 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14212 | echo "$as_me: failed program was:" >&5 |
| 14213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14214 | |
| 14215 | echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 14216 | echo "${ECHO_T}gettext() doesn't work" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14217 | LIBS=$olibs |
| 14218 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14219 | rm -f conftest.err conftest.$ac_objext \ |
| 14220 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14221 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14222 | rm -f conftest.err conftest.$ac_objext \ |
| 14223 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14224 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14225 | echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 14226 | echo "${ECHO_T}msgfmt not found - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14227 | fi |
| 14228 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14229 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14230 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14231 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14232 | |
| 14233 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14234 | |
| 14235 | |
| 14236 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14237 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14238 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14239 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14240 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14241 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14243 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14244 | cat >conftest.$ac_ext <<_ACEOF |
| 14245 | /* confdefs.h. */ |
| 14246 | _ACEOF |
| 14247 | cat confdefs.h >>conftest.$ac_ext |
| 14248 | cat >>conftest.$ac_ext <<_ACEOF |
| 14249 | /* end confdefs.h. */ |
| 14250 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14251 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14252 | #define $ac_func innocuous_$ac_func |
| 14253 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14254 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14255 | which can conflict with char $ac_func (); below. |
| 14256 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14257 | <limits.h> exists even on freestanding compilers. */ |
| 14258 | |
| 14259 | #ifdef __STDC__ |
| 14260 | # include <limits.h> |
| 14261 | #else |
| 14262 | # include <assert.h> |
| 14263 | #endif |
| 14264 | |
| 14265 | #undef $ac_func |
| 14266 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14267 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14268 | #ifdef __cplusplus |
| 14269 | extern "C" |
| 14270 | { |
| 14271 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14272 | /* We use char because int might match the return type of a gcc2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14273 | builtin and then its argument prototype would still apply. */ |
| 14274 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14275 | /* The GNU C library defines this for functions which it implements |
| 14276 | to always fail with ENOSYS. Some functions are actually named |
| 14277 | something starting with __ and the normal name is an alias. */ |
| 14278 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14279 | choke me |
| 14280 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14281 | char (*f) () = $ac_func; |
| 14282 | #endif |
| 14283 | #ifdef __cplusplus |
| 14284 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14285 | #endif |
| 14286 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14287 | int |
| 14288 | main () |
| 14289 | { |
| 14290 | return f != $ac_func; |
| 14291 | ; |
| 14292 | return 0; |
| 14293 | } |
| 14294 | _ACEOF |
| 14295 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14297 | (eval $ac_link) 2>conftest.er1 |
| 14298 | ac_status=$? |
| 14299 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14300 | rm -f conftest.er1 |
| 14301 | cat conftest.err >&5 |
| 14302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14303 | (exit $ac_status); } && |
| 14304 | { ac_try='test -z "$ac_c_werror_flag" |
| 14305 | || test ! -s conftest.err' |
| 14306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14307 | (eval $ac_try) 2>&5 |
| 14308 | ac_status=$? |
| 14309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14310 | (exit $ac_status); }; } && |
| 14311 | { ac_try='test -s conftest$ac_exeext' |
| 14312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14313 | (eval $ac_try) 2>&5 |
| 14314 | ac_status=$? |
| 14315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14316 | (exit $ac_status); }; }; then |
| 14317 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14318 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14319 | echo "$as_me: failed program was:" >&5 |
| 14320 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14321 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14322 | eval "$as_ac_var=no" |
| 14323 | fi |
| 14324 | rm -f conftest.err conftest.$ac_objext \ |
| 14325 | conftest$ac_exeext conftest.$ac_ext |
| 14326 | fi |
| 14327 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14328 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14329 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14330 | cat >>confdefs.h <<_ACEOF |
| 14331 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14332 | _ACEOF |
| 14333 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14334 | fi |
| 14335 | done |
| 14336 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14337 | echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 14338 | echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6 |
| 14339 | cat >conftest.$ac_ext <<_ACEOF |
| 14340 | /* confdefs.h. */ |
| 14341 | _ACEOF |
| 14342 | cat confdefs.h >>conftest.$ac_ext |
| 14343 | cat >>conftest.$ac_ext <<_ACEOF |
| 14344 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14345 | #include <libintl.h> |
| 14346 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14347 | int |
| 14348 | main () |
| 14349 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14350 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14351 | ; |
| 14352 | return 0; |
| 14353 | } |
| 14354 | _ACEOF |
| 14355 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14357 | (eval $ac_link) 2>conftest.er1 |
| 14358 | ac_status=$? |
| 14359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14360 | rm -f conftest.er1 |
| 14361 | cat conftest.err >&5 |
| 14362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14363 | (exit $ac_status); } && |
| 14364 | { ac_try='test -z "$ac_c_werror_flag" |
| 14365 | || test ! -s conftest.err' |
| 14366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14367 | (eval $ac_try) 2>&5 |
| 14368 | ac_status=$? |
| 14369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14370 | (exit $ac_status); }; } && |
| 14371 | { ac_try='test -s conftest$ac_exeext' |
| 14372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14373 | (eval $ac_try) 2>&5 |
| 14374 | ac_status=$? |
| 14375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14376 | (exit $ac_status); }; }; then |
| 14377 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14378 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14379 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14380 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14381 | |
| 14382 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14383 | echo "$as_me: failed program was:" >&5 |
| 14384 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14385 | |
| 14386 | echo "$as_me:$LINENO: result: no" >&5 |
| 14387 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14388 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14389 | rm -f conftest.err conftest.$ac_objext \ |
| 14390 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14391 | fi |
| 14392 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14393 | echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 14394 | echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14395 | fi |
| 14396 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14397 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14398 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14399 | fi |
| 14400 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14401 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14402 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 14403 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 14404 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14406 | fi |
| 14407 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 14408 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14409 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14410 | # Is the header compilable? |
| 14411 | echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 14412 | echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 |
| 14413 | cat >conftest.$ac_ext <<_ACEOF |
| 14414 | /* confdefs.h. */ |
| 14415 | _ACEOF |
| 14416 | cat confdefs.h >>conftest.$ac_ext |
| 14417 | cat >>conftest.$ac_ext <<_ACEOF |
| 14418 | /* end confdefs.h. */ |
| 14419 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14420 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14421 | _ACEOF |
| 14422 | rm -f conftest.$ac_objext |
| 14423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14424 | (eval $ac_compile) 2>conftest.er1 |
| 14425 | ac_status=$? |
| 14426 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14427 | rm -f conftest.er1 |
| 14428 | cat conftest.err >&5 |
| 14429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14430 | (exit $ac_status); } && |
| 14431 | { ac_try='test -z "$ac_c_werror_flag" |
| 14432 | || test ! -s conftest.err' |
| 14433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14434 | (eval $ac_try) 2>&5 |
| 14435 | ac_status=$? |
| 14436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14437 | (exit $ac_status); }; } && |
| 14438 | { ac_try='test -s conftest.$ac_objext' |
| 14439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14440 | (eval $ac_try) 2>&5 |
| 14441 | ac_status=$? |
| 14442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14443 | (exit $ac_status); }; }; then |
| 14444 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14445 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14446 | echo "$as_me: failed program was:" >&5 |
| 14447 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14448 | |
| 14449 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14450 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14452 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14453 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14454 | |
| 14455 | # Is the header present? |
| 14456 | echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 14457 | echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 |
| 14458 | cat >conftest.$ac_ext <<_ACEOF |
| 14459 | /* confdefs.h. */ |
| 14460 | _ACEOF |
| 14461 | cat confdefs.h >>conftest.$ac_ext |
| 14462 | cat >>conftest.$ac_ext <<_ACEOF |
| 14463 | /* end confdefs.h. */ |
| 14464 | #include <dlfcn.h> |
| 14465 | _ACEOF |
| 14466 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14467 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14468 | ac_status=$? |
| 14469 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14470 | rm -f conftest.er1 |
| 14471 | cat conftest.err >&5 |
| 14472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14473 | (exit $ac_status); } >/dev/null; then |
| 14474 | if test -s conftest.err; then |
| 14475 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14476 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14477 | else |
| 14478 | ac_cpp_err= |
| 14479 | fi |
| 14480 | else |
| 14481 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14482 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14483 | if test -z "$ac_cpp_err"; then |
| 14484 | ac_header_preproc=yes |
| 14485 | else |
| 14486 | echo "$as_me: failed program was:" >&5 |
| 14487 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14488 | |
| 14489 | ac_header_preproc=no |
| 14490 | fi |
| 14491 | rm -f conftest.err conftest.$ac_ext |
| 14492 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14493 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14494 | |
| 14495 | # So? What about this header? |
| 14496 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14497 | yes:no: ) |
| 14498 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14499 | echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14500 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 14501 | echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} |
| 14502 | ac_header_preproc=yes |
| 14503 | ;; |
| 14504 | no:yes:* ) |
| 14505 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 14506 | echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 14507 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 14508 | echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 14509 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 14510 | echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 14511 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14512 | echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14513 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 14514 | echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 14515 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 14516 | echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 14517 | ( |
| 14518 | cat <<\_ASBOX |
| 14519 | ## ------------------------------------------ ## |
| 14520 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14521 | ## ------------------------------------------ ## |
| 14522 | _ASBOX |
| 14523 | ) | |
| 14524 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14525 | ;; |
| 14526 | esac |
| 14527 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 14528 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 14529 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14531 | else |
| 14532 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 14533 | fi |
| 14534 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 14535 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
| 14536 | |
| 14537 | fi |
| 14538 | if test $ac_cv_header_dlfcn_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14539 | DLL=dlfcn.h |
| 14540 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14541 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14542 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 14543 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 14544 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14546 | fi |
| 14547 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 14548 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14549 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14550 | # Is the header compilable? |
| 14551 | echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 14552 | echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6 |
| 14553 | cat >conftest.$ac_ext <<_ACEOF |
| 14554 | /* confdefs.h. */ |
| 14555 | _ACEOF |
| 14556 | cat confdefs.h >>conftest.$ac_ext |
| 14557 | cat >>conftest.$ac_ext <<_ACEOF |
| 14558 | /* end confdefs.h. */ |
| 14559 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14560 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14561 | _ACEOF |
| 14562 | rm -f conftest.$ac_objext |
| 14563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14564 | (eval $ac_compile) 2>conftest.er1 |
| 14565 | ac_status=$? |
| 14566 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14567 | rm -f conftest.er1 |
| 14568 | cat conftest.err >&5 |
| 14569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14570 | (exit $ac_status); } && |
| 14571 | { ac_try='test -z "$ac_c_werror_flag" |
| 14572 | || test ! -s conftest.err' |
| 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); }; } && |
| 14578 | { ac_try='test -s conftest.$ac_objext' |
| 14579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14580 | (eval $ac_try) 2>&5 |
| 14581 | ac_status=$? |
| 14582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14583 | (exit $ac_status); }; }; then |
| 14584 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14585 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14586 | echo "$as_me: failed program was:" >&5 |
| 14587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14588 | |
| 14589 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14590 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14592 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14593 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14594 | |
| 14595 | # Is the header present? |
| 14596 | echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 14597 | echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6 |
| 14598 | cat >conftest.$ac_ext <<_ACEOF |
| 14599 | /* confdefs.h. */ |
| 14600 | _ACEOF |
| 14601 | cat confdefs.h >>conftest.$ac_ext |
| 14602 | cat >>conftest.$ac_ext <<_ACEOF |
| 14603 | /* end confdefs.h. */ |
| 14604 | #include <dl.h> |
| 14605 | _ACEOF |
| 14606 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14607 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14608 | ac_status=$? |
| 14609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14610 | rm -f conftest.er1 |
| 14611 | cat conftest.err >&5 |
| 14612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14613 | (exit $ac_status); } >/dev/null; then |
| 14614 | if test -s conftest.err; then |
| 14615 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14616 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14617 | else |
| 14618 | ac_cpp_err= |
| 14619 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14620 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14621 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14622 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14623 | if test -z "$ac_cpp_err"; then |
| 14624 | ac_header_preproc=yes |
| 14625 | else |
| 14626 | echo "$as_me: failed program was:" >&5 |
| 14627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14628 | |
| 14629 | ac_header_preproc=no |
| 14630 | fi |
| 14631 | rm -f conftest.err conftest.$ac_ext |
| 14632 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14633 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14634 | |
| 14635 | # So? What about this header? |
| 14636 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14637 | yes:no: ) |
| 14638 | { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14639 | echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14640 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 14641 | echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;} |
| 14642 | ac_header_preproc=yes |
| 14643 | ;; |
| 14644 | no:yes:* ) |
| 14645 | { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 14646 | echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 14647 | { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 14648 | echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 14649 | { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 14650 | echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 14651 | { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14652 | echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14653 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 14654 | echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 14655 | { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 14656 | echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 14657 | ( |
| 14658 | cat <<\_ASBOX |
| 14659 | ## ------------------------------------------ ## |
| 14660 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14661 | ## ------------------------------------------ ## |
| 14662 | _ASBOX |
| 14663 | ) | |
| 14664 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14665 | ;; |
| 14666 | esac |
| 14667 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 14668 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 14669 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14671 | else |
| 14672 | ac_cv_header_dl_h=$ac_header_preproc |
| 14673 | fi |
| 14674 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 14675 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14676 | |
| 14677 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14678 | if test $ac_cv_header_dl_h = yes; then |
| 14679 | DLL=dl.h |
| 14680 | fi |
| 14681 | |
| 14682 | |
| 14683 | fi |
| 14684 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14685 | |
| 14686 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14687 | |
| 14688 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14689 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14690 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14691 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14692 | echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 14693 | echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6 |
| 14694 | cat >conftest.$ac_ext <<_ACEOF |
| 14695 | /* confdefs.h. */ |
| 14696 | _ACEOF |
| 14697 | cat confdefs.h >>conftest.$ac_ext |
| 14698 | cat >>conftest.$ac_ext <<_ACEOF |
| 14699 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14700 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14701 | int |
| 14702 | main () |
| 14703 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14704 | |
| 14705 | extern void* dlopen(); |
| 14706 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14707 | |
| 14708 | ; |
| 14709 | return 0; |
| 14710 | } |
| 14711 | _ACEOF |
| 14712 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14714 | (eval $ac_link) 2>conftest.er1 |
| 14715 | ac_status=$? |
| 14716 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14717 | rm -f conftest.er1 |
| 14718 | cat conftest.err >&5 |
| 14719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14720 | (exit $ac_status); } && |
| 14721 | { ac_try='test -z "$ac_c_werror_flag" |
| 14722 | || test ! -s conftest.err' |
| 14723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14724 | (eval $ac_try) 2>&5 |
| 14725 | ac_status=$? |
| 14726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14727 | (exit $ac_status); }; } && |
| 14728 | { ac_try='test -s conftest$ac_exeext' |
| 14729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14730 | (eval $ac_try) 2>&5 |
| 14731 | ac_status=$? |
| 14732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14733 | (exit $ac_status); }; }; then |
| 14734 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14735 | echo "${ECHO_T}yes" >&6; |
| 14736 | |
| 14737 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14738 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14739 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14740 | |
| 14741 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14742 | echo "$as_me: failed program was:" >&5 |
| 14743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14744 | |
| 14745 | echo "$as_me:$LINENO: result: no" >&5 |
| 14746 | echo "${ECHO_T}no" >&6; |
| 14747 | echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 14748 | echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14749 | olibs=$LIBS |
| 14750 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14751 | cat >conftest.$ac_ext <<_ACEOF |
| 14752 | /* confdefs.h. */ |
| 14753 | _ACEOF |
| 14754 | cat confdefs.h >>conftest.$ac_ext |
| 14755 | cat >>conftest.$ac_ext <<_ACEOF |
| 14756 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14757 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14758 | int |
| 14759 | main () |
| 14760 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14761 | |
| 14762 | extern void* dlopen(); |
| 14763 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14764 | |
| 14765 | ; |
| 14766 | return 0; |
| 14767 | } |
| 14768 | _ACEOF |
| 14769 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14771 | (eval $ac_link) 2>conftest.er1 |
| 14772 | ac_status=$? |
| 14773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14774 | rm -f conftest.er1 |
| 14775 | cat conftest.err >&5 |
| 14776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14777 | (exit $ac_status); } && |
| 14778 | { ac_try='test -z "$ac_c_werror_flag" |
| 14779 | || test ! -s conftest.err' |
| 14780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14781 | (eval $ac_try) 2>&5 |
| 14782 | ac_status=$? |
| 14783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14784 | (exit $ac_status); }; } && |
| 14785 | { ac_try='test -s conftest$ac_exeext' |
| 14786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14787 | (eval $ac_try) 2>&5 |
| 14788 | ac_status=$? |
| 14789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14790 | (exit $ac_status); }; }; then |
| 14791 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14792 | echo "${ECHO_T}yes" >&6; |
| 14793 | |
| 14794 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14795 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14796 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14797 | |
| 14798 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14799 | echo "$as_me: failed program was:" >&5 |
| 14800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14801 | |
| 14802 | echo "$as_me:$LINENO: result: no" >&5 |
| 14803 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14804 | LIBS=$olibs |
| 14805 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14806 | rm -f conftest.err conftest.$ac_objext \ |
| 14807 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14808 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14809 | rm -f conftest.err conftest.$ac_objext \ |
| 14810 | conftest$ac_exeext conftest.$ac_ext |
| 14811 | echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 14812 | echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6 |
| 14813 | cat >conftest.$ac_ext <<_ACEOF |
| 14814 | /* confdefs.h. */ |
| 14815 | _ACEOF |
| 14816 | cat confdefs.h >>conftest.$ac_ext |
| 14817 | cat >>conftest.$ac_ext <<_ACEOF |
| 14818 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14819 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14820 | int |
| 14821 | main () |
| 14822 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14823 | |
| 14824 | extern void* dlsym(); |
| 14825 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14826 | |
| 14827 | ; |
| 14828 | return 0; |
| 14829 | } |
| 14830 | _ACEOF |
| 14831 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14833 | (eval $ac_link) 2>conftest.er1 |
| 14834 | ac_status=$? |
| 14835 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14836 | rm -f conftest.er1 |
| 14837 | cat conftest.err >&5 |
| 14838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14839 | (exit $ac_status); } && |
| 14840 | { ac_try='test -z "$ac_c_werror_flag" |
| 14841 | || test ! -s conftest.err' |
| 14842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14843 | (eval $ac_try) 2>&5 |
| 14844 | ac_status=$? |
| 14845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14846 | (exit $ac_status); }; } && |
| 14847 | { ac_try='test -s conftest$ac_exeext' |
| 14848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14849 | (eval $ac_try) 2>&5 |
| 14850 | ac_status=$? |
| 14851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14852 | (exit $ac_status); }; }; then |
| 14853 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14854 | echo "${ECHO_T}yes" >&6; |
| 14855 | |
| 14856 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14857 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14858 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14859 | |
| 14860 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14861 | echo "$as_me: failed program was:" >&5 |
| 14862 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14863 | |
| 14864 | echo "$as_me:$LINENO: result: no" >&5 |
| 14865 | echo "${ECHO_T}no" >&6; |
| 14866 | echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 14867 | echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14868 | olibs=$LIBS |
| 14869 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14870 | cat >conftest.$ac_ext <<_ACEOF |
| 14871 | /* confdefs.h. */ |
| 14872 | _ACEOF |
| 14873 | cat confdefs.h >>conftest.$ac_ext |
| 14874 | cat >>conftest.$ac_ext <<_ACEOF |
| 14875 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14876 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14877 | int |
| 14878 | main () |
| 14879 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14880 | |
| 14881 | extern void* dlsym(); |
| 14882 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14883 | |
| 14884 | ; |
| 14885 | return 0; |
| 14886 | } |
| 14887 | _ACEOF |
| 14888 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14890 | (eval $ac_link) 2>conftest.er1 |
| 14891 | ac_status=$? |
| 14892 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14893 | rm -f conftest.er1 |
| 14894 | cat conftest.err >&5 |
| 14895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14896 | (exit $ac_status); } && |
| 14897 | { ac_try='test -z "$ac_c_werror_flag" |
| 14898 | || test ! -s conftest.err' |
| 14899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14900 | (eval $ac_try) 2>&5 |
| 14901 | ac_status=$? |
| 14902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14903 | (exit $ac_status); }; } && |
| 14904 | { ac_try='test -s conftest$ac_exeext' |
| 14905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14906 | (eval $ac_try) 2>&5 |
| 14907 | ac_status=$? |
| 14908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14909 | (exit $ac_status); }; }; then |
| 14910 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14911 | echo "${ECHO_T}yes" >&6; |
| 14912 | |
| 14913 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14914 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14915 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14916 | |
| 14917 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14918 | echo "$as_me: failed program was:" >&5 |
| 14919 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14920 | |
| 14921 | echo "$as_me:$LINENO: result: no" >&5 |
| 14922 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14923 | LIBS=$olibs |
| 14924 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14925 | rm -f conftest.err conftest.$ac_objext \ |
| 14926 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14927 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14928 | rm -f conftest.err conftest.$ac_objext \ |
| 14929 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14930 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14931 | |
| 14932 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14933 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14934 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14935 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14936 | echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 14937 | echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6 |
| 14938 | cat >conftest.$ac_ext <<_ACEOF |
| 14939 | /* confdefs.h. */ |
| 14940 | _ACEOF |
| 14941 | cat confdefs.h >>conftest.$ac_ext |
| 14942 | cat >>conftest.$ac_ext <<_ACEOF |
| 14943 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14944 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14945 | int |
| 14946 | main () |
| 14947 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14948 | |
| 14949 | extern void* shl_load(); |
| 14950 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14951 | |
| 14952 | ; |
| 14953 | return 0; |
| 14954 | } |
| 14955 | _ACEOF |
| 14956 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14958 | (eval $ac_link) 2>conftest.er1 |
| 14959 | ac_status=$? |
| 14960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14961 | rm -f conftest.er1 |
| 14962 | cat conftest.err >&5 |
| 14963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14964 | (exit $ac_status); } && |
| 14965 | { ac_try='test -z "$ac_c_werror_flag" |
| 14966 | || test ! -s conftest.err' |
| 14967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14968 | (eval $ac_try) 2>&5 |
| 14969 | ac_status=$? |
| 14970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14971 | (exit $ac_status); }; } && |
| 14972 | { ac_try='test -s conftest$ac_exeext' |
| 14973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14974 | (eval $ac_try) 2>&5 |
| 14975 | ac_status=$? |
| 14976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14977 | (exit $ac_status); }; }; then |
| 14978 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14979 | echo "${ECHO_T}yes" >&6; |
| 14980 | |
| 14981 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14982 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14983 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14984 | |
| 14985 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14986 | echo "$as_me: failed program was:" >&5 |
| 14987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14988 | |
| 14989 | echo "$as_me:$LINENO: result: no" >&5 |
| 14990 | echo "${ECHO_T}no" >&6; |
| 14991 | echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 14992 | echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14993 | olibs=$LIBS |
| 14994 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14995 | cat >conftest.$ac_ext <<_ACEOF |
| 14996 | /* confdefs.h. */ |
| 14997 | _ACEOF |
| 14998 | cat confdefs.h >>conftest.$ac_ext |
| 14999 | cat >>conftest.$ac_ext <<_ACEOF |
| 15000 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15001 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15002 | int |
| 15003 | main () |
| 15004 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15005 | |
| 15006 | extern void* shl_load(); |
| 15007 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15008 | |
| 15009 | ; |
| 15010 | return 0; |
| 15011 | } |
| 15012 | _ACEOF |
| 15013 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15015 | (eval $ac_link) 2>conftest.er1 |
| 15016 | ac_status=$? |
| 15017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15018 | rm -f conftest.er1 |
| 15019 | cat conftest.err >&5 |
| 15020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15021 | (exit $ac_status); } && |
| 15022 | { ac_try='test -z "$ac_c_werror_flag" |
| 15023 | || test ! -s conftest.err' |
| 15024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15025 | (eval $ac_try) 2>&5 |
| 15026 | ac_status=$? |
| 15027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15028 | (exit $ac_status); }; } && |
| 15029 | { ac_try='test -s conftest$ac_exeext' |
| 15030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15031 | (eval $ac_try) 2>&5 |
| 15032 | ac_status=$? |
| 15033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15034 | (exit $ac_status); }; }; then |
| 15035 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15036 | echo "${ECHO_T}yes" >&6; |
| 15037 | |
| 15038 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15039 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15040 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15041 | |
| 15042 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15043 | echo "$as_me: failed program was:" >&5 |
| 15044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15045 | |
| 15046 | echo "$as_me:$LINENO: result: no" >&5 |
| 15047 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15048 | LIBS=$olibs |
| 15049 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15050 | rm -f conftest.err conftest.$ac_objext \ |
| 15051 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15052 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15053 | rm -f conftest.err conftest.$ac_objext \ |
| 15054 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15055 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15056 | |
| 15057 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15058 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15059 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15060 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15061 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15065 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15066 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15067 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15068 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15069 | # Is the header compilable? |
| 15070 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15071 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15072 | cat >conftest.$ac_ext <<_ACEOF |
| 15073 | /* confdefs.h. */ |
| 15074 | _ACEOF |
| 15075 | cat confdefs.h >>conftest.$ac_ext |
| 15076 | cat >>conftest.$ac_ext <<_ACEOF |
| 15077 | /* end confdefs.h. */ |
| 15078 | $ac_includes_default |
| 15079 | #include <$ac_header> |
| 15080 | _ACEOF |
| 15081 | rm -f conftest.$ac_objext |
| 15082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15083 | (eval $ac_compile) 2>conftest.er1 |
| 15084 | ac_status=$? |
| 15085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15086 | rm -f conftest.er1 |
| 15087 | cat conftest.err >&5 |
| 15088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15089 | (exit $ac_status); } && |
| 15090 | { ac_try='test -z "$ac_c_werror_flag" |
| 15091 | || test ! -s conftest.err' |
| 15092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15093 | (eval $ac_try) 2>&5 |
| 15094 | ac_status=$? |
| 15095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15096 | (exit $ac_status); }; } && |
| 15097 | { ac_try='test -s conftest.$ac_objext' |
| 15098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15099 | (eval $ac_try) 2>&5 |
| 15100 | ac_status=$? |
| 15101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15102 | (exit $ac_status); }; }; then |
| 15103 | ac_header_compiler=yes |
| 15104 | else |
| 15105 | echo "$as_me: failed program was:" >&5 |
| 15106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15107 | |
| 15108 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15109 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15111 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15112 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15113 | |
| 15114 | # Is the header present? |
| 15115 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15116 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15117 | cat >conftest.$ac_ext <<_ACEOF |
| 15118 | /* confdefs.h. */ |
| 15119 | _ACEOF |
| 15120 | cat confdefs.h >>conftest.$ac_ext |
| 15121 | cat >>conftest.$ac_ext <<_ACEOF |
| 15122 | /* end confdefs.h. */ |
| 15123 | #include <$ac_header> |
| 15124 | _ACEOF |
| 15125 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15126 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15127 | ac_status=$? |
| 15128 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15129 | rm -f conftest.er1 |
| 15130 | cat conftest.err >&5 |
| 15131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15132 | (exit $ac_status); } >/dev/null; then |
| 15133 | if test -s conftest.err; then |
| 15134 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15135 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15136 | else |
| 15137 | ac_cpp_err= |
| 15138 | fi |
| 15139 | else |
| 15140 | ac_cpp_err=yes |
| 15141 | fi |
| 15142 | if test -z "$ac_cpp_err"; then |
| 15143 | ac_header_preproc=yes |
| 15144 | else |
| 15145 | echo "$as_me: failed program was:" >&5 |
| 15146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15147 | |
| 15148 | ac_header_preproc=no |
| 15149 | fi |
| 15150 | rm -f conftest.err conftest.$ac_ext |
| 15151 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15152 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15153 | |
| 15154 | # So? What about this header? |
| 15155 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15156 | yes:no: ) |
| 15157 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15158 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15159 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15160 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15161 | ac_header_preproc=yes |
| 15162 | ;; |
| 15163 | no:yes:* ) |
| 15164 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15165 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15166 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15167 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15168 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15169 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15170 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15171 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15172 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15173 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15174 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15175 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15176 | ( |
| 15177 | cat <<\_ASBOX |
| 15178 | ## ------------------------------------------ ## |
| 15179 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15180 | ## ------------------------------------------ ## |
| 15181 | _ASBOX |
| 15182 | ) | |
| 15183 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15184 | ;; |
| 15185 | esac |
| 15186 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15188 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15190 | else |
| 15191 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15192 | fi |
| 15193 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15194 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15195 | |
| 15196 | fi |
| 15197 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15198 | cat >>confdefs.h <<_ACEOF |
| 15199 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15200 | _ACEOF |
| 15201 | |
| 15202 | fi |
| 15203 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15204 | done |
| 15205 | |
| 15206 | |
| 15207 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 15208 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 15209 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 15210 | PERL_LIBS="$PERL_LIBS -ldl" |
| 15211 | fi |
| 15212 | fi |
| 15213 | |
| 15214 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 15215 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15216 | echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 15217 | echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15218 | if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \ |
| 15219 | || test "x$features" = "xhuge"; then |
| 15220 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15221 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15222 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15223 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15224 | echo "$as_me:$LINENO: result: no" >&5 |
| 15225 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15226 | fi |
| 15227 | fi |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 15228 | if test "x$MACARCH" = "xboth"; then |
| 15229 | LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 15230 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15231 | |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15232 | echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 15233 | echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6 |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15234 | DEPEND_CFLAGS_FILTER= |
| 15235 | if test "$GCC" = yes; then |
Bram Moolenaar | 32466aa | 2006-02-24 23:53:04 +0000 | [diff] [blame] | 15236 | gccmajor=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\(darwin.[^0-9]*\)*\([1-9]\)\.[0-9].*$/\2/g'` |
Bram Moolenaar | f740b29 | 2006-02-16 22:11:02 +0000 | [diff] [blame] | 15237 | if test "$gccmajor" -gt "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15238 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
| 15239 | fi |
| 15240 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15241 | if test "$DEPEND_CFLAGS_FILTER" = ""; then |
| 15242 | echo "$as_me:$LINENO: result: no" >&5 |
| 15243 | echo "${ECHO_T}no" >&6 |
| 15244 | else |
| 15245 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15246 | echo "${ECHO_T}yes" >&6 |
| 15247 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15248 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15249 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15250 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 15251 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15252 | # This file is a shell script that caches the results of configure |
| 15253 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15254 | # scripts and configure runs, see configure's option --config-cache. |
| 15255 | # It is not useful on other systems. If it contains results you don't |
| 15256 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15257 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15258 | # config.status only pays attention to the cache file if you give it |
| 15259 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15260 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15261 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15262 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15263 | # following values. |
| 15264 | |
| 15265 | _ACEOF |
| 15266 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15267 | # The following way of writing the cache mishandles newlines in values, |
| 15268 | # but we know of no workaround that is simple, portable, and efficient. |
| 15269 | # So, don't put newlines in cache variables' values. |
| 15270 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15271 | # and sets the high bit in the cache file unless we assign to the vars. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15272 | { |
| 15273 | (set) 2>&1 | |
| 15274 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15275 | *ac_space=\ *) |
| 15276 | # `set' does not quote correctly, so add quotes (double-quote |
| 15277 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15278 | sed -n \ |
| 15279 | "s/'/'\\\\''/g; |
| 15280 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15281 | ;; |
| 15282 | *) |
| 15283 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15284 | sed -n \ |
| 15285 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15286 | ;; |
| 15287 | esac; |
| 15288 | } | |
| 15289 | sed ' |
| 15290 | t clear |
| 15291 | : clear |
| 15292 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15293 | t end |
| 15294 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15295 | : end' >>confcache |
| 15296 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15297 | if test -w $cache_file; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15298 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15299 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15300 | else |
| 15301 | echo "not updating unwritable cache $cache_file" |
| 15302 | fi |
| 15303 | fi |
| 15304 | rm -f confcache |
| 15305 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15306 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15307 | # Let make expand exec_prefix. |
| 15308 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15309 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15310 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15311 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15312 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15313 | # (actually we leave an empty line to preserve line numbers). |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15314 | if test "x$srcdir" = x.; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15315 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15316 | s/:*\$(srcdir):*/:/; |
| 15317 | s/:*\${srcdir}:*/:/; |
| 15318 | s/:*@srcdir@:*/:/; |
| 15319 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15320 | s/:*$//; |
| 15321 | s/^[^=]*=[ ]*$//; |
| 15322 | }' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15323 | fi |
| 15324 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15325 | DEFS=-DHAVE_CONFIG_H |
| 15326 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15327 | ac_libobjs= |
| 15328 | ac_ltlibobjs= |
| 15329 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15330 | # 1. Remove the extension, and $U if already installed. |
| 15331 | ac_i=`echo "$ac_i" | |
| 15332 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 15333 | # 2. Add them. |
| 15334 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 15335 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 15336 | done |
| 15337 | LIBOBJS=$ac_libobjs |
| 15338 | |
| 15339 | LTLIBOBJS=$ac_ltlibobjs |
| 15340 | |
| 15341 | |
| 15342 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15343 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15344 | ac_clean_files_save=$ac_clean_files |
| 15345 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15346 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15347 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15348 | cat >$CONFIG_STATUS <<_ACEOF |
| 15349 | #! $SHELL |
| 15350 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15351 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15352 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15353 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15354 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15355 | debug=false |
| 15356 | ac_cs_recheck=false |
| 15357 | ac_cs_silent=false |
| 15358 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15359 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15360 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15361 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15362 | ## --------------------- ## |
| 15363 | ## M4sh Initialization. ## |
| 15364 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15365 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15366 | # Be Bourne compatible |
| 15367 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15368 | emulate sh |
| 15369 | NULLCMD=: |
| 15370 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15371 | # is contrary to our usage. Disable this feature. |
| 15372 | alias -g '${1+"$@"}'='"$@"' |
| 15373 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 15374 | set -o posix |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15375 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15376 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15377 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15378 | # Support unset when possible. |
| 15379 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15380 | as_unset=unset |
| 15381 | else |
| 15382 | as_unset=false |
| 15383 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15384 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15385 | |
| 15386 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15387 | $as_unset ENV MAIL MAILPATH |
| 15388 | PS1='$ ' |
| 15389 | PS2='> ' |
| 15390 | PS4='+ ' |
| 15391 | |
| 15392 | # NLS nuisances. |
| 15393 | for as_var in \ |
| 15394 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15395 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15396 | LC_TELEPHONE LC_TIME |
| 15397 | do |
| 15398 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15399 | eval $as_var=C; export $as_var |
| 15400 | else |
| 15401 | $as_unset $as_var |
| 15402 | fi |
| 15403 | done |
| 15404 | |
| 15405 | # Required to use basename. |
| 15406 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15407 | as_expr=expr |
| 15408 | else |
| 15409 | as_expr=false |
| 15410 | fi |
| 15411 | |
| 15412 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 15413 | as_basename=basename |
| 15414 | else |
| 15415 | as_basename=false |
| 15416 | fi |
| 15417 | |
| 15418 | |
| 15419 | # Name of the executable. |
| 15420 | as_me=`$as_basename "$0" || |
| 15421 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15422 | X"$0" : 'X\(//\)$' \| \ |
| 15423 | X"$0" : 'X\(/\)$' \| \ |
| 15424 | . : '\(.\)' 2>/dev/null || |
| 15425 | echo X/"$0" | |
| 15426 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 15427 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 15428 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 15429 | s/.*/./; q'` |
| 15430 | |
| 15431 | |
| 15432 | # PATH needs CR, and LINENO needs CR and PATH. |
| 15433 | # Avoid depending upon Character Ranges. |
| 15434 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15435 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15436 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15437 | as_cr_digits='0123456789' |
| 15438 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15439 | |
| 15440 | # The user is always right. |
| 15441 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15442 | echo "#! /bin/sh" >conf$$.sh |
| 15443 | echo "exit 0" >>conf$$.sh |
| 15444 | chmod +x conf$$.sh |
| 15445 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15446 | PATH_SEPARATOR=';' |
| 15447 | else |
| 15448 | PATH_SEPARATOR=: |
| 15449 | fi |
| 15450 | rm -f conf$$.sh |
| 15451 | fi |
| 15452 | |
| 15453 | |
| 15454 | as_lineno_1=$LINENO |
| 15455 | as_lineno_2=$LINENO |
| 15456 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15457 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15458 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 15459 | # Find who we are. Look in the path if we contain no path at all |
| 15460 | # relative or not. |
| 15461 | case $0 in |
| 15462 | *[\\/]* ) as_myself=$0 ;; |
| 15463 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15464 | for as_dir in $PATH |
| 15465 | do |
| 15466 | IFS=$as_save_IFS |
| 15467 | test -z "$as_dir" && as_dir=. |
| 15468 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15469 | done |
| 15470 | |
| 15471 | ;; |
| 15472 | esac |
| 15473 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15474 | # in which case we are not to be found in the path. |
| 15475 | if test "x$as_myself" = x; then |
| 15476 | as_myself=$0 |
| 15477 | fi |
| 15478 | if test ! -f "$as_myself"; then |
| 15479 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 15480 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 15481 | { (exit 1); exit 1; }; } |
| 15482 | fi |
| 15483 | case $CONFIG_SHELL in |
| 15484 | '') |
| 15485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15486 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 15487 | do |
| 15488 | IFS=$as_save_IFS |
| 15489 | test -z "$as_dir" && as_dir=. |
| 15490 | for as_base in sh bash ksh sh5; do |
| 15491 | case $as_dir in |
| 15492 | /*) |
| 15493 | if ("$as_dir/$as_base" -c ' |
| 15494 | as_lineno_1=$LINENO |
| 15495 | as_lineno_2=$LINENO |
| 15496 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15497 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15498 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 15499 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 15500 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 15501 | CONFIG_SHELL=$as_dir/$as_base |
| 15502 | export CONFIG_SHELL |
| 15503 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 15504 | fi;; |
| 15505 | esac |
| 15506 | done |
| 15507 | done |
| 15508 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15509 | esac |
| 15510 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15511 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15512 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 15513 | # line-number line before each line; the second 'sed' does the real |
| 15514 | # work. The second script uses 'N' to pair each line-number line |
| 15515 | # with the numbered line, and appends trailing '-' during |
| 15516 | # substitution so that $LINENO is not a special case at line end. |
| 15517 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 15518 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 15519 | sed '=' <$as_myself | |
| 15520 | sed ' |
| 15521 | N |
| 15522 | s,$,-, |
| 15523 | : loop |
| 15524 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 15525 | t loop |
| 15526 | s,-$,, |
| 15527 | s,^['$as_cr_digits']*\n,, |
| 15528 | ' >$as_me.lineno && |
| 15529 | chmod +x $as_me.lineno || |
| 15530 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 15531 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 15532 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15533 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15534 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15535 | # (the dirname of $[0] is not the place where we might find the |
| 15536 | # original and so on. Autoconf is especially sensible to this). |
| 15537 | . ./$as_me.lineno |
| 15538 | # Exit status is that of the last command. |
| 15539 | exit |
| 15540 | } |
| 15541 | |
| 15542 | |
| 15543 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 15544 | *c*,-n*) ECHO_N= ECHO_C=' |
| 15545 | ' ECHO_T=' ' ;; |
| 15546 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 15547 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 15548 | esac |
| 15549 | |
| 15550 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15551 | as_expr=expr |
| 15552 | else |
| 15553 | as_expr=false |
| 15554 | fi |
| 15555 | |
| 15556 | rm -f conf$$ conf$$.exe conf$$.file |
| 15557 | echo >conf$$.file |
| 15558 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15559 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 15560 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 15561 | if test -f conf$$.exe; then |
| 15562 | # Don't use ln at all; we don't have any links |
| 15563 | as_ln_s='cp -p' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15564 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15565 | as_ln_s='ln -s' |
| 15566 | fi |
| 15567 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15568 | as_ln_s=ln |
| 15569 | else |
| 15570 | as_ln_s='cp -p' |
| 15571 | fi |
| 15572 | rm -f conf$$ conf$$.exe conf$$.file |
| 15573 | |
| 15574 | if mkdir -p . 2>/dev/null; then |
| 15575 | as_mkdir_p=: |
| 15576 | else |
| 15577 | test -d ./-p && rmdir ./-p |
| 15578 | as_mkdir_p=false |
| 15579 | fi |
| 15580 | |
| 15581 | as_executable_p="test -f" |
| 15582 | |
| 15583 | # Sed expression to map a string onto a valid CPP name. |
| 15584 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15585 | |
| 15586 | # Sed expression to map a string onto a valid variable name. |
| 15587 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15588 | |
| 15589 | |
| 15590 | # IFS |
| 15591 | # We need space, tab and new line, in precisely that order. |
| 15592 | as_nl=' |
| 15593 | ' |
| 15594 | IFS=" $as_nl" |
| 15595 | |
| 15596 | # CDPATH. |
| 15597 | $as_unset CDPATH |
| 15598 | |
| 15599 | exec 6>&1 |
| 15600 | |
| 15601 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 15602 | # report actual input values of CONFIG_FILES etc. instead of their |
| 15603 | # values after options handling. Logging --version etc. is OK. |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 15604 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15605 | { |
| 15606 | echo |
| 15607 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15608 | ## Running $as_me. ## |
| 15609 | _ASBOX |
| 15610 | } >&5 |
| 15611 | cat >&5 <<_CSEOF |
| 15612 | |
| 15613 | This file was extended by $as_me, which was |
| 15614 | generated by GNU Autoconf 2.59. Invocation command line was |
| 15615 | |
| 15616 | CONFIG_FILES = $CONFIG_FILES |
| 15617 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15618 | CONFIG_LINKS = $CONFIG_LINKS |
| 15619 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15620 | $ $0 $@ |
| 15621 | |
| 15622 | _CSEOF |
| 15623 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 15624 | echo >&5 |
| 15625 | _ACEOF |
| 15626 | |
| 15627 | # Files that config.status was made for. |
| 15628 | if test -n "$ac_config_files"; then |
| 15629 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 15630 | fi |
| 15631 | |
| 15632 | if test -n "$ac_config_headers"; then |
| 15633 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 15634 | fi |
| 15635 | |
| 15636 | if test -n "$ac_config_links"; then |
| 15637 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 15638 | fi |
| 15639 | |
| 15640 | if test -n "$ac_config_commands"; then |
| 15641 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 15642 | fi |
| 15643 | |
| 15644 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15645 | |
| 15646 | ac_cs_usage="\ |
| 15647 | \`$as_me' instantiates files from templates according to the |
| 15648 | current configuration. |
| 15649 | |
| 15650 | Usage: $0 [OPTIONS] [FILE]... |
| 15651 | |
| 15652 | -h, --help print this help, then exit |
| 15653 | -V, --version print version number, then exit |
| 15654 | -q, --quiet do not print progress messages |
| 15655 | -d, --debug don't remove temporary files |
| 15656 | --recheck update $as_me by reconfiguring in the same conditions |
| 15657 | --file=FILE[:TEMPLATE] |
| 15658 | instantiate the configuration file FILE |
| 15659 | --header=FILE[:TEMPLATE] |
| 15660 | instantiate the configuration header FILE |
| 15661 | |
| 15662 | Configuration files: |
| 15663 | $config_files |
| 15664 | |
| 15665 | Configuration headers: |
| 15666 | $config_headers |
| 15667 | |
| 15668 | Report bugs to <bug-autoconf@gnu.org>." |
| 15669 | _ACEOF |
| 15670 | |
| 15671 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15672 | ac_cs_version="\\ |
| 15673 | config.status |
| 15674 | configured by $0, generated by GNU Autoconf 2.59, |
| 15675 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 15676 | |
| 15677 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 15678 | This config.status script is free software; the Free Software Foundation |
| 15679 | gives unlimited permission to copy, distribute and modify it." |
| 15680 | srcdir=$srcdir |
| 15681 | _ACEOF |
| 15682 | |
| 15683 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15684 | # If no file are specified by the user, then we need to provide default |
| 15685 | # value. By we need to know if files were specified by the user. |
| 15686 | ac_need_defaults=: |
| 15687 | while test $# != 0 |
| 15688 | do |
| 15689 | case $1 in |
| 15690 | --*=*) |
| 15691 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 15692 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 15693 | ac_shift=: |
| 15694 | ;; |
| 15695 | -*) |
| 15696 | ac_option=$1 |
| 15697 | ac_optarg=$2 |
| 15698 | ac_shift=shift |
| 15699 | ;; |
| 15700 | *) # This is not an option, so the user has probably given explicit |
| 15701 | # arguments. |
| 15702 | ac_option=$1 |
| 15703 | ac_need_defaults=false;; |
| 15704 | esac |
| 15705 | |
| 15706 | case $ac_option in |
| 15707 | # Handling of the options. |
| 15708 | _ACEOF |
| 15709 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15710 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15711 | ac_cs_recheck=: ;; |
| 15712 | --version | --vers* | -V ) |
| 15713 | echo "$ac_cs_version"; exit 0 ;; |
| 15714 | --he | --h) |
| 15715 | # Conflict between --help and --header |
| 15716 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 15717 | Try \`$0 --help' for more information." >&5 |
| 15718 | echo "$as_me: error: ambiguous option: $1 |
| 15719 | Try \`$0 --help' for more information." >&2;} |
| 15720 | { (exit 1); exit 1; }; };; |
| 15721 | --help | --hel | -h ) |
| 15722 | echo "$ac_cs_usage"; exit 0 ;; |
| 15723 | --debug | --d* | -d ) |
| 15724 | debug=: ;; |
| 15725 | --file | --fil | --fi | --f ) |
| 15726 | $ac_shift |
| 15727 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15728 | ac_need_defaults=false;; |
| 15729 | --header | --heade | --head | --hea ) |
| 15730 | $ac_shift |
| 15731 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 15732 | ac_need_defaults=false;; |
| 15733 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15734 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15735 | ac_cs_silent=: ;; |
| 15736 | |
| 15737 | # This is an error. |
| 15738 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 15739 | Try \`$0 --help' for more information." >&5 |
| 15740 | echo "$as_me: error: unrecognized option: $1 |
| 15741 | Try \`$0 --help' for more information." >&2;} |
| 15742 | { (exit 1); exit 1; }; } ;; |
| 15743 | |
| 15744 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 15745 | |
| 15746 | esac |
| 15747 | shift |
| 15748 | done |
| 15749 | |
| 15750 | ac_configure_extra_args= |
| 15751 | |
| 15752 | if $ac_cs_silent; then |
| 15753 | exec 6>/dev/null |
| 15754 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15755 | fi |
| 15756 | |
| 15757 | _ACEOF |
| 15758 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15759 | if \$ac_cs_recheck; then |
| 15760 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15761 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15762 | fi |
| 15763 | |
| 15764 | _ACEOF |
| 15765 | |
| 15766 | |
| 15767 | |
| 15768 | |
| 15769 | |
| 15770 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15771 | for ac_config_target in $ac_config_targets |
| 15772 | do |
| 15773 | case "$ac_config_target" in |
| 15774 | # Handling of arguments. |
| 15775 | "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 15776 | "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 15777 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15778 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15779 | { (exit 1); exit 1; }; };; |
| 15780 | esac |
| 15781 | done |
| 15782 | |
| 15783 | # If the user did not use the arguments to specify the items to instantiate, |
| 15784 | # then the envvar interface is used. Set only those that are not. |
| 15785 | # We use the long form for the default assignment because of an extremely |
| 15786 | # bizarre bug on SunOS 4.1.3. |
| 15787 | if $ac_need_defaults; then |
| 15788 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15789 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 15790 | fi |
| 15791 | |
| 15792 | # Have a temporary directory for convenience. Make it in the build tree |
| 15793 | # simply because there is no reason to put it here, and in addition, |
| 15794 | # creating and moving files from /tmp can sometimes cause problems. |
| 15795 | # Create a temporary directory, and hook for its removal unless debugging. |
| 15796 | $debug || |
| 15797 | { |
| 15798 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 15799 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15800 | } |
| 15801 | |
| 15802 | # Create a (secure) tmp directory for tmp files. |
| 15803 | |
| 15804 | { |
| 15805 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 15806 | test -n "$tmp" && test -d "$tmp" |
| 15807 | } || |
| 15808 | { |
| 15809 | tmp=./confstat$$-$RANDOM |
| 15810 | (umask 077 && mkdir $tmp) |
| 15811 | } || |
| 15812 | { |
| 15813 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15814 | { (exit 1); exit 1; } |
| 15815 | } |
| 15816 | |
| 15817 | _ACEOF |
| 15818 | |
| 15819 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15820 | |
| 15821 | # |
| 15822 | # CONFIG_FILES section. |
| 15823 | # |
| 15824 | |
| 15825 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15826 | # This happens for instance when ./config.status config.h |
| 15827 | if test -n "\$CONFIG_FILES"; then |
| 15828 | # Protect against being on the right side of a sed subst in config.status. |
| 15829 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 15830 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 15831 | s,@SHELL@,$SHELL,;t t |
| 15832 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 15833 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 15834 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 15835 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 15836 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 15837 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 15838 | s,@exec_prefix@,$exec_prefix,;t t |
| 15839 | s,@prefix@,$prefix,;t t |
| 15840 | s,@program_transform_name@,$program_transform_name,;t t |
| 15841 | s,@bindir@,$bindir,;t t |
| 15842 | s,@sbindir@,$sbindir,;t t |
| 15843 | s,@libexecdir@,$libexecdir,;t t |
| 15844 | s,@datadir@,$datadir,;t t |
| 15845 | s,@sysconfdir@,$sysconfdir,;t t |
| 15846 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 15847 | s,@localstatedir@,$localstatedir,;t t |
| 15848 | s,@libdir@,$libdir,;t t |
| 15849 | s,@includedir@,$includedir,;t t |
| 15850 | s,@oldincludedir@,$oldincludedir,;t t |
| 15851 | s,@infodir@,$infodir,;t t |
| 15852 | s,@mandir@,$mandir,;t t |
| 15853 | s,@build_alias@,$build_alias,;t t |
| 15854 | s,@host_alias@,$host_alias,;t t |
| 15855 | s,@target_alias@,$target_alias,;t t |
| 15856 | s,@DEFS@,$DEFS,;t t |
| 15857 | s,@ECHO_C@,$ECHO_C,;t t |
| 15858 | s,@ECHO_N@,$ECHO_N,;t t |
| 15859 | s,@ECHO_T@,$ECHO_T,;t t |
| 15860 | s,@LIBS@,$LIBS,;t t |
| 15861 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 15862 | s,@CC@,$CC,;t t |
| 15863 | s,@CFLAGS@,$CFLAGS,;t t |
| 15864 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 15865 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 15866 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 15867 | s,@EXEEXT@,$EXEEXT,;t t |
| 15868 | s,@OBJEXT@,$OBJEXT,;t t |
| 15869 | s,@CPP@,$CPP,;t t |
| 15870 | s,@EGREP@,$EGREP,;t t |
| 15871 | s,@AWK@,$AWK,;t t |
| 15872 | s,@STRIP@,$STRIP,;t t |
| 15873 | s,@CPP_MM@,$CPP_MM,;t t |
| 15874 | s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t |
| 15875 | s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t |
| 15876 | s,@VIMNAME@,$VIMNAME,;t t |
| 15877 | s,@EXNAME@,$EXNAME,;t t |
| 15878 | s,@VIEWNAME@,$VIEWNAME,;t t |
| 15879 | s,@line_break@,$line_break,;t t |
| 15880 | s,@dovimdiff@,$dovimdiff,;t t |
| 15881 | s,@dogvimdiff@,$dogvimdiff,;t t |
| 15882 | s,@compiledby@,$compiledby,;t t |
| 15883 | s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t |
| 15884 | s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t |
| 15885 | s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t |
| 15886 | s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t |
| 15887 | s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t |
| 15888 | s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t |
| 15889 | s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t |
| 15890 | s,@vi_cv_perllib@,$vi_cv_perllib,;t t |
| 15891 | s,@shrpenv@,$shrpenv,;t t |
| 15892 | s,@PERL_SRC@,$PERL_SRC,;t t |
| 15893 | s,@PERL_OBJ@,$PERL_OBJ,;t t |
| 15894 | s,@PERL_PRO@,$PERL_PRO,;t t |
| 15895 | s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t |
| 15896 | s,@PERL_LIBS@,$PERL_LIBS,;t t |
| 15897 | s,@vi_cv_path_python@,$vi_cv_path_python,;t t |
| 15898 | s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t |
| 15899 | s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t |
| 15900 | s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t |
| 15901 | s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t |
| 15902 | s,@PYTHON_SRC@,$PYTHON_SRC,;t t |
| 15903 | s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t |
| 15904 | s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t |
| 15905 | s,@TCL_SRC@,$TCL_SRC,;t t |
| 15906 | s,@TCL_OBJ@,$TCL_OBJ,;t t |
| 15907 | s,@TCL_PRO@,$TCL_PRO,;t t |
| 15908 | s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t |
| 15909 | s,@TCL_LIBS@,$TCL_LIBS,;t t |
| 15910 | s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t |
| 15911 | s,@RUBY_SRC@,$RUBY_SRC,;t t |
| 15912 | s,@RUBY_OBJ@,$RUBY_OBJ,;t t |
| 15913 | s,@RUBY_PRO@,$RUBY_PRO,;t t |
| 15914 | s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t |
| 15915 | s,@RUBY_LIBS@,$RUBY_LIBS,;t t |
| 15916 | s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t |
| 15917 | s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t |
| 15918 | s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t |
| 15919 | s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t |
| 15920 | s,@SNIFF_SRC@,$SNIFF_SRC,;t t |
| 15921 | s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t |
| 15922 | s,@xmkmfpath@,$xmkmfpath,;t t |
| 15923 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 15924 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 15925 | s,@X_LIBS@,$X_LIBS,;t t |
| 15926 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 15927 | s,@X_LIB@,$X_LIB,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15928 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t |
| 15929 | s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t |
| 15930 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
| 15931 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
| 15932 | s,@GTK_LIBS@,$GTK_LIBS,;t t |
| 15933 | s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t |
| 15934 | s,@GNOME_LIBS@,$GNOME_LIBS,;t t |
| 15935 | s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t |
| 15936 | s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t |
| 15937 | s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t |
| 15938 | s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t |
| 15939 | s,@NARROW_PROTO@,$NARROW_PROTO,;t t |
| 15940 | s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t |
| 15941 | s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t |
| 15942 | s,@GUITYPE@,$GUITYPE,;t t |
| 15943 | s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t |
| 15944 | s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t |
| 15945 | s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t |
| 15946 | s,@TAGPRG@,$TAGPRG,;t t |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 15947 | s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t |
| 15948 | s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15949 | s,@MSGFMT@,$MSGFMT,;t t |
| 15950 | s,@MAKEMO@,$MAKEMO,;t t |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15951 | s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15952 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 15953 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 15954 | CEOF |
| 15955 | |
| 15956 | _ACEOF |
| 15957 | |
| 15958 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15959 | # Split the substitutions into bite-sized pieces for seds with |
| 15960 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 15961 | ac_max_sed_lines=48 |
| 15962 | ac_sed_frag=1 # Number of current file. |
| 15963 | ac_beg=1 # First line for current file. |
| 15964 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 15965 | ac_more_lines=: |
| 15966 | ac_sed_cmds= |
| 15967 | while $ac_more_lines; do |
| 15968 | if test $ac_beg -gt 1; then |
| 15969 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 15970 | else |
| 15971 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 15972 | fi |
| 15973 | if test ! -s $tmp/subs.frag; then |
| 15974 | ac_more_lines=false |
| 15975 | else |
| 15976 | # The purpose of the label and of the branching condition is to |
| 15977 | # speed up the sed processing (if there are no `@' at all, there |
| 15978 | # is no need to browse any of the substitutions). |
| 15979 | # These are the two extra sed commands mentioned above. |
| 15980 | (echo ':t |
| 15981 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 15982 | if test -z "$ac_sed_cmds"; then |
| 15983 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 15984 | else |
| 15985 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 15986 | fi |
| 15987 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 15988 | ac_beg=$ac_end |
| 15989 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 15990 | fi |
| 15991 | done |
| 15992 | if test -z "$ac_sed_cmds"; then |
| 15993 | ac_sed_cmds=cat |
| 15994 | fi |
| 15995 | fi # test -n "$CONFIG_FILES" |
| 15996 | |
| 15997 | _ACEOF |
| 15998 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15999 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16000 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16001 | case $ac_file in |
| 16002 | - | *:- | *:-:* ) # input from stdin |
| 16003 | cat >$tmp/stdin |
| 16004 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16005 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16006 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16007 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16008 | * ) ac_file_in=$ac_file.in ;; |
| 16009 | esac |
| 16010 | |
| 16011 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16012 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16013 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16014 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16015 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16016 | X"$ac_file" : 'X\(/\)' \| \ |
| 16017 | . : '\(.\)' 2>/dev/null || |
| 16018 | echo X"$ac_file" | |
| 16019 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16020 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16021 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16022 | /^X\(\/\).*/{ s//\1/; q; } |
| 16023 | s/.*/./; q'` |
| 16024 | { if $as_mkdir_p; then |
| 16025 | mkdir -p "$ac_dir" |
| 16026 | else |
| 16027 | as_dir="$ac_dir" |
| 16028 | as_dirs= |
| 16029 | while test ! -d "$as_dir"; do |
| 16030 | as_dirs="$as_dir $as_dirs" |
| 16031 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16032 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16033 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16034 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16035 | X"$as_dir" : 'X\(/\)' \| \ |
| 16036 | . : '\(.\)' 2>/dev/null || |
| 16037 | echo X"$as_dir" | |
| 16038 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16039 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16040 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16041 | /^X\(\/\).*/{ s//\1/; q; } |
| 16042 | s/.*/./; q'` |
| 16043 | done |
| 16044 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16045 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16046 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16047 | { (exit 1); exit 1; }; }; } |
| 16048 | |
| 16049 | ac_builddir=. |
| 16050 | |
| 16051 | if test "$ac_dir" != .; then |
| 16052 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16053 | # A "../" for each directory in $ac_dir_suffix. |
| 16054 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16055 | else |
| 16056 | ac_dir_suffix= ac_top_builddir= |
| 16057 | fi |
| 16058 | |
| 16059 | case $srcdir in |
| 16060 | .) # No --srcdir option. We are building in place. |
| 16061 | ac_srcdir=. |
| 16062 | if test -z "$ac_top_builddir"; then |
| 16063 | ac_top_srcdir=. |
| 16064 | else |
| 16065 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16066 | fi ;; |
| 16067 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16068 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16069 | ac_top_srcdir=$srcdir ;; |
| 16070 | *) # Relative path. |
| 16071 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16072 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16073 | esac |
| 16074 | |
| 16075 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 16076 | # the directories may not exist. |
| 16077 | case `pwd` in |
| 16078 | .) ac_abs_builddir="$ac_dir";; |
| 16079 | *) |
| 16080 | case "$ac_dir" in |
| 16081 | .) ac_abs_builddir=`pwd`;; |
| 16082 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 16083 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 16084 | esac;; |
| 16085 | esac |
| 16086 | case $ac_abs_builddir in |
| 16087 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16088 | *) |
| 16089 | case ${ac_top_builddir}. in |
| 16090 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 16091 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16092 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 16093 | esac;; |
| 16094 | esac |
| 16095 | case $ac_abs_builddir in |
| 16096 | .) ac_abs_srcdir=$ac_srcdir;; |
| 16097 | *) |
| 16098 | case $ac_srcdir in |
| 16099 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 16100 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 16101 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 16102 | esac;; |
| 16103 | esac |
| 16104 | case $ac_abs_builddir in |
| 16105 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16106 | *) |
| 16107 | case $ac_top_srcdir in |
| 16108 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 16109 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16110 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 16111 | esac;; |
| 16112 | esac |
| 16113 | |
| 16114 | |
| 16115 | |
| 16116 | if test x"$ac_file" != x-; then |
| 16117 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16118 | echo "$as_me: creating $ac_file" >&6;} |
| 16119 | rm -f "$ac_file" |
| 16120 | fi |
| 16121 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16122 | # use $as_me), people would be surprised to read: |
| 16123 | # /* config.h. Generated by config.status. */ |
| 16124 | if test x"$ac_file" = x-; then |
| 16125 | configure_input= |
| 16126 | else |
| 16127 | configure_input="$ac_file. " |
| 16128 | fi |
| 16129 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16130 | sed 's,.*/,,'` by configure." |
| 16131 | |
| 16132 | # First look for the input files in the build tree, otherwise in the |
| 16133 | # src tree. |
| 16134 | ac_file_inputs=`IFS=: |
| 16135 | for f in $ac_file_in; do |
| 16136 | case $f in |
| 16137 | -) echo $tmp/stdin ;; |
| 16138 | [\\/$]*) |
| 16139 | # Absolute (can't be DOS-style, as IFS=:) |
| 16140 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16141 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16142 | { (exit 1); exit 1; }; } |
| 16143 | echo "$f";; |
| 16144 | *) # Relative |
| 16145 | if test -f "$f"; then |
| 16146 | # Build tree |
| 16147 | echo "$f" |
| 16148 | elif test -f "$srcdir/$f"; then |
| 16149 | # Source tree |
| 16150 | echo "$srcdir/$f" |
| 16151 | else |
| 16152 | # /dev/null tree |
| 16153 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16154 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16155 | { (exit 1); exit 1; }; } |
| 16156 | fi;; |
| 16157 | esac |
| 16158 | done` || { (exit 1); exit 1; } |
| 16159 | _ACEOF |
| 16160 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16161 | sed "$ac_vpsub |
| 16162 | $extrasub |
| 16163 | _ACEOF |
| 16164 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16165 | :t |
| 16166 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16167 | s,@configure_input@,$configure_input,;t t |
| 16168 | s,@srcdir@,$ac_srcdir,;t t |
| 16169 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16170 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16171 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16172 | s,@builddir@,$ac_builddir,;t t |
| 16173 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16174 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16175 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16176 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16177 | rm -f $tmp/stdin |
| 16178 | if test x"$ac_file" != x-; then |
| 16179 | mv $tmp/out $ac_file |
| 16180 | else |
| 16181 | cat $tmp/out |
| 16182 | rm -f $tmp/out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16183 | fi |
| 16184 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16185 | done |
| 16186 | _ACEOF |
| 16187 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16188 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16189 | # |
| 16190 | # CONFIG_HEADER section. |
| 16191 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16192 | |
| 16193 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16194 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 16195 | # |
| 16196 | # ac_d sets the value in "#define NAME VALUE" lines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16197 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16198 | ac_dB='[ ].*$,\1#\2' |
| 16199 | ac_dC=' ' |
| 16200 | ac_dD=',;t' |
| 16201 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16202 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16203 | ac_uB='$,\1#\2define\3' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16204 | ac_uC=' ' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16205 | ac_uD=',;t' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16206 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16207 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16208 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16209 | case $ac_file in |
| 16210 | - | *:- | *:-:* ) # input from stdin |
| 16211 | cat >$tmp/stdin |
| 16212 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16213 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16214 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16215 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16216 | * ) ac_file_in=$ac_file.in ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16217 | esac |
| 16218 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16219 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16220 | echo "$as_me: creating $ac_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16221 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16222 | # First look for the input files in the build tree, otherwise in the |
| 16223 | # src tree. |
| 16224 | ac_file_inputs=`IFS=: |
| 16225 | for f in $ac_file_in; do |
| 16226 | case $f in |
| 16227 | -) echo $tmp/stdin ;; |
| 16228 | [\\/$]*) |
| 16229 | # Absolute (can't be DOS-style, as IFS=:) |
| 16230 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16231 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16232 | { (exit 1); exit 1; }; } |
| 16233 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 16234 | echo "$f";; |
| 16235 | *) # Relative |
| 16236 | if test -f "$f"; then |
| 16237 | # Build tree |
| 16238 | echo "$f" |
| 16239 | elif test -f "$srcdir/$f"; then |
| 16240 | # Source tree |
| 16241 | echo "$srcdir/$f" |
| 16242 | else |
| 16243 | # /dev/null tree |
| 16244 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16245 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16246 | { (exit 1); exit 1; }; } |
| 16247 | fi;; |
| 16248 | esac |
| 16249 | done` || { (exit 1); exit 1; } |
| 16250 | # Remove the trailing spaces. |
| 16251 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16252 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16253 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16254 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16255 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16256 | # `conftest.undefs', that substitutes the proper values into |
| 16257 | # config.h.in to produce config.h. The first handles `#define' |
| 16258 | # templates, and the second `#undef' templates. |
| 16259 | # And first: Protect against being on the right side of a sed subst in |
| 16260 | # config.status. Protect against being in an unquoted here document |
| 16261 | # in config.status. |
| 16262 | rm -f conftest.defines conftest.undefs |
| 16263 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16264 | # Putting comments in sed scripts is not portable. |
| 16265 | # |
| 16266 | # `end' is used to avoid that the second main sed command (meant for |
| 16267 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16268 | # See the Autoconf documentation for `clear'. |
| 16269 | cat >confdef2sed.sed <<\_ACEOF |
| 16270 | s/[\\&,]/\\&/g |
| 16271 | s,[\\$`],\\&,g |
| 16272 | t clear |
| 16273 | : clear |
| 16274 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16275 | t end |
| 16276 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16277 | : end |
| 16278 | _ACEOF |
| 16279 | # If some macros were called several times there might be several times |
| 16280 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16281 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16282 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16283 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16284 | rm -f confdef2sed.sed |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16285 | |
| 16286 | # This sed command replaces #undef with comments. This is necessary, for |
| 16287 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16288 | # on some systems where configure will not decide to define it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16289 | cat >>conftest.undefs <<\_ACEOF |
| 16290 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16291 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16292 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16293 | # Break up conftest.defines because some shells have a limit on the size |
| 16294 | # of here documents, and old seds have small limits too (100 cmds). |
| 16295 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16296 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16297 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16298 | echo ' :' >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16299 | rm -f conftest.tail |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16300 | while grep . conftest.defines >/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16301 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16302 | # Write a limited-size here document to $tmp/defines.sed. |
| 16303 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16304 | # Speed up: don't consider the non `#define' lines. |
| 16305 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16306 | # Work around the forget-to-reset-the-flag bug. |
| 16307 | echo 't clr' >>$CONFIG_STATUS |
| 16308 | echo ': clr' >>$CONFIG_STATUS |
| 16309 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16310 | echo 'CEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16311 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16312 | rm -f $tmp/in |
| 16313 | mv $tmp/out $tmp/in |
| 16314 | ' >>$CONFIG_STATUS |
| 16315 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16316 | rm -f conftest.defines |
| 16317 | mv conftest.tail conftest.defines |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16318 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16319 | rm -f conftest.defines |
| 16320 | echo ' fi # grep' >>$CONFIG_STATUS |
| 16321 | echo >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16322 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16323 | # Break up conftest.undefs because some shells have a limit on the size |
| 16324 | # of here documents, and old seds have small limits too (100 cmds). |
| 16325 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16326 | rm -f conftest.tail |
| 16327 | while grep . conftest.undefs >/dev/null |
| 16328 | do |
| 16329 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16330 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16331 | # Speed up: don't consider the non `#undef' |
| 16332 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16333 | # Work around the forget-to-reset-the-flag bug. |
| 16334 | echo 't clr' >>$CONFIG_STATUS |
| 16335 | echo ': clr' >>$CONFIG_STATUS |
| 16336 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16337 | echo 'CEOF |
| 16338 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16339 | rm -f $tmp/in |
| 16340 | mv $tmp/out $tmp/in |
| 16341 | ' >>$CONFIG_STATUS |
| 16342 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16343 | rm -f conftest.undefs |
| 16344 | mv conftest.tail conftest.undefs |
| 16345 | done |
| 16346 | rm -f conftest.undefs |
| 16347 | |
| 16348 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16349 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16350 | # use $as_me), people would be surprised to read: |
| 16351 | # /* config.h. Generated by config.status. */ |
| 16352 | if test x"$ac_file" = x-; then |
| 16353 | echo "/* Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16354 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16355 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16356 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16357 | cat $tmp/in >>$tmp/config.h |
| 16358 | rm -f $tmp/in |
| 16359 | if test x"$ac_file" != x-; then |
| 16360 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 16361 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16362 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16363 | else |
| 16364 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16365 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16366 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16367 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16368 | X"$ac_file" : 'X\(/\)' \| \ |
| 16369 | . : '\(.\)' 2>/dev/null || |
| 16370 | echo X"$ac_file" | |
| 16371 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16372 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16373 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16374 | /^X\(\/\).*/{ s//\1/; q; } |
| 16375 | s/.*/./; q'` |
| 16376 | { if $as_mkdir_p; then |
| 16377 | mkdir -p "$ac_dir" |
| 16378 | else |
| 16379 | as_dir="$ac_dir" |
| 16380 | as_dirs= |
| 16381 | while test ! -d "$as_dir"; do |
| 16382 | as_dirs="$as_dir $as_dirs" |
| 16383 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16384 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16385 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16386 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16387 | X"$as_dir" : 'X\(/\)' \| \ |
| 16388 | . : '\(.\)' 2>/dev/null || |
| 16389 | echo X"$as_dir" | |
| 16390 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16391 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16392 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16393 | /^X\(\/\).*/{ s//\1/; q; } |
| 16394 | s/.*/./; q'` |
| 16395 | done |
| 16396 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16397 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16398 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16399 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16400 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16401 | rm -f $ac_file |
| 16402 | mv $tmp/config.h $ac_file |
| 16403 | fi |
| 16404 | else |
| 16405 | cat $tmp/config.h |
| 16406 | rm -f $tmp/config.h |
| 16407 | fi |
| 16408 | done |
| 16409 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16410 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16411 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16412 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16413 | { (exit 0); exit 0; } |
| 16414 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16415 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16416 | ac_clean_files=$ac_clean_files_save |
| 16417 | |
| 16418 | |
| 16419 | # configure is writing to config.log, and then calls config.status. |
| 16420 | # config.status does its own redirection, appending to config.log. |
| 16421 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16422 | # by configure, so config.status won't be able to write to it; its |
| 16423 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16424 | # effectively closing config.log, so it can be properly (re)opened and |
| 16425 | # appended to by config.status. When coming back to configure, we |
| 16426 | # need to make the FD available again. |
| 16427 | if test "$no_create" != yes; then |
| 16428 | ac_cs_success=: |
| 16429 | ac_config_status_args= |
| 16430 | test "$silent" = yes && |
| 16431 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16432 | exec 5>/dev/null |
| 16433 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 16434 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16435 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16436 | # would make configure fail if this is the last instruction. |
| 16437 | $ac_cs_success || { (exit 1); exit 1; } |
| 16438 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16439 | |
| 16440 | |