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. |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 848 | --disable-selinux Don't check for SELinux support. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 849 | --disable-xsmp Disable XSMP session management |
| 850 | --disable-xsmp-interact Disable XSMP interaction |
| 851 | --enable-mzschemeinterp Include MzScheme interpreter. |
| 852 | --enable-perlinterp Include Perl interpreter. |
| 853 | --enable-pythoninterp Include Python interpreter. |
| 854 | --enable-tclinterp Include Tcl interpreter. |
| 855 | --enable-rubyinterp Include Ruby interpreter. |
| 856 | --enable-cscope Include cscope interface. |
| 857 | --enable-workshop Include Sun Visual Workshop support. |
| 858 | --disable-netbeans Disable NetBeans integration support. |
| 859 | --enable-sniff Include Sniff interface. |
| 860 | --enable-multibyte Include multibyte editing support. |
| 861 | --enable-hangulinput Include Hangul input support. |
| 862 | --enable-xim Include XIM input support. |
| 863 | --enable-fontset Include X fontset output support. |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 864 | --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] | 865 | --enable-gtk-check If auto-select GUI, check for GTK default=yes |
| 866 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes |
| 867 | --enable-gnome-check If GTK GUI, check for GNOME default=no |
| 868 | --enable-motif-check If auto-select GUI, check for Motif default=yes |
| 869 | --enable-athena-check If auto-select GUI, check for Athena default=yes |
| 870 | --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes |
| 871 | --enable-carbon-check If auto-select GUI, check for Carbon default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 872 | --disable-gtktest Do not try to compile and run a test GTK program |
| 873 | --disable-acl Don't check for ACL support. |
| 874 | --disable-gpm Don't use gpm (Linux mouse daemon). |
| 875 | --disable-nls Don't support NLS (gettext()). |
| 876 | |
| 877 | Optional Packages: |
| 878 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 879 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Bram Moolenaar | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 880 | --with-mac-arch=ARCH current, intel, ppc or both |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 881 | --with-vim-name=NAME what to call the Vim executable |
| 882 | --with-ex-name=NAME what to call the Ex executable |
| 883 | --with-view-name=NAME what to call the View executable |
| 884 | --with-global-runtime=DIR global runtime directory in 'runtimepath' |
| 885 | --with-modified-by=NAME name of who modified a release version |
| 886 | --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
| 887 | --with-compiledby=NAME name to show in :version message |
| 888 | --with-plthome=PLTHOME Use PLTHOME. |
| 889 | --with-python-config-dir=PATH Python's config directory |
| 890 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
| 891 | --with-x use the X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 892 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
| 893 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
| 894 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 895 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 896 | --with-gnome Specify prefix for GNOME files |
| 897 | --with-motif-lib=STRING Library for Motif |
| 898 | --with-tlib=library terminal library to be used |
| 899 | |
| 900 | Some influential environment variables: |
| 901 | CC C compiler command |
| 902 | CFLAGS C compiler flags |
| 903 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 904 | nonstandard directory <lib dir> |
| 905 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 906 | headers in a nonstandard directory <include dir> |
| 907 | CPP C preprocessor |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 908 | |
| 909 | Use these variables to override the choices made by `configure' or to help |
| 910 | it to find libraries and programs with nonstandard names/locations. |
| 911 | |
| 912 | _ACEOF |
| 913 | fi |
| 914 | |
| 915 | if test "$ac_init_help" = "recursive"; then |
| 916 | # If there are subdirs, report their specific --help. |
| 917 | ac_popdir=`pwd` |
| 918 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 919 | test -d $ac_dir || continue |
| 920 | ac_builddir=. |
| 921 | |
| 922 | if test "$ac_dir" != .; then |
| 923 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 924 | # A "../" for each directory in $ac_dir_suffix. |
| 925 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 926 | else |
| 927 | ac_dir_suffix= ac_top_builddir= |
| 928 | fi |
| 929 | |
| 930 | case $srcdir in |
| 931 | .) # No --srcdir option. We are building in place. |
| 932 | ac_srcdir=. |
| 933 | if test -z "$ac_top_builddir"; then |
| 934 | ac_top_srcdir=. |
| 935 | else |
| 936 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 937 | fi ;; |
| 938 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 939 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 940 | ac_top_srcdir=$srcdir ;; |
| 941 | *) # Relative path. |
| 942 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 943 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 944 | esac |
| 945 | |
| 946 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 947 | # the directories may not exist. |
| 948 | case `pwd` in |
| 949 | .) ac_abs_builddir="$ac_dir";; |
| 950 | *) |
| 951 | case "$ac_dir" in |
| 952 | .) ac_abs_builddir=`pwd`;; |
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 954 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 955 | esac;; |
| 956 | esac |
| 957 | case $ac_abs_builddir in |
| 958 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 959 | *) |
| 960 | case ${ac_top_builddir}. in |
| 961 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 962 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 963 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 964 | esac;; |
| 965 | esac |
| 966 | case $ac_abs_builddir in |
| 967 | .) ac_abs_srcdir=$ac_srcdir;; |
| 968 | *) |
| 969 | case $ac_srcdir in |
| 970 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 971 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 972 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 973 | esac;; |
| 974 | esac |
| 975 | case $ac_abs_builddir in |
| 976 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 977 | *) |
| 978 | case $ac_top_srcdir in |
| 979 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 980 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 981 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 982 | esac;; |
| 983 | esac |
| 984 | |
| 985 | cd $ac_dir |
| 986 | # Check for guested configure; otherwise get Cygnus style configure. |
| 987 | if test -f $ac_srcdir/configure.gnu; then |
| 988 | echo |
| 989 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 990 | elif test -f $ac_srcdir/configure; then |
| 991 | echo |
| 992 | $SHELL $ac_srcdir/configure --help=recursive |
| 993 | elif test -f $ac_srcdir/configure.ac || |
| 994 | test -f $ac_srcdir/configure.in; then |
| 995 | echo |
| 996 | $ac_configure --help |
| 997 | else |
| 998 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 999 | fi |
| 1000 | cd $ac_popdir |
| 1001 | done |
| 1002 | fi |
| 1003 | |
| 1004 | test -n "$ac_init_help" && exit 0 |
| 1005 | if $ac_init_version; then |
| 1006 | cat <<\_ACEOF |
| 1007 | |
| 1008 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1009 | This configure script is free software; the Free Software Foundation |
| 1010 | gives unlimited permission to copy, distribute and modify it. |
| 1011 | _ACEOF |
| 1012 | exit 0 |
| 1013 | fi |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 1014 | exec 5>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1015 | cat >&5 <<_ACEOF |
| 1016 | This file contains any messages produced by compilers while |
| 1017 | running configure, to aid debugging if configure makes a mistake. |
| 1018 | |
| 1019 | It was created by $as_me, which was |
| 1020 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1021 | |
| 1022 | $ $0 $@ |
| 1023 | |
| 1024 | _ACEOF |
| 1025 | { |
| 1026 | cat <<_ASUNAME |
| 1027 | ## --------- ## |
| 1028 | ## Platform. ## |
| 1029 | ## --------- ## |
| 1030 | |
| 1031 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1032 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1033 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1034 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1035 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1036 | |
| 1037 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1038 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1039 | |
| 1040 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1041 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1042 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1043 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1044 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1045 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1046 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1047 | |
| 1048 | _ASUNAME |
| 1049 | |
| 1050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1051 | for as_dir in $PATH |
| 1052 | do |
| 1053 | IFS=$as_save_IFS |
| 1054 | test -z "$as_dir" && as_dir=. |
| 1055 | echo "PATH: $as_dir" |
| 1056 | done |
| 1057 | |
| 1058 | } >&5 |
| 1059 | |
| 1060 | cat >&5 <<_ACEOF |
| 1061 | |
| 1062 | |
| 1063 | ## ----------- ## |
| 1064 | ## Core tests. ## |
| 1065 | ## ----------- ## |
| 1066 | |
| 1067 | _ACEOF |
| 1068 | |
| 1069 | |
| 1070 | # Keep a trace of the command line. |
| 1071 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1072 | # Strip out --silent because we don't want to record it for future runs. |
| 1073 | # Also quote any args containing shell meta-characters. |
| 1074 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1075 | ac_configure_args= |
| 1076 | ac_configure_args0= |
| 1077 | ac_configure_args1= |
| 1078 | ac_sep= |
| 1079 | ac_must_keep_next=false |
| 1080 | for ac_pass in 1 2 |
| 1081 | do |
| 1082 | for ac_arg |
| 1083 | do |
| 1084 | case $ac_arg in |
| 1085 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1086 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1087 | | -silent | --silent | --silen | --sile | --sil) |
| 1088 | continue ;; |
| 1089 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1090 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1091 | esac |
| 1092 | case $ac_pass in |
| 1093 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1094 | 2) |
| 1095 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1096 | if test $ac_must_keep_next = true; then |
| 1097 | ac_must_keep_next=false # Got value, back to normal. |
| 1098 | else |
| 1099 | case $ac_arg in |
| 1100 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1101 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1102 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1103 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1104 | case "$ac_configure_args0 " in |
| 1105 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1106 | esac |
| 1107 | ;; |
| 1108 | -* ) ac_must_keep_next=true ;; |
| 1109 | esac |
| 1110 | fi |
| 1111 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1112 | # Get rid of the leading space. |
| 1113 | ac_sep=" " |
| 1114 | ;; |
| 1115 | esac |
| 1116 | done |
| 1117 | done |
| 1118 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1119 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1120 | |
| 1121 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1122 | # config.log. We remove comments because anyway the quotes in there |
| 1123 | # would cause problems or look ugly. |
| 1124 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1125 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1126 | trap 'exit_status=$? |
| 1127 | # Save into config.log some information that might help in debugging. |
| 1128 | { |
| 1129 | echo |
| 1130 | |
| 1131 | cat <<\_ASBOX |
| 1132 | ## ---------------- ## |
| 1133 | ## Cache variables. ## |
| 1134 | ## ---------------- ## |
| 1135 | _ASBOX |
| 1136 | echo |
| 1137 | # The following way of writing the cache mishandles newlines in values, |
| 1138 | { |
| 1139 | (set) 2>&1 | |
| 1140 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1141 | *ac_space=\ *) |
| 1142 | sed -n \ |
| 1143 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1144 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1145 | ;; |
| 1146 | *) |
| 1147 | sed -n \ |
| 1148 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1149 | ;; |
| 1150 | esac; |
| 1151 | } |
| 1152 | echo |
| 1153 | |
| 1154 | cat <<\_ASBOX |
| 1155 | ## ----------------- ## |
| 1156 | ## Output variables. ## |
| 1157 | ## ----------------- ## |
| 1158 | _ASBOX |
| 1159 | echo |
| 1160 | for ac_var in $ac_subst_vars |
| 1161 | do |
| 1162 | eval ac_val=$`echo $ac_var` |
| 1163 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1164 | done | sort |
| 1165 | echo |
| 1166 | |
| 1167 | if test -n "$ac_subst_files"; then |
| 1168 | cat <<\_ASBOX |
| 1169 | ## ------------- ## |
| 1170 | ## Output files. ## |
| 1171 | ## ------------- ## |
| 1172 | _ASBOX |
| 1173 | echo |
| 1174 | for ac_var in $ac_subst_files |
| 1175 | do |
| 1176 | eval ac_val=$`echo $ac_var` |
| 1177 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1178 | done | sort |
| 1179 | echo |
| 1180 | fi |
| 1181 | |
| 1182 | if test -s confdefs.h; then |
| 1183 | cat <<\_ASBOX |
| 1184 | ## ----------- ## |
| 1185 | ## confdefs.h. ## |
| 1186 | ## ----------- ## |
| 1187 | _ASBOX |
| 1188 | echo |
| 1189 | sed "/^$/d" confdefs.h | sort |
| 1190 | echo |
| 1191 | fi |
| 1192 | test "$ac_signal" != 0 && |
| 1193 | echo "$as_me: caught signal $ac_signal" |
| 1194 | echo "$as_me: exit $exit_status" |
| 1195 | } >&5 |
| 1196 | rm -f core *.core && |
| 1197 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1198 | exit $exit_status |
| 1199 | ' 0 |
| 1200 | for ac_signal in 1 2 13 15; do |
| 1201 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1202 | done |
| 1203 | ac_signal=0 |
| 1204 | |
| 1205 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1206 | rm -rf conftest* confdefs.h |
| 1207 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1208 | echo >confdefs.h |
| 1209 | |
| 1210 | # Predefined preprocessor variables. |
| 1211 | |
| 1212 | cat >>confdefs.h <<_ACEOF |
| 1213 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1214 | _ACEOF |
| 1215 | |
| 1216 | |
| 1217 | cat >>confdefs.h <<_ACEOF |
| 1218 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1219 | _ACEOF |
| 1220 | |
| 1221 | |
| 1222 | cat >>confdefs.h <<_ACEOF |
| 1223 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1224 | _ACEOF |
| 1225 | |
| 1226 | |
| 1227 | cat >>confdefs.h <<_ACEOF |
| 1228 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1229 | _ACEOF |
| 1230 | |
| 1231 | |
| 1232 | cat >>confdefs.h <<_ACEOF |
| 1233 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1234 | _ACEOF |
| 1235 | |
| 1236 | |
| 1237 | # 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] | 1238 | # Prefer explicitly selected file to automatically selected ones. |
| 1239 | if test -z "$CONFIG_SITE"; then |
| 1240 | if test "x$prefix" != xNONE; then |
| 1241 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1242 | else |
| 1243 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1244 | fi |
| 1245 | fi |
| 1246 | for ac_site_file in $CONFIG_SITE; do |
| 1247 | if test -r "$ac_site_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1248 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1249 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1250 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1251 | . "$ac_site_file" |
| 1252 | fi |
| 1253 | done |
| 1254 | |
| 1255 | if test -r "$cache_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1256 | # Some versions of bash will fail to source /dev/null (special |
| 1257 | # files actually), so we avoid doing that. |
| 1258 | if test -f "$cache_file"; then |
| 1259 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1260 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1261 | case $cache_file in |
| 1262 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1263 | *) . ./$cache_file;; |
| 1264 | esac |
| 1265 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1266 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1267 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1268 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1269 | >$cache_file |
| 1270 | fi |
| 1271 | |
| 1272 | # Check that the precious variables saved in the cache have kept the same |
| 1273 | # value. |
| 1274 | ac_cache_corrupted=false |
| 1275 | for ac_var in `(set) 2>&1 | |
| 1276 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1277 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1278 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1279 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1280 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1281 | case $ac_old_set,$ac_new_set in |
| 1282 | set,) |
| 1283 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1284 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1285 | ac_cache_corrupted=: ;; |
| 1286 | ,set) |
| 1287 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1288 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1289 | ac_cache_corrupted=: ;; |
| 1290 | ,);; |
| 1291 | *) |
| 1292 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1293 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1294 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1295 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1296 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1297 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1298 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1299 | ac_cache_corrupted=: |
| 1300 | fi;; |
| 1301 | esac |
| 1302 | # Pass precious variables to config.status. |
| 1303 | if test "$ac_new_set" = set; then |
| 1304 | case $ac_new_val in |
| 1305 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1306 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1307 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1308 | esac |
| 1309 | case " $ac_configure_args " in |
| 1310 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1311 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1312 | esac |
| 1313 | fi |
| 1314 | done |
| 1315 | if $ac_cache_corrupted; then |
| 1316 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1317 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1318 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1319 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1320 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1321 | fi |
| 1322 | |
| 1323 | ac_ext=c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1324 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
| 1344 | |
| 1345 | |
| 1346 | |
| 1347 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
| 1348 | |
| 1349 | |
| 1350 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1351 | #define UNIX 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1352 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1353 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1354 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1355 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1356 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 1357 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1359 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1360 | cat >conftest.make <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1361 | all: |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1362 | @echo 'ac_maketemp="$(MAKE)"' |
| 1363 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1364 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1365 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1366 | if test -n "$ac_maketemp"; then |
| 1367 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1368 | else |
| 1369 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1370 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1371 | rm -f conftest.make |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1372 | fi |
| 1373 | 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] | 1374 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1375 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1376 | SET_MAKE= |
| 1377 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1378 | echo "$as_me:$LINENO: result: no" >&5 |
| 1379 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1380 | SET_MAKE="MAKE=${MAKE-make}" |
| 1381 | fi |
| 1382 | |
| 1383 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1384 | ac_ext=c |
| 1385 | ac_cpp='$CPP $CPPFLAGS' |
| 1386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1389 | if test -n "$ac_tool_prefix"; then |
| 1390 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1391 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1392 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1393 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1394 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1396 | else |
| 1397 | if test -n "$CC"; then |
| 1398 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1399 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1401 | for as_dir in $PATH |
| 1402 | do |
| 1403 | IFS=$as_save_IFS |
| 1404 | test -z "$as_dir" && as_dir=. |
| 1405 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1406 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1407 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1408 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1409 | break 2 |
| 1410 | fi |
| 1411 | done |
| 1412 | done |
| 1413 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1414 | fi |
| 1415 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1416 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1417 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1418 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1419 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1420 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1421 | echo "$as_me:$LINENO: result: no" >&5 |
| 1422 | echo "${ECHO_T}no" >&6 |
| 1423 | fi |
| 1424 | |
| 1425 | fi |
| 1426 | if test -z "$ac_cv_prog_CC"; then |
| 1427 | ac_ct_CC=$CC |
| 1428 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1429 | set dummy gcc; ac_word=$2 |
| 1430 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1431 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1432 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1434 | else |
| 1435 | if test -n "$ac_ct_CC"; then |
| 1436 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1437 | else |
| 1438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1439 | for as_dir in $PATH |
| 1440 | do |
| 1441 | IFS=$as_save_IFS |
| 1442 | test -z "$as_dir" && as_dir=. |
| 1443 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1444 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1445 | ac_cv_prog_ac_ct_CC="gcc" |
| 1446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1447 | break 2 |
| 1448 | fi |
| 1449 | done |
| 1450 | done |
| 1451 | |
| 1452 | fi |
| 1453 | fi |
| 1454 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1455 | if test -n "$ac_ct_CC"; then |
| 1456 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1457 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1458 | else |
| 1459 | echo "$as_me:$LINENO: result: no" >&5 |
| 1460 | echo "${ECHO_T}no" >&6 |
| 1461 | fi |
| 1462 | |
| 1463 | CC=$ac_ct_CC |
| 1464 | else |
| 1465 | CC="$ac_cv_prog_CC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1466 | fi |
| 1467 | |
| 1468 | if test -z "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1469 | if test -n "$ac_tool_prefix"; then |
| 1470 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1471 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1472 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1473 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1474 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1476 | else |
| 1477 | if test -n "$CC"; then |
| 1478 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1479 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1481 | for as_dir in $PATH |
| 1482 | do |
| 1483 | IFS=$as_save_IFS |
| 1484 | test -z "$as_dir" && as_dir=. |
| 1485 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1486 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1487 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1488 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1489 | break 2 |
| 1490 | fi |
| 1491 | done |
| 1492 | done |
| 1493 | |
| 1494 | fi |
| 1495 | fi |
| 1496 | CC=$ac_cv_prog_CC |
| 1497 | if test -n "$CC"; then |
| 1498 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1499 | echo "${ECHO_T}$CC" >&6 |
| 1500 | else |
| 1501 | echo "$as_me:$LINENO: result: no" >&5 |
| 1502 | echo "${ECHO_T}no" >&6 |
| 1503 | fi |
| 1504 | |
| 1505 | fi |
| 1506 | if test -z "$ac_cv_prog_CC"; then |
| 1507 | ac_ct_CC=$CC |
| 1508 | # Extract the first word of "cc", so it can be a program name with args. |
| 1509 | set dummy cc; ac_word=$2 |
| 1510 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1511 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1512 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1514 | else |
| 1515 | if test -n "$ac_ct_CC"; then |
| 1516 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1517 | else |
| 1518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1519 | for as_dir in $PATH |
| 1520 | do |
| 1521 | IFS=$as_save_IFS |
| 1522 | test -z "$as_dir" && as_dir=. |
| 1523 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1524 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1525 | ac_cv_prog_ac_ct_CC="cc" |
| 1526 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1527 | break 2 |
| 1528 | fi |
| 1529 | done |
| 1530 | done |
| 1531 | |
| 1532 | fi |
| 1533 | fi |
| 1534 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1535 | if test -n "$ac_ct_CC"; then |
| 1536 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1537 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1538 | else |
| 1539 | echo "$as_me:$LINENO: result: no" >&5 |
| 1540 | echo "${ECHO_T}no" >&6 |
| 1541 | fi |
| 1542 | |
| 1543 | CC=$ac_ct_CC |
| 1544 | else |
| 1545 | CC="$ac_cv_prog_CC" |
| 1546 | fi |
| 1547 | |
| 1548 | fi |
| 1549 | if test -z "$CC"; then |
| 1550 | # Extract the first word of "cc", so it can be a program name with args. |
| 1551 | set dummy cc; ac_word=$2 |
| 1552 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1554 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1556 | else |
| 1557 | if test -n "$CC"; then |
| 1558 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1559 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1560 | ac_prog_rejected=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1562 | for as_dir in $PATH |
| 1563 | do |
| 1564 | IFS=$as_save_IFS |
| 1565 | test -z "$as_dir" && as_dir=. |
| 1566 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1567 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1568 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1569 | ac_prog_rejected=yes |
| 1570 | continue |
| 1571 | fi |
| 1572 | ac_cv_prog_CC="cc" |
| 1573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1574 | break 2 |
| 1575 | fi |
| 1576 | done |
| 1577 | done |
| 1578 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1579 | if test $ac_prog_rejected = yes; then |
| 1580 | # We found a bogon in the path, so make sure we never use it. |
| 1581 | set dummy $ac_cv_prog_CC |
| 1582 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1583 | if test $# != 0; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1584 | # We chose a different compiler from the bogus one. |
| 1585 | # However, it has the same basename, so the bogon will be chosen |
| 1586 | # first if we set CC to just the basename; use the full file name. |
| 1587 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1588 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1589 | fi |
| 1590 | fi |
| 1591 | fi |
| 1592 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1593 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1594 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1595 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1596 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1597 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1598 | echo "$as_me:$LINENO: result: no" >&5 |
| 1599 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1600 | fi |
| 1601 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1602 | fi |
| 1603 | if test -z "$CC"; then |
| 1604 | if test -n "$ac_tool_prefix"; then |
| 1605 | for ac_prog in cl |
| 1606 | do |
| 1607 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1608 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1609 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1611 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1613 | else |
| 1614 | if test -n "$CC"; then |
| 1615 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1616 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1618 | for as_dir in $PATH |
| 1619 | do |
| 1620 | IFS=$as_save_IFS |
| 1621 | test -z "$as_dir" && as_dir=. |
| 1622 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1623 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1624 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1626 | break 2 |
| 1627 | fi |
| 1628 | done |
| 1629 | done |
| 1630 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1631 | fi |
| 1632 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1633 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1634 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1635 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1636 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1637 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1638 | echo "$as_me:$LINENO: result: no" >&5 |
| 1639 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1640 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1641 | |
| 1642 | test -n "$CC" && break |
| 1643 | done |
| 1644 | fi |
| 1645 | if test -z "$CC"; then |
| 1646 | ac_ct_CC=$CC |
| 1647 | for ac_prog in cl |
| 1648 | do |
| 1649 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1650 | set dummy $ac_prog; ac_word=$2 |
| 1651 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1653 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1655 | else |
| 1656 | if test -n "$ac_ct_CC"; then |
| 1657 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1658 | else |
| 1659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1660 | for as_dir in $PATH |
| 1661 | do |
| 1662 | IFS=$as_save_IFS |
| 1663 | test -z "$as_dir" && as_dir=. |
| 1664 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1665 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1666 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1668 | break 2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1669 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1670 | done |
| 1671 | done |
| 1672 | |
| 1673 | fi |
| 1674 | fi |
| 1675 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1676 | if test -n "$ac_ct_CC"; then |
| 1677 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1678 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1679 | else |
| 1680 | echo "$as_me:$LINENO: result: no" >&5 |
| 1681 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1682 | fi |
| 1683 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1684 | test -n "$ac_ct_CC" && break |
| 1685 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1686 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1687 | CC=$ac_ct_CC |
| 1688 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1689 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1690 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1691 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1692 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1693 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1694 | See \`config.log' for more details." >&5 |
| 1695 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1696 | See \`config.log' for more details." >&2;} |
| 1697 | { (exit 1); exit 1; }; } |
| 1698 | |
| 1699 | # Provide some information about the compiler. |
| 1700 | echo "$as_me:$LINENO:" \ |
| 1701 | "checking for C compiler version" >&5 |
| 1702 | ac_compiler=`set X $ac_compile; echo $2` |
| 1703 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1704 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1705 | ac_status=$? |
| 1706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1707 | (exit $ac_status); } |
| 1708 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1709 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1710 | ac_status=$? |
| 1711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1712 | (exit $ac_status); } |
| 1713 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1714 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1715 | ac_status=$? |
| 1716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1717 | (exit $ac_status); } |
| 1718 | |
| 1719 | cat >conftest.$ac_ext <<_ACEOF |
| 1720 | /* confdefs.h. */ |
| 1721 | _ACEOF |
| 1722 | cat confdefs.h >>conftest.$ac_ext |
| 1723 | cat >>conftest.$ac_ext <<_ACEOF |
| 1724 | /* end confdefs.h. */ |
| 1725 | |
| 1726 | int |
| 1727 | main () |
| 1728 | { |
| 1729 | |
| 1730 | ; |
| 1731 | return 0; |
| 1732 | } |
| 1733 | _ACEOF |
| 1734 | ac_clean_files_save=$ac_clean_files |
| 1735 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1736 | # Try to create an executable without -o first, disregard a.out. |
| 1737 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1738 | # of exeext. |
| 1739 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1740 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1741 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1742 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1743 | (eval $ac_link_default) 2>&5 |
| 1744 | ac_status=$? |
| 1745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1746 | (exit $ac_status); }; then |
| 1747 | # Find the output, starting from the most likely. This scheme is |
| 1748 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1749 | # resort. |
| 1750 | |
| 1751 | # Be careful to initialize this variable, since it used to be cached. |
| 1752 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1753 | ac_cv_exeext= |
| 1754 | # b.out is created by i960 compilers. |
| 1755 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1756 | do |
| 1757 | test -f "$ac_file" || continue |
| 1758 | case $ac_file in |
| 1759 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1760 | ;; |
| 1761 | conftest.$ac_ext ) |
| 1762 | # This is the source file. |
| 1763 | ;; |
| 1764 | [ab].out ) |
| 1765 | # We found the default executable, but exeext='' is most |
| 1766 | # certainly right. |
| 1767 | break;; |
| 1768 | *.* ) |
| 1769 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1770 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1771 | # but it would be cool to find out if it's true. Does anybody |
| 1772 | # maintain Libtool? --akim. |
| 1773 | export ac_cv_exeext |
| 1774 | break;; |
| 1775 | * ) |
| 1776 | break;; |
| 1777 | esac |
| 1778 | done |
| 1779 | else |
| 1780 | echo "$as_me: failed program was:" >&5 |
| 1781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1782 | |
| 1783 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1784 | See \`config.log' for more details." >&5 |
| 1785 | echo "$as_me: error: C compiler cannot create executables |
| 1786 | See \`config.log' for more details." >&2;} |
| 1787 | { (exit 77); exit 77; }; } |
| 1788 | fi |
| 1789 | |
| 1790 | ac_exeext=$ac_cv_exeext |
| 1791 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1792 | echo "${ECHO_T}$ac_file" >&6 |
| 1793 | |
| 1794 | # Check the compiler produces executables we can run. If not, either |
| 1795 | # the compiler is broken, or we cross compile. |
| 1796 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1797 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1798 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1799 | # If not cross compiling, check that we can run a simple program. |
| 1800 | if test "$cross_compiling" != yes; then |
| 1801 | if { ac_try='./$ac_file' |
| 1802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1803 | (eval $ac_try) 2>&5 |
| 1804 | ac_status=$? |
| 1805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1806 | (exit $ac_status); }; }; then |
| 1807 | cross_compiling=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1808 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1809 | if test "$cross_compiling" = maybe; then |
| 1810 | cross_compiling=yes |
| 1811 | else |
| 1812 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1813 | If you meant to cross compile, use \`--host'. |
| 1814 | See \`config.log' for more details." >&5 |
| 1815 | echo "$as_me: error: cannot run C compiled programs. |
| 1816 | If you meant to cross compile, use \`--host'. |
| 1817 | See \`config.log' for more details." >&2;} |
| 1818 | { (exit 1); exit 1; }; } |
| 1819 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1820 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1821 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1822 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1823 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1824 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1825 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1826 | ac_clean_files=$ac_clean_files_save |
| 1827 | # Check the compiler produces executables we can run. If not, either |
| 1828 | # the compiler is broken, or we cross compile. |
| 1829 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1830 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1831 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1832 | echo "${ECHO_T}$cross_compiling" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1833 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1834 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1835 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1837 | (eval $ac_link) 2>&5 |
| 1838 | ac_status=$? |
| 1839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1840 | (exit $ac_status); }; then |
| 1841 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1842 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1843 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1844 | # `rm'. |
| 1845 | for ac_file in conftest.exe conftest conftest.*; do |
| 1846 | test -f "$ac_file" || continue |
| 1847 | case $ac_file in |
| 1848 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1849 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1850 | export ac_cv_exeext |
| 1851 | break;; |
| 1852 | * ) break;; |
| 1853 | esac |
| 1854 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1855 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1856 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1857 | See \`config.log' for more details." >&5 |
| 1858 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1859 | See \`config.log' for more details." >&2;} |
| 1860 | { (exit 1); exit 1; }; } |
| 1861 | fi |
| 1862 | |
| 1863 | rm -f conftest$ac_cv_exeext |
| 1864 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1865 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1866 | |
| 1867 | rm -f conftest.$ac_ext |
| 1868 | EXEEXT=$ac_cv_exeext |
| 1869 | ac_exeext=$EXEEXT |
| 1870 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1871 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1872 | if test "${ac_cv_objext+set}" = set; then |
| 1873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1874 | else |
| 1875 | cat >conftest.$ac_ext <<_ACEOF |
| 1876 | /* confdefs.h. */ |
| 1877 | _ACEOF |
| 1878 | cat confdefs.h >>conftest.$ac_ext |
| 1879 | cat >>conftest.$ac_ext <<_ACEOF |
| 1880 | /* end confdefs.h. */ |
| 1881 | |
| 1882 | int |
| 1883 | main () |
| 1884 | { |
| 1885 | |
| 1886 | ; |
| 1887 | return 0; |
| 1888 | } |
| 1889 | _ACEOF |
| 1890 | rm -f conftest.o conftest.obj |
| 1891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1892 | (eval $ac_compile) 2>&5 |
| 1893 | ac_status=$? |
| 1894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1895 | (exit $ac_status); }; then |
| 1896 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1897 | case $ac_file in |
| 1898 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1899 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1900 | break;; |
| 1901 | esac |
| 1902 | done |
| 1903 | else |
| 1904 | echo "$as_me: failed program was:" >&5 |
| 1905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1906 | |
| 1907 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1908 | See \`config.log' for more details." >&5 |
| 1909 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1910 | See \`config.log' for more details." >&2;} |
| 1911 | { (exit 1); exit 1; }; } |
| 1912 | fi |
| 1913 | |
| 1914 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1915 | fi |
| 1916 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1917 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1918 | OBJEXT=$ac_cv_objext |
| 1919 | ac_objext=$OBJEXT |
| 1920 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1921 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1922 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1924 | else |
| 1925 | cat >conftest.$ac_ext <<_ACEOF |
| 1926 | /* confdefs.h. */ |
| 1927 | _ACEOF |
| 1928 | cat confdefs.h >>conftest.$ac_ext |
| 1929 | cat >>conftest.$ac_ext <<_ACEOF |
| 1930 | /* end confdefs.h. */ |
| 1931 | |
| 1932 | int |
| 1933 | main () |
| 1934 | { |
| 1935 | #ifndef __GNUC__ |
| 1936 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1937 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1938 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1939 | ; |
| 1940 | return 0; |
| 1941 | } |
| 1942 | _ACEOF |
| 1943 | rm -f conftest.$ac_objext |
| 1944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1945 | (eval $ac_compile) 2>conftest.er1 |
| 1946 | ac_status=$? |
| 1947 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1948 | rm -f conftest.er1 |
| 1949 | cat conftest.err >&5 |
| 1950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1951 | (exit $ac_status); } && |
| 1952 | { ac_try='test -z "$ac_c_werror_flag" |
| 1953 | || test ! -s conftest.err' |
| 1954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1955 | (eval $ac_try) 2>&5 |
| 1956 | ac_status=$? |
| 1957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1958 | (exit $ac_status); }; } && |
| 1959 | { ac_try='test -s conftest.$ac_objext' |
| 1960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1961 | (eval $ac_try) 2>&5 |
| 1962 | ac_status=$? |
| 1963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1964 | (exit $ac_status); }; }; then |
| 1965 | ac_compiler_gnu=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1966 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1967 | echo "$as_me: failed program was:" >&5 |
| 1968 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1969 | |
| 1970 | ac_compiler_gnu=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1971 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1973 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1974 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1975 | fi |
| 1976 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1977 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1978 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1979 | ac_test_CFLAGS=${CFLAGS+set} |
| 1980 | ac_save_CFLAGS=$CFLAGS |
| 1981 | CFLAGS="-g" |
| 1982 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1983 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1984 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1986 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1987 | cat >conftest.$ac_ext <<_ACEOF |
| 1988 | /* confdefs.h. */ |
| 1989 | _ACEOF |
| 1990 | cat confdefs.h >>conftest.$ac_ext |
| 1991 | cat >>conftest.$ac_ext <<_ACEOF |
| 1992 | /* end confdefs.h. */ |
| 1993 | |
| 1994 | int |
| 1995 | main () |
| 1996 | { |
| 1997 | |
| 1998 | ; |
| 1999 | return 0; |
| 2000 | } |
| 2001 | _ACEOF |
| 2002 | rm -f conftest.$ac_objext |
| 2003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2004 | (eval $ac_compile) 2>conftest.er1 |
| 2005 | ac_status=$? |
| 2006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2007 | rm -f conftest.er1 |
| 2008 | cat conftest.err >&5 |
| 2009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2010 | (exit $ac_status); } && |
| 2011 | { ac_try='test -z "$ac_c_werror_flag" |
| 2012 | || test ! -s conftest.err' |
| 2013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2014 | (eval $ac_try) 2>&5 |
| 2015 | ac_status=$? |
| 2016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2017 | (exit $ac_status); }; } && |
| 2018 | { ac_try='test -s conftest.$ac_objext' |
| 2019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2020 | (eval $ac_try) 2>&5 |
| 2021 | ac_status=$? |
| 2022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2023 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2024 | ac_cv_prog_cc_g=yes |
| 2025 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2026 | echo "$as_me: failed program was:" >&5 |
| 2027 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2028 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2029 | ac_cv_prog_cc_g=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2030 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2032 | fi |
| 2033 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2034 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2035 | if test "$ac_test_CFLAGS" = set; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2036 | CFLAGS=$ac_save_CFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2037 | elif test $ac_cv_prog_cc_g = yes; then |
| 2038 | if test "$GCC" = yes; then |
| 2039 | CFLAGS="-g -O2" |
| 2040 | else |
| 2041 | CFLAGS="-g" |
| 2042 | fi |
| 2043 | else |
| 2044 | if test "$GCC" = yes; then |
| 2045 | CFLAGS="-O2" |
| 2046 | else |
| 2047 | CFLAGS= |
| 2048 | fi |
| 2049 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2050 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2051 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2052 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2054 | else |
| 2055 | ac_cv_prog_cc_stdc=no |
| 2056 | ac_save_CC=$CC |
| 2057 | cat >conftest.$ac_ext <<_ACEOF |
| 2058 | /* confdefs.h. */ |
| 2059 | _ACEOF |
| 2060 | cat confdefs.h >>conftest.$ac_ext |
| 2061 | cat >>conftest.$ac_ext <<_ACEOF |
| 2062 | /* end confdefs.h. */ |
| 2063 | #include <stdarg.h> |
| 2064 | #include <stdio.h> |
| 2065 | #include <sys/types.h> |
| 2066 | #include <sys/stat.h> |
| 2067 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2068 | struct buf { int x; }; |
| 2069 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2070 | static char *e (p, i) |
| 2071 | char **p; |
| 2072 | int i; |
| 2073 | { |
| 2074 | return p[i]; |
| 2075 | } |
| 2076 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2077 | { |
| 2078 | char *s; |
| 2079 | va_list v; |
| 2080 | va_start (v,p); |
| 2081 | s = g (p, va_arg (v,int)); |
| 2082 | va_end (v); |
| 2083 | return s; |
| 2084 | } |
| 2085 | |
| 2086 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2087 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2088 | These don't provoke an error unfortunately, instead are silently treated |
| 2089 | as 'x'. The following induces an error, until -std1 is added to get |
| 2090 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2091 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2092 | that's true only with -std1. */ |
| 2093 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2094 | |
| 2095 | int test (int i, double x); |
| 2096 | struct s1 {int (*f) (int a);}; |
| 2097 | struct s2 {int (*f) (double a);}; |
| 2098 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2099 | int argc; |
| 2100 | char **argv; |
| 2101 | int |
| 2102 | main () |
| 2103 | { |
| 2104 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2105 | ; |
| 2106 | return 0; |
| 2107 | } |
| 2108 | _ACEOF |
| 2109 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2110 | # breaks some systems' header files. |
| 2111 | # AIX -qlanglvl=ansi |
| 2112 | # Ultrix and OSF/1 -std1 |
| 2113 | # HP-UX 10.20 and later -Ae |
| 2114 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2115 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2116 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2117 | do |
| 2118 | CC="$ac_save_CC $ac_arg" |
| 2119 | rm -f conftest.$ac_objext |
| 2120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2121 | (eval $ac_compile) 2>conftest.er1 |
| 2122 | ac_status=$? |
| 2123 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2124 | rm -f conftest.er1 |
| 2125 | cat conftest.err >&5 |
| 2126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2127 | (exit $ac_status); } && |
| 2128 | { ac_try='test -z "$ac_c_werror_flag" |
| 2129 | || test ! -s conftest.err' |
| 2130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2131 | (eval $ac_try) 2>&5 |
| 2132 | ac_status=$? |
| 2133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2134 | (exit $ac_status); }; } && |
| 2135 | { ac_try='test -s conftest.$ac_objext' |
| 2136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2137 | (eval $ac_try) 2>&5 |
| 2138 | ac_status=$? |
| 2139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2140 | (exit $ac_status); }; }; then |
| 2141 | ac_cv_prog_cc_stdc=$ac_arg |
| 2142 | break |
| 2143 | else |
| 2144 | echo "$as_me: failed program was:" >&5 |
| 2145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2146 | |
| 2147 | fi |
| 2148 | rm -f conftest.err conftest.$ac_objext |
| 2149 | done |
| 2150 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2151 | CC=$ac_save_CC |
| 2152 | |
| 2153 | fi |
| 2154 | |
| 2155 | case "x$ac_cv_prog_cc_stdc" in |
| 2156 | x|xno) |
| 2157 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2158 | echo "${ECHO_T}none needed" >&6 ;; |
| 2159 | *) |
| 2160 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2161 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2162 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2163 | esac |
| 2164 | |
| 2165 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2166 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2167 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2168 | # the declaration of exit, since it's the most demanding environment. |
| 2169 | cat >conftest.$ac_ext <<_ACEOF |
| 2170 | #ifndef __cplusplus |
| 2171 | choke me |
| 2172 | #endif |
| 2173 | _ACEOF |
| 2174 | rm -f conftest.$ac_objext |
| 2175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2176 | (eval $ac_compile) 2>conftest.er1 |
| 2177 | ac_status=$? |
| 2178 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2179 | rm -f conftest.er1 |
| 2180 | cat conftest.err >&5 |
| 2181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2182 | (exit $ac_status); } && |
| 2183 | { ac_try='test -z "$ac_c_werror_flag" |
| 2184 | || test ! -s conftest.err' |
| 2185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2186 | (eval $ac_try) 2>&5 |
| 2187 | ac_status=$? |
| 2188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2189 | (exit $ac_status); }; } && |
| 2190 | { ac_try='test -s conftest.$ac_objext' |
| 2191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2192 | (eval $ac_try) 2>&5 |
| 2193 | ac_status=$? |
| 2194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2195 | (exit $ac_status); }; }; then |
| 2196 | for ac_declaration in \ |
| 2197 | '' \ |
| 2198 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2199 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2200 | 'extern "C" void exit (int) throw ();' \ |
| 2201 | 'extern "C" void exit (int);' \ |
| 2202 | 'void exit (int);' |
| 2203 | do |
| 2204 | cat >conftest.$ac_ext <<_ACEOF |
| 2205 | /* confdefs.h. */ |
| 2206 | _ACEOF |
| 2207 | cat confdefs.h >>conftest.$ac_ext |
| 2208 | cat >>conftest.$ac_ext <<_ACEOF |
| 2209 | /* end confdefs.h. */ |
| 2210 | $ac_declaration |
| 2211 | #include <stdlib.h> |
| 2212 | int |
| 2213 | main () |
| 2214 | { |
| 2215 | exit (42); |
| 2216 | ; |
| 2217 | return 0; |
| 2218 | } |
| 2219 | _ACEOF |
| 2220 | rm -f conftest.$ac_objext |
| 2221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2222 | (eval $ac_compile) 2>conftest.er1 |
| 2223 | ac_status=$? |
| 2224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2225 | rm -f conftest.er1 |
| 2226 | cat conftest.err >&5 |
| 2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2228 | (exit $ac_status); } && |
| 2229 | { ac_try='test -z "$ac_c_werror_flag" |
| 2230 | || test ! -s conftest.err' |
| 2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2232 | (eval $ac_try) 2>&5 |
| 2233 | ac_status=$? |
| 2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2235 | (exit $ac_status); }; } && |
| 2236 | { ac_try='test -s conftest.$ac_objext' |
| 2237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2238 | (eval $ac_try) 2>&5 |
| 2239 | ac_status=$? |
| 2240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2241 | (exit $ac_status); }; }; then |
| 2242 | : |
| 2243 | else |
| 2244 | echo "$as_me: failed program was:" >&5 |
| 2245 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2246 | |
| 2247 | continue |
| 2248 | fi |
| 2249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2250 | cat >conftest.$ac_ext <<_ACEOF |
| 2251 | /* confdefs.h. */ |
| 2252 | _ACEOF |
| 2253 | cat confdefs.h >>conftest.$ac_ext |
| 2254 | cat >>conftest.$ac_ext <<_ACEOF |
| 2255 | /* end confdefs.h. */ |
| 2256 | $ac_declaration |
| 2257 | int |
| 2258 | main () |
| 2259 | { |
| 2260 | exit (42); |
| 2261 | ; |
| 2262 | return 0; |
| 2263 | } |
| 2264 | _ACEOF |
| 2265 | rm -f conftest.$ac_objext |
| 2266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2267 | (eval $ac_compile) 2>conftest.er1 |
| 2268 | ac_status=$? |
| 2269 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2270 | rm -f conftest.er1 |
| 2271 | cat conftest.err >&5 |
| 2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2273 | (exit $ac_status); } && |
| 2274 | { ac_try='test -z "$ac_c_werror_flag" |
| 2275 | || test ! -s conftest.err' |
| 2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2277 | (eval $ac_try) 2>&5 |
| 2278 | ac_status=$? |
| 2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2280 | (exit $ac_status); }; } && |
| 2281 | { ac_try='test -s conftest.$ac_objext' |
| 2282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2283 | (eval $ac_try) 2>&5 |
| 2284 | ac_status=$? |
| 2285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2286 | (exit $ac_status); }; }; then |
| 2287 | break |
| 2288 | else |
| 2289 | echo "$as_me: failed program was:" >&5 |
| 2290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2291 | |
| 2292 | fi |
| 2293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2294 | done |
| 2295 | rm -f conftest* |
| 2296 | if test -n "$ac_declaration"; then |
| 2297 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2298 | echo $ac_declaration >>confdefs.h |
| 2299 | echo '#endif' >>confdefs.h |
| 2300 | fi |
| 2301 | |
| 2302 | else |
| 2303 | echo "$as_me: failed program was:" >&5 |
| 2304 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2305 | |
| 2306 | fi |
| 2307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2308 | ac_ext=c |
| 2309 | ac_cpp='$CPP $CPPFLAGS' |
| 2310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2313 | ac_ext=c |
| 2314 | ac_cpp='$CPP $CPPFLAGS' |
| 2315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2318 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2319 | 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] | 2320 | # On Suns, sometimes $CPP names a directory. |
| 2321 | if test -n "$CPP" && test -d "$CPP"; then |
| 2322 | CPP= |
| 2323 | fi |
| 2324 | if test -z "$CPP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2325 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2327 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2328 | # Double quotes because CPP needs to be expanded |
| 2329 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2330 | do |
| 2331 | ac_preproc_ok=false |
| 2332 | for ac_c_preproc_warn_flag in '' yes |
| 2333 | do |
| 2334 | # Use a header file that comes with gcc, so configuring glibc |
| 2335 | # with a fresh cross-compiler works. |
| 2336 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2337 | # <limits.h> exists even on freestanding compilers. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2338 | # 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] | 2339 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2340 | cat >conftest.$ac_ext <<_ACEOF |
| 2341 | /* confdefs.h. */ |
| 2342 | _ACEOF |
| 2343 | cat confdefs.h >>conftest.$ac_ext |
| 2344 | cat >>conftest.$ac_ext <<_ACEOF |
| 2345 | /* end confdefs.h. */ |
| 2346 | #ifdef __STDC__ |
| 2347 | # include <limits.h> |
| 2348 | #else |
| 2349 | # include <assert.h> |
| 2350 | #endif |
| 2351 | Syntax error |
| 2352 | _ACEOF |
| 2353 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2354 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2355 | ac_status=$? |
| 2356 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2357 | rm -f conftest.er1 |
| 2358 | cat conftest.err >&5 |
| 2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2360 | (exit $ac_status); } >/dev/null; then |
| 2361 | if test -s conftest.err; then |
| 2362 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2363 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2364 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2365 | ac_cpp_err= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2366 | fi |
| 2367 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2368 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2369 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2370 | if test -z "$ac_cpp_err"; then |
| 2371 | : |
| 2372 | else |
| 2373 | echo "$as_me: failed program was:" >&5 |
| 2374 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2375 | |
| 2376 | # Broken: fails on valid input. |
| 2377 | continue |
| 2378 | fi |
| 2379 | rm -f conftest.err conftest.$ac_ext |
| 2380 | |
| 2381 | # OK, works on sane cases. Now check whether non-existent headers |
| 2382 | # can be detected and how. |
| 2383 | cat >conftest.$ac_ext <<_ACEOF |
| 2384 | /* confdefs.h. */ |
| 2385 | _ACEOF |
| 2386 | cat confdefs.h >>conftest.$ac_ext |
| 2387 | cat >>conftest.$ac_ext <<_ACEOF |
| 2388 | /* end confdefs.h. */ |
| 2389 | #include <ac_nonexistent.h> |
| 2390 | _ACEOF |
| 2391 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2392 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2393 | ac_status=$? |
| 2394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2395 | rm -f conftest.er1 |
| 2396 | cat conftest.err >&5 |
| 2397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2398 | (exit $ac_status); } >/dev/null; then |
| 2399 | if test -s conftest.err; then |
| 2400 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2401 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2402 | else |
| 2403 | ac_cpp_err= |
| 2404 | fi |
| 2405 | else |
| 2406 | ac_cpp_err=yes |
| 2407 | fi |
| 2408 | if test -z "$ac_cpp_err"; then |
| 2409 | # Broken: success on invalid input. |
| 2410 | continue |
| 2411 | else |
| 2412 | echo "$as_me: failed program was:" >&5 |
| 2413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2414 | |
| 2415 | # Passes both tests. |
| 2416 | ac_preproc_ok=: |
| 2417 | break |
| 2418 | fi |
| 2419 | rm -f conftest.err conftest.$ac_ext |
| 2420 | |
| 2421 | done |
| 2422 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2423 | rm -f conftest.err conftest.$ac_ext |
| 2424 | if $ac_preproc_ok; then |
| 2425 | break |
| 2426 | fi |
| 2427 | |
| 2428 | done |
| 2429 | ac_cv_prog_CPP=$CPP |
| 2430 | |
| 2431 | fi |
| 2432 | CPP=$ac_cv_prog_CPP |
| 2433 | else |
| 2434 | ac_cv_prog_CPP=$CPP |
| 2435 | fi |
| 2436 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2437 | echo "${ECHO_T}$CPP" >&6 |
| 2438 | ac_preproc_ok=false |
| 2439 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2440 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2441 | # Use a header file that comes with gcc, so configuring glibc |
| 2442 | # with a fresh cross-compiler works. |
| 2443 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2444 | # <limits.h> exists even on freestanding compilers. |
| 2445 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2446 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2447 | cat >conftest.$ac_ext <<_ACEOF |
| 2448 | /* confdefs.h. */ |
| 2449 | _ACEOF |
| 2450 | cat confdefs.h >>conftest.$ac_ext |
| 2451 | cat >>conftest.$ac_ext <<_ACEOF |
| 2452 | /* end confdefs.h. */ |
| 2453 | #ifdef __STDC__ |
| 2454 | # include <limits.h> |
| 2455 | #else |
| 2456 | # include <assert.h> |
| 2457 | #endif |
| 2458 | Syntax error |
| 2459 | _ACEOF |
| 2460 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2461 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2462 | ac_status=$? |
| 2463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2464 | rm -f conftest.er1 |
| 2465 | cat conftest.err >&5 |
| 2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2467 | (exit $ac_status); } >/dev/null; then |
| 2468 | if test -s conftest.err; then |
| 2469 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2470 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2471 | else |
| 2472 | ac_cpp_err= |
| 2473 | fi |
| 2474 | else |
| 2475 | ac_cpp_err=yes |
| 2476 | fi |
| 2477 | if test -z "$ac_cpp_err"; then |
| 2478 | : |
| 2479 | else |
| 2480 | echo "$as_me: failed program was:" >&5 |
| 2481 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2482 | |
| 2483 | # Broken: fails on valid input. |
| 2484 | continue |
| 2485 | fi |
| 2486 | rm -f conftest.err conftest.$ac_ext |
| 2487 | |
| 2488 | # OK, works on sane cases. Now check whether non-existent headers |
| 2489 | # can be detected and how. |
| 2490 | cat >conftest.$ac_ext <<_ACEOF |
| 2491 | /* confdefs.h. */ |
| 2492 | _ACEOF |
| 2493 | cat confdefs.h >>conftest.$ac_ext |
| 2494 | cat >>conftest.$ac_ext <<_ACEOF |
| 2495 | /* end confdefs.h. */ |
| 2496 | #include <ac_nonexistent.h> |
| 2497 | _ACEOF |
| 2498 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2499 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2500 | ac_status=$? |
| 2501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2502 | rm -f conftest.er1 |
| 2503 | cat conftest.err >&5 |
| 2504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2505 | (exit $ac_status); } >/dev/null; then |
| 2506 | if test -s conftest.err; then |
| 2507 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2508 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2509 | else |
| 2510 | ac_cpp_err= |
| 2511 | fi |
| 2512 | else |
| 2513 | ac_cpp_err=yes |
| 2514 | fi |
| 2515 | if test -z "$ac_cpp_err"; then |
| 2516 | # Broken: success on invalid input. |
| 2517 | continue |
| 2518 | else |
| 2519 | echo "$as_me: failed program was:" >&5 |
| 2520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2521 | |
| 2522 | # Passes both tests. |
| 2523 | ac_preproc_ok=: |
| 2524 | break |
| 2525 | fi |
| 2526 | rm -f conftest.err conftest.$ac_ext |
| 2527 | |
| 2528 | done |
| 2529 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2530 | rm -f conftest.err conftest.$ac_ext |
| 2531 | if $ac_preproc_ok; then |
| 2532 | : |
| 2533 | else |
| 2534 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2535 | See \`config.log' for more details." >&5 |
| 2536 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2537 | See \`config.log' for more details." >&2;} |
| 2538 | { (exit 1); exit 1; }; } |
| 2539 | fi |
| 2540 | |
| 2541 | ac_ext=c |
| 2542 | ac_cpp='$CPP $CPPFLAGS' |
| 2543 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2544 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2545 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2546 | |
| 2547 | |
| 2548 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2549 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2550 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2552 | else |
| 2553 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2554 | then ac_cv_prog_egrep='grep -E' |
| 2555 | else ac_cv_prog_egrep='egrep' |
| 2556 | fi |
| 2557 | fi |
| 2558 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2559 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2560 | EGREP=$ac_cv_prog_egrep |
| 2561 | |
| 2562 | |
| 2563 | cat >conftest.$ac_ext <<_ACEOF |
| 2564 | /* confdefs.h. */ |
| 2565 | _ACEOF |
| 2566 | cat confdefs.h >>conftest.$ac_ext |
| 2567 | cat >>conftest.$ac_ext <<_ACEOF |
| 2568 | /* end confdefs.h. */ |
| 2569 | |
| 2570 | _ACEOF |
| 2571 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2572 | $EGREP "" >/dev/null 2>&1; then |
| 2573 | : |
| 2574 | fi |
| 2575 | rm -f conftest* |
| 2576 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 2577 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
| 2578 | if test "${ac_cv_search_strerror+set}" = set; then |
| 2579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2580 | else |
| 2581 | ac_func_search_save_LIBS=$LIBS |
| 2582 | ac_cv_search_strerror=no |
| 2583 | cat >conftest.$ac_ext <<_ACEOF |
| 2584 | /* confdefs.h. */ |
| 2585 | _ACEOF |
| 2586 | cat confdefs.h >>conftest.$ac_ext |
| 2587 | cat >>conftest.$ac_ext <<_ACEOF |
| 2588 | /* end confdefs.h. */ |
| 2589 | |
| 2590 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2591 | #ifdef __cplusplus |
| 2592 | extern "C" |
| 2593 | #endif |
| 2594 | /* We use char because int might match the return type of a gcc2 |
| 2595 | builtin and then its argument prototype would still apply. */ |
| 2596 | char strerror (); |
| 2597 | int |
| 2598 | main () |
| 2599 | { |
| 2600 | strerror (); |
| 2601 | ; |
| 2602 | return 0; |
| 2603 | } |
| 2604 | _ACEOF |
| 2605 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2607 | (eval $ac_link) 2>conftest.er1 |
| 2608 | ac_status=$? |
| 2609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2610 | rm -f conftest.er1 |
| 2611 | cat conftest.err >&5 |
| 2612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2613 | (exit $ac_status); } && |
| 2614 | { ac_try='test -z "$ac_c_werror_flag" |
| 2615 | || test ! -s conftest.err' |
| 2616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2617 | (eval $ac_try) 2>&5 |
| 2618 | ac_status=$? |
| 2619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2620 | (exit $ac_status); }; } && |
| 2621 | { ac_try='test -s conftest$ac_exeext' |
| 2622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2623 | (eval $ac_try) 2>&5 |
| 2624 | ac_status=$? |
| 2625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2626 | (exit $ac_status); }; }; then |
| 2627 | ac_cv_search_strerror="none required" |
| 2628 | else |
| 2629 | echo "$as_me: failed program was:" >&5 |
| 2630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2631 | |
| 2632 | fi |
| 2633 | rm -f conftest.err conftest.$ac_objext \ |
| 2634 | conftest$ac_exeext conftest.$ac_ext |
| 2635 | if test "$ac_cv_search_strerror" = no; then |
| 2636 | for ac_lib in cposix; do |
| 2637 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 2638 | cat >conftest.$ac_ext <<_ACEOF |
| 2639 | /* confdefs.h. */ |
| 2640 | _ACEOF |
| 2641 | cat confdefs.h >>conftest.$ac_ext |
| 2642 | cat >>conftest.$ac_ext <<_ACEOF |
| 2643 | /* end confdefs.h. */ |
| 2644 | |
| 2645 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2646 | #ifdef __cplusplus |
| 2647 | extern "C" |
| 2648 | #endif |
| 2649 | /* We use char because int might match the return type of a gcc2 |
| 2650 | builtin and then its argument prototype would still apply. */ |
| 2651 | char strerror (); |
| 2652 | int |
| 2653 | main () |
| 2654 | { |
| 2655 | strerror (); |
| 2656 | ; |
| 2657 | return 0; |
| 2658 | } |
| 2659 | _ACEOF |
| 2660 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2662 | (eval $ac_link) 2>conftest.er1 |
| 2663 | ac_status=$? |
| 2664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2665 | rm -f conftest.er1 |
| 2666 | cat conftest.err >&5 |
| 2667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2668 | (exit $ac_status); } && |
| 2669 | { ac_try='test -z "$ac_c_werror_flag" |
| 2670 | || test ! -s conftest.err' |
| 2671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2672 | (eval $ac_try) 2>&5 |
| 2673 | ac_status=$? |
| 2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2675 | (exit $ac_status); }; } && |
| 2676 | { ac_try='test -s conftest$ac_exeext' |
| 2677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2678 | (eval $ac_try) 2>&5 |
| 2679 | ac_status=$? |
| 2680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2681 | (exit $ac_status); }; }; then |
| 2682 | ac_cv_search_strerror="-l$ac_lib" |
| 2683 | break |
| 2684 | else |
| 2685 | echo "$as_me: failed program was:" >&5 |
| 2686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2687 | |
| 2688 | fi |
| 2689 | rm -f conftest.err conftest.$ac_objext \ |
| 2690 | conftest$ac_exeext conftest.$ac_ext |
| 2691 | done |
| 2692 | fi |
| 2693 | LIBS=$ac_func_search_save_LIBS |
| 2694 | fi |
| 2695 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 2696 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
| 2697 | if test "$ac_cv_search_strerror" != no; then |
| 2698 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
| 2699 | |
| 2700 | fi |
| 2701 | for ac_prog in gawk mawk nawk awk |
| 2702 | do |
| 2703 | # 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] | 2704 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2705 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2707 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2709 | else |
| 2710 | if test -n "$AWK"; then |
| 2711 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2712 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2714 | for as_dir in $PATH |
| 2715 | do |
| 2716 | IFS=$as_save_IFS |
| 2717 | test -z "$as_dir" && as_dir=. |
| 2718 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2719 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2720 | ac_cv_prog_AWK="$ac_prog" |
| 2721 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2722 | break 2 |
| 2723 | fi |
| 2724 | done |
| 2725 | done |
| 2726 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2727 | fi |
| 2728 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2729 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2730 | if test -n "$AWK"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2731 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2732 | echo "${ECHO_T}$AWK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2733 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2734 | echo "$as_me:$LINENO: result: no" >&5 |
| 2735 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2736 | fi |
| 2737 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2738 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2739 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2740 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2741 | # Extract the first word of "strip", so it can be a program name with args. |
| 2742 | set dummy strip; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2743 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2745 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2747 | else |
| 2748 | if test -n "$STRIP"; then |
| 2749 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2750 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2752 | for as_dir in $PATH |
| 2753 | do |
| 2754 | IFS=$as_save_IFS |
| 2755 | test -z "$as_dir" && as_dir=. |
| 2756 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2757 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2758 | ac_cv_prog_STRIP="strip" |
| 2759 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2760 | break 2 |
| 2761 | fi |
| 2762 | done |
| 2763 | done |
| 2764 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2765 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 2766 | fi |
| 2767 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2768 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2769 | if test -n "$STRIP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2770 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2771 | echo "${ECHO_T}$STRIP" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2772 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2773 | echo "$as_me:$LINENO: result: no" >&5 |
| 2774 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2775 | fi |
| 2776 | |
| 2777 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2778 | |
| 2779 | |
| 2780 | if test -z "$CFLAGS"; then |
| 2781 | CFLAGS="-O" |
| 2782 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 2783 | fi |
| 2784 | if test "$GCC" = yes; then |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 2785 | gccversion=`"$CC" -dumpversion` |
| 2786 | if test "x$gccversion" = "x"; then |
| 2787 | gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
| 2788 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 2789 | 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] | 2790 | 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] | 2791 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 2792 | else |
| 2793 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 2794 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 2795 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 2796 | fi |
| 2797 | fi |
| 2798 | fi |
| 2799 | |
| 2800 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2801 | { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS |
| 2802 | (cross compiling doesn't work)" >&5 |
| 2803 | echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS |
| 2804 | (cross compiling doesn't work)" >&2;} |
| 2805 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2806 | fi |
| 2807 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2808 | test "$GCC" = yes && CPP_MM=M; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2809 | |
| 2810 | if test -f ./toolcheck; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2811 | { echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 2812 | echo "$as_me: checking for buggy tools..." >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2813 | sh ./toolcheck 1>&6 |
| 2814 | fi |
| 2815 | |
| 2816 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 2817 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2818 | echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 2819 | echo $ECHO_N "checking for BeOS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2820 | case `uname` in |
| 2821 | 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] | 2822 | BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2823 | echo "${ECHO_T}yes" >&6;; |
| 2824 | *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2825 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2826 | esac |
| 2827 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2828 | echo "$as_me:$LINENO: checking for QNX" >&5 |
| 2829 | echo $ECHO_N "checking for QNX... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2830 | case `uname` in |
| 2831 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 2832 | test -z "$with_x" && with_x=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2833 | QNX=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2834 | echo "${ECHO_T}yes" >&6;; |
| 2835 | *) QNX=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2836 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2837 | esac |
| 2838 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2839 | echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 2840 | echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2841 | if test "`(uname) 2>/dev/null`" = Darwin; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2842 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2843 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2844 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2845 | echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 2846 | echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2847 | # Check whether --enable-darwin or --disable-darwin was given. |
| 2848 | if test "${enable_darwin+set}" = set; then |
| 2849 | enableval="$enable_darwin" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2850 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2851 | else |
| 2852 | enable_darwin="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2853 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2854 | if test "$enable_darwin" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2855 | echo "$as_me:$LINENO: result: no" >&5 |
| 2856 | echo "${ECHO_T}no" >&6 |
| 2857 | echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 2858 | echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2859 | if test -f os_macosx.c; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2860 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2861 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2862 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2863 | echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 2864 | echo "${ECHO_T}no, Darwin support disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2865 | enable_darwin=no |
| 2866 | fi |
| 2867 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2868 | echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 2869 | echo "${ECHO_T}yes, Darwin support excluded" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2870 | fi |
| 2871 | |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2872 | echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5 |
| 2873 | echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6 |
| 2874 | |
| 2875 | # Check whether --with-mac-arch or --without-mac-arch was given. |
| 2876 | if test "${with_mac_arch+set}" = set; then |
| 2877 | withval="$with_mac_arch" |
| 2878 | MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5 |
| 2879 | echo "${ECHO_T}$MACARCH" >&6 |
| 2880 | else |
Bram Moolenaar | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 2881 | MACARCH="current"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2882 | echo "${ECHO_T}defaulting to $MACARCH" >&6 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2883 | fi; |
| 2884 | |
| 2885 | if test "x$MACARCH" = "xboth"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2886 | echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5 |
| 2887 | echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6 |
| 2888 | save_cppflags="$CPPFLAGS" |
| 2889 | save_cflags="$CFLAGS" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2890 | save_ldflags="$LDFLAGS" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2891 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2892 | cat >conftest.$ac_ext <<_ACEOF |
| 2893 | /* confdefs.h. */ |
| 2894 | _ACEOF |
| 2895 | cat confdefs.h >>conftest.$ac_ext |
| 2896 | cat >>conftest.$ac_ext <<_ACEOF |
| 2897 | /* end confdefs.h. */ |
| 2898 | |
| 2899 | int |
| 2900 | main () |
| 2901 | { |
| 2902 | |
| 2903 | ; |
| 2904 | return 0; |
| 2905 | } |
| 2906 | _ACEOF |
| 2907 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2909 | (eval $ac_link) 2>conftest.er1 |
| 2910 | ac_status=$? |
| 2911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2912 | rm -f conftest.er1 |
| 2913 | cat conftest.err >&5 |
| 2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2915 | (exit $ac_status); } && |
| 2916 | { ac_try='test -z "$ac_c_werror_flag" |
| 2917 | || test ! -s conftest.err' |
| 2918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2919 | (eval $ac_try) 2>&5 |
| 2920 | ac_status=$? |
| 2921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2922 | (exit $ac_status); }; } && |
| 2923 | { ac_try='test -s conftest$ac_exeext' |
| 2924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2925 | (eval $ac_try) 2>&5 |
| 2926 | ac_status=$? |
| 2927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2928 | (exit $ac_status); }; }; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2929 | echo "$as_me:$LINENO: result: found" >&5 |
| 2930 | echo "${ECHO_T}found" >&6 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2931 | else |
| 2932 | echo "$as_me: failed program was:" >&5 |
| 2933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2934 | |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2935 | echo "$as_me:$LINENO: result: not found" >&5 |
| 2936 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 1f35bf9 | 2006-03-07 22:38:47 +0000 | [diff] [blame] | 2937 | CFLAGS="$save_cflags" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2938 | echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2939 | echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2940 | CPPFLAGS="$CPPFLAGS -arch i386" |
| 2941 | LDFLAGS="$save_ldflags -arch i386" |
| 2942 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2943 | /* confdefs.h. */ |
| 2944 | _ACEOF |
| 2945 | cat confdefs.h >>conftest.$ac_ext |
| 2946 | cat >>conftest.$ac_ext <<_ACEOF |
| 2947 | /* end confdefs.h. */ |
| 2948 | |
| 2949 | int |
| 2950 | main () |
| 2951 | { |
| 2952 | |
| 2953 | ; |
| 2954 | return 0; |
| 2955 | } |
| 2956 | _ACEOF |
| 2957 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2959 | (eval $ac_link) 2>conftest.er1 |
| 2960 | ac_status=$? |
| 2961 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2962 | rm -f conftest.er1 |
| 2963 | cat conftest.err >&5 |
| 2964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2965 | (exit $ac_status); } && |
| 2966 | { ac_try='test -z "$ac_c_werror_flag" |
| 2967 | || test ! -s conftest.err' |
| 2968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2969 | (eval $ac_try) 2>&5 |
| 2970 | ac_status=$? |
| 2971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2972 | (exit $ac_status); }; } && |
| 2973 | { ac_try='test -s conftest$ac_exeext' |
| 2974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2975 | (eval $ac_try) 2>&5 |
| 2976 | ac_status=$? |
| 2977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2978 | (exit $ac_status); }; }; then |
| 2979 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2980 | echo "${ECHO_T}yes" >&6; MACARCH="intel" |
| 2981 | else |
| 2982 | echo "$as_me: failed program was:" >&5 |
| 2983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2984 | |
| 2985 | echo "$as_me:$LINENO: result: no" >&5 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2986 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 2987 | MACARCH="ppc" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2988 | CPPFLAGS="$save_cppflags -arch ppc" |
| 2989 | LDFLAGS="$save_ldflags -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2990 | fi |
| 2991 | rm -f conftest.err conftest.$ac_objext \ |
| 2992 | conftest$ac_exeext conftest.$ac_ext |
| 2993 | fi |
| 2994 | rm -f conftest.err conftest.$ac_objext \ |
| 2995 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2996 | elif test "x$MACARCH" = "xintel"; then |
| 2997 | CPPFLAGS="$CPPFLAGS -arch intel" |
| 2998 | LDFLAGS="$LDFLAGS -arch intel" |
Bram Moolenaar | e2f98b9 | 2006-03-29 21:18:24 +0000 | [diff] [blame] | 2999 | elif test "x$MACARCH" = "xppc"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 3000 | CPPFLAGS="$CPPFLAGS -arch ppc" |
| 3001 | LDFLAGS="$LDFLAGS -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 3002 | fi |
| 3003 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3004 | if test "$enable_darwin" = "yes"; then |
| 3005 | MACOSX=yes |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 3006 | OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; |
| 3007 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 3008 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" |
| 3009 | if test "x$MACARCH" = "xboth"; then |
| 3010 | CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" |
| 3011 | else |
| 3012 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon" |
| 3013 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3014 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3015 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3016 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3017 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3019 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3020 | cat >conftest.$ac_ext <<_ACEOF |
| 3021 | /* confdefs.h. */ |
| 3022 | _ACEOF |
| 3023 | cat confdefs.h >>conftest.$ac_ext |
| 3024 | cat >>conftest.$ac_ext <<_ACEOF |
| 3025 | /* end confdefs.h. */ |
| 3026 | #include <stdlib.h> |
| 3027 | #include <stdarg.h> |
| 3028 | #include <string.h> |
| 3029 | #include <float.h> |
| 3030 | |
| 3031 | int |
| 3032 | main () |
| 3033 | { |
| 3034 | |
| 3035 | ; |
| 3036 | return 0; |
| 3037 | } |
| 3038 | _ACEOF |
| 3039 | rm -f conftest.$ac_objext |
| 3040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3041 | (eval $ac_compile) 2>conftest.er1 |
| 3042 | ac_status=$? |
| 3043 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3044 | rm -f conftest.er1 |
| 3045 | cat conftest.err >&5 |
| 3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3047 | (exit $ac_status); } && |
| 3048 | { ac_try='test -z "$ac_c_werror_flag" |
| 3049 | || test ! -s conftest.err' |
| 3050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3051 | (eval $ac_try) 2>&5 |
| 3052 | ac_status=$? |
| 3053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3054 | (exit $ac_status); }; } && |
| 3055 | { ac_try='test -s conftest.$ac_objext' |
| 3056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3057 | (eval $ac_try) 2>&5 |
| 3058 | ac_status=$? |
| 3059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3060 | (exit $ac_status); }; }; then |
| 3061 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3062 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3063 | echo "$as_me: failed program was:" >&5 |
| 3064 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3065 | |
| 3066 | ac_cv_header_stdc=no |
| 3067 | fi |
| 3068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3069 | |
| 3070 | if test $ac_cv_header_stdc = yes; then |
| 3071 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3072 | cat >conftest.$ac_ext <<_ACEOF |
| 3073 | /* confdefs.h. */ |
| 3074 | _ACEOF |
| 3075 | cat confdefs.h >>conftest.$ac_ext |
| 3076 | cat >>conftest.$ac_ext <<_ACEOF |
| 3077 | /* end confdefs.h. */ |
| 3078 | #include <string.h> |
| 3079 | |
| 3080 | _ACEOF |
| 3081 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3082 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3083 | : |
| 3084 | else |
| 3085 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3086 | fi |
| 3087 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3088 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3089 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3090 | |
| 3091 | if test $ac_cv_header_stdc = yes; then |
| 3092 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3093 | cat >conftest.$ac_ext <<_ACEOF |
| 3094 | /* confdefs.h. */ |
| 3095 | _ACEOF |
| 3096 | cat confdefs.h >>conftest.$ac_ext |
| 3097 | cat >>conftest.$ac_ext <<_ACEOF |
| 3098 | /* end confdefs.h. */ |
| 3099 | #include <stdlib.h> |
| 3100 | |
| 3101 | _ACEOF |
| 3102 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3103 | $EGREP "free" >/dev/null 2>&1; then |
| 3104 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3105 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3106 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3107 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3108 | rm -f conftest* |
| 3109 | |
| 3110 | fi |
| 3111 | |
| 3112 | if test $ac_cv_header_stdc = yes; then |
| 3113 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3114 | if test "$cross_compiling" = yes; then |
| 3115 | : |
| 3116 | else |
| 3117 | cat >conftest.$ac_ext <<_ACEOF |
| 3118 | /* confdefs.h. */ |
| 3119 | _ACEOF |
| 3120 | cat confdefs.h >>conftest.$ac_ext |
| 3121 | cat >>conftest.$ac_ext <<_ACEOF |
| 3122 | /* end confdefs.h. */ |
| 3123 | #include <ctype.h> |
| 3124 | #if ((' ' & 0x0FF) == 0x020) |
| 3125 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3126 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3127 | #else |
| 3128 | # define ISLOWER(c) \ |
| 3129 | (('a' <= (c) && (c) <= 'i') \ |
| 3130 | || ('j' <= (c) && (c) <= 'r') \ |
| 3131 | || ('s' <= (c) && (c) <= 'z')) |
| 3132 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3133 | #endif |
| 3134 | |
| 3135 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3136 | int |
| 3137 | main () |
| 3138 | { |
| 3139 | int i; |
| 3140 | for (i = 0; i < 256; i++) |
| 3141 | if (XOR (islower (i), ISLOWER (i)) |
| 3142 | || toupper (i) != TOUPPER (i)) |
| 3143 | exit(2); |
| 3144 | exit (0); |
| 3145 | } |
| 3146 | _ACEOF |
| 3147 | rm -f conftest$ac_exeext |
| 3148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3149 | (eval $ac_link) 2>&5 |
| 3150 | ac_status=$? |
| 3151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3152 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3154 | (eval $ac_try) 2>&5 |
| 3155 | ac_status=$? |
| 3156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3157 | (exit $ac_status); }; }; then |
| 3158 | : |
| 3159 | else |
| 3160 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3161 | echo "$as_me: failed program was:" >&5 |
| 3162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3163 | |
| 3164 | ( exit $ac_status ) |
| 3165 | ac_cv_header_stdc=no |
| 3166 | fi |
| 3167 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3168 | fi |
| 3169 | fi |
| 3170 | fi |
| 3171 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3172 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3173 | if test $ac_cv_header_stdc = yes; then |
| 3174 | |
| 3175 | cat >>confdefs.h <<\_ACEOF |
| 3176 | #define STDC_HEADERS 1 |
| 3177 | _ACEOF |
| 3178 | |
| 3179 | fi |
| 3180 | |
| 3181 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3182 | |
| 3183 | |
| 3184 | |
| 3185 | |
| 3186 | |
| 3187 | |
| 3188 | |
| 3189 | |
| 3190 | |
| 3191 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3192 | inttypes.h stdint.h unistd.h |
| 3193 | do |
| 3194 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3195 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3196 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3197 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3199 | else |
| 3200 | cat >conftest.$ac_ext <<_ACEOF |
| 3201 | /* confdefs.h. */ |
| 3202 | _ACEOF |
| 3203 | cat confdefs.h >>conftest.$ac_ext |
| 3204 | cat >>conftest.$ac_ext <<_ACEOF |
| 3205 | /* end confdefs.h. */ |
| 3206 | $ac_includes_default |
| 3207 | |
| 3208 | #include <$ac_header> |
| 3209 | _ACEOF |
| 3210 | rm -f conftest.$ac_objext |
| 3211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3212 | (eval $ac_compile) 2>conftest.er1 |
| 3213 | ac_status=$? |
| 3214 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3215 | rm -f conftest.er1 |
| 3216 | cat conftest.err >&5 |
| 3217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3218 | (exit $ac_status); } && |
| 3219 | { ac_try='test -z "$ac_c_werror_flag" |
| 3220 | || test ! -s conftest.err' |
| 3221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3222 | (eval $ac_try) 2>&5 |
| 3223 | ac_status=$? |
| 3224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3225 | (exit $ac_status); }; } && |
| 3226 | { ac_try='test -s conftest.$ac_objext' |
| 3227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3228 | (eval $ac_try) 2>&5 |
| 3229 | ac_status=$? |
| 3230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3231 | (exit $ac_status); }; }; then |
| 3232 | eval "$as_ac_Header=yes" |
| 3233 | else |
| 3234 | echo "$as_me: failed program was:" >&5 |
| 3235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3236 | |
| 3237 | eval "$as_ac_Header=no" |
| 3238 | fi |
| 3239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3240 | fi |
| 3241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3242 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3243 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3244 | cat >>confdefs.h <<_ACEOF |
| 3245 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3246 | _ACEOF |
| 3247 | |
| 3248 | fi |
| 3249 | |
| 3250 | done |
| 3251 | |
| 3252 | |
| 3253 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3254 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3255 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3256 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3258 | fi |
| 3259 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3260 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3261 | else |
| 3262 | # Is the header compilable? |
| 3263 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 3264 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 |
| 3265 | cat >conftest.$ac_ext <<_ACEOF |
| 3266 | /* confdefs.h. */ |
| 3267 | _ACEOF |
| 3268 | cat confdefs.h >>conftest.$ac_ext |
| 3269 | cat >>conftest.$ac_ext <<_ACEOF |
| 3270 | /* end confdefs.h. */ |
| 3271 | $ac_includes_default |
| 3272 | #include <Carbon/Carbon.h> |
| 3273 | _ACEOF |
| 3274 | rm -f conftest.$ac_objext |
| 3275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3276 | (eval $ac_compile) 2>conftest.er1 |
| 3277 | ac_status=$? |
| 3278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3279 | rm -f conftest.er1 |
| 3280 | cat conftest.err >&5 |
| 3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3282 | (exit $ac_status); } && |
| 3283 | { ac_try='test -z "$ac_c_werror_flag" |
| 3284 | || test ! -s conftest.err' |
| 3285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3286 | (eval $ac_try) 2>&5 |
| 3287 | ac_status=$? |
| 3288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3289 | (exit $ac_status); }; } && |
| 3290 | { ac_try='test -s conftest.$ac_objext' |
| 3291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3292 | (eval $ac_try) 2>&5 |
| 3293 | ac_status=$? |
| 3294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3295 | (exit $ac_status); }; }; then |
| 3296 | ac_header_compiler=yes |
| 3297 | else |
| 3298 | echo "$as_me: failed program was:" >&5 |
| 3299 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3300 | |
| 3301 | ac_header_compiler=no |
| 3302 | fi |
| 3303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3304 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3305 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3306 | |
| 3307 | # Is the header present? |
| 3308 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 3309 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 |
| 3310 | cat >conftest.$ac_ext <<_ACEOF |
| 3311 | /* confdefs.h. */ |
| 3312 | _ACEOF |
| 3313 | cat confdefs.h >>conftest.$ac_ext |
| 3314 | cat >>conftest.$ac_ext <<_ACEOF |
| 3315 | /* end confdefs.h. */ |
| 3316 | #include <Carbon/Carbon.h> |
| 3317 | _ACEOF |
| 3318 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3319 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3320 | ac_status=$? |
| 3321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3322 | rm -f conftest.er1 |
| 3323 | cat conftest.err >&5 |
| 3324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3325 | (exit $ac_status); } >/dev/null; then |
| 3326 | if test -s conftest.err; then |
| 3327 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3328 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3329 | else |
| 3330 | ac_cpp_err= |
| 3331 | fi |
| 3332 | else |
| 3333 | ac_cpp_err=yes |
| 3334 | fi |
| 3335 | if test -z "$ac_cpp_err"; then |
| 3336 | ac_header_preproc=yes |
| 3337 | else |
| 3338 | echo "$as_me: failed program was:" >&5 |
| 3339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3340 | |
| 3341 | ac_header_preproc=no |
| 3342 | fi |
| 3343 | rm -f conftest.err conftest.$ac_ext |
| 3344 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3345 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3346 | |
| 3347 | # So? What about this header? |
| 3348 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3349 | yes:no: ) |
| 3350 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3351 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3352 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 3353 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} |
| 3354 | ac_header_preproc=yes |
| 3355 | ;; |
| 3356 | no:yes:* ) |
| 3357 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 3358 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 3359 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 3360 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 3361 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 3362 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 3363 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3364 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3365 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 3366 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 3367 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 3368 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 3369 | ( |
| 3370 | cat <<\_ASBOX |
| 3371 | ## ------------------------------------------ ## |
| 3372 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3373 | ## ------------------------------------------ ## |
| 3374 | _ASBOX |
| 3375 | ) | |
| 3376 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3377 | ;; |
| 3378 | esac |
| 3379 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3380 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3381 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3383 | else |
| 3384 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 3385 | fi |
| 3386 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3387 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3388 | |
| 3389 | fi |
| 3390 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
| 3391 | CARBON=yes |
| 3392 | fi |
| 3393 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3394 | |
| 3395 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 3396 | 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] | 3397 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3398 | fi |
| 3399 | fi |
| 3400 | fi |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 3401 | |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 3402 | if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 3403 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` |
| 3404 | fi |
| 3405 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3406 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3407 | echo "$as_me:$LINENO: result: no" >&5 |
| 3408 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3409 | fi |
| 3410 | |
| 3411 | |
| 3412 | |
| 3413 | |
| 3414 | have_local_include='' |
| 3415 | have_local_lib='' |
| 3416 | if test "$GCC" = yes; then |
| 3417 | echo 'void f(){}' > conftest.c |
| 3418 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'` |
| 3419 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'` |
| 3420 | rm -f conftest.c conftest.o |
| 3421 | fi |
| 3422 | if test -z "$have_local_lib" -a -d /usr/local/lib; then |
| 3423 | tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'` |
| 3424 | if test "$tt" = "$LDFLAGS"; then |
| 3425 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 3426 | fi |
| 3427 | fi |
| 3428 | if test -z "$have_local_include" -a -d /usr/local/include; then |
| 3429 | tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'` |
| 3430 | if test "$tt" = "$CPPFLAGS"; then |
| 3431 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 3432 | fi |
| 3433 | fi |
| 3434 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3435 | echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
| 3436 | echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6 |
| 3437 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3438 | # Check whether --with-vim-name or --without-vim-name was given. |
| 3439 | if test "${with_vim_name+set}" = set; then |
| 3440 | withval="$with_vim_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3441 | VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
| 3442 | echo "${ECHO_T}$VIMNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3443 | else |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 3444 | VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3445 | echo "${ECHO_T}Defaulting to $VIMNAME" >&6 |
| 3446 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3447 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3448 | echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
| 3449 | echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3450 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3451 | # Check whether --with-ex-name or --without-ex-name was given. |
| 3452 | if test "${with_ex_name+set}" = set; then |
| 3453 | withval="$with_ex_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3454 | EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5 |
| 3455 | echo "${ECHO_T}$EXNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3456 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3457 | EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
| 3458 | echo "${ECHO_T}Defaulting to ex" >&6 |
| 3459 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3460 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3461 | echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
| 3462 | echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3463 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3464 | # Check whether --with-view-name or --without-view-name was given. |
| 3465 | if test "${with_view_name+set}" = set; then |
| 3466 | withval="$with_view_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3467 | VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
| 3468 | echo "${ECHO_T}$VIEWNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3469 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3470 | VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
| 3471 | echo "${ECHO_T}Defaulting to view" >&6 |
| 3472 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3473 | |
| 3474 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3475 | echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
| 3476 | echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3477 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3478 | # Check whether --with-global-runtime or --without-global-runtime was given. |
| 3479 | if test "${with_global_runtime+set}" = set; then |
| 3480 | withval="$with_global_runtime" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3481 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 3482 | echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3483 | #define RUNTIME_GLOBAL "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3484 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3485 | |
| 3486 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3487 | echo "$as_me:$LINENO: result: no" >&5 |
| 3488 | echo "${ECHO_T}no" >&6 |
| 3489 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3490 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3491 | echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
| 3492 | echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3493 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3494 | # Check whether --with-modified-by or --without-modified-by was given. |
| 3495 | if test "${with_modified_by+set}" = set; then |
| 3496 | withval="$with_modified_by" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3497 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 3498 | echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3499 | #define MODIFIED_BY "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3500 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3501 | |
| 3502 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3503 | echo "$as_me:$LINENO: result: no" >&5 |
| 3504 | echo "${ECHO_T}no" >&6 |
| 3505 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3506 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3507 | echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
| 3508 | echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6 |
| 3509 | cat >conftest.$ac_ext <<_ACEOF |
| 3510 | /* confdefs.h. */ |
| 3511 | _ACEOF |
| 3512 | cat confdefs.h >>conftest.$ac_ext |
| 3513 | cat >>conftest.$ac_ext <<_ACEOF |
| 3514 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3515 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3516 | int |
| 3517 | main () |
| 3518 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3519 | /* TryCompile function for CharSet. |
| 3520 | Treat any failure as ASCII for compatibility with existing art. |
| 3521 | Use compile-time rather than run-time tests for cross-compiler |
| 3522 | tolerance. */ |
| 3523 | #if '0'!=240 |
| 3524 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3525 | #endif |
| 3526 | ; |
| 3527 | return 0; |
| 3528 | } |
| 3529 | _ACEOF |
| 3530 | rm -f conftest.$ac_objext |
| 3531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3532 | (eval $ac_compile) 2>conftest.er1 |
| 3533 | ac_status=$? |
| 3534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3535 | rm -f conftest.er1 |
| 3536 | cat conftest.err >&5 |
| 3537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3538 | (exit $ac_status); } && |
| 3539 | { ac_try='test -z "$ac_c_werror_flag" |
| 3540 | || test ! -s conftest.err' |
| 3541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3542 | (eval $ac_try) 2>&5 |
| 3543 | ac_status=$? |
| 3544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3545 | (exit $ac_status); }; } && |
| 3546 | { ac_try='test -s conftest.$ac_objext' |
| 3547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3548 | (eval $ac_try) 2>&5 |
| 3549 | ac_status=$? |
| 3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3551 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3552 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3553 | cf_cv_ebcdic=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3554 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3555 | echo "$as_me: failed program was:" >&5 |
| 3556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3557 | |
| 3558 | # TryCompile action if false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3559 | cf_cv_ebcdic=no |
| 3560 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3562 | # end of TryCompile ]) |
| 3563 | # end of CacheVal CvEbcdic |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3564 | echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
| 3565 | echo "${ECHO_T}$cf_cv_ebcdic" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3566 | case "$cf_cv_ebcdic" in #(vi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3567 | yes) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3568 | #define EBCDIC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3569 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3570 | |
| 3571 | line_break='"\\n"' |
| 3572 | ;; |
| 3573 | *) line_break='"\\012"';; |
| 3574 | esac |
| 3575 | |
| 3576 | |
| 3577 | if test "$cf_cv_ebcdic" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3578 | echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
| 3579 | echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3580 | case `uname` in |
| 3581 | OS/390) OS390Unix="yes"; |
| 3582 | if test "$CC" = "cc"; then |
| 3583 | ccm="$_CC_CCMODE" |
| 3584 | ccn="CC" |
| 3585 | else |
| 3586 | if test "$CC" = "c89"; then |
| 3587 | ccm="$_CC_C89MODE" |
| 3588 | ccn="C89" |
| 3589 | else |
| 3590 | ccm=1 |
| 3591 | fi |
| 3592 | fi |
| 3593 | if test "$ccm" != "1"; then |
| 3594 | echo "" |
| 3595 | echo "------------------------------------------" |
| 3596 | echo " On OS/390 Unix, the environment variable" |
| 3597 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 3598 | echo " Do:" |
| 3599 | echo " export _CC_${ccn}MODE=1" |
| 3600 | echo " and then call configure again." |
| 3601 | echo "------------------------------------------" |
| 3602 | exit 1 |
| 3603 | fi |
| 3604 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3605 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3606 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3607 | ;; |
| 3608 | *) OS390Unix="no"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3609 | echo "$as_me:$LINENO: result: no" >&5 |
| 3610 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3611 | ;; |
| 3612 | esac |
| 3613 | fi |
| 3614 | |
Bram Moolenaar | 588ebeb | 2008-05-07 17:09:24 +0000 | [diff] [blame] | 3615 | echo "$as_me:$LINENO: checking --disable-selinux argument" >&5 |
| 3616 | echo $ECHO_N "checking --disable-selinux argument... $ECHO_C" >&6 |
| 3617 | # Check whether --enable-selinux or --disable-selinux was given. |
| 3618 | if test "${enable_selinux+set}" = set; then |
| 3619 | enableval="$enable_selinux" |
| 3620 | |
| 3621 | else |
| 3622 | enable_selinux="yes" |
| 3623 | fi; |
| 3624 | if test "$enable_selinux" = "yes"; then |
| 3625 | echo "$as_me:$LINENO: result: no" >&5 |
| 3626 | echo "${ECHO_T}no" >&6 |
| 3627 | echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5 |
| 3628 | echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6 |
| 3629 | if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then |
| 3630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3631 | else |
| 3632 | ac_check_lib_save_LIBS=$LIBS |
| 3633 | LIBS="-lselinux $LIBS" |
| 3634 | cat >conftest.$ac_ext <<_ACEOF |
| 3635 | /* confdefs.h. */ |
| 3636 | _ACEOF |
| 3637 | cat confdefs.h >>conftest.$ac_ext |
| 3638 | cat >>conftest.$ac_ext <<_ACEOF |
| 3639 | /* end confdefs.h. */ |
| 3640 | |
| 3641 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3642 | #ifdef __cplusplus |
| 3643 | extern "C" |
| 3644 | #endif |
| 3645 | /* We use char because int might match the return type of a gcc2 |
| 3646 | builtin and then its argument prototype would still apply. */ |
| 3647 | char is_selinux_enabled (); |
| 3648 | int |
| 3649 | main () |
| 3650 | { |
| 3651 | is_selinux_enabled (); |
| 3652 | ; |
| 3653 | return 0; |
| 3654 | } |
| 3655 | _ACEOF |
| 3656 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3658 | (eval $ac_link) 2>conftest.er1 |
| 3659 | ac_status=$? |
| 3660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3661 | rm -f conftest.er1 |
| 3662 | cat conftest.err >&5 |
| 3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3664 | (exit $ac_status); } && |
| 3665 | { ac_try='test -z "$ac_c_werror_flag" |
| 3666 | || test ! -s conftest.err' |
| 3667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3668 | (eval $ac_try) 2>&5 |
| 3669 | ac_status=$? |
| 3670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3671 | (exit $ac_status); }; } && |
| 3672 | { ac_try='test -s conftest$ac_exeext' |
| 3673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3674 | (eval $ac_try) 2>&5 |
| 3675 | ac_status=$? |
| 3676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3677 | (exit $ac_status); }; }; then |
| 3678 | ac_cv_lib_selinux_is_selinux_enabled=yes |
| 3679 | else |
| 3680 | echo "$as_me: failed program was:" >&5 |
| 3681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3682 | |
| 3683 | ac_cv_lib_selinux_is_selinux_enabled=no |
| 3684 | fi |
| 3685 | rm -f conftest.err conftest.$ac_objext \ |
| 3686 | conftest$ac_exeext conftest.$ac_ext |
| 3687 | LIBS=$ac_check_lib_save_LIBS |
| 3688 | fi |
| 3689 | echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 |
| 3690 | echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6 |
| 3691 | if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then |
| 3692 | LIBS="$LIBS -lselinux" |
| 3693 | cat >>confdefs.h <<\_ACEOF |
| 3694 | #define HAVE_SELINUX 1 |
| 3695 | _ACEOF |
| 3696 | |
| 3697 | fi |
| 3698 | |
| 3699 | else |
| 3700 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3701 | echo "${ECHO_T}yes" >&6 |
| 3702 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3703 | |
| 3704 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3705 | echo "$as_me:$LINENO: checking --with-features argument" >&5 |
| 3706 | echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6 |
| 3707 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3708 | # Check whether --with-features or --without-features was given. |
| 3709 | if test "${with_features+set}" = set; then |
| 3710 | withval="$with_features" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3711 | features="$withval"; echo "$as_me:$LINENO: result: $features" >&5 |
| 3712 | echo "${ECHO_T}$features" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3713 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3714 | features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
| 3715 | echo "${ECHO_T}Defaulting to normal" >&6 |
| 3716 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3717 | |
| 3718 | dovimdiff="" |
| 3719 | dogvimdiff="" |
| 3720 | case "$features" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3721 | tiny) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3722 | #define FEAT_TINY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3723 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3724 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3725 | small) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3726 | #define FEAT_SMALL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3727 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3728 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3729 | normal) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3730 | #define FEAT_NORMAL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3731 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3732 | dovimdiff="installvimdiff"; |
| 3733 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3734 | big) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3735 | #define FEAT_BIG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3736 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3737 | dovimdiff="installvimdiff"; |
| 3738 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3739 | huge) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3740 | #define FEAT_HUGE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3741 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3742 | dovimdiff="installvimdiff"; |
| 3743 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3744 | *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
| 3745 | echo "${ECHO_T}Sorry, $features is not supported" >&6 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3746 | esac |
| 3747 | |
| 3748 | |
| 3749 | |
| 3750 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3751 | echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
| 3752 | echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6 |
| 3753 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3754 | # Check whether --with-compiledby or --without-compiledby was given. |
| 3755 | if test "${with_compiledby+set}" = set; then |
| 3756 | withval="$with_compiledby" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3757 | compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5 |
| 3758 | echo "${ECHO_T}$withval" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3759 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3760 | compiledby=""; echo "$as_me:$LINENO: result: no" >&5 |
| 3761 | echo "${ECHO_T}no" >&6 |
| 3762 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3763 | |
| 3764 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3765 | echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
| 3766 | echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3767 | # Check whether --enable-xsmp or --disable-xsmp was given. |
| 3768 | if test "${enable_xsmp+set}" = set; then |
| 3769 | enableval="$enable_xsmp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3770 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3771 | else |
| 3772 | enable_xsmp="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3773 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3774 | |
| 3775 | if test "$enable_xsmp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3776 | echo "$as_me:$LINENO: result: no" >&5 |
| 3777 | echo "${ECHO_T}no" >&6 |
| 3778 | echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
| 3779 | echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3780 | # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given. |
| 3781 | if test "${enable_xsmp_interact+set}" = set; then |
| 3782 | enableval="$enable_xsmp_interact" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3783 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3784 | else |
| 3785 | enable_xsmp_interact="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3786 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3787 | if test "$enable_xsmp_interact" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3788 | echo "$as_me:$LINENO: result: no" >&5 |
| 3789 | echo "${ECHO_T}no" >&6 |
| 3790 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3791 | #define USE_XSMP_INTERACT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3792 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3793 | |
| 3794 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3795 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3796 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3797 | fi |
| 3798 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3799 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3800 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3801 | fi |
| 3802 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3803 | echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
| 3804 | echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3805 | # Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given. |
| 3806 | if test "${enable_mzschemeinterp+set}" = set; then |
| 3807 | enableval="$enable_mzschemeinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3808 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3809 | else |
| 3810 | enable_mzschemeinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3811 | fi; |
| 3812 | echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
| 3813 | echo "${ECHO_T}$enable_mzschemeinterp" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3814 | |
| 3815 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3816 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3817 | |
| 3818 | echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
| 3819 | echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6 |
| 3820 | |
| 3821 | # Check whether --with-plthome or --without-plthome was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3822 | if test "${with_plthome+set}" = set; then |
| 3823 | withval="$with_plthome" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3824 | with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5 |
| 3825 | echo "${ECHO_T}$with_plthome" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3826 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3827 | with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3828 | echo "${ECHO_T}\"no\"" >&6 |
| 3829 | fi; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3830 | |
| 3831 | if test "X$with_plthome" != "X"; then |
| 3832 | vi_cv_path_mzscheme_pfx="$with_plthome" |
| 3833 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3834 | echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
| 3835 | echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3836 | if test "X$PLTHOME" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3837 | echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
| 3838 | echo "${ECHO_T}\"$PLTHOME\"" >&6 |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3839 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3840 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3841 | echo "$as_me:$LINENO: result: \"not set\"" >&5 |
| 3842 | echo "${ECHO_T}\"not set\"" >&6 |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3843 | # Extract the first word of "mzscheme", so it can be a program name with args. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3844 | set dummy mzscheme; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3845 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3847 | if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
| 3848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3849 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3850 | case $vi_cv_path_mzscheme in |
| 3851 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3852 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 3853 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3854 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3856 | for as_dir in $PATH |
| 3857 | do |
| 3858 | IFS=$as_save_IFS |
| 3859 | test -z "$as_dir" && as_dir=. |
| 3860 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3861 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3862 | ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" |
| 3863 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3864 | break 2 |
| 3865 | fi |
| 3866 | done |
| 3867 | done |
| 3868 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3869 | ;; |
| 3870 | esac |
| 3871 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3872 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
| 3873 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3874 | if test -n "$vi_cv_path_mzscheme"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3875 | echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
| 3876 | echo "${ECHO_T}$vi_cv_path_mzscheme" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3877 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3878 | echo "$as_me:$LINENO: result: no" >&5 |
| 3879 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3880 | fi |
| 3881 | |
| 3882 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3883 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3884 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 3885 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 3886 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 3887 | fi |
| 3888 | fi |
| 3889 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3890 | if test "X$vi_cv_path_mzscheme" != "X"; then |
| 3891 | echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3892 | echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6 |
| 3893 | if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
| 3894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3895 | else |
| 3896 | vi_cv_path_mzscheme_pfx=` |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3897 | ${vi_cv_path_mzscheme} -evm \ |
| 3898 | "(display (simplify-path \ |
| 3899 | (build-path (call-with-values \ |
| 3900 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
| 3901 | (lambda (base name must-be-dir?) base)) (quote up))))"` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3902 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3903 | echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 3904 | echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3905 | vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'` |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3906 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3907 | fi |
| 3908 | fi |
| 3909 | |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 3910 | SCHEME_INC= |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3911 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3912 | echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 3913 | 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] | 3914 | if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3915 | echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 3916 | echo "${ECHO_T}\"yes\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3917 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3918 | echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3919 | echo "${ECHO_T}\"no\"" >&6 |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 3920 | echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5 |
| 3921 | echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... $ECHO_C" >&6 |
| 3922 | if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then |
| 3923 | echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 3924 | echo "${ECHO_T}\"yes\"" >&6 |
| 3925 | SCHEME_INC=/plt |
| 3926 | else |
| 3927 | echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3928 | echo "${ECHO_T}\"no\"" >&6 |
| 3929 | vi_cv_path_mzscheme_pfx= |
| 3930 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3931 | fi |
| 3932 | fi |
| 3933 | |
| 3934 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | f15f943 | 2007-06-28 11:07:21 +0000 | [diff] [blame] | 3935 | if test "x$MACOSX" = "xyes"; then |
| 3936 | MZSCHEME_LIBS="-framework PLT_MzScheme" |
| 3937 | elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 3938 | MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a ${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3939 | else |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 3940 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 3941 | if test "$GCC" = yes; then |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3942 | 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] | 3943 | elif test "`(uname) 2>/dev/null`" = SunOS && |
| 3944 | uname -r | grep '^5' >/dev/null; then |
| 3945 | MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 3946 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3947 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 3948 | if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then |
| 3949 | SCHEME_COLLECTS=lib/plt/ |
| 3950 | fi |
| 3951 | MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \ |
| 3952 | -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3953 | MZSCHEME_SRC="if_mzsch.c" |
| 3954 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 3955 | MZSCHEME_PRO="if_mzsch.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3956 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3957 | #define FEAT_MZSCHEME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3958 | _ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3959 | |
| 3960 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3961 | |
| 3962 | |
| 3963 | |
| 3964 | |
| 3965 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3966 | fi |
| 3967 | |
| 3968 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3969 | echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
| 3970 | echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3971 | # Check whether --enable-perlinterp or --disable-perlinterp was given. |
| 3972 | if test "${enable_perlinterp+set}" = set; then |
| 3973 | enableval="$enable_perlinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3974 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3975 | else |
| 3976 | enable_perlinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3977 | fi; |
| 3978 | echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
| 3979 | echo "${ECHO_T}$enable_perlinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3980 | if test "$enable_perlinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3981 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3982 | # Extract the first word of "perl", so it can be a program name with args. |
| 3983 | set dummy perl; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3984 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3985 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3986 | if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
| 3987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3988 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3989 | case $vi_cv_path_perl in |
| 3990 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3991 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 3992 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3993 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3995 | for as_dir in $PATH |
| 3996 | do |
| 3997 | IFS=$as_save_IFS |
| 3998 | test -z "$as_dir" && as_dir=. |
| 3999 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4000 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4001 | ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" |
| 4002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4003 | break 2 |
| 4004 | fi |
| 4005 | done |
| 4006 | done |
| 4007 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4008 | ;; |
| 4009 | esac |
| 4010 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4011 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
| 4012 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4013 | if test -n "$vi_cv_path_perl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4014 | echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
| 4015 | echo "${ECHO_T}$vi_cv_path_perl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4016 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4017 | echo "$as_me:$LINENO: result: no" >&5 |
| 4018 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4019 | fi |
| 4020 | |
| 4021 | if test "X$vi_cv_path_perl" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4022 | echo "$as_me:$LINENO: checking Perl version" >&5 |
| 4023 | echo $ECHO_N "checking Perl version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4024 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 4025 | eval `$vi_cv_path_perl -V:usethreads` |
| 4026 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 4027 | badthreads=no |
| 4028 | else |
| 4029 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 4030 | eval `$vi_cv_path_perl -V:use5005threads` |
| 4031 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 4032 | badthreads=no |
| 4033 | else |
| 4034 | badthreads=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4035 | echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 4036 | 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] | 4037 | fi |
| 4038 | else |
| 4039 | badthreads=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4040 | echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 4041 | echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4042 | fi |
| 4043 | fi |
| 4044 | if test $badthreads = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4045 | echo "$as_me:$LINENO: result: OK" >&5 |
| 4046 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4047 | eval `$vi_cv_path_perl -V:shrpenv` |
| 4048 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 4049 | shrpenv="" |
| 4050 | fi |
| 4051 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4052 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4053 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 4054 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 4055 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 4056 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 4057 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 4058 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 4059 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 4060 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4061 | echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
| 4062 | 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] | 4063 | cflags_save=$CFLAGS |
| 4064 | libs_save=$LIBS |
| 4065 | ldflags_save=$LDFLAGS |
| 4066 | CFLAGS="$CFLAGS $perlcppflags" |
| 4067 | LIBS="$LIBS $perllibs" |
| 4068 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4069 | cat >conftest.$ac_ext <<_ACEOF |
| 4070 | /* confdefs.h. */ |
| 4071 | _ACEOF |
| 4072 | cat confdefs.h >>conftest.$ac_ext |
| 4073 | cat >>conftest.$ac_ext <<_ACEOF |
| 4074 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4075 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4076 | int |
| 4077 | main () |
| 4078 | { |
| 4079 | |
| 4080 | ; |
| 4081 | return 0; |
| 4082 | } |
| 4083 | _ACEOF |
| 4084 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4086 | (eval $ac_link) 2>conftest.er1 |
| 4087 | ac_status=$? |
| 4088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4089 | rm -f conftest.er1 |
| 4090 | cat conftest.err >&5 |
| 4091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4092 | (exit $ac_status); } && |
| 4093 | { ac_try='test -z "$ac_c_werror_flag" |
| 4094 | || test ! -s conftest.err' |
| 4095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4096 | (eval $ac_try) 2>&5 |
| 4097 | ac_status=$? |
| 4098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4099 | (exit $ac_status); }; } && |
| 4100 | { ac_try='test -s conftest$ac_exeext' |
| 4101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4102 | (eval $ac_try) 2>&5 |
| 4103 | ac_status=$? |
| 4104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4105 | (exit $ac_status); }; }; then |
| 4106 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4107 | echo "${ECHO_T}yes" >&6; perl_ok=yes |
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: failed program was:" >&5 |
| 4110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4111 | |
| 4112 | echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 |
| 4113 | echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4114 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4115 | rm -f conftest.err conftest.$ac_objext \ |
| 4116 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4117 | CFLAGS=$cflags_save |
| 4118 | LIBS=$libs_save |
| 4119 | LDFLAGS=$ldflags_save |
| 4120 | if test $perl_ok = yes; then |
| 4121 | if test "X$perlcppflags" != "X"; then |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4122 | PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4123 | fi |
| 4124 | if test "X$perlldflags" != "X"; then |
| 4125 | LDFLAGS="$perlldflags $LDFLAGS" |
| 4126 | fi |
| 4127 | PERL_LIBS=$perllibs |
| 4128 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 4129 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 4130 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4131 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4132 | #define FEAT_PERL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4133 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4134 | |
| 4135 | fi |
| 4136 | fi |
| 4137 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4138 | echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 4139 | 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] | 4140 | fi |
| 4141 | fi |
| 4142 | |
| 4143 | if test "x$MACOSX" = "xyes"; then |
| 4144 | dir=/System/Library/Perl |
| 4145 | darwindir=$dir/darwin |
| 4146 | if test -d $darwindir; then |
| 4147 | PERL=/usr/bin/perl |
| 4148 | else |
| 4149 | dir=/System/Library/Perl/5.8.1 |
| 4150 | darwindir=$dir/darwin-thread-multi-2level |
| 4151 | if test -d $darwindir; then |
| 4152 | PERL=/usr/bin/perl |
| 4153 | fi |
| 4154 | fi |
| 4155 | if test -n "$PERL"; then |
| 4156 | PERL_DIR="$dir" |
| 4157 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 4158 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 4159 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 4160 | fi |
| 4161 | fi |
| 4162 | fi |
| 4163 | |
| 4164 | |
| 4165 | |
| 4166 | |
| 4167 | |
| 4168 | |
| 4169 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4170 | echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
| 4171 | echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4172 | # Check whether --enable-pythoninterp or --disable-pythoninterp was given. |
| 4173 | if test "${enable_pythoninterp+set}" = set; then |
| 4174 | enableval="$enable_pythoninterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4175 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4176 | else |
| 4177 | enable_pythoninterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4178 | fi; |
| 4179 | echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
| 4180 | echo "${ECHO_T}$enable_pythoninterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4181 | if test "$enable_pythoninterp" = "yes"; then |
| 4182 | # Extract the first word of "python", so it can be a program name with args. |
| 4183 | set dummy python; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4184 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4185 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4186 | if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
| 4187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4188 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4189 | case $vi_cv_path_python in |
| 4190 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4191 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 4192 | ;; |
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 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4195 | for as_dir in $PATH |
| 4196 | do |
| 4197 | IFS=$as_save_IFS |
| 4198 | test -z "$as_dir" && as_dir=. |
| 4199 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4200 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4201 | ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" |
| 4202 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4203 | break 2 |
| 4204 | fi |
| 4205 | done |
| 4206 | done |
| 4207 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4208 | ;; |
| 4209 | esac |
| 4210 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4211 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
| 4212 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4213 | if test -n "$vi_cv_path_python"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4214 | echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
| 4215 | echo "${ECHO_T}$vi_cv_path_python" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4216 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4217 | echo "$as_me:$LINENO: result: no" >&5 |
| 4218 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4219 | fi |
| 4220 | |
| 4221 | if test "X$vi_cv_path_python" != "X"; then |
| 4222 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4223 | echo "$as_me:$LINENO: checking Python version" >&5 |
| 4224 | echo $ECHO_N "checking Python version... $ECHO_C" >&6 |
| 4225 | if test "${vi_cv_var_python_version+set}" = set; then |
| 4226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4227 | else |
| 4228 | vi_cv_var_python_version=` |
| 4229 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4230 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4231 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4232 | echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 |
| 4233 | echo "${ECHO_T}$vi_cv_var_python_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4234 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4235 | echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
| 4236 | 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] | 4237 | if ${vi_cv_path_python} -c \ |
| 4238 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 4239 | then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4240 | echo "$as_me:$LINENO: result: yep" >&5 |
| 4241 | echo "${ECHO_T}yep" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4242 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4243 | echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
| 4244 | echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6 |
| 4245 | if test "${vi_cv_path_python_pfx+set}" = set; then |
| 4246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4247 | else |
| 4248 | vi_cv_path_python_pfx=` |
| 4249 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4250 | "import sys; print sys.prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4251 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4252 | echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
| 4253 | echo "${ECHO_T}$vi_cv_path_python_pfx" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4254 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4255 | echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
| 4256 | echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6 |
| 4257 | if test "${vi_cv_path_python_epfx+set}" = set; then |
| 4258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4259 | else |
| 4260 | vi_cv_path_python_epfx=` |
| 4261 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4262 | "import sys; print sys.exec_prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4263 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4264 | echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
| 4265 | echo "${ECHO_T}$vi_cv_path_python_epfx" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4266 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4267 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4268 | if test "${vi_cv_path_pythonpath+set}" = set; then |
| 4269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4270 | else |
| 4271 | vi_cv_path_pythonpath=` |
| 4272 | unset PYTHONPATH; |
| 4273 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4274 | "import sys, string; print string.join(sys.path,':')"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4275 | fi |
| 4276 | |
| 4277 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4278 | |
| 4279 | |
| 4280 | # 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] | 4281 | if test "${with_python_config_dir+set}" = set; then |
| 4282 | withval="$with_python_config_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4283 | vi_cv_path_python_conf="${withval}" |
| 4284 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4285 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4286 | echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
| 4287 | echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6 |
| 4288 | if test "${vi_cv_path_python_conf+set}" = set; then |
| 4289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4290 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4291 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4292 | vi_cv_path_python_conf= |
| 4293 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 4294 | for subdir in lib share; do |
| 4295 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 4296 | if test -d "$d" && test -f "$d/config.c"; then |
| 4297 | vi_cv_path_python_conf="$d" |
| 4298 | fi |
| 4299 | done |
| 4300 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4301 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4302 | fi |
| 4303 | echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
| 4304 | echo "${ECHO_T}$vi_cv_path_python_conf" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4305 | |
| 4306 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 4307 | |
| 4308 | if test "X$PYTHON_CONFDIR" = "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4309 | echo "$as_me:$LINENO: result: can't find it!" >&5 |
| 4310 | echo "${ECHO_T}can't find it!" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4311 | else |
| 4312 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4313 | if test "${vi_cv_path_python_plibs+set}" = set; then |
| 4314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4315 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4316 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4317 | tmp_mkf="/tmp/Makefile-conf$$" |
| 4318 | cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} |
| 4319 | __: |
| 4320 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 4321 | @echo "python_LIBS='$(LIBS)'" |
| 4322 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 4323 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 4324 | eof |
| 4325 | eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" |
| 4326 | rm -f ${tmp_mkf} |
| 4327 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 4328 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 4329 | vi_cv_path_python_plibs="-framework Python" |
| 4330 | else |
| 4331 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 4332 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 4333 | else |
| 4334 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 4335 | fi |
| 4336 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 4337 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 4338 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4339 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4340 | fi |
| 4341 | |
| 4342 | |
| 4343 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 4344 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 4345 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 4346 | else |
| 4347 | 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}" |
| 4348 | fi |
| 4349 | PYTHON_SRC="if_python.c" |
| 4350 | if test "x$MACOSX" = "xyes"; then |
| 4351 | PYTHON_OBJ="objects/if_python.o" |
| 4352 | else |
| 4353 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 4354 | fi |
| 4355 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 4356 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 4357 | fi |
| 4358 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 4359 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4360 | echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
| 4361 | echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4362 | threadsafe_flag= |
| 4363 | thread_lib= |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 4364 | if test "`(uname) 2>/dev/null`" != Darwin; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4365 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 4366 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 4367 | threadsafe_flag="-D_THREAD_SAFE" |
| 4368 | thread_lib="-pthread" |
| 4369 | fi |
| 4370 | fi |
| 4371 | libs_save_old=$LIBS |
| 4372 | if test -n "$threadsafe_flag"; then |
| 4373 | cflags_save=$CFLAGS |
| 4374 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 4375 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4376 | cat >conftest.$ac_ext <<_ACEOF |
| 4377 | /* confdefs.h. */ |
| 4378 | _ACEOF |
| 4379 | cat confdefs.h >>conftest.$ac_ext |
| 4380 | cat >>conftest.$ac_ext <<_ACEOF |
| 4381 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4382 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4383 | int |
| 4384 | main () |
| 4385 | { |
| 4386 | |
| 4387 | ; |
| 4388 | return 0; |
| 4389 | } |
| 4390 | _ACEOF |
| 4391 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4393 | (eval $ac_link) 2>conftest.er1 |
| 4394 | ac_status=$? |
| 4395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4396 | rm -f conftest.er1 |
| 4397 | cat conftest.err >&5 |
| 4398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4399 | (exit $ac_status); } && |
| 4400 | { ac_try='test -z "$ac_c_werror_flag" |
| 4401 | || test ! -s conftest.err' |
| 4402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4403 | (eval $ac_try) 2>&5 |
| 4404 | ac_status=$? |
| 4405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4406 | (exit $ac_status); }; } && |
| 4407 | { ac_try='test -s conftest$ac_exeext' |
| 4408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4409 | (eval $ac_try) 2>&5 |
| 4410 | ac_status=$? |
| 4411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4412 | (exit $ac_status); }; }; then |
| 4413 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4414 | echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4415 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4416 | echo "$as_me: failed program was:" >&5 |
| 4417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4418 | |
| 4419 | echo "$as_me:$LINENO: result: no" >&5 |
| 4420 | echo "${ECHO_T}no" >&6; LIBS=$libs_save_old |
| 4421 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4422 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4423 | rm -f conftest.err conftest.$ac_objext \ |
| 4424 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4425 | CFLAGS=$cflags_save |
| 4426 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4427 | echo "$as_me:$LINENO: result: no" >&5 |
| 4428 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4429 | fi |
| 4430 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4431 | echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
| 4432 | 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] | 4433 | cflags_save=$CFLAGS |
| 4434 | libs_save=$LIBS |
| 4435 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 4436 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4437 | cat >conftest.$ac_ext <<_ACEOF |
| 4438 | /* confdefs.h. */ |
| 4439 | _ACEOF |
| 4440 | cat confdefs.h >>conftest.$ac_ext |
| 4441 | cat >>conftest.$ac_ext <<_ACEOF |
| 4442 | /* end confdefs.h. */ |
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 | int |
| 4445 | main () |
| 4446 | { |
| 4447 | |
| 4448 | ; |
| 4449 | return 0; |
| 4450 | } |
| 4451 | _ACEOF |
| 4452 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4454 | (eval $ac_link) 2>conftest.er1 |
| 4455 | ac_status=$? |
| 4456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4457 | rm -f conftest.er1 |
| 4458 | cat conftest.err >&5 |
| 4459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4460 | (exit $ac_status); } && |
| 4461 | { ac_try='test -z "$ac_c_werror_flag" |
| 4462 | || test ! -s conftest.err' |
| 4463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4464 | (eval $ac_try) 2>&5 |
| 4465 | ac_status=$? |
| 4466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4467 | (exit $ac_status); }; } && |
| 4468 | { ac_try='test -s conftest$ac_exeext' |
| 4469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4470 | (eval $ac_try) 2>&5 |
| 4471 | ac_status=$? |
| 4472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4473 | (exit $ac_status); }; }; then |
| 4474 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4475 | echo "${ECHO_T}yes" >&6; python_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4476 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4477 | echo "$as_me: failed program was:" >&5 |
| 4478 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4479 | |
| 4480 | echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 |
| 4481 | echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4482 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4483 | rm -f conftest.err conftest.$ac_objext \ |
| 4484 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4485 | CFLAGS=$cflags_save |
| 4486 | LIBS=$libs_save |
| 4487 | if test $python_ok = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4488 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4489 | #define FEAT_PYTHON 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4490 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4491 | |
| 4492 | else |
| 4493 | LIBS=$libs_save_old |
| 4494 | PYTHON_SRC= |
| 4495 | PYTHON_OBJ= |
| 4496 | PYTHON_LIBS= |
| 4497 | PYTHON_CFLAGS= |
| 4498 | fi |
| 4499 | |
| 4500 | fi |
| 4501 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4502 | echo "$as_me:$LINENO: result: too old" >&5 |
| 4503 | echo "${ECHO_T}too old" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4504 | fi |
| 4505 | fi |
| 4506 | fi |
| 4507 | |
| 4508 | |
| 4509 | |
| 4510 | |
| 4511 | |
| 4512 | |
| 4513 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4514 | echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
| 4515 | echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4516 | # Check whether --enable-tclinterp or --disable-tclinterp was given. |
| 4517 | if test "${enable_tclinterp+set}" = set; then |
| 4518 | enableval="$enable_tclinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4519 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4520 | else |
| 4521 | enable_tclinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4522 | fi; |
| 4523 | echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
| 4524 | echo "${ECHO_T}$enable_tclinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4525 | |
| 4526 | if test "$enable_tclinterp" = "yes"; then |
| 4527 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4528 | echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
| 4529 | echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6 |
| 4530 | |
| 4531 | # Check whether --with-tclsh or --without-tclsh was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4532 | if test "${with_tclsh+set}" = set; then |
| 4533 | withval="$with_tclsh" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4534 | tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
| 4535 | echo "${ECHO_T}$tclsh_name" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4536 | else |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 4537 | tclsh_name="tclsh8.5"; echo "$as_me:$LINENO: result: no" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4538 | echo "${ECHO_T}no" >&6 |
| 4539 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4540 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4541 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4544 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4546 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4547 | case $vi_cv_path_tcl in |
| 4548 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4549 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4550 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4551 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4553 | for as_dir in $PATH |
| 4554 | do |
| 4555 | IFS=$as_save_IFS |
| 4556 | test -z "$as_dir" && as_dir=. |
| 4557 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4558 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4559 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4561 | break 2 |
| 4562 | fi |
| 4563 | done |
| 4564 | done |
| 4565 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4566 | ;; |
| 4567 | esac |
| 4568 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4569 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4570 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4571 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4572 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4573 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4574 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4575 | echo "$as_me:$LINENO: result: no" >&5 |
| 4576 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4577 | fi |
| 4578 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4579 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4580 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 4581 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then |
| 4582 | tclsh_name="tclsh8.4" |
| 4583 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4584 | set dummy $tclsh_name; ac_word=$2 |
| 4585 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4586 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4587 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4589 | else |
| 4590 | case $vi_cv_path_tcl in |
| 4591 | [\\/]* | ?:[\\/]*) |
| 4592 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4593 | ;; |
| 4594 | *) |
| 4595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4596 | for as_dir in $PATH |
| 4597 | do |
| 4598 | IFS=$as_save_IFS |
| 4599 | test -z "$as_dir" && as_dir=. |
| 4600 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4601 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4602 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4603 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4604 | break 2 |
| 4605 | fi |
| 4606 | done |
| 4607 | done |
| 4608 | |
| 4609 | ;; |
| 4610 | esac |
| 4611 | fi |
| 4612 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4613 | |
| 4614 | if test -n "$vi_cv_path_tcl"; then |
| 4615 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4616 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
| 4617 | else |
| 4618 | echo "$as_me:$LINENO: result: no" >&5 |
| 4619 | echo "${ECHO_T}no" >&6 |
| 4620 | fi |
| 4621 | |
| 4622 | fi |
| 4623 | 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] | 4624 | tclsh_name="tclsh8.2" |
| 4625 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4626 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4629 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4631 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4632 | case $vi_cv_path_tcl in |
| 4633 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4634 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4635 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4636 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4637 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4638 | for as_dir in $PATH |
| 4639 | do |
| 4640 | IFS=$as_save_IFS |
| 4641 | test -z "$as_dir" && as_dir=. |
| 4642 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4643 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4644 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4645 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4646 | break 2 |
| 4647 | fi |
| 4648 | done |
| 4649 | done |
| 4650 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4651 | ;; |
| 4652 | esac |
| 4653 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4654 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4655 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4656 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4657 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4658 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4659 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4660 | echo "$as_me:$LINENO: result: no" >&5 |
| 4661 | echo "${ECHO_T}no" >&6 |
| 4662 | fi |
| 4663 | |
| 4664 | fi |
| 4665 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 4666 | tclsh_name="tclsh8.0" |
| 4667 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4668 | set dummy $tclsh_name; ac_word=$2 |
| 4669 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4671 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4673 | else |
| 4674 | case $vi_cv_path_tcl in |
| 4675 | [\\/]* | ?:[\\/]*) |
| 4676 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4677 | ;; |
| 4678 | *) |
| 4679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4680 | for as_dir in $PATH |
| 4681 | do |
| 4682 | IFS=$as_save_IFS |
| 4683 | test -z "$as_dir" && as_dir=. |
| 4684 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4685 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4686 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4688 | break 2 |
| 4689 | fi |
| 4690 | done |
| 4691 | done |
| 4692 | |
| 4693 | ;; |
| 4694 | esac |
| 4695 | fi |
| 4696 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4697 | |
| 4698 | if test -n "$vi_cv_path_tcl"; then |
| 4699 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4700 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
| 4701 | else |
| 4702 | echo "$as_me:$LINENO: result: no" >&5 |
| 4703 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4704 | fi |
| 4705 | |
| 4706 | fi |
| 4707 | if test "X$vi_cv_path_tcl" = "X"; then |
| 4708 | tclsh_name="tclsh" |
| 4709 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4710 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4713 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4715 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4716 | case $vi_cv_path_tcl in |
| 4717 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4718 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4719 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4720 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4722 | for as_dir in $PATH |
| 4723 | do |
| 4724 | IFS=$as_save_IFS |
| 4725 | test -z "$as_dir" && as_dir=. |
| 4726 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4727 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4728 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4729 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4730 | break 2 |
| 4731 | fi |
| 4732 | done |
| 4733 | done |
| 4734 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4735 | ;; |
| 4736 | esac |
| 4737 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4738 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4739 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4740 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4741 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4742 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4743 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4744 | echo "$as_me:$LINENO: result: no" >&5 |
| 4745 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4746 | fi |
| 4747 | |
| 4748 | fi |
| 4749 | if test "X$vi_cv_path_tcl" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4750 | echo "$as_me:$LINENO: checking Tcl version" >&5 |
| 4751 | echo $ECHO_N "checking Tcl version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4752 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 4753 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4754 | echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
| 4755 | echo "${ECHO_T}$tclver - OK" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4756 | 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 -` |
| 4757 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4758 | echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
| 4759 | echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4760 | if test "x$MACOSX" != "xyes"; then |
Bram Moolenaar | 0ff8f60 | 2008-02-20 11:44:03 +0000 | [diff] [blame] | 4761 | tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include /usr/include/tcl$tclver" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4762 | else |
| 4763 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 4764 | fi |
Bram Moolenaar | 0ff8f60 | 2008-02-20 11:44:03 +0000 | [diff] [blame] | 4765 | TCL_INC= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4766 | for try in $tclinc; do |
| 4767 | if test -f "$try/tcl.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4768 | echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
| 4769 | echo "${ECHO_T}$try/tcl.h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4770 | TCL_INC=$try |
| 4771 | break |
| 4772 | fi |
| 4773 | done |
| 4774 | if test -z "$TCL_INC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4775 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4776 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4777 | SKIP_TCL=YES |
| 4778 | fi |
| 4779 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4780 | echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
| 4781 | 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] | 4782 | if test "x$MACOSX" != "xyes"; then |
| 4783 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 4784 | tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4785 | else |
| 4786 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 4787 | fi |
| 4788 | for try in $tclcnf; do |
| 4789 | if test -f $try/tclConfig.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4790 | echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
| 4791 | echo "${ECHO_T}$try/tclConfig.sh" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4792 | . $try/tclConfig.sh |
| 4793 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 4794 | 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] | 4795 | break |
| 4796 | fi |
| 4797 | done |
| 4798 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4799 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4800 | echo "${ECHO_T}<not found>" >&6 |
| 4801 | echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
| 4802 | echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4803 | tcllib=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 4804 | tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4805 | for ext in .so .a ; do |
| 4806 | for ver in "" $tclver ; do |
| 4807 | for try in $tcllib ; do |
| 4808 | trylib=tcl$ver$ext |
| 4809 | if test -f $try/lib$trylib ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4810 | echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
| 4811 | echo "${ECHO_T}$try/lib$trylib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4812 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 4813 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 4814 | uname -r | grep '^5' >/dev/null; then |
| 4815 | TCL_LIBS="$TCL_LIBS -R $try" |
| 4816 | fi |
| 4817 | break 3 |
| 4818 | fi |
| 4819 | done |
| 4820 | done |
| 4821 | done |
| 4822 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4823 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4824 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4825 | SKIP_TCL=YES |
| 4826 | fi |
| 4827 | fi |
| 4828 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4829 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4830 | #define FEAT_TCL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4831 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4832 | |
| 4833 | TCL_SRC=if_tcl.c |
| 4834 | TCL_OBJ=objects/if_tcl.o |
| 4835 | TCL_PRO=if_tcl.pro |
| 4836 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 4837 | fi |
| 4838 | fi |
| 4839 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4840 | echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
| 4841 | 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] | 4842 | fi |
| 4843 | fi |
| 4844 | fi |
| 4845 | |
| 4846 | |
| 4847 | |
| 4848 | |
| 4849 | |
| 4850 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4851 | echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
| 4852 | echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4853 | # Check whether --enable-rubyinterp or --disable-rubyinterp was given. |
| 4854 | if test "${enable_rubyinterp+set}" = set; then |
| 4855 | enableval="$enable_rubyinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4856 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4857 | else |
| 4858 | enable_rubyinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4859 | fi; |
| 4860 | echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
| 4861 | echo "${ECHO_T}$enable_rubyinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4862 | if test "$enable_rubyinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4863 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4864 | # Extract the first word of "ruby", so it can be a program name with args. |
| 4865 | set dummy ruby; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4868 | if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
| 4869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4870 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4871 | case $vi_cv_path_ruby in |
| 4872 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4873 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 4874 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4875 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4877 | for as_dir in $PATH |
| 4878 | do |
| 4879 | IFS=$as_save_IFS |
| 4880 | test -z "$as_dir" && as_dir=. |
| 4881 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4883 | ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" |
| 4884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4885 | break 2 |
| 4886 | fi |
| 4887 | done |
| 4888 | done |
| 4889 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4890 | ;; |
| 4891 | esac |
| 4892 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4893 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
| 4894 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4895 | if test -n "$vi_cv_path_ruby"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4896 | echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
| 4897 | echo "${ECHO_T}$vi_cv_path_ruby" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4898 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4899 | echo "$as_me:$LINENO: result: no" >&5 |
| 4900 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4901 | fi |
| 4902 | |
| 4903 | if test "X$vi_cv_path_ruby" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4904 | echo "$as_me:$LINENO: checking Ruby version" >&5 |
| 4905 | echo $ECHO_N "checking Ruby version... $ECHO_C" >&6 |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 4906 | 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] | 4907 | echo "$as_me:$LINENO: result: OK" >&5 |
| 4908 | echo "${ECHO_T}OK" >&6 |
| 4909 | echo "$as_me:$LINENO: checking Ruby header files" >&5 |
| 4910 | echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4911 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
| 4912 | if test "X$rubyhdrdir" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4913 | echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
| 4914 | echo "${ECHO_T}$rubyhdrdir" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4915 | RUBY_CFLAGS="-I$rubyhdrdir" |
| 4916 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 4917 | if test "X$rubylibs" != "X"; then |
| 4918 | RUBY_LIBS="$rubylibs" |
| 4919 | fi |
| 4920 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 4921 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 4922 | librubyarg="$rubyhdrdir/$librubyarg" |
| 4923 | else |
| 4924 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 4925 | if test -f "$rubylibdir/$librubyarg"; then |
| 4926 | librubyarg="$rubylibdir/$librubyarg" |
| 4927 | elif test "$librubyarg" = "libruby.a"; then |
| 4928 | librubyarg="-lruby" |
| 4929 | else |
| 4930 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 4931 | fi |
| 4932 | fi |
| 4933 | |
| 4934 | if test "X$librubyarg" != "X"; then |
| 4935 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 4936 | fi |
| 4937 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 4938 | if test "X$rubyldflags" != "X"; then |
| 4939 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 4940 | fi |
| 4941 | RUBY_SRC="if_ruby.c" |
| 4942 | RUBY_OBJ="objects/if_ruby.o" |
| 4943 | RUBY_PRO="if_ruby.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4944 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4945 | #define FEAT_RUBY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4946 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4947 | |
| 4948 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4949 | echo "$as_me:$LINENO: result: not found" >&5 |
| 4950 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4951 | fi |
| 4952 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4953 | echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
| 4954 | 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] | 4955 | fi |
| 4956 | fi |
| 4957 | fi |
| 4958 | |
| 4959 | |
| 4960 | |
| 4961 | |
| 4962 | |
| 4963 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4964 | echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
| 4965 | echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4966 | # Check whether --enable-cscope or --disable-cscope was given. |
| 4967 | if test "${enable_cscope+set}" = set; then |
| 4968 | enableval="$enable_cscope" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4969 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4970 | else |
| 4971 | enable_cscope="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4972 | fi; |
| 4973 | echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
| 4974 | echo "${ECHO_T}$enable_cscope" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4975 | if test "$enable_cscope" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4976 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4977 | #define FEAT_CSCOPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4978 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4979 | |
| 4980 | fi |
| 4981 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4982 | echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
| 4983 | echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4984 | # Check whether --enable-workshop or --disable-workshop was given. |
| 4985 | if test "${enable_workshop+set}" = set; then |
| 4986 | enableval="$enable_workshop" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4987 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4988 | else |
| 4989 | enable_workshop="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4990 | fi; |
| 4991 | echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
| 4992 | echo "${ECHO_T}$enable_workshop" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4993 | if test "$enable_workshop" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4994 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4995 | #define FEAT_SUN_WORKSHOP 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4996 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4997 | |
| 4998 | WORKSHOP_SRC="workshop.c integration.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4999 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5000 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5001 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5002 | if test "${enable_gui-xxx}" = xxx; then |
| 5003 | enable_gui=motif |
| 5004 | fi |
| 5005 | fi |
| 5006 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5007 | echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
| 5008 | echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5009 | # Check whether --enable-netbeans or --disable-netbeans was given. |
| 5010 | if test "${enable_netbeans+set}" = set; then |
| 5011 | enableval="$enable_netbeans" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5012 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5013 | else |
| 5014 | enable_netbeans="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5015 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5016 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5017 | echo "$as_me:$LINENO: result: no" >&5 |
| 5018 | echo "${ECHO_T}no" >&6 |
| 5019 | |
| 5020 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 5021 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 5022 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 5023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5024 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5025 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5026 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5027 | cat >conftest.$ac_ext <<_ACEOF |
| 5028 | /* confdefs.h. */ |
| 5029 | _ACEOF |
| 5030 | cat confdefs.h >>conftest.$ac_ext |
| 5031 | cat >>conftest.$ac_ext <<_ACEOF |
| 5032 | /* end confdefs.h. */ |
| 5033 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5034 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5035 | #ifdef __cplusplus |
| 5036 | extern "C" |
| 5037 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5038 | /* 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] | 5039 | builtin and then its argument prototype would still apply. */ |
| 5040 | char socket (); |
| 5041 | int |
| 5042 | main () |
| 5043 | { |
| 5044 | socket (); |
| 5045 | ; |
| 5046 | return 0; |
| 5047 | } |
| 5048 | _ACEOF |
| 5049 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5051 | (eval $ac_link) 2>conftest.er1 |
| 5052 | ac_status=$? |
| 5053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5054 | rm -f conftest.er1 |
| 5055 | cat conftest.err >&5 |
| 5056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5057 | (exit $ac_status); } && |
| 5058 | { ac_try='test -z "$ac_c_werror_flag" |
| 5059 | || test ! -s conftest.err' |
| 5060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5061 | (eval $ac_try) 2>&5 |
| 5062 | ac_status=$? |
| 5063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5064 | (exit $ac_status); }; } && |
| 5065 | { ac_try='test -s conftest$ac_exeext' |
| 5066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5067 | (eval $ac_try) 2>&5 |
| 5068 | ac_status=$? |
| 5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5070 | (exit $ac_status); }; }; then |
| 5071 | ac_cv_lib_socket_socket=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5072 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5073 | echo "$as_me: failed program was:" >&5 |
| 5074 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5075 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5076 | ac_cv_lib_socket_socket=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5077 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5078 | rm -f conftest.err conftest.$ac_objext \ |
| 5079 | conftest$ac_exeext conftest.$ac_ext |
| 5080 | LIBS=$ac_check_lib_save_LIBS |
| 5081 | fi |
| 5082 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 5083 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 5084 | if test $ac_cv_lib_socket_socket = yes; then |
| 5085 | cat >>confdefs.h <<_ACEOF |
| 5086 | #define HAVE_LIBSOCKET 1 |
| 5087 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5088 | |
| 5089 | LIBS="-lsocket $LIBS" |
| 5090 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5091 | fi |
| 5092 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5093 | |
| 5094 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 5095 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 5096 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 5097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5098 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5099 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5100 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5101 | cat >conftest.$ac_ext <<_ACEOF |
| 5102 | /* confdefs.h. */ |
| 5103 | _ACEOF |
| 5104 | cat confdefs.h >>conftest.$ac_ext |
| 5105 | cat >>conftest.$ac_ext <<_ACEOF |
| 5106 | /* end confdefs.h. */ |
| 5107 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5108 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5109 | #ifdef __cplusplus |
| 5110 | extern "C" |
| 5111 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5112 | /* 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] | 5113 | builtin and then its argument prototype would still apply. */ |
| 5114 | char gethostbyname (); |
| 5115 | int |
| 5116 | main () |
| 5117 | { |
| 5118 | gethostbyname (); |
| 5119 | ; |
| 5120 | return 0; |
| 5121 | } |
| 5122 | _ACEOF |
| 5123 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5125 | (eval $ac_link) 2>conftest.er1 |
| 5126 | ac_status=$? |
| 5127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5128 | rm -f conftest.er1 |
| 5129 | cat conftest.err >&5 |
| 5130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5131 | (exit $ac_status); } && |
| 5132 | { ac_try='test -z "$ac_c_werror_flag" |
| 5133 | || test ! -s conftest.err' |
| 5134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5135 | (eval $ac_try) 2>&5 |
| 5136 | ac_status=$? |
| 5137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5138 | (exit $ac_status); }; } && |
| 5139 | { ac_try='test -s conftest$ac_exeext' |
| 5140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5141 | (eval $ac_try) 2>&5 |
| 5142 | ac_status=$? |
| 5143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5144 | (exit $ac_status); }; }; then |
| 5145 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5146 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5147 | echo "$as_me: failed program was:" >&5 |
| 5148 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5149 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5150 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5151 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5152 | rm -f conftest.err conftest.$ac_objext \ |
| 5153 | conftest$ac_exeext conftest.$ac_ext |
| 5154 | LIBS=$ac_check_lib_save_LIBS |
| 5155 | fi |
| 5156 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 5157 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5158 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 5159 | cat >>confdefs.h <<_ACEOF |
| 5160 | #define HAVE_LIBNSL 1 |
| 5161 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5162 | |
| 5163 | LIBS="-lnsl $LIBS" |
| 5164 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5165 | fi |
| 5166 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5167 | echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
| 5168 | echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6 |
| 5169 | cat >conftest.$ac_ext <<_ACEOF |
| 5170 | /* confdefs.h. */ |
| 5171 | _ACEOF |
| 5172 | cat confdefs.h >>conftest.$ac_ext |
| 5173 | cat >>conftest.$ac_ext <<_ACEOF |
| 5174 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5175 | |
| 5176 | #include <stdio.h> |
| 5177 | #include <stdlib.h> |
| 5178 | #include <stdarg.h> |
| 5179 | #include <fcntl.h> |
| 5180 | #include <netdb.h> |
| 5181 | #include <netinet/in.h> |
| 5182 | #include <errno.h> |
| 5183 | #include <sys/types.h> |
| 5184 | #include <sys/socket.h> |
| 5185 | /* Check bitfields */ |
| 5186 | struct nbbuf { |
| 5187 | unsigned int initDone:1; |
| 5188 | ushort signmaplen; |
| 5189 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5190 | |
| 5191 | int |
| 5192 | main () |
| 5193 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5194 | |
| 5195 | /* Check creating a socket. */ |
| 5196 | struct sockaddr_in server; |
| 5197 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 5198 | (void)htons(100); |
| 5199 | (void)gethostbyname("microsoft.com"); |
| 5200 | if (errno == ECONNREFUSED) |
| 5201 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5202 | |
| 5203 | ; |
| 5204 | return 0; |
| 5205 | } |
| 5206 | _ACEOF |
| 5207 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5209 | (eval $ac_link) 2>conftest.er1 |
| 5210 | ac_status=$? |
| 5211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5212 | rm -f conftest.er1 |
| 5213 | cat conftest.err >&5 |
| 5214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5215 | (exit $ac_status); } && |
| 5216 | { ac_try='test -z "$ac_c_werror_flag" |
| 5217 | || test ! -s conftest.err' |
| 5218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5219 | (eval $ac_try) 2>&5 |
| 5220 | ac_status=$? |
| 5221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5222 | (exit $ac_status); }; } && |
| 5223 | { ac_try='test -s conftest$ac_exeext' |
| 5224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5225 | (eval $ac_try) 2>&5 |
| 5226 | ac_status=$? |
| 5227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5228 | (exit $ac_status); }; }; then |
| 5229 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5230 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5231 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5232 | echo "$as_me: failed program was:" >&5 |
| 5233 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5234 | |
| 5235 | echo "$as_me:$LINENO: result: no" >&5 |
| 5236 | echo "${ECHO_T}no" >&6; enable_netbeans="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5237 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5238 | rm -f conftest.err conftest.$ac_objext \ |
| 5239 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5240 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5241 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5242 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5243 | fi |
| 5244 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5245 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5246 | #define FEAT_NETBEANS_INTG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5247 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5248 | |
| 5249 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5250 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5251 | NETBEANS_OBJ="objects/netbeans.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5252 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5253 | fi |
| 5254 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5255 | echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
| 5256 | echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5257 | # Check whether --enable-sniff or --disable-sniff was given. |
| 5258 | if test "${enable_sniff+set}" = set; then |
| 5259 | enableval="$enable_sniff" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5260 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5261 | else |
| 5262 | enable_sniff="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5263 | fi; |
| 5264 | echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
| 5265 | echo "${ECHO_T}$enable_sniff" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5266 | if test "$enable_sniff" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5267 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5268 | #define FEAT_SNIFF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5269 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5270 | |
| 5271 | SNIFF_SRC="if_sniff.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5272 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5273 | SNIFF_OBJ="objects/if_sniff.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5274 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5275 | fi |
| 5276 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5277 | echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
| 5278 | echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5279 | # Check whether --enable-multibyte or --disable-multibyte was given. |
| 5280 | if test "${enable_multibyte+set}" = set; then |
| 5281 | enableval="$enable_multibyte" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5282 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5283 | else |
| 5284 | enable_multibyte="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5285 | fi; |
| 5286 | echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
| 5287 | echo "${ECHO_T}$enable_multibyte" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5288 | if test "$enable_multibyte" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5289 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5290 | #define FEAT_MBYTE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5291 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5292 | |
| 5293 | fi |
| 5294 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5295 | echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
| 5296 | echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5297 | # Check whether --enable-hangulinput or --disable-hangulinput was given. |
| 5298 | if test "${enable_hangulinput+set}" = set; then |
| 5299 | enableval="$enable_hangulinput" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5300 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5301 | else |
| 5302 | enable_hangulinput="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5303 | fi; |
| 5304 | echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
| 5305 | echo "${ECHO_T}$enable_hangulinput" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5306 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5307 | echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
| 5308 | echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5309 | # Check whether --enable-xim or --disable-xim was given. |
| 5310 | if test "${enable_xim+set}" = set; then |
| 5311 | enableval="$enable_xim" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5312 | echo "$as_me:$LINENO: result: $enable_xim" >&5 |
| 5313 | echo "${ECHO_T}$enable_xim" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5314 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5315 | enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
| 5316 | echo "${ECHO_T}defaulting to auto" >&6 |
| 5317 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5318 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5319 | echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
| 5320 | echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5321 | # Check whether --enable-fontset or --disable-fontset was given. |
| 5322 | if test "${enable_fontset+set}" = set; then |
| 5323 | enableval="$enable_fontset" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5324 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5325 | else |
| 5326 | enable_fontset="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5327 | fi; |
| 5328 | echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
| 5329 | echo "${ECHO_T}$enable_fontset" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5330 | |
| 5331 | test -z "$with_x" && with_x=yes |
| 5332 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 5333 | if test "$with_x" = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5334 | echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
| 5335 | echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5336 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5337 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5338 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 5339 | set dummy xmkmf; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5340 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5342 | if test "${ac_cv_path_xmkmfpath+set}" = set; then |
| 5343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5344 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5345 | case $xmkmfpath in |
| 5346 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5347 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 5348 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5349 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5351 | for as_dir in $PATH |
| 5352 | do |
| 5353 | IFS=$as_save_IFS |
| 5354 | test -z "$as_dir" && as_dir=. |
| 5355 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5356 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5357 | ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
| 5358 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5359 | break 2 |
| 5360 | fi |
| 5361 | done |
| 5362 | done |
| 5363 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5364 | ;; |
| 5365 | esac |
| 5366 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5367 | xmkmfpath=$ac_cv_path_xmkmfpath |
| 5368 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5369 | if test -n "$xmkmfpath"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5370 | echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
| 5371 | echo "${ECHO_T}$xmkmfpath" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5372 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5373 | echo "$as_me:$LINENO: result: no" >&5 |
| 5374 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5375 | fi |
| 5376 | |
| 5377 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5378 | echo "$as_me:$LINENO: checking for X" >&5 |
| 5379 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 5380 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5381 | |
| 5382 | # Check whether --with-x or --without-x was given. |
| 5383 | if test "${with_x+set}" = set; then |
| 5384 | withval="$with_x" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5385 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5386 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5387 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 5388 | if test "x$with_x" = xno; then |
| 5389 | # The user explicitly disabled X. |
| 5390 | have_x=disabled |
| 5391 | else |
| 5392 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 5393 | # Both variables are already set. |
| 5394 | have_x=yes |
| 5395 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5396 | if test "${ac_cv_have_x+set}" = set; then |
| 5397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5398 | else |
| 5399 | # 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] | 5400 | ac_x_includes=no ac_x_libraries=no |
| 5401 | rm -fr conftest.dir |
| 5402 | if mkdir conftest.dir; then |
| 5403 | cd conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5404 | # 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] | 5405 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5406 | acfindx: |
| 5407 | @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] | 5408 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5409 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 5410 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 5411 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 5412 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 5413 | for ac_extension in a so sl; do |
| 5414 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5415 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 5416 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5417 | fi |
| 5418 | done |
| 5419 | # Screen out bogus values from the imake configuration. They are |
| 5420 | # bogus both because they are the default anyway, and because |
| 5421 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5422 | case $ac_im_incroot in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5423 | /usr/include) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5424 | *) 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] | 5425 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5426 | case $ac_im_usrlibdir in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5427 | /usr/lib | /lib) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5428 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5429 | esac |
| 5430 | fi |
| 5431 | cd .. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5432 | rm -fr conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5433 | fi |
| 5434 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5435 | # Standard set of common directories for X headers. |
| 5436 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 5437 | ac_x_header_dirs=' |
| 5438 | /usr/X11/include |
| 5439 | /usr/X11R6/include |
| 5440 | /usr/X11R5/include |
| 5441 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5442 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5443 | /usr/include/X11 |
| 5444 | /usr/include/X11R6 |
| 5445 | /usr/include/X11R5 |
| 5446 | /usr/include/X11R4 |
| 5447 | |
| 5448 | /usr/local/X11/include |
| 5449 | /usr/local/X11R6/include |
| 5450 | /usr/local/X11R5/include |
| 5451 | /usr/local/X11R4/include |
| 5452 | |
| 5453 | /usr/local/include/X11 |
| 5454 | /usr/local/include/X11R6 |
| 5455 | /usr/local/include/X11R5 |
| 5456 | /usr/local/include/X11R4 |
| 5457 | |
| 5458 | /usr/X386/include |
| 5459 | /usr/x386/include |
| 5460 | /usr/XFree86/include/X11 |
| 5461 | |
| 5462 | /usr/include |
| 5463 | /usr/local/include |
| 5464 | /usr/unsupported/include |
| 5465 | /usr/athena/include |
| 5466 | /usr/local/x11r5/include |
| 5467 | /usr/lpp/Xamples/include |
| 5468 | |
| 5469 | /usr/openwin/include |
| 5470 | /usr/openwin/share/include' |
| 5471 | |
| 5472 | if test "$ac_x_includes" = no; then |
| 5473 | # Guess where to find include files, by looking for Intrinsic.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5474 | # First, try using that file with no special directory specified. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5475 | cat >conftest.$ac_ext <<_ACEOF |
| 5476 | /* confdefs.h. */ |
| 5477 | _ACEOF |
| 5478 | cat confdefs.h >>conftest.$ac_ext |
| 5479 | cat >>conftest.$ac_ext <<_ACEOF |
| 5480 | /* end confdefs.h. */ |
| 5481 | #include <X11/Intrinsic.h> |
| 5482 | _ACEOF |
| 5483 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5484 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5485 | ac_status=$? |
| 5486 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5487 | rm -f conftest.er1 |
| 5488 | cat conftest.err >&5 |
| 5489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5490 | (exit $ac_status); } >/dev/null; then |
| 5491 | if test -s conftest.err; then |
| 5492 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5493 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5494 | else |
| 5495 | ac_cpp_err= |
| 5496 | fi |
| 5497 | else |
| 5498 | ac_cpp_err=yes |
| 5499 | fi |
| 5500 | if test -z "$ac_cpp_err"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5501 | # We can compile using X headers with no special include directory. |
| 5502 | ac_x_includes= |
| 5503 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5504 | echo "$as_me: failed program was:" >&5 |
| 5505 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5506 | |
| 5507 | for ac_dir in $ac_x_header_dirs; do |
| 5508 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 5509 | ac_x_includes=$ac_dir |
| 5510 | break |
| 5511 | fi |
| 5512 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5513 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5514 | rm -f conftest.err conftest.$ac_ext |
| 5515 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5516 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5517 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5518 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5519 | # See if we find them without any special options. |
| 5520 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5521 | ac_save_LIBS=$LIBS |
| 5522 | LIBS="-lXt $LIBS" |
| 5523 | cat >conftest.$ac_ext <<_ACEOF |
| 5524 | /* confdefs.h. */ |
| 5525 | _ACEOF |
| 5526 | cat confdefs.h >>conftest.$ac_ext |
| 5527 | cat >>conftest.$ac_ext <<_ACEOF |
| 5528 | /* end confdefs.h. */ |
| 5529 | #include <X11/Intrinsic.h> |
| 5530 | int |
| 5531 | main () |
| 5532 | { |
| 5533 | XtMalloc (0) |
| 5534 | ; |
| 5535 | return 0; |
| 5536 | } |
| 5537 | _ACEOF |
| 5538 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5540 | (eval $ac_link) 2>conftest.er1 |
| 5541 | ac_status=$? |
| 5542 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5543 | rm -f conftest.er1 |
| 5544 | cat conftest.err >&5 |
| 5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5546 | (exit $ac_status); } && |
| 5547 | { ac_try='test -z "$ac_c_werror_flag" |
| 5548 | || test ! -s conftest.err' |
| 5549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5550 | (eval $ac_try) 2>&5 |
| 5551 | ac_status=$? |
| 5552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5553 | (exit $ac_status); }; } && |
| 5554 | { ac_try='test -s conftest$ac_exeext' |
| 5555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5556 | (eval $ac_try) 2>&5 |
| 5557 | ac_status=$? |
| 5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5559 | (exit $ac_status); }; }; then |
| 5560 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5561 | # We can link X programs with no special library path. |
| 5562 | ac_x_libraries= |
| 5563 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5564 | echo "$as_me: failed program was:" >&5 |
| 5565 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5566 | |
| 5567 | LIBS=$ac_save_LIBS |
| 5568 | 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] | 5569 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5570 | # 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] | 5571 | for ac_extension in a so sl; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5572 | if test -r $ac_dir/libXt.$ac_extension; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5573 | ac_x_libraries=$ac_dir |
| 5574 | break 2 |
| 5575 | fi |
| 5576 | done |
| 5577 | done |
| 5578 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5579 | rm -f conftest.err conftest.$ac_objext \ |
| 5580 | conftest$ac_exeext conftest.$ac_ext |
| 5581 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5582 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5583 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5584 | # Didn't find X anywhere. Cache the known absence of X. |
| 5585 | ac_cv_have_x="have_x=no" |
| 5586 | else |
| 5587 | # Record where we found X for the cache. |
| 5588 | ac_cv_have_x="have_x=yes \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5589 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5590 | fi |
| 5591 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5592 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5593 | fi |
| 5594 | eval "$ac_cv_have_x" |
| 5595 | fi # $with_x != no |
| 5596 | |
| 5597 | if test "$have_x" != yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5598 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 5599 | echo "${ECHO_T}$have_x" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5600 | no_x=yes |
| 5601 | else |
| 5602 | # If each of the values was on the command line, it overrides each guess. |
| 5603 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 5604 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 5605 | # Update the cache value to reflect the command line values. |
| 5606 | ac_cv_have_x="have_x=yes \ |
| 5607 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5608 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 5609 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5610 | fi |
| 5611 | |
| 5612 | if test "$no_x" = yes; then |
| 5613 | # 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] | 5614 | |
| 5615 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5616 | #define X_DISPLAY_MISSING 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5617 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5618 | |
| 5619 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 5620 | else |
| 5621 | if test -n "$x_includes"; then |
| 5622 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 5623 | fi |
| 5624 | |
| 5625 | # It would also be nice to do this for all -L options, not just this one. |
| 5626 | if test -n "$x_libraries"; then |
| 5627 | X_LIBS="$X_LIBS -L$x_libraries" |
| 5628 | # For Solaris; some versions of Sun CC require a space after -R and |
| 5629 | # others require no space. Words are not sufficient . . . . |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5630 | case `(uname -sr) 2>/dev/null` in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5631 | "SunOS 5"*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5632 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 5633 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 5634 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 5635 | cat >conftest.$ac_ext <<_ACEOF |
| 5636 | /* confdefs.h. */ |
| 5637 | _ACEOF |
| 5638 | cat confdefs.h >>conftest.$ac_ext |
| 5639 | cat >>conftest.$ac_ext <<_ACEOF |
| 5640 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5641 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5642 | int |
| 5643 | main () |
| 5644 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5645 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5646 | ; |
| 5647 | return 0; |
| 5648 | } |
| 5649 | _ACEOF |
| 5650 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5652 | (eval $ac_link) 2>conftest.er1 |
| 5653 | ac_status=$? |
| 5654 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5655 | rm -f conftest.er1 |
| 5656 | cat conftest.err >&5 |
| 5657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5658 | (exit $ac_status); } && |
| 5659 | { ac_try='test -z "$ac_c_werror_flag" |
| 5660 | || test ! -s conftest.err' |
| 5661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5662 | (eval $ac_try) 2>&5 |
| 5663 | ac_status=$? |
| 5664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5665 | (exit $ac_status); }; } && |
| 5666 | { ac_try='test -s conftest$ac_exeext' |
| 5667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5668 | (eval $ac_try) 2>&5 |
| 5669 | ac_status=$? |
| 5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5671 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5672 | ac_R_nospace=yes |
| 5673 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5674 | echo "$as_me: failed program was:" >&5 |
| 5675 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5676 | |
| 5677 | ac_R_nospace=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5678 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5679 | rm -f conftest.err conftest.$ac_objext \ |
| 5680 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5681 | if test $ac_R_nospace = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5682 | echo "$as_me:$LINENO: result: no" >&5 |
| 5683 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5684 | X_LIBS="$X_LIBS -R$x_libraries" |
| 5685 | else |
| 5686 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5687 | cat >conftest.$ac_ext <<_ACEOF |
| 5688 | /* confdefs.h. */ |
| 5689 | _ACEOF |
| 5690 | cat confdefs.h >>conftest.$ac_ext |
| 5691 | cat >>conftest.$ac_ext <<_ACEOF |
| 5692 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5693 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5694 | int |
| 5695 | main () |
| 5696 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5697 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5698 | ; |
| 5699 | return 0; |
| 5700 | } |
| 5701 | _ACEOF |
| 5702 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5704 | (eval $ac_link) 2>conftest.er1 |
| 5705 | ac_status=$? |
| 5706 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5707 | rm -f conftest.er1 |
| 5708 | cat conftest.err >&5 |
| 5709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5710 | (exit $ac_status); } && |
| 5711 | { ac_try='test -z "$ac_c_werror_flag" |
| 5712 | || test ! -s conftest.err' |
| 5713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5714 | (eval $ac_try) 2>&5 |
| 5715 | ac_status=$? |
| 5716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5717 | (exit $ac_status); }; } && |
| 5718 | { ac_try='test -s conftest$ac_exeext' |
| 5719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5720 | (eval $ac_try) 2>&5 |
| 5721 | ac_status=$? |
| 5722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5723 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5724 | ac_R_space=yes |
| 5725 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5726 | echo "$as_me: failed program was:" >&5 |
| 5727 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5728 | |
| 5729 | ac_R_space=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5730 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5731 | rm -f conftest.err conftest.$ac_objext \ |
| 5732 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5733 | if test $ac_R_space = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5734 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5735 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5736 | X_LIBS="$X_LIBS -R $x_libraries" |
| 5737 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5738 | echo "$as_me:$LINENO: result: neither works" >&5 |
| 5739 | echo "${ECHO_T}neither works" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5740 | fi |
| 5741 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5742 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5743 | esac |
| 5744 | fi |
| 5745 | |
| 5746 | # Check for system-dependent libraries X programs must link with. |
| 5747 | # Do this before checking for the system-independent R6 libraries |
| 5748 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 5749 | |
| 5750 | if test "$ISC" = yes; then |
| 5751 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 5752 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5753 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 5754 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5755 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5756 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 5757 | cat >conftest.$ac_ext <<_ACEOF |
| 5758 | /* confdefs.h. */ |
| 5759 | _ACEOF |
| 5760 | cat confdefs.h >>conftest.$ac_ext |
| 5761 | cat >>conftest.$ac_ext <<_ACEOF |
| 5762 | /* end confdefs.h. */ |
| 5763 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5764 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5765 | #ifdef __cplusplus |
| 5766 | extern "C" |
| 5767 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5768 | /* 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] | 5769 | builtin and then its argument prototype would still apply. */ |
| 5770 | char XOpenDisplay (); |
| 5771 | int |
| 5772 | main () |
| 5773 | { |
| 5774 | XOpenDisplay (); |
| 5775 | ; |
| 5776 | return 0; |
| 5777 | } |
| 5778 | _ACEOF |
| 5779 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5781 | (eval $ac_link) 2>conftest.er1 |
| 5782 | ac_status=$? |
| 5783 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5784 | rm -f conftest.er1 |
| 5785 | cat conftest.err >&5 |
| 5786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5787 | (exit $ac_status); } && |
| 5788 | { ac_try='test -z "$ac_c_werror_flag" |
| 5789 | || test ! -s conftest.err' |
| 5790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5791 | (eval $ac_try) 2>&5 |
| 5792 | ac_status=$? |
| 5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5794 | (exit $ac_status); }; } && |
| 5795 | { ac_try='test -s conftest$ac_exeext' |
| 5796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5797 | (eval $ac_try) 2>&5 |
| 5798 | ac_status=$? |
| 5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5800 | (exit $ac_status); }; }; then |
| 5801 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5802 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5803 | echo "$as_me: failed program was:" >&5 |
| 5804 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5805 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5806 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 5807 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 5808 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 5809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5810 | else |
| 5811 | ac_check_lib_save_LIBS=$LIBS |
| 5812 | LIBS="-ldnet $LIBS" |
| 5813 | cat >conftest.$ac_ext <<_ACEOF |
| 5814 | /* confdefs.h. */ |
| 5815 | _ACEOF |
| 5816 | cat confdefs.h >>conftest.$ac_ext |
| 5817 | cat >>conftest.$ac_ext <<_ACEOF |
| 5818 | /* end confdefs.h. */ |
| 5819 | |
| 5820 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5821 | #ifdef __cplusplus |
| 5822 | extern "C" |
| 5823 | #endif |
| 5824 | /* We use char because int might match the return type of a gcc2 |
| 5825 | builtin and then its argument prototype would still apply. */ |
| 5826 | char dnet_ntoa (); |
| 5827 | int |
| 5828 | main () |
| 5829 | { |
| 5830 | dnet_ntoa (); |
| 5831 | ; |
| 5832 | return 0; |
| 5833 | } |
| 5834 | _ACEOF |
| 5835 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5837 | (eval $ac_link) 2>conftest.er1 |
| 5838 | ac_status=$? |
| 5839 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5840 | rm -f conftest.er1 |
| 5841 | cat conftest.err >&5 |
| 5842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5843 | (exit $ac_status); } && |
| 5844 | { ac_try='test -z "$ac_c_werror_flag" |
| 5845 | || test ! -s conftest.err' |
| 5846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5847 | (eval $ac_try) 2>&5 |
| 5848 | ac_status=$? |
| 5849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5850 | (exit $ac_status); }; } && |
| 5851 | { ac_try='test -s conftest$ac_exeext' |
| 5852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5853 | (eval $ac_try) 2>&5 |
| 5854 | ac_status=$? |
| 5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5856 | (exit $ac_status); }; }; then |
| 5857 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 5858 | else |
| 5859 | echo "$as_me: failed program was:" >&5 |
| 5860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5861 | |
| 5862 | ac_cv_lib_dnet_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5863 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5864 | rm -f conftest.err conftest.$ac_objext \ |
| 5865 | conftest$ac_exeext conftest.$ac_ext |
| 5866 | LIBS=$ac_check_lib_save_LIBS |
| 5867 | fi |
| 5868 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 5869 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 5870 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5871 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5872 | fi |
| 5873 | |
| 5874 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5875 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 5876 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 5877 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 5878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5879 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5880 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5881 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5882 | cat >conftest.$ac_ext <<_ACEOF |
| 5883 | /* confdefs.h. */ |
| 5884 | _ACEOF |
| 5885 | cat confdefs.h >>conftest.$ac_ext |
| 5886 | cat >>conftest.$ac_ext <<_ACEOF |
| 5887 | /* end confdefs.h. */ |
| 5888 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5889 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5890 | #ifdef __cplusplus |
| 5891 | extern "C" |
| 5892 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5893 | /* 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] | 5894 | builtin and then its argument prototype would still apply. */ |
| 5895 | char dnet_ntoa (); |
| 5896 | int |
| 5897 | main () |
| 5898 | { |
| 5899 | dnet_ntoa (); |
| 5900 | ; |
| 5901 | return 0; |
| 5902 | } |
| 5903 | _ACEOF |
| 5904 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5906 | (eval $ac_link) 2>conftest.er1 |
| 5907 | ac_status=$? |
| 5908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5909 | rm -f conftest.er1 |
| 5910 | cat conftest.err >&5 |
| 5911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5912 | (exit $ac_status); } && |
| 5913 | { ac_try='test -z "$ac_c_werror_flag" |
| 5914 | || test ! -s conftest.err' |
| 5915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5916 | (eval $ac_try) 2>&5 |
| 5917 | ac_status=$? |
| 5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5919 | (exit $ac_status); }; } && |
| 5920 | { ac_try='test -s conftest$ac_exeext' |
| 5921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5922 | (eval $ac_try) 2>&5 |
| 5923 | ac_status=$? |
| 5924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5925 | (exit $ac_status); }; }; then |
| 5926 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5927 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5928 | echo "$as_me: failed program was:" >&5 |
| 5929 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5930 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5931 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5932 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5933 | rm -f conftest.err conftest.$ac_objext \ |
| 5934 | conftest$ac_exeext conftest.$ac_ext |
| 5935 | LIBS=$ac_check_lib_save_LIBS |
| 5936 | fi |
| 5937 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 5938 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 5939 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5940 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5941 | fi |
| 5942 | |
| 5943 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5944 | fi |
| 5945 | rm -f conftest.err conftest.$ac_objext \ |
| 5946 | conftest$ac_exeext conftest.$ac_ext |
| 5947 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5948 | |
| 5949 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 5950 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5951 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5952 | # needs -lnsl. |
| 5953 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5954 | # on Irix 5.2, according to T.E. Dickey. |
| 5955 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 5956 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 5957 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 5958 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 5959 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 5960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5961 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5962 | cat >conftest.$ac_ext <<_ACEOF |
| 5963 | /* confdefs.h. */ |
| 5964 | _ACEOF |
| 5965 | cat confdefs.h >>conftest.$ac_ext |
| 5966 | cat >>conftest.$ac_ext <<_ACEOF |
| 5967 | /* end confdefs.h. */ |
| 5968 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 5969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5970 | #define gethostbyname innocuous_gethostbyname |
| 5971 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5972 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5973 | which can conflict with char gethostbyname (); below. |
| 5974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5975 | <limits.h> exists even on freestanding compilers. */ |
| 5976 | |
| 5977 | #ifdef __STDC__ |
| 5978 | # include <limits.h> |
| 5979 | #else |
| 5980 | # include <assert.h> |
| 5981 | #endif |
| 5982 | |
| 5983 | #undef gethostbyname |
| 5984 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5985 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5986 | #ifdef __cplusplus |
| 5987 | extern "C" |
| 5988 | { |
| 5989 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5990 | /* 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] | 5991 | builtin and then its argument prototype would still apply. */ |
| 5992 | char gethostbyname (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5993 | /* The GNU C library defines this for functions which it implements |
| 5994 | to always fail with ENOSYS. Some functions are actually named |
| 5995 | something starting with __ and the normal name is an alias. */ |
| 5996 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 5997 | choke me |
| 5998 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5999 | char (*f) () = gethostbyname; |
| 6000 | #endif |
| 6001 | #ifdef __cplusplus |
| 6002 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6003 | #endif |
| 6004 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6005 | int |
| 6006 | main () |
| 6007 | { |
| 6008 | return f != gethostbyname; |
| 6009 | ; |
| 6010 | return 0; |
| 6011 | } |
| 6012 | _ACEOF |
| 6013 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6015 | (eval $ac_link) 2>conftest.er1 |
| 6016 | ac_status=$? |
| 6017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6018 | rm -f conftest.er1 |
| 6019 | cat conftest.err >&5 |
| 6020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6021 | (exit $ac_status); } && |
| 6022 | { ac_try='test -z "$ac_c_werror_flag" |
| 6023 | || test ! -s conftest.err' |
| 6024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6025 | (eval $ac_try) 2>&5 |
| 6026 | ac_status=$? |
| 6027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6028 | (exit $ac_status); }; } && |
| 6029 | { ac_try='test -s conftest$ac_exeext' |
| 6030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6031 | (eval $ac_try) 2>&5 |
| 6032 | ac_status=$? |
| 6033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6034 | (exit $ac_status); }; }; then |
| 6035 | ac_cv_func_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6036 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6037 | echo "$as_me: failed program was:" >&5 |
| 6038 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6039 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6040 | ac_cv_func_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6041 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6042 | rm -f conftest.err conftest.$ac_objext \ |
| 6043 | conftest$ac_exeext conftest.$ac_ext |
| 6044 | fi |
| 6045 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 6046 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6047 | |
| 6048 | if test $ac_cv_func_gethostbyname = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6049 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 6050 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 6051 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 6052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6053 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6054 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6055 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6056 | cat >conftest.$ac_ext <<_ACEOF |
| 6057 | /* confdefs.h. */ |
| 6058 | _ACEOF |
| 6059 | cat confdefs.h >>conftest.$ac_ext |
| 6060 | cat >>conftest.$ac_ext <<_ACEOF |
| 6061 | /* end confdefs.h. */ |
| 6062 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6063 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6064 | #ifdef __cplusplus |
| 6065 | extern "C" |
| 6066 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6067 | /* 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] | 6068 | builtin and then its argument prototype would still apply. */ |
| 6069 | char gethostbyname (); |
| 6070 | int |
| 6071 | main () |
| 6072 | { |
| 6073 | gethostbyname (); |
| 6074 | ; |
| 6075 | return 0; |
| 6076 | } |
| 6077 | _ACEOF |
| 6078 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6080 | (eval $ac_link) 2>conftest.er1 |
| 6081 | ac_status=$? |
| 6082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6083 | rm -f conftest.er1 |
| 6084 | cat conftest.err >&5 |
| 6085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6086 | (exit $ac_status); } && |
| 6087 | { ac_try='test -z "$ac_c_werror_flag" |
| 6088 | || test ! -s conftest.err' |
| 6089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6090 | (eval $ac_try) 2>&5 |
| 6091 | ac_status=$? |
| 6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6093 | (exit $ac_status); }; } && |
| 6094 | { ac_try='test -s conftest$ac_exeext' |
| 6095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6096 | (eval $ac_try) 2>&5 |
| 6097 | ac_status=$? |
| 6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6099 | (exit $ac_status); }; }; then |
| 6100 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6101 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6102 | echo "$as_me: failed program was:" >&5 |
| 6103 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6104 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6105 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6106 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6107 | rm -f conftest.err conftest.$ac_objext \ |
| 6108 | conftest$ac_exeext conftest.$ac_ext |
| 6109 | LIBS=$ac_check_lib_save_LIBS |
| 6110 | fi |
| 6111 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6112 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 6113 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6114 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6115 | fi |
| 6116 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6117 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 6118 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 6119 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 6120 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 6121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6122 | else |
| 6123 | ac_check_lib_save_LIBS=$LIBS |
| 6124 | LIBS="-lbsd $LIBS" |
| 6125 | cat >conftest.$ac_ext <<_ACEOF |
| 6126 | /* confdefs.h. */ |
| 6127 | _ACEOF |
| 6128 | cat confdefs.h >>conftest.$ac_ext |
| 6129 | cat >>conftest.$ac_ext <<_ACEOF |
| 6130 | /* end confdefs.h. */ |
| 6131 | |
| 6132 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6133 | #ifdef __cplusplus |
| 6134 | extern "C" |
| 6135 | #endif |
| 6136 | /* We use char because int might match the return type of a gcc2 |
| 6137 | builtin and then its argument prototype would still apply. */ |
| 6138 | char gethostbyname (); |
| 6139 | int |
| 6140 | main () |
| 6141 | { |
| 6142 | gethostbyname (); |
| 6143 | ; |
| 6144 | return 0; |
| 6145 | } |
| 6146 | _ACEOF |
| 6147 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6149 | (eval $ac_link) 2>conftest.er1 |
| 6150 | ac_status=$? |
| 6151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6152 | rm -f conftest.er1 |
| 6153 | cat conftest.err >&5 |
| 6154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6155 | (exit $ac_status); } && |
| 6156 | { ac_try='test -z "$ac_c_werror_flag" |
| 6157 | || test ! -s conftest.err' |
| 6158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6159 | (eval $ac_try) 2>&5 |
| 6160 | ac_status=$? |
| 6161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6162 | (exit $ac_status); }; } && |
| 6163 | { ac_try='test -s conftest$ac_exeext' |
| 6164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6165 | (eval $ac_try) 2>&5 |
| 6166 | ac_status=$? |
| 6167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6168 | (exit $ac_status); }; }; then |
| 6169 | ac_cv_lib_bsd_gethostbyname=yes |
| 6170 | else |
| 6171 | echo "$as_me: failed program was:" >&5 |
| 6172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6173 | |
| 6174 | ac_cv_lib_bsd_gethostbyname=no |
| 6175 | fi |
| 6176 | rm -f conftest.err conftest.$ac_objext \ |
| 6177 | conftest$ac_exeext conftest.$ac_ext |
| 6178 | LIBS=$ac_check_lib_save_LIBS |
| 6179 | fi |
| 6180 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 6181 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 6182 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 6183 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 6184 | fi |
| 6185 | |
| 6186 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6187 | fi |
| 6188 | |
| 6189 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 6190 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 6191 | # 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] | 6192 | # on later versions), says Simon Leinen: it contains gethostby* |
| 6193 | # variants that don't use the name server (or something). -lsocket |
| 6194 | # must be given before -lnsl if both are needed. We assume that |
| 6195 | # if connect needs -lnsl, so does gethostbyname. |
| 6196 | echo "$as_me:$LINENO: checking for connect" >&5 |
| 6197 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 6198 | if test "${ac_cv_func_connect+set}" = set; then |
| 6199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6200 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6201 | cat >conftest.$ac_ext <<_ACEOF |
| 6202 | /* confdefs.h. */ |
| 6203 | _ACEOF |
| 6204 | cat confdefs.h >>conftest.$ac_ext |
| 6205 | cat >>conftest.$ac_ext <<_ACEOF |
| 6206 | /* end confdefs.h. */ |
| 6207 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 6208 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6209 | #define connect innocuous_connect |
| 6210 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6211 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6212 | which can conflict with char connect (); below. |
| 6213 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6214 | <limits.h> exists even on freestanding compilers. */ |
| 6215 | |
| 6216 | #ifdef __STDC__ |
| 6217 | # include <limits.h> |
| 6218 | #else |
| 6219 | # include <assert.h> |
| 6220 | #endif |
| 6221 | |
| 6222 | #undef connect |
| 6223 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6224 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6225 | #ifdef __cplusplus |
| 6226 | extern "C" |
| 6227 | { |
| 6228 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6229 | /* 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] | 6230 | builtin and then its argument prototype would still apply. */ |
| 6231 | char connect (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6232 | /* The GNU C library defines this for functions which it implements |
| 6233 | to always fail with ENOSYS. Some functions are actually named |
| 6234 | something starting with __ and the normal name is an alias. */ |
| 6235 | #if defined (__stub_connect) || defined (__stub___connect) |
| 6236 | choke me |
| 6237 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6238 | char (*f) () = connect; |
| 6239 | #endif |
| 6240 | #ifdef __cplusplus |
| 6241 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6242 | #endif |
| 6243 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6244 | int |
| 6245 | main () |
| 6246 | { |
| 6247 | return f != connect; |
| 6248 | ; |
| 6249 | return 0; |
| 6250 | } |
| 6251 | _ACEOF |
| 6252 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6254 | (eval $ac_link) 2>conftest.er1 |
| 6255 | ac_status=$? |
| 6256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6257 | rm -f conftest.er1 |
| 6258 | cat conftest.err >&5 |
| 6259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6260 | (exit $ac_status); } && |
| 6261 | { ac_try='test -z "$ac_c_werror_flag" |
| 6262 | || test ! -s conftest.err' |
| 6263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6264 | (eval $ac_try) 2>&5 |
| 6265 | ac_status=$? |
| 6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6267 | (exit $ac_status); }; } && |
| 6268 | { ac_try='test -s conftest$ac_exeext' |
| 6269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6270 | (eval $ac_try) 2>&5 |
| 6271 | ac_status=$? |
| 6272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6273 | (exit $ac_status); }; }; then |
| 6274 | ac_cv_func_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6275 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6276 | echo "$as_me: failed program was:" >&5 |
| 6277 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6278 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6279 | ac_cv_func_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6280 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6281 | rm -f conftest.err conftest.$ac_objext \ |
| 6282 | conftest$ac_exeext conftest.$ac_ext |
| 6283 | fi |
| 6284 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 6285 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6286 | |
| 6287 | if test $ac_cv_func_connect = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6288 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 6289 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 6290 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 6291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6292 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6293 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6294 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6295 | cat >conftest.$ac_ext <<_ACEOF |
| 6296 | /* confdefs.h. */ |
| 6297 | _ACEOF |
| 6298 | cat confdefs.h >>conftest.$ac_ext |
| 6299 | cat >>conftest.$ac_ext <<_ACEOF |
| 6300 | /* end confdefs.h. */ |
| 6301 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6302 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6303 | #ifdef __cplusplus |
| 6304 | extern "C" |
| 6305 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6306 | /* 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] | 6307 | builtin and then its argument prototype would still apply. */ |
| 6308 | char connect (); |
| 6309 | int |
| 6310 | main () |
| 6311 | { |
| 6312 | connect (); |
| 6313 | ; |
| 6314 | return 0; |
| 6315 | } |
| 6316 | _ACEOF |
| 6317 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6319 | (eval $ac_link) 2>conftest.er1 |
| 6320 | ac_status=$? |
| 6321 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6322 | rm -f conftest.er1 |
| 6323 | cat conftest.err >&5 |
| 6324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6325 | (exit $ac_status); } && |
| 6326 | { ac_try='test -z "$ac_c_werror_flag" |
| 6327 | || test ! -s conftest.err' |
| 6328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6329 | (eval $ac_try) 2>&5 |
| 6330 | ac_status=$? |
| 6331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6332 | (exit $ac_status); }; } && |
| 6333 | { ac_try='test -s conftest$ac_exeext' |
| 6334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6335 | (eval $ac_try) 2>&5 |
| 6336 | ac_status=$? |
| 6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6338 | (exit $ac_status); }; }; then |
| 6339 | ac_cv_lib_socket_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6340 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6341 | echo "$as_me: failed program was:" >&5 |
| 6342 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6343 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6344 | ac_cv_lib_socket_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6345 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6346 | rm -f conftest.err conftest.$ac_objext \ |
| 6347 | conftest$ac_exeext conftest.$ac_ext |
| 6348 | LIBS=$ac_check_lib_save_LIBS |
| 6349 | fi |
| 6350 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 6351 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 6352 | if test $ac_cv_lib_socket_connect = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6353 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6354 | fi |
| 6355 | |
| 6356 | fi |
| 6357 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6358 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 6359 | echo "$as_me:$LINENO: checking for remove" >&5 |
| 6360 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 6361 | if test "${ac_cv_func_remove+set}" = set; then |
| 6362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6363 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6364 | cat >conftest.$ac_ext <<_ACEOF |
| 6365 | /* confdefs.h. */ |
| 6366 | _ACEOF |
| 6367 | cat confdefs.h >>conftest.$ac_ext |
| 6368 | cat >>conftest.$ac_ext <<_ACEOF |
| 6369 | /* end confdefs.h. */ |
| 6370 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 6371 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6372 | #define remove innocuous_remove |
| 6373 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6374 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6375 | which can conflict with char remove (); below. |
| 6376 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6377 | <limits.h> exists even on freestanding compilers. */ |
| 6378 | |
| 6379 | #ifdef __STDC__ |
| 6380 | # include <limits.h> |
| 6381 | #else |
| 6382 | # include <assert.h> |
| 6383 | #endif |
| 6384 | |
| 6385 | #undef remove |
| 6386 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6387 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6388 | #ifdef __cplusplus |
| 6389 | extern "C" |
| 6390 | { |
| 6391 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6392 | /* 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] | 6393 | builtin and then its argument prototype would still apply. */ |
| 6394 | char remove (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6395 | /* The GNU C library defines this for functions which it implements |
| 6396 | to always fail with ENOSYS. Some functions are actually named |
| 6397 | something starting with __ and the normal name is an alias. */ |
| 6398 | #if defined (__stub_remove) || defined (__stub___remove) |
| 6399 | choke me |
| 6400 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6401 | char (*f) () = remove; |
| 6402 | #endif |
| 6403 | #ifdef __cplusplus |
| 6404 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6405 | #endif |
| 6406 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6407 | int |
| 6408 | main () |
| 6409 | { |
| 6410 | return f != remove; |
| 6411 | ; |
| 6412 | return 0; |
| 6413 | } |
| 6414 | _ACEOF |
| 6415 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6417 | (eval $ac_link) 2>conftest.er1 |
| 6418 | ac_status=$? |
| 6419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6420 | rm -f conftest.er1 |
| 6421 | cat conftest.err >&5 |
| 6422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6423 | (exit $ac_status); } && |
| 6424 | { ac_try='test -z "$ac_c_werror_flag" |
| 6425 | || test ! -s conftest.err' |
| 6426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6427 | (eval $ac_try) 2>&5 |
| 6428 | ac_status=$? |
| 6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6430 | (exit $ac_status); }; } && |
| 6431 | { ac_try='test -s conftest$ac_exeext' |
| 6432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6433 | (eval $ac_try) 2>&5 |
| 6434 | ac_status=$? |
| 6435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6436 | (exit $ac_status); }; }; then |
| 6437 | ac_cv_func_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6438 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6439 | echo "$as_me: failed program was:" >&5 |
| 6440 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6441 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6442 | ac_cv_func_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6443 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6444 | rm -f conftest.err conftest.$ac_objext \ |
| 6445 | conftest$ac_exeext conftest.$ac_ext |
| 6446 | fi |
| 6447 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 6448 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6449 | |
| 6450 | if test $ac_cv_func_remove = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6451 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 6452 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 6453 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 6454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6455 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6456 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6457 | LIBS="-lposix $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6458 | cat >conftest.$ac_ext <<_ACEOF |
| 6459 | /* confdefs.h. */ |
| 6460 | _ACEOF |
| 6461 | cat confdefs.h >>conftest.$ac_ext |
| 6462 | cat >>conftest.$ac_ext <<_ACEOF |
| 6463 | /* end confdefs.h. */ |
| 6464 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6465 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6466 | #ifdef __cplusplus |
| 6467 | extern "C" |
| 6468 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6469 | /* 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] | 6470 | builtin and then its argument prototype would still apply. */ |
| 6471 | char remove (); |
| 6472 | int |
| 6473 | main () |
| 6474 | { |
| 6475 | remove (); |
| 6476 | ; |
| 6477 | return 0; |
| 6478 | } |
| 6479 | _ACEOF |
| 6480 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6482 | (eval $ac_link) 2>conftest.er1 |
| 6483 | ac_status=$? |
| 6484 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6485 | rm -f conftest.er1 |
| 6486 | cat conftest.err >&5 |
| 6487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6488 | (exit $ac_status); } && |
| 6489 | { ac_try='test -z "$ac_c_werror_flag" |
| 6490 | || test ! -s conftest.err' |
| 6491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6492 | (eval $ac_try) 2>&5 |
| 6493 | ac_status=$? |
| 6494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6495 | (exit $ac_status); }; } && |
| 6496 | { ac_try='test -s conftest$ac_exeext' |
| 6497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6498 | (eval $ac_try) 2>&5 |
| 6499 | ac_status=$? |
| 6500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6501 | (exit $ac_status); }; }; then |
| 6502 | ac_cv_lib_posix_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6503 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6504 | echo "$as_me: failed program was:" >&5 |
| 6505 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6506 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6507 | ac_cv_lib_posix_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6508 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6509 | rm -f conftest.err conftest.$ac_objext \ |
| 6510 | conftest$ac_exeext conftest.$ac_ext |
| 6511 | LIBS=$ac_check_lib_save_LIBS |
| 6512 | fi |
| 6513 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 6514 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 6515 | if test $ac_cv_lib_posix_remove = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6516 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6517 | fi |
| 6518 | |
| 6519 | fi |
| 6520 | |
| 6521 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6522 | echo "$as_me:$LINENO: checking for shmat" >&5 |
| 6523 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 6524 | if test "${ac_cv_func_shmat+set}" = set; then |
| 6525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6526 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6527 | cat >conftest.$ac_ext <<_ACEOF |
| 6528 | /* confdefs.h. */ |
| 6529 | _ACEOF |
| 6530 | cat confdefs.h >>conftest.$ac_ext |
| 6531 | cat >>conftest.$ac_ext <<_ACEOF |
| 6532 | /* end confdefs.h. */ |
| 6533 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 6534 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6535 | #define shmat innocuous_shmat |
| 6536 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6537 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6538 | which can conflict with char shmat (); below. |
| 6539 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6540 | <limits.h> exists even on freestanding compilers. */ |
| 6541 | |
| 6542 | #ifdef __STDC__ |
| 6543 | # include <limits.h> |
| 6544 | #else |
| 6545 | # include <assert.h> |
| 6546 | #endif |
| 6547 | |
| 6548 | #undef shmat |
| 6549 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6550 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6551 | #ifdef __cplusplus |
| 6552 | extern "C" |
| 6553 | { |
| 6554 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6555 | /* 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] | 6556 | builtin and then its argument prototype would still apply. */ |
| 6557 | char shmat (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6558 | /* The GNU C library defines this for functions which it implements |
| 6559 | to always fail with ENOSYS. Some functions are actually named |
| 6560 | something starting with __ and the normal name is an alias. */ |
| 6561 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 6562 | choke me |
| 6563 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6564 | char (*f) () = shmat; |
| 6565 | #endif |
| 6566 | #ifdef __cplusplus |
| 6567 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6568 | #endif |
| 6569 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6570 | int |
| 6571 | main () |
| 6572 | { |
| 6573 | return f != shmat; |
| 6574 | ; |
| 6575 | return 0; |
| 6576 | } |
| 6577 | _ACEOF |
| 6578 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6580 | (eval $ac_link) 2>conftest.er1 |
| 6581 | ac_status=$? |
| 6582 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6583 | rm -f conftest.er1 |
| 6584 | cat conftest.err >&5 |
| 6585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6586 | (exit $ac_status); } && |
| 6587 | { ac_try='test -z "$ac_c_werror_flag" |
| 6588 | || test ! -s conftest.err' |
| 6589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6590 | (eval $ac_try) 2>&5 |
| 6591 | ac_status=$? |
| 6592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6593 | (exit $ac_status); }; } && |
| 6594 | { ac_try='test -s conftest$ac_exeext' |
| 6595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6596 | (eval $ac_try) 2>&5 |
| 6597 | ac_status=$? |
| 6598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6599 | (exit $ac_status); }; }; then |
| 6600 | ac_cv_func_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6601 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6602 | echo "$as_me: failed program was:" >&5 |
| 6603 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6604 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6605 | ac_cv_func_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6606 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6607 | rm -f conftest.err conftest.$ac_objext \ |
| 6608 | conftest$ac_exeext conftest.$ac_ext |
| 6609 | fi |
| 6610 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 6611 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6612 | |
| 6613 | if test $ac_cv_func_shmat = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6614 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 6615 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 6616 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 6617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6618 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6619 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6620 | LIBS="-lipc $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6621 | cat >conftest.$ac_ext <<_ACEOF |
| 6622 | /* confdefs.h. */ |
| 6623 | _ACEOF |
| 6624 | cat confdefs.h >>conftest.$ac_ext |
| 6625 | cat >>conftest.$ac_ext <<_ACEOF |
| 6626 | /* end confdefs.h. */ |
| 6627 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6628 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6629 | #ifdef __cplusplus |
| 6630 | extern "C" |
| 6631 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6632 | /* 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] | 6633 | builtin and then its argument prototype would still apply. */ |
| 6634 | char shmat (); |
| 6635 | int |
| 6636 | main () |
| 6637 | { |
| 6638 | shmat (); |
| 6639 | ; |
| 6640 | return 0; |
| 6641 | } |
| 6642 | _ACEOF |
| 6643 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6645 | (eval $ac_link) 2>conftest.er1 |
| 6646 | ac_status=$? |
| 6647 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6648 | rm -f conftest.er1 |
| 6649 | cat conftest.err >&5 |
| 6650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6651 | (exit $ac_status); } && |
| 6652 | { ac_try='test -z "$ac_c_werror_flag" |
| 6653 | || test ! -s conftest.err' |
| 6654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6655 | (eval $ac_try) 2>&5 |
| 6656 | ac_status=$? |
| 6657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6658 | (exit $ac_status); }; } && |
| 6659 | { ac_try='test -s conftest$ac_exeext' |
| 6660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6661 | (eval $ac_try) 2>&5 |
| 6662 | ac_status=$? |
| 6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6664 | (exit $ac_status); }; }; then |
| 6665 | ac_cv_lib_ipc_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6666 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6667 | echo "$as_me: failed program was:" >&5 |
| 6668 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6669 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6670 | ac_cv_lib_ipc_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6671 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6672 | rm -f conftest.err conftest.$ac_objext \ |
| 6673 | conftest$ac_exeext conftest.$ac_ext |
| 6674 | LIBS=$ac_check_lib_save_LIBS |
| 6675 | fi |
| 6676 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 6677 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 6678 | if test $ac_cv_lib_ipc_shmat = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6679 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6680 | fi |
| 6681 | |
| 6682 | fi |
| 6683 | fi |
| 6684 | |
| 6685 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6686 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6687 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 6688 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 6689 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 6690 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 6691 | # These have to be linked with before -lX11, unlike the other |
| 6692 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6693 | # John Interrante, Karl Berry |
| 6694 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 6695 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 6696 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 6697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6698 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6699 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6700 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6701 | cat >conftest.$ac_ext <<_ACEOF |
| 6702 | /* confdefs.h. */ |
| 6703 | _ACEOF |
| 6704 | cat confdefs.h >>conftest.$ac_ext |
| 6705 | cat >>conftest.$ac_ext <<_ACEOF |
| 6706 | /* end confdefs.h. */ |
| 6707 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6708 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6709 | #ifdef __cplusplus |
| 6710 | extern "C" |
| 6711 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6712 | /* 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] | 6713 | builtin and then its argument prototype would still apply. */ |
| 6714 | char IceConnectionNumber (); |
| 6715 | int |
| 6716 | main () |
| 6717 | { |
| 6718 | IceConnectionNumber (); |
| 6719 | ; |
| 6720 | return 0; |
| 6721 | } |
| 6722 | _ACEOF |
| 6723 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6725 | (eval $ac_link) 2>conftest.er1 |
| 6726 | ac_status=$? |
| 6727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6728 | rm -f conftest.er1 |
| 6729 | cat conftest.err >&5 |
| 6730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6731 | (exit $ac_status); } && |
| 6732 | { ac_try='test -z "$ac_c_werror_flag" |
| 6733 | || test ! -s conftest.err' |
| 6734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6735 | (eval $ac_try) 2>&5 |
| 6736 | ac_status=$? |
| 6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6738 | (exit $ac_status); }; } && |
| 6739 | { ac_try='test -s conftest$ac_exeext' |
| 6740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6741 | (eval $ac_try) 2>&5 |
| 6742 | ac_status=$? |
| 6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6744 | (exit $ac_status); }; }; then |
| 6745 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6746 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6747 | echo "$as_me: failed program was:" >&5 |
| 6748 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6749 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6750 | ac_cv_lib_ICE_IceConnectionNumber=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6751 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6752 | rm -f conftest.err conftest.$ac_objext \ |
| 6753 | conftest$ac_exeext conftest.$ac_ext |
| 6754 | LIBS=$ac_check_lib_save_LIBS |
| 6755 | fi |
| 6756 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 6757 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 6758 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6759 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6760 | fi |
| 6761 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6762 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6763 | |
| 6764 | fi |
| 6765 | |
| 6766 | |
| 6767 | if test "$OS390Unix" = "yes"; then |
| 6768 | CFLAGS="$CFLAGS -W c,dll" |
| 6769 | LDFLAGS="$LDFLAGS -W l,dll" |
| 6770 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 6771 | fi |
| 6772 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6773 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6774 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 6775 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6776 | echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
| 6777 | echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6778 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6779 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 6780 | uname -r | grep '^5' >/dev/null; then |
| 6781 | X_LIBS="$X_LIBS -R $x_libraries" |
| 6782 | fi |
| 6783 | fi |
| 6784 | |
| 6785 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 6786 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6787 | echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
| 6788 | echo "${ECHO_T}Corrected X includes to $x_includes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6789 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6790 | fi |
| 6791 | |
| 6792 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 6793 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 6794 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 6795 | |
| 6796 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6797 | echo "$as_me:$LINENO: checking if X11 header files can be found" >&5 |
| 6798 | 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] | 6799 | cflags_save=$CFLAGS |
| 6800 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6801 | cat >conftest.$ac_ext <<_ACEOF |
| 6802 | /* confdefs.h. */ |
| 6803 | _ACEOF |
| 6804 | cat confdefs.h >>conftest.$ac_ext |
| 6805 | cat >>conftest.$ac_ext <<_ACEOF |
| 6806 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6807 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6808 | int |
| 6809 | main () |
| 6810 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6811 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6812 | ; |
| 6813 | return 0; |
| 6814 | } |
| 6815 | _ACEOF |
| 6816 | rm -f conftest.$ac_objext |
| 6817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6818 | (eval $ac_compile) 2>conftest.er1 |
| 6819 | ac_status=$? |
| 6820 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6821 | rm -f conftest.er1 |
| 6822 | cat conftest.err >&5 |
| 6823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6824 | (exit $ac_status); } && |
| 6825 | { ac_try='test -z "$ac_c_werror_flag" |
| 6826 | || test ! -s conftest.err' |
| 6827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6828 | (eval $ac_try) 2>&5 |
| 6829 | ac_status=$? |
| 6830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6831 | (exit $ac_status); }; } && |
| 6832 | { ac_try='test -s conftest.$ac_objext' |
| 6833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6834 | (eval $ac_try) 2>&5 |
| 6835 | ac_status=$? |
| 6836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6837 | (exit $ac_status); }; }; then |
| 6838 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6839 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6840 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6841 | echo "$as_me: failed program was:" >&5 |
| 6842 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6843 | |
| 6844 | echo "$as_me:$LINENO: result: no" >&5 |
| 6845 | echo "${ECHO_T}no" >&6; no_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6846 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6848 | CFLAGS=$cflags_save |
| 6849 | |
| 6850 | if test "${no_x-no}" = yes; then |
| 6851 | with_x=no |
| 6852 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6853 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6854 | #define HAVE_X11 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6855 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6856 | |
| 6857 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6858 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6859 | |
| 6860 | ac_save_LDFLAGS="$LDFLAGS" |
| 6861 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 6862 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6863 | echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 6864 | echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6 |
| 6865 | if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then |
| 6866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6867 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6868 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6869 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6870 | cat >conftest.$ac_ext <<_ACEOF |
| 6871 | /* confdefs.h. */ |
| 6872 | _ACEOF |
| 6873 | cat confdefs.h >>conftest.$ac_ext |
| 6874 | cat >>conftest.$ac_ext <<_ACEOF |
| 6875 | /* end confdefs.h. */ |
| 6876 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6877 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6878 | #ifdef __cplusplus |
| 6879 | extern "C" |
| 6880 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6881 | /* 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] | 6882 | builtin and then its argument prototype would still apply. */ |
| 6883 | char _XdmcpAuthDoIt (); |
| 6884 | int |
| 6885 | main () |
| 6886 | { |
| 6887 | _XdmcpAuthDoIt (); |
| 6888 | ; |
| 6889 | return 0; |
| 6890 | } |
| 6891 | _ACEOF |
| 6892 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6894 | (eval $ac_link) 2>conftest.er1 |
| 6895 | ac_status=$? |
| 6896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6897 | rm -f conftest.er1 |
| 6898 | cat conftest.err >&5 |
| 6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6900 | (exit $ac_status); } && |
| 6901 | { ac_try='test -z "$ac_c_werror_flag" |
| 6902 | || test ! -s conftest.err' |
| 6903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6904 | (eval $ac_try) 2>&5 |
| 6905 | ac_status=$? |
| 6906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6907 | (exit $ac_status); }; } && |
| 6908 | { ac_try='test -s conftest$ac_exeext' |
| 6909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6910 | (eval $ac_try) 2>&5 |
| 6911 | ac_status=$? |
| 6912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6913 | (exit $ac_status); }; }; then |
| 6914 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6915 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6916 | echo "$as_me: failed program was:" >&5 |
| 6917 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6918 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6919 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6920 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6921 | rm -f conftest.err conftest.$ac_objext \ |
| 6922 | conftest$ac_exeext conftest.$ac_ext |
| 6923 | LIBS=$ac_check_lib_save_LIBS |
| 6924 | fi |
| 6925 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 6926 | echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6 |
| 6927 | if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6928 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6929 | fi |
| 6930 | |
| 6931 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6932 | echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
| 6933 | echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6 |
| 6934 | if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
| 6935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6936 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6937 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6938 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6939 | cat >conftest.$ac_ext <<_ACEOF |
| 6940 | /* confdefs.h. */ |
| 6941 | _ACEOF |
| 6942 | cat confdefs.h >>conftest.$ac_ext |
| 6943 | cat >>conftest.$ac_ext <<_ACEOF |
| 6944 | /* end confdefs.h. */ |
| 6945 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6946 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6947 | #ifdef __cplusplus |
| 6948 | extern "C" |
| 6949 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6950 | /* 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] | 6951 | builtin and then its argument prototype would still apply. */ |
| 6952 | char IceOpenConnection (); |
| 6953 | int |
| 6954 | main () |
| 6955 | { |
| 6956 | IceOpenConnection (); |
| 6957 | ; |
| 6958 | return 0; |
| 6959 | } |
| 6960 | _ACEOF |
| 6961 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6963 | (eval $ac_link) 2>conftest.er1 |
| 6964 | ac_status=$? |
| 6965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6966 | rm -f conftest.er1 |
| 6967 | cat conftest.err >&5 |
| 6968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6969 | (exit $ac_status); } && |
| 6970 | { ac_try='test -z "$ac_c_werror_flag" |
| 6971 | || test ! -s conftest.err' |
| 6972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6973 | (eval $ac_try) 2>&5 |
| 6974 | ac_status=$? |
| 6975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6976 | (exit $ac_status); }; } && |
| 6977 | { ac_try='test -s conftest$ac_exeext' |
| 6978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6979 | (eval $ac_try) 2>&5 |
| 6980 | ac_status=$? |
| 6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6982 | (exit $ac_status); }; }; then |
| 6983 | ac_cv_lib_ICE_IceOpenConnection=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6984 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6985 | echo "$as_me: failed program was:" >&5 |
| 6986 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6987 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6988 | ac_cv_lib_ICE_IceOpenConnection=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6989 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6990 | rm -f conftest.err conftest.$ac_objext \ |
| 6991 | conftest$ac_exeext conftest.$ac_ext |
| 6992 | LIBS=$ac_check_lib_save_LIBS |
| 6993 | fi |
| 6994 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 6995 | echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6 |
| 6996 | if test $ac_cv_lib_ICE_IceOpenConnection = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6997 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6998 | fi |
| 6999 | |
| 7000 | |
| 7001 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7002 | echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 7003 | echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 |
| 7004 | if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
| 7005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7006 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7007 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7008 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7009 | cat >conftest.$ac_ext <<_ACEOF |
| 7010 | /* confdefs.h. */ |
| 7011 | _ACEOF |
| 7012 | cat confdefs.h >>conftest.$ac_ext |
| 7013 | cat >>conftest.$ac_ext <<_ACEOF |
| 7014 | /* end confdefs.h. */ |
| 7015 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7016 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7017 | #ifdef __cplusplus |
| 7018 | extern "C" |
| 7019 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7020 | /* 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] | 7021 | builtin and then its argument prototype would still apply. */ |
| 7022 | char XpmCreatePixmapFromData (); |
| 7023 | int |
| 7024 | main () |
| 7025 | { |
| 7026 | XpmCreatePixmapFromData (); |
| 7027 | ; |
| 7028 | return 0; |
| 7029 | } |
| 7030 | _ACEOF |
| 7031 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7033 | (eval $ac_link) 2>conftest.er1 |
| 7034 | ac_status=$? |
| 7035 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7036 | rm -f conftest.er1 |
| 7037 | cat conftest.err >&5 |
| 7038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7039 | (exit $ac_status); } && |
| 7040 | { ac_try='test -z "$ac_c_werror_flag" |
| 7041 | || test ! -s conftest.err' |
| 7042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7043 | (eval $ac_try) 2>&5 |
| 7044 | ac_status=$? |
| 7045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7046 | (exit $ac_status); }; } && |
| 7047 | { ac_try='test -s conftest$ac_exeext' |
| 7048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7049 | (eval $ac_try) 2>&5 |
| 7050 | ac_status=$? |
| 7051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7052 | (exit $ac_status); }; }; then |
| 7053 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7054 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7055 | echo "$as_me: failed program was:" >&5 |
| 7056 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7057 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7058 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7059 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7060 | rm -f conftest.err conftest.$ac_objext \ |
| 7061 | conftest$ac_exeext conftest.$ac_ext |
| 7062 | LIBS=$ac_check_lib_save_LIBS |
| 7063 | fi |
| 7064 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 7065 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 |
| 7066 | if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7067 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7068 | fi |
| 7069 | |
| 7070 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7071 | echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
| 7072 | 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] | 7073 | cflags_save=$CFLAGS |
| 7074 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7075 | cat >conftest.$ac_ext <<_ACEOF |
| 7076 | /* confdefs.h. */ |
| 7077 | _ACEOF |
| 7078 | cat confdefs.h >>conftest.$ac_ext |
| 7079 | cat >>conftest.$ac_ext <<_ACEOF |
| 7080 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7081 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7082 | int |
| 7083 | main () |
| 7084 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7085 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7086 | ; |
| 7087 | return 0; |
| 7088 | } |
| 7089 | _ACEOF |
| 7090 | rm -f conftest.$ac_objext |
| 7091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7092 | (eval $ac_compile) 2>conftest.er1 |
| 7093 | ac_status=$? |
| 7094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7095 | rm -f conftest.er1 |
| 7096 | cat conftest.err >&5 |
| 7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7098 | (exit $ac_status); } && |
| 7099 | { ac_try='test -z "$ac_c_werror_flag" |
| 7100 | || test ! -s conftest.err' |
| 7101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7102 | (eval $ac_try) 2>&5 |
| 7103 | ac_status=$? |
| 7104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7105 | (exit $ac_status); }; } && |
| 7106 | { ac_try='test -s conftest.$ac_objext' |
| 7107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7108 | (eval $ac_try) 2>&5 |
| 7109 | ac_status=$? |
| 7110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7111 | (exit $ac_status); }; }; then |
| 7112 | echo "$as_me:$LINENO: result: no" >&5 |
| 7113 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7114 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7115 | echo "$as_me: failed program was:" >&5 |
| 7116 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7117 | |
| 7118 | CFLAGS="$CFLAGS -Wno-implicit-int" |
| 7119 | cat >conftest.$ac_ext <<_ACEOF |
| 7120 | /* confdefs.h. */ |
| 7121 | _ACEOF |
| 7122 | cat confdefs.h >>conftest.$ac_ext |
| 7123 | cat >>conftest.$ac_ext <<_ACEOF |
| 7124 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7125 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7126 | int |
| 7127 | main () |
| 7128 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7129 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7130 | ; |
| 7131 | return 0; |
| 7132 | } |
| 7133 | _ACEOF |
| 7134 | rm -f conftest.$ac_objext |
| 7135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7136 | (eval $ac_compile) 2>conftest.er1 |
| 7137 | ac_status=$? |
| 7138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7139 | rm -f conftest.er1 |
| 7140 | cat conftest.err >&5 |
| 7141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7142 | (exit $ac_status); } && |
| 7143 | { ac_try='test -z "$ac_c_werror_flag" |
| 7144 | || test ! -s conftest.err' |
| 7145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7146 | (eval $ac_try) 2>&5 |
| 7147 | ac_status=$? |
| 7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7149 | (exit $ac_status); }; } && |
| 7150 | { ac_try='test -s conftest.$ac_objext' |
| 7151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7152 | (eval $ac_try) 2>&5 |
| 7153 | ac_status=$? |
| 7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7155 | (exit $ac_status); }; }; then |
| 7156 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7157 | echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7158 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7159 | echo "$as_me: failed program was:" >&5 |
| 7160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7161 | |
| 7162 | echo "$as_me:$LINENO: result: test failed" >&5 |
| 7163 | echo "${ECHO_T}test failed" >&6 |
| 7164 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7165 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7167 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7168 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7170 | CFLAGS=$cflags_save |
| 7171 | |
| 7172 | LDFLAGS="$ac_save_LDFLAGS" |
| 7173 | |
| 7174 | fi |
| 7175 | fi |
| 7176 | |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 7177 | 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] | 7178 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7179 | echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
| 7180 | echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7181 | # Check whether --enable-gui or --disable-gui was given. |
| 7182 | if test "${enable_gui+set}" = set; then |
| 7183 | enableval="$enable_gui" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7184 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7185 | else |
| 7186 | enable_gui="auto" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7187 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7188 | |
| 7189 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 7190 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 7191 | |
| 7192 | SKIP_GTK=YES |
| 7193 | SKIP_GTK2=YES |
| 7194 | SKIP_GNOME=YES |
| 7195 | SKIP_MOTIF=YES |
| 7196 | SKIP_ATHENA=YES |
| 7197 | SKIP_NEXTAW=YES |
| 7198 | SKIP_PHOTON=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7199 | SKIP_CARBON=YES |
| 7200 | GUITYPE=NONE |
| 7201 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7202 | if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7203 | SKIP_PHOTON= |
| 7204 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7205 | no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7206 | echo "${ECHO_T}no GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7207 | SKIP_PHOTON=YES ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7208 | yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 7209 | echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
| 7210 | auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 7211 | echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
| 7212 | photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5 |
| 7213 | echo "${ECHO_T}Photon GUI support" >&6 ;; |
| 7214 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7215 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7216 | SKIP_PHOTON=YES ;; |
| 7217 | esac |
| 7218 | |
| 7219 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 7220 | SKIP_CARBON= |
| 7221 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7222 | no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7223 | echo "${ECHO_T}no GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7224 | SKIP_CARBON=YES ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7225 | yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 7226 | echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
| 7227 | auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 7228 | echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
| 7229 | carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5 |
| 7230 | echo "${ECHO_T}Carbon GUI support" >&6 ;; |
| 7231 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7232 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7233 | SKIP_CARBON=YES ;; |
| 7234 | esac |
| 7235 | |
| 7236 | else |
| 7237 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7238 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7239 | no|none) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7240 | echo "${ECHO_T}no GUI support" >&6 ;; |
| 7241 | yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 |
| 7242 | echo "${ECHO_T}yes/auto - automatic GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7243 | SKIP_GTK= |
| 7244 | SKIP_GTK2= |
| 7245 | SKIP_GNOME= |
| 7246 | SKIP_MOTIF= |
| 7247 | SKIP_ATHENA= |
| 7248 | SKIP_NEXTAW= |
| 7249 | SKIP_CARBON=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7250 | gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
| 7251 | echo "${ECHO_T}GTK+ 1.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7252 | SKIP_GTK=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7253 | gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
| 7254 | echo "${ECHO_T}GTK+ 2.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7255 | SKIP_GTK= |
| 7256 | SKIP_GTK2=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7257 | gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
| 7258 | echo "${ECHO_T}GNOME 1.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7259 | SKIP_GNOME= |
| 7260 | SKIP_GTK=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7261 | gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
| 7262 | echo "${ECHO_T}GNOME 2.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7263 | SKIP_GNOME= |
| 7264 | SKIP_GTK= |
| 7265 | SKIP_GTK2=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7266 | motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
| 7267 | echo "${ECHO_T}Motif GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7268 | SKIP_MOTIF=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7269 | athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
| 7270 | echo "${ECHO_T}Athena GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7271 | SKIP_ATHENA=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7272 | nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
| 7273 | echo "${ECHO_T}neXtaw GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7274 | SKIP_NEXTAW=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7275 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7276 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7277 | esac |
| 7278 | |
| 7279 | fi |
| 7280 | |
| 7281 | 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] | 7282 | echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
| 7283 | 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] | 7284 | # Check whether --enable-gtk-check or --disable-gtk-check was given. |
| 7285 | if test "${enable_gtk_check+set}" = set; then |
| 7286 | enableval="$enable_gtk_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7287 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7288 | else |
| 7289 | enable_gtk_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7290 | fi; |
| 7291 | echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
| 7292 | echo "${ECHO_T}$enable_gtk_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7293 | if test "x$enable_gtk_check" = "xno"; then |
| 7294 | SKIP_GTK=YES |
| 7295 | SKIP_GNOME=YES |
| 7296 | fi |
| 7297 | fi |
| 7298 | |
| 7299 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 7300 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7301 | echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
| 7302 | 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] | 7303 | # Check whether --enable-gtk2-check or --disable-gtk2-check was given. |
| 7304 | if test "${enable_gtk2_check+set}" = set; then |
| 7305 | enableval="$enable_gtk2_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7306 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7307 | else |
| 7308 | enable_gtk2_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7309 | fi; |
| 7310 | echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
| 7311 | echo "${ECHO_T}$enable_gtk2_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7312 | if test "x$enable_gtk2_check" = "xno"; then |
| 7313 | SKIP_GTK2=YES |
| 7314 | fi |
| 7315 | fi |
| 7316 | |
| 7317 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 7318 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7319 | echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
| 7320 | 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] | 7321 | # Check whether --enable-gnome-check or --disable-gnome-check was given. |
| 7322 | if test "${enable_gnome_check+set}" = set; then |
| 7323 | enableval="$enable_gnome_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7324 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7325 | else |
| 7326 | enable_gnome_check="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7327 | fi; |
| 7328 | echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
| 7329 | echo "${ECHO_T}$enable_gnome_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7330 | if test "x$enable_gnome_check" = "xno"; then |
| 7331 | SKIP_GNOME=YES |
| 7332 | fi |
| 7333 | fi |
| 7334 | |
| 7335 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7336 | echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
| 7337 | 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] | 7338 | # Check whether --enable-motif-check or --disable-motif-check was given. |
| 7339 | if test "${enable_motif_check+set}" = set; then |
| 7340 | enableval="$enable_motif_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7341 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7342 | else |
| 7343 | enable_motif_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7344 | fi; |
| 7345 | echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
| 7346 | echo "${ECHO_T}$enable_motif_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7347 | if test "x$enable_motif_check" = "xno"; then |
| 7348 | SKIP_MOTIF=YES |
| 7349 | fi |
| 7350 | fi |
| 7351 | |
| 7352 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7353 | echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
| 7354 | 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] | 7355 | # Check whether --enable-athena-check or --disable-athena-check was given. |
| 7356 | if test "${enable_athena_check+set}" = set; then |
| 7357 | enableval="$enable_athena_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7358 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7359 | else |
| 7360 | enable_athena_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7361 | fi; |
| 7362 | echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
| 7363 | echo "${ECHO_T}$enable_athena_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7364 | if test "x$enable_athena_check" = "xno"; then |
| 7365 | SKIP_ATHENA=YES |
| 7366 | fi |
| 7367 | fi |
| 7368 | |
| 7369 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7370 | echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
| 7371 | 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] | 7372 | # Check whether --enable-nextaw-check or --disable-nextaw-check was given. |
| 7373 | if test "${enable_nextaw_check+set}" = set; then |
| 7374 | enableval="$enable_nextaw_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7375 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7376 | else |
| 7377 | enable_nextaw_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7378 | fi; |
| 7379 | echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
| 7380 | echo "${ECHO_T}$enable_nextaw_check" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7381 | if test "x$enable_nextaw_check" = "xno"; then |
| 7382 | SKIP_NEXTAW=YES |
| 7383 | fi |
| 7384 | fi |
| 7385 | |
| 7386 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7387 | echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
| 7388 | 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] | 7389 | # Check whether --enable-carbon-check or --disable-carbon-check was given. |
| 7390 | if test "${enable_carbon_check+set}" = set; then |
| 7391 | enableval="$enable_carbon_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7392 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7393 | else |
| 7394 | enable_carbon_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7395 | fi; |
| 7396 | echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
| 7397 | echo "${ECHO_T}$enable_carbon_check" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7398 | if test "x$enable_carbon_check" = "xno"; then |
| 7399 | SKIP_CARBON=YES |
| 7400 | fi |
| 7401 | fi |
| 7402 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7403 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7404 | 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] | 7405 | echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
| 7406 | echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6 |
| 7407 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7408 | echo "${ECHO_T}yes" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7409 | GUITYPE=CARBONGUI |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 7410 | if test "$VIMNAME" = "vim"; then |
| 7411 | VIMNAME=Vim |
| 7412 | fi |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 7413 | |
| 7414 | if test x$prefix = xNONE; then |
| 7415 | prefix=/Applications |
| 7416 | fi |
| 7417 | |
| 7418 | datadir='${prefix}/Vim.app/Contents/Resources' |
| 7419 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7420 | SKIP_GTK=YES; |
| 7421 | SKIP_GTK2=YES; |
| 7422 | SKIP_GNOME=YES; |
| 7423 | SKIP_MOTIF=YES; |
| 7424 | SKIP_ATHENA=YES; |
| 7425 | SKIP_NEXTAW=YES; |
| 7426 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7427 | SKIP_CARBON=YES |
| 7428 | fi |
| 7429 | |
| 7430 | |
| 7431 | |
| 7432 | |
| 7433 | |
| 7434 | |
| 7435 | |
| 7436 | |
| 7437 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7438 | if test -z "$SKIP_GTK"; then |
| 7439 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7440 | echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 7441 | echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6 |
| 7442 | |
| 7443 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7444 | if test "${with_gtk_prefix+set}" = set; then |
| 7445 | withval="$with_gtk_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7446 | gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 7447 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7448 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7449 | gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 7450 | echo "${ECHO_T}no" >&6 |
| 7451 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7452 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7453 | echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 7454 | echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7455 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7456 | # 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] | 7457 | if test "${with_gtk_exec_prefix+set}" = set; then |
| 7458 | withval="$with_gtk_exec_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7459 | gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 7460 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7461 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7462 | gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 7463 | echo "${ECHO_T}no" >&6 |
| 7464 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7465 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7466 | echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 7467 | echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7468 | # Check whether --enable-gtktest or --disable-gtktest was given. |
| 7469 | if test "${enable_gtktest+set}" = set; then |
| 7470 | enableval="$enable_gtktest" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7471 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7472 | else |
| 7473 | enable_gtktest=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7474 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7475 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7476 | echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 7477 | echo "${ECHO_T}gtk test enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7478 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7479 | echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 7480 | echo "${ECHO_T}gtk test disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7481 | fi |
| 7482 | |
| 7483 | if test "x$gtk_config_prefix" != "x" ; then |
| 7484 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 7485 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 7486 | fi |
| 7487 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 7488 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 7489 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 7490 | fi |
| 7491 | if test "X$GTK_CONFIG" = "X"; then |
| 7492 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 7493 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7496 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
| 7497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7498 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7499 | case $GTK_CONFIG in |
| 7500 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7501 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 7502 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7503 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7505 | for as_dir in $PATH |
| 7506 | do |
| 7507 | IFS=$as_save_IFS |
| 7508 | test -z "$as_dir" && as_dir=. |
| 7509 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7510 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7511 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7512 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7513 | break 2 |
| 7514 | fi |
| 7515 | done |
| 7516 | done |
| 7517 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7518 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 7519 | ;; |
| 7520 | esac |
| 7521 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7522 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
| 7523 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7524 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7525 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 7526 | echo "${ECHO_T}$GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7527 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7528 | echo "$as_me:$LINENO: result: no" >&5 |
| 7529 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7530 | fi |
| 7531 | |
| 7532 | if test "X$GTK_CONFIG" = "Xno"; then |
| 7533 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 7534 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7537 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
| 7538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7539 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7540 | case $GTK12_CONFIG in |
| 7541 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7542 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 7543 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7544 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7546 | for as_dir in $PATH |
| 7547 | do |
| 7548 | IFS=$as_save_IFS |
| 7549 | test -z "$as_dir" && as_dir=. |
| 7550 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7551 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7552 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7553 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7554 | break 2 |
| 7555 | fi |
| 7556 | done |
| 7557 | done |
| 7558 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7559 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 7560 | ;; |
| 7561 | esac |
| 7562 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7563 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
| 7564 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7565 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7566 | echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 7567 | echo "${ECHO_T}$GTK12_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7568 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7569 | echo "$as_me:$LINENO: result: no" >&5 |
| 7570 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7571 | fi |
| 7572 | |
| 7573 | GTK_CONFIG="$GTK12_CONFIG" |
| 7574 | fi |
| 7575 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7576 | echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 7577 | echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7578 | fi |
| 7579 | if test "X$PKG_CONFIG" = "X"; then |
| 7580 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 7581 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7582 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7584 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 7585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7586 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7587 | case $PKG_CONFIG in |
| 7588 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7589 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 7590 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7591 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7593 | for as_dir in $PATH |
| 7594 | do |
| 7595 | IFS=$as_save_IFS |
| 7596 | test -z "$as_dir" && as_dir=. |
| 7597 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7598 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7599 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7601 | break 2 |
| 7602 | fi |
| 7603 | done |
| 7604 | done |
| 7605 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7606 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 7607 | ;; |
| 7608 | esac |
| 7609 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7610 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 7611 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7612 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7613 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 7614 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7615 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7616 | echo "$as_me:$LINENO: result: no" >&5 |
| 7617 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7618 | fi |
| 7619 | |
| 7620 | fi |
| 7621 | |
| 7622 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 7623 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7624 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7625 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 7626 | { |
| 7627 | min_gtk_version=2.2.0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7628 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 7629 | 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] | 7630 | no_gtk="" |
| 7631 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 7632 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 7633 | { |
| 7634 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7635 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7636 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 7637 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7638 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7639 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7640 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7641 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7642 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7643 | } |
| 7644 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 7645 | { |
| 7646 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7647 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7648 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 7649 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7650 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7651 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7652 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7653 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7654 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7655 | } |
| 7656 | else |
| 7657 | no_gtk=yes |
| 7658 | fi |
| 7659 | |
| 7660 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 7661 | { |
| 7662 | ac_save_CFLAGS="$CFLAGS" |
| 7663 | ac_save_LIBS="$LIBS" |
| 7664 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 7665 | LIBS="$LIBS $GTK_LIBS" |
| 7666 | |
| 7667 | rm -f conf.gtktest |
| 7668 | if test "$cross_compiling" = yes; then |
| 7669 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 7670 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7671 | cat >conftest.$ac_ext <<_ACEOF |
| 7672 | /* confdefs.h. */ |
| 7673 | _ACEOF |
| 7674 | cat confdefs.h >>conftest.$ac_ext |
| 7675 | cat >>conftest.$ac_ext <<_ACEOF |
| 7676 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7677 | |
| 7678 | #include <gtk/gtk.h> |
| 7679 | #include <stdio.h> |
| 7680 | |
| 7681 | int |
| 7682 | main () |
| 7683 | { |
| 7684 | int major, minor, micro; |
| 7685 | char *tmp_version; |
| 7686 | |
| 7687 | system ("touch conf.gtktest"); |
| 7688 | |
| 7689 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 7690 | tmp_version = g_strdup("$min_gtk_version"); |
| 7691 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 7692 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 7693 | exit(1); |
| 7694 | } |
| 7695 | |
| 7696 | if ((gtk_major_version > major) || |
| 7697 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 7698 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 7699 | (gtk_micro_version >= micro))) |
| 7700 | { |
| 7701 | return 0; |
| 7702 | } |
| 7703 | return 1; |
| 7704 | } |
| 7705 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7706 | _ACEOF |
| 7707 | rm -f conftest$ac_exeext |
| 7708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7709 | (eval $ac_link) 2>&5 |
| 7710 | ac_status=$? |
| 7711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7712 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7714 | (eval $ac_try) 2>&5 |
| 7715 | ac_status=$? |
| 7716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7717 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7718 | : |
| 7719 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7720 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7721 | echo "$as_me: failed program was:" >&5 |
| 7722 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7723 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7724 | ( exit $ac_status ) |
| 7725 | no_gtk=yes |
| 7726 | fi |
| 7727 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7728 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7729 | CFLAGS="$ac_save_CFLAGS" |
| 7730 | LIBS="$ac_save_LIBS" |
| 7731 | } |
| 7732 | fi |
| 7733 | if test "x$no_gtk" = x ; then |
| 7734 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7735 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7736 | 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] | 7737 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7738 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7739 | 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] | 7740 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7741 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 7742 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7743 | GUI_INC_LOC="$GTK_CFLAGS" |
| 7744 | else |
| 7745 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7746 | echo "$as_me:$LINENO: result: no" >&5 |
| 7747 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7748 | GTK_CFLAGS="" |
| 7749 | GTK_LIBS="" |
| 7750 | : |
| 7751 | } |
| 7752 | fi |
| 7753 | } |
| 7754 | else |
| 7755 | GTK_CFLAGS="" |
| 7756 | GTK_LIBS="" |
| 7757 | : |
| 7758 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7759 | |
| 7760 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7761 | rm -f conf.gtktest |
| 7762 | |
| 7763 | if test "x$GTK_CFLAGS" != "x"; then |
| 7764 | SKIP_ATHENA=YES |
| 7765 | SKIP_NEXTAW=YES |
| 7766 | SKIP_MOTIF=YES |
| 7767 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7768 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7769 | fi |
| 7770 | fi |
| 7771 | |
| 7772 | if test "x$GUITYPE" != "xGTK"; then |
| 7773 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7774 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7775 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 7776 | { |
| 7777 | min_gtk_version=1.1.16 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7778 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 7779 | 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] | 7780 | no_gtk="" |
| 7781 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 7782 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 7783 | { |
| 7784 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7785 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7786 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 7787 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7788 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7789 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7790 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7791 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7792 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7793 | } |
| 7794 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 7795 | { |
| 7796 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7797 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7798 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 7799 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7800 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7801 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7802 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7803 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7804 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7805 | } |
| 7806 | else |
| 7807 | no_gtk=yes |
| 7808 | fi |
| 7809 | |
| 7810 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 7811 | { |
| 7812 | ac_save_CFLAGS="$CFLAGS" |
| 7813 | ac_save_LIBS="$LIBS" |
| 7814 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 7815 | LIBS="$LIBS $GTK_LIBS" |
| 7816 | |
| 7817 | rm -f conf.gtktest |
| 7818 | if test "$cross_compiling" = yes; then |
| 7819 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 7820 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7821 | cat >conftest.$ac_ext <<_ACEOF |
| 7822 | /* confdefs.h. */ |
| 7823 | _ACEOF |
| 7824 | cat confdefs.h >>conftest.$ac_ext |
| 7825 | cat >>conftest.$ac_ext <<_ACEOF |
| 7826 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7827 | |
| 7828 | #include <gtk/gtk.h> |
| 7829 | #include <stdio.h> |
| 7830 | |
| 7831 | int |
| 7832 | main () |
| 7833 | { |
| 7834 | int major, minor, micro; |
| 7835 | char *tmp_version; |
| 7836 | |
| 7837 | system ("touch conf.gtktest"); |
| 7838 | |
| 7839 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 7840 | tmp_version = g_strdup("$min_gtk_version"); |
| 7841 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 7842 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 7843 | exit(1); |
| 7844 | } |
| 7845 | |
| 7846 | if ((gtk_major_version > major) || |
| 7847 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 7848 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 7849 | (gtk_micro_version >= micro))) |
| 7850 | { |
| 7851 | return 0; |
| 7852 | } |
| 7853 | return 1; |
| 7854 | } |
| 7855 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7856 | _ACEOF |
| 7857 | rm -f conftest$ac_exeext |
| 7858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7859 | (eval $ac_link) 2>&5 |
| 7860 | ac_status=$? |
| 7861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7862 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7864 | (eval $ac_try) 2>&5 |
| 7865 | ac_status=$? |
| 7866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7867 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7868 | : |
| 7869 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7870 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7871 | echo "$as_me: failed program was:" >&5 |
| 7872 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7873 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7874 | ( exit $ac_status ) |
| 7875 | no_gtk=yes |
| 7876 | fi |
| 7877 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7878 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7879 | CFLAGS="$ac_save_CFLAGS" |
| 7880 | LIBS="$ac_save_LIBS" |
| 7881 | } |
| 7882 | fi |
| 7883 | if test "x$no_gtk" = x ; then |
| 7884 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7885 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7886 | 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] | 7887 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7888 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7889 | 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] | 7890 | fi |
| 7891 | GTK_LIBNAME="$GTK_LIBS" |
| 7892 | GUI_INC_LOC="$GTK_CFLAGS" |
| 7893 | else |
| 7894 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7895 | echo "$as_me:$LINENO: result: no" >&5 |
| 7896 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7897 | GTK_CFLAGS="" |
| 7898 | GTK_LIBS="" |
| 7899 | : |
| 7900 | } |
| 7901 | fi |
| 7902 | } |
| 7903 | else |
| 7904 | GTK_CFLAGS="" |
| 7905 | GTK_LIBS="" |
| 7906 | : |
| 7907 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7908 | |
| 7909 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7910 | rm -f conf.gtktest |
| 7911 | |
| 7912 | if test "x$GTK_CFLAGS" != "x"; then |
| 7913 | SKIP_ATHENA=YES |
| 7914 | SKIP_NEXTAW=YES |
| 7915 | SKIP_MOTIF=YES |
| 7916 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7917 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7918 | fi |
| 7919 | fi |
| 7920 | fi |
| 7921 | if test "x$GUITYPE" = "xGTK"; then |
| 7922 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 7923 | -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] | 7924 | echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 7925 | 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] | 7926 | else |
| 7927 | { |
| 7928 | if test "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7929 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7930 | #define HAVE_GTK2 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7931 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7932 | |
| 7933 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 7934 | || test "0$gtk_minor_version" -ge 2 \ |
| 7935 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7936 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7937 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7938 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7939 | |
| 7940 | fi |
| 7941 | fi |
| 7942 | if test -z "$SKIP_GNOME"; then |
| 7943 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7944 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7945 | |
| 7946 | |
| 7947 | |
| 7948 | |
| 7949 | |
| 7950 | # Check whether --with-gnome-includes or --without-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7951 | if test "${with_gnome_includes+set}" = set; then |
| 7952 | withval="$with_gnome_includes" |
| 7953 | CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7954 | |
| 7955 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7956 | |
| 7957 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7958 | # Check whether --with-gnome-libs or --without-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7959 | if test "${with_gnome_libs+set}" = set; then |
| 7960 | withval="$with_gnome_libs" |
| 7961 | LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7962 | |
| 7963 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7964 | |
| 7965 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7966 | # Check whether --with-gnome or --without-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7967 | if test "${with_gnome+set}" = set; then |
| 7968 | withval="$with_gnome" |
| 7969 | if test x$withval = xyes; then |
| 7970 | want_gnome=yes |
| 7971 | have_gnome=yes |
| 7972 | else |
| 7973 | if test "x$withval" = xno; then |
| 7974 | want_gnome=no |
| 7975 | else |
| 7976 | want_gnome=yes |
| 7977 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 7978 | CFLAGS="$CFLAGS -I$withval/include" |
| 7979 | gnome_prefix=$withval/lib |
| 7980 | fi |
| 7981 | fi |
| 7982 | else |
| 7983 | want_gnome=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7984 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7985 | |
| 7986 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 7987 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7988 | echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 7989 | echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7990 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7991 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7992 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7993 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 7994 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 7995 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 7996 | |
| 7997 | echo "$as_me:$LINENO: checking for FreeBSD" >&5 |
| 7998 | echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6 |
| 7999 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 8000 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8001 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 8002 | GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 8003 | GNOME_LIBS="$GNOME_LIBS -pthread" |
| 8004 | else |
| 8005 | echo "$as_me:$LINENO: result: no" >&5 |
| 8006 | echo "${ECHO_T}no" >&6 |
| 8007 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8008 | have_gnome=yes |
| 8009 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8010 | echo "$as_me:$LINENO: result: not found" >&5 |
| 8011 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8012 | if test "x" = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8013 | { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 8014 | echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;} |
| 8015 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8016 | fi |
| 8017 | fi |
| 8018 | } |
| 8019 | elif test "x$want_gnome" = xyes; then |
| 8020 | { |
| 8021 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 8022 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8023 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 8024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8025 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
| 8026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8027 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8028 | case $GNOME_CONFIG in |
| 8029 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8030 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 8031 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8032 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8034 | for as_dir in $PATH |
| 8035 | do |
| 8036 | IFS=$as_save_IFS |
| 8037 | test -z "$as_dir" && as_dir=. |
| 8038 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8039 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8040 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8041 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8042 | break 2 |
| 8043 | fi |
| 8044 | done |
| 8045 | done |
| 8046 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8047 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 8048 | ;; |
| 8049 | esac |
| 8050 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8051 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
| 8052 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8053 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8054 | echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 8055 | echo "${ECHO_T}$GNOME_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8056 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8057 | echo "$as_me:$LINENO: result: no" >&5 |
| 8058 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8059 | fi |
| 8060 | |
| 8061 | if test "$GNOME_CONFIG" = "no"; then |
| 8062 | no_gnome_config="yes" |
| 8063 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8064 | echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 8065 | echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8066 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8067 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8068 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8069 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 8070 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 8071 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 8072 | have_gnome=yes |
| 8073 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8074 | echo "$as_me:$LINENO: result: no" >&5 |
| 8075 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8076 | no_gnome_config="yes" |
| 8077 | fi |
| 8078 | fi |
| 8079 | |
| 8080 | if test x$exec_prefix = xNONE; then |
| 8081 | if test x$prefix = xNONE; then |
| 8082 | gnome_prefix=$ac_default_prefix/lib |
| 8083 | else |
| 8084 | gnome_prefix=$prefix/lib |
| 8085 | fi |
| 8086 | else |
| 8087 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 8088 | fi |
| 8089 | |
| 8090 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8091 | echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 8092 | 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] | 8093 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8094 | echo "$as_me:$LINENO: result: found" >&5 |
| 8095 | echo "${ECHO_T}found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8096 | echo "loading gnome configuration from" \ |
| 8097 | "$gnome_prefix/gnomeConf.sh" |
| 8098 | . $gnome_prefix/gnomeConf.sh |
| 8099 | have_gnome=yes |
| 8100 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8101 | echo "$as_me:$LINENO: result: not found" >&5 |
| 8102 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8103 | if test x = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8104 | { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 8105 | echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;} |
| 8106 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8107 | fi |
| 8108 | fi |
| 8109 | fi |
| 8110 | } |
| 8111 | fi |
| 8112 | |
| 8113 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8114 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8115 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8116 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8117 | |
| 8118 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 8119 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 8120 | fi |
| 8121 | } |
| 8122 | fi |
| 8123 | } |
| 8124 | fi |
| 8125 | fi |
| 8126 | fi |
| 8127 | |
| 8128 | |
| 8129 | if test -z "$SKIP_MOTIF"; then |
| 8130 | 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" |
| 8131 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 8132 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8133 | echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 8134 | 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] | 8135 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 8136 | GUI_INC_LOC= |
| 8137 | for try in $gui_includes; do |
| 8138 | if test -f "$try/Xm/Xm.h"; then |
| 8139 | GUI_INC_LOC=$try |
| 8140 | fi |
| 8141 | done |
| 8142 | if test -n "$GUI_INC_LOC"; then |
| 8143 | if test "$GUI_INC_LOC" = /usr/include; then |
| 8144 | GUI_INC_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8145 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 8146 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8147 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8148 | echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 8149 | echo "${ECHO_T}$GUI_INC_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8150 | fi |
| 8151 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8152 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8153 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8154 | SKIP_MOTIF=YES |
| 8155 | fi |
| 8156 | fi |
| 8157 | |
| 8158 | |
| 8159 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8160 | echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 8161 | echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6 |
| 8162 | |
| 8163 | # Check whether --with-motif-lib or --without-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8164 | if test "${with_motif_lib+set}" = set; then |
| 8165 | withval="$with_motif_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8166 | MOTIF_LIBNAME="${withval}" |
| 8167 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8168 | |
| 8169 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8170 | echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 8171 | echo "${ECHO_T}$MOTIF_LIBNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8172 | GUI_LIB_LOC= |
| 8173 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8174 | echo "$as_me:$LINENO: result: no" >&5 |
| 8175 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8176 | |
| 8177 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 8178 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8179 | echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 8180 | 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] | 8181 | 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" |
| 8182 | GUI_LIB_LOC= |
| 8183 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8184 | 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] | 8185 | if test -f "$libtry"; then |
| 8186 | GUI_LIB_LOC=$try |
| 8187 | fi |
| 8188 | done |
| 8189 | done |
| 8190 | if test -n "$GUI_LIB_LOC"; then |
| 8191 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 8192 | GUI_LIB_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8193 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 8194 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8195 | else |
| 8196 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8197 | echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 8198 | echo "${ECHO_T}$GUI_LIB_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8199 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 8200 | uname -r | grep '^5' >/dev/null; then |
| 8201 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 8202 | fi |
| 8203 | fi |
| 8204 | fi |
| 8205 | MOTIF_LIBNAME=-lXm |
| 8206 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8207 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8208 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8209 | SKIP_MOTIF=YES |
| 8210 | fi |
| 8211 | fi |
| 8212 | fi |
| 8213 | |
| 8214 | if test -z "$SKIP_MOTIF"; then |
| 8215 | SKIP_ATHENA=YES |
| 8216 | SKIP_NEXTAW=YES |
| 8217 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8218 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8219 | fi |
| 8220 | |
| 8221 | |
| 8222 | GUI_X_LIBS= |
| 8223 | |
| 8224 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8225 | echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 8226 | 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] | 8227 | cflags_save=$CFLAGS |
| 8228 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8229 | cat >conftest.$ac_ext <<_ACEOF |
| 8230 | /* confdefs.h. */ |
| 8231 | _ACEOF |
| 8232 | cat confdefs.h >>conftest.$ac_ext |
| 8233 | cat >>conftest.$ac_ext <<_ACEOF |
| 8234 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8235 | |
| 8236 | #include <X11/Intrinsic.h> |
| 8237 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8238 | int |
| 8239 | main () |
| 8240 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8241 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8242 | ; |
| 8243 | return 0; |
| 8244 | } |
| 8245 | _ACEOF |
| 8246 | rm -f conftest.$ac_objext |
| 8247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8248 | (eval $ac_compile) 2>conftest.er1 |
| 8249 | ac_status=$? |
| 8250 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8251 | rm -f conftest.er1 |
| 8252 | cat conftest.err >&5 |
| 8253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8254 | (exit $ac_status); } && |
| 8255 | { ac_try='test -z "$ac_c_werror_flag" |
| 8256 | || test ! -s conftest.err' |
| 8257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8258 | (eval $ac_try) 2>&5 |
| 8259 | ac_status=$? |
| 8260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8261 | (exit $ac_status); }; } && |
| 8262 | { ac_try='test -s conftest.$ac_objext' |
| 8263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8264 | (eval $ac_try) 2>&5 |
| 8265 | ac_status=$? |
| 8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8267 | (exit $ac_status); }; }; then |
| 8268 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8269 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8270 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8271 | echo "$as_me: failed program was:" >&5 |
| 8272 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8273 | |
| 8274 | echo "$as_me:$LINENO: result: no" >&5 |
| 8275 | echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8276 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8278 | CFLAGS=$cflags_save |
| 8279 | fi |
| 8280 | |
| 8281 | if test -z "$SKIP_ATHENA"; then |
| 8282 | GUITYPE=ATHENA |
| 8283 | fi |
| 8284 | |
| 8285 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8286 | echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 8287 | 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] | 8288 | cflags_save=$CFLAGS |
| 8289 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8290 | cat >conftest.$ac_ext <<_ACEOF |
| 8291 | /* confdefs.h. */ |
| 8292 | _ACEOF |
| 8293 | cat confdefs.h >>conftest.$ac_ext |
| 8294 | cat >>conftest.$ac_ext <<_ACEOF |
| 8295 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8296 | |
| 8297 | #include <X11/Intrinsic.h> |
| 8298 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8299 | int |
| 8300 | main () |
| 8301 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8302 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8303 | ; |
| 8304 | return 0; |
| 8305 | } |
| 8306 | _ACEOF |
| 8307 | rm -f conftest.$ac_objext |
| 8308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8309 | (eval $ac_compile) 2>conftest.er1 |
| 8310 | ac_status=$? |
| 8311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8312 | rm -f conftest.er1 |
| 8313 | cat conftest.err >&5 |
| 8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8315 | (exit $ac_status); } && |
| 8316 | { ac_try='test -z "$ac_c_werror_flag" |
| 8317 | || test ! -s conftest.err' |
| 8318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8319 | (eval $ac_try) 2>&5 |
| 8320 | ac_status=$? |
| 8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8322 | (exit $ac_status); }; } && |
| 8323 | { ac_try='test -s conftest.$ac_objext' |
| 8324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8325 | (eval $ac_try) 2>&5 |
| 8326 | ac_status=$? |
| 8327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8328 | (exit $ac_status); }; }; then |
| 8329 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8330 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8331 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8332 | echo "$as_me: failed program was:" >&5 |
| 8333 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8334 | |
| 8335 | echo "$as_me:$LINENO: result: no" >&5 |
| 8336 | echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8337 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8339 | CFLAGS=$cflags_save |
| 8340 | fi |
| 8341 | |
| 8342 | if test -z "$SKIP_NEXTAW"; then |
| 8343 | GUITYPE=NEXTAW |
| 8344 | fi |
| 8345 | |
| 8346 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 8347 | if test -n "$GUI_INC_LOC"; then |
| 8348 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 8349 | fi |
| 8350 | if test -n "$GUI_LIB_LOC"; then |
| 8351 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 8352 | fi |
| 8353 | |
| 8354 | ldflags_save=$LDFLAGS |
| 8355 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8356 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 8357 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 8358 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 8359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8360 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8361 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8362 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8363 | cat >conftest.$ac_ext <<_ACEOF |
| 8364 | /* confdefs.h. */ |
| 8365 | _ACEOF |
| 8366 | cat confdefs.h >>conftest.$ac_ext |
| 8367 | cat >>conftest.$ac_ext <<_ACEOF |
| 8368 | /* end confdefs.h. */ |
| 8369 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8370 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8371 | #ifdef __cplusplus |
| 8372 | extern "C" |
| 8373 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8374 | /* 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] | 8375 | builtin and then its argument prototype would still apply. */ |
| 8376 | char XShapeQueryExtension (); |
| 8377 | int |
| 8378 | main () |
| 8379 | { |
| 8380 | XShapeQueryExtension (); |
| 8381 | ; |
| 8382 | return 0; |
| 8383 | } |
| 8384 | _ACEOF |
| 8385 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8387 | (eval $ac_link) 2>conftest.er1 |
| 8388 | ac_status=$? |
| 8389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8390 | rm -f conftest.er1 |
| 8391 | cat conftest.err >&5 |
| 8392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8393 | (exit $ac_status); } && |
| 8394 | { ac_try='test -z "$ac_c_werror_flag" |
| 8395 | || test ! -s conftest.err' |
| 8396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8397 | (eval $ac_try) 2>&5 |
| 8398 | ac_status=$? |
| 8399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8400 | (exit $ac_status); }; } && |
| 8401 | { ac_try='test -s conftest$ac_exeext' |
| 8402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8403 | (eval $ac_try) 2>&5 |
| 8404 | ac_status=$? |
| 8405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8406 | (exit $ac_status); }; }; then |
| 8407 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8408 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8409 | echo "$as_me: failed program was:" >&5 |
| 8410 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8411 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8412 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8413 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8414 | rm -f conftest.err conftest.$ac_objext \ |
| 8415 | conftest$ac_exeext conftest.$ac_ext |
| 8416 | LIBS=$ac_check_lib_save_LIBS |
| 8417 | fi |
| 8418 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 8419 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 8420 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8421 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8422 | fi |
| 8423 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8424 | echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 8425 | echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6 |
| 8426 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
| 8427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8428 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8429 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8430 | 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] | 8431 | cat >conftest.$ac_ext <<_ACEOF |
| 8432 | /* confdefs.h. */ |
| 8433 | _ACEOF |
| 8434 | cat confdefs.h >>conftest.$ac_ext |
| 8435 | cat >>conftest.$ac_ext <<_ACEOF |
| 8436 | /* end confdefs.h. */ |
| 8437 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8438 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8439 | #ifdef __cplusplus |
| 8440 | extern "C" |
| 8441 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8442 | /* 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] | 8443 | builtin and then its argument prototype would still apply. */ |
| 8444 | char wslen (); |
| 8445 | int |
| 8446 | main () |
| 8447 | { |
| 8448 | wslen (); |
| 8449 | ; |
| 8450 | return 0; |
| 8451 | } |
| 8452 | _ACEOF |
| 8453 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8455 | (eval $ac_link) 2>conftest.er1 |
| 8456 | ac_status=$? |
| 8457 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8458 | rm -f conftest.er1 |
| 8459 | cat conftest.err >&5 |
| 8460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8461 | (exit $ac_status); } && |
| 8462 | { ac_try='test -z "$ac_c_werror_flag" |
| 8463 | || test ! -s conftest.err' |
| 8464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8465 | (eval $ac_try) 2>&5 |
| 8466 | ac_status=$? |
| 8467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8468 | (exit $ac_status); }; } && |
| 8469 | { ac_try='test -s conftest$ac_exeext' |
| 8470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8471 | (eval $ac_try) 2>&5 |
| 8472 | ac_status=$? |
| 8473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8474 | (exit $ac_status); }; }; then |
| 8475 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8476 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8477 | echo "$as_me: failed program was:" >&5 |
| 8478 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8479 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8480 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8481 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8482 | rm -f conftest.err conftest.$ac_objext \ |
| 8483 | conftest$ac_exeext conftest.$ac_ext |
| 8484 | LIBS=$ac_check_lib_save_LIBS |
| 8485 | fi |
| 8486 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 8487 | echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6 |
| 8488 | if test $ac_cv_lib_w_wslen = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8489 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8490 | fi |
| 8491 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8492 | echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 8493 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 |
| 8494 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
| 8495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8496 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8497 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8498 | 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] | 8499 | cat >conftest.$ac_ext <<_ACEOF |
| 8500 | /* confdefs.h. */ |
| 8501 | _ACEOF |
| 8502 | cat confdefs.h >>conftest.$ac_ext |
| 8503 | cat >>conftest.$ac_ext <<_ACEOF |
| 8504 | /* end confdefs.h. */ |
| 8505 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8506 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8507 | #ifdef __cplusplus |
| 8508 | extern "C" |
| 8509 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8510 | /* 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] | 8511 | builtin and then its argument prototype would still apply. */ |
| 8512 | char dlsym (); |
| 8513 | int |
| 8514 | main () |
| 8515 | { |
| 8516 | dlsym (); |
| 8517 | ; |
| 8518 | return 0; |
| 8519 | } |
| 8520 | _ACEOF |
| 8521 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8523 | (eval $ac_link) 2>conftest.er1 |
| 8524 | ac_status=$? |
| 8525 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8526 | rm -f conftest.er1 |
| 8527 | cat conftest.err >&5 |
| 8528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8529 | (exit $ac_status); } && |
| 8530 | { ac_try='test -z "$ac_c_werror_flag" |
| 8531 | || test ! -s conftest.err' |
| 8532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8533 | (eval $ac_try) 2>&5 |
| 8534 | ac_status=$? |
| 8535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8536 | (exit $ac_status); }; } && |
| 8537 | { ac_try='test -s conftest$ac_exeext' |
| 8538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8539 | (eval $ac_try) 2>&5 |
| 8540 | ac_status=$? |
| 8541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8542 | (exit $ac_status); }; }; then |
| 8543 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8544 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8545 | echo "$as_me: failed program was:" >&5 |
| 8546 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8547 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8548 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8549 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8550 | rm -f conftest.err conftest.$ac_objext \ |
| 8551 | conftest$ac_exeext conftest.$ac_ext |
| 8552 | LIBS=$ac_check_lib_save_LIBS |
| 8553 | fi |
| 8554 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 8555 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 |
| 8556 | if test $ac_cv_lib_dl_dlsym = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8557 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8558 | fi |
| 8559 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8560 | echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 8561 | echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6 |
| 8562 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
| 8563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8564 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8565 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8566 | 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] | 8567 | cat >conftest.$ac_ext <<_ACEOF |
| 8568 | /* confdefs.h. */ |
| 8569 | _ACEOF |
| 8570 | cat confdefs.h >>conftest.$ac_ext |
| 8571 | cat >>conftest.$ac_ext <<_ACEOF |
| 8572 | /* end confdefs.h. */ |
| 8573 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8574 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8575 | #ifdef __cplusplus |
| 8576 | extern "C" |
| 8577 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8578 | /* 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] | 8579 | builtin and then its argument prototype would still apply. */ |
| 8580 | char XmuCreateStippledPixmap (); |
| 8581 | int |
| 8582 | main () |
| 8583 | { |
| 8584 | XmuCreateStippledPixmap (); |
| 8585 | ; |
| 8586 | return 0; |
| 8587 | } |
| 8588 | _ACEOF |
| 8589 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8591 | (eval $ac_link) 2>conftest.er1 |
| 8592 | ac_status=$? |
| 8593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8594 | rm -f conftest.er1 |
| 8595 | cat conftest.err >&5 |
| 8596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8597 | (exit $ac_status); } && |
| 8598 | { ac_try='test -z "$ac_c_werror_flag" |
| 8599 | || test ! -s conftest.err' |
| 8600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8601 | (eval $ac_try) 2>&5 |
| 8602 | ac_status=$? |
| 8603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8604 | (exit $ac_status); }; } && |
| 8605 | { ac_try='test -s conftest$ac_exeext' |
| 8606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8607 | (eval $ac_try) 2>&5 |
| 8608 | ac_status=$? |
| 8609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8610 | (exit $ac_status); }; }; then |
| 8611 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8612 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8613 | echo "$as_me: failed program was:" >&5 |
| 8614 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8615 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8616 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8617 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8618 | rm -f conftest.err conftest.$ac_objext \ |
| 8619 | conftest$ac_exeext conftest.$ac_ext |
| 8620 | LIBS=$ac_check_lib_save_LIBS |
| 8621 | fi |
| 8622 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 8623 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6 |
| 8624 | if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8625 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8626 | fi |
| 8627 | |
| 8628 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8629 | echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 8630 | echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6 |
| 8631 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
| 8632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8633 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8634 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8635 | 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] | 8636 | cat >conftest.$ac_ext <<_ACEOF |
| 8637 | /* confdefs.h. */ |
| 8638 | _ACEOF |
| 8639 | cat confdefs.h >>conftest.$ac_ext |
| 8640 | cat >>conftest.$ac_ext <<_ACEOF |
| 8641 | /* end confdefs.h. */ |
| 8642 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8643 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8644 | #ifdef __cplusplus |
| 8645 | extern "C" |
| 8646 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8647 | /* 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] | 8648 | builtin and then its argument prototype would still apply. */ |
| 8649 | char XpEndJob (); |
| 8650 | int |
| 8651 | main () |
| 8652 | { |
| 8653 | XpEndJob (); |
| 8654 | ; |
| 8655 | return 0; |
| 8656 | } |
| 8657 | _ACEOF |
| 8658 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8660 | (eval $ac_link) 2>conftest.er1 |
| 8661 | ac_status=$? |
| 8662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8663 | rm -f conftest.er1 |
| 8664 | cat conftest.err >&5 |
| 8665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8666 | (exit $ac_status); } && |
| 8667 | { ac_try='test -z "$ac_c_werror_flag" |
| 8668 | || test ! -s conftest.err' |
| 8669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8670 | (eval $ac_try) 2>&5 |
| 8671 | ac_status=$? |
| 8672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8673 | (exit $ac_status); }; } && |
| 8674 | { ac_try='test -s conftest$ac_exeext' |
| 8675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8676 | (eval $ac_try) 2>&5 |
| 8677 | ac_status=$? |
| 8678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8679 | (exit $ac_status); }; }; then |
| 8680 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8681 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8682 | echo "$as_me: failed program was:" >&5 |
| 8683 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8684 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8685 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8686 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8687 | rm -f conftest.err conftest.$ac_objext \ |
| 8688 | conftest$ac_exeext conftest.$ac_ext |
| 8689 | LIBS=$ac_check_lib_save_LIBS |
| 8690 | fi |
| 8691 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 8692 | echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6 |
| 8693 | if test $ac_cv_lib_Xp_XpEndJob = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8694 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8695 | fi |
| 8696 | |
| 8697 | fi |
| 8698 | LDFLAGS=$ldflags_save |
| 8699 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8700 | echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 8701 | echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8702 | NARROW_PROTO= |
| 8703 | rm -fr conftestdir |
| 8704 | if mkdir conftestdir; then |
| 8705 | cd conftestdir |
| 8706 | cat > Imakefile <<'EOF' |
| 8707 | acfindx: |
| 8708 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 8709 | EOF |
| 8710 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 8711 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 8712 | fi |
| 8713 | cd .. |
| 8714 | rm -fr conftestdir |
| 8715 | fi |
| 8716 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8717 | echo "$as_me:$LINENO: result: no" >&5 |
| 8718 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8719 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8720 | echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 8721 | echo "${ECHO_T}$NARROW_PROTO" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8722 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8723 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8724 | fi |
| 8725 | |
| 8726 | if test "$enable_xsmp" = "yes"; then |
| 8727 | cppflags_save=$CPPFLAGS |
| 8728 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8729 | |
| 8730 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8731 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8732 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8733 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8734 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8738 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8739 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8740 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8741 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8742 | # Is the header compilable? |
| 8743 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8744 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8745 | cat >conftest.$ac_ext <<_ACEOF |
| 8746 | /* confdefs.h. */ |
| 8747 | _ACEOF |
| 8748 | cat confdefs.h >>conftest.$ac_ext |
| 8749 | cat >>conftest.$ac_ext <<_ACEOF |
| 8750 | /* end confdefs.h. */ |
| 8751 | $ac_includes_default |
| 8752 | #include <$ac_header> |
| 8753 | _ACEOF |
| 8754 | rm -f conftest.$ac_objext |
| 8755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8756 | (eval $ac_compile) 2>conftest.er1 |
| 8757 | ac_status=$? |
| 8758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8759 | rm -f conftest.er1 |
| 8760 | cat conftest.err >&5 |
| 8761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8762 | (exit $ac_status); } && |
| 8763 | { ac_try='test -z "$ac_c_werror_flag" |
| 8764 | || test ! -s conftest.err' |
| 8765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8766 | (eval $ac_try) 2>&5 |
| 8767 | ac_status=$? |
| 8768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8769 | (exit $ac_status); }; } && |
| 8770 | { ac_try='test -s conftest.$ac_objext' |
| 8771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8772 | (eval $ac_try) 2>&5 |
| 8773 | ac_status=$? |
| 8774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8775 | (exit $ac_status); }; }; then |
| 8776 | ac_header_compiler=yes |
| 8777 | else |
| 8778 | echo "$as_me: failed program was:" >&5 |
| 8779 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8780 | |
| 8781 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8782 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8783 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8784 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8785 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8786 | |
| 8787 | # Is the header present? |
| 8788 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8789 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8790 | cat >conftest.$ac_ext <<_ACEOF |
| 8791 | /* confdefs.h. */ |
| 8792 | _ACEOF |
| 8793 | cat confdefs.h >>conftest.$ac_ext |
| 8794 | cat >>conftest.$ac_ext <<_ACEOF |
| 8795 | /* end confdefs.h. */ |
| 8796 | #include <$ac_header> |
| 8797 | _ACEOF |
| 8798 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8799 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8800 | ac_status=$? |
| 8801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8802 | rm -f conftest.er1 |
| 8803 | cat conftest.err >&5 |
| 8804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8805 | (exit $ac_status); } >/dev/null; then |
| 8806 | if test -s conftest.err; then |
| 8807 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8808 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8809 | else |
| 8810 | ac_cpp_err= |
| 8811 | fi |
| 8812 | else |
| 8813 | ac_cpp_err=yes |
| 8814 | fi |
| 8815 | if test -z "$ac_cpp_err"; then |
| 8816 | ac_header_preproc=yes |
| 8817 | else |
| 8818 | echo "$as_me: failed program was:" >&5 |
| 8819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8820 | |
| 8821 | ac_header_preproc=no |
| 8822 | fi |
| 8823 | rm -f conftest.err conftest.$ac_ext |
| 8824 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8825 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8826 | |
| 8827 | # So? What about this header? |
| 8828 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8829 | yes:no: ) |
| 8830 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8831 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8832 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8833 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8834 | ac_header_preproc=yes |
| 8835 | ;; |
| 8836 | no:yes:* ) |
| 8837 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8838 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8839 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8840 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8841 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8842 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8843 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8844 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8845 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8846 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8847 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8848 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8849 | ( |
| 8850 | cat <<\_ASBOX |
| 8851 | ## ------------------------------------------ ## |
| 8852 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8853 | ## ------------------------------------------ ## |
| 8854 | _ASBOX |
| 8855 | ) | |
| 8856 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8857 | ;; |
| 8858 | esac |
| 8859 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8861 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8863 | else |
| 8864 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8865 | fi |
| 8866 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8867 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8868 | |
| 8869 | fi |
| 8870 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8871 | cat >>confdefs.h <<_ACEOF |
| 8872 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8873 | _ACEOF |
| 8874 | |
| 8875 | fi |
| 8876 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8877 | done |
| 8878 | |
| 8879 | CPPFLAGS=$cppflags_save |
| 8880 | fi |
| 8881 | |
| 8882 | |
| 8883 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 8884 | cppflags_save=$CPPFLAGS |
| 8885 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8886 | |
| 8887 | |
| 8888 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8889 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8890 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8891 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8892 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8893 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8894 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8896 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8897 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8898 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8899 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8900 | # Is the header compilable? |
| 8901 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8902 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8903 | cat >conftest.$ac_ext <<_ACEOF |
| 8904 | /* confdefs.h. */ |
| 8905 | _ACEOF |
| 8906 | cat confdefs.h >>conftest.$ac_ext |
| 8907 | cat >>conftest.$ac_ext <<_ACEOF |
| 8908 | /* end confdefs.h. */ |
| 8909 | $ac_includes_default |
| 8910 | #include <$ac_header> |
| 8911 | _ACEOF |
| 8912 | rm -f conftest.$ac_objext |
| 8913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8914 | (eval $ac_compile) 2>conftest.er1 |
| 8915 | ac_status=$? |
| 8916 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8917 | rm -f conftest.er1 |
| 8918 | cat conftest.err >&5 |
| 8919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8920 | (exit $ac_status); } && |
| 8921 | { ac_try='test -z "$ac_c_werror_flag" |
| 8922 | || test ! -s conftest.err' |
| 8923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8924 | (eval $ac_try) 2>&5 |
| 8925 | ac_status=$? |
| 8926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8927 | (exit $ac_status); }; } && |
| 8928 | { ac_try='test -s conftest.$ac_objext' |
| 8929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8930 | (eval $ac_try) 2>&5 |
| 8931 | ac_status=$? |
| 8932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8933 | (exit $ac_status); }; }; then |
| 8934 | ac_header_compiler=yes |
| 8935 | else |
| 8936 | echo "$as_me: failed program was:" >&5 |
| 8937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8938 | |
| 8939 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8940 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8942 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8943 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8944 | |
| 8945 | # Is the header present? |
| 8946 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8947 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8948 | cat >conftest.$ac_ext <<_ACEOF |
| 8949 | /* confdefs.h. */ |
| 8950 | _ACEOF |
| 8951 | cat confdefs.h >>conftest.$ac_ext |
| 8952 | cat >>conftest.$ac_ext <<_ACEOF |
| 8953 | /* end confdefs.h. */ |
| 8954 | #include <$ac_header> |
| 8955 | _ACEOF |
| 8956 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8957 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8958 | ac_status=$? |
| 8959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8960 | rm -f conftest.er1 |
| 8961 | cat conftest.err >&5 |
| 8962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8963 | (exit $ac_status); } >/dev/null; then |
| 8964 | if test -s conftest.err; then |
| 8965 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8966 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8967 | else |
| 8968 | ac_cpp_err= |
| 8969 | fi |
| 8970 | else |
| 8971 | ac_cpp_err=yes |
| 8972 | fi |
| 8973 | if test -z "$ac_cpp_err"; then |
| 8974 | ac_header_preproc=yes |
| 8975 | else |
| 8976 | echo "$as_me: failed program was:" >&5 |
| 8977 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8978 | |
| 8979 | ac_header_preproc=no |
| 8980 | fi |
| 8981 | rm -f conftest.err conftest.$ac_ext |
| 8982 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8983 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8984 | |
| 8985 | # So? What about this header? |
| 8986 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8987 | yes:no: ) |
| 8988 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8989 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8990 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8991 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8992 | ac_header_preproc=yes |
| 8993 | ;; |
| 8994 | no:yes:* ) |
| 8995 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8996 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8997 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8998 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8999 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9000 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9001 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9002 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9003 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9004 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9005 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9006 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9007 | ( |
| 9008 | cat <<\_ASBOX |
| 9009 | ## ------------------------------------------ ## |
| 9010 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9011 | ## ------------------------------------------ ## |
| 9012 | _ASBOX |
| 9013 | ) | |
| 9014 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9015 | ;; |
| 9016 | esac |
| 9017 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9018 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9019 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9021 | else |
| 9022 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9023 | fi |
| 9024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9025 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9026 | |
| 9027 | fi |
| 9028 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9029 | cat >>confdefs.h <<_ACEOF |
| 9030 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9031 | _ACEOF |
| 9032 | |
| 9033 | fi |
| 9034 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9035 | done |
| 9036 | |
| 9037 | |
| 9038 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9039 | echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 9040 | echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6 |
| 9041 | cat >conftest.$ac_ext <<_ACEOF |
| 9042 | /* confdefs.h. */ |
| 9043 | _ACEOF |
| 9044 | cat confdefs.h >>conftest.$ac_ext |
| 9045 | cat >>conftest.$ac_ext <<_ACEOF |
| 9046 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9047 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9048 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9050 | $EGREP "XIMText" >/dev/null 2>&1; then |
| 9051 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9052 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9053 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9054 | echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 9055 | echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9056 | fi |
| 9057 | rm -f conftest* |
| 9058 | |
| 9059 | fi |
| 9060 | CPPFLAGS=$cppflags_save |
| 9061 | |
| 9062 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 9063 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9064 | echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 9065 | echo "${ECHO_T}X GUI selected; xim has been enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9066 | enable_xim="yes" |
| 9067 | fi |
| 9068 | fi |
| 9069 | |
| 9070 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 9071 | cppflags_save=$CPPFLAGS |
| 9072 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9073 | echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 9074 | echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6 |
| 9075 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9076 | /* confdefs.h. */ |
| 9077 | _ACEOF |
| 9078 | cat confdefs.h >>conftest.$ac_ext |
| 9079 | cat >>conftest.$ac_ext <<_ACEOF |
| 9080 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9081 | |
| 9082 | #include <X11/Intrinsic.h> |
| 9083 | #include <X11/Xmu/Editres.h> |
| 9084 | int |
| 9085 | main () |
| 9086 | { |
| 9087 | int i; i = 0; |
| 9088 | ; |
| 9089 | return 0; |
| 9090 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9091 | _ACEOF |
| 9092 | rm -f conftest.$ac_objext |
| 9093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9094 | (eval $ac_compile) 2>conftest.er1 |
| 9095 | ac_status=$? |
| 9096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9097 | rm -f conftest.er1 |
| 9098 | cat conftest.err >&5 |
| 9099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9100 | (exit $ac_status); } && |
| 9101 | { ac_try='test -z "$ac_c_werror_flag" |
| 9102 | || test ! -s conftest.err' |
| 9103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9104 | (eval $ac_try) 2>&5 |
| 9105 | ac_status=$? |
| 9106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9107 | (exit $ac_status); }; } && |
| 9108 | { ac_try='test -s conftest.$ac_objext' |
| 9109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9110 | (eval $ac_try) 2>&5 |
| 9111 | ac_status=$? |
| 9112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9113 | (exit $ac_status); }; }; then |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9114 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9115 | echo "${ECHO_T}yes" >&6 |
| 9116 | cat >>confdefs.h <<\_ACEOF |
| 9117 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 9118 | _ACEOF |
| 9119 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9120 | else |
| 9121 | echo "$as_me: failed program was:" >&5 |
| 9122 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9123 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9124 | echo "$as_me:$LINENO: result: no" >&5 |
| 9125 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9126 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9128 | CPPFLAGS=$cppflags_save |
| 9129 | fi |
| 9130 | |
| 9131 | if test -z "$SKIP_MOTIF"; then |
| 9132 | cppflags_save=$CPPFLAGS |
| 9133 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9134 | |
| 9135 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9136 | |
| 9137 | |
| 9138 | |
| 9139 | |
Bram Moolenaar | fc1421e | 2006-04-20 22:17:20 +0000 | [diff] [blame] | 9140 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9141 | for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \ |
Bram Moolenaar | fc1421e | 2006-04-20 22:17:20 +0000 | [diff] [blame] | 9142 | Xm/UnhighlightT.h Xm/Notebook.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9143 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9144 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9145 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9146 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9149 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9150 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9151 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9152 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9153 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9154 | # Is the header compilable? |
| 9155 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9156 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9157 | cat >conftest.$ac_ext <<_ACEOF |
| 9158 | /* confdefs.h. */ |
| 9159 | _ACEOF |
| 9160 | cat confdefs.h >>conftest.$ac_ext |
| 9161 | cat >>conftest.$ac_ext <<_ACEOF |
| 9162 | /* end confdefs.h. */ |
| 9163 | $ac_includes_default |
| 9164 | #include <$ac_header> |
| 9165 | _ACEOF |
| 9166 | rm -f conftest.$ac_objext |
| 9167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9168 | (eval $ac_compile) 2>conftest.er1 |
| 9169 | ac_status=$? |
| 9170 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9171 | rm -f conftest.er1 |
| 9172 | cat conftest.err >&5 |
| 9173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9174 | (exit $ac_status); } && |
| 9175 | { ac_try='test -z "$ac_c_werror_flag" |
| 9176 | || test ! -s conftest.err' |
| 9177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9178 | (eval $ac_try) 2>&5 |
| 9179 | ac_status=$? |
| 9180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9181 | (exit $ac_status); }; } && |
| 9182 | { ac_try='test -s conftest.$ac_objext' |
| 9183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9184 | (eval $ac_try) 2>&5 |
| 9185 | ac_status=$? |
| 9186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9187 | (exit $ac_status); }; }; then |
| 9188 | ac_header_compiler=yes |
| 9189 | else |
| 9190 | echo "$as_me: failed program was:" >&5 |
| 9191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9192 | |
| 9193 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9194 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9196 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9197 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9198 | |
| 9199 | # Is the header present? |
| 9200 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9201 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9202 | cat >conftest.$ac_ext <<_ACEOF |
| 9203 | /* confdefs.h. */ |
| 9204 | _ACEOF |
| 9205 | cat confdefs.h >>conftest.$ac_ext |
| 9206 | cat >>conftest.$ac_ext <<_ACEOF |
| 9207 | /* end confdefs.h. */ |
| 9208 | #include <$ac_header> |
| 9209 | _ACEOF |
| 9210 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9211 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9212 | ac_status=$? |
| 9213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9214 | rm -f conftest.er1 |
| 9215 | cat conftest.err >&5 |
| 9216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9217 | (exit $ac_status); } >/dev/null; then |
| 9218 | if test -s conftest.err; then |
| 9219 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9220 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9221 | else |
| 9222 | ac_cpp_err= |
| 9223 | fi |
| 9224 | else |
| 9225 | ac_cpp_err=yes |
| 9226 | fi |
| 9227 | if test -z "$ac_cpp_err"; then |
| 9228 | ac_header_preproc=yes |
| 9229 | else |
| 9230 | echo "$as_me: failed program was:" >&5 |
| 9231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9232 | |
| 9233 | ac_header_preproc=no |
| 9234 | fi |
| 9235 | rm -f conftest.err conftest.$ac_ext |
| 9236 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9237 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9238 | |
| 9239 | # So? What about this header? |
| 9240 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9241 | yes:no: ) |
| 9242 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9243 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9244 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9245 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9246 | ac_header_preproc=yes |
| 9247 | ;; |
| 9248 | no:yes:* ) |
| 9249 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9250 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9251 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9252 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9253 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9254 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9255 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9256 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9257 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9258 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9259 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9260 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9261 | ( |
| 9262 | cat <<\_ASBOX |
| 9263 | ## ------------------------------------------ ## |
| 9264 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9265 | ## ------------------------------------------ ## |
| 9266 | _ASBOX |
| 9267 | ) | |
| 9268 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9269 | ;; |
| 9270 | esac |
| 9271 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9272 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9273 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9275 | else |
| 9276 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9277 | fi |
| 9278 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9279 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9280 | |
| 9281 | fi |
| 9282 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9283 | cat >>confdefs.h <<_ACEOF |
| 9284 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9285 | _ACEOF |
| 9286 | |
| 9287 | fi |
| 9288 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9289 | done |
| 9290 | |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 9291 | |
| 9292 | if test $ac_cv_header_Xm_XpmP_h = yes; then |
| 9293 | echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 |
| 9294 | echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $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 | #include <Xm/XpmP.h> |
| 9302 | int |
| 9303 | main () |
| 9304 | { |
| 9305 | XpmAttributes_21 attr; |
| 9306 | ; |
| 9307 | return 0; |
| 9308 | } |
| 9309 | _ACEOF |
| 9310 | rm -f conftest.$ac_objext |
| 9311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9312 | (eval $ac_compile) 2>conftest.er1 |
| 9313 | ac_status=$? |
| 9314 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9315 | rm -f conftest.er1 |
| 9316 | cat conftest.err >&5 |
| 9317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9318 | (exit $ac_status); } && |
| 9319 | { ac_try='test -z "$ac_c_werror_flag" |
| 9320 | || test ! -s conftest.err' |
| 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); }; } && |
| 9326 | { ac_try='test -s conftest.$ac_objext' |
| 9327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9328 | (eval $ac_try) 2>&5 |
| 9329 | ac_status=$? |
| 9330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9331 | (exit $ac_status); }; }; then |
| 9332 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9333 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
| 9334 | #define XPMATTRIBUTES_TYPE XpmAttributes_21 |
| 9335 | _ACEOF |
| 9336 | |
| 9337 | else |
| 9338 | echo "$as_me: failed program was:" >&5 |
| 9339 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9340 | |
| 9341 | echo "$as_me:$LINENO: result: no" >&5 |
| 9342 | echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF |
| 9343 | #define XPMATTRIBUTES_TYPE XpmAttributes |
| 9344 | _ACEOF |
| 9345 | |
| 9346 | |
| 9347 | fi |
| 9348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9349 | else |
| 9350 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 57657d8 | 2006-04-21 22:12:41 +0000 | [diff] [blame] | 9351 | #define XPMATTRIBUTES_TYPE XpmAttributes |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 9352 | _ACEOF |
| 9353 | |
| 9354 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9355 | CPPFLAGS=$cppflags_save |
| 9356 | fi |
| 9357 | |
| 9358 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9359 | echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 9360 | echo "${ECHO_T}no GUI selected; xim has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9361 | enable_xim="no" |
| 9362 | fi |
| 9363 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9364 | echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 9365 | echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9366 | enable_fontset="no" |
| 9367 | fi |
| 9368 | 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] | 9369 | echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 9370 | echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9371 | enable_fontset="no" |
| 9372 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9373 | |
| 9374 | if test -z "$SKIP_PHOTON"; then |
| 9375 | GUITYPE=PHOTONGUI |
| 9376 | fi |
| 9377 | |
| 9378 | |
| 9379 | |
| 9380 | |
| 9381 | |
| 9382 | |
| 9383 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9384 | { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 9385 | echo "$as_me: error: cannot use workshop without Motif" >&2;} |
| 9386 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9387 | fi |
| 9388 | |
| 9389 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9390 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9391 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9392 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9393 | |
| 9394 | fi |
| 9395 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9396 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9397 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9398 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9399 | |
| 9400 | fi |
| 9401 | |
| 9402 | |
| 9403 | |
| 9404 | |
| 9405 | if test "$enable_hangulinput" = "yes"; then |
| 9406 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9407 | echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 9408 | echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9409 | enable_hangulinput=no |
| 9410 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9411 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9412 | #define FEAT_HANGULIN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9413 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9414 | |
| 9415 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9416 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9417 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9418 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9419 | fi |
| 9420 | fi |
| 9421 | |
| 9422 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9423 | echo "$as_me:$LINENO: checking quality of toupper" >&5 |
| 9424 | echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9425 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9426 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 9427 | echo "$as_me: error: failed to compile test program" >&2;} |
| 9428 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9429 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9430 | cat >conftest.$ac_ext <<_ACEOF |
| 9431 | /* confdefs.h. */ |
| 9432 | _ACEOF |
| 9433 | cat confdefs.h >>conftest.$ac_ext |
| 9434 | cat >>conftest.$ac_ext <<_ACEOF |
| 9435 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9436 | #include <ctype.h> |
| 9437 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9438 | _ACEOF |
| 9439 | rm -f conftest$ac_exeext |
| 9440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9441 | (eval $ac_link) 2>&5 |
| 9442 | ac_status=$? |
| 9443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9444 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9446 | (eval $ac_try) 2>&5 |
| 9447 | ac_status=$? |
| 9448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9449 | (exit $ac_status); }; }; then |
| 9450 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9451 | #define BROKEN_TOUPPER 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9452 | _ACEOF |
| 9453 | echo "$as_me:$LINENO: result: bad" >&5 |
| 9454 | echo "${ECHO_T}bad" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9455 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9456 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9457 | echo "$as_me: failed program was:" >&5 |
| 9458 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9459 | |
| 9460 | ( exit $ac_status ) |
| 9461 | echo "$as_me:$LINENO: result: good" >&5 |
| 9462 | echo "${ECHO_T}good" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9463 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9464 | 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] | 9465 | fi |
| 9466 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9467 | echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 9468 | echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6 |
| 9469 | cat >conftest.$ac_ext <<_ACEOF |
| 9470 | /* confdefs.h. */ |
| 9471 | _ACEOF |
| 9472 | cat confdefs.h >>conftest.$ac_ext |
| 9473 | cat >>conftest.$ac_ext <<_ACEOF |
| 9474 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9475 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9476 | int |
| 9477 | main () |
| 9478 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9479 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9480 | ; |
| 9481 | return 0; |
| 9482 | } |
| 9483 | _ACEOF |
| 9484 | rm -f conftest.$ac_objext |
| 9485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9486 | (eval $ac_compile) 2>conftest.er1 |
| 9487 | ac_status=$? |
| 9488 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9489 | rm -f conftest.er1 |
| 9490 | cat conftest.err >&5 |
| 9491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9492 | (exit $ac_status); } && |
| 9493 | { ac_try='test -z "$ac_c_werror_flag" |
| 9494 | || test ! -s conftest.err' |
| 9495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9496 | (eval $ac_try) 2>&5 |
| 9497 | ac_status=$? |
| 9498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9499 | (exit $ac_status); }; } && |
| 9500 | { ac_try='test -s conftest.$ac_objext' |
| 9501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9502 | (eval $ac_try) 2>&5 |
| 9503 | ac_status=$? |
| 9504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9505 | (exit $ac_status); }; }; then |
| 9506 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9507 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9508 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9509 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9510 | |
| 9511 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9512 | echo "$as_me: failed program was:" >&5 |
| 9513 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9514 | |
| 9515 | echo "$as_me:$LINENO: result: no" >&5 |
| 9516 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9517 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9519 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9520 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9521 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 9522 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 9523 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9525 | fi |
| 9526 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 9527 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9528 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9529 | # Is the header compilable? |
| 9530 | echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 9531 | echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6 |
| 9532 | cat >conftest.$ac_ext <<_ACEOF |
| 9533 | /* confdefs.h. */ |
| 9534 | _ACEOF |
| 9535 | cat confdefs.h >>conftest.$ac_ext |
| 9536 | cat >>conftest.$ac_ext <<_ACEOF |
| 9537 | /* end confdefs.h. */ |
| 9538 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9539 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9540 | _ACEOF |
| 9541 | rm -f conftest.$ac_objext |
| 9542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9543 | (eval $ac_compile) 2>conftest.er1 |
| 9544 | ac_status=$? |
| 9545 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9546 | rm -f conftest.er1 |
| 9547 | cat conftest.err >&5 |
| 9548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9549 | (exit $ac_status); } && |
| 9550 | { ac_try='test -z "$ac_c_werror_flag" |
| 9551 | || test ! -s conftest.err' |
| 9552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9553 | (eval $ac_try) 2>&5 |
| 9554 | ac_status=$? |
| 9555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9556 | (exit $ac_status); }; } && |
| 9557 | { ac_try='test -s conftest.$ac_objext' |
| 9558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9559 | (eval $ac_try) 2>&5 |
| 9560 | ac_status=$? |
| 9561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9562 | (exit $ac_status); }; }; then |
| 9563 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9564 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9565 | echo "$as_me: failed program was:" >&5 |
| 9566 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9567 | |
| 9568 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9569 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9571 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9572 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9573 | |
| 9574 | # Is the header present? |
| 9575 | echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 9576 | echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6 |
| 9577 | cat >conftest.$ac_ext <<_ACEOF |
| 9578 | /* confdefs.h. */ |
| 9579 | _ACEOF |
| 9580 | cat confdefs.h >>conftest.$ac_ext |
| 9581 | cat >>conftest.$ac_ext <<_ACEOF |
| 9582 | /* end confdefs.h. */ |
| 9583 | #include <elf.h> |
| 9584 | _ACEOF |
| 9585 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9586 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9587 | ac_status=$? |
| 9588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9589 | rm -f conftest.er1 |
| 9590 | cat conftest.err >&5 |
| 9591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9592 | (exit $ac_status); } >/dev/null; then |
| 9593 | if test -s conftest.err; then |
| 9594 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9595 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9596 | else |
| 9597 | ac_cpp_err= |
| 9598 | fi |
| 9599 | else |
| 9600 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9601 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9602 | if test -z "$ac_cpp_err"; then |
| 9603 | ac_header_preproc=yes |
| 9604 | else |
| 9605 | echo "$as_me: failed program was:" >&5 |
| 9606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9607 | |
| 9608 | ac_header_preproc=no |
| 9609 | fi |
| 9610 | rm -f conftest.err conftest.$ac_ext |
| 9611 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9612 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9613 | |
| 9614 | # So? What about this header? |
| 9615 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9616 | yes:no: ) |
| 9617 | { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9618 | echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9619 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 9620 | echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;} |
| 9621 | ac_header_preproc=yes |
| 9622 | ;; |
| 9623 | no:yes:* ) |
| 9624 | { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 9625 | echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 9626 | { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 9627 | echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 9628 | { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 9629 | echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 9630 | { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9631 | echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9632 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 9633 | echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 9634 | { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 9635 | echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 9636 | ( |
| 9637 | cat <<\_ASBOX |
| 9638 | ## ------------------------------------------ ## |
| 9639 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9640 | ## ------------------------------------------ ## |
| 9641 | _ASBOX |
| 9642 | ) | |
| 9643 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9644 | ;; |
| 9645 | esac |
| 9646 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 9647 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 9648 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9650 | else |
| 9651 | ac_cv_header_elf_h=$ac_header_preproc |
| 9652 | fi |
| 9653 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 9654 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
| 9655 | |
| 9656 | fi |
| 9657 | if test $ac_cv_header_elf_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9658 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9659 | fi |
| 9660 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9661 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9662 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9663 | |
| 9664 | echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 9665 | echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6 |
| 9666 | if test "${ac_cv_lib_elf_main+set}" = set; then |
| 9667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9668 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9669 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9670 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9671 | cat >conftest.$ac_ext <<_ACEOF |
| 9672 | /* confdefs.h. */ |
| 9673 | _ACEOF |
| 9674 | cat confdefs.h >>conftest.$ac_ext |
| 9675 | cat >>conftest.$ac_ext <<_ACEOF |
| 9676 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9677 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9678 | |
| 9679 | int |
| 9680 | main () |
| 9681 | { |
| 9682 | main (); |
| 9683 | ; |
| 9684 | return 0; |
| 9685 | } |
| 9686 | _ACEOF |
| 9687 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9689 | (eval $ac_link) 2>conftest.er1 |
| 9690 | ac_status=$? |
| 9691 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9692 | rm -f conftest.er1 |
| 9693 | cat conftest.err >&5 |
| 9694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9695 | (exit $ac_status); } && |
| 9696 | { ac_try='test -z "$ac_c_werror_flag" |
| 9697 | || test ! -s conftest.err' |
| 9698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9699 | (eval $ac_try) 2>&5 |
| 9700 | ac_status=$? |
| 9701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9702 | (exit $ac_status); }; } && |
| 9703 | { ac_try='test -s conftest$ac_exeext' |
| 9704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9705 | (eval $ac_try) 2>&5 |
| 9706 | ac_status=$? |
| 9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9708 | (exit $ac_status); }; }; then |
| 9709 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9710 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9711 | echo "$as_me: failed program was:" >&5 |
| 9712 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9713 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9714 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9715 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9716 | rm -f conftest.err conftest.$ac_objext \ |
| 9717 | conftest$ac_exeext conftest.$ac_ext |
| 9718 | LIBS=$ac_check_lib_save_LIBS |
| 9719 | fi |
| 9720 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 9721 | echo "${ECHO_T}$ac_cv_lib_elf_main" >&6 |
| 9722 | if test $ac_cv_lib_elf_main = yes; then |
| 9723 | cat >>confdefs.h <<_ACEOF |
| 9724 | #define HAVE_LIBELF 1 |
| 9725 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9726 | |
| 9727 | LIBS="-lelf $LIBS" |
| 9728 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9729 | fi |
| 9730 | |
| 9731 | fi |
| 9732 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9733 | |
| 9734 | |
| 9735 | |
| 9736 | |
| 9737 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9738 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9739 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 9740 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9741 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9742 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 9743 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9745 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9746 | cat >conftest.$ac_ext <<_ACEOF |
| 9747 | /* confdefs.h. */ |
| 9748 | _ACEOF |
| 9749 | cat confdefs.h >>conftest.$ac_ext |
| 9750 | cat >>conftest.$ac_ext <<_ACEOF |
| 9751 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9752 | #include <sys/types.h> |
| 9753 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9754 | |
| 9755 | int |
| 9756 | main () |
| 9757 | { |
| 9758 | if ((DIR *) 0) |
| 9759 | return 0; |
| 9760 | ; |
| 9761 | return 0; |
| 9762 | } |
| 9763 | _ACEOF |
| 9764 | rm -f conftest.$ac_objext |
| 9765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9766 | (eval $ac_compile) 2>conftest.er1 |
| 9767 | ac_status=$? |
| 9768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9769 | rm -f conftest.er1 |
| 9770 | cat conftest.err >&5 |
| 9771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9772 | (exit $ac_status); } && |
| 9773 | { ac_try='test -z "$ac_c_werror_flag" |
| 9774 | || test ! -s conftest.err' |
| 9775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9776 | (eval $ac_try) 2>&5 |
| 9777 | ac_status=$? |
| 9778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9779 | (exit $ac_status); }; } && |
| 9780 | { ac_try='test -s conftest.$ac_objext' |
| 9781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9782 | (eval $ac_try) 2>&5 |
| 9783 | ac_status=$? |
| 9784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9785 | (exit $ac_status); }; }; then |
| 9786 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9787 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9788 | echo "$as_me: failed program was:" >&5 |
| 9789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9790 | |
| 9791 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9792 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9794 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9795 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9796 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9798 | cat >>confdefs.h <<_ACEOF |
| 9799 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 9800 | _ACEOF |
| 9801 | |
| 9802 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9803 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9804 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9805 | done |
| 9806 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9807 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9808 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9809 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 9810 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9812 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9813 | ac_func_search_save_LIBS=$LIBS |
| 9814 | ac_cv_search_opendir=no |
| 9815 | cat >conftest.$ac_ext <<_ACEOF |
| 9816 | /* confdefs.h. */ |
| 9817 | _ACEOF |
| 9818 | cat confdefs.h >>conftest.$ac_ext |
| 9819 | cat >>conftest.$ac_ext <<_ACEOF |
| 9820 | /* end confdefs.h. */ |
| 9821 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9822 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9823 | #ifdef __cplusplus |
| 9824 | extern "C" |
| 9825 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9826 | /* 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] | 9827 | builtin and then its argument prototype would still apply. */ |
| 9828 | char opendir (); |
| 9829 | int |
| 9830 | main () |
| 9831 | { |
| 9832 | opendir (); |
| 9833 | ; |
| 9834 | return 0; |
| 9835 | } |
| 9836 | _ACEOF |
| 9837 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9839 | (eval $ac_link) 2>conftest.er1 |
| 9840 | ac_status=$? |
| 9841 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9842 | rm -f conftest.er1 |
| 9843 | cat conftest.err >&5 |
| 9844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9845 | (exit $ac_status); } && |
| 9846 | { ac_try='test -z "$ac_c_werror_flag" |
| 9847 | || test ! -s conftest.err' |
| 9848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9849 | (eval $ac_try) 2>&5 |
| 9850 | ac_status=$? |
| 9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9852 | (exit $ac_status); }; } && |
| 9853 | { ac_try='test -s conftest$ac_exeext' |
| 9854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9855 | (eval $ac_try) 2>&5 |
| 9856 | ac_status=$? |
| 9857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9858 | (exit $ac_status); }; }; then |
| 9859 | ac_cv_search_opendir="none required" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9860 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9861 | echo "$as_me: failed program was:" >&5 |
| 9862 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9863 | |
| 9864 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9865 | rm -f conftest.err conftest.$ac_objext \ |
| 9866 | conftest$ac_exeext conftest.$ac_ext |
| 9867 | if test "$ac_cv_search_opendir" = no; then |
| 9868 | for ac_lib in dir; do |
| 9869 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9870 | cat >conftest.$ac_ext <<_ACEOF |
| 9871 | /* confdefs.h. */ |
| 9872 | _ACEOF |
| 9873 | cat confdefs.h >>conftest.$ac_ext |
| 9874 | cat >>conftest.$ac_ext <<_ACEOF |
| 9875 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9876 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9877 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9878 | #ifdef __cplusplus |
| 9879 | extern "C" |
| 9880 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9881 | /* 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] | 9882 | builtin and then its argument prototype would still apply. */ |
| 9883 | char opendir (); |
| 9884 | int |
| 9885 | main () |
| 9886 | { |
| 9887 | opendir (); |
| 9888 | ; |
| 9889 | return 0; |
| 9890 | } |
| 9891 | _ACEOF |
| 9892 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9894 | (eval $ac_link) 2>conftest.er1 |
| 9895 | ac_status=$? |
| 9896 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9897 | rm -f conftest.er1 |
| 9898 | cat conftest.err >&5 |
| 9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9900 | (exit $ac_status); } && |
| 9901 | { ac_try='test -z "$ac_c_werror_flag" |
| 9902 | || test ! -s conftest.err' |
| 9903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9904 | (eval $ac_try) 2>&5 |
| 9905 | ac_status=$? |
| 9906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9907 | (exit $ac_status); }; } && |
| 9908 | { ac_try='test -s conftest$ac_exeext' |
| 9909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9910 | (eval $ac_try) 2>&5 |
| 9911 | ac_status=$? |
| 9912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9913 | (exit $ac_status); }; }; then |
| 9914 | ac_cv_search_opendir="-l$ac_lib" |
| 9915 | break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9916 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9917 | echo "$as_me: failed program was:" >&5 |
| 9918 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9919 | |
| 9920 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9921 | rm -f conftest.err conftest.$ac_objext \ |
| 9922 | conftest$ac_exeext conftest.$ac_ext |
| 9923 | done |
| 9924 | fi |
| 9925 | LIBS=$ac_func_search_save_LIBS |
| 9926 | fi |
| 9927 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9928 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 9929 | if test "$ac_cv_search_opendir" != no; then |
| 9930 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 9931 | |
| 9932 | fi |
| 9933 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9934 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9935 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9936 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 9937 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9939 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9940 | ac_func_search_save_LIBS=$LIBS |
| 9941 | ac_cv_search_opendir=no |
| 9942 | cat >conftest.$ac_ext <<_ACEOF |
| 9943 | /* confdefs.h. */ |
| 9944 | _ACEOF |
| 9945 | cat confdefs.h >>conftest.$ac_ext |
| 9946 | cat >>conftest.$ac_ext <<_ACEOF |
| 9947 | /* end confdefs.h. */ |
| 9948 | |
| 9949 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9950 | #ifdef __cplusplus |
| 9951 | extern "C" |
| 9952 | #endif |
| 9953 | /* We use char because int might match the return type of a gcc2 |
| 9954 | builtin and then its argument prototype would still apply. */ |
| 9955 | char opendir (); |
| 9956 | int |
| 9957 | main () |
| 9958 | { |
| 9959 | opendir (); |
| 9960 | ; |
| 9961 | return 0; |
| 9962 | } |
| 9963 | _ACEOF |
| 9964 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9966 | (eval $ac_link) 2>conftest.er1 |
| 9967 | ac_status=$? |
| 9968 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9969 | rm -f conftest.er1 |
| 9970 | cat conftest.err >&5 |
| 9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9972 | (exit $ac_status); } && |
| 9973 | { ac_try='test -z "$ac_c_werror_flag" |
| 9974 | || test ! -s conftest.err' |
| 9975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9976 | (eval $ac_try) 2>&5 |
| 9977 | ac_status=$? |
| 9978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9979 | (exit $ac_status); }; } && |
| 9980 | { ac_try='test -s conftest$ac_exeext' |
| 9981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9982 | (eval $ac_try) 2>&5 |
| 9983 | ac_status=$? |
| 9984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9985 | (exit $ac_status); }; }; then |
| 9986 | ac_cv_search_opendir="none required" |
| 9987 | else |
| 9988 | echo "$as_me: failed program was:" >&5 |
| 9989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9990 | |
| 9991 | fi |
| 9992 | rm -f conftest.err conftest.$ac_objext \ |
| 9993 | conftest$ac_exeext conftest.$ac_ext |
| 9994 | if test "$ac_cv_search_opendir" = no; then |
| 9995 | for ac_lib in x; do |
| 9996 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9997 | cat >conftest.$ac_ext <<_ACEOF |
| 9998 | /* confdefs.h. */ |
| 9999 | _ACEOF |
| 10000 | cat confdefs.h >>conftest.$ac_ext |
| 10001 | cat >>conftest.$ac_ext <<_ACEOF |
| 10002 | /* end confdefs.h. */ |
| 10003 | |
| 10004 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 10005 | #ifdef __cplusplus |
| 10006 | extern "C" |
| 10007 | #endif |
| 10008 | /* We use char because int might match the return type of a gcc2 |
| 10009 | builtin and then its argument prototype would still apply. */ |
| 10010 | char opendir (); |
| 10011 | int |
| 10012 | main () |
| 10013 | { |
| 10014 | opendir (); |
| 10015 | ; |
| 10016 | return 0; |
| 10017 | } |
| 10018 | _ACEOF |
| 10019 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10021 | (eval $ac_link) 2>conftest.er1 |
| 10022 | ac_status=$? |
| 10023 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10024 | rm -f conftest.er1 |
| 10025 | cat conftest.err >&5 |
| 10026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10027 | (exit $ac_status); } && |
| 10028 | { ac_try='test -z "$ac_c_werror_flag" |
| 10029 | || test ! -s conftest.err' |
| 10030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10031 | (eval $ac_try) 2>&5 |
| 10032 | ac_status=$? |
| 10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10034 | (exit $ac_status); }; } && |
| 10035 | { ac_try='test -s conftest$ac_exeext' |
| 10036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10037 | (eval $ac_try) 2>&5 |
| 10038 | ac_status=$? |
| 10039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10040 | (exit $ac_status); }; }; then |
| 10041 | ac_cv_search_opendir="-l$ac_lib" |
| 10042 | break |
| 10043 | else |
| 10044 | echo "$as_me: failed program was:" >&5 |
| 10045 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10046 | |
| 10047 | fi |
| 10048 | rm -f conftest.err conftest.$ac_objext \ |
| 10049 | conftest$ac_exeext conftest.$ac_ext |
| 10050 | done |
| 10051 | fi |
| 10052 | LIBS=$ac_func_search_save_LIBS |
| 10053 | fi |
| 10054 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 10055 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 10056 | if test "$ac_cv_search_opendir" != no; then |
| 10057 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 10058 | |
| 10059 | fi |
| 10060 | |
| 10061 | fi |
| 10062 | |
| 10063 | |
| 10064 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 10065 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 10066 | if test "${ac_cv_header_stdc+set}" = set; then |
| 10067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10068 | else |
| 10069 | cat >conftest.$ac_ext <<_ACEOF |
| 10070 | /* confdefs.h. */ |
| 10071 | _ACEOF |
| 10072 | cat confdefs.h >>conftest.$ac_ext |
| 10073 | cat >>conftest.$ac_ext <<_ACEOF |
| 10074 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10075 | #include <stdlib.h> |
| 10076 | #include <stdarg.h> |
| 10077 | #include <string.h> |
| 10078 | #include <float.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10079 | |
| 10080 | int |
| 10081 | main () |
| 10082 | { |
| 10083 | |
| 10084 | ; |
| 10085 | return 0; |
| 10086 | } |
| 10087 | _ACEOF |
| 10088 | rm -f conftest.$ac_objext |
| 10089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10090 | (eval $ac_compile) 2>conftest.er1 |
| 10091 | ac_status=$? |
| 10092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10093 | rm -f conftest.er1 |
| 10094 | cat conftest.err >&5 |
| 10095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10096 | (exit $ac_status); } && |
| 10097 | { ac_try='test -z "$ac_c_werror_flag" |
| 10098 | || test ! -s conftest.err' |
| 10099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10100 | (eval $ac_try) 2>&5 |
| 10101 | ac_status=$? |
| 10102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10103 | (exit $ac_status); }; } && |
| 10104 | { ac_try='test -s conftest.$ac_objext' |
| 10105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10106 | (eval $ac_try) 2>&5 |
| 10107 | ac_status=$? |
| 10108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10109 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10110 | ac_cv_header_stdc=yes |
| 10111 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10112 | echo "$as_me: failed program was:" >&5 |
| 10113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10114 | |
| 10115 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10116 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10118 | |
| 10119 | if test $ac_cv_header_stdc = yes; then |
| 10120 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10121 | cat >conftest.$ac_ext <<_ACEOF |
| 10122 | /* confdefs.h. */ |
| 10123 | _ACEOF |
| 10124 | cat confdefs.h >>conftest.$ac_ext |
| 10125 | cat >>conftest.$ac_ext <<_ACEOF |
| 10126 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10127 | #include <string.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10128 | |
| 10129 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10130 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10131 | $EGREP "memchr" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10132 | : |
| 10133 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10134 | ac_cv_header_stdc=no |
| 10135 | fi |
| 10136 | rm -f conftest* |
| 10137 | |
| 10138 | fi |
| 10139 | |
| 10140 | if test $ac_cv_header_stdc = yes; then |
| 10141 | # 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] | 10142 | cat >conftest.$ac_ext <<_ACEOF |
| 10143 | /* confdefs.h. */ |
| 10144 | _ACEOF |
| 10145 | cat confdefs.h >>conftest.$ac_ext |
| 10146 | cat >>conftest.$ac_ext <<_ACEOF |
| 10147 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10148 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10149 | |
| 10150 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10152 | $EGREP "free" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10153 | : |
| 10154 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10155 | ac_cv_header_stdc=no |
| 10156 | fi |
| 10157 | rm -f conftest* |
| 10158 | |
| 10159 | fi |
| 10160 | |
| 10161 | if test $ac_cv_header_stdc = yes; then |
| 10162 | # /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] | 10163 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10164 | : |
| 10165 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10166 | cat >conftest.$ac_ext <<_ACEOF |
| 10167 | /* confdefs.h. */ |
| 10168 | _ACEOF |
| 10169 | cat confdefs.h >>conftest.$ac_ext |
| 10170 | cat >>conftest.$ac_ext <<_ACEOF |
| 10171 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10172 | #include <ctype.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10173 | #if ((' ' & 0x0FF) == 0x020) |
| 10174 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 10175 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 10176 | #else |
| 10177 | # define ISLOWER(c) \ |
| 10178 | (('a' <= (c) && (c) <= 'i') \ |
| 10179 | || ('j' <= (c) && (c) <= 'r') \ |
| 10180 | || ('s' <= (c) && (c) <= 'z')) |
| 10181 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 10182 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10183 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10184 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 10185 | int |
| 10186 | main () |
| 10187 | { |
| 10188 | int i; |
| 10189 | for (i = 0; i < 256; i++) |
| 10190 | if (XOR (islower (i), ISLOWER (i)) |
| 10191 | || toupper (i) != TOUPPER (i)) |
| 10192 | exit(2); |
| 10193 | exit (0); |
| 10194 | } |
| 10195 | _ACEOF |
| 10196 | rm -f conftest$ac_exeext |
| 10197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10198 | (eval $ac_link) 2>&5 |
| 10199 | ac_status=$? |
| 10200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10201 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10203 | (eval $ac_try) 2>&5 |
| 10204 | ac_status=$? |
| 10205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10206 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10207 | : |
| 10208 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10209 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10210 | echo "$as_me: failed program was:" >&5 |
| 10211 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10212 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10213 | ( exit $ac_status ) |
| 10214 | ac_cv_header_stdc=no |
| 10215 | fi |
| 10216 | 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] | 10217 | fi |
| 10218 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10219 | fi |
| 10220 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 10221 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10222 | if test $ac_cv_header_stdc = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10223 | |
| 10224 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10225 | #define STDC_HEADERS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10226 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10227 | |
| 10228 | fi |
| 10229 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10230 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 10231 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 10232 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 10233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10234 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10235 | cat >conftest.$ac_ext <<_ACEOF |
| 10236 | /* confdefs.h. */ |
| 10237 | _ACEOF |
| 10238 | cat confdefs.h >>conftest.$ac_ext |
| 10239 | cat >>conftest.$ac_ext <<_ACEOF |
| 10240 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10241 | #include <sys/types.h> |
| 10242 | #include <sys/wait.h> |
| 10243 | #ifndef WEXITSTATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10244 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10245 | #endif |
| 10246 | #ifndef WIFEXITED |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10247 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10248 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10249 | |
| 10250 | int |
| 10251 | main () |
| 10252 | { |
| 10253 | int s; |
| 10254 | wait (&s); |
| 10255 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 10256 | ; |
| 10257 | return 0; |
| 10258 | } |
| 10259 | _ACEOF |
| 10260 | rm -f conftest.$ac_objext |
| 10261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10262 | (eval $ac_compile) 2>conftest.er1 |
| 10263 | ac_status=$? |
| 10264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10265 | rm -f conftest.er1 |
| 10266 | cat conftest.err >&5 |
| 10267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10268 | (exit $ac_status); } && |
| 10269 | { ac_try='test -z "$ac_c_werror_flag" |
| 10270 | || test ! -s conftest.err' |
| 10271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10272 | (eval $ac_try) 2>&5 |
| 10273 | ac_status=$? |
| 10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10275 | (exit $ac_status); }; } && |
| 10276 | { ac_try='test -s conftest.$ac_objext' |
| 10277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10278 | (eval $ac_try) 2>&5 |
| 10279 | ac_status=$? |
| 10280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10281 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10282 | ac_cv_header_sys_wait_h=yes |
| 10283 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10284 | echo "$as_me: failed program was:" >&5 |
| 10285 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10286 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10287 | ac_cv_header_sys_wait_h=no |
| 10288 | fi |
| 10289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10290 | fi |
| 10291 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 10292 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10293 | if test $ac_cv_header_sys_wait_h = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10294 | |
| 10295 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10296 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10297 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10298 | |
| 10299 | fi |
| 10300 | |
| 10301 | |
| 10302 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10303 | echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 10304 | echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6 |
| 10305 | cat >conftest.$ac_ext <<_ACEOF |
| 10306 | /* confdefs.h. */ |
| 10307 | _ACEOF |
| 10308 | cat confdefs.h >>conftest.$ac_ext |
| 10309 | cat >>conftest.$ac_ext <<_ACEOF |
| 10310 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10311 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10312 | int |
| 10313 | main () |
| 10314 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10315 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10316 | ; |
| 10317 | return 0; |
| 10318 | } |
| 10319 | _ACEOF |
| 10320 | rm -f conftest.$ac_objext |
| 10321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10322 | (eval $ac_compile) 2>conftest.er1 |
| 10323 | ac_status=$? |
| 10324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10325 | rm -f conftest.er1 |
| 10326 | cat conftest.err >&5 |
| 10327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10328 | (exit $ac_status); } && |
| 10329 | { ac_try='test -z "$ac_c_werror_flag" |
| 10330 | || test ! -s conftest.err' |
| 10331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10332 | (eval $ac_try) 2>&5 |
| 10333 | ac_status=$? |
| 10334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10335 | (exit $ac_status); }; } && |
| 10336 | { ac_try='test -s conftest.$ac_objext' |
| 10337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10338 | (eval $ac_try) 2>&5 |
| 10339 | ac_status=$? |
| 10340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10341 | (exit $ac_status); }; }; then |
| 10342 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10343 | echo "${ECHO_T}yes" >&6 |
| 10344 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10345 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10346 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10347 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10348 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10349 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10350 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10351 | |
| 10352 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10353 | echo "$as_me: failed program was:" >&5 |
| 10354 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10355 | |
| 10356 | echo "$as_me:$LINENO: result: no" >&5 |
| 10357 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10358 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10360 | fi |
| 10361 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10362 | |
| 10363 | |
| 10364 | |
| 10365 | |
| 10366 | |
| 10367 | |
| 10368 | |
| 10369 | |
| 10370 | |
| 10371 | |
| 10372 | |
| 10373 | |
| 10374 | |
| 10375 | |
| 10376 | |
| 10377 | |
| 10378 | |
| 10379 | |
| 10380 | |
| 10381 | |
| 10382 | |
| 10383 | |
| 10384 | |
| 10385 | |
| 10386 | |
| 10387 | |
| 10388 | |
| 10389 | |
| 10390 | |
| 10391 | |
| 10392 | |
| 10393 | |
| 10394 | |
| 10395 | |
| 10396 | |
| 10397 | |
| 10398 | |
| 10399 | |
| 10400 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10401 | |
Bram Moolenaar | e74455a | 2007-11-04 14:36:18 +0000 | [diff] [blame] | 10402 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10403 | for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ |
Bram Moolenaar | e74455a | 2007-11-04 14:36:18 +0000 | [diff] [blame] | 10404 | termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h sys/types.h termio.h \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10405 | iconv.h langinfo.h unistd.h stropts.h errno.h \ |
| 10406 | sys/resource.h sys/systeminfo.h locale.h \ |
| 10407 | sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ |
| 10408 | 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] | 10409 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10410 | 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] | 10411 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10412 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10418 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10420 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10421 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10422 | # Is the header compilable? |
| 10423 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10424 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10425 | cat >conftest.$ac_ext <<_ACEOF |
| 10426 | /* confdefs.h. */ |
| 10427 | _ACEOF |
| 10428 | cat confdefs.h >>conftest.$ac_ext |
| 10429 | cat >>conftest.$ac_ext <<_ACEOF |
| 10430 | /* end confdefs.h. */ |
| 10431 | $ac_includes_default |
| 10432 | #include <$ac_header> |
| 10433 | _ACEOF |
| 10434 | rm -f conftest.$ac_objext |
| 10435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10436 | (eval $ac_compile) 2>conftest.er1 |
| 10437 | ac_status=$? |
| 10438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10439 | rm -f conftest.er1 |
| 10440 | cat conftest.err >&5 |
| 10441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10442 | (exit $ac_status); } && |
| 10443 | { ac_try='test -z "$ac_c_werror_flag" |
| 10444 | || test ! -s conftest.err' |
| 10445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10446 | (eval $ac_try) 2>&5 |
| 10447 | ac_status=$? |
| 10448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10449 | (exit $ac_status); }; } && |
| 10450 | { ac_try='test -s conftest.$ac_objext' |
| 10451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10452 | (eval $ac_try) 2>&5 |
| 10453 | ac_status=$? |
| 10454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10455 | (exit $ac_status); }; }; then |
| 10456 | ac_header_compiler=yes |
| 10457 | else |
| 10458 | echo "$as_me: failed program was:" >&5 |
| 10459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10460 | |
| 10461 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10462 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10464 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10465 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10466 | |
| 10467 | # Is the header present? |
| 10468 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10469 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10470 | cat >conftest.$ac_ext <<_ACEOF |
| 10471 | /* confdefs.h. */ |
| 10472 | _ACEOF |
| 10473 | cat confdefs.h >>conftest.$ac_ext |
| 10474 | cat >>conftest.$ac_ext <<_ACEOF |
| 10475 | /* end confdefs.h. */ |
| 10476 | #include <$ac_header> |
| 10477 | _ACEOF |
| 10478 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10479 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10480 | ac_status=$? |
| 10481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10482 | rm -f conftest.er1 |
| 10483 | cat conftest.err >&5 |
| 10484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10485 | (exit $ac_status); } >/dev/null; then |
| 10486 | if test -s conftest.err; then |
| 10487 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10488 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10489 | else |
| 10490 | ac_cpp_err= |
| 10491 | fi |
| 10492 | else |
| 10493 | ac_cpp_err=yes |
| 10494 | fi |
| 10495 | if test -z "$ac_cpp_err"; then |
| 10496 | ac_header_preproc=yes |
| 10497 | else |
| 10498 | echo "$as_me: failed program was:" >&5 |
| 10499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10500 | |
| 10501 | ac_header_preproc=no |
| 10502 | fi |
| 10503 | rm -f conftest.err conftest.$ac_ext |
| 10504 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10505 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10506 | |
| 10507 | # So? What about this header? |
| 10508 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10509 | yes:no: ) |
| 10510 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10511 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10512 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10513 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10514 | ac_header_preproc=yes |
| 10515 | ;; |
| 10516 | no:yes:* ) |
| 10517 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10518 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10519 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10520 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10521 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10522 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10523 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10524 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10525 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10526 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10527 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10528 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10529 | ( |
| 10530 | cat <<\_ASBOX |
| 10531 | ## ------------------------------------------ ## |
| 10532 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10533 | ## ------------------------------------------ ## |
| 10534 | _ASBOX |
| 10535 | ) | |
| 10536 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10537 | ;; |
| 10538 | esac |
| 10539 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10540 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10543 | else |
| 10544 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10545 | fi |
| 10546 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10547 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10548 | |
| 10549 | fi |
| 10550 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10551 | cat >>confdefs.h <<_ACEOF |
| 10552 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10553 | _ACEOF |
| 10554 | |
| 10555 | fi |
| 10556 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10557 | done |
| 10558 | |
| 10559 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10560 | echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 10561 | echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6 |
| 10562 | cat >conftest.$ac_ext <<_ACEOF |
| 10563 | /* confdefs.h. */ |
| 10564 | _ACEOF |
| 10565 | cat confdefs.h >>conftest.$ac_ext |
| 10566 | cat >>conftest.$ac_ext <<_ACEOF |
| 10567 | /* end confdefs.h. */ |
| 10568 | |
| 10569 | #include <pthread.h> |
| 10570 | #include <pthread_np.h> |
| 10571 | int |
| 10572 | main () |
| 10573 | { |
| 10574 | int i; i = 0; |
| 10575 | ; |
| 10576 | return 0; |
| 10577 | } |
| 10578 | _ACEOF |
| 10579 | rm -f conftest.$ac_objext |
| 10580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10581 | (eval $ac_compile) 2>conftest.er1 |
| 10582 | ac_status=$? |
| 10583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10584 | rm -f conftest.er1 |
| 10585 | cat conftest.err >&5 |
| 10586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10587 | (exit $ac_status); } && |
| 10588 | { ac_try='test -z "$ac_c_werror_flag" |
| 10589 | || test ! -s conftest.err' |
| 10590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10591 | (eval $ac_try) 2>&5 |
| 10592 | ac_status=$? |
| 10593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10594 | (exit $ac_status); }; } && |
| 10595 | { ac_try='test -s conftest.$ac_objext' |
| 10596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10597 | (eval $ac_try) 2>&5 |
| 10598 | ac_status=$? |
| 10599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10600 | (exit $ac_status); }; }; then |
| 10601 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10602 | echo "${ECHO_T}yes" >&6 |
| 10603 | cat >>confdefs.h <<\_ACEOF |
| 10604 | #define HAVE_PTHREAD_NP_H 1 |
| 10605 | _ACEOF |
| 10606 | |
| 10607 | else |
| 10608 | echo "$as_me: failed program was:" >&5 |
| 10609 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10610 | |
| 10611 | echo "$as_me:$LINENO: result: no" >&5 |
| 10612 | echo "${ECHO_T}no" >&6 |
| 10613 | fi |
| 10614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10615 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10616 | |
| 10617 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10618 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10619 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10620 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10621 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10622 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10623 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10625 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10627 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10628 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10629 | # Is the header compilable? |
| 10630 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10631 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10632 | cat >conftest.$ac_ext <<_ACEOF |
| 10633 | /* confdefs.h. */ |
| 10634 | _ACEOF |
| 10635 | cat confdefs.h >>conftest.$ac_ext |
| 10636 | cat >>conftest.$ac_ext <<_ACEOF |
| 10637 | /* end confdefs.h. */ |
| 10638 | $ac_includes_default |
| 10639 | #include <$ac_header> |
| 10640 | _ACEOF |
| 10641 | rm -f conftest.$ac_objext |
| 10642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10643 | (eval $ac_compile) 2>conftest.er1 |
| 10644 | ac_status=$? |
| 10645 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10646 | rm -f conftest.er1 |
| 10647 | cat conftest.err >&5 |
| 10648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10649 | (exit $ac_status); } && |
| 10650 | { ac_try='test -z "$ac_c_werror_flag" |
| 10651 | || test ! -s conftest.err' |
| 10652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10653 | (eval $ac_try) 2>&5 |
| 10654 | ac_status=$? |
| 10655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10656 | (exit $ac_status); }; } && |
| 10657 | { ac_try='test -s conftest.$ac_objext' |
| 10658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10659 | (eval $ac_try) 2>&5 |
| 10660 | ac_status=$? |
| 10661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10662 | (exit $ac_status); }; }; then |
| 10663 | ac_header_compiler=yes |
| 10664 | else |
| 10665 | echo "$as_me: failed program was:" >&5 |
| 10666 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10667 | |
| 10668 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10669 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10671 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10672 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10673 | |
| 10674 | # Is the header present? |
| 10675 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10676 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10677 | cat >conftest.$ac_ext <<_ACEOF |
| 10678 | /* confdefs.h. */ |
| 10679 | _ACEOF |
| 10680 | cat confdefs.h >>conftest.$ac_ext |
| 10681 | cat >>conftest.$ac_ext <<_ACEOF |
| 10682 | /* end confdefs.h. */ |
| 10683 | #include <$ac_header> |
| 10684 | _ACEOF |
| 10685 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10686 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10687 | ac_status=$? |
| 10688 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10689 | rm -f conftest.er1 |
| 10690 | cat conftest.err >&5 |
| 10691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10692 | (exit $ac_status); } >/dev/null; then |
| 10693 | if test -s conftest.err; then |
| 10694 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10695 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10696 | else |
| 10697 | ac_cpp_err= |
| 10698 | fi |
| 10699 | else |
| 10700 | ac_cpp_err=yes |
| 10701 | fi |
| 10702 | if test -z "$ac_cpp_err"; then |
| 10703 | ac_header_preproc=yes |
| 10704 | else |
| 10705 | echo "$as_me: failed program was:" >&5 |
| 10706 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10707 | |
| 10708 | ac_header_preproc=no |
| 10709 | fi |
| 10710 | rm -f conftest.err conftest.$ac_ext |
| 10711 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10712 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10713 | |
| 10714 | # So? What about this header? |
| 10715 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10716 | yes:no: ) |
| 10717 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10718 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10719 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10720 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10721 | ac_header_preproc=yes |
| 10722 | ;; |
| 10723 | no:yes:* ) |
| 10724 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10725 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10726 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10727 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10728 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10729 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10730 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10731 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10732 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10733 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10734 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10735 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10736 | ( |
| 10737 | cat <<\_ASBOX |
| 10738 | ## ------------------------------------------ ## |
| 10739 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10740 | ## ------------------------------------------ ## |
| 10741 | _ASBOX |
| 10742 | ) | |
| 10743 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10744 | ;; |
| 10745 | esac |
| 10746 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10747 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10748 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10750 | else |
| 10751 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10752 | fi |
| 10753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10755 | |
| 10756 | fi |
| 10757 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10758 | cat >>confdefs.h <<_ACEOF |
| 10759 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10760 | _ACEOF |
| 10761 | |
| 10762 | fi |
| 10763 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10764 | done |
| 10765 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 10766 | if test "x$MACOSX" = "xyes"; then |
| 10767 | cat >>confdefs.h <<\_ACEOF |
| 10768 | #define NO_STRINGS_WITH_STRING_H 1 |
| 10769 | _ACEOF |
| 10770 | |
| 10771 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10772 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10773 | echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 10774 | 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] | 10775 | cppflags_save=$CPPFLAGS |
| 10776 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10777 | cat >conftest.$ac_ext <<_ACEOF |
| 10778 | /* confdefs.h. */ |
| 10779 | _ACEOF |
| 10780 | cat confdefs.h >>conftest.$ac_ext |
| 10781 | cat >>conftest.$ac_ext <<_ACEOF |
| 10782 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10783 | |
| 10784 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 10785 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 10786 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 10787 | #endif |
| 10788 | #ifdef HAVE_XM_XM_H |
| 10789 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 10790 | #endif |
| 10791 | #ifdef HAVE_STRING_H |
| 10792 | # include <string.h> |
| 10793 | #endif |
| 10794 | #if defined(HAVE_STRINGS_H) |
| 10795 | # include <strings.h> |
| 10796 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10797 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10798 | int |
| 10799 | main () |
| 10800 | { |
| 10801 | int i; i = 0; |
| 10802 | ; |
| 10803 | return 0; |
| 10804 | } |
| 10805 | _ACEOF |
| 10806 | rm -f conftest.$ac_objext |
| 10807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10808 | (eval $ac_compile) 2>conftest.er1 |
| 10809 | ac_status=$? |
| 10810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10811 | rm -f conftest.er1 |
| 10812 | cat conftest.err >&5 |
| 10813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10814 | (exit $ac_status); } && |
| 10815 | { ac_try='test -z "$ac_c_werror_flag" |
| 10816 | || test ! -s conftest.err' |
| 10817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10818 | (eval $ac_try) 2>&5 |
| 10819 | ac_status=$? |
| 10820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10821 | (exit $ac_status); }; } && |
| 10822 | { ac_try='test -s conftest.$ac_objext' |
| 10823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10824 | (eval $ac_try) 2>&5 |
| 10825 | ac_status=$? |
| 10826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10827 | (exit $ac_status); }; }; then |
| 10828 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10829 | echo "${ECHO_T}yes" >&6 |
| 10830 | else |
| 10831 | echo "$as_me: failed program was:" >&5 |
| 10832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10833 | |
| 10834 | cat >>confdefs.h <<\_ACEOF |
| 10835 | #define NO_STRINGS_WITH_STRING_H 1 |
| 10836 | _ACEOF |
| 10837 | |
| 10838 | echo "$as_me:$LINENO: result: no" >&5 |
| 10839 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10840 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10842 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 10843 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10844 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10845 | if test $ac_cv_c_compiler_gnu = yes; then |
| 10846 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 10847 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 10848 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 10849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10850 | else |
| 10851 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10852 | cat >conftest.$ac_ext <<_ACEOF |
| 10853 | /* confdefs.h. */ |
| 10854 | _ACEOF |
| 10855 | cat confdefs.h >>conftest.$ac_ext |
| 10856 | cat >>conftest.$ac_ext <<_ACEOF |
| 10857 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10858 | #include <sgtty.h> |
| 10859 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10860 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10861 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10862 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10863 | ac_cv_prog_gcc_traditional=yes |
| 10864 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10865 | ac_cv_prog_gcc_traditional=no |
| 10866 | fi |
| 10867 | rm -f conftest* |
| 10868 | |
| 10869 | |
| 10870 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10871 | cat >conftest.$ac_ext <<_ACEOF |
| 10872 | /* confdefs.h. */ |
| 10873 | _ACEOF |
| 10874 | cat confdefs.h >>conftest.$ac_ext |
| 10875 | cat >>conftest.$ac_ext <<_ACEOF |
| 10876 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10877 | #include <termio.h> |
| 10878 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10879 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10880 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10881 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10882 | ac_cv_prog_gcc_traditional=yes |
| 10883 | fi |
| 10884 | rm -f conftest* |
| 10885 | |
| 10886 | fi |
| 10887 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10888 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 10889 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10890 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 10891 | CC="$CC -traditional" |
| 10892 | fi |
| 10893 | fi |
| 10894 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10895 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 10896 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 10897 | if test "${ac_cv_c_const+set}" = set; then |
| 10898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10899 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10900 | cat >conftest.$ac_ext <<_ACEOF |
| 10901 | /* confdefs.h. */ |
| 10902 | _ACEOF |
| 10903 | cat confdefs.h >>conftest.$ac_ext |
| 10904 | cat >>conftest.$ac_ext <<_ACEOF |
| 10905 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10906 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10907 | int |
| 10908 | main () |
| 10909 | { |
| 10910 | /* FIXME: Include the comments suggested by Paul. */ |
| 10911 | #ifndef __cplusplus |
| 10912 | /* Ultrix mips cc rejects this. */ |
| 10913 | typedef int charset[2]; |
| 10914 | const charset x; |
| 10915 | /* SunOS 4.1.1 cc rejects this. */ |
| 10916 | char const *const *ccp; |
| 10917 | char **p; |
| 10918 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 10919 | struct point {int x, y;}; |
| 10920 | static struct point const zero = {0,0}; |
| 10921 | /* AIX XL C 1.02.0.0 rejects this. |
| 10922 | It does not let you subtract one const X* pointer from another in |
| 10923 | an arm of an if-expression whose if-part is not a constant |
| 10924 | expression */ |
| 10925 | const char *g = "string"; |
| 10926 | ccp = &g + (g ? g-g : 0); |
| 10927 | /* HPUX 7.0 cc rejects these. */ |
| 10928 | ++ccp; |
| 10929 | p = (char**) ccp; |
| 10930 | ccp = (char const *const *) p; |
| 10931 | { /* SCO 3.2v4 cc rejects this. */ |
| 10932 | char *t; |
| 10933 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10934 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10935 | *t++ = 0; |
| 10936 | } |
| 10937 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 10938 | int x[] = {25, 17}; |
| 10939 | const int *foo = &x[0]; |
| 10940 | ++foo; |
| 10941 | } |
| 10942 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 10943 | typedef const int *iptr; |
| 10944 | iptr p = 0; |
| 10945 | ++p; |
| 10946 | } |
| 10947 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 10948 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 10949 | struct s { int j; const int *ap[3]; }; |
| 10950 | struct s *b; b->j = 5; |
| 10951 | } |
| 10952 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 10953 | const int foo = 10; |
| 10954 | } |
| 10955 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10956 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10957 | ; |
| 10958 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10959 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10960 | _ACEOF |
| 10961 | rm -f conftest.$ac_objext |
| 10962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10963 | (eval $ac_compile) 2>conftest.er1 |
| 10964 | ac_status=$? |
| 10965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10966 | rm -f conftest.er1 |
| 10967 | cat conftest.err >&5 |
| 10968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10969 | (exit $ac_status); } && |
| 10970 | { ac_try='test -z "$ac_c_werror_flag" |
| 10971 | || test ! -s conftest.err' |
| 10972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10973 | (eval $ac_try) 2>&5 |
| 10974 | ac_status=$? |
| 10975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10976 | (exit $ac_status); }; } && |
| 10977 | { ac_try='test -s conftest.$ac_objext' |
| 10978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10979 | (eval $ac_try) 2>&5 |
| 10980 | ac_status=$? |
| 10981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10982 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10983 | ac_cv_c_const=yes |
| 10984 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10985 | echo "$as_me: failed program was:" >&5 |
| 10986 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10987 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10988 | ac_cv_c_const=no |
| 10989 | fi |
| 10990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10991 | fi |
| 10992 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 10993 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10994 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10995 | |
| 10996 | cat >>confdefs.h <<\_ACEOF |
| 10997 | #define const |
| 10998 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10999 | |
| 11000 | fi |
| 11001 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11002 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 11003 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 11004 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 11005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11006 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11007 | cat >conftest.$ac_ext <<_ACEOF |
| 11008 | /* confdefs.h. */ |
| 11009 | _ACEOF |
| 11010 | cat confdefs.h >>conftest.$ac_ext |
| 11011 | cat >>conftest.$ac_ext <<_ACEOF |
| 11012 | /* end confdefs.h. */ |
| 11013 | $ac_includes_default |
| 11014 | int |
| 11015 | main () |
| 11016 | { |
| 11017 | if ((mode_t *) 0) |
| 11018 | return 0; |
| 11019 | if (sizeof (mode_t)) |
| 11020 | return 0; |
| 11021 | ; |
| 11022 | return 0; |
| 11023 | } |
| 11024 | _ACEOF |
| 11025 | rm -f conftest.$ac_objext |
| 11026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11027 | (eval $ac_compile) 2>conftest.er1 |
| 11028 | ac_status=$? |
| 11029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11030 | rm -f conftest.er1 |
| 11031 | cat conftest.err >&5 |
| 11032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11033 | (exit $ac_status); } && |
| 11034 | { ac_try='test -z "$ac_c_werror_flag" |
| 11035 | || test ! -s conftest.err' |
| 11036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11037 | (eval $ac_try) 2>&5 |
| 11038 | ac_status=$? |
| 11039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11040 | (exit $ac_status); }; } && |
| 11041 | { ac_try='test -s conftest.$ac_objext' |
| 11042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11043 | (eval $ac_try) 2>&5 |
| 11044 | ac_status=$? |
| 11045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11046 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11047 | ac_cv_type_mode_t=yes |
| 11048 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11049 | echo "$as_me: failed program was:" >&5 |
| 11050 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11051 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11052 | ac_cv_type_mode_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11053 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11055 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11056 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 11057 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 11058 | if test $ac_cv_type_mode_t = yes; then |
| 11059 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11060 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11061 | |
| 11062 | cat >>confdefs.h <<_ACEOF |
| 11063 | #define mode_t int |
| 11064 | _ACEOF |
| 11065 | |
| 11066 | fi |
| 11067 | |
| 11068 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 11069 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 11070 | if test "${ac_cv_type_off_t+set}" = set; then |
| 11071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11072 | else |
| 11073 | cat >conftest.$ac_ext <<_ACEOF |
| 11074 | /* confdefs.h. */ |
| 11075 | _ACEOF |
| 11076 | cat confdefs.h >>conftest.$ac_ext |
| 11077 | cat >>conftest.$ac_ext <<_ACEOF |
| 11078 | /* end confdefs.h. */ |
| 11079 | $ac_includes_default |
| 11080 | int |
| 11081 | main () |
| 11082 | { |
| 11083 | if ((off_t *) 0) |
| 11084 | return 0; |
| 11085 | if (sizeof (off_t)) |
| 11086 | return 0; |
| 11087 | ; |
| 11088 | return 0; |
| 11089 | } |
| 11090 | _ACEOF |
| 11091 | rm -f conftest.$ac_objext |
| 11092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11093 | (eval $ac_compile) 2>conftest.er1 |
| 11094 | ac_status=$? |
| 11095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11096 | rm -f conftest.er1 |
| 11097 | cat conftest.err >&5 |
| 11098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11099 | (exit $ac_status); } && |
| 11100 | { ac_try='test -z "$ac_c_werror_flag" |
| 11101 | || test ! -s conftest.err' |
| 11102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11103 | (eval $ac_try) 2>&5 |
| 11104 | ac_status=$? |
| 11105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11106 | (exit $ac_status); }; } && |
| 11107 | { ac_try='test -s conftest.$ac_objext' |
| 11108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11109 | (eval $ac_try) 2>&5 |
| 11110 | ac_status=$? |
| 11111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11112 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11113 | ac_cv_type_off_t=yes |
| 11114 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11115 | echo "$as_me: failed program was:" >&5 |
| 11116 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11117 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11118 | ac_cv_type_off_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11119 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11121 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11122 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 11123 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 11124 | if test $ac_cv_type_off_t = yes; then |
| 11125 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11126 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11127 | |
| 11128 | cat >>confdefs.h <<_ACEOF |
| 11129 | #define off_t long |
| 11130 | _ACEOF |
| 11131 | |
| 11132 | fi |
| 11133 | |
| 11134 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 11135 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 11136 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 11137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11138 | else |
| 11139 | cat >conftest.$ac_ext <<_ACEOF |
| 11140 | /* confdefs.h. */ |
| 11141 | _ACEOF |
| 11142 | cat confdefs.h >>conftest.$ac_ext |
| 11143 | cat >>conftest.$ac_ext <<_ACEOF |
| 11144 | /* end confdefs.h. */ |
| 11145 | $ac_includes_default |
| 11146 | int |
| 11147 | main () |
| 11148 | { |
| 11149 | if ((pid_t *) 0) |
| 11150 | return 0; |
| 11151 | if (sizeof (pid_t)) |
| 11152 | return 0; |
| 11153 | ; |
| 11154 | return 0; |
| 11155 | } |
| 11156 | _ACEOF |
| 11157 | rm -f conftest.$ac_objext |
| 11158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11159 | (eval $ac_compile) 2>conftest.er1 |
| 11160 | ac_status=$? |
| 11161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11162 | rm -f conftest.er1 |
| 11163 | cat conftest.err >&5 |
| 11164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11165 | (exit $ac_status); } && |
| 11166 | { ac_try='test -z "$ac_c_werror_flag" |
| 11167 | || test ! -s conftest.err' |
| 11168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11169 | (eval $ac_try) 2>&5 |
| 11170 | ac_status=$? |
| 11171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11172 | (exit $ac_status); }; } && |
| 11173 | { ac_try='test -s conftest.$ac_objext' |
| 11174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11175 | (eval $ac_try) 2>&5 |
| 11176 | ac_status=$? |
| 11177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11178 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11179 | ac_cv_type_pid_t=yes |
| 11180 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11181 | echo "$as_me: failed program was:" >&5 |
| 11182 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11183 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11184 | ac_cv_type_pid_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11185 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11187 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11188 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 11189 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 11190 | if test $ac_cv_type_pid_t = yes; then |
| 11191 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11192 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11193 | |
| 11194 | cat >>confdefs.h <<_ACEOF |
| 11195 | #define pid_t int |
| 11196 | _ACEOF |
| 11197 | |
| 11198 | fi |
| 11199 | |
| 11200 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 11201 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 11202 | if test "${ac_cv_type_size_t+set}" = set; then |
| 11203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11204 | else |
| 11205 | cat >conftest.$ac_ext <<_ACEOF |
| 11206 | /* confdefs.h. */ |
| 11207 | _ACEOF |
| 11208 | cat confdefs.h >>conftest.$ac_ext |
| 11209 | cat >>conftest.$ac_ext <<_ACEOF |
| 11210 | /* end confdefs.h. */ |
| 11211 | $ac_includes_default |
| 11212 | int |
| 11213 | main () |
| 11214 | { |
| 11215 | if ((size_t *) 0) |
| 11216 | return 0; |
| 11217 | if (sizeof (size_t)) |
| 11218 | return 0; |
| 11219 | ; |
| 11220 | return 0; |
| 11221 | } |
| 11222 | _ACEOF |
| 11223 | rm -f conftest.$ac_objext |
| 11224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11225 | (eval $ac_compile) 2>conftest.er1 |
| 11226 | ac_status=$? |
| 11227 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11228 | rm -f conftest.er1 |
| 11229 | cat conftest.err >&5 |
| 11230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11231 | (exit $ac_status); } && |
| 11232 | { ac_try='test -z "$ac_c_werror_flag" |
| 11233 | || test ! -s conftest.err' |
| 11234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11235 | (eval $ac_try) 2>&5 |
| 11236 | ac_status=$? |
| 11237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11238 | (exit $ac_status); }; } && |
| 11239 | { ac_try='test -s conftest.$ac_objext' |
| 11240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11241 | (eval $ac_try) 2>&5 |
| 11242 | ac_status=$? |
| 11243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11244 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11245 | ac_cv_type_size_t=yes |
| 11246 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11247 | echo "$as_me: failed program was:" >&5 |
| 11248 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11249 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11250 | ac_cv_type_size_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11251 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11253 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11254 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 11255 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 11256 | if test $ac_cv_type_size_t = yes; then |
| 11257 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11258 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11259 | |
| 11260 | cat >>confdefs.h <<_ACEOF |
| 11261 | #define size_t unsigned |
| 11262 | _ACEOF |
| 11263 | |
| 11264 | fi |
| 11265 | |
| 11266 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 11267 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 11268 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 11269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11270 | else |
| 11271 | cat >conftest.$ac_ext <<_ACEOF |
| 11272 | /* confdefs.h. */ |
| 11273 | _ACEOF |
| 11274 | cat confdefs.h >>conftest.$ac_ext |
| 11275 | cat >>conftest.$ac_ext <<_ACEOF |
| 11276 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11277 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11278 | |
| 11279 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11280 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11281 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11282 | ac_cv_type_uid_t=yes |
| 11283 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11284 | ac_cv_type_uid_t=no |
| 11285 | fi |
| 11286 | rm -f conftest* |
| 11287 | |
| 11288 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11289 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 11290 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11291 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11292 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11293 | cat >>confdefs.h <<\_ACEOF |
| 11294 | #define uid_t int |
| 11295 | _ACEOF |
| 11296 | |
| 11297 | |
| 11298 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11299 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11300 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11301 | |
| 11302 | fi |
| 11303 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11304 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 11305 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 11306 | if test "${ac_cv_header_time+set}" = set; then |
| 11307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11308 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11309 | cat >conftest.$ac_ext <<_ACEOF |
| 11310 | /* confdefs.h. */ |
| 11311 | _ACEOF |
| 11312 | cat confdefs.h >>conftest.$ac_ext |
| 11313 | cat >>conftest.$ac_ext <<_ACEOF |
| 11314 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11315 | #include <sys/types.h> |
| 11316 | #include <sys/time.h> |
| 11317 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11318 | |
| 11319 | int |
| 11320 | main () |
| 11321 | { |
| 11322 | if ((struct tm *) 0) |
| 11323 | return 0; |
| 11324 | ; |
| 11325 | return 0; |
| 11326 | } |
| 11327 | _ACEOF |
| 11328 | rm -f conftest.$ac_objext |
| 11329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11330 | (eval $ac_compile) 2>conftest.er1 |
| 11331 | ac_status=$? |
| 11332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11333 | rm -f conftest.er1 |
| 11334 | cat conftest.err >&5 |
| 11335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11336 | (exit $ac_status); } && |
| 11337 | { ac_try='test -z "$ac_c_werror_flag" |
| 11338 | || test ! -s conftest.err' |
| 11339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11340 | (eval $ac_try) 2>&5 |
| 11341 | ac_status=$? |
| 11342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11343 | (exit $ac_status); }; } && |
| 11344 | { ac_try='test -s conftest.$ac_objext' |
| 11345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11346 | (eval $ac_try) 2>&5 |
| 11347 | ac_status=$? |
| 11348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11349 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11350 | ac_cv_header_time=yes |
| 11351 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11352 | echo "$as_me: failed program was:" >&5 |
| 11353 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11354 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11355 | ac_cv_header_time=no |
| 11356 | fi |
| 11357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11358 | fi |
| 11359 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 11360 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11361 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11362 | |
| 11363 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11364 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11365 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11366 | |
| 11367 | fi |
| 11368 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11369 | echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 11370 | echo $ECHO_N "checking for ino_t... $ECHO_C" >&6 |
| 11371 | if test "${ac_cv_type_ino_t+set}" = set; then |
| 11372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11373 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11374 | cat >conftest.$ac_ext <<_ACEOF |
| 11375 | /* confdefs.h. */ |
| 11376 | _ACEOF |
| 11377 | cat confdefs.h >>conftest.$ac_ext |
| 11378 | cat >>conftest.$ac_ext <<_ACEOF |
| 11379 | /* end confdefs.h. */ |
| 11380 | $ac_includes_default |
| 11381 | int |
| 11382 | main () |
| 11383 | { |
| 11384 | if ((ino_t *) 0) |
| 11385 | return 0; |
| 11386 | if (sizeof (ino_t)) |
| 11387 | return 0; |
| 11388 | ; |
| 11389 | return 0; |
| 11390 | } |
| 11391 | _ACEOF |
| 11392 | rm -f conftest.$ac_objext |
| 11393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11394 | (eval $ac_compile) 2>conftest.er1 |
| 11395 | ac_status=$? |
| 11396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11397 | rm -f conftest.er1 |
| 11398 | cat conftest.err >&5 |
| 11399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11400 | (exit $ac_status); } && |
| 11401 | { ac_try='test -z "$ac_c_werror_flag" |
| 11402 | || test ! -s conftest.err' |
| 11403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11404 | (eval $ac_try) 2>&5 |
| 11405 | ac_status=$? |
| 11406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11407 | (exit $ac_status); }; } && |
| 11408 | { ac_try='test -s conftest.$ac_objext' |
| 11409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11410 | (eval $ac_try) 2>&5 |
| 11411 | ac_status=$? |
| 11412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11413 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11414 | ac_cv_type_ino_t=yes |
| 11415 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11416 | echo "$as_me: failed program was:" >&5 |
| 11417 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11418 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11419 | ac_cv_type_ino_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11420 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11422 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11423 | echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 11424 | echo "${ECHO_T}$ac_cv_type_ino_t" >&6 |
| 11425 | if test $ac_cv_type_ino_t = yes; then |
| 11426 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11427 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11428 | |
| 11429 | cat >>confdefs.h <<_ACEOF |
| 11430 | #define ino_t long |
| 11431 | _ACEOF |
| 11432 | |
| 11433 | fi |
| 11434 | |
| 11435 | echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 11436 | echo $ECHO_N "checking for dev_t... $ECHO_C" >&6 |
| 11437 | if test "${ac_cv_type_dev_t+set}" = set; then |
| 11438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11439 | else |
| 11440 | cat >conftest.$ac_ext <<_ACEOF |
| 11441 | /* confdefs.h. */ |
| 11442 | _ACEOF |
| 11443 | cat confdefs.h >>conftest.$ac_ext |
| 11444 | cat >>conftest.$ac_ext <<_ACEOF |
| 11445 | /* end confdefs.h. */ |
| 11446 | $ac_includes_default |
| 11447 | int |
| 11448 | main () |
| 11449 | { |
| 11450 | if ((dev_t *) 0) |
| 11451 | return 0; |
| 11452 | if (sizeof (dev_t)) |
| 11453 | return 0; |
| 11454 | ; |
| 11455 | return 0; |
| 11456 | } |
| 11457 | _ACEOF |
| 11458 | rm -f conftest.$ac_objext |
| 11459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11460 | (eval $ac_compile) 2>conftest.er1 |
| 11461 | ac_status=$? |
| 11462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11463 | rm -f conftest.er1 |
| 11464 | cat conftest.err >&5 |
| 11465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11466 | (exit $ac_status); } && |
| 11467 | { ac_try='test -z "$ac_c_werror_flag" |
| 11468 | || test ! -s conftest.err' |
| 11469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11470 | (eval $ac_try) 2>&5 |
| 11471 | ac_status=$? |
| 11472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11473 | (exit $ac_status); }; } && |
| 11474 | { ac_try='test -s conftest.$ac_objext' |
| 11475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11476 | (eval $ac_try) 2>&5 |
| 11477 | ac_status=$? |
| 11478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11479 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11480 | ac_cv_type_dev_t=yes |
| 11481 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11482 | echo "$as_me: failed program was:" >&5 |
| 11483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11484 | |
| 11485 | ac_cv_type_dev_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11486 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11488 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11489 | echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 11490 | echo "${ECHO_T}$ac_cv_type_dev_t" >&6 |
| 11491 | if test $ac_cv_type_dev_t = yes; then |
| 11492 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11493 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11494 | |
| 11495 | cat >>confdefs.h <<_ACEOF |
| 11496 | #define dev_t unsigned |
| 11497 | _ACEOF |
| 11498 | |
| 11499 | fi |
| 11500 | |
| 11501 | |
| 11502 | echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 11503 | echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6 |
| 11504 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
| 11505 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 11506 | echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6 |
| 11507 | else |
| 11508 | cat >conftest.$ac_ext <<_ACEOF |
| 11509 | /* confdefs.h. */ |
| 11510 | _ACEOF |
| 11511 | cat confdefs.h >>conftest.$ac_ext |
| 11512 | cat >>conftest.$ac_ext <<_ACEOF |
| 11513 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11514 | |
| 11515 | #include <sys/types.h> |
| 11516 | #if STDC_HEADERS |
| 11517 | #include <stdlib.h> |
| 11518 | #include <stddef.h> |
| 11519 | #endif |
| 11520 | #ifdef HAVE_SYS_RESOURCE_H |
| 11521 | #include <sys/resource.h> |
| 11522 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11523 | |
| 11524 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11525 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11526 | $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] | 11527 | ac_cv_type_rlim_t=yes |
| 11528 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11529 | ac_cv_type_rlim_t=no |
| 11530 | fi |
| 11531 | rm -f conftest* |
| 11532 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11533 | echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 11534 | echo "${ECHO_T}$ac_cv_type_rlim_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11535 | fi |
| 11536 | if test $ac_cv_type_rlim_t = no; then |
| 11537 | cat >> confdefs.h <<\EOF |
| 11538 | #define rlim_t unsigned long |
| 11539 | EOF |
| 11540 | fi |
| 11541 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11542 | echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 11543 | echo $ECHO_N "checking for stack_t... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11544 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11545 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 11546 | echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11547 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11548 | cat >conftest.$ac_ext <<_ACEOF |
| 11549 | /* confdefs.h. */ |
| 11550 | _ACEOF |
| 11551 | cat confdefs.h >>conftest.$ac_ext |
| 11552 | cat >>conftest.$ac_ext <<_ACEOF |
| 11553 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11554 | |
| 11555 | #include <sys/types.h> |
| 11556 | #if STDC_HEADERS |
| 11557 | #include <stdlib.h> |
| 11558 | #include <stddef.h> |
| 11559 | #endif |
| 11560 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11561 | |
| 11562 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11563 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11564 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11565 | ac_cv_type_stack_t=yes |
| 11566 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11567 | ac_cv_type_stack_t=no |
| 11568 | fi |
| 11569 | rm -f conftest* |
| 11570 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11571 | echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 11572 | echo "${ECHO_T}$ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11573 | fi |
| 11574 | if test $ac_cv_type_stack_t = no; then |
| 11575 | cat >> confdefs.h <<\EOF |
| 11576 | #define stack_t struct sigaltstack |
| 11577 | EOF |
| 11578 | fi |
| 11579 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11580 | echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 11581 | echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6 |
| 11582 | cat >conftest.$ac_ext <<_ACEOF |
| 11583 | /* confdefs.h. */ |
| 11584 | _ACEOF |
| 11585 | cat confdefs.h >>conftest.$ac_ext |
| 11586 | cat >>conftest.$ac_ext <<_ACEOF |
| 11587 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11588 | |
| 11589 | #include <sys/types.h> |
| 11590 | #if STDC_HEADERS |
| 11591 | #include <stdlib.h> |
| 11592 | #include <stddef.h> |
| 11593 | #endif |
| 11594 | #include <signal.h> |
| 11595 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11596 | |
| 11597 | int |
| 11598 | main () |
| 11599 | { |
| 11600 | stack_t sigstk; sigstk.ss_base = 0; |
| 11601 | ; |
| 11602 | return 0; |
| 11603 | } |
| 11604 | _ACEOF |
| 11605 | rm -f conftest.$ac_objext |
| 11606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11607 | (eval $ac_compile) 2>conftest.er1 |
| 11608 | ac_status=$? |
| 11609 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11610 | rm -f conftest.er1 |
| 11611 | cat conftest.err >&5 |
| 11612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11613 | (exit $ac_status); } && |
| 11614 | { ac_try='test -z "$ac_c_werror_flag" |
| 11615 | || test ! -s conftest.err' |
| 11616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11617 | (eval $ac_try) 2>&5 |
| 11618 | ac_status=$? |
| 11619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11620 | (exit $ac_status); }; } && |
| 11621 | { ac_try='test -s conftest.$ac_objext' |
| 11622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11623 | (eval $ac_try) 2>&5 |
| 11624 | ac_status=$? |
| 11625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11626 | (exit $ac_status); }; }; then |
| 11627 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11628 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11629 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11630 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11631 | |
| 11632 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11633 | echo "$as_me: failed program was:" >&5 |
| 11634 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11635 | |
| 11636 | echo "$as_me:$LINENO: result: no" >&5 |
| 11637 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11638 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11640 | |
| 11641 | olibs="$LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11642 | echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 11643 | echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6 |
| 11644 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11645 | # Check whether --with-tlib or --without-tlib was given. |
| 11646 | if test "${with_tlib+set}" = set; then |
| 11647 | withval="$with_tlib" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11648 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11649 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11650 | if test -n "$with_tlib"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11651 | echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 11652 | echo "${ECHO_T}$with_tlib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11653 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11654 | echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 11655 | echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6 |
| 11656 | cat >conftest.$ac_ext <<_ACEOF |
| 11657 | /* confdefs.h. */ |
| 11658 | _ACEOF |
| 11659 | cat confdefs.h >>conftest.$ac_ext |
| 11660 | cat >>conftest.$ac_ext <<_ACEOF |
| 11661 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11662 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11663 | int |
| 11664 | main () |
| 11665 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11666 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11667 | ; |
| 11668 | return 0; |
| 11669 | } |
| 11670 | _ACEOF |
| 11671 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11673 | (eval $ac_link) 2>conftest.er1 |
| 11674 | ac_status=$? |
| 11675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11676 | rm -f conftest.er1 |
| 11677 | cat conftest.err >&5 |
| 11678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11679 | (exit $ac_status); } && |
| 11680 | { ac_try='test -z "$ac_c_werror_flag" |
| 11681 | || test ! -s conftest.err' |
| 11682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11683 | (eval $ac_try) 2>&5 |
| 11684 | ac_status=$? |
| 11685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11686 | (exit $ac_status); }; } && |
| 11687 | { ac_try='test -s conftest$ac_exeext' |
| 11688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11689 | (eval $ac_try) 2>&5 |
| 11690 | ac_status=$? |
| 11691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11692 | (exit $ac_status); }; }; then |
| 11693 | echo "$as_me:$LINENO: result: OK" >&5 |
| 11694 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11695 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11696 | echo "$as_me: failed program was:" >&5 |
| 11697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11698 | |
| 11699 | { { echo "$as_me:$LINENO: error: FAILED" >&5 |
| 11700 | echo "$as_me: error: FAILED" >&2;} |
| 11701 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11702 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11703 | rm -f conftest.err conftest.$ac_objext \ |
| 11704 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11705 | olibs="$LIBS" |
| 11706 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11707 | echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 11708 | echo "${ECHO_T}empty: automatic terminal library selection" >&6 |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 11709 | case "`uname -s 2>/dev/null`" in |
| 11710 | OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11711 | *) tlibs="ncurses termlib termcap curses";; |
| 11712 | esac |
| 11713 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11714 | |
| 11715 | as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 11716 | echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 11717 | echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6 |
| 11718 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
| 11719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11720 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11721 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11722 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11723 | cat >conftest.$ac_ext <<_ACEOF |
| 11724 | /* confdefs.h. */ |
| 11725 | _ACEOF |
| 11726 | cat confdefs.h >>conftest.$ac_ext |
| 11727 | cat >>conftest.$ac_ext <<_ACEOF |
| 11728 | /* end confdefs.h. */ |
| 11729 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11730 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11731 | #ifdef __cplusplus |
| 11732 | extern "C" |
| 11733 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11734 | /* 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] | 11735 | builtin and then its argument prototype would still apply. */ |
| 11736 | char tgetent (); |
| 11737 | int |
| 11738 | main () |
| 11739 | { |
| 11740 | tgetent (); |
| 11741 | ; |
| 11742 | return 0; |
| 11743 | } |
| 11744 | _ACEOF |
| 11745 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11747 | (eval $ac_link) 2>conftest.er1 |
| 11748 | ac_status=$? |
| 11749 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11750 | rm -f conftest.er1 |
| 11751 | cat conftest.err >&5 |
| 11752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11753 | (exit $ac_status); } && |
| 11754 | { ac_try='test -z "$ac_c_werror_flag" |
| 11755 | || test ! -s conftest.err' |
| 11756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11757 | (eval $ac_try) 2>&5 |
| 11758 | ac_status=$? |
| 11759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11760 | (exit $ac_status); }; } && |
| 11761 | { ac_try='test -s conftest$ac_exeext' |
| 11762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11763 | (eval $ac_try) 2>&5 |
| 11764 | ac_status=$? |
| 11765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11766 | (exit $ac_status); }; }; then |
| 11767 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11768 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11769 | echo "$as_me: failed program was:" >&5 |
| 11770 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11771 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11772 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11773 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11774 | rm -f conftest.err conftest.$ac_objext \ |
| 11775 | conftest$ac_exeext conftest.$ac_ext |
| 11776 | LIBS=$ac_check_lib_save_LIBS |
| 11777 | fi |
| 11778 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
| 11779 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
| 11780 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
| 11781 | cat >>confdefs.h <<_ACEOF |
| 11782 | #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
| 11783 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11784 | |
| 11785 | LIBS="-l${libname} $LIBS" |
| 11786 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11787 | fi |
| 11788 | |
| 11789 | if test "x$olibs" != "x$LIBS"; then |
| 11790 | if test "$cross_compiling" = yes; then |
| 11791 | res="FAIL" |
| 11792 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11793 | cat >conftest.$ac_ext <<_ACEOF |
| 11794 | /* confdefs.h. */ |
| 11795 | _ACEOF |
| 11796 | cat confdefs.h >>conftest.$ac_ext |
| 11797 | cat >>conftest.$ac_ext <<_ACEOF |
| 11798 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11799 | |
| 11800 | #ifdef HAVE_TERMCAP_H |
| 11801 | # include <termcap.h> |
| 11802 | #endif |
| 11803 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11804 | _ACEOF |
| 11805 | rm -f conftest$ac_exeext |
| 11806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11807 | (eval $ac_link) 2>&5 |
| 11808 | ac_status=$? |
| 11809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11810 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11812 | (eval $ac_try) 2>&5 |
| 11813 | ac_status=$? |
| 11814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11815 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11816 | res="OK" |
| 11817 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11818 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11819 | echo "$as_me: failed program was:" >&5 |
| 11820 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11821 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11822 | ( exit $ac_status ) |
| 11823 | res="FAIL" |
| 11824 | fi |
| 11825 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11826 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11827 | if test "$res" = "OK"; then |
| 11828 | break |
| 11829 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11830 | echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 11831 | echo "${ECHO_T}$libname library is not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11832 | LIBS="$olibs" |
| 11833 | fi |
| 11834 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11835 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11836 | echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 11837 | echo "${ECHO_T}no terminal library found" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11838 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11839 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11840 | |
| 11841 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11842 | echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 11843 | echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6 |
| 11844 | cat >conftest.$ac_ext <<_ACEOF |
| 11845 | /* confdefs.h. */ |
| 11846 | _ACEOF |
| 11847 | cat confdefs.h >>conftest.$ac_ext |
| 11848 | cat >>conftest.$ac_ext <<_ACEOF |
| 11849 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11850 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11851 | int |
| 11852 | main () |
| 11853 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11854 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11855 | ; |
| 11856 | return 0; |
| 11857 | } |
| 11858 | _ACEOF |
| 11859 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11861 | (eval $ac_link) 2>conftest.er1 |
| 11862 | ac_status=$? |
| 11863 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11864 | rm -f conftest.er1 |
| 11865 | cat conftest.err >&5 |
| 11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11867 | (exit $ac_status); } && |
| 11868 | { ac_try='test -z "$ac_c_werror_flag" |
| 11869 | || test ! -s conftest.err' |
| 11870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11871 | (eval $ac_try) 2>&5 |
| 11872 | ac_status=$? |
| 11873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11874 | (exit $ac_status); }; } && |
| 11875 | { ac_try='test -s conftest$ac_exeext' |
| 11876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11877 | (eval $ac_try) 2>&5 |
| 11878 | ac_status=$? |
| 11879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11880 | (exit $ac_status); }; }; then |
| 11881 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11882 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11883 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11884 | echo "$as_me: failed program was:" >&5 |
| 11885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11886 | |
| 11887 | { { echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11888 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11889 | Or specify the name of the library with --with-tlib." >&5 |
| 11890 | echo "$as_me: error: NOT FOUND! |
| 11891 | You need to install a terminal library; for example ncurses. |
| 11892 | Or specify the name of the library with --with-tlib." >&2;} |
| 11893 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11894 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11895 | rm -f conftest.err conftest.$ac_objext \ |
| 11896 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11897 | fi |
| 11898 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11899 | echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 11900 | echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11901 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11902 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 11903 | echo "$as_me: error: failed to compile test program." >&2;} |
| 11904 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11905 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11906 | cat >conftest.$ac_ext <<_ACEOF |
| 11907 | /* confdefs.h. */ |
| 11908 | _ACEOF |
| 11909 | cat confdefs.h >>conftest.$ac_ext |
| 11910 | cat >>conftest.$ac_ext <<_ACEOF |
| 11911 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11912 | |
| 11913 | #ifdef HAVE_TERMCAP_H |
| 11914 | # include <termcap.h> |
| 11915 | #endif |
| 11916 | main() |
| 11917 | {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] | 11918 | _ACEOF |
| 11919 | rm -f conftest$ac_exeext |
| 11920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11921 | (eval $ac_link) 2>&5 |
| 11922 | ac_status=$? |
| 11923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11924 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11926 | (eval $ac_try) 2>&5 |
| 11927 | ac_status=$? |
| 11928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11929 | (exit $ac_status); }; }; then |
| 11930 | echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5 |
| 11931 | echo "${ECHO_T}no -- we are in termcap land" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11932 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11933 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11934 | echo "$as_me: failed program was:" >&5 |
| 11935 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11936 | |
| 11937 | ( exit $ac_status ) |
| 11938 | echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5 |
| 11939 | echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11940 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11941 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11942 | |
| 11943 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11944 | 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] | 11945 | fi |
| 11946 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11947 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11948 | echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 11949 | 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] | 11950 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11951 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 11952 | echo "$as_me: error: failed to compile test program." >&2;} |
| 11953 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11954 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11955 | cat >conftest.$ac_ext <<_ACEOF |
| 11956 | /* confdefs.h. */ |
| 11957 | _ACEOF |
| 11958 | cat confdefs.h >>conftest.$ac_ext |
| 11959 | cat >>conftest.$ac_ext <<_ACEOF |
| 11960 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11961 | |
| 11962 | #ifdef HAVE_TERMCAP_H |
| 11963 | # include <termcap.h> |
| 11964 | #endif |
| 11965 | main() |
| 11966 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11967 | _ACEOF |
| 11968 | rm -f conftest$ac_exeext |
| 11969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11970 | (eval $ac_link) 2>&5 |
| 11971 | ac_status=$? |
| 11972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11973 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11975 | (eval $ac_try) 2>&5 |
| 11976 | ac_status=$? |
| 11977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11978 | (exit $ac_status); }; }; then |
| 11979 | echo "$as_me:$LINENO: result: zero" >&5 |
| 11980 | echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11981 | #define TGETENT_ZERO_ERR 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11982 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11983 | |
| 11984 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11985 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11986 | echo "$as_me: failed program was:" >&5 |
| 11987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11988 | |
| 11989 | ( exit $ac_status ) |
| 11990 | echo "$as_me:$LINENO: result: non-zero" >&5 |
| 11991 | echo "${ECHO_T}non-zero" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11992 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11993 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11994 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11995 | fi |
| 11996 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11997 | echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 11998 | echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6 |
| 11999 | cat >conftest.$ac_ext <<_ACEOF |
| 12000 | /* confdefs.h. */ |
| 12001 | _ACEOF |
| 12002 | cat confdefs.h >>conftest.$ac_ext |
| 12003 | cat >>conftest.$ac_ext <<_ACEOF |
| 12004 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12005 | |
| 12006 | #ifdef HAVE_TERMCAP_H |
| 12007 | # include <termcap.h> |
| 12008 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12009 | |
| 12010 | int |
| 12011 | main () |
| 12012 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12013 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12014 | ; |
| 12015 | return 0; |
| 12016 | } |
| 12017 | _ACEOF |
| 12018 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12020 | (eval $ac_link) 2>conftest.er1 |
| 12021 | ac_status=$? |
| 12022 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12023 | rm -f conftest.er1 |
| 12024 | cat conftest.err >&5 |
| 12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12026 | (exit $ac_status); } && |
| 12027 | { ac_try='test -z "$ac_c_werror_flag" |
| 12028 | || test ! -s conftest.err' |
| 12029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12030 | (eval $ac_try) 2>&5 |
| 12031 | ac_status=$? |
| 12032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12033 | (exit $ac_status); }; } && |
| 12034 | { ac_try='test -s conftest$ac_exeext' |
| 12035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12036 | (eval $ac_try) 2>&5 |
| 12037 | ac_status=$? |
| 12038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12039 | (exit $ac_status); }; }; then |
| 12040 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12041 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12042 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12043 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12044 | |
| 12045 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12046 | echo "$as_me: failed program was:" >&5 |
| 12047 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12048 | |
| 12049 | echo "$as_me:$LINENO: result: no" >&5 |
| 12050 | echo "${ECHO_T}no" >&6 |
| 12051 | echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 12052 | echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6 |
| 12053 | cat >conftest.$ac_ext <<_ACEOF |
| 12054 | /* confdefs.h. */ |
| 12055 | _ACEOF |
| 12056 | cat confdefs.h >>conftest.$ac_ext |
| 12057 | cat >>conftest.$ac_ext <<_ACEOF |
| 12058 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12059 | |
| 12060 | #ifdef HAVE_TERMCAP_H |
| 12061 | # include <termcap.h> |
| 12062 | #endif |
| 12063 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12064 | |
| 12065 | int |
| 12066 | main () |
| 12067 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12068 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12069 | ; |
| 12070 | return 0; |
| 12071 | } |
| 12072 | _ACEOF |
| 12073 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12075 | (eval $ac_link) 2>conftest.er1 |
| 12076 | ac_status=$? |
| 12077 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12078 | rm -f conftest.er1 |
| 12079 | cat conftest.err >&5 |
| 12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12081 | (exit $ac_status); } && |
| 12082 | { ac_try='test -z "$ac_c_werror_flag" |
| 12083 | || test ! -s conftest.err' |
| 12084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12085 | (eval $ac_try) 2>&5 |
| 12086 | ac_status=$? |
| 12087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12088 | (exit $ac_status); }; } && |
| 12089 | { ac_try='test -s conftest$ac_exeext' |
| 12090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12091 | (eval $ac_try) 2>&5 |
| 12092 | ac_status=$? |
| 12093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12094 | (exit $ac_status); }; }; then |
| 12095 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12096 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12097 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12098 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12099 | |
| 12100 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12101 | echo "$as_me: failed program was:" >&5 |
| 12102 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12103 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12104 | echo "$as_me:$LINENO: result: no" >&5 |
| 12105 | echo "${ECHO_T}no" >&6 |
| 12106 | fi |
| 12107 | rm -f conftest.err conftest.$ac_objext \ |
| 12108 | conftest$ac_exeext conftest.$ac_ext |
| 12109 | |
| 12110 | fi |
| 12111 | rm -f conftest.err conftest.$ac_objext \ |
| 12112 | conftest$ac_exeext conftest.$ac_ext |
| 12113 | |
| 12114 | echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 12115 | echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6 |
| 12116 | cat >conftest.$ac_ext <<_ACEOF |
| 12117 | /* confdefs.h. */ |
| 12118 | _ACEOF |
| 12119 | cat confdefs.h >>conftest.$ac_ext |
| 12120 | cat >>conftest.$ac_ext <<_ACEOF |
| 12121 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12122 | |
| 12123 | #ifdef HAVE_TERMCAP_H |
| 12124 | # include <termcap.h> |
| 12125 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12126 | |
| 12127 | int |
| 12128 | main () |
| 12129 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12130 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12131 | ; |
| 12132 | return 0; |
| 12133 | } |
| 12134 | _ACEOF |
| 12135 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12137 | (eval $ac_link) 2>conftest.er1 |
| 12138 | ac_status=$? |
| 12139 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12140 | rm -f conftest.er1 |
| 12141 | cat conftest.err >&5 |
| 12142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12143 | (exit $ac_status); } && |
| 12144 | { ac_try='test -z "$ac_c_werror_flag" |
| 12145 | || test ! -s conftest.err' |
| 12146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12147 | (eval $ac_try) 2>&5 |
| 12148 | ac_status=$? |
| 12149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12150 | (exit $ac_status); }; } && |
| 12151 | { ac_try='test -s conftest$ac_exeext' |
| 12152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12153 | (eval $ac_try) 2>&5 |
| 12154 | ac_status=$? |
| 12155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12156 | (exit $ac_status); }; }; then |
| 12157 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12158 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12159 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12160 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12161 | |
| 12162 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12163 | echo "$as_me: failed program was:" >&5 |
| 12164 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12165 | |
| 12166 | echo "$as_me:$LINENO: result: no" >&5 |
| 12167 | echo "${ECHO_T}no" >&6 |
| 12168 | echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 12169 | echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6 |
| 12170 | cat >conftest.$ac_ext <<_ACEOF |
| 12171 | /* confdefs.h. */ |
| 12172 | _ACEOF |
| 12173 | cat confdefs.h >>conftest.$ac_ext |
| 12174 | cat >>conftest.$ac_ext <<_ACEOF |
| 12175 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12176 | |
| 12177 | #ifdef HAVE_TERMCAP_H |
| 12178 | # include <termcap.h> |
| 12179 | #endif |
| 12180 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12181 | |
| 12182 | int |
| 12183 | main () |
| 12184 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12185 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12186 | ; |
| 12187 | return 0; |
| 12188 | } |
| 12189 | _ACEOF |
| 12190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12192 | (eval $ac_link) 2>conftest.er1 |
| 12193 | ac_status=$? |
| 12194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12195 | rm -f conftest.er1 |
| 12196 | cat conftest.err >&5 |
| 12197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12198 | (exit $ac_status); } && |
| 12199 | { ac_try='test -z "$ac_c_werror_flag" |
| 12200 | || test ! -s conftest.err' |
| 12201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12202 | (eval $ac_try) 2>&5 |
| 12203 | ac_status=$? |
| 12204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12205 | (exit $ac_status); }; } && |
| 12206 | { ac_try='test -s conftest$ac_exeext' |
| 12207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12208 | (eval $ac_try) 2>&5 |
| 12209 | ac_status=$? |
| 12210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12211 | (exit $ac_status); }; }; then |
| 12212 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12213 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12214 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12215 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12216 | |
| 12217 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12218 | echo "$as_me: failed program was:" >&5 |
| 12219 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12220 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12221 | echo "$as_me:$LINENO: result: no" >&5 |
| 12222 | echo "${ECHO_T}no" >&6 |
| 12223 | fi |
| 12224 | rm -f conftest.err conftest.$ac_objext \ |
| 12225 | conftest$ac_exeext conftest.$ac_ext |
| 12226 | |
| 12227 | fi |
| 12228 | rm -f conftest.err conftest.$ac_objext \ |
| 12229 | conftest$ac_exeext conftest.$ac_ext |
| 12230 | |
| 12231 | echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 12232 | echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6 |
| 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 | #ifdef HAVE_TERMCAP_H |
| 12241 | # include <termcap.h> |
| 12242 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12243 | |
| 12244 | int |
| 12245 | main () |
| 12246 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12247 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12248 | ; |
| 12249 | return 0; |
| 12250 | } |
| 12251 | _ACEOF |
| 12252 | rm -f conftest.$ac_objext |
| 12253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12254 | (eval $ac_compile) 2>conftest.er1 |
| 12255 | ac_status=$? |
| 12256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12257 | rm -f conftest.er1 |
| 12258 | cat conftest.err >&5 |
| 12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12260 | (exit $ac_status); } && |
| 12261 | { ac_try='test -z "$ac_c_werror_flag" |
| 12262 | || test ! -s conftest.err' |
| 12263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12264 | (eval $ac_try) 2>&5 |
| 12265 | ac_status=$? |
| 12266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12267 | (exit $ac_status); }; } && |
| 12268 | { ac_try='test -s conftest.$ac_objext' |
| 12269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12270 | (eval $ac_try) 2>&5 |
| 12271 | ac_status=$? |
| 12272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12273 | (exit $ac_status); }; }; then |
| 12274 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12275 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12276 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12277 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12278 | |
| 12279 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12280 | echo "$as_me: failed program was:" >&5 |
| 12281 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12282 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12283 | echo "$as_me:$LINENO: result: no" >&5 |
| 12284 | echo "${ECHO_T}no" >&6 |
| 12285 | fi |
| 12286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12287 | |
| 12288 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 12289 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12290 | cat >conftest.$ac_ext <<_ACEOF |
| 12291 | /* confdefs.h. */ |
| 12292 | _ACEOF |
| 12293 | cat confdefs.h >>conftest.$ac_ext |
| 12294 | cat >>conftest.$ac_ext <<_ACEOF |
| 12295 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12296 | |
| 12297 | #include <sys/types.h> |
| 12298 | #include <sys/time.h> |
| 12299 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12300 | int |
| 12301 | main () |
| 12302 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12303 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12304 | ; |
| 12305 | return 0; |
| 12306 | } |
| 12307 | _ACEOF |
| 12308 | rm -f conftest.$ac_objext |
| 12309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12310 | (eval $ac_compile) 2>conftest.er1 |
| 12311 | ac_status=$? |
| 12312 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12313 | rm -f conftest.er1 |
| 12314 | cat conftest.err >&5 |
| 12315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12316 | (exit $ac_status); } && |
| 12317 | { ac_try='test -z "$ac_c_werror_flag" |
| 12318 | || test ! -s conftest.err' |
| 12319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12320 | (eval $ac_try) 2>&5 |
| 12321 | ac_status=$? |
| 12322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12323 | (exit $ac_status); }; } && |
| 12324 | { ac_try='test -s conftest.$ac_objext' |
| 12325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12326 | (eval $ac_try) 2>&5 |
| 12327 | ac_status=$? |
| 12328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12329 | (exit $ac_status); }; }; then |
| 12330 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12331 | echo "${ECHO_T}yes" >&6 |
| 12332 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12333 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12334 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12335 | |
| 12336 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12337 | echo "$as_me: failed program was:" >&5 |
| 12338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12339 | |
| 12340 | echo "$as_me:$LINENO: result: no" >&5 |
| 12341 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12342 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12344 | |
| 12345 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12346 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 12347 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12348 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12349 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12350 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12351 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12352 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12353 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12354 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12355 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12356 | echo "$as_me:$LINENO: result: no" >&5 |
| 12357 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12358 | fi |
| 12359 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12360 | echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 12361 | echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12362 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12363 | cat >conftest.$ac_ext <<_ACEOF |
| 12364 | /* confdefs.h. */ |
| 12365 | _ACEOF |
| 12366 | cat confdefs.h >>conftest.$ac_ext |
| 12367 | cat >>conftest.$ac_ext <<_ACEOF |
| 12368 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12369 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12370 | int |
| 12371 | main () |
| 12372 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12373 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12374 | ; |
| 12375 | return 0; |
| 12376 | } |
| 12377 | _ACEOF |
| 12378 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12380 | (eval $ac_link) 2>conftest.er1 |
| 12381 | ac_status=$? |
| 12382 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12383 | rm -f conftest.er1 |
| 12384 | cat conftest.err >&5 |
| 12385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12386 | (exit $ac_status); } && |
| 12387 | { ac_try='test -z "$ac_c_werror_flag" |
| 12388 | || test ! -s conftest.err' |
| 12389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12390 | (eval $ac_try) 2>&5 |
| 12391 | ac_status=$? |
| 12392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12393 | (exit $ac_status); }; } && |
| 12394 | { ac_try='test -s conftest$ac_exeext' |
| 12395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12396 | (eval $ac_try) 2>&5 |
| 12397 | ac_status=$? |
| 12398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12399 | (exit $ac_status); }; }; then |
| 12400 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12401 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12402 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12403 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12404 | |
| 12405 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12406 | echo "$as_me: failed program was:" >&5 |
| 12407 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12408 | |
| 12409 | echo "$as_me:$LINENO: result: no" >&5 |
| 12410 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12411 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12412 | rm -f conftest.err conftest.$ac_objext \ |
| 12413 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12414 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12415 | echo "$as_me:$LINENO: result: no" >&5 |
| 12416 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12417 | fi |
| 12418 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12419 | echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 12420 | echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12421 | if test -d /dev/ptym ; then |
| 12422 | pdir='/dev/ptym' |
| 12423 | else |
| 12424 | pdir='/dev' |
| 12425 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12426 | cat >conftest.$ac_ext <<_ACEOF |
| 12427 | /* confdefs.h. */ |
| 12428 | _ACEOF |
| 12429 | cat confdefs.h >>conftest.$ac_ext |
| 12430 | cat >>conftest.$ac_ext <<_ACEOF |
| 12431 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12432 | #ifdef M_UNIX |
| 12433 | yes; |
| 12434 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12435 | |
| 12436 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12437 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12438 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12439 | ptys=`echo /dev/ptyp??` |
| 12440 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12441 | ptys=`echo $pdir/pty??` |
| 12442 | fi |
| 12443 | rm -f conftest* |
| 12444 | |
| 12445 | if test "$ptys" != "$pdir/pty??" ; then |
| 12446 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 12447 | 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] | 12448 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12449 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12450 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12451 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12452 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12453 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12454 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12455 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12456 | echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 12457 | echo "${ECHO_T}$p0 / $p1" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12458 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12459 | echo "$as_me:$LINENO: result: don't know" >&5 |
| 12460 | echo "${ECHO_T}don't know" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12461 | fi |
| 12462 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12463 | echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 12464 | echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12465 | rm -f conftest_grp |
| 12466 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12467 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12468 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12469 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12470 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12471 | cat >conftest.$ac_ext <<_ACEOF |
| 12472 | /* confdefs.h. */ |
| 12473 | _ACEOF |
| 12474 | cat confdefs.h >>conftest.$ac_ext |
| 12475 | cat >>conftest.$ac_ext <<_ACEOF |
| 12476 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12477 | |
| 12478 | #include <sys/types.h> |
| 12479 | #include <sys/stat.h> |
| 12480 | #include <stdio.h> |
| 12481 | main() |
| 12482 | { |
| 12483 | struct stat sb; |
| 12484 | char *x,*ttyname(); |
| 12485 | int om, m; |
| 12486 | FILE *fp; |
| 12487 | |
| 12488 | if (!(x = ttyname(0))) exit(1); |
| 12489 | if (stat(x, &sb)) exit(1); |
| 12490 | om = sb.st_mode; |
| 12491 | if (om & 002) exit(0); |
| 12492 | m = system("mesg y"); |
| 12493 | if (m == -1 || m == 127) exit(1); |
| 12494 | if (stat(x, &sb)) exit(1); |
| 12495 | m = sb.st_mode; |
| 12496 | if (chmod(x, om)) exit(1); |
| 12497 | if (m & 002) exit(0); |
| 12498 | if (sb.st_gid == getgid()) exit(1); |
| 12499 | if (!(fp=fopen("conftest_grp", "w"))) |
| 12500 | exit(1); |
| 12501 | fprintf(fp, "%d\n", sb.st_gid); |
| 12502 | fclose(fp); |
| 12503 | exit(0); |
| 12504 | } |
| 12505 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12506 | _ACEOF |
| 12507 | rm -f conftest$ac_exeext |
| 12508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12509 | (eval $ac_link) 2>&5 |
| 12510 | ac_status=$? |
| 12511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12512 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12514 | (eval $ac_try) 2>&5 |
| 12515 | ac_status=$? |
| 12516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12517 | (exit $ac_status); }; }; then |
| 12518 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12519 | if test -f conftest_grp; then |
| 12520 | ptygrp=`cat conftest_grp` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12521 | echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5 |
| 12522 | echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6 |
| 12523 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12524 | #define PTYMODE 0620 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12525 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12526 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12527 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12528 | #define PTYGROUP $ptygrp |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12529 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12530 | |
| 12531 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12532 | echo "$as_me:$LINENO: result: ptys are world accessable" >&5 |
| 12533 | echo "${ECHO_T}ptys are world accessable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12534 | fi |
| 12535 | |
| 12536 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12537 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12538 | echo "$as_me: failed program was:" >&5 |
| 12539 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12540 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12541 | ( exit $ac_status ) |
| 12542 | echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 |
| 12543 | echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6 |
| 12544 | fi |
| 12545 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12546 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12547 | rm -f conftest_grp |
| 12548 | |
| 12549 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12550 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 12551 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 12552 | if test "${ac_cv_type_signal+set}" = set; then |
| 12553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12554 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12555 | cat >conftest.$ac_ext <<_ACEOF |
| 12556 | /* confdefs.h. */ |
| 12557 | _ACEOF |
| 12558 | cat confdefs.h >>conftest.$ac_ext |
| 12559 | cat >>conftest.$ac_ext <<_ACEOF |
| 12560 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12561 | #include <sys/types.h> |
| 12562 | #include <signal.h> |
| 12563 | #ifdef signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12564 | # undef signal |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12565 | #endif |
| 12566 | #ifdef __cplusplus |
| 12567 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 12568 | #else |
| 12569 | void (*signal ()) (); |
| 12570 | #endif |
| 12571 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12572 | int |
| 12573 | main () |
| 12574 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12575 | int i; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12576 | ; |
| 12577 | return 0; |
| 12578 | } |
| 12579 | _ACEOF |
| 12580 | rm -f conftest.$ac_objext |
| 12581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12582 | (eval $ac_compile) 2>conftest.er1 |
| 12583 | ac_status=$? |
| 12584 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12585 | rm -f conftest.er1 |
| 12586 | cat conftest.err >&5 |
| 12587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12588 | (exit $ac_status); } && |
| 12589 | { ac_try='test -z "$ac_c_werror_flag" |
| 12590 | || test ! -s conftest.err' |
| 12591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12592 | (eval $ac_try) 2>&5 |
| 12593 | ac_status=$? |
| 12594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12595 | (exit $ac_status); }; } && |
| 12596 | { ac_try='test -s conftest.$ac_objext' |
| 12597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12598 | (eval $ac_try) 2>&5 |
| 12599 | ac_status=$? |
| 12600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12601 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12602 | ac_cv_type_signal=void |
| 12603 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12604 | echo "$as_me: failed program was:" >&5 |
| 12605 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12606 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12607 | ac_cv_type_signal=int |
| 12608 | fi |
| 12609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12610 | fi |
| 12611 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 12612 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 12613 | |
| 12614 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12615 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12616 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12617 | |
| 12618 | |
| 12619 | |
| 12620 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12621 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12622 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12623 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12624 | |
| 12625 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12626 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12627 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12628 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12629 | |
| 12630 | fi |
| 12631 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12632 | echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 12633 | echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6 |
| 12634 | cat >conftest.$ac_ext <<_ACEOF |
| 12635 | /* confdefs.h. */ |
| 12636 | _ACEOF |
| 12637 | cat confdefs.h >>conftest.$ac_ext |
| 12638 | cat >>conftest.$ac_ext <<_ACEOF |
| 12639 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12640 | |
| 12641 | #include <signal.h> |
| 12642 | test_sig() |
| 12643 | { |
| 12644 | struct sigcontext *scont; |
| 12645 | scont = (struct sigcontext *)0; |
| 12646 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12647 | } |
| 12648 | int |
| 12649 | main () |
| 12650 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12651 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12652 | ; |
| 12653 | return 0; |
| 12654 | } |
| 12655 | _ACEOF |
| 12656 | rm -f conftest.$ac_objext |
| 12657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12658 | (eval $ac_compile) 2>conftest.er1 |
| 12659 | ac_status=$? |
| 12660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12661 | rm -f conftest.er1 |
| 12662 | cat conftest.err >&5 |
| 12663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12664 | (exit $ac_status); } && |
| 12665 | { ac_try='test -z "$ac_c_werror_flag" |
| 12666 | || test ! -s conftest.err' |
| 12667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12668 | (eval $ac_try) 2>&5 |
| 12669 | ac_status=$? |
| 12670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12671 | (exit $ac_status); }; } && |
| 12672 | { ac_try='test -s conftest.$ac_objext' |
| 12673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12674 | (eval $ac_try) 2>&5 |
| 12675 | ac_status=$? |
| 12676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12677 | (exit $ac_status); }; }; then |
| 12678 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12679 | echo "${ECHO_T}yes" >&6 |
| 12680 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12681 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12682 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12683 | |
| 12684 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12685 | echo "$as_me: failed program was:" >&5 |
| 12686 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12687 | |
| 12688 | echo "$as_me:$LINENO: result: no" >&5 |
| 12689 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12690 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12691 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12692 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12693 | echo "$as_me:$LINENO: checking getcwd implementation" >&5 |
| 12694 | echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12695 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12696 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12697 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12698 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12699 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12700 | cat >conftest.$ac_ext <<_ACEOF |
| 12701 | /* confdefs.h. */ |
| 12702 | _ACEOF |
| 12703 | cat confdefs.h >>conftest.$ac_ext |
| 12704 | cat >>conftest.$ac_ext <<_ACEOF |
| 12705 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12706 | |
| 12707 | char *dagger[] = { "IFS=pwd", 0 }; |
| 12708 | main() |
| 12709 | { |
| 12710 | char buffer[500]; |
| 12711 | extern char **environ; |
| 12712 | environ = dagger; |
| 12713 | return getcwd(buffer, 500) ? 0 : 1; |
| 12714 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12715 | _ACEOF |
| 12716 | rm -f conftest$ac_exeext |
| 12717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12718 | (eval $ac_link) 2>&5 |
| 12719 | ac_status=$? |
| 12720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12721 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12723 | (eval $ac_try) 2>&5 |
| 12724 | ac_status=$? |
| 12725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12726 | (exit $ac_status); }; }; then |
| 12727 | echo "$as_me:$LINENO: result: it is usable" >&5 |
| 12728 | echo "${ECHO_T}it is usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12729 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12730 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12731 | echo "$as_me: failed program was:" >&5 |
| 12732 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12733 | |
| 12734 | ( exit $ac_status ) |
| 12735 | echo "$as_me:$LINENO: result: it stinks" >&5 |
| 12736 | echo "${ECHO_T}it stinks" >&6 |
| 12737 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12738 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12739 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12740 | |
| 12741 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12742 | 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] | 12743 | fi |
| 12744 | |
| 12745 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12746 | |
| 12747 | |
| 12748 | |
| 12749 | |
| 12750 | |
| 12751 | |
| 12752 | |
| 12753 | |
| 12754 | |
| 12755 | |
| 12756 | |
| 12757 | |
| 12758 | |
| 12759 | |
| 12760 | |
| 12761 | |
| 12762 | |
| 12763 | |
| 12764 | |
| 12765 | |
| 12766 | |
| 12767 | |
| 12768 | |
| 12769 | |
| 12770 | |
| 12771 | |
| 12772 | |
| 12773 | |
| 12774 | |
| 12775 | |
| 12776 | |
| 12777 | |
| 12778 | |
| 12779 | |
| 12780 | |
| 12781 | |
| 12782 | |
| 12783 | |
| 12784 | |
| 12785 | |
| 12786 | |
| 12787 | |
| 12788 | |
| 12789 | |
| 12790 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12791 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 12792 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
| 12793 | memset nanosleep opendir putenv qsort readlink select setenv \ |
| 12794 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 12795 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 12796 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 12797 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12798 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12799 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12800 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12801 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12802 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12804 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12805 | cat >conftest.$ac_ext <<_ACEOF |
| 12806 | /* confdefs.h. */ |
| 12807 | _ACEOF |
| 12808 | cat confdefs.h >>conftest.$ac_ext |
| 12809 | cat >>conftest.$ac_ext <<_ACEOF |
| 12810 | /* end confdefs.h. */ |
| 12811 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12812 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12813 | #define $ac_func innocuous_$ac_func |
| 12814 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12815 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12816 | which can conflict with char $ac_func (); below. |
| 12817 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12818 | <limits.h> exists even on freestanding compilers. */ |
| 12819 | |
| 12820 | #ifdef __STDC__ |
| 12821 | # include <limits.h> |
| 12822 | #else |
| 12823 | # include <assert.h> |
| 12824 | #endif |
| 12825 | |
| 12826 | #undef $ac_func |
| 12827 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12828 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12829 | #ifdef __cplusplus |
| 12830 | extern "C" |
| 12831 | { |
| 12832 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12833 | /* 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] | 12834 | builtin and then its argument prototype would still apply. */ |
| 12835 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12836 | /* The GNU C library defines this for functions which it implements |
| 12837 | to always fail with ENOSYS. Some functions are actually named |
| 12838 | something starting with __ and the normal name is an alias. */ |
| 12839 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12840 | choke me |
| 12841 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12842 | char (*f) () = $ac_func; |
| 12843 | #endif |
| 12844 | #ifdef __cplusplus |
| 12845 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12846 | #endif |
| 12847 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12848 | int |
| 12849 | main () |
| 12850 | { |
| 12851 | return f != $ac_func; |
| 12852 | ; |
| 12853 | return 0; |
| 12854 | } |
| 12855 | _ACEOF |
| 12856 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12858 | (eval $ac_link) 2>conftest.er1 |
| 12859 | ac_status=$? |
| 12860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12861 | rm -f conftest.er1 |
| 12862 | cat conftest.err >&5 |
| 12863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12864 | (exit $ac_status); } && |
| 12865 | { ac_try='test -z "$ac_c_werror_flag" |
| 12866 | || test ! -s conftest.err' |
| 12867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12868 | (eval $ac_try) 2>&5 |
| 12869 | ac_status=$? |
| 12870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12871 | (exit $ac_status); }; } && |
| 12872 | { ac_try='test -s conftest$ac_exeext' |
| 12873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12874 | (eval $ac_try) 2>&5 |
| 12875 | ac_status=$? |
| 12876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12877 | (exit $ac_status); }; }; then |
| 12878 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12879 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12880 | echo "$as_me: failed program was:" >&5 |
| 12881 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12882 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12883 | eval "$as_ac_var=no" |
| 12884 | fi |
| 12885 | rm -f conftest.err conftest.$ac_objext \ |
| 12886 | conftest$ac_exeext conftest.$ac_ext |
| 12887 | fi |
| 12888 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12889 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12890 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12891 | cat >>confdefs.h <<_ACEOF |
| 12892 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12893 | _ACEOF |
| 12894 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12895 | fi |
| 12896 | done |
| 12897 | |
| 12898 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12899 | echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 12900 | echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6 |
| 12901 | cat >conftest.$ac_ext <<_ACEOF |
| 12902 | /* confdefs.h. */ |
| 12903 | _ACEOF |
| 12904 | cat confdefs.h >>conftest.$ac_ext |
| 12905 | cat >>conftest.$ac_ext <<_ACEOF |
| 12906 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12907 | #include <sys/types.h> |
| 12908 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12909 | int |
| 12910 | main () |
| 12911 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12912 | struct stat st; |
| 12913 | int n; |
| 12914 | |
| 12915 | stat("/", &st); |
| 12916 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12917 | ; |
| 12918 | return 0; |
| 12919 | } |
| 12920 | _ACEOF |
| 12921 | rm -f conftest.$ac_objext |
| 12922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12923 | (eval $ac_compile) 2>conftest.er1 |
| 12924 | ac_status=$? |
| 12925 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12926 | rm -f conftest.er1 |
| 12927 | cat conftest.err >&5 |
| 12928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12929 | (exit $ac_status); } && |
| 12930 | { ac_try='test -z "$ac_c_werror_flag" |
| 12931 | || test ! -s conftest.err' |
| 12932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12933 | (eval $ac_try) 2>&5 |
| 12934 | ac_status=$? |
| 12935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12936 | (exit $ac_status); }; } && |
| 12937 | { ac_try='test -s conftest.$ac_objext' |
| 12938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12939 | (eval $ac_try) 2>&5 |
| 12940 | ac_status=$? |
| 12941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12942 | (exit $ac_status); }; }; then |
| 12943 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12944 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12945 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12946 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12947 | |
| 12948 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12949 | echo "$as_me: failed program was:" >&5 |
| 12950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12951 | |
| 12952 | echo "$as_me:$LINENO: result: no" >&5 |
| 12953 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12954 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12956 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12957 | echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 12958 | 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] | 12959 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12960 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12961 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12962 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12963 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12964 | cat >conftest.$ac_ext <<_ACEOF |
| 12965 | /* confdefs.h. */ |
| 12966 | _ACEOF |
| 12967 | cat confdefs.h >>conftest.$ac_ext |
| 12968 | cat >>conftest.$ac_ext <<_ACEOF |
| 12969 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12970 | #include <sys/types.h> |
| 12971 | #include <sys/stat.h> |
| 12972 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12973 | _ACEOF |
| 12974 | rm -f conftest$ac_exeext |
| 12975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12976 | (eval $ac_link) 2>&5 |
| 12977 | ac_status=$? |
| 12978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12979 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12981 | (eval $ac_try) 2>&5 |
| 12982 | ac_status=$? |
| 12983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12984 | (exit $ac_status); }; }; then |
| 12985 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12986 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12987 | #define STAT_IGNORES_SLASH 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12988 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12989 | |
| 12990 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12991 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12992 | echo "$as_me: failed program was:" >&5 |
| 12993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12994 | |
| 12995 | ( exit $ac_status ) |
| 12996 | echo "$as_me:$LINENO: result: no" >&5 |
| 12997 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12998 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12999 | 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] | 13000 | fi |
| 13001 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13002 | echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 13003 | echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13004 | save_LIBS="$LIBS" |
| 13005 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13006 | cat >conftest.$ac_ext <<_ACEOF |
| 13007 | /* confdefs.h. */ |
| 13008 | _ACEOF |
| 13009 | cat confdefs.h >>conftest.$ac_ext |
| 13010 | cat >>conftest.$ac_ext <<_ACEOF |
| 13011 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13012 | |
| 13013 | #ifdef HAVE_ICONV_H |
| 13014 | # include <iconv.h> |
| 13015 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13016 | |
| 13017 | int |
| 13018 | main () |
| 13019 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13020 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13021 | ; |
| 13022 | return 0; |
| 13023 | } |
| 13024 | _ACEOF |
| 13025 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13026 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13027 | (eval $ac_link) 2>conftest.er1 |
| 13028 | ac_status=$? |
| 13029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13030 | rm -f conftest.er1 |
| 13031 | cat conftest.err >&5 |
| 13032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13033 | (exit $ac_status); } && |
| 13034 | { ac_try='test -z "$ac_c_werror_flag" |
| 13035 | || test ! -s conftest.err' |
| 13036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13037 | (eval $ac_try) 2>&5 |
| 13038 | ac_status=$? |
| 13039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13040 | (exit $ac_status); }; } && |
| 13041 | { ac_try='test -s conftest$ac_exeext' |
| 13042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13043 | (eval $ac_try) 2>&5 |
| 13044 | ac_status=$? |
| 13045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13046 | (exit $ac_status); }; }; then |
| 13047 | echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 13048 | echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13049 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13050 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13051 | |
| 13052 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13053 | echo "$as_me: failed program was:" >&5 |
| 13054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13055 | |
| 13056 | LIBS="$save_LIBS" |
| 13057 | cat >conftest.$ac_ext <<_ACEOF |
| 13058 | /* confdefs.h. */ |
| 13059 | _ACEOF |
| 13060 | cat confdefs.h >>conftest.$ac_ext |
| 13061 | cat >>conftest.$ac_ext <<_ACEOF |
| 13062 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13063 | |
| 13064 | #ifdef HAVE_ICONV_H |
| 13065 | # include <iconv.h> |
| 13066 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13067 | |
| 13068 | int |
| 13069 | main () |
| 13070 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13071 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13072 | ; |
| 13073 | return 0; |
| 13074 | } |
| 13075 | _ACEOF |
| 13076 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13078 | (eval $ac_link) 2>conftest.er1 |
| 13079 | ac_status=$? |
| 13080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13081 | rm -f conftest.er1 |
| 13082 | cat conftest.err >&5 |
| 13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13084 | (exit $ac_status); } && |
| 13085 | { ac_try='test -z "$ac_c_werror_flag" |
| 13086 | || test ! -s conftest.err' |
| 13087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13088 | (eval $ac_try) 2>&5 |
| 13089 | ac_status=$? |
| 13090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13091 | (exit $ac_status); }; } && |
| 13092 | { ac_try='test -s conftest$ac_exeext' |
| 13093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13094 | (eval $ac_try) 2>&5 |
| 13095 | ac_status=$? |
| 13096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13097 | (exit $ac_status); }; }; then |
| 13098 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13099 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13100 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13101 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13102 | |
| 13103 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13104 | echo "$as_me: failed program was:" >&5 |
| 13105 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13106 | |
| 13107 | echo "$as_me:$LINENO: result: no" >&5 |
| 13108 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13109 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13110 | rm -f conftest.err conftest.$ac_objext \ |
| 13111 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13112 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13113 | rm -f conftest.err conftest.$ac_objext \ |
| 13114 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13115 | |
| 13116 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13117 | echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 13118 | echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6 |
| 13119 | cat >conftest.$ac_ext <<_ACEOF |
| 13120 | /* confdefs.h. */ |
| 13121 | _ACEOF |
| 13122 | cat confdefs.h >>conftest.$ac_ext |
| 13123 | cat >>conftest.$ac_ext <<_ACEOF |
| 13124 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13125 | |
| 13126 | #ifdef HAVE_LANGINFO_H |
| 13127 | # include <langinfo.h> |
| 13128 | #endif |
| 13129 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13130 | int |
| 13131 | main () |
| 13132 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13133 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13134 | ; |
| 13135 | return 0; |
| 13136 | } |
| 13137 | _ACEOF |
| 13138 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13140 | (eval $ac_link) 2>conftest.er1 |
| 13141 | ac_status=$? |
| 13142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13143 | rm -f conftest.er1 |
| 13144 | cat conftest.err >&5 |
| 13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13146 | (exit $ac_status); } && |
| 13147 | { ac_try='test -z "$ac_c_werror_flag" |
| 13148 | || test ! -s conftest.err' |
| 13149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13150 | (eval $ac_try) 2>&5 |
| 13151 | ac_status=$? |
| 13152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13153 | (exit $ac_status); }; } && |
| 13154 | { ac_try='test -s conftest$ac_exeext' |
| 13155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13156 | (eval $ac_try) 2>&5 |
| 13157 | ac_status=$? |
| 13158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13159 | (exit $ac_status); }; }; then |
| 13160 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13161 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13162 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13163 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13164 | |
| 13165 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13166 | echo "$as_me: failed program was:" >&5 |
| 13167 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13168 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13169 | echo "$as_me:$LINENO: result: no" >&5 |
| 13170 | echo "${ECHO_T}no" >&6 |
| 13171 | fi |
| 13172 | rm -f conftest.err conftest.$ac_objext \ |
| 13173 | conftest$ac_exeext conftest.$ac_ext |
| 13174 | |
| 13175 | echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 13176 | echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13177 | # Check whether --enable-acl or --disable-acl was given. |
| 13178 | if test "${enable_acl+set}" = set; then |
| 13179 | enableval="$enable_acl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13180 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13181 | else |
| 13182 | enable_acl="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13183 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13184 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13185 | echo "$as_me:$LINENO: result: no" >&5 |
| 13186 | echo "${ECHO_T}no" >&6 |
| 13187 | echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 13188 | echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6 |
| 13189 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
| 13190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13191 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13192 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13193 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13194 | cat >conftest.$ac_ext <<_ACEOF |
| 13195 | /* confdefs.h. */ |
| 13196 | _ACEOF |
| 13197 | cat confdefs.h >>conftest.$ac_ext |
| 13198 | cat >>conftest.$ac_ext <<_ACEOF |
| 13199 | /* end confdefs.h. */ |
| 13200 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13201 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13202 | #ifdef __cplusplus |
| 13203 | extern "C" |
| 13204 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13205 | /* 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] | 13206 | builtin and then its argument prototype would still apply. */ |
| 13207 | char acl_get_file (); |
| 13208 | int |
| 13209 | main () |
| 13210 | { |
| 13211 | acl_get_file (); |
| 13212 | ; |
| 13213 | return 0; |
| 13214 | } |
| 13215 | _ACEOF |
| 13216 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13218 | (eval $ac_link) 2>conftest.er1 |
| 13219 | ac_status=$? |
| 13220 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13221 | rm -f conftest.er1 |
| 13222 | cat conftest.err >&5 |
| 13223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13224 | (exit $ac_status); } && |
| 13225 | { ac_try='test -z "$ac_c_werror_flag" |
| 13226 | || test ! -s conftest.err' |
| 13227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13228 | (eval $ac_try) 2>&5 |
| 13229 | ac_status=$? |
| 13230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13231 | (exit $ac_status); }; } && |
| 13232 | { ac_try='test -s conftest$ac_exeext' |
| 13233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13234 | (eval $ac_try) 2>&5 |
| 13235 | ac_status=$? |
| 13236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13237 | (exit $ac_status); }; }; then |
| 13238 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13239 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13240 | echo "$as_me: failed program was:" >&5 |
| 13241 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13242 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13243 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13244 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13245 | rm -f conftest.err conftest.$ac_objext \ |
| 13246 | conftest$ac_exeext conftest.$ac_ext |
| 13247 | LIBS=$ac_check_lib_save_LIBS |
| 13248 | fi |
| 13249 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 13250 | echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6 |
| 13251 | if test $ac_cv_lib_posix1e_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13252 | LIBS="$LIBS -lposix1e" |
| 13253 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13254 | echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 13255 | echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6 |
| 13256 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
| 13257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13258 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13259 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13260 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13261 | cat >conftest.$ac_ext <<_ACEOF |
| 13262 | /* confdefs.h. */ |
| 13263 | _ACEOF |
| 13264 | cat confdefs.h >>conftest.$ac_ext |
| 13265 | cat >>conftest.$ac_ext <<_ACEOF |
| 13266 | /* end confdefs.h. */ |
| 13267 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13268 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13269 | #ifdef __cplusplus |
| 13270 | extern "C" |
| 13271 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13272 | /* 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] | 13273 | builtin and then its argument prototype would still apply. */ |
| 13274 | char acl_get_file (); |
| 13275 | int |
| 13276 | main () |
| 13277 | { |
| 13278 | acl_get_file (); |
| 13279 | ; |
| 13280 | return 0; |
| 13281 | } |
| 13282 | _ACEOF |
| 13283 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13285 | (eval $ac_link) 2>conftest.er1 |
| 13286 | ac_status=$? |
| 13287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13288 | rm -f conftest.er1 |
| 13289 | cat conftest.err >&5 |
| 13290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13291 | (exit $ac_status); } && |
| 13292 | { ac_try='test -z "$ac_c_werror_flag" |
| 13293 | || test ! -s conftest.err' |
| 13294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13295 | (eval $ac_try) 2>&5 |
| 13296 | ac_status=$? |
| 13297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13298 | (exit $ac_status); }; } && |
| 13299 | { ac_try='test -s conftest$ac_exeext' |
| 13300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13301 | (eval $ac_try) 2>&5 |
| 13302 | ac_status=$? |
| 13303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13304 | (exit $ac_status); }; }; then |
| 13305 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13306 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13307 | echo "$as_me: failed program was:" >&5 |
| 13308 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13309 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13310 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13311 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13312 | rm -f conftest.err conftest.$ac_objext \ |
| 13313 | conftest$ac_exeext conftest.$ac_ext |
| 13314 | LIBS=$ac_check_lib_save_LIBS |
| 13315 | fi |
| 13316 | echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 13317 | echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6 |
| 13318 | if test $ac_cv_lib_acl_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13319 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13320 | echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 13321 | echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6 |
| 13322 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
| 13323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13324 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13325 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13326 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13327 | cat >conftest.$ac_ext <<_ACEOF |
| 13328 | /* confdefs.h. */ |
| 13329 | _ACEOF |
| 13330 | cat confdefs.h >>conftest.$ac_ext |
| 13331 | cat >>conftest.$ac_ext <<_ACEOF |
| 13332 | /* end confdefs.h. */ |
| 13333 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13334 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13335 | #ifdef __cplusplus |
| 13336 | extern "C" |
| 13337 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13338 | /* 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] | 13339 | builtin and then its argument prototype would still apply. */ |
| 13340 | char fgetxattr (); |
| 13341 | int |
| 13342 | main () |
| 13343 | { |
| 13344 | fgetxattr (); |
| 13345 | ; |
| 13346 | return 0; |
| 13347 | } |
| 13348 | _ACEOF |
| 13349 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13351 | (eval $ac_link) 2>conftest.er1 |
| 13352 | ac_status=$? |
| 13353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13354 | rm -f conftest.er1 |
| 13355 | cat conftest.err >&5 |
| 13356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13357 | (exit $ac_status); } && |
| 13358 | { ac_try='test -z "$ac_c_werror_flag" |
| 13359 | || test ! -s conftest.err' |
| 13360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13361 | (eval $ac_try) 2>&5 |
| 13362 | ac_status=$? |
| 13363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13364 | (exit $ac_status); }; } && |
| 13365 | { ac_try='test -s conftest$ac_exeext' |
| 13366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13367 | (eval $ac_try) 2>&5 |
| 13368 | ac_status=$? |
| 13369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13370 | (exit $ac_status); }; }; then |
| 13371 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13372 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13373 | echo "$as_me: failed program was:" >&5 |
| 13374 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13375 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13376 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13377 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13378 | rm -f conftest.err conftest.$ac_objext \ |
| 13379 | conftest$ac_exeext conftest.$ac_ext |
| 13380 | LIBS=$ac_check_lib_save_LIBS |
| 13381 | fi |
| 13382 | echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 13383 | echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6 |
| 13384 | if test $ac_cv_lib_attr_fgetxattr = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13385 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13386 | fi |
| 13387 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13388 | fi |
| 13389 | |
| 13390 | fi |
| 13391 | |
| 13392 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13393 | echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 13394 | echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6 |
| 13395 | cat >conftest.$ac_ext <<_ACEOF |
| 13396 | /* confdefs.h. */ |
| 13397 | _ACEOF |
| 13398 | cat confdefs.h >>conftest.$ac_ext |
| 13399 | cat >>conftest.$ac_ext <<_ACEOF |
| 13400 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13401 | |
| 13402 | #include <sys/types.h> |
| 13403 | #ifdef HAVE_SYS_ACL_H |
| 13404 | # include <sys/acl.h> |
| 13405 | #endif |
| 13406 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13407 | int |
| 13408 | main () |
| 13409 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13410 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 13411 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 13412 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13413 | ; |
| 13414 | return 0; |
| 13415 | } |
| 13416 | _ACEOF |
| 13417 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13419 | (eval $ac_link) 2>conftest.er1 |
| 13420 | ac_status=$? |
| 13421 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13422 | rm -f conftest.er1 |
| 13423 | cat conftest.err >&5 |
| 13424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13425 | (exit $ac_status); } && |
| 13426 | { ac_try='test -z "$ac_c_werror_flag" |
| 13427 | || test ! -s conftest.err' |
| 13428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13429 | (eval $ac_try) 2>&5 |
| 13430 | ac_status=$? |
| 13431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13432 | (exit $ac_status); }; } && |
| 13433 | { ac_try='test -s conftest$ac_exeext' |
| 13434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13435 | (eval $ac_try) 2>&5 |
| 13436 | ac_status=$? |
| 13437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13438 | (exit $ac_status); }; }; then |
| 13439 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13440 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13441 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13442 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13443 | |
| 13444 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13445 | echo "$as_me: failed program was:" >&5 |
| 13446 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13447 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13448 | echo "$as_me:$LINENO: result: no" >&5 |
| 13449 | echo "${ECHO_T}no" >&6 |
| 13450 | fi |
| 13451 | rm -f conftest.err conftest.$ac_objext \ |
| 13452 | conftest$ac_exeext conftest.$ac_ext |
| 13453 | |
| 13454 | echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 13455 | echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6 |
| 13456 | cat >conftest.$ac_ext <<_ACEOF |
| 13457 | /* confdefs.h. */ |
| 13458 | _ACEOF |
| 13459 | cat confdefs.h >>conftest.$ac_ext |
| 13460 | cat >>conftest.$ac_ext <<_ACEOF |
| 13461 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13462 | |
| 13463 | #ifdef HAVE_SYS_ACL_H |
| 13464 | # include <sys/acl.h> |
| 13465 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13466 | int |
| 13467 | main () |
| 13468 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13469 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13470 | |
| 13471 | ; |
| 13472 | return 0; |
| 13473 | } |
| 13474 | _ACEOF |
| 13475 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13477 | (eval $ac_link) 2>conftest.er1 |
| 13478 | ac_status=$? |
| 13479 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13480 | rm -f conftest.er1 |
| 13481 | cat conftest.err >&5 |
| 13482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13483 | (exit $ac_status); } && |
| 13484 | { ac_try='test -z "$ac_c_werror_flag" |
| 13485 | || test ! -s conftest.err' |
| 13486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13487 | (eval $ac_try) 2>&5 |
| 13488 | ac_status=$? |
| 13489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13490 | (exit $ac_status); }; } && |
| 13491 | { ac_try='test -s conftest$ac_exeext' |
| 13492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13493 | (eval $ac_try) 2>&5 |
| 13494 | ac_status=$? |
| 13495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13496 | (exit $ac_status); }; }; then |
| 13497 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13498 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13499 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13500 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13501 | |
| 13502 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13503 | echo "$as_me: failed program was:" >&5 |
| 13504 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13505 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13506 | echo "$as_me:$LINENO: result: no" >&5 |
| 13507 | echo "${ECHO_T}no" >&6 |
| 13508 | fi |
| 13509 | rm -f conftest.err conftest.$ac_objext \ |
| 13510 | conftest$ac_exeext conftest.$ac_ext |
| 13511 | |
| 13512 | echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 13513 | echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6 |
| 13514 | cat >conftest.$ac_ext <<_ACEOF |
| 13515 | /* confdefs.h. */ |
| 13516 | _ACEOF |
| 13517 | cat confdefs.h >>conftest.$ac_ext |
| 13518 | cat >>conftest.$ac_ext <<_ACEOF |
| 13519 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13520 | |
| 13521 | #ifdef HAVE_SYS_ACL_H |
| 13522 | # include <sys/acl.h> |
| 13523 | #endif |
| 13524 | #ifdef HAVE_SYS_ACCESS_H |
| 13525 | # include <sys/access.h> |
| 13526 | #endif |
| 13527 | #define _ALL_SOURCE |
| 13528 | |
| 13529 | #include <sys/stat.h> |
| 13530 | |
| 13531 | int aclsize; |
| 13532 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13533 | int |
| 13534 | main () |
| 13535 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13536 | aclsize = sizeof(struct acl); |
| 13537 | aclent = (void *)malloc(aclsize); |
| 13538 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13539 | |
| 13540 | ; |
| 13541 | return 0; |
| 13542 | } |
| 13543 | _ACEOF |
| 13544 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13546 | (eval $ac_link) 2>conftest.er1 |
| 13547 | ac_status=$? |
| 13548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13549 | rm -f conftest.er1 |
| 13550 | cat conftest.err >&5 |
| 13551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13552 | (exit $ac_status); } && |
| 13553 | { ac_try='test -z "$ac_c_werror_flag" |
| 13554 | || test ! -s conftest.err' |
| 13555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13556 | (eval $ac_try) 2>&5 |
| 13557 | ac_status=$? |
| 13558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13559 | (exit $ac_status); }; } && |
| 13560 | { ac_try='test -s conftest$ac_exeext' |
| 13561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13562 | (eval $ac_try) 2>&5 |
| 13563 | ac_status=$? |
| 13564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13565 | (exit $ac_status); }; }; then |
| 13566 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13567 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13568 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13569 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13570 | |
| 13571 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13572 | echo "$as_me: failed program was:" >&5 |
| 13573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13574 | |
| 13575 | echo "$as_me:$LINENO: result: no" >&5 |
| 13576 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13577 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13578 | rm -f conftest.err conftest.$ac_objext \ |
| 13579 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13580 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13581 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13582 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13583 | fi |
| 13584 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13585 | echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 13586 | echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13587 | # Check whether --enable-gpm or --disable-gpm was given. |
| 13588 | if test "${enable_gpm+set}" = set; then |
| 13589 | enableval="$enable_gpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13590 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13591 | else |
| 13592 | enable_gpm="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13593 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13594 | |
| 13595 | if test "$enable_gpm" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13596 | echo "$as_me:$LINENO: result: no" >&5 |
| 13597 | echo "${ECHO_T}no" >&6 |
| 13598 | echo "$as_me:$LINENO: checking for gpm" >&5 |
| 13599 | echo $ECHO_N "checking for gpm... $ECHO_C" >&6 |
| 13600 | if test "${vi_cv_have_gpm+set}" = set; then |
| 13601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13602 | else |
| 13603 | olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13604 | cat >conftest.$ac_ext <<_ACEOF |
| 13605 | /* confdefs.h. */ |
| 13606 | _ACEOF |
| 13607 | cat confdefs.h >>conftest.$ac_ext |
| 13608 | cat >>conftest.$ac_ext <<_ACEOF |
| 13609 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13610 | #include <gpm.h> |
| 13611 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13612 | int |
| 13613 | main () |
| 13614 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13615 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13616 | ; |
| 13617 | return 0; |
| 13618 | } |
| 13619 | _ACEOF |
| 13620 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13622 | (eval $ac_link) 2>conftest.er1 |
| 13623 | ac_status=$? |
| 13624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13625 | rm -f conftest.er1 |
| 13626 | cat conftest.err >&5 |
| 13627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13628 | (exit $ac_status); } && |
| 13629 | { ac_try='test -z "$ac_c_werror_flag" |
| 13630 | || test ! -s conftest.err' |
| 13631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13632 | (eval $ac_try) 2>&5 |
| 13633 | ac_status=$? |
| 13634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13635 | (exit $ac_status); }; } && |
| 13636 | { ac_try='test -s conftest$ac_exeext' |
| 13637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13638 | (eval $ac_try) 2>&5 |
| 13639 | ac_status=$? |
| 13640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13641 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13642 | vi_cv_have_gpm=yes |
| 13643 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13644 | echo "$as_me: failed program was:" >&5 |
| 13645 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13646 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13647 | vi_cv_have_gpm=no |
| 13648 | fi |
| 13649 | rm -f conftest.err conftest.$ac_objext \ |
| 13650 | conftest$ac_exeext conftest.$ac_ext |
| 13651 | LIBS="$olibs" |
| 13652 | |
| 13653 | fi |
| 13654 | echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 13655 | echo "${ECHO_T}$vi_cv_have_gpm" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13656 | if test $vi_cv_have_gpm = yes; then |
| 13657 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13658 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13659 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13660 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13661 | |
| 13662 | fi |
| 13663 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13664 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13665 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13666 | fi |
| 13667 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13668 | echo "$as_me:$LINENO: checking for rename" >&5 |
| 13669 | echo $ECHO_N "checking for rename... $ECHO_C" >&6 |
| 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> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13677 | int |
| 13678 | main () |
| 13679 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13680 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13681 | ; |
| 13682 | return 0; |
| 13683 | } |
| 13684 | _ACEOF |
| 13685 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13687 | (eval $ac_link) 2>conftest.er1 |
| 13688 | ac_status=$? |
| 13689 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13690 | rm -f conftest.er1 |
| 13691 | cat conftest.err >&5 |
| 13692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13693 | (exit $ac_status); } && |
| 13694 | { ac_try='test -z "$ac_c_werror_flag" |
| 13695 | || test ! -s conftest.err' |
| 13696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13697 | (eval $ac_try) 2>&5 |
| 13698 | ac_status=$? |
| 13699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13700 | (exit $ac_status); }; } && |
| 13701 | { ac_try='test -s conftest$ac_exeext' |
| 13702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13703 | (eval $ac_try) 2>&5 |
| 13704 | ac_status=$? |
| 13705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13706 | (exit $ac_status); }; }; then |
| 13707 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13708 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13709 | #define HAVE_RENAME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13710 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13711 | |
| 13712 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13713 | echo "$as_me: failed program was:" >&5 |
| 13714 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13715 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13716 | echo "$as_me:$LINENO: result: no" >&5 |
| 13717 | echo "${ECHO_T}no" >&6 |
| 13718 | fi |
| 13719 | rm -f conftest.err conftest.$ac_objext \ |
| 13720 | conftest$ac_exeext conftest.$ac_ext |
| 13721 | |
| 13722 | echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 13723 | echo $ECHO_N "checking for sysctl... $ECHO_C" >&6 |
| 13724 | cat >conftest.$ac_ext <<_ACEOF |
| 13725 | /* confdefs.h. */ |
| 13726 | _ACEOF |
| 13727 | cat confdefs.h >>conftest.$ac_ext |
| 13728 | cat >>conftest.$ac_ext <<_ACEOF |
| 13729 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13730 | #include <sys/types.h> |
| 13731 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13732 | int |
| 13733 | main () |
| 13734 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13735 | int mib[2], r; |
| 13736 | size_t len; |
| 13737 | |
| 13738 | mib[0] = CTL_HW; |
| 13739 | mib[1] = HW_USERMEM; |
| 13740 | len = sizeof(r); |
| 13741 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13742 | |
| 13743 | ; |
| 13744 | return 0; |
| 13745 | } |
| 13746 | _ACEOF |
| 13747 | rm -f conftest.$ac_objext |
| 13748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13749 | (eval $ac_compile) 2>conftest.er1 |
| 13750 | ac_status=$? |
| 13751 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13752 | rm -f conftest.er1 |
| 13753 | cat conftest.err >&5 |
| 13754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13755 | (exit $ac_status); } && |
| 13756 | { ac_try='test -z "$ac_c_werror_flag" |
| 13757 | || test ! -s conftest.err' |
| 13758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13759 | (eval $ac_try) 2>&5 |
| 13760 | ac_status=$? |
| 13761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13762 | (exit $ac_status); }; } && |
| 13763 | { ac_try='test -s conftest.$ac_objext' |
| 13764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13765 | (eval $ac_try) 2>&5 |
| 13766 | ac_status=$? |
| 13767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13768 | (exit $ac_status); }; }; then |
| 13769 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13770 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13771 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13772 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13773 | |
| 13774 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13775 | echo "$as_me: failed program was:" >&5 |
| 13776 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13777 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13778 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13779 | echo "${ECHO_T}not usable" >&6 |
| 13780 | fi |
| 13781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13782 | |
| 13783 | echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 13784 | echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6 |
| 13785 | cat >conftest.$ac_ext <<_ACEOF |
| 13786 | /* confdefs.h. */ |
| 13787 | _ACEOF |
| 13788 | cat confdefs.h >>conftest.$ac_ext |
| 13789 | cat >>conftest.$ac_ext <<_ACEOF |
| 13790 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13791 | #include <sys/types.h> |
| 13792 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13793 | int |
| 13794 | main () |
| 13795 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13796 | struct sysinfo sinfo; |
| 13797 | int t; |
| 13798 | |
| 13799 | (void)sysinfo(&sinfo); |
| 13800 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13801 | |
| 13802 | ; |
| 13803 | return 0; |
| 13804 | } |
| 13805 | _ACEOF |
| 13806 | rm -f conftest.$ac_objext |
| 13807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13808 | (eval $ac_compile) 2>conftest.er1 |
| 13809 | ac_status=$? |
| 13810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13811 | rm -f conftest.er1 |
| 13812 | cat conftest.err >&5 |
| 13813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13814 | (exit $ac_status); } && |
| 13815 | { ac_try='test -z "$ac_c_werror_flag" |
| 13816 | || test ! -s conftest.err' |
| 13817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13818 | (eval $ac_try) 2>&5 |
| 13819 | ac_status=$? |
| 13820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13821 | (exit $ac_status); }; } && |
| 13822 | { ac_try='test -s conftest.$ac_objext' |
| 13823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13824 | (eval $ac_try) 2>&5 |
| 13825 | ac_status=$? |
| 13826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13827 | (exit $ac_status); }; }; then |
| 13828 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13829 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13830 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13831 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13832 | |
| 13833 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 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 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13838 | echo "${ECHO_T}not usable" >&6 |
| 13839 | fi |
| 13840 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13841 | |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 13842 | echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5 |
| 13843 | echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6 |
| 13844 | cat >conftest.$ac_ext <<_ACEOF |
| 13845 | /* confdefs.h. */ |
| 13846 | _ACEOF |
| 13847 | cat confdefs.h >>conftest.$ac_ext |
| 13848 | cat >>conftest.$ac_ext <<_ACEOF |
| 13849 | /* end confdefs.h. */ |
| 13850 | #include <sys/types.h> |
| 13851 | #include <sys/sysinfo.h> |
| 13852 | int |
| 13853 | main () |
| 13854 | { |
| 13855 | struct sysinfo sinfo; |
| 13856 | sinfo.mem_unit = 1; |
| 13857 | |
| 13858 | ; |
| 13859 | return 0; |
| 13860 | } |
| 13861 | _ACEOF |
| 13862 | rm -f conftest.$ac_objext |
| 13863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13864 | (eval $ac_compile) 2>conftest.er1 |
| 13865 | ac_status=$? |
| 13866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13867 | rm -f conftest.er1 |
| 13868 | cat conftest.err >&5 |
| 13869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13870 | (exit $ac_status); } && |
| 13871 | { ac_try='test -z "$ac_c_werror_flag" |
| 13872 | || test ! -s conftest.err' |
| 13873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13874 | (eval $ac_try) 2>&5 |
| 13875 | ac_status=$? |
| 13876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13877 | (exit $ac_status); }; } && |
| 13878 | { ac_try='test -s conftest.$ac_objext' |
| 13879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13880 | (eval $ac_try) 2>&5 |
| 13881 | ac_status=$? |
| 13882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13883 | (exit $ac_status); }; }; then |
| 13884 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13885 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
| 13886 | #define HAVE_SYSINFO_MEM_UNIT 1 |
| 13887 | _ACEOF |
| 13888 | |
| 13889 | else |
| 13890 | echo "$as_me: failed program was:" >&5 |
| 13891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13892 | |
| 13893 | echo "$as_me:$LINENO: result: no" >&5 |
| 13894 | echo "${ECHO_T}no" >&6 |
| 13895 | fi |
| 13896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13897 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13898 | echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 13899 | echo $ECHO_N "checking for sysconf... $ECHO_C" >&6 |
| 13900 | cat >conftest.$ac_ext <<_ACEOF |
| 13901 | /* confdefs.h. */ |
| 13902 | _ACEOF |
| 13903 | cat confdefs.h >>conftest.$ac_ext |
| 13904 | cat >>conftest.$ac_ext <<_ACEOF |
| 13905 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13906 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13907 | int |
| 13908 | main () |
| 13909 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13910 | (void)sysconf(_SC_PAGESIZE); |
| 13911 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13912 | |
| 13913 | ; |
| 13914 | return 0; |
| 13915 | } |
| 13916 | _ACEOF |
| 13917 | rm -f conftest.$ac_objext |
| 13918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13919 | (eval $ac_compile) 2>conftest.er1 |
| 13920 | ac_status=$? |
| 13921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13922 | rm -f conftest.er1 |
| 13923 | cat conftest.err >&5 |
| 13924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13925 | (exit $ac_status); } && |
| 13926 | { ac_try='test -z "$ac_c_werror_flag" |
| 13927 | || test ! -s conftest.err' |
| 13928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13929 | (eval $ac_try) 2>&5 |
| 13930 | ac_status=$? |
| 13931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13932 | (exit $ac_status); }; } && |
| 13933 | { ac_try='test -s conftest.$ac_objext' |
| 13934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13935 | (eval $ac_try) 2>&5 |
| 13936 | ac_status=$? |
| 13937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13938 | (exit $ac_status); }; }; then |
| 13939 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13940 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13941 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13942 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13943 | |
| 13944 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13945 | echo "$as_me: failed program was:" >&5 |
| 13946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13947 | |
| 13948 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13949 | echo "${ECHO_T}not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13950 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13952 | |
| 13953 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13954 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 13955 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 13956 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 13957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13958 | else |
| 13959 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13960 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13961 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13962 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13963 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13964 | cat >conftest.$ac_ext <<_ACEOF |
| 13965 | /* confdefs.h. */ |
| 13966 | _ACEOF |
| 13967 | cat confdefs.h >>conftest.$ac_ext |
| 13968 | cat >>conftest.$ac_ext <<_ACEOF |
| 13969 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13970 | #include <stdio.h> |
| 13971 | main() |
| 13972 | { |
| 13973 | FILE *f=fopen("conftestval", "w"); |
| 13974 | if (!f) exit(1); |
| 13975 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 13976 | exit(0); |
| 13977 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13978 | _ACEOF |
| 13979 | rm -f conftest$ac_exeext |
| 13980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13981 | (eval $ac_link) 2>&5 |
| 13982 | ac_status=$? |
| 13983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13984 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13986 | (eval $ac_try) 2>&5 |
| 13987 | ac_status=$? |
| 13988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13989 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13990 | ac_cv_sizeof_int=`cat conftestval` |
| 13991 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13992 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13993 | echo "$as_me: failed program was:" >&5 |
| 13994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13995 | |
| 13996 | ( exit $ac_status ) |
| 13997 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13998 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13999 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14000 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14001 | fi |
| 14002 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14003 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 14004 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 14005 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14006 | #define SIZEOF_INT $ac_cv_sizeof_int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14007 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14008 | |
| 14009 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14010 | echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5 |
| 14011 | 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] | 14012 | bcopy_test_prog=' |
| 14013 | main() { |
| 14014 | char buf[10]; |
| 14015 | strcpy(buf, "abcdefghi"); |
| 14016 | mch_memmove(buf, buf + 2, 3); |
| 14017 | if (strncmp(buf, "ababcf", 6)) |
| 14018 | exit(1); |
| 14019 | strcpy(buf, "abcdefghi"); |
| 14020 | mch_memmove(buf + 2, buf, 3); |
| 14021 | if (strncmp(buf, "cdedef", 6)) |
| 14022 | exit(1); |
| 14023 | exit(0); /* libc version works properly. */ |
| 14024 | }' |
| 14025 | |
| 14026 | |
| 14027 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14028 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 14029 | echo "$as_me: error: failed to compile test program" >&2;} |
| 14030 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14031 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14032 | cat >conftest.$ac_ext <<_ACEOF |
| 14033 | /* confdefs.h. */ |
| 14034 | _ACEOF |
| 14035 | cat confdefs.h >>conftest.$ac_ext |
| 14036 | cat >>conftest.$ac_ext <<_ACEOF |
| 14037 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14038 | #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] | 14039 | _ACEOF |
| 14040 | rm -f conftest$ac_exeext |
| 14041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14042 | (eval $ac_link) 2>&5 |
| 14043 | ac_status=$? |
| 14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14045 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14047 | (eval $ac_try) 2>&5 |
| 14048 | ac_status=$? |
| 14049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14050 | (exit $ac_status); }; }; then |
| 14051 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14052 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14053 | _ACEOF |
| 14054 | echo "$as_me:$LINENO: result: memmove does" >&5 |
| 14055 | echo "${ECHO_T}memmove does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14056 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14057 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14058 | echo "$as_me: failed program was:" >&5 |
| 14059 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14060 | |
| 14061 | ( exit $ac_status ) |
| 14062 | if test "$cross_compiling" = yes; then |
| 14063 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 14064 | echo "$as_me: error: failed to compile test program" >&2;} |
| 14065 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14066 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14067 | cat >conftest.$ac_ext <<_ACEOF |
| 14068 | /* confdefs.h. */ |
| 14069 | _ACEOF |
| 14070 | cat confdefs.h >>conftest.$ac_ext |
| 14071 | cat >>conftest.$ac_ext <<_ACEOF |
| 14072 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14073 | #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] | 14074 | _ACEOF |
| 14075 | rm -f conftest$ac_exeext |
| 14076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14077 | (eval $ac_link) 2>&5 |
| 14078 | ac_status=$? |
| 14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14080 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14082 | (eval $ac_try) 2>&5 |
| 14083 | ac_status=$? |
| 14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14085 | (exit $ac_status); }; }; then |
| 14086 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14087 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14088 | _ACEOF |
| 14089 | echo "$as_me:$LINENO: result: bcopy does" >&5 |
| 14090 | echo "${ECHO_T}bcopy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14091 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14092 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14093 | echo "$as_me: failed program was:" >&5 |
| 14094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14095 | |
| 14096 | ( exit $ac_status ) |
| 14097 | if test "$cross_compiling" = yes; then |
| 14098 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 14099 | echo "$as_me: error: failed to compile test program" >&2;} |
| 14100 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14101 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14102 | cat >conftest.$ac_ext <<_ACEOF |
| 14103 | /* confdefs.h. */ |
| 14104 | _ACEOF |
| 14105 | cat confdefs.h >>conftest.$ac_ext |
| 14106 | cat >>conftest.$ac_ext <<_ACEOF |
| 14107 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14108 | #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] | 14109 | _ACEOF |
| 14110 | rm -f conftest$ac_exeext |
| 14111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14112 | (eval $ac_link) 2>&5 |
| 14113 | ac_status=$? |
| 14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14115 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14117 | (eval $ac_try) 2>&5 |
| 14118 | ac_status=$? |
| 14119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14120 | (exit $ac_status); }; }; then |
| 14121 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14122 | #define USEMEMCPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14123 | _ACEOF |
| 14124 | echo "$as_me:$LINENO: result: memcpy does" >&5 |
| 14125 | echo "${ECHO_T}memcpy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14126 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14127 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14128 | echo "$as_me: failed program was:" >&5 |
| 14129 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14130 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14131 | ( exit $ac_status ) |
| 14132 | echo "$as_me:$LINENO: result: no" >&5 |
| 14133 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14134 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14135 | 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] | 14136 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14137 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14138 | 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] | 14139 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14140 | fi |
| 14141 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14142 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14143 | |
| 14144 | |
| 14145 | if test "$enable_multibyte" = "yes"; then |
| 14146 | cflags_save=$CFLAGS |
| 14147 | ldflags_save=$LDFLAGS |
| 14148 | if test -n "$x_includes" ; then |
| 14149 | CFLAGS="$CFLAGS -I$x_includes" |
| 14150 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14151 | echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 14152 | echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6 |
| 14153 | cat >conftest.$ac_ext <<_ACEOF |
| 14154 | /* confdefs.h. */ |
| 14155 | _ACEOF |
| 14156 | cat confdefs.h >>conftest.$ac_ext |
| 14157 | cat >>conftest.$ac_ext <<_ACEOF |
| 14158 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14159 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14160 | int |
| 14161 | main () |
| 14162 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14163 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14164 | ; |
| 14165 | return 0; |
| 14166 | } |
| 14167 | _ACEOF |
| 14168 | rm -f conftest.$ac_objext |
| 14169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14170 | (eval $ac_compile) 2>conftest.er1 |
| 14171 | ac_status=$? |
| 14172 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14173 | rm -f conftest.er1 |
| 14174 | cat conftest.err >&5 |
| 14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14176 | (exit $ac_status); } && |
| 14177 | { ac_try='test -z "$ac_c_werror_flag" |
| 14178 | || test ! -s conftest.err' |
| 14179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14180 | (eval $ac_try) 2>&5 |
| 14181 | ac_status=$? |
| 14182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14183 | (exit $ac_status); }; } && |
| 14184 | { ac_try='test -s conftest.$ac_objext' |
| 14185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14186 | (eval $ac_try) 2>&5 |
| 14187 | ac_status=$? |
| 14188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14189 | (exit $ac_status); }; }; then |
| 14190 | cat >conftest.$ac_ext <<_ACEOF |
| 14191 | /* confdefs.h. */ |
| 14192 | _ACEOF |
| 14193 | cat confdefs.h >>conftest.$ac_ext |
| 14194 | cat >>conftest.$ac_ext <<_ACEOF |
| 14195 | /* end confdefs.h. */ |
| 14196 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14197 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14198 | #ifdef __cplusplus |
| 14199 | extern "C" |
| 14200 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14201 | /* 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] | 14202 | builtin and then its argument prototype would still apply. */ |
| 14203 | char _Xsetlocale (); |
| 14204 | int |
| 14205 | main () |
| 14206 | { |
| 14207 | _Xsetlocale (); |
| 14208 | ; |
| 14209 | return 0; |
| 14210 | } |
| 14211 | _ACEOF |
| 14212 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14214 | (eval $ac_link) 2>conftest.er1 |
| 14215 | ac_status=$? |
| 14216 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14217 | rm -f conftest.er1 |
| 14218 | cat conftest.err >&5 |
| 14219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14220 | (exit $ac_status); } && |
| 14221 | { ac_try='test -z "$ac_c_werror_flag" |
| 14222 | || test ! -s conftest.err' |
| 14223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14224 | (eval $ac_try) 2>&5 |
| 14225 | ac_status=$? |
| 14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14227 | (exit $ac_status); }; } && |
| 14228 | { ac_try='test -s conftest$ac_exeext' |
| 14229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14230 | (eval $ac_try) 2>&5 |
| 14231 | ac_status=$? |
| 14232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14233 | (exit $ac_status); }; }; then |
| 14234 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14235 | echo "${ECHO_T}yes" >&6 |
| 14236 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14237 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14238 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14239 | |
| 14240 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14241 | echo "$as_me: failed program was:" >&5 |
| 14242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14243 | |
| 14244 | echo "$as_me:$LINENO: result: no" >&5 |
| 14245 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14246 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14247 | rm -f conftest.err conftest.$ac_objext \ |
| 14248 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14249 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14250 | echo "$as_me: failed program was:" >&5 |
| 14251 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14252 | |
| 14253 | echo "$as_me:$LINENO: result: no" >&5 |
| 14254 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14255 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14256 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14257 | fi |
| 14258 | CFLAGS=$cflags_save |
| 14259 | LDFLAGS=$ldflags_save |
| 14260 | fi |
| 14261 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14262 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 14263 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 14264 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 14265 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14266 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14267 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14268 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14269 | cat >conftest.$ac_ext <<_ACEOF |
| 14270 | /* confdefs.h. */ |
| 14271 | _ACEOF |
| 14272 | cat confdefs.h >>conftest.$ac_ext |
| 14273 | cat >>conftest.$ac_ext <<_ACEOF |
| 14274 | /* end confdefs.h. */ |
| 14275 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14276 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14277 | #ifdef __cplusplus |
| 14278 | extern "C" |
| 14279 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14280 | /* 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] | 14281 | builtin and then its argument prototype would still apply. */ |
| 14282 | char _xpg4_setrunelocale (); |
| 14283 | int |
| 14284 | main () |
| 14285 | { |
| 14286 | _xpg4_setrunelocale (); |
| 14287 | ; |
| 14288 | return 0; |
| 14289 | } |
| 14290 | _ACEOF |
| 14291 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14293 | (eval $ac_link) 2>conftest.er1 |
| 14294 | ac_status=$? |
| 14295 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14296 | rm -f conftest.er1 |
| 14297 | cat conftest.err >&5 |
| 14298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14299 | (exit $ac_status); } && |
| 14300 | { ac_try='test -z "$ac_c_werror_flag" |
| 14301 | || test ! -s conftest.err' |
| 14302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14303 | (eval $ac_try) 2>&5 |
| 14304 | ac_status=$? |
| 14305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14306 | (exit $ac_status); }; } && |
| 14307 | { ac_try='test -s conftest$ac_exeext' |
| 14308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14309 | (eval $ac_try) 2>&5 |
| 14310 | ac_status=$? |
| 14311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14312 | (exit $ac_status); }; }; then |
| 14313 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14314 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14315 | echo "$as_me: failed program was:" >&5 |
| 14316 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14317 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14318 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14319 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14320 | rm -f conftest.err conftest.$ac_objext \ |
| 14321 | conftest$ac_exeext conftest.$ac_ext |
| 14322 | LIBS=$ac_check_lib_save_LIBS |
| 14323 | fi |
| 14324 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 14325 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 14326 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14327 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14328 | fi |
| 14329 | |
| 14330 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14331 | echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 14332 | echo $ECHO_N "checking how to create tags... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14333 | test -f tags && mv tags tags.save |
| 14334 | if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
Bram Moolenaar | b21e584 | 2006-04-16 18:30:08 +0000 | [diff] [blame] | 14335 | TAGPRG="ctags -I INIT+ --fields=+S" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14336 | else |
| 14337 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 14338 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 14339 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 14340 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 14341 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 14342 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 14343 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 14344 | fi |
| 14345 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14346 | echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 14347 | echo "${ECHO_T}$TAGPRG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14348 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14349 | echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 14350 | 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] | 14351 | MANDEF="man" |
Bram Moolenaar | 8b13150 | 2008-02-13 09:28:19 +0000 | [diff] [blame] | 14352 | (eval MANPAGER=cat PAGER=cat 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] | 14353 | echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 14354 | echo "${ECHO_T}$MANDEF" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14355 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14356 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14357 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14358 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14359 | |
| 14360 | fi |
| 14361 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14362 | echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 14363 | echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14364 | # Check whether --enable-nls or --disable-nls was given. |
| 14365 | if test "${enable_nls+set}" = set; then |
| 14366 | enableval="$enable_nls" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14367 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14368 | else |
| 14369 | enable_nls="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14370 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14371 | |
| 14372 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14373 | echo "$as_me:$LINENO: result: no" >&5 |
| 14374 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 14375 | |
| 14376 | INSTALL_LANGS=install-languages |
| 14377 | |
| 14378 | INSTALL_TOOL_LANGS=install-tool-languages |
| 14379 | |
| 14380 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14381 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 14382 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14383 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14385 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
| 14386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14387 | else |
| 14388 | if test -n "$MSGFMT"; then |
| 14389 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 14390 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14392 | for as_dir in $PATH |
| 14393 | do |
| 14394 | IFS=$as_save_IFS |
| 14395 | test -z "$as_dir" && as_dir=. |
| 14396 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14397 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14398 | ac_cv_prog_MSGFMT="msgfmt" |
| 14399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14400 | break 2 |
| 14401 | fi |
| 14402 | done |
| 14403 | done |
| 14404 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14405 | fi |
| 14406 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14407 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14408 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14409 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 14410 | echo "${ECHO_T}$MSGFMT" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14411 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14412 | echo "$as_me:$LINENO: result: no" >&5 |
| 14413 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14414 | fi |
| 14415 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14416 | echo "$as_me:$LINENO: checking for NLS" >&5 |
| 14417 | echo $ECHO_N "checking for NLS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14418 | if test -f po/Makefile; then |
| 14419 | have_gettext="no" |
| 14420 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14421 | cat >conftest.$ac_ext <<_ACEOF |
| 14422 | /* confdefs.h. */ |
| 14423 | _ACEOF |
| 14424 | cat confdefs.h >>conftest.$ac_ext |
| 14425 | cat >>conftest.$ac_ext <<_ACEOF |
| 14426 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14427 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14428 | int |
| 14429 | main () |
| 14430 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14431 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14432 | ; |
| 14433 | return 0; |
| 14434 | } |
| 14435 | _ACEOF |
| 14436 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14438 | (eval $ac_link) 2>conftest.er1 |
| 14439 | ac_status=$? |
| 14440 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14441 | rm -f conftest.er1 |
| 14442 | cat conftest.err >&5 |
| 14443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14444 | (exit $ac_status); } && |
| 14445 | { ac_try='test -z "$ac_c_werror_flag" |
| 14446 | || test ! -s conftest.err' |
| 14447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14448 | (eval $ac_try) 2>&5 |
| 14449 | ac_status=$? |
| 14450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14451 | (exit $ac_status); }; } && |
| 14452 | { ac_try='test -s conftest$ac_exeext' |
| 14453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14454 | (eval $ac_try) 2>&5 |
| 14455 | ac_status=$? |
| 14456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14457 | (exit $ac_status); }; }; then |
| 14458 | echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 14459 | echo "${ECHO_T}gettext() works" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14460 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14461 | echo "$as_me: failed program was:" >&5 |
| 14462 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14463 | |
| 14464 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14465 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14466 | cat >conftest.$ac_ext <<_ACEOF |
| 14467 | /* confdefs.h. */ |
| 14468 | _ACEOF |
| 14469 | cat confdefs.h >>conftest.$ac_ext |
| 14470 | cat >>conftest.$ac_ext <<_ACEOF |
| 14471 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14472 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14473 | int |
| 14474 | main () |
| 14475 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14476 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14477 | ; |
| 14478 | return 0; |
| 14479 | } |
| 14480 | _ACEOF |
| 14481 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14483 | (eval $ac_link) 2>conftest.er1 |
| 14484 | ac_status=$? |
| 14485 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14486 | rm -f conftest.er1 |
| 14487 | cat conftest.err >&5 |
| 14488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14489 | (exit $ac_status); } && |
| 14490 | { ac_try='test -z "$ac_c_werror_flag" |
| 14491 | || test ! -s conftest.err' |
| 14492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14493 | (eval $ac_try) 2>&5 |
| 14494 | ac_status=$? |
| 14495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14496 | (exit $ac_status); }; } && |
| 14497 | { ac_try='test -s conftest$ac_exeext' |
| 14498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14499 | (eval $ac_try) 2>&5 |
| 14500 | ac_status=$? |
| 14501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14502 | (exit $ac_status); }; }; then |
| 14503 | echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 14504 | echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14505 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14506 | echo "$as_me: failed program was:" >&5 |
| 14507 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14508 | |
| 14509 | echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 14510 | echo "${ECHO_T}gettext() doesn't work" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14511 | LIBS=$olibs |
| 14512 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14513 | rm -f conftest.err conftest.$ac_objext \ |
| 14514 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14515 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14516 | rm -f conftest.err conftest.$ac_objext \ |
| 14517 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14518 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14519 | echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 14520 | echo "${ECHO_T}msgfmt not found - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14521 | fi |
| 14522 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14523 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14524 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14525 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14526 | |
| 14527 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14528 | |
| 14529 | |
| 14530 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14531 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14532 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14533 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14534 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14535 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14537 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14538 | cat >conftest.$ac_ext <<_ACEOF |
| 14539 | /* confdefs.h. */ |
| 14540 | _ACEOF |
| 14541 | cat confdefs.h >>conftest.$ac_ext |
| 14542 | cat >>conftest.$ac_ext <<_ACEOF |
| 14543 | /* end confdefs.h. */ |
| 14544 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14545 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14546 | #define $ac_func innocuous_$ac_func |
| 14547 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14548 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14549 | which can conflict with char $ac_func (); below. |
| 14550 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14551 | <limits.h> exists even on freestanding compilers. */ |
| 14552 | |
| 14553 | #ifdef __STDC__ |
| 14554 | # include <limits.h> |
| 14555 | #else |
| 14556 | # include <assert.h> |
| 14557 | #endif |
| 14558 | |
| 14559 | #undef $ac_func |
| 14560 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14561 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14562 | #ifdef __cplusplus |
| 14563 | extern "C" |
| 14564 | { |
| 14565 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14566 | /* 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] | 14567 | builtin and then its argument prototype would still apply. */ |
| 14568 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14569 | /* The GNU C library defines this for functions which it implements |
| 14570 | to always fail with ENOSYS. Some functions are actually named |
| 14571 | something starting with __ and the normal name is an alias. */ |
| 14572 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14573 | choke me |
| 14574 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14575 | char (*f) () = $ac_func; |
| 14576 | #endif |
| 14577 | #ifdef __cplusplus |
| 14578 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14579 | #endif |
| 14580 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14581 | int |
| 14582 | main () |
| 14583 | { |
| 14584 | return f != $ac_func; |
| 14585 | ; |
| 14586 | return 0; |
| 14587 | } |
| 14588 | _ACEOF |
| 14589 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14591 | (eval $ac_link) 2>conftest.er1 |
| 14592 | ac_status=$? |
| 14593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14594 | rm -f conftest.er1 |
| 14595 | cat conftest.err >&5 |
| 14596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14597 | (exit $ac_status); } && |
| 14598 | { ac_try='test -z "$ac_c_werror_flag" |
| 14599 | || test ! -s conftest.err' |
| 14600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14601 | (eval $ac_try) 2>&5 |
| 14602 | ac_status=$? |
| 14603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14604 | (exit $ac_status); }; } && |
| 14605 | { ac_try='test -s conftest$ac_exeext' |
| 14606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14607 | (eval $ac_try) 2>&5 |
| 14608 | ac_status=$? |
| 14609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14610 | (exit $ac_status); }; }; then |
| 14611 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14612 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14613 | echo "$as_me: failed program was:" >&5 |
| 14614 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14615 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14616 | eval "$as_ac_var=no" |
| 14617 | fi |
| 14618 | rm -f conftest.err conftest.$ac_objext \ |
| 14619 | conftest$ac_exeext conftest.$ac_ext |
| 14620 | fi |
| 14621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14622 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14623 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14624 | cat >>confdefs.h <<_ACEOF |
| 14625 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14626 | _ACEOF |
| 14627 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14628 | fi |
| 14629 | done |
| 14630 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14631 | echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 14632 | echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6 |
| 14633 | cat >conftest.$ac_ext <<_ACEOF |
| 14634 | /* confdefs.h. */ |
| 14635 | _ACEOF |
| 14636 | cat confdefs.h >>conftest.$ac_ext |
| 14637 | cat >>conftest.$ac_ext <<_ACEOF |
| 14638 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14639 | #include <libintl.h> |
| 14640 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14641 | int |
| 14642 | main () |
| 14643 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14644 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14645 | ; |
| 14646 | return 0; |
| 14647 | } |
| 14648 | _ACEOF |
| 14649 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14651 | (eval $ac_link) 2>conftest.er1 |
| 14652 | ac_status=$? |
| 14653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14654 | rm -f conftest.er1 |
| 14655 | cat conftest.err >&5 |
| 14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14657 | (exit $ac_status); } && |
| 14658 | { ac_try='test -z "$ac_c_werror_flag" |
| 14659 | || test ! -s conftest.err' |
| 14660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14661 | (eval $ac_try) 2>&5 |
| 14662 | ac_status=$? |
| 14663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14664 | (exit $ac_status); }; } && |
| 14665 | { ac_try='test -s conftest$ac_exeext' |
| 14666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14667 | (eval $ac_try) 2>&5 |
| 14668 | ac_status=$? |
| 14669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14670 | (exit $ac_status); }; }; then |
| 14671 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14672 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14673 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14674 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14675 | |
| 14676 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14677 | echo "$as_me: failed program was:" >&5 |
| 14678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14679 | |
| 14680 | echo "$as_me:$LINENO: result: no" >&5 |
| 14681 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14682 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14683 | rm -f conftest.err conftest.$ac_objext \ |
| 14684 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14685 | fi |
| 14686 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14687 | echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 14688 | echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14689 | fi |
| 14690 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14691 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14692 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14693 | fi |
| 14694 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14695 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14696 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 14697 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 14698 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14700 | fi |
| 14701 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 14702 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14703 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14704 | # Is the header compilable? |
| 14705 | echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 14706 | echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 |
| 14707 | cat >conftest.$ac_ext <<_ACEOF |
| 14708 | /* confdefs.h. */ |
| 14709 | _ACEOF |
| 14710 | cat confdefs.h >>conftest.$ac_ext |
| 14711 | cat >>conftest.$ac_ext <<_ACEOF |
| 14712 | /* end confdefs.h. */ |
| 14713 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14714 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14715 | _ACEOF |
| 14716 | rm -f conftest.$ac_objext |
| 14717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14718 | (eval $ac_compile) 2>conftest.er1 |
| 14719 | ac_status=$? |
| 14720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14721 | rm -f conftest.er1 |
| 14722 | cat conftest.err >&5 |
| 14723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14724 | (exit $ac_status); } && |
| 14725 | { ac_try='test -z "$ac_c_werror_flag" |
| 14726 | || test ! -s conftest.err' |
| 14727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14728 | (eval $ac_try) 2>&5 |
| 14729 | ac_status=$? |
| 14730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14731 | (exit $ac_status); }; } && |
| 14732 | { ac_try='test -s conftest.$ac_objext' |
| 14733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14734 | (eval $ac_try) 2>&5 |
| 14735 | ac_status=$? |
| 14736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14737 | (exit $ac_status); }; }; then |
| 14738 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14739 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14740 | echo "$as_me: failed program was:" >&5 |
| 14741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14742 | |
| 14743 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14744 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14746 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14747 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14748 | |
| 14749 | # Is the header present? |
| 14750 | echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 14751 | echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 |
| 14752 | cat >conftest.$ac_ext <<_ACEOF |
| 14753 | /* confdefs.h. */ |
| 14754 | _ACEOF |
| 14755 | cat confdefs.h >>conftest.$ac_ext |
| 14756 | cat >>conftest.$ac_ext <<_ACEOF |
| 14757 | /* end confdefs.h. */ |
| 14758 | #include <dlfcn.h> |
| 14759 | _ACEOF |
| 14760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14762 | ac_status=$? |
| 14763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14764 | rm -f conftest.er1 |
| 14765 | cat conftest.err >&5 |
| 14766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14767 | (exit $ac_status); } >/dev/null; then |
| 14768 | if test -s conftest.err; then |
| 14769 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14770 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14771 | else |
| 14772 | ac_cpp_err= |
| 14773 | fi |
| 14774 | else |
| 14775 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14776 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14777 | if test -z "$ac_cpp_err"; then |
| 14778 | ac_header_preproc=yes |
| 14779 | else |
| 14780 | echo "$as_me: failed program was:" >&5 |
| 14781 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14782 | |
| 14783 | ac_header_preproc=no |
| 14784 | fi |
| 14785 | rm -f conftest.err conftest.$ac_ext |
| 14786 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14787 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14788 | |
| 14789 | # So? What about this header? |
| 14790 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14791 | yes:no: ) |
| 14792 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14793 | echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14794 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 14795 | echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} |
| 14796 | ac_header_preproc=yes |
| 14797 | ;; |
| 14798 | no:yes:* ) |
| 14799 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 14800 | echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 14801 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 14802 | echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 14803 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 14804 | echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 14805 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14806 | echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14807 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 14808 | echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 14809 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 14810 | echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 14811 | ( |
| 14812 | cat <<\_ASBOX |
| 14813 | ## ------------------------------------------ ## |
| 14814 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14815 | ## ------------------------------------------ ## |
| 14816 | _ASBOX |
| 14817 | ) | |
| 14818 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14819 | ;; |
| 14820 | esac |
| 14821 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 14822 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 14823 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14825 | else |
| 14826 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 14827 | fi |
| 14828 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 14829 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
| 14830 | |
| 14831 | fi |
| 14832 | if test $ac_cv_header_dlfcn_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14833 | DLL=dlfcn.h |
| 14834 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14835 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14836 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 14837 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 14838 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14840 | fi |
| 14841 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 14842 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14843 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14844 | # Is the header compilable? |
| 14845 | echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 14846 | echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6 |
| 14847 | cat >conftest.$ac_ext <<_ACEOF |
| 14848 | /* confdefs.h. */ |
| 14849 | _ACEOF |
| 14850 | cat confdefs.h >>conftest.$ac_ext |
| 14851 | cat >>conftest.$ac_ext <<_ACEOF |
| 14852 | /* end confdefs.h. */ |
| 14853 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14854 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14855 | _ACEOF |
| 14856 | rm -f conftest.$ac_objext |
| 14857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14858 | (eval $ac_compile) 2>conftest.er1 |
| 14859 | ac_status=$? |
| 14860 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14861 | rm -f conftest.er1 |
| 14862 | cat conftest.err >&5 |
| 14863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14864 | (exit $ac_status); } && |
| 14865 | { ac_try='test -z "$ac_c_werror_flag" |
| 14866 | || test ! -s conftest.err' |
| 14867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14868 | (eval $ac_try) 2>&5 |
| 14869 | ac_status=$? |
| 14870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14871 | (exit $ac_status); }; } && |
| 14872 | { ac_try='test -s conftest.$ac_objext' |
| 14873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14874 | (eval $ac_try) 2>&5 |
| 14875 | ac_status=$? |
| 14876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14877 | (exit $ac_status); }; }; then |
| 14878 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14879 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14880 | echo "$as_me: failed program was:" >&5 |
| 14881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14882 | |
| 14883 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14884 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14886 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14887 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14888 | |
| 14889 | # Is the header present? |
| 14890 | echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 14891 | echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6 |
| 14892 | cat >conftest.$ac_ext <<_ACEOF |
| 14893 | /* confdefs.h. */ |
| 14894 | _ACEOF |
| 14895 | cat confdefs.h >>conftest.$ac_ext |
| 14896 | cat >>conftest.$ac_ext <<_ACEOF |
| 14897 | /* end confdefs.h. */ |
| 14898 | #include <dl.h> |
| 14899 | _ACEOF |
| 14900 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14901 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14902 | ac_status=$? |
| 14903 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14904 | rm -f conftest.er1 |
| 14905 | cat conftest.err >&5 |
| 14906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14907 | (exit $ac_status); } >/dev/null; then |
| 14908 | if test -s conftest.err; then |
| 14909 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14910 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14911 | else |
| 14912 | ac_cpp_err= |
| 14913 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14914 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14915 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14916 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14917 | if test -z "$ac_cpp_err"; then |
| 14918 | ac_header_preproc=yes |
| 14919 | else |
| 14920 | echo "$as_me: failed program was:" >&5 |
| 14921 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14922 | |
| 14923 | ac_header_preproc=no |
| 14924 | fi |
| 14925 | rm -f conftest.err conftest.$ac_ext |
| 14926 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14927 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14928 | |
| 14929 | # So? What about this header? |
| 14930 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14931 | yes:no: ) |
| 14932 | { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14933 | echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14934 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 14935 | echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;} |
| 14936 | ac_header_preproc=yes |
| 14937 | ;; |
| 14938 | no:yes:* ) |
| 14939 | { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 14940 | echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 14941 | { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 14942 | echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 14943 | { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 14944 | echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 14945 | { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14946 | echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14947 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 14948 | echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 14949 | { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 14950 | echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 14951 | ( |
| 14952 | cat <<\_ASBOX |
| 14953 | ## ------------------------------------------ ## |
| 14954 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14955 | ## ------------------------------------------ ## |
| 14956 | _ASBOX |
| 14957 | ) | |
| 14958 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14959 | ;; |
| 14960 | esac |
| 14961 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 14962 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 14963 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14965 | else |
| 14966 | ac_cv_header_dl_h=$ac_header_preproc |
| 14967 | fi |
| 14968 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 14969 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14970 | |
| 14971 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14972 | if test $ac_cv_header_dl_h = yes; then |
| 14973 | DLL=dl.h |
| 14974 | fi |
| 14975 | |
| 14976 | |
| 14977 | fi |
| 14978 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14979 | |
| 14980 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14981 | |
| 14982 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14983 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14984 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14985 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14986 | echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 14987 | echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6 |
| 14988 | cat >conftest.$ac_ext <<_ACEOF |
| 14989 | /* confdefs.h. */ |
| 14990 | _ACEOF |
| 14991 | cat confdefs.h >>conftest.$ac_ext |
| 14992 | cat >>conftest.$ac_ext <<_ACEOF |
| 14993 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14994 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14995 | int |
| 14996 | main () |
| 14997 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14998 | |
| 14999 | extern void* dlopen(); |
| 15000 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15001 | |
| 15002 | ; |
| 15003 | return 0; |
| 15004 | } |
| 15005 | _ACEOF |
| 15006 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15008 | (eval $ac_link) 2>conftest.er1 |
| 15009 | ac_status=$? |
| 15010 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15011 | rm -f conftest.er1 |
| 15012 | cat conftest.err >&5 |
| 15013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15014 | (exit $ac_status); } && |
| 15015 | { ac_try='test -z "$ac_c_werror_flag" |
| 15016 | || test ! -s conftest.err' |
| 15017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15018 | (eval $ac_try) 2>&5 |
| 15019 | ac_status=$? |
| 15020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15021 | (exit $ac_status); }; } && |
| 15022 | { ac_try='test -s conftest$ac_exeext' |
| 15023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15024 | (eval $ac_try) 2>&5 |
| 15025 | ac_status=$? |
| 15026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15027 | (exit $ac_status); }; }; then |
| 15028 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15029 | echo "${ECHO_T}yes" >&6; |
| 15030 | |
| 15031 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15032 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15033 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15034 | |
| 15035 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15036 | echo "$as_me: failed program was:" >&5 |
| 15037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15038 | |
| 15039 | echo "$as_me:$LINENO: result: no" >&5 |
| 15040 | echo "${ECHO_T}no" >&6; |
| 15041 | echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 15042 | echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15043 | olibs=$LIBS |
| 15044 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15045 | cat >conftest.$ac_ext <<_ACEOF |
| 15046 | /* confdefs.h. */ |
| 15047 | _ACEOF |
| 15048 | cat confdefs.h >>conftest.$ac_ext |
| 15049 | cat >>conftest.$ac_ext <<_ACEOF |
| 15050 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15051 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15052 | int |
| 15053 | main () |
| 15054 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15055 | |
| 15056 | extern void* dlopen(); |
| 15057 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15058 | |
| 15059 | ; |
| 15060 | return 0; |
| 15061 | } |
| 15062 | _ACEOF |
| 15063 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15065 | (eval $ac_link) 2>conftest.er1 |
| 15066 | ac_status=$? |
| 15067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15068 | rm -f conftest.er1 |
| 15069 | cat conftest.err >&5 |
| 15070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15071 | (exit $ac_status); } && |
| 15072 | { ac_try='test -z "$ac_c_werror_flag" |
| 15073 | || test ! -s conftest.err' |
| 15074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15075 | (eval $ac_try) 2>&5 |
| 15076 | ac_status=$? |
| 15077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15078 | (exit $ac_status); }; } && |
| 15079 | { ac_try='test -s conftest$ac_exeext' |
| 15080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15081 | (eval $ac_try) 2>&5 |
| 15082 | ac_status=$? |
| 15083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15084 | (exit $ac_status); }; }; then |
| 15085 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15086 | echo "${ECHO_T}yes" >&6; |
| 15087 | |
| 15088 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15089 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15090 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15091 | |
| 15092 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15093 | echo "$as_me: failed program was:" >&5 |
| 15094 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15095 | |
| 15096 | echo "$as_me:$LINENO: result: no" >&5 |
| 15097 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15098 | LIBS=$olibs |
| 15099 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15100 | rm -f conftest.err conftest.$ac_objext \ |
| 15101 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15102 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15103 | rm -f conftest.err conftest.$ac_objext \ |
| 15104 | conftest$ac_exeext conftest.$ac_ext |
| 15105 | echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 15106 | echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6 |
| 15107 | cat >conftest.$ac_ext <<_ACEOF |
| 15108 | /* confdefs.h. */ |
| 15109 | _ACEOF |
| 15110 | cat confdefs.h >>conftest.$ac_ext |
| 15111 | cat >>conftest.$ac_ext <<_ACEOF |
| 15112 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15113 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15114 | int |
| 15115 | main () |
| 15116 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15117 | |
| 15118 | extern void* dlsym(); |
| 15119 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15120 | |
| 15121 | ; |
| 15122 | return 0; |
| 15123 | } |
| 15124 | _ACEOF |
| 15125 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15127 | (eval $ac_link) 2>conftest.er1 |
| 15128 | ac_status=$? |
| 15129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15130 | rm -f conftest.er1 |
| 15131 | cat conftest.err >&5 |
| 15132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15133 | (exit $ac_status); } && |
| 15134 | { ac_try='test -z "$ac_c_werror_flag" |
| 15135 | || test ! -s conftest.err' |
| 15136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15137 | (eval $ac_try) 2>&5 |
| 15138 | ac_status=$? |
| 15139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15140 | (exit $ac_status); }; } && |
| 15141 | { ac_try='test -s conftest$ac_exeext' |
| 15142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15143 | (eval $ac_try) 2>&5 |
| 15144 | ac_status=$? |
| 15145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15146 | (exit $ac_status); }; }; then |
| 15147 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15148 | echo "${ECHO_T}yes" >&6; |
| 15149 | |
| 15150 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15151 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15152 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15153 | |
| 15154 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15155 | echo "$as_me: failed program was:" >&5 |
| 15156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15157 | |
| 15158 | echo "$as_me:$LINENO: result: no" >&5 |
| 15159 | echo "${ECHO_T}no" >&6; |
| 15160 | echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 15161 | echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15162 | olibs=$LIBS |
| 15163 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15164 | cat >conftest.$ac_ext <<_ACEOF |
| 15165 | /* confdefs.h. */ |
| 15166 | _ACEOF |
| 15167 | cat confdefs.h >>conftest.$ac_ext |
| 15168 | cat >>conftest.$ac_ext <<_ACEOF |
| 15169 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15170 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15171 | int |
| 15172 | main () |
| 15173 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15174 | |
| 15175 | extern void* dlsym(); |
| 15176 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15177 | |
| 15178 | ; |
| 15179 | return 0; |
| 15180 | } |
| 15181 | _ACEOF |
| 15182 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15184 | (eval $ac_link) 2>conftest.er1 |
| 15185 | ac_status=$? |
| 15186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15187 | rm -f conftest.er1 |
| 15188 | cat conftest.err >&5 |
| 15189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15190 | (exit $ac_status); } && |
| 15191 | { ac_try='test -z "$ac_c_werror_flag" |
| 15192 | || test ! -s conftest.err' |
| 15193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15194 | (eval $ac_try) 2>&5 |
| 15195 | ac_status=$? |
| 15196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15197 | (exit $ac_status); }; } && |
| 15198 | { ac_try='test -s conftest$ac_exeext' |
| 15199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15200 | (eval $ac_try) 2>&5 |
| 15201 | ac_status=$? |
| 15202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15203 | (exit $ac_status); }; }; then |
| 15204 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15205 | echo "${ECHO_T}yes" >&6; |
| 15206 | |
| 15207 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15208 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15209 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15210 | |
| 15211 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15212 | echo "$as_me: failed program was:" >&5 |
| 15213 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15214 | |
| 15215 | echo "$as_me:$LINENO: result: no" >&5 |
| 15216 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15217 | LIBS=$olibs |
| 15218 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15219 | rm -f conftest.err conftest.$ac_objext \ |
| 15220 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15221 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15222 | rm -f conftest.err conftest.$ac_objext \ |
| 15223 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15224 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15225 | |
| 15226 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15227 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15228 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15229 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15230 | echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 15231 | echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6 |
| 15232 | cat >conftest.$ac_ext <<_ACEOF |
| 15233 | /* confdefs.h. */ |
| 15234 | _ACEOF |
| 15235 | cat confdefs.h >>conftest.$ac_ext |
| 15236 | cat >>conftest.$ac_ext <<_ACEOF |
| 15237 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15238 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15239 | int |
| 15240 | main () |
| 15241 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15242 | |
| 15243 | extern void* shl_load(); |
| 15244 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15245 | |
| 15246 | ; |
| 15247 | return 0; |
| 15248 | } |
| 15249 | _ACEOF |
| 15250 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15252 | (eval $ac_link) 2>conftest.er1 |
| 15253 | ac_status=$? |
| 15254 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15255 | rm -f conftest.er1 |
| 15256 | cat conftest.err >&5 |
| 15257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15258 | (exit $ac_status); } && |
| 15259 | { ac_try='test -z "$ac_c_werror_flag" |
| 15260 | || test ! -s conftest.err' |
| 15261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15262 | (eval $ac_try) 2>&5 |
| 15263 | ac_status=$? |
| 15264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15265 | (exit $ac_status); }; } && |
| 15266 | { ac_try='test -s conftest$ac_exeext' |
| 15267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15268 | (eval $ac_try) 2>&5 |
| 15269 | ac_status=$? |
| 15270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15271 | (exit $ac_status); }; }; then |
| 15272 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15273 | echo "${ECHO_T}yes" >&6; |
| 15274 | |
| 15275 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15276 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15277 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15278 | |
| 15279 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15280 | echo "$as_me: failed program was:" >&5 |
| 15281 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15282 | |
| 15283 | echo "$as_me:$LINENO: result: no" >&5 |
| 15284 | echo "${ECHO_T}no" >&6; |
| 15285 | echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 15286 | echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15287 | olibs=$LIBS |
| 15288 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15289 | cat >conftest.$ac_ext <<_ACEOF |
| 15290 | /* confdefs.h. */ |
| 15291 | _ACEOF |
| 15292 | cat confdefs.h >>conftest.$ac_ext |
| 15293 | cat >>conftest.$ac_ext <<_ACEOF |
| 15294 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15295 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15296 | int |
| 15297 | main () |
| 15298 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15299 | |
| 15300 | extern void* shl_load(); |
| 15301 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15302 | |
| 15303 | ; |
| 15304 | return 0; |
| 15305 | } |
| 15306 | _ACEOF |
| 15307 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15309 | (eval $ac_link) 2>conftest.er1 |
| 15310 | ac_status=$? |
| 15311 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15312 | rm -f conftest.er1 |
| 15313 | cat conftest.err >&5 |
| 15314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15315 | (exit $ac_status); } && |
| 15316 | { ac_try='test -z "$ac_c_werror_flag" |
| 15317 | || test ! -s conftest.err' |
| 15318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15319 | (eval $ac_try) 2>&5 |
| 15320 | ac_status=$? |
| 15321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15322 | (exit $ac_status); }; } && |
| 15323 | { ac_try='test -s conftest$ac_exeext' |
| 15324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15325 | (eval $ac_try) 2>&5 |
| 15326 | ac_status=$? |
| 15327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15328 | (exit $ac_status); }; }; then |
| 15329 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15330 | echo "${ECHO_T}yes" >&6; |
| 15331 | |
| 15332 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15333 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15334 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15335 | |
| 15336 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15337 | echo "$as_me: failed program was:" >&5 |
| 15338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15339 | |
| 15340 | echo "$as_me:$LINENO: result: no" >&5 |
| 15341 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15342 | LIBS=$olibs |
| 15343 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15344 | rm -f conftest.err conftest.$ac_objext \ |
| 15345 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15346 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15347 | rm -f conftest.err conftest.$ac_objext \ |
| 15348 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15349 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15350 | |
| 15351 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15352 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15353 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15354 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15355 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15356 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15357 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15359 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15360 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15361 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15362 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15363 | # Is the header compilable? |
| 15364 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15365 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15366 | cat >conftest.$ac_ext <<_ACEOF |
| 15367 | /* confdefs.h. */ |
| 15368 | _ACEOF |
| 15369 | cat confdefs.h >>conftest.$ac_ext |
| 15370 | cat >>conftest.$ac_ext <<_ACEOF |
| 15371 | /* end confdefs.h. */ |
| 15372 | $ac_includes_default |
| 15373 | #include <$ac_header> |
| 15374 | _ACEOF |
| 15375 | rm -f conftest.$ac_objext |
| 15376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15377 | (eval $ac_compile) 2>conftest.er1 |
| 15378 | ac_status=$? |
| 15379 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15380 | rm -f conftest.er1 |
| 15381 | cat conftest.err >&5 |
| 15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15383 | (exit $ac_status); } && |
| 15384 | { ac_try='test -z "$ac_c_werror_flag" |
| 15385 | || test ! -s conftest.err' |
| 15386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15387 | (eval $ac_try) 2>&5 |
| 15388 | ac_status=$? |
| 15389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15390 | (exit $ac_status); }; } && |
| 15391 | { ac_try='test -s conftest.$ac_objext' |
| 15392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15393 | (eval $ac_try) 2>&5 |
| 15394 | ac_status=$? |
| 15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15396 | (exit $ac_status); }; }; then |
| 15397 | ac_header_compiler=yes |
| 15398 | else |
| 15399 | echo "$as_me: failed program was:" >&5 |
| 15400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15401 | |
| 15402 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15403 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15405 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15406 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15407 | |
| 15408 | # Is the header present? |
| 15409 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15410 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15411 | cat >conftest.$ac_ext <<_ACEOF |
| 15412 | /* confdefs.h. */ |
| 15413 | _ACEOF |
| 15414 | cat confdefs.h >>conftest.$ac_ext |
| 15415 | cat >>conftest.$ac_ext <<_ACEOF |
| 15416 | /* end confdefs.h. */ |
| 15417 | #include <$ac_header> |
| 15418 | _ACEOF |
| 15419 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15420 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15421 | ac_status=$? |
| 15422 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15423 | rm -f conftest.er1 |
| 15424 | cat conftest.err >&5 |
| 15425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15426 | (exit $ac_status); } >/dev/null; then |
| 15427 | if test -s conftest.err; then |
| 15428 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15429 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15430 | else |
| 15431 | ac_cpp_err= |
| 15432 | fi |
| 15433 | else |
| 15434 | ac_cpp_err=yes |
| 15435 | fi |
| 15436 | if test -z "$ac_cpp_err"; then |
| 15437 | ac_header_preproc=yes |
| 15438 | else |
| 15439 | echo "$as_me: failed program was:" >&5 |
| 15440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15441 | |
| 15442 | ac_header_preproc=no |
| 15443 | fi |
| 15444 | rm -f conftest.err conftest.$ac_ext |
| 15445 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15446 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15447 | |
| 15448 | # So? What about this header? |
| 15449 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15450 | yes:no: ) |
| 15451 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15452 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15453 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15454 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15455 | ac_header_preproc=yes |
| 15456 | ;; |
| 15457 | no:yes:* ) |
| 15458 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15459 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15460 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15461 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15462 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15463 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15464 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15465 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15466 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15467 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15468 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15469 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15470 | ( |
| 15471 | cat <<\_ASBOX |
| 15472 | ## ------------------------------------------ ## |
| 15473 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15474 | ## ------------------------------------------ ## |
| 15475 | _ASBOX |
| 15476 | ) | |
| 15477 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15478 | ;; |
| 15479 | esac |
| 15480 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15481 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15482 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15484 | else |
| 15485 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15486 | fi |
| 15487 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15488 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15489 | |
| 15490 | fi |
| 15491 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15492 | cat >>confdefs.h <<_ACEOF |
| 15493 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15494 | _ACEOF |
| 15495 | |
| 15496 | fi |
| 15497 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15498 | done |
| 15499 | |
| 15500 | |
| 15501 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 15502 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 15503 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 15504 | PERL_LIBS="$PERL_LIBS -ldl" |
| 15505 | fi |
| 15506 | fi |
| 15507 | |
| 15508 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 15509 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15510 | echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 15511 | echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6 |
Bram Moolenaar | b90daee | 2006-10-17 09:49:09 +0000 | [diff] [blame] | 15512 | if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15513 | || test "x$features" = "xhuge"; then |
| 15514 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15515 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15516 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15517 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15518 | echo "$as_me:$LINENO: result: no" >&5 |
| 15519 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15520 | fi |
| 15521 | fi |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 15522 | if test "x$MACARCH" = "xboth"; then |
| 15523 | LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 15524 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15525 | |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15526 | echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 15527 | echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6 |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15528 | DEPEND_CFLAGS_FILTER= |
| 15529 | if test "$GCC" = yes; then |
Bram Moolenaar | 2217cae | 2006-03-25 21:55:52 +0000 | [diff] [blame] | 15530 | gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` |
Bram Moolenaar | f740b29 | 2006-02-16 22:11:02 +0000 | [diff] [blame] | 15531 | if test "$gccmajor" -gt "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15532 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
| 15533 | fi |
| 15534 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15535 | if test "$DEPEND_CFLAGS_FILTER" = ""; then |
| 15536 | echo "$as_me:$LINENO: result: no" >&5 |
| 15537 | echo "${ECHO_T}no" >&6 |
| 15538 | else |
| 15539 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15540 | echo "${ECHO_T}yes" >&6 |
| 15541 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15542 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15543 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15544 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 15545 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15546 | # This file is a shell script that caches the results of configure |
| 15547 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15548 | # scripts and configure runs, see configure's option --config-cache. |
| 15549 | # It is not useful on other systems. If it contains results you don't |
| 15550 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15551 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15552 | # config.status only pays attention to the cache file if you give it |
| 15553 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15554 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15555 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15556 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15557 | # following values. |
| 15558 | |
| 15559 | _ACEOF |
| 15560 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15561 | # The following way of writing the cache mishandles newlines in values, |
| 15562 | # but we know of no workaround that is simple, portable, and efficient. |
| 15563 | # So, don't put newlines in cache variables' values. |
| 15564 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15565 | # 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] | 15566 | { |
| 15567 | (set) 2>&1 | |
| 15568 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15569 | *ac_space=\ *) |
| 15570 | # `set' does not quote correctly, so add quotes (double-quote |
| 15571 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15572 | sed -n \ |
| 15573 | "s/'/'\\\\''/g; |
| 15574 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15575 | ;; |
| 15576 | *) |
| 15577 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15578 | sed -n \ |
| 15579 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15580 | ;; |
| 15581 | esac; |
| 15582 | } | |
| 15583 | sed ' |
| 15584 | t clear |
| 15585 | : clear |
| 15586 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15587 | t end |
| 15588 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15589 | : end' >>confcache |
| 15590 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15591 | if test -w $cache_file; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15592 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15593 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15594 | else |
| 15595 | echo "not updating unwritable cache $cache_file" |
| 15596 | fi |
| 15597 | fi |
| 15598 | rm -f confcache |
| 15599 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15600 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15601 | # Let make expand exec_prefix. |
| 15602 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15603 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15604 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15605 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15606 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15607 | # (actually we leave an empty line to preserve line numbers). |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15608 | if test "x$srcdir" = x.; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15609 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15610 | s/:*\$(srcdir):*/:/; |
| 15611 | s/:*\${srcdir}:*/:/; |
| 15612 | s/:*@srcdir@:*/:/; |
| 15613 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15614 | s/:*$//; |
| 15615 | s/^[^=]*=[ ]*$//; |
| 15616 | }' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15617 | fi |
| 15618 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15619 | DEFS=-DHAVE_CONFIG_H |
| 15620 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15621 | ac_libobjs= |
| 15622 | ac_ltlibobjs= |
| 15623 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15624 | # 1. Remove the extension, and $U if already installed. |
| 15625 | ac_i=`echo "$ac_i" | |
| 15626 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 15627 | # 2. Add them. |
| 15628 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 15629 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 15630 | done |
| 15631 | LIBOBJS=$ac_libobjs |
| 15632 | |
| 15633 | LTLIBOBJS=$ac_ltlibobjs |
| 15634 | |
| 15635 | |
| 15636 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15637 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15638 | ac_clean_files_save=$ac_clean_files |
| 15639 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15640 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15641 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15642 | cat >$CONFIG_STATUS <<_ACEOF |
| 15643 | #! $SHELL |
| 15644 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15645 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15646 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15647 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15648 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15649 | debug=false |
| 15650 | ac_cs_recheck=false |
| 15651 | ac_cs_silent=false |
| 15652 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15653 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15654 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15655 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15656 | ## --------------------- ## |
| 15657 | ## M4sh Initialization. ## |
| 15658 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15659 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15660 | # Be Bourne compatible |
| 15661 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15662 | emulate sh |
| 15663 | NULLCMD=: |
| 15664 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15665 | # is contrary to our usage. Disable this feature. |
| 15666 | alias -g '${1+"$@"}'='"$@"' |
| 15667 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 15668 | set -o posix |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15669 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15670 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15671 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15672 | # Support unset when possible. |
| 15673 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15674 | as_unset=unset |
| 15675 | else |
| 15676 | as_unset=false |
| 15677 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15678 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15679 | |
| 15680 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15681 | $as_unset ENV MAIL MAILPATH |
| 15682 | PS1='$ ' |
| 15683 | PS2='> ' |
| 15684 | PS4='+ ' |
| 15685 | |
| 15686 | # NLS nuisances. |
| 15687 | for as_var in \ |
| 15688 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15689 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15690 | LC_TELEPHONE LC_TIME |
| 15691 | do |
| 15692 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15693 | eval $as_var=C; export $as_var |
| 15694 | else |
| 15695 | $as_unset $as_var |
| 15696 | fi |
| 15697 | done |
| 15698 | |
| 15699 | # Required to use basename. |
| 15700 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15701 | as_expr=expr |
| 15702 | else |
| 15703 | as_expr=false |
| 15704 | fi |
| 15705 | |
| 15706 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 15707 | as_basename=basename |
| 15708 | else |
| 15709 | as_basename=false |
| 15710 | fi |
| 15711 | |
| 15712 | |
| 15713 | # Name of the executable. |
| 15714 | as_me=`$as_basename "$0" || |
| 15715 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15716 | X"$0" : 'X\(//\)$' \| \ |
| 15717 | X"$0" : 'X\(/\)$' \| \ |
| 15718 | . : '\(.\)' 2>/dev/null || |
| 15719 | echo X/"$0" | |
| 15720 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 15721 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 15722 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 15723 | s/.*/./; q'` |
| 15724 | |
| 15725 | |
| 15726 | # PATH needs CR, and LINENO needs CR and PATH. |
| 15727 | # Avoid depending upon Character Ranges. |
| 15728 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15729 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15730 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15731 | as_cr_digits='0123456789' |
| 15732 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15733 | |
| 15734 | # The user is always right. |
| 15735 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15736 | echo "#! /bin/sh" >conf$$.sh |
| 15737 | echo "exit 0" >>conf$$.sh |
| 15738 | chmod +x conf$$.sh |
| 15739 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15740 | PATH_SEPARATOR=';' |
| 15741 | else |
| 15742 | PATH_SEPARATOR=: |
| 15743 | fi |
| 15744 | rm -f conf$$.sh |
| 15745 | fi |
| 15746 | |
| 15747 | |
| 15748 | as_lineno_1=$LINENO |
| 15749 | as_lineno_2=$LINENO |
| 15750 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15751 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15752 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 15753 | # Find who we are. Look in the path if we contain no path at all |
| 15754 | # relative or not. |
| 15755 | case $0 in |
| 15756 | *[\\/]* ) as_myself=$0 ;; |
| 15757 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15758 | for as_dir in $PATH |
| 15759 | do |
| 15760 | IFS=$as_save_IFS |
| 15761 | test -z "$as_dir" && as_dir=. |
| 15762 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15763 | done |
| 15764 | |
| 15765 | ;; |
| 15766 | esac |
| 15767 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15768 | # in which case we are not to be found in the path. |
| 15769 | if test "x$as_myself" = x; then |
| 15770 | as_myself=$0 |
| 15771 | fi |
| 15772 | if test ! -f "$as_myself"; then |
| 15773 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 15774 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 15775 | { (exit 1); exit 1; }; } |
| 15776 | fi |
| 15777 | case $CONFIG_SHELL in |
| 15778 | '') |
| 15779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15780 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 15781 | do |
| 15782 | IFS=$as_save_IFS |
| 15783 | test -z "$as_dir" && as_dir=. |
| 15784 | for as_base in sh bash ksh sh5; do |
| 15785 | case $as_dir in |
| 15786 | /*) |
| 15787 | if ("$as_dir/$as_base" -c ' |
| 15788 | as_lineno_1=$LINENO |
| 15789 | as_lineno_2=$LINENO |
| 15790 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15791 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15792 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 15793 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 15794 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 15795 | CONFIG_SHELL=$as_dir/$as_base |
| 15796 | export CONFIG_SHELL |
| 15797 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 15798 | fi;; |
| 15799 | esac |
| 15800 | done |
| 15801 | done |
| 15802 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15803 | esac |
| 15804 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15805 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15806 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 15807 | # line-number line before each line; the second 'sed' does the real |
| 15808 | # work. The second script uses 'N' to pair each line-number line |
| 15809 | # with the numbered line, and appends trailing '-' during |
| 15810 | # substitution so that $LINENO is not a special case at line end. |
| 15811 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 15812 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 15813 | sed '=' <$as_myself | |
| 15814 | sed ' |
| 15815 | N |
| 15816 | s,$,-, |
| 15817 | : loop |
| 15818 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 15819 | t loop |
| 15820 | s,-$,, |
| 15821 | s,^['$as_cr_digits']*\n,, |
| 15822 | ' >$as_me.lineno && |
| 15823 | chmod +x $as_me.lineno || |
| 15824 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 15825 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 15826 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15827 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15828 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15829 | # (the dirname of $[0] is not the place where we might find the |
| 15830 | # original and so on. Autoconf is especially sensible to this). |
| 15831 | . ./$as_me.lineno |
| 15832 | # Exit status is that of the last command. |
| 15833 | exit |
| 15834 | } |
| 15835 | |
| 15836 | |
| 15837 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 15838 | *c*,-n*) ECHO_N= ECHO_C=' |
| 15839 | ' ECHO_T=' ' ;; |
| 15840 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 15841 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 15842 | esac |
| 15843 | |
| 15844 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15845 | as_expr=expr |
| 15846 | else |
| 15847 | as_expr=false |
| 15848 | fi |
| 15849 | |
| 15850 | rm -f conf$$ conf$$.exe conf$$.file |
| 15851 | echo >conf$$.file |
| 15852 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15853 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 15854 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 15855 | if test -f conf$$.exe; then |
| 15856 | # Don't use ln at all; we don't have any links |
| 15857 | as_ln_s='cp -p' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15858 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15859 | as_ln_s='ln -s' |
| 15860 | fi |
| 15861 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15862 | as_ln_s=ln |
| 15863 | else |
| 15864 | as_ln_s='cp -p' |
| 15865 | fi |
| 15866 | rm -f conf$$ conf$$.exe conf$$.file |
| 15867 | |
| 15868 | if mkdir -p . 2>/dev/null; then |
| 15869 | as_mkdir_p=: |
| 15870 | else |
| 15871 | test -d ./-p && rmdir ./-p |
| 15872 | as_mkdir_p=false |
| 15873 | fi |
| 15874 | |
| 15875 | as_executable_p="test -f" |
| 15876 | |
| 15877 | # Sed expression to map a string onto a valid CPP name. |
| 15878 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15879 | |
| 15880 | # Sed expression to map a string onto a valid variable name. |
| 15881 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15882 | |
| 15883 | |
| 15884 | # IFS |
| 15885 | # We need space, tab and new line, in precisely that order. |
| 15886 | as_nl=' |
| 15887 | ' |
| 15888 | IFS=" $as_nl" |
| 15889 | |
| 15890 | # CDPATH. |
| 15891 | $as_unset CDPATH |
| 15892 | |
| 15893 | exec 6>&1 |
| 15894 | |
| 15895 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 15896 | # report actual input values of CONFIG_FILES etc. instead of their |
| 15897 | # values after options handling. Logging --version etc. is OK. |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 15898 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15899 | { |
| 15900 | echo |
| 15901 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15902 | ## Running $as_me. ## |
| 15903 | _ASBOX |
| 15904 | } >&5 |
| 15905 | cat >&5 <<_CSEOF |
| 15906 | |
| 15907 | This file was extended by $as_me, which was |
| 15908 | generated by GNU Autoconf 2.59. Invocation command line was |
| 15909 | |
| 15910 | CONFIG_FILES = $CONFIG_FILES |
| 15911 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15912 | CONFIG_LINKS = $CONFIG_LINKS |
| 15913 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15914 | $ $0 $@ |
| 15915 | |
| 15916 | _CSEOF |
| 15917 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 15918 | echo >&5 |
| 15919 | _ACEOF |
| 15920 | |
| 15921 | # Files that config.status was made for. |
| 15922 | if test -n "$ac_config_files"; then |
| 15923 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 15924 | fi |
| 15925 | |
| 15926 | if test -n "$ac_config_headers"; then |
| 15927 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 15928 | fi |
| 15929 | |
| 15930 | if test -n "$ac_config_links"; then |
| 15931 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 15932 | fi |
| 15933 | |
| 15934 | if test -n "$ac_config_commands"; then |
| 15935 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 15936 | fi |
| 15937 | |
| 15938 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15939 | |
| 15940 | ac_cs_usage="\ |
| 15941 | \`$as_me' instantiates files from templates according to the |
| 15942 | current configuration. |
| 15943 | |
| 15944 | Usage: $0 [OPTIONS] [FILE]... |
| 15945 | |
| 15946 | -h, --help print this help, then exit |
| 15947 | -V, --version print version number, then exit |
| 15948 | -q, --quiet do not print progress messages |
| 15949 | -d, --debug don't remove temporary files |
| 15950 | --recheck update $as_me by reconfiguring in the same conditions |
| 15951 | --file=FILE[:TEMPLATE] |
| 15952 | instantiate the configuration file FILE |
| 15953 | --header=FILE[:TEMPLATE] |
| 15954 | instantiate the configuration header FILE |
| 15955 | |
| 15956 | Configuration files: |
| 15957 | $config_files |
| 15958 | |
| 15959 | Configuration headers: |
| 15960 | $config_headers |
| 15961 | |
| 15962 | Report bugs to <bug-autoconf@gnu.org>." |
| 15963 | _ACEOF |
| 15964 | |
| 15965 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15966 | ac_cs_version="\\ |
| 15967 | config.status |
| 15968 | configured by $0, generated by GNU Autoconf 2.59, |
| 15969 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 15970 | |
| 15971 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 15972 | This config.status script is free software; the Free Software Foundation |
| 15973 | gives unlimited permission to copy, distribute and modify it." |
| 15974 | srcdir=$srcdir |
| 15975 | _ACEOF |
| 15976 | |
| 15977 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15978 | # If no file are specified by the user, then we need to provide default |
| 15979 | # value. By we need to know if files were specified by the user. |
| 15980 | ac_need_defaults=: |
| 15981 | while test $# != 0 |
| 15982 | do |
| 15983 | case $1 in |
| 15984 | --*=*) |
| 15985 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 15986 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 15987 | ac_shift=: |
| 15988 | ;; |
| 15989 | -*) |
| 15990 | ac_option=$1 |
| 15991 | ac_optarg=$2 |
| 15992 | ac_shift=shift |
| 15993 | ;; |
| 15994 | *) # This is not an option, so the user has probably given explicit |
| 15995 | # arguments. |
| 15996 | ac_option=$1 |
| 15997 | ac_need_defaults=false;; |
| 15998 | esac |
| 15999 | |
| 16000 | case $ac_option in |
| 16001 | # Handling of the options. |
| 16002 | _ACEOF |
| 16003 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16004 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16005 | ac_cs_recheck=: ;; |
| 16006 | --version | --vers* | -V ) |
| 16007 | echo "$ac_cs_version"; exit 0 ;; |
| 16008 | --he | --h) |
| 16009 | # Conflict between --help and --header |
| 16010 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16011 | Try \`$0 --help' for more information." >&5 |
| 16012 | echo "$as_me: error: ambiguous option: $1 |
| 16013 | Try \`$0 --help' for more information." >&2;} |
| 16014 | { (exit 1); exit 1; }; };; |
| 16015 | --help | --hel | -h ) |
| 16016 | echo "$ac_cs_usage"; exit 0 ;; |
| 16017 | --debug | --d* | -d ) |
| 16018 | debug=: ;; |
| 16019 | --file | --fil | --fi | --f ) |
| 16020 | $ac_shift |
| 16021 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 16022 | ac_need_defaults=false;; |
| 16023 | --header | --heade | --head | --hea ) |
| 16024 | $ac_shift |
| 16025 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 16026 | ac_need_defaults=false;; |
| 16027 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16028 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16029 | ac_cs_silent=: ;; |
| 16030 | |
| 16031 | # This is an error. |
| 16032 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16033 | Try \`$0 --help' for more information." >&5 |
| 16034 | echo "$as_me: error: unrecognized option: $1 |
| 16035 | Try \`$0 --help' for more information." >&2;} |
| 16036 | { (exit 1); exit 1; }; } ;; |
| 16037 | |
| 16038 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16039 | |
| 16040 | esac |
| 16041 | shift |
| 16042 | done |
| 16043 | |
| 16044 | ac_configure_extra_args= |
| 16045 | |
| 16046 | if $ac_cs_silent; then |
| 16047 | exec 6>/dev/null |
| 16048 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16049 | fi |
| 16050 | |
| 16051 | _ACEOF |
| 16052 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16053 | if \$ac_cs_recheck; then |
| 16054 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 16055 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 16056 | fi |
| 16057 | |
| 16058 | _ACEOF |
| 16059 | |
| 16060 | |
| 16061 | |
| 16062 | |
| 16063 | |
| 16064 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16065 | for ac_config_target in $ac_config_targets |
| 16066 | do |
| 16067 | case "$ac_config_target" in |
| 16068 | # Handling of arguments. |
| 16069 | "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 16070 | "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 16071 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16072 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16073 | { (exit 1); exit 1; }; };; |
| 16074 | esac |
| 16075 | done |
| 16076 | |
| 16077 | # If the user did not use the arguments to specify the items to instantiate, |
| 16078 | # then the envvar interface is used. Set only those that are not. |
| 16079 | # We use the long form for the default assignment because of an extremely |
| 16080 | # bizarre bug on SunOS 4.1.3. |
| 16081 | if $ac_need_defaults; then |
| 16082 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16083 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16084 | fi |
| 16085 | |
| 16086 | # Have a temporary directory for convenience. Make it in the build tree |
| 16087 | # simply because there is no reason to put it here, and in addition, |
| 16088 | # creating and moving files from /tmp can sometimes cause problems. |
| 16089 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16090 | $debug || |
| 16091 | { |
| 16092 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16093 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16094 | } |
| 16095 | |
| 16096 | # Create a (secure) tmp directory for tmp files. |
| 16097 | |
| 16098 | { |
| 16099 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 16100 | test -n "$tmp" && test -d "$tmp" |
| 16101 | } || |
| 16102 | { |
| 16103 | tmp=./confstat$$-$RANDOM |
| 16104 | (umask 077 && mkdir $tmp) |
| 16105 | } || |
| 16106 | { |
| 16107 | echo "$me: cannot create a temporary directory in ." >&2 |
| 16108 | { (exit 1); exit 1; } |
| 16109 | } |
| 16110 | |
| 16111 | _ACEOF |
| 16112 | |
| 16113 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16114 | |
| 16115 | # |
| 16116 | # CONFIG_FILES section. |
| 16117 | # |
| 16118 | |
| 16119 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16120 | # This happens for instance when ./config.status config.h |
| 16121 | if test -n "\$CONFIG_FILES"; then |
| 16122 | # Protect against being on the right side of a sed subst in config.status. |
| 16123 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16124 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16125 | s,@SHELL@,$SHELL,;t t |
| 16126 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16127 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16128 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16129 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16130 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16131 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16132 | s,@exec_prefix@,$exec_prefix,;t t |
| 16133 | s,@prefix@,$prefix,;t t |
| 16134 | s,@program_transform_name@,$program_transform_name,;t t |
| 16135 | s,@bindir@,$bindir,;t t |
| 16136 | s,@sbindir@,$sbindir,;t t |
| 16137 | s,@libexecdir@,$libexecdir,;t t |
| 16138 | s,@datadir@,$datadir,;t t |
| 16139 | s,@sysconfdir@,$sysconfdir,;t t |
| 16140 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16141 | s,@localstatedir@,$localstatedir,;t t |
| 16142 | s,@libdir@,$libdir,;t t |
| 16143 | s,@includedir@,$includedir,;t t |
| 16144 | s,@oldincludedir@,$oldincludedir,;t t |
| 16145 | s,@infodir@,$infodir,;t t |
| 16146 | s,@mandir@,$mandir,;t t |
| 16147 | s,@build_alias@,$build_alias,;t t |
| 16148 | s,@host_alias@,$host_alias,;t t |
| 16149 | s,@target_alias@,$target_alias,;t t |
| 16150 | s,@DEFS@,$DEFS,;t t |
| 16151 | s,@ECHO_C@,$ECHO_C,;t t |
| 16152 | s,@ECHO_N@,$ECHO_N,;t t |
| 16153 | s,@ECHO_T@,$ECHO_T,;t t |
| 16154 | s,@LIBS@,$LIBS,;t t |
| 16155 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 16156 | s,@CC@,$CC,;t t |
| 16157 | s,@CFLAGS@,$CFLAGS,;t t |
| 16158 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16159 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16160 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16161 | s,@EXEEXT@,$EXEEXT,;t t |
| 16162 | s,@OBJEXT@,$OBJEXT,;t t |
| 16163 | s,@CPP@,$CPP,;t t |
| 16164 | s,@EGREP@,$EGREP,;t t |
| 16165 | s,@AWK@,$AWK,;t t |
| 16166 | s,@STRIP@,$STRIP,;t t |
| 16167 | s,@CPP_MM@,$CPP_MM,;t t |
| 16168 | s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t |
| 16169 | s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t |
| 16170 | s,@VIMNAME@,$VIMNAME,;t t |
| 16171 | s,@EXNAME@,$EXNAME,;t t |
| 16172 | s,@VIEWNAME@,$VIEWNAME,;t t |
| 16173 | s,@line_break@,$line_break,;t t |
| 16174 | s,@dovimdiff@,$dovimdiff,;t t |
| 16175 | s,@dogvimdiff@,$dogvimdiff,;t t |
| 16176 | s,@compiledby@,$compiledby,;t t |
| 16177 | s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t |
| 16178 | s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t |
| 16179 | s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t |
| 16180 | s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t |
| 16181 | s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t |
| 16182 | s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t |
| 16183 | s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t |
| 16184 | s,@vi_cv_perllib@,$vi_cv_perllib,;t t |
| 16185 | s,@shrpenv@,$shrpenv,;t t |
| 16186 | s,@PERL_SRC@,$PERL_SRC,;t t |
| 16187 | s,@PERL_OBJ@,$PERL_OBJ,;t t |
| 16188 | s,@PERL_PRO@,$PERL_PRO,;t t |
| 16189 | s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t |
| 16190 | s,@PERL_LIBS@,$PERL_LIBS,;t t |
| 16191 | s,@vi_cv_path_python@,$vi_cv_path_python,;t t |
| 16192 | s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t |
| 16193 | s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t |
| 16194 | s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t |
| 16195 | s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t |
| 16196 | s,@PYTHON_SRC@,$PYTHON_SRC,;t t |
| 16197 | s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t |
| 16198 | s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t |
| 16199 | s,@TCL_SRC@,$TCL_SRC,;t t |
| 16200 | s,@TCL_OBJ@,$TCL_OBJ,;t t |
| 16201 | s,@TCL_PRO@,$TCL_PRO,;t t |
| 16202 | s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t |
| 16203 | s,@TCL_LIBS@,$TCL_LIBS,;t t |
| 16204 | s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t |
| 16205 | s,@RUBY_SRC@,$RUBY_SRC,;t t |
| 16206 | s,@RUBY_OBJ@,$RUBY_OBJ,;t t |
| 16207 | s,@RUBY_PRO@,$RUBY_PRO,;t t |
| 16208 | s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t |
| 16209 | s,@RUBY_LIBS@,$RUBY_LIBS,;t t |
| 16210 | s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t |
| 16211 | s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t |
| 16212 | s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t |
| 16213 | s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t |
| 16214 | s,@SNIFF_SRC@,$SNIFF_SRC,;t t |
| 16215 | s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t |
| 16216 | s,@xmkmfpath@,$xmkmfpath,;t t |
| 16217 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 16218 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 16219 | s,@X_LIBS@,$X_LIBS,;t t |
| 16220 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 16221 | s,@X_LIB@,$X_LIB,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16222 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t |
| 16223 | s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t |
| 16224 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
| 16225 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
| 16226 | s,@GTK_LIBS@,$GTK_LIBS,;t t |
| 16227 | s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t |
| 16228 | s,@GNOME_LIBS@,$GNOME_LIBS,;t t |
| 16229 | s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t |
| 16230 | s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t |
| 16231 | s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t |
| 16232 | s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t |
| 16233 | s,@NARROW_PROTO@,$NARROW_PROTO,;t t |
| 16234 | s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t |
| 16235 | s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t |
| 16236 | s,@GUITYPE@,$GUITYPE,;t t |
| 16237 | s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t |
| 16238 | s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t |
| 16239 | s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t |
| 16240 | s,@TAGPRG@,$TAGPRG,;t t |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 16241 | s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t |
| 16242 | s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16243 | s,@MSGFMT@,$MSGFMT,;t t |
| 16244 | s,@MAKEMO@,$MAKEMO,;t t |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16245 | s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16246 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16247 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 16248 | CEOF |
| 16249 | |
| 16250 | _ACEOF |
| 16251 | |
| 16252 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16253 | # Split the substitutions into bite-sized pieces for seds with |
| 16254 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16255 | ac_max_sed_lines=48 |
| 16256 | ac_sed_frag=1 # Number of current file. |
| 16257 | ac_beg=1 # First line for current file. |
| 16258 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16259 | ac_more_lines=: |
| 16260 | ac_sed_cmds= |
| 16261 | while $ac_more_lines; do |
| 16262 | if test $ac_beg -gt 1; then |
| 16263 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16264 | else |
| 16265 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16266 | fi |
| 16267 | if test ! -s $tmp/subs.frag; then |
| 16268 | ac_more_lines=false |
| 16269 | else |
| 16270 | # The purpose of the label and of the branching condition is to |
| 16271 | # speed up the sed processing (if there are no `@' at all, there |
| 16272 | # is no need to browse any of the substitutions). |
| 16273 | # These are the two extra sed commands mentioned above. |
| 16274 | (echo ':t |
| 16275 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16276 | if test -z "$ac_sed_cmds"; then |
| 16277 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16278 | else |
| 16279 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16280 | fi |
| 16281 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16282 | ac_beg=$ac_end |
| 16283 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16284 | fi |
| 16285 | done |
| 16286 | if test -z "$ac_sed_cmds"; then |
| 16287 | ac_sed_cmds=cat |
| 16288 | fi |
| 16289 | fi # test -n "$CONFIG_FILES" |
| 16290 | |
| 16291 | _ACEOF |
| 16292 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16293 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16294 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16295 | case $ac_file in |
| 16296 | - | *:- | *:-:* ) # input from stdin |
| 16297 | cat >$tmp/stdin |
| 16298 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16299 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16300 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16301 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16302 | * ) ac_file_in=$ac_file.in ;; |
| 16303 | esac |
| 16304 | |
| 16305 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16306 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16307 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16308 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16309 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16310 | X"$ac_file" : 'X\(/\)' \| \ |
| 16311 | . : '\(.\)' 2>/dev/null || |
| 16312 | echo X"$ac_file" | |
| 16313 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16314 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16315 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16316 | /^X\(\/\).*/{ s//\1/; q; } |
| 16317 | s/.*/./; q'` |
| 16318 | { if $as_mkdir_p; then |
| 16319 | mkdir -p "$ac_dir" |
| 16320 | else |
| 16321 | as_dir="$ac_dir" |
| 16322 | as_dirs= |
| 16323 | while test ! -d "$as_dir"; do |
| 16324 | as_dirs="$as_dir $as_dirs" |
| 16325 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16326 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16327 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16328 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16329 | X"$as_dir" : 'X\(/\)' \| \ |
| 16330 | . : '\(.\)' 2>/dev/null || |
| 16331 | echo X"$as_dir" | |
| 16332 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16333 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16334 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16335 | /^X\(\/\).*/{ s//\1/; q; } |
| 16336 | s/.*/./; q'` |
| 16337 | done |
| 16338 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16339 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16340 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16341 | { (exit 1); exit 1; }; }; } |
| 16342 | |
| 16343 | ac_builddir=. |
| 16344 | |
| 16345 | if test "$ac_dir" != .; then |
| 16346 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16347 | # A "../" for each directory in $ac_dir_suffix. |
| 16348 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16349 | else |
| 16350 | ac_dir_suffix= ac_top_builddir= |
| 16351 | fi |
| 16352 | |
| 16353 | case $srcdir in |
| 16354 | .) # No --srcdir option. We are building in place. |
| 16355 | ac_srcdir=. |
| 16356 | if test -z "$ac_top_builddir"; then |
| 16357 | ac_top_srcdir=. |
| 16358 | else |
| 16359 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16360 | fi ;; |
| 16361 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16362 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16363 | ac_top_srcdir=$srcdir ;; |
| 16364 | *) # Relative path. |
| 16365 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16366 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16367 | esac |
| 16368 | |
| 16369 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 16370 | # the directories may not exist. |
| 16371 | case `pwd` in |
| 16372 | .) ac_abs_builddir="$ac_dir";; |
| 16373 | *) |
| 16374 | case "$ac_dir" in |
| 16375 | .) ac_abs_builddir=`pwd`;; |
| 16376 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 16377 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 16378 | esac;; |
| 16379 | esac |
| 16380 | case $ac_abs_builddir in |
| 16381 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16382 | *) |
| 16383 | case ${ac_top_builddir}. in |
| 16384 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 16385 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16386 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 16387 | esac;; |
| 16388 | esac |
| 16389 | case $ac_abs_builddir in |
| 16390 | .) ac_abs_srcdir=$ac_srcdir;; |
| 16391 | *) |
| 16392 | case $ac_srcdir in |
| 16393 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 16394 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 16395 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 16396 | esac;; |
| 16397 | esac |
| 16398 | case $ac_abs_builddir in |
| 16399 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16400 | *) |
| 16401 | case $ac_top_srcdir in |
| 16402 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 16403 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16404 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 16405 | esac;; |
| 16406 | esac |
| 16407 | |
| 16408 | |
| 16409 | |
| 16410 | if test x"$ac_file" != x-; then |
| 16411 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16412 | echo "$as_me: creating $ac_file" >&6;} |
| 16413 | rm -f "$ac_file" |
| 16414 | fi |
| 16415 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16416 | # use $as_me), people would be surprised to read: |
| 16417 | # /* config.h. Generated by config.status. */ |
| 16418 | if test x"$ac_file" = x-; then |
| 16419 | configure_input= |
| 16420 | else |
| 16421 | configure_input="$ac_file. " |
| 16422 | fi |
| 16423 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16424 | sed 's,.*/,,'` by configure." |
| 16425 | |
| 16426 | # First look for the input files in the build tree, otherwise in the |
| 16427 | # src tree. |
| 16428 | ac_file_inputs=`IFS=: |
| 16429 | for f in $ac_file_in; do |
| 16430 | case $f in |
| 16431 | -) echo $tmp/stdin ;; |
| 16432 | [\\/$]*) |
| 16433 | # Absolute (can't be DOS-style, as IFS=:) |
| 16434 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16435 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16436 | { (exit 1); exit 1; }; } |
| 16437 | echo "$f";; |
| 16438 | *) # Relative |
| 16439 | if test -f "$f"; then |
| 16440 | # Build tree |
| 16441 | echo "$f" |
| 16442 | elif test -f "$srcdir/$f"; then |
| 16443 | # Source tree |
| 16444 | echo "$srcdir/$f" |
| 16445 | else |
| 16446 | # /dev/null tree |
| 16447 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16448 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16449 | { (exit 1); exit 1; }; } |
| 16450 | fi;; |
| 16451 | esac |
| 16452 | done` || { (exit 1); exit 1; } |
| 16453 | _ACEOF |
| 16454 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16455 | sed "$ac_vpsub |
| 16456 | $extrasub |
| 16457 | _ACEOF |
| 16458 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16459 | :t |
| 16460 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16461 | s,@configure_input@,$configure_input,;t t |
| 16462 | s,@srcdir@,$ac_srcdir,;t t |
| 16463 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16464 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16465 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16466 | s,@builddir@,$ac_builddir,;t t |
| 16467 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16468 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16469 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16470 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16471 | rm -f $tmp/stdin |
| 16472 | if test x"$ac_file" != x-; then |
| 16473 | mv $tmp/out $ac_file |
| 16474 | else |
| 16475 | cat $tmp/out |
| 16476 | rm -f $tmp/out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16477 | fi |
| 16478 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16479 | done |
| 16480 | _ACEOF |
| 16481 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16482 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16483 | # |
| 16484 | # CONFIG_HEADER section. |
| 16485 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16486 | |
| 16487 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16488 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 16489 | # |
| 16490 | # ac_d sets the value in "#define NAME VALUE" lines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16491 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16492 | ac_dB='[ ].*$,\1#\2' |
| 16493 | ac_dC=' ' |
| 16494 | ac_dD=',;t' |
| 16495 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16496 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16497 | ac_uB='$,\1#\2define\3' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16498 | ac_uC=' ' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16499 | ac_uD=',;t' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16500 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16501 | 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] | 16502 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16503 | case $ac_file in |
| 16504 | - | *:- | *:-:* ) # input from stdin |
| 16505 | cat >$tmp/stdin |
| 16506 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16507 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16508 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16509 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16510 | * ) ac_file_in=$ac_file.in ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16511 | esac |
| 16512 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16513 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16514 | echo "$as_me: creating $ac_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16515 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16516 | # First look for the input files in the build tree, otherwise in the |
| 16517 | # src tree. |
| 16518 | ac_file_inputs=`IFS=: |
| 16519 | for f in $ac_file_in; do |
| 16520 | case $f in |
| 16521 | -) echo $tmp/stdin ;; |
| 16522 | [\\/$]*) |
| 16523 | # Absolute (can't be DOS-style, as IFS=:) |
| 16524 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16525 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16526 | { (exit 1); exit 1; }; } |
| 16527 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 16528 | echo "$f";; |
| 16529 | *) # Relative |
| 16530 | if test -f "$f"; then |
| 16531 | # Build tree |
| 16532 | echo "$f" |
| 16533 | elif test -f "$srcdir/$f"; then |
| 16534 | # Source tree |
| 16535 | echo "$srcdir/$f" |
| 16536 | else |
| 16537 | # /dev/null tree |
| 16538 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16539 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16540 | { (exit 1); exit 1; }; } |
| 16541 | fi;; |
| 16542 | esac |
| 16543 | done` || { (exit 1); exit 1; } |
| 16544 | # Remove the trailing spaces. |
| 16545 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16546 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16547 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16548 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16549 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16550 | # `conftest.undefs', that substitutes the proper values into |
| 16551 | # config.h.in to produce config.h. The first handles `#define' |
| 16552 | # templates, and the second `#undef' templates. |
| 16553 | # And first: Protect against being on the right side of a sed subst in |
| 16554 | # config.status. Protect against being in an unquoted here document |
| 16555 | # in config.status. |
| 16556 | rm -f conftest.defines conftest.undefs |
| 16557 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16558 | # Putting comments in sed scripts is not portable. |
| 16559 | # |
| 16560 | # `end' is used to avoid that the second main sed command (meant for |
| 16561 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16562 | # See the Autoconf documentation for `clear'. |
| 16563 | cat >confdef2sed.sed <<\_ACEOF |
| 16564 | s/[\\&,]/\\&/g |
| 16565 | s,[\\$`],\\&,g |
| 16566 | t clear |
| 16567 | : clear |
| 16568 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16569 | t end |
| 16570 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16571 | : end |
| 16572 | _ACEOF |
| 16573 | # If some macros were called several times there might be several times |
| 16574 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16575 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16576 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16577 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16578 | rm -f confdef2sed.sed |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16579 | |
| 16580 | # This sed command replaces #undef with comments. This is necessary, for |
| 16581 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16582 | # on some systems where configure will not decide to define it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16583 | cat >>conftest.undefs <<\_ACEOF |
| 16584 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16585 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16586 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16587 | # Break up conftest.defines because some shells have a limit on the size |
| 16588 | # of here documents, and old seds have small limits too (100 cmds). |
| 16589 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16590 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16591 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16592 | echo ' :' >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16593 | rm -f conftest.tail |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16594 | while grep . conftest.defines >/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16595 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16596 | # Write a limited-size here document to $tmp/defines.sed. |
| 16597 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16598 | # Speed up: don't consider the non `#define' lines. |
| 16599 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16600 | # Work around the forget-to-reset-the-flag bug. |
| 16601 | echo 't clr' >>$CONFIG_STATUS |
| 16602 | echo ': clr' >>$CONFIG_STATUS |
| 16603 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16604 | echo 'CEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16605 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16606 | rm -f $tmp/in |
| 16607 | mv $tmp/out $tmp/in |
| 16608 | ' >>$CONFIG_STATUS |
| 16609 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16610 | rm -f conftest.defines |
| 16611 | mv conftest.tail conftest.defines |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16612 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16613 | rm -f conftest.defines |
| 16614 | echo ' fi # grep' >>$CONFIG_STATUS |
| 16615 | echo >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16616 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16617 | # Break up conftest.undefs because some shells have a limit on the size |
| 16618 | # of here documents, and old seds have small limits too (100 cmds). |
| 16619 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16620 | rm -f conftest.tail |
| 16621 | while grep . conftest.undefs >/dev/null |
| 16622 | do |
| 16623 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16624 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16625 | # Speed up: don't consider the non `#undef' |
| 16626 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16627 | # Work around the forget-to-reset-the-flag bug. |
| 16628 | echo 't clr' >>$CONFIG_STATUS |
| 16629 | echo ': clr' >>$CONFIG_STATUS |
| 16630 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16631 | echo 'CEOF |
| 16632 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16633 | rm -f $tmp/in |
| 16634 | mv $tmp/out $tmp/in |
| 16635 | ' >>$CONFIG_STATUS |
| 16636 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16637 | rm -f conftest.undefs |
| 16638 | mv conftest.tail conftest.undefs |
| 16639 | done |
| 16640 | rm -f conftest.undefs |
| 16641 | |
| 16642 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16643 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16644 | # use $as_me), people would be surprised to read: |
| 16645 | # /* config.h. Generated by config.status. */ |
| 16646 | if test x"$ac_file" = x-; then |
| 16647 | echo "/* Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16648 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16649 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16650 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16651 | cat $tmp/in >>$tmp/config.h |
| 16652 | rm -f $tmp/in |
| 16653 | if test x"$ac_file" != x-; then |
| 16654 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 16655 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16656 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16657 | else |
| 16658 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16659 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16660 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16661 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16662 | X"$ac_file" : 'X\(/\)' \| \ |
| 16663 | . : '\(.\)' 2>/dev/null || |
| 16664 | echo X"$ac_file" | |
| 16665 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16666 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16667 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16668 | /^X\(\/\).*/{ s//\1/; q; } |
| 16669 | s/.*/./; q'` |
| 16670 | { if $as_mkdir_p; then |
| 16671 | mkdir -p "$ac_dir" |
| 16672 | else |
| 16673 | as_dir="$ac_dir" |
| 16674 | as_dirs= |
| 16675 | while test ! -d "$as_dir"; do |
| 16676 | as_dirs="$as_dir $as_dirs" |
| 16677 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16678 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16679 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16680 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16681 | X"$as_dir" : 'X\(/\)' \| \ |
| 16682 | . : '\(.\)' 2>/dev/null || |
| 16683 | echo X"$as_dir" | |
| 16684 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16685 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16686 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16687 | /^X\(\/\).*/{ s//\1/; q; } |
| 16688 | s/.*/./; q'` |
| 16689 | done |
| 16690 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16691 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16692 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16693 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16694 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16695 | rm -f $ac_file |
| 16696 | mv $tmp/config.h $ac_file |
| 16697 | fi |
| 16698 | else |
| 16699 | cat $tmp/config.h |
| 16700 | rm -f $tmp/config.h |
| 16701 | fi |
| 16702 | done |
| 16703 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16704 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16705 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16706 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16707 | { (exit 0); exit 0; } |
| 16708 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16709 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16710 | ac_clean_files=$ac_clean_files_save |
| 16711 | |
| 16712 | |
| 16713 | # configure is writing to config.log, and then calls config.status. |
| 16714 | # config.status does its own redirection, appending to config.log. |
| 16715 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16716 | # by configure, so config.status won't be able to write to it; its |
| 16717 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16718 | # effectively closing config.log, so it can be properly (re)opened and |
| 16719 | # appended to by config.status. When coming back to configure, we |
| 16720 | # need to make the FD available again. |
| 16721 | if test "$no_create" != yes; then |
| 16722 | ac_cs_success=: |
| 16723 | ac_config_status_args= |
| 16724 | test "$silent" = yes && |
| 16725 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16726 | exec 5>/dev/null |
| 16727 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 16728 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16729 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16730 | # would make configure fail if this is the last instruction. |
| 16731 | $ac_cs_success || { (exit 1); exit 1; } |
| 16732 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16733 | |
| 16734 | |