Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
| 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 254 | ac_default_prefix=/usr/local |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 255 | ac_config_libobj_dir=. |
| 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
| 267 | # Identity of this package. |
| 268 | PACKAGE_NAME= |
| 269 | PACKAGE_TARNAME= |
| 270 | PACKAGE_VERSION= |
| 271 | PACKAGE_STRING= |
| 272 | PACKAGE_BUGREPORT= |
| 273 | |
| 274 | ac_unique_file="vim.h" |
| 275 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK STRIP CPP_MM OS_EXTRA_SRC OS_EXTRA_OBJ VIMNAME EXNAME VIEWNAME line_break dovimdiff dogvimdiff compiledby vi_cv_path_mzscheme MZSCHEME_SRC MZSCHEME_OBJ MZSCHEME_PRO MZSCHEME_LIBS MZSCHEME_CFLAGS vi_cv_path_perl vi_cv_perllib shrpenv PERL_SRC PERL_OBJ PERL_PRO PERL_CFLAGS PERL_LIBS vi_cv_path_python PYTHON_CONFDIR PYTHON_LIBS PYTHON_GETPATH_CFLAGS PYTHON_CFLAGS PYTHON_SRC PYTHON_OBJ vi_cv_path_tcl TCL_SRC TCL_OBJ TCL_PRO TCL_CFLAGS TCL_LIBS vi_cv_path_ruby RUBY_SRC RUBY_OBJ RUBY_PRO RUBY_CFLAGS RUBY_LIBS WORKSHOP_SRC WORKSHOP_OBJ NETBEANS_SRC NETBEANS_OBJ SNIFF_SRC SNIFF_OBJ xmkmfpath X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIB GTK_CONFIG GTK12_CONFIG PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_LIBNAME GNOME_LIBS GNOME_LIBDIR GNOME_INCLUDEDIR GNOME_CONFIG MOTIF_LIBNAME NARROW_PROTO GUI_INC_LOC GUI_LIB_LOC GUITYPE GUI_X_LIBS HANGULIN_SRC HANGULIN_OBJ TAGPRG INSTALL_LANGS INSTALL_TOOL_LANGS MSGFMT MAKEMO DEPEND_CFLAGS_FILTER LIBOBJS LTLIBOBJS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 313 | ac_subst_files='' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 314 | |
| 315 | # Initialize some variables set by options. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 316 | ac_init_help= |
| 317 | ac_init_version=false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 318 | # The variables have the same names as the options, with |
| 319 | # dashes changed to underlines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 320 | cache_file=/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 321 | exec_prefix=NONE |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 322 | no_create= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 323 | no_recursion= |
| 324 | prefix=NONE |
| 325 | program_prefix=NONE |
| 326 | program_suffix=NONE |
| 327 | program_transform_name=s,x,x, |
| 328 | silent= |
| 329 | site= |
| 330 | srcdir= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 331 | verbose= |
| 332 | x_includes=NONE |
| 333 | x_libraries=NONE |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 334 | |
| 335 | # Installation directory options. |
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 337 | # and all the variables that are supposed to be based on exec_prefix |
| 338 | # by default will actually change. |
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 340 | bindir='${exec_prefix}/bin' |
| 341 | sbindir='${exec_prefix}/sbin' |
| 342 | libexecdir='${exec_prefix}/libexec' |
| 343 | datadir='${prefix}/share' |
| 344 | sysconfdir='${prefix}/etc' |
| 345 | sharedstatedir='${prefix}/com' |
| 346 | localstatedir='${prefix}/var' |
| 347 | libdir='${exec_prefix}/lib' |
| 348 | includedir='${prefix}/include' |
| 349 | oldincludedir='/usr/include' |
| 350 | infodir='${prefix}/info' |
| 351 | mandir='${prefix}/man' |
| 352 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 353 | ac_prev= |
| 354 | for ac_option |
| 355 | do |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 356 | # If the previous option needs an argument, assign it. |
| 357 | if test -n "$ac_prev"; then |
| 358 | eval "$ac_prev=\$ac_option" |
| 359 | ac_prev= |
| 360 | continue |
| 361 | fi |
| 362 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 364 | |
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 366 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 367 | case $ac_option in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 368 | |
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 370 | ac_prev=bindir ;; |
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 372 | bindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 373 | |
| 374 | -build | --build | --buil | --bui | --bu) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 375 | ac_prev=build_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 377 | build_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 378 | |
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 381 | ac_prev=cache_file ;; |
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 384 | cache_file=$ac_optarg ;; |
| 385 | |
| 386 | --config-cache | -C) |
| 387 | cache_file=config.cache ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 388 | |
| 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 390 | ac_prev=datadir ;; |
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 392 | | --da=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 393 | datadir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 394 | |
| 395 | -disable-* | --disable-*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 397 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 400 | { (exit 1); exit 1; }; } |
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 402 | eval "enable_$ac_feature=no" ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 403 | |
| 404 | -enable-* | --enable-*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 406 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 409 | { (exit 1); exit 1; }; } |
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 411 | case $ac_option in |
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 413 | *) ac_optarg=yes ;; |
| 414 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 416 | |
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 419 | | --exec | --exe | --ex) |
| 420 | ac_prev=exec_prefix ;; |
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 423 | | --exec=* | --exe=* | --ex=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 424 | exec_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 425 | |
| 426 | -gas | --gas | --ga | --g) |
| 427 | # Obsolete; use --with-gas. |
| 428 | with_gas=yes ;; |
| 429 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 430 | -help | --help | --hel | --he | -h) |
| 431 | ac_init_help=long ;; |
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 433 | ac_init_help=recursive ;; |
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 435 | ac_init_help=short ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 436 | |
| 437 | -host | --host | --hos | --ho) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 438 | ac_prev=host_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 439 | -host=* | --host=* | --hos=* | --ho=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 440 | host_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 441 | |
| 442 | -includedir | --includedir | --includedi | --included | --include \ |
| 443 | | --includ | --inclu | --incl | --inc) |
| 444 | ac_prev=includedir ;; |
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 447 | includedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 448 | |
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 450 | ac_prev=infodir ;; |
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 452 | infodir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 453 | |
| 454 | -libdir | --libdir | --libdi | --libd) |
| 455 | ac_prev=libdir ;; |
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 457 | libdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 458 | |
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 460 | | --libexe | --libex | --libe) |
| 461 | ac_prev=libexecdir ;; |
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 463 | | --libexe=* | --libex=* | --libe=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 464 | libexecdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 465 | |
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 467 | | --localstate | --localstat | --localsta | --localst \ |
| 468 | | --locals | --local | --loca | --loc | --lo) |
| 469 | ac_prev=localstatedir ;; |
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 473 | localstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 474 | |
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 476 | ac_prev=mandir ;; |
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 478 | mandir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 479 | |
| 480 | -nfp | --nfp | --nf) |
| 481 | # Obsolete; use --without-fp. |
| 482 | with_fp=no ;; |
| 483 | |
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 485 | | --no-cr | --no-c | -n) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 486 | no_create=yes ;; |
| 487 | |
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 490 | no_recursion=yes ;; |
| 491 | |
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 494 | | --oldin | --oldi | --old | --ol | --o) |
| 495 | ac_prev=oldincludedir ;; |
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 499 | oldincludedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 500 | |
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 502 | ac_prev=prefix ;; |
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 504 | prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 505 | |
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 507 | | --program-pre | --program-pr | --program-p) |
| 508 | ac_prev=program_prefix ;; |
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 511 | program_prefix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 512 | |
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 514 | | --program-suf | --program-su | --program-s) |
| 515 | ac_prev=program_suffix ;; |
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 518 | program_suffix=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 519 | |
| 520 | -program-transform-name | --program-transform-name \ |
| 521 | | --program-transform-nam | --program-transform-na \ |
| 522 | | --program-transform-n | --program-transform- \ |
| 523 | | --program-transform | --program-transfor \ |
| 524 | | --program-transfo | --program-transf \ |
| 525 | | --program-trans | --program-tran \ |
| 526 | | --progr-tra | --program-tr | --program-t) |
| 527 | ac_prev=program_transform_name ;; |
| 528 | -program-transform-name=* | --program-transform-name=* \ |
| 529 | | --program-transform-nam=* | --program-transform-na=* \ |
| 530 | | --program-transform-n=* | --program-transform-=* \ |
| 531 | | --program-transform=* | --program-transfor=* \ |
| 532 | | --program-transfo=* | --program-transf=* \ |
| 533 | | --program-trans=* | --program-tran=* \ |
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 535 | program_transform_name=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 536 | |
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 538 | | -silent | --silent | --silen | --sile | --sil) |
| 539 | silent=yes ;; |
| 540 | |
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 542 | ac_prev=sbindir ;; |
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 544 | | --sbi=* | --sb=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 545 | sbindir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 546 | |
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 549 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 550 | | --sha | --sh) |
| 551 | ac_prev=sharedstatedir ;; |
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 555 | | --sha=* | --sh=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 556 | sharedstatedir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 557 | |
| 558 | -site | --site | --sit) |
| 559 | ac_prev=site ;; |
| 560 | -site=* | --site=* | --sit=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 561 | site=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 562 | |
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 564 | ac_prev=srcdir ;; |
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 566 | srcdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 567 | |
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 569 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 570 | ac_prev=sysconfdir ;; |
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 573 | sysconfdir=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 574 | |
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 576 | ac_prev=target_alias ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 578 | target_alias=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 579 | |
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 581 | verbose=yes ;; |
| 582 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 583 | -version | --version | --versio | --versi | --vers | -V) |
| 584 | ac_init_version=: ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 585 | |
| 586 | -with-* | --with-*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 588 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 591 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 593 | case $ac_option in |
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 595 | *) ac_optarg=yes ;; |
| 596 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 598 | |
| 599 | -without-* | --without-*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 601 | # Reject names that are not valid shell variable names. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 604 | { (exit 1); exit 1; }; } |
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 606 | eval "with_$ac_package=no" ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 607 | |
| 608 | --x) |
| 609 | # Obsolete; use --with-x. |
| 610 | with_x=yes ;; |
| 611 | |
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 613 | | --x-incl | --x-inc | --x-in | --x-i) |
| 614 | ac_prev=x_includes ;; |
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 617 | x_includes=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 618 | |
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 621 | ac_prev=x_libraries ;; |
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 624 | x_libraries=$ac_optarg ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 625 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 627 | Try \`$0 --help' for more information." >&2 |
| 628 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 629 | ;; |
| 630 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 631 | *=*) |
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 633 | # Reject names that are not valid shell variable names. |
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 636 | { (exit 1); exit 1; }; } |
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 638 | eval "$ac_envvar='$ac_optarg'" |
| 639 | export $ac_envvar ;; |
| 640 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 641 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 642 | # FIXME: should be removed in autoconf 3.0. |
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 647 | ;; |
| 648 | |
| 649 | esac |
| 650 | done |
| 651 | |
| 652 | if test -n "$ac_prev"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 655 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 656 | fi |
| 657 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 658 | # Be sure to have absolute paths. |
| 659 | for ac_var in exec_prefix prefix |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 660 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 661 | eval ac_val=$`echo $ac_var` |
| 662 | case $ac_val in |
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 665 | { (exit 1); exit 1; }; };; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 666 | esac |
| 667 | done |
| 668 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 669 | # Be sure to have absolute paths. |
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 671 | localstatedir libdir includedir oldincludedir infodir mandir |
| 672 | do |
| 673 | eval ac_val=$`echo $ac_var` |
| 674 | case $ac_val in |
| 675 | [\\/$]* | ?:[\\/]* ) ;; |
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 677 | { (exit 1); exit 1; }; };; |
| 678 | esac |
| 679 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 680 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 681 | # There might be people who depend on the old broken behavior: `$host' |
| 682 | # used to hold the argument of --host etc. |
| 683 | # FIXME: To remove some day. |
| 684 | build=$build_alias |
| 685 | host=$host_alias |
| 686 | target=$target_alias |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 687 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 688 | # FIXME: To remove some day. |
| 689 | if test "x$host_alias" != x; then |
| 690 | if test "x$build_alias" = x; then |
| 691 | cross_compiling=maybe |
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 694 | elif test "x$build_alias" != "x$host_alias"; then |
| 695 | cross_compiling=yes |
| 696 | fi |
| 697 | fi |
| 698 | |
| 699 | ac_tool_prefix= |
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 | |
| 702 | test "$silent" = yes && exec 6>/dev/null |
| 703 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 704 | |
| 705 | # Find the source files, if location was not specified. |
| 706 | if test -z "$srcdir"; then |
| 707 | ac_srcdir_defaulted=yes |
| 708 | # Try the directory containing this script, then its parent. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 711 | X"$0" : 'X\(//\)[^/]' \| \ |
| 712 | X"$0" : 'X\(//\)$' \| \ |
| 713 | X"$0" : 'X\(/\)' \| \ |
| 714 | . : '\(.\)' 2>/dev/null || |
| 715 | echo X"$0" | |
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 719 | /^X\(\/\).*/{ s//\1/; q; } |
| 720 | s/.*/./; q'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 721 | srcdir=$ac_confdir |
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
| 723 | srcdir=.. |
| 724 | fi |
| 725 | else |
| 726 | ac_srcdir_defaulted=no |
| 727 | fi |
| 728 | if test ! -r $srcdir/$ac_unique_file; then |
| 729 | if test "$ac_srcdir_defaulted" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 731 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 732 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 734 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 735 | fi |
| 736 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 739 | { (exit 1); exit 1; }; } |
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 | ac_env_build_alias_set=${build_alias+set} |
| 742 | ac_env_build_alias_value=$build_alias |
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
| 744 | ac_cv_env_build_alias_value=$build_alias |
| 745 | ac_env_host_alias_set=${host_alias+set} |
| 746 | ac_env_host_alias_value=$host_alias |
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
| 748 | ac_cv_env_host_alias_value=$host_alias |
| 749 | ac_env_target_alias_set=${target_alias+set} |
| 750 | ac_env_target_alias_value=$target_alias |
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
| 752 | ac_cv_env_target_alias_value=$target_alias |
| 753 | ac_env_CC_set=${CC+set} |
| 754 | ac_env_CC_value=$CC |
| 755 | ac_cv_env_CC_set=${CC+set} |
| 756 | ac_cv_env_CC_value=$CC |
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 | ac_env_CFLAGS_value=$CFLAGS |
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_env_CPP_set=${CPP+set} |
| 770 | ac_env_CPP_value=$CPP |
| 771 | ac_cv_env_CPP_set=${CPP+set} |
| 772 | ac_cv_env_CPP_value=$CPP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 773 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 774 | # |
| 775 | # Report the --help message. |
| 776 | # |
| 777 | if test "$ac_init_help" = "long"; then |
| 778 | # Omit some internal or obsolete options to make the list less imposing. |
| 779 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 780 | cat <<_ACEOF |
| 781 | \`configure' configures this package to adapt to many kinds of systems. |
| 782 | |
| 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 784 | |
| 785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 786 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 787 | |
| 788 | Defaults for the options are specified in brackets. |
| 789 | |
| 790 | Configuration: |
| 791 | -h, --help display this help and exit |
| 792 | --help=short display options specific to this package |
| 793 | --help=recursive display the short help of all the included packages |
| 794 | -V, --version display version information and exit |
| 795 | -q, --quiet, --silent do not print \`checking...' messages |
| 796 | --cache-file=FILE cache test results in FILE [disabled] |
| 797 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 798 | -n, --no-create do not create output files |
| 799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 800 | |
| 801 | _ACEOF |
| 802 | |
| 803 | cat <<_ACEOF |
| 804 | Installation directories: |
| 805 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 806 | [$ac_default_prefix] |
| 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 808 | [PREFIX] |
| 809 | |
| 810 | By default, \`make install' will install all the files in |
| 811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 813 | for instance \`--prefix=\$HOME'. |
| 814 | |
| 815 | For better control, use the options below. |
| 816 | |
| 817 | Fine tuning of the installation directories: |
| 818 | --bindir=DIR user executables [EPREFIX/bin] |
| 819 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 820 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 825 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 826 | --includedir=DIR C header files [PREFIX/include] |
| 827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 828 | --infodir=DIR info documentation [PREFIX/info] |
| 829 | --mandir=DIR man documentation [PREFIX/man] |
| 830 | _ACEOF |
| 831 | |
| 832 | cat <<\_ACEOF |
| 833 | |
| 834 | X features: |
| 835 | --x-includes=DIR X include files are in DIR |
| 836 | --x-libraries=DIR X library files are in DIR |
| 837 | _ACEOF |
| 838 | fi |
| 839 | |
| 840 | if test -n "$ac_init_help"; then |
| 841 | |
| 842 | cat <<\_ACEOF |
| 843 | |
| 844 | Optional Features: |
| 845 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 846 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 847 | --disable-darwin Disable Darwin (Mac OS X) support. |
| 848 | --disable-xsmp Disable XSMP session management |
| 849 | --disable-xsmp-interact Disable XSMP interaction |
| 850 | --enable-mzschemeinterp Include MzScheme interpreter. |
| 851 | --enable-perlinterp Include Perl interpreter. |
| 852 | --enable-pythoninterp Include Python interpreter. |
| 853 | --enable-tclinterp Include Tcl interpreter. |
| 854 | --enable-rubyinterp Include Ruby interpreter. |
| 855 | --enable-cscope Include cscope interface. |
| 856 | --enable-workshop Include Sun Visual Workshop support. |
| 857 | --disable-netbeans Disable NetBeans integration support. |
| 858 | --enable-sniff Include Sniff interface. |
| 859 | --enable-multibyte Include multibyte editing support. |
| 860 | --enable-hangulinput Include Hangul input support. |
| 861 | --enable-xim Include XIM input support. |
| 862 | --enable-fontset Include X fontset output support. |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 863 | --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/photon/carbon |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 864 | --enable-gtk-check If auto-select GUI, check for GTK default=yes |
| 865 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes |
| 866 | --enable-gnome-check If GTK GUI, check for GNOME default=no |
| 867 | --enable-motif-check If auto-select GUI, check for Motif default=yes |
| 868 | --enable-athena-check If auto-select GUI, check for Athena default=yes |
| 869 | --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes |
| 870 | --enable-carbon-check If auto-select GUI, check for Carbon default=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 871 | --disable-gtktest Do not try to compile and run a test GTK program |
| 872 | --disable-acl Don't check for ACL support. |
| 873 | --disable-gpm Don't use gpm (Linux mouse daemon). |
| 874 | --disable-nls Don't support NLS (gettext()). |
| 875 | |
| 876 | Optional Packages: |
| 877 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 878 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Bram Moolenaar | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 879 | --with-mac-arch=ARCH current, intel, ppc or both |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 880 | --with-vim-name=NAME what to call the Vim executable |
| 881 | --with-ex-name=NAME what to call the Ex executable |
| 882 | --with-view-name=NAME what to call the View executable |
| 883 | --with-global-runtime=DIR global runtime directory in 'runtimepath' |
| 884 | --with-modified-by=NAME name of who modified a release version |
| 885 | --with-features=TYPE tiny, small, normal, big or huge (default: normal) |
| 886 | --with-compiledby=NAME name to show in :version message |
| 887 | --with-plthome=PLTHOME Use PLTHOME. |
| 888 | --with-python-config-dir=PATH Python's config directory |
| 889 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0) |
| 890 | --with-x use the X Window System |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 891 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
| 892 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) |
| 893 | --with-gnome-includes=DIR Specify location of GNOME headers |
| 894 | --with-gnome-libs=DIR Specify location of GNOME libs |
| 895 | --with-gnome Specify prefix for GNOME files |
| 896 | --with-motif-lib=STRING Library for Motif |
| 897 | --with-tlib=library terminal library to be used |
| 898 | |
| 899 | Some influential environment variables: |
| 900 | CC C compiler command |
| 901 | CFLAGS C compiler flags |
| 902 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 903 | nonstandard directory <lib dir> |
| 904 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 905 | headers in a nonstandard directory <include dir> |
| 906 | CPP C preprocessor |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 907 | |
| 908 | Use these variables to override the choices made by `configure' or to help |
| 909 | it to find libraries and programs with nonstandard names/locations. |
| 910 | |
| 911 | _ACEOF |
| 912 | fi |
| 913 | |
| 914 | if test "$ac_init_help" = "recursive"; then |
| 915 | # If there are subdirs, report their specific --help. |
| 916 | ac_popdir=`pwd` |
| 917 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 918 | test -d $ac_dir || continue |
| 919 | ac_builddir=. |
| 920 | |
| 921 | if test "$ac_dir" != .; then |
| 922 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 923 | # A "../" for each directory in $ac_dir_suffix. |
| 924 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 925 | else |
| 926 | ac_dir_suffix= ac_top_builddir= |
| 927 | fi |
| 928 | |
| 929 | case $srcdir in |
| 930 | .) # No --srcdir option. We are building in place. |
| 931 | ac_srcdir=. |
| 932 | if test -z "$ac_top_builddir"; then |
| 933 | ac_top_srcdir=. |
| 934 | else |
| 935 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 936 | fi ;; |
| 937 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 938 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 939 | ac_top_srcdir=$srcdir ;; |
| 940 | *) # Relative path. |
| 941 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 942 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 943 | esac |
| 944 | |
| 945 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 946 | # the directories may not exist. |
| 947 | case `pwd` in |
| 948 | .) ac_abs_builddir="$ac_dir";; |
| 949 | *) |
| 950 | case "$ac_dir" in |
| 951 | .) ac_abs_builddir=`pwd`;; |
| 952 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 953 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 954 | esac;; |
| 955 | esac |
| 956 | case $ac_abs_builddir in |
| 957 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 958 | *) |
| 959 | case ${ac_top_builddir}. in |
| 960 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 961 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 962 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 963 | esac;; |
| 964 | esac |
| 965 | case $ac_abs_builddir in |
| 966 | .) ac_abs_srcdir=$ac_srcdir;; |
| 967 | *) |
| 968 | case $ac_srcdir in |
| 969 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 970 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 971 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 972 | esac;; |
| 973 | esac |
| 974 | case $ac_abs_builddir in |
| 975 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 976 | *) |
| 977 | case $ac_top_srcdir in |
| 978 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 979 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 980 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 981 | esac;; |
| 982 | esac |
| 983 | |
| 984 | cd $ac_dir |
| 985 | # Check for guested configure; otherwise get Cygnus style configure. |
| 986 | if test -f $ac_srcdir/configure.gnu; then |
| 987 | echo |
| 988 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 989 | elif test -f $ac_srcdir/configure; then |
| 990 | echo |
| 991 | $SHELL $ac_srcdir/configure --help=recursive |
| 992 | elif test -f $ac_srcdir/configure.ac || |
| 993 | test -f $ac_srcdir/configure.in; then |
| 994 | echo |
| 995 | $ac_configure --help |
| 996 | else |
| 997 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 998 | fi |
| 999 | cd $ac_popdir |
| 1000 | done |
| 1001 | fi |
| 1002 | |
| 1003 | test -n "$ac_init_help" && exit 0 |
| 1004 | if $ac_init_version; then |
| 1005 | cat <<\_ACEOF |
| 1006 | |
| 1007 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 1008 | This configure script is free software; the Free Software Foundation |
| 1009 | gives unlimited permission to copy, distribute and modify it. |
| 1010 | _ACEOF |
| 1011 | exit 0 |
| 1012 | fi |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 1013 | exec 5>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1014 | cat >&5 <<_ACEOF |
| 1015 | This file contains any messages produced by compilers while |
| 1016 | running configure, to aid debugging if configure makes a mistake. |
| 1017 | |
| 1018 | It was created by $as_me, which was |
| 1019 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1020 | |
| 1021 | $ $0 $@ |
| 1022 | |
| 1023 | _ACEOF |
| 1024 | { |
| 1025 | cat <<_ASUNAME |
| 1026 | ## --------- ## |
| 1027 | ## Platform. ## |
| 1028 | ## --------- ## |
| 1029 | |
| 1030 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1031 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1032 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1033 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1034 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1035 | |
| 1036 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1037 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1038 | |
| 1039 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1040 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1041 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1042 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1043 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1044 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1045 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1046 | |
| 1047 | _ASUNAME |
| 1048 | |
| 1049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1050 | for as_dir in $PATH |
| 1051 | do |
| 1052 | IFS=$as_save_IFS |
| 1053 | test -z "$as_dir" && as_dir=. |
| 1054 | echo "PATH: $as_dir" |
| 1055 | done |
| 1056 | |
| 1057 | } >&5 |
| 1058 | |
| 1059 | cat >&5 <<_ACEOF |
| 1060 | |
| 1061 | |
| 1062 | ## ----------- ## |
| 1063 | ## Core tests. ## |
| 1064 | ## ----------- ## |
| 1065 | |
| 1066 | _ACEOF |
| 1067 | |
| 1068 | |
| 1069 | # Keep a trace of the command line. |
| 1070 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1071 | # Strip out --silent because we don't want to record it for future runs. |
| 1072 | # Also quote any args containing shell meta-characters. |
| 1073 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1074 | ac_configure_args= |
| 1075 | ac_configure_args0= |
| 1076 | ac_configure_args1= |
| 1077 | ac_sep= |
| 1078 | ac_must_keep_next=false |
| 1079 | for ac_pass in 1 2 |
| 1080 | do |
| 1081 | for ac_arg |
| 1082 | do |
| 1083 | case $ac_arg in |
| 1084 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1085 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1086 | | -silent | --silent | --silen | --sile | --sil) |
| 1087 | continue ;; |
| 1088 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1089 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1090 | esac |
| 1091 | case $ac_pass in |
| 1092 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1093 | 2) |
| 1094 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1095 | if test $ac_must_keep_next = true; then |
| 1096 | ac_must_keep_next=false # Got value, back to normal. |
| 1097 | else |
| 1098 | case $ac_arg in |
| 1099 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1100 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1101 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1102 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1103 | case "$ac_configure_args0 " in |
| 1104 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1105 | esac |
| 1106 | ;; |
| 1107 | -* ) ac_must_keep_next=true ;; |
| 1108 | esac |
| 1109 | fi |
| 1110 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1111 | # Get rid of the leading space. |
| 1112 | ac_sep=" " |
| 1113 | ;; |
| 1114 | esac |
| 1115 | done |
| 1116 | done |
| 1117 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1118 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1119 | |
| 1120 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1121 | # config.log. We remove comments because anyway the quotes in there |
| 1122 | # would cause problems or look ugly. |
| 1123 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1124 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1125 | trap 'exit_status=$? |
| 1126 | # Save into config.log some information that might help in debugging. |
| 1127 | { |
| 1128 | echo |
| 1129 | |
| 1130 | cat <<\_ASBOX |
| 1131 | ## ---------------- ## |
| 1132 | ## Cache variables. ## |
| 1133 | ## ---------------- ## |
| 1134 | _ASBOX |
| 1135 | echo |
| 1136 | # The following way of writing the cache mishandles newlines in values, |
| 1137 | { |
| 1138 | (set) 2>&1 | |
| 1139 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1140 | *ac_space=\ *) |
| 1141 | sed -n \ |
| 1142 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1143 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1144 | ;; |
| 1145 | *) |
| 1146 | sed -n \ |
| 1147 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1148 | ;; |
| 1149 | esac; |
| 1150 | } |
| 1151 | echo |
| 1152 | |
| 1153 | cat <<\_ASBOX |
| 1154 | ## ----------------- ## |
| 1155 | ## Output variables. ## |
| 1156 | ## ----------------- ## |
| 1157 | _ASBOX |
| 1158 | echo |
| 1159 | for ac_var in $ac_subst_vars |
| 1160 | do |
| 1161 | eval ac_val=$`echo $ac_var` |
| 1162 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1163 | done | sort |
| 1164 | echo |
| 1165 | |
| 1166 | if test -n "$ac_subst_files"; then |
| 1167 | cat <<\_ASBOX |
| 1168 | ## ------------- ## |
| 1169 | ## Output files. ## |
| 1170 | ## ------------- ## |
| 1171 | _ASBOX |
| 1172 | echo |
| 1173 | for ac_var in $ac_subst_files |
| 1174 | do |
| 1175 | eval ac_val=$`echo $ac_var` |
| 1176 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1177 | done | sort |
| 1178 | echo |
| 1179 | fi |
| 1180 | |
| 1181 | if test -s confdefs.h; then |
| 1182 | cat <<\_ASBOX |
| 1183 | ## ----------- ## |
| 1184 | ## confdefs.h. ## |
| 1185 | ## ----------- ## |
| 1186 | _ASBOX |
| 1187 | echo |
| 1188 | sed "/^$/d" confdefs.h | sort |
| 1189 | echo |
| 1190 | fi |
| 1191 | test "$ac_signal" != 0 && |
| 1192 | echo "$as_me: caught signal $ac_signal" |
| 1193 | echo "$as_me: exit $exit_status" |
| 1194 | } >&5 |
| 1195 | rm -f core *.core && |
| 1196 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1197 | exit $exit_status |
| 1198 | ' 0 |
| 1199 | for ac_signal in 1 2 13 15; do |
| 1200 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1201 | done |
| 1202 | ac_signal=0 |
| 1203 | |
| 1204 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1205 | rm -rf conftest* confdefs.h |
| 1206 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1207 | echo >confdefs.h |
| 1208 | |
| 1209 | # Predefined preprocessor variables. |
| 1210 | |
| 1211 | cat >>confdefs.h <<_ACEOF |
| 1212 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1213 | _ACEOF |
| 1214 | |
| 1215 | |
| 1216 | cat >>confdefs.h <<_ACEOF |
| 1217 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1218 | _ACEOF |
| 1219 | |
| 1220 | |
| 1221 | cat >>confdefs.h <<_ACEOF |
| 1222 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1223 | _ACEOF |
| 1224 | |
| 1225 | |
| 1226 | cat >>confdefs.h <<_ACEOF |
| 1227 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1228 | _ACEOF |
| 1229 | |
| 1230 | |
| 1231 | cat >>confdefs.h <<_ACEOF |
| 1232 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1233 | _ACEOF |
| 1234 | |
| 1235 | |
| 1236 | # Let the site file select an alternate cache file if it wants to. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1237 | # Prefer explicitly selected file to automatically selected ones. |
| 1238 | if test -z "$CONFIG_SITE"; then |
| 1239 | if test "x$prefix" != xNONE; then |
| 1240 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1241 | else |
| 1242 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1243 | fi |
| 1244 | fi |
| 1245 | for ac_site_file in $CONFIG_SITE; do |
| 1246 | if test -r "$ac_site_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1247 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1248 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1249 | sed 's/^/| /' "$ac_site_file" >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1250 | . "$ac_site_file" |
| 1251 | fi |
| 1252 | done |
| 1253 | |
| 1254 | if test -r "$cache_file"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1255 | # Some versions of bash will fail to source /dev/null (special |
| 1256 | # files actually), so we avoid doing that. |
| 1257 | if test -f "$cache_file"; then |
| 1258 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1259 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1260 | case $cache_file in |
| 1261 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1262 | *) . ./$cache_file;; |
| 1263 | esac |
| 1264 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1265 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1266 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1267 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1268 | >$cache_file |
| 1269 | fi |
| 1270 | |
| 1271 | # Check that the precious variables saved in the cache have kept the same |
| 1272 | # value. |
| 1273 | ac_cache_corrupted=false |
| 1274 | for ac_var in `(set) 2>&1 | |
| 1275 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1276 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1277 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1278 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1279 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1280 | case $ac_old_set,$ac_new_set in |
| 1281 | set,) |
| 1282 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1283 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1284 | ac_cache_corrupted=: ;; |
| 1285 | ,set) |
| 1286 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1287 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1288 | ac_cache_corrupted=: ;; |
| 1289 | ,);; |
| 1290 | *) |
| 1291 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1292 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1293 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1294 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1295 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1296 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1297 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1298 | ac_cache_corrupted=: |
| 1299 | fi;; |
| 1300 | esac |
| 1301 | # Pass precious variables to config.status. |
| 1302 | if test "$ac_new_set" = set; then |
| 1303 | case $ac_new_val in |
| 1304 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1305 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1306 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1307 | esac |
| 1308 | case " $ac_configure_args " in |
| 1309 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1310 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1311 | esac |
| 1312 | fi |
| 1313 | done |
| 1314 | if $ac_cache_corrupted; then |
| 1315 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1316 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1317 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1318 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1319 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1320 | fi |
| 1321 | |
| 1322 | ac_ext=c |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1323 | ac_cpp='$CPP $CPPFLAGS' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1324 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1325 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1331 | |
| 1332 | |
| 1333 | |
| 1334 | |
| 1335 | |
| 1336 | |
| 1337 | |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
| 1342 | |
| 1343 | |
| 1344 | |
| 1345 | |
| 1346 | ac_config_headers="$ac_config_headers auto/config.h:config.h.in" |
| 1347 | |
| 1348 | |
| 1349 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1350 | #define UNIX 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1351 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1352 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1353 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1354 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1355 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 1356 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1358 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1359 | cat >conftest.make <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1360 | all: |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1361 | @echo 'ac_maketemp="$(MAKE)"' |
| 1362 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1363 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1364 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1365 | if test -n "$ac_maketemp"; then |
| 1366 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1367 | else |
| 1368 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1369 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1370 | rm -f conftest.make |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1371 | fi |
| 1372 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1373 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1374 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1375 | SET_MAKE= |
| 1376 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1377 | echo "$as_me:$LINENO: result: no" >&5 |
| 1378 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1379 | SET_MAKE="MAKE=${MAKE-make}" |
| 1380 | fi |
| 1381 | |
| 1382 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1383 | ac_ext=c |
| 1384 | ac_cpp='$CPP $CPPFLAGS' |
| 1385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1388 | if test -n "$ac_tool_prefix"; then |
| 1389 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1390 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1391 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1393 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1395 | else |
| 1396 | if test -n "$CC"; then |
| 1397 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1398 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1400 | for as_dir in $PATH |
| 1401 | do |
| 1402 | IFS=$as_save_IFS |
| 1403 | test -z "$as_dir" && as_dir=. |
| 1404 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1405 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1406 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1408 | break 2 |
| 1409 | fi |
| 1410 | done |
| 1411 | done |
| 1412 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1413 | fi |
| 1414 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1415 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1416 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1417 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1418 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1419 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1420 | echo "$as_me:$LINENO: result: no" >&5 |
| 1421 | echo "${ECHO_T}no" >&6 |
| 1422 | fi |
| 1423 | |
| 1424 | fi |
| 1425 | if test -z "$ac_cv_prog_CC"; then |
| 1426 | ac_ct_CC=$CC |
| 1427 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1428 | set dummy gcc; ac_word=$2 |
| 1429 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1430 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1431 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1432 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1433 | else |
| 1434 | if test -n "$ac_ct_CC"; then |
| 1435 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1436 | else |
| 1437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1438 | for as_dir in $PATH |
| 1439 | do |
| 1440 | IFS=$as_save_IFS |
| 1441 | test -z "$as_dir" && as_dir=. |
| 1442 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1443 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1444 | ac_cv_prog_ac_ct_CC="gcc" |
| 1445 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1446 | break 2 |
| 1447 | fi |
| 1448 | done |
| 1449 | done |
| 1450 | |
| 1451 | fi |
| 1452 | fi |
| 1453 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1454 | if test -n "$ac_ct_CC"; then |
| 1455 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1456 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1457 | else |
| 1458 | echo "$as_me:$LINENO: result: no" >&5 |
| 1459 | echo "${ECHO_T}no" >&6 |
| 1460 | fi |
| 1461 | |
| 1462 | CC=$ac_ct_CC |
| 1463 | else |
| 1464 | CC="$ac_cv_prog_CC" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1465 | fi |
| 1466 | |
| 1467 | if test -z "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1468 | if test -n "$ac_tool_prefix"; then |
| 1469 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1470 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1471 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1472 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1473 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1475 | else |
| 1476 | if test -n "$CC"; then |
| 1477 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1478 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1480 | for as_dir in $PATH |
| 1481 | do |
| 1482 | IFS=$as_save_IFS |
| 1483 | test -z "$as_dir" && as_dir=. |
| 1484 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1485 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1486 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1487 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1488 | break 2 |
| 1489 | fi |
| 1490 | done |
| 1491 | done |
| 1492 | |
| 1493 | fi |
| 1494 | fi |
| 1495 | CC=$ac_cv_prog_CC |
| 1496 | if test -n "$CC"; then |
| 1497 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1498 | echo "${ECHO_T}$CC" >&6 |
| 1499 | else |
| 1500 | echo "$as_me:$LINENO: result: no" >&5 |
| 1501 | echo "${ECHO_T}no" >&6 |
| 1502 | fi |
| 1503 | |
| 1504 | fi |
| 1505 | if test -z "$ac_cv_prog_CC"; then |
| 1506 | ac_ct_CC=$CC |
| 1507 | # Extract the first word of "cc", so it can be a program name with args. |
| 1508 | set dummy cc; ac_word=$2 |
| 1509 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1510 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1511 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1513 | else |
| 1514 | if test -n "$ac_ct_CC"; then |
| 1515 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1516 | else |
| 1517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1518 | for as_dir in $PATH |
| 1519 | do |
| 1520 | IFS=$as_save_IFS |
| 1521 | test -z "$as_dir" && as_dir=. |
| 1522 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1523 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1524 | ac_cv_prog_ac_ct_CC="cc" |
| 1525 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1526 | break 2 |
| 1527 | fi |
| 1528 | done |
| 1529 | done |
| 1530 | |
| 1531 | fi |
| 1532 | fi |
| 1533 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1534 | if test -n "$ac_ct_CC"; then |
| 1535 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1536 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1537 | else |
| 1538 | echo "$as_me:$LINENO: result: no" >&5 |
| 1539 | echo "${ECHO_T}no" >&6 |
| 1540 | fi |
| 1541 | |
| 1542 | CC=$ac_ct_CC |
| 1543 | else |
| 1544 | CC="$ac_cv_prog_CC" |
| 1545 | fi |
| 1546 | |
| 1547 | fi |
| 1548 | if test -z "$CC"; then |
| 1549 | # Extract the first word of "cc", so it can be a program name with args. |
| 1550 | set dummy cc; ac_word=$2 |
| 1551 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1552 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1553 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1555 | else |
| 1556 | if test -n "$CC"; then |
| 1557 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1558 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1559 | ac_prog_rejected=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1561 | for as_dir in $PATH |
| 1562 | do |
| 1563 | IFS=$as_save_IFS |
| 1564 | test -z "$as_dir" && as_dir=. |
| 1565 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1566 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1567 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1568 | ac_prog_rejected=yes |
| 1569 | continue |
| 1570 | fi |
| 1571 | ac_cv_prog_CC="cc" |
| 1572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1573 | break 2 |
| 1574 | fi |
| 1575 | done |
| 1576 | done |
| 1577 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1578 | if test $ac_prog_rejected = yes; then |
| 1579 | # We found a bogon in the path, so make sure we never use it. |
| 1580 | set dummy $ac_cv_prog_CC |
| 1581 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1582 | if test $# != 0; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1583 | # We chose a different compiler from the bogus one. |
| 1584 | # However, it has the same basename, so the bogon will be chosen |
| 1585 | # first if we set CC to just the basename; use the full file name. |
| 1586 | shift |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1587 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1588 | fi |
| 1589 | fi |
| 1590 | fi |
| 1591 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1592 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1593 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1594 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1595 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1596 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1597 | echo "$as_me:$LINENO: result: no" >&5 |
| 1598 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1599 | fi |
| 1600 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1601 | fi |
| 1602 | if test -z "$CC"; then |
| 1603 | if test -n "$ac_tool_prefix"; then |
| 1604 | for ac_prog in cl |
| 1605 | do |
| 1606 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1607 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1608 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1609 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1610 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1612 | else |
| 1613 | if test -n "$CC"; then |
| 1614 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1615 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1617 | for as_dir in $PATH |
| 1618 | do |
| 1619 | IFS=$as_save_IFS |
| 1620 | test -z "$as_dir" && as_dir=. |
| 1621 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1623 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1625 | break 2 |
| 1626 | fi |
| 1627 | done |
| 1628 | done |
| 1629 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1630 | fi |
| 1631 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1632 | CC=$ac_cv_prog_CC |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1633 | if test -n "$CC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1634 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1635 | echo "${ECHO_T}$CC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1636 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1637 | echo "$as_me:$LINENO: result: no" >&5 |
| 1638 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1639 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1640 | |
| 1641 | test -n "$CC" && break |
| 1642 | done |
| 1643 | fi |
| 1644 | if test -z "$CC"; then |
| 1645 | ac_ct_CC=$CC |
| 1646 | for ac_prog in cl |
| 1647 | do |
| 1648 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1649 | set dummy $ac_prog; ac_word=$2 |
| 1650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1652 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1654 | else |
| 1655 | if test -n "$ac_ct_CC"; then |
| 1656 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1657 | else |
| 1658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1659 | for as_dir in $PATH |
| 1660 | do |
| 1661 | IFS=$as_save_IFS |
| 1662 | test -z "$as_dir" && as_dir=. |
| 1663 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1665 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1667 | break 2 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1668 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1669 | done |
| 1670 | done |
| 1671 | |
| 1672 | fi |
| 1673 | fi |
| 1674 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1675 | if test -n "$ac_ct_CC"; then |
| 1676 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1677 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1678 | else |
| 1679 | echo "$as_me:$LINENO: result: no" >&5 |
| 1680 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1681 | fi |
| 1682 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1683 | test -n "$ac_ct_CC" && break |
| 1684 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1685 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1686 | CC=$ac_ct_CC |
| 1687 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1688 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1689 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1690 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1691 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1692 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1693 | See \`config.log' for more details." >&5 |
| 1694 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1695 | See \`config.log' for more details." >&2;} |
| 1696 | { (exit 1); exit 1; }; } |
| 1697 | |
| 1698 | # Provide some information about the compiler. |
| 1699 | echo "$as_me:$LINENO:" \ |
| 1700 | "checking for C compiler version" >&5 |
| 1701 | ac_compiler=`set X $ac_compile; echo $2` |
| 1702 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1703 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1704 | ac_status=$? |
| 1705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1706 | (exit $ac_status); } |
| 1707 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1708 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1709 | ac_status=$? |
| 1710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1711 | (exit $ac_status); } |
| 1712 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1713 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1714 | ac_status=$? |
| 1715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1716 | (exit $ac_status); } |
| 1717 | |
| 1718 | cat >conftest.$ac_ext <<_ACEOF |
| 1719 | /* confdefs.h. */ |
| 1720 | _ACEOF |
| 1721 | cat confdefs.h >>conftest.$ac_ext |
| 1722 | cat >>conftest.$ac_ext <<_ACEOF |
| 1723 | /* end confdefs.h. */ |
| 1724 | |
| 1725 | int |
| 1726 | main () |
| 1727 | { |
| 1728 | |
| 1729 | ; |
| 1730 | return 0; |
| 1731 | } |
| 1732 | _ACEOF |
| 1733 | ac_clean_files_save=$ac_clean_files |
| 1734 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1735 | # Try to create an executable without -o first, disregard a.out. |
| 1736 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1737 | # of exeext. |
| 1738 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1739 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1740 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1741 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1742 | (eval $ac_link_default) 2>&5 |
| 1743 | ac_status=$? |
| 1744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1745 | (exit $ac_status); }; then |
| 1746 | # Find the output, starting from the most likely. This scheme is |
| 1747 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1748 | # resort. |
| 1749 | |
| 1750 | # Be careful to initialize this variable, since it used to be cached. |
| 1751 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1752 | ac_cv_exeext= |
| 1753 | # b.out is created by i960 compilers. |
| 1754 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1755 | do |
| 1756 | test -f "$ac_file" || continue |
| 1757 | case $ac_file in |
| 1758 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1759 | ;; |
| 1760 | conftest.$ac_ext ) |
| 1761 | # This is the source file. |
| 1762 | ;; |
| 1763 | [ab].out ) |
| 1764 | # We found the default executable, but exeext='' is most |
| 1765 | # certainly right. |
| 1766 | break;; |
| 1767 | *.* ) |
| 1768 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1769 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1770 | # but it would be cool to find out if it's true. Does anybody |
| 1771 | # maintain Libtool? --akim. |
| 1772 | export ac_cv_exeext |
| 1773 | break;; |
| 1774 | * ) |
| 1775 | break;; |
| 1776 | esac |
| 1777 | done |
| 1778 | else |
| 1779 | echo "$as_me: failed program was:" >&5 |
| 1780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1781 | |
| 1782 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1783 | See \`config.log' for more details." >&5 |
| 1784 | echo "$as_me: error: C compiler cannot create executables |
| 1785 | See \`config.log' for more details." >&2;} |
| 1786 | { (exit 77); exit 77; }; } |
| 1787 | fi |
| 1788 | |
| 1789 | ac_exeext=$ac_cv_exeext |
| 1790 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1791 | echo "${ECHO_T}$ac_file" >&6 |
| 1792 | |
| 1793 | # Check the compiler produces executables we can run. If not, either |
| 1794 | # the compiler is broken, or we cross compile. |
| 1795 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1796 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1797 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1798 | # If not cross compiling, check that we can run a simple program. |
| 1799 | if test "$cross_compiling" != yes; then |
| 1800 | if { ac_try='./$ac_file' |
| 1801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1802 | (eval $ac_try) 2>&5 |
| 1803 | ac_status=$? |
| 1804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1805 | (exit $ac_status); }; }; then |
| 1806 | cross_compiling=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1807 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1808 | if test "$cross_compiling" = maybe; then |
| 1809 | cross_compiling=yes |
| 1810 | else |
| 1811 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1812 | If you meant to cross compile, use \`--host'. |
| 1813 | See \`config.log' for more details." >&5 |
| 1814 | echo "$as_me: error: cannot run C compiled programs. |
| 1815 | If you meant to cross compile, use \`--host'. |
| 1816 | See \`config.log' for more details." >&2;} |
| 1817 | { (exit 1); exit 1; }; } |
| 1818 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1819 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1820 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1821 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1822 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1823 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1824 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1825 | ac_clean_files=$ac_clean_files_save |
| 1826 | # Check the compiler produces executables we can run. If not, either |
| 1827 | # the compiler is broken, or we cross compile. |
| 1828 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1829 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1830 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1831 | echo "${ECHO_T}$cross_compiling" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1832 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1833 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1834 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1836 | (eval $ac_link) 2>&5 |
| 1837 | ac_status=$? |
| 1838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1839 | (exit $ac_status); }; then |
| 1840 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1841 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1842 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1843 | # `rm'. |
| 1844 | for ac_file in conftest.exe conftest conftest.*; do |
| 1845 | test -f "$ac_file" || continue |
| 1846 | case $ac_file in |
| 1847 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1848 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1849 | export ac_cv_exeext |
| 1850 | break;; |
| 1851 | * ) break;; |
| 1852 | esac |
| 1853 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1854 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1855 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1856 | See \`config.log' for more details." >&5 |
| 1857 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1858 | See \`config.log' for more details." >&2;} |
| 1859 | { (exit 1); exit 1; }; } |
| 1860 | fi |
| 1861 | |
| 1862 | rm -f conftest$ac_cv_exeext |
| 1863 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1864 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1865 | |
| 1866 | rm -f conftest.$ac_ext |
| 1867 | EXEEXT=$ac_cv_exeext |
| 1868 | ac_exeext=$EXEEXT |
| 1869 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1870 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1871 | if test "${ac_cv_objext+set}" = set; then |
| 1872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1873 | else |
| 1874 | cat >conftest.$ac_ext <<_ACEOF |
| 1875 | /* confdefs.h. */ |
| 1876 | _ACEOF |
| 1877 | cat confdefs.h >>conftest.$ac_ext |
| 1878 | cat >>conftest.$ac_ext <<_ACEOF |
| 1879 | /* end confdefs.h. */ |
| 1880 | |
| 1881 | int |
| 1882 | main () |
| 1883 | { |
| 1884 | |
| 1885 | ; |
| 1886 | return 0; |
| 1887 | } |
| 1888 | _ACEOF |
| 1889 | rm -f conftest.o conftest.obj |
| 1890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1891 | (eval $ac_compile) 2>&5 |
| 1892 | ac_status=$? |
| 1893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1894 | (exit $ac_status); }; then |
| 1895 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1896 | case $ac_file in |
| 1897 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1898 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1899 | break;; |
| 1900 | esac |
| 1901 | done |
| 1902 | else |
| 1903 | echo "$as_me: failed program was:" >&5 |
| 1904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1905 | |
| 1906 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1907 | See \`config.log' for more details." >&5 |
| 1908 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1909 | See \`config.log' for more details." >&2;} |
| 1910 | { (exit 1); exit 1; }; } |
| 1911 | fi |
| 1912 | |
| 1913 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1914 | fi |
| 1915 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1916 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1917 | OBJEXT=$ac_cv_objext |
| 1918 | ac_objext=$OBJEXT |
| 1919 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1920 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1921 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1923 | else |
| 1924 | cat >conftest.$ac_ext <<_ACEOF |
| 1925 | /* confdefs.h. */ |
| 1926 | _ACEOF |
| 1927 | cat confdefs.h >>conftest.$ac_ext |
| 1928 | cat >>conftest.$ac_ext <<_ACEOF |
| 1929 | /* end confdefs.h. */ |
| 1930 | |
| 1931 | int |
| 1932 | main () |
| 1933 | { |
| 1934 | #ifndef __GNUC__ |
| 1935 | choke me |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1936 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1937 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1938 | ; |
| 1939 | return 0; |
| 1940 | } |
| 1941 | _ACEOF |
| 1942 | rm -f conftest.$ac_objext |
| 1943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1944 | (eval $ac_compile) 2>conftest.er1 |
| 1945 | ac_status=$? |
| 1946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1947 | rm -f conftest.er1 |
| 1948 | cat conftest.err >&5 |
| 1949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1950 | (exit $ac_status); } && |
| 1951 | { ac_try='test -z "$ac_c_werror_flag" |
| 1952 | || test ! -s conftest.err' |
| 1953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1954 | (eval $ac_try) 2>&5 |
| 1955 | ac_status=$? |
| 1956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1957 | (exit $ac_status); }; } && |
| 1958 | { ac_try='test -s conftest.$ac_objext' |
| 1959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1960 | (eval $ac_try) 2>&5 |
| 1961 | ac_status=$? |
| 1962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1963 | (exit $ac_status); }; }; then |
| 1964 | ac_compiler_gnu=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1965 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1966 | echo "$as_me: failed program was:" >&5 |
| 1967 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1968 | |
| 1969 | ac_compiler_gnu=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1970 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1972 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1973 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1974 | fi |
| 1975 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1976 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1977 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1978 | ac_test_CFLAGS=${CFLAGS+set} |
| 1979 | ac_save_CFLAGS=$CFLAGS |
| 1980 | CFLAGS="-g" |
| 1981 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1982 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1983 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1985 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 1986 | cat >conftest.$ac_ext <<_ACEOF |
| 1987 | /* confdefs.h. */ |
| 1988 | _ACEOF |
| 1989 | cat confdefs.h >>conftest.$ac_ext |
| 1990 | cat >>conftest.$ac_ext <<_ACEOF |
| 1991 | /* end confdefs.h. */ |
| 1992 | |
| 1993 | int |
| 1994 | main () |
| 1995 | { |
| 1996 | |
| 1997 | ; |
| 1998 | return 0; |
| 1999 | } |
| 2000 | _ACEOF |
| 2001 | rm -f conftest.$ac_objext |
| 2002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2003 | (eval $ac_compile) 2>conftest.er1 |
| 2004 | ac_status=$? |
| 2005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2006 | rm -f conftest.er1 |
| 2007 | cat conftest.err >&5 |
| 2008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2009 | (exit $ac_status); } && |
| 2010 | { ac_try='test -z "$ac_c_werror_flag" |
| 2011 | || test ! -s conftest.err' |
| 2012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2013 | (eval $ac_try) 2>&5 |
| 2014 | ac_status=$? |
| 2015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2016 | (exit $ac_status); }; } && |
| 2017 | { ac_try='test -s conftest.$ac_objext' |
| 2018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2019 | (eval $ac_try) 2>&5 |
| 2020 | ac_status=$? |
| 2021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2022 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2023 | ac_cv_prog_cc_g=yes |
| 2024 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2025 | echo "$as_me: failed program was:" >&5 |
| 2026 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2027 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2028 | ac_cv_prog_cc_g=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2029 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2031 | fi |
| 2032 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2033 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2034 | if test "$ac_test_CFLAGS" = set; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2035 | CFLAGS=$ac_save_CFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2036 | elif test $ac_cv_prog_cc_g = yes; then |
| 2037 | if test "$GCC" = yes; then |
| 2038 | CFLAGS="-g -O2" |
| 2039 | else |
| 2040 | CFLAGS="-g" |
| 2041 | fi |
| 2042 | else |
| 2043 | if test "$GCC" = yes; then |
| 2044 | CFLAGS="-O2" |
| 2045 | else |
| 2046 | CFLAGS= |
| 2047 | fi |
| 2048 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2049 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2050 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2051 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2053 | else |
| 2054 | ac_cv_prog_cc_stdc=no |
| 2055 | ac_save_CC=$CC |
| 2056 | cat >conftest.$ac_ext <<_ACEOF |
| 2057 | /* confdefs.h. */ |
| 2058 | _ACEOF |
| 2059 | cat confdefs.h >>conftest.$ac_ext |
| 2060 | cat >>conftest.$ac_ext <<_ACEOF |
| 2061 | /* end confdefs.h. */ |
| 2062 | #include <stdarg.h> |
| 2063 | #include <stdio.h> |
| 2064 | #include <sys/types.h> |
| 2065 | #include <sys/stat.h> |
| 2066 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2067 | struct buf { int x; }; |
| 2068 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2069 | static char *e (p, i) |
| 2070 | char **p; |
| 2071 | int i; |
| 2072 | { |
| 2073 | return p[i]; |
| 2074 | } |
| 2075 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2076 | { |
| 2077 | char *s; |
| 2078 | va_list v; |
| 2079 | va_start (v,p); |
| 2080 | s = g (p, va_arg (v,int)); |
| 2081 | va_end (v); |
| 2082 | return s; |
| 2083 | } |
| 2084 | |
| 2085 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2086 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2087 | These don't provoke an error unfortunately, instead are silently treated |
| 2088 | as 'x'. The following induces an error, until -std1 is added to get |
| 2089 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2090 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2091 | that's true only with -std1. */ |
| 2092 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2093 | |
| 2094 | int test (int i, double x); |
| 2095 | struct s1 {int (*f) (int a);}; |
| 2096 | struct s2 {int (*f) (double a);}; |
| 2097 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2098 | int argc; |
| 2099 | char **argv; |
| 2100 | int |
| 2101 | main () |
| 2102 | { |
| 2103 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2104 | ; |
| 2105 | return 0; |
| 2106 | } |
| 2107 | _ACEOF |
| 2108 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2109 | # breaks some systems' header files. |
| 2110 | # AIX -qlanglvl=ansi |
| 2111 | # Ultrix and OSF/1 -std1 |
| 2112 | # HP-UX 10.20 and later -Ae |
| 2113 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2114 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2115 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2116 | do |
| 2117 | CC="$ac_save_CC $ac_arg" |
| 2118 | rm -f conftest.$ac_objext |
| 2119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2120 | (eval $ac_compile) 2>conftest.er1 |
| 2121 | ac_status=$? |
| 2122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2123 | rm -f conftest.er1 |
| 2124 | cat conftest.err >&5 |
| 2125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2126 | (exit $ac_status); } && |
| 2127 | { ac_try='test -z "$ac_c_werror_flag" |
| 2128 | || test ! -s conftest.err' |
| 2129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2130 | (eval $ac_try) 2>&5 |
| 2131 | ac_status=$? |
| 2132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2133 | (exit $ac_status); }; } && |
| 2134 | { ac_try='test -s conftest.$ac_objext' |
| 2135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2136 | (eval $ac_try) 2>&5 |
| 2137 | ac_status=$? |
| 2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2139 | (exit $ac_status); }; }; then |
| 2140 | ac_cv_prog_cc_stdc=$ac_arg |
| 2141 | break |
| 2142 | else |
| 2143 | echo "$as_me: failed program was:" >&5 |
| 2144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2145 | |
| 2146 | fi |
| 2147 | rm -f conftest.err conftest.$ac_objext |
| 2148 | done |
| 2149 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2150 | CC=$ac_save_CC |
| 2151 | |
| 2152 | fi |
| 2153 | |
| 2154 | case "x$ac_cv_prog_cc_stdc" in |
| 2155 | x|xno) |
| 2156 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2157 | echo "${ECHO_T}none needed" >&6 ;; |
| 2158 | *) |
| 2159 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2160 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2161 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2162 | esac |
| 2163 | |
| 2164 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2165 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2166 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2167 | # the declaration of exit, since it's the most demanding environment. |
| 2168 | cat >conftest.$ac_ext <<_ACEOF |
| 2169 | #ifndef __cplusplus |
| 2170 | choke me |
| 2171 | #endif |
| 2172 | _ACEOF |
| 2173 | rm -f conftest.$ac_objext |
| 2174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2175 | (eval $ac_compile) 2>conftest.er1 |
| 2176 | ac_status=$? |
| 2177 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2178 | rm -f conftest.er1 |
| 2179 | cat conftest.err >&5 |
| 2180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2181 | (exit $ac_status); } && |
| 2182 | { ac_try='test -z "$ac_c_werror_flag" |
| 2183 | || test ! -s conftest.err' |
| 2184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2185 | (eval $ac_try) 2>&5 |
| 2186 | ac_status=$? |
| 2187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2188 | (exit $ac_status); }; } && |
| 2189 | { ac_try='test -s conftest.$ac_objext' |
| 2190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2191 | (eval $ac_try) 2>&5 |
| 2192 | ac_status=$? |
| 2193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2194 | (exit $ac_status); }; }; then |
| 2195 | for ac_declaration in \ |
| 2196 | '' \ |
| 2197 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2198 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2199 | 'extern "C" void exit (int) throw ();' \ |
| 2200 | 'extern "C" void exit (int);' \ |
| 2201 | 'void exit (int);' |
| 2202 | do |
| 2203 | cat >conftest.$ac_ext <<_ACEOF |
| 2204 | /* confdefs.h. */ |
| 2205 | _ACEOF |
| 2206 | cat confdefs.h >>conftest.$ac_ext |
| 2207 | cat >>conftest.$ac_ext <<_ACEOF |
| 2208 | /* end confdefs.h. */ |
| 2209 | $ac_declaration |
| 2210 | #include <stdlib.h> |
| 2211 | int |
| 2212 | main () |
| 2213 | { |
| 2214 | exit (42); |
| 2215 | ; |
| 2216 | return 0; |
| 2217 | } |
| 2218 | _ACEOF |
| 2219 | rm -f conftest.$ac_objext |
| 2220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2221 | (eval $ac_compile) 2>conftest.er1 |
| 2222 | ac_status=$? |
| 2223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2224 | rm -f conftest.er1 |
| 2225 | cat conftest.err >&5 |
| 2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2227 | (exit $ac_status); } && |
| 2228 | { ac_try='test -z "$ac_c_werror_flag" |
| 2229 | || test ! -s conftest.err' |
| 2230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2231 | (eval $ac_try) 2>&5 |
| 2232 | ac_status=$? |
| 2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2234 | (exit $ac_status); }; } && |
| 2235 | { ac_try='test -s conftest.$ac_objext' |
| 2236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2237 | (eval $ac_try) 2>&5 |
| 2238 | ac_status=$? |
| 2239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2240 | (exit $ac_status); }; }; then |
| 2241 | : |
| 2242 | else |
| 2243 | echo "$as_me: failed program was:" >&5 |
| 2244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2245 | |
| 2246 | continue |
| 2247 | fi |
| 2248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2249 | cat >conftest.$ac_ext <<_ACEOF |
| 2250 | /* confdefs.h. */ |
| 2251 | _ACEOF |
| 2252 | cat confdefs.h >>conftest.$ac_ext |
| 2253 | cat >>conftest.$ac_ext <<_ACEOF |
| 2254 | /* end confdefs.h. */ |
| 2255 | $ac_declaration |
| 2256 | int |
| 2257 | main () |
| 2258 | { |
| 2259 | exit (42); |
| 2260 | ; |
| 2261 | return 0; |
| 2262 | } |
| 2263 | _ACEOF |
| 2264 | rm -f conftest.$ac_objext |
| 2265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2266 | (eval $ac_compile) 2>conftest.er1 |
| 2267 | ac_status=$? |
| 2268 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2269 | rm -f conftest.er1 |
| 2270 | cat conftest.err >&5 |
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2272 | (exit $ac_status); } && |
| 2273 | { ac_try='test -z "$ac_c_werror_flag" |
| 2274 | || test ! -s conftest.err' |
| 2275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2276 | (eval $ac_try) 2>&5 |
| 2277 | ac_status=$? |
| 2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2279 | (exit $ac_status); }; } && |
| 2280 | { ac_try='test -s conftest.$ac_objext' |
| 2281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2282 | (eval $ac_try) 2>&5 |
| 2283 | ac_status=$? |
| 2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2285 | (exit $ac_status); }; }; then |
| 2286 | break |
| 2287 | else |
| 2288 | echo "$as_me: failed program was:" >&5 |
| 2289 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2290 | |
| 2291 | fi |
| 2292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2293 | done |
| 2294 | rm -f conftest* |
| 2295 | if test -n "$ac_declaration"; then |
| 2296 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2297 | echo $ac_declaration >>confdefs.h |
| 2298 | echo '#endif' >>confdefs.h |
| 2299 | fi |
| 2300 | |
| 2301 | else |
| 2302 | echo "$as_me: failed program was:" >&5 |
| 2303 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2304 | |
| 2305 | fi |
| 2306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2307 | ac_ext=c |
| 2308 | ac_cpp='$CPP $CPPFLAGS' |
| 2309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2312 | ac_ext=c |
| 2313 | ac_cpp='$CPP $CPPFLAGS' |
| 2314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2317 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2318 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2319 | # On Suns, sometimes $CPP names a directory. |
| 2320 | if test -n "$CPP" && test -d "$CPP"; then |
| 2321 | CPP= |
| 2322 | fi |
| 2323 | if test -z "$CPP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2324 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2326 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2327 | # Double quotes because CPP needs to be expanded |
| 2328 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2329 | do |
| 2330 | ac_preproc_ok=false |
| 2331 | for ac_c_preproc_warn_flag in '' yes |
| 2332 | do |
| 2333 | # Use a header file that comes with gcc, so configuring glibc |
| 2334 | # with a fresh cross-compiler works. |
| 2335 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2336 | # <limits.h> exists even on freestanding compilers. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2337 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2338 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2339 | cat >conftest.$ac_ext <<_ACEOF |
| 2340 | /* confdefs.h. */ |
| 2341 | _ACEOF |
| 2342 | cat confdefs.h >>conftest.$ac_ext |
| 2343 | cat >>conftest.$ac_ext <<_ACEOF |
| 2344 | /* end confdefs.h. */ |
| 2345 | #ifdef __STDC__ |
| 2346 | # include <limits.h> |
| 2347 | #else |
| 2348 | # include <assert.h> |
| 2349 | #endif |
| 2350 | Syntax error |
| 2351 | _ACEOF |
| 2352 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2353 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2354 | ac_status=$? |
| 2355 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2356 | rm -f conftest.er1 |
| 2357 | cat conftest.err >&5 |
| 2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2359 | (exit $ac_status); } >/dev/null; then |
| 2360 | if test -s conftest.err; then |
| 2361 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2362 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2363 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2364 | ac_cpp_err= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2365 | fi |
| 2366 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2367 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2368 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2369 | if test -z "$ac_cpp_err"; then |
| 2370 | : |
| 2371 | else |
| 2372 | echo "$as_me: failed program was:" >&5 |
| 2373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2374 | |
| 2375 | # Broken: fails on valid input. |
| 2376 | continue |
| 2377 | fi |
| 2378 | rm -f conftest.err conftest.$ac_ext |
| 2379 | |
| 2380 | # OK, works on sane cases. Now check whether non-existent headers |
| 2381 | # can be detected and how. |
| 2382 | cat >conftest.$ac_ext <<_ACEOF |
| 2383 | /* confdefs.h. */ |
| 2384 | _ACEOF |
| 2385 | cat confdefs.h >>conftest.$ac_ext |
| 2386 | cat >>conftest.$ac_ext <<_ACEOF |
| 2387 | /* end confdefs.h. */ |
| 2388 | #include <ac_nonexistent.h> |
| 2389 | _ACEOF |
| 2390 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2391 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2392 | ac_status=$? |
| 2393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2394 | rm -f conftest.er1 |
| 2395 | cat conftest.err >&5 |
| 2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2397 | (exit $ac_status); } >/dev/null; then |
| 2398 | if test -s conftest.err; then |
| 2399 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2400 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2401 | else |
| 2402 | ac_cpp_err= |
| 2403 | fi |
| 2404 | else |
| 2405 | ac_cpp_err=yes |
| 2406 | fi |
| 2407 | if test -z "$ac_cpp_err"; then |
| 2408 | # Broken: success on invalid input. |
| 2409 | continue |
| 2410 | else |
| 2411 | echo "$as_me: failed program was:" >&5 |
| 2412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2413 | |
| 2414 | # Passes both tests. |
| 2415 | ac_preproc_ok=: |
| 2416 | break |
| 2417 | fi |
| 2418 | rm -f conftest.err conftest.$ac_ext |
| 2419 | |
| 2420 | done |
| 2421 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2422 | rm -f conftest.err conftest.$ac_ext |
| 2423 | if $ac_preproc_ok; then |
| 2424 | break |
| 2425 | fi |
| 2426 | |
| 2427 | done |
| 2428 | ac_cv_prog_CPP=$CPP |
| 2429 | |
| 2430 | fi |
| 2431 | CPP=$ac_cv_prog_CPP |
| 2432 | else |
| 2433 | ac_cv_prog_CPP=$CPP |
| 2434 | fi |
| 2435 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2436 | echo "${ECHO_T}$CPP" >&6 |
| 2437 | ac_preproc_ok=false |
| 2438 | for ac_c_preproc_warn_flag in '' yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2439 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2440 | # Use a header file that comes with gcc, so configuring glibc |
| 2441 | # with a fresh cross-compiler works. |
| 2442 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2443 | # <limits.h> exists even on freestanding compilers. |
| 2444 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2445 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2446 | cat >conftest.$ac_ext <<_ACEOF |
| 2447 | /* confdefs.h. */ |
| 2448 | _ACEOF |
| 2449 | cat confdefs.h >>conftest.$ac_ext |
| 2450 | cat >>conftest.$ac_ext <<_ACEOF |
| 2451 | /* end confdefs.h. */ |
| 2452 | #ifdef __STDC__ |
| 2453 | # include <limits.h> |
| 2454 | #else |
| 2455 | # include <assert.h> |
| 2456 | #endif |
| 2457 | Syntax error |
| 2458 | _ACEOF |
| 2459 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2460 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2461 | ac_status=$? |
| 2462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2463 | rm -f conftest.er1 |
| 2464 | cat conftest.err >&5 |
| 2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2466 | (exit $ac_status); } >/dev/null; then |
| 2467 | if test -s conftest.err; then |
| 2468 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2469 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2470 | else |
| 2471 | ac_cpp_err= |
| 2472 | fi |
| 2473 | else |
| 2474 | ac_cpp_err=yes |
| 2475 | fi |
| 2476 | if test -z "$ac_cpp_err"; then |
| 2477 | : |
| 2478 | else |
| 2479 | echo "$as_me: failed program was:" >&5 |
| 2480 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2481 | |
| 2482 | # Broken: fails on valid input. |
| 2483 | continue |
| 2484 | fi |
| 2485 | rm -f conftest.err conftest.$ac_ext |
| 2486 | |
| 2487 | # OK, works on sane cases. Now check whether non-existent headers |
| 2488 | # can be detected and how. |
| 2489 | cat >conftest.$ac_ext <<_ACEOF |
| 2490 | /* confdefs.h. */ |
| 2491 | _ACEOF |
| 2492 | cat confdefs.h >>conftest.$ac_ext |
| 2493 | cat >>conftest.$ac_ext <<_ACEOF |
| 2494 | /* end confdefs.h. */ |
| 2495 | #include <ac_nonexistent.h> |
| 2496 | _ACEOF |
| 2497 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2498 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2499 | ac_status=$? |
| 2500 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2501 | rm -f conftest.er1 |
| 2502 | cat conftest.err >&5 |
| 2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2504 | (exit $ac_status); } >/dev/null; then |
| 2505 | if test -s conftest.err; then |
| 2506 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2507 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2508 | else |
| 2509 | ac_cpp_err= |
| 2510 | fi |
| 2511 | else |
| 2512 | ac_cpp_err=yes |
| 2513 | fi |
| 2514 | if test -z "$ac_cpp_err"; then |
| 2515 | # Broken: success on invalid input. |
| 2516 | continue |
| 2517 | else |
| 2518 | echo "$as_me: failed program was:" >&5 |
| 2519 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2520 | |
| 2521 | # Passes both tests. |
| 2522 | ac_preproc_ok=: |
| 2523 | break |
| 2524 | fi |
| 2525 | rm -f conftest.err conftest.$ac_ext |
| 2526 | |
| 2527 | done |
| 2528 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2529 | rm -f conftest.err conftest.$ac_ext |
| 2530 | if $ac_preproc_ok; then |
| 2531 | : |
| 2532 | else |
| 2533 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2534 | See \`config.log' for more details." >&5 |
| 2535 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2536 | See \`config.log' for more details." >&2;} |
| 2537 | { (exit 1); exit 1; }; } |
| 2538 | fi |
| 2539 | |
| 2540 | ac_ext=c |
| 2541 | ac_cpp='$CPP $CPPFLAGS' |
| 2542 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2543 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2544 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2545 | |
| 2546 | |
| 2547 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2548 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2549 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2551 | else |
| 2552 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2553 | then ac_cv_prog_egrep='grep -E' |
| 2554 | else ac_cv_prog_egrep='egrep' |
| 2555 | fi |
| 2556 | fi |
| 2557 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2558 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2559 | EGREP=$ac_cv_prog_egrep |
| 2560 | |
| 2561 | |
| 2562 | cat >conftest.$ac_ext <<_ACEOF |
| 2563 | /* confdefs.h. */ |
| 2564 | _ACEOF |
| 2565 | cat confdefs.h >>conftest.$ac_ext |
| 2566 | cat >>conftest.$ac_ext <<_ACEOF |
| 2567 | /* end confdefs.h. */ |
| 2568 | |
| 2569 | _ACEOF |
| 2570 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2571 | $EGREP "" >/dev/null 2>&1; then |
| 2572 | : |
| 2573 | fi |
| 2574 | rm -f conftest* |
| 2575 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
| 2576 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
| 2577 | if test "${ac_cv_search_strerror+set}" = set; then |
| 2578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2579 | else |
| 2580 | ac_func_search_save_LIBS=$LIBS |
| 2581 | ac_cv_search_strerror=no |
| 2582 | cat >conftest.$ac_ext <<_ACEOF |
| 2583 | /* confdefs.h. */ |
| 2584 | _ACEOF |
| 2585 | cat confdefs.h >>conftest.$ac_ext |
| 2586 | cat >>conftest.$ac_ext <<_ACEOF |
| 2587 | /* end confdefs.h. */ |
| 2588 | |
| 2589 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2590 | #ifdef __cplusplus |
| 2591 | extern "C" |
| 2592 | #endif |
| 2593 | /* We use char because int might match the return type of a gcc2 |
| 2594 | builtin and then its argument prototype would still apply. */ |
| 2595 | char strerror (); |
| 2596 | int |
| 2597 | main () |
| 2598 | { |
| 2599 | strerror (); |
| 2600 | ; |
| 2601 | return 0; |
| 2602 | } |
| 2603 | _ACEOF |
| 2604 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2606 | (eval $ac_link) 2>conftest.er1 |
| 2607 | ac_status=$? |
| 2608 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2609 | rm -f conftest.er1 |
| 2610 | cat conftest.err >&5 |
| 2611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2612 | (exit $ac_status); } && |
| 2613 | { ac_try='test -z "$ac_c_werror_flag" |
| 2614 | || test ! -s conftest.err' |
| 2615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2616 | (eval $ac_try) 2>&5 |
| 2617 | ac_status=$? |
| 2618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2619 | (exit $ac_status); }; } && |
| 2620 | { ac_try='test -s conftest$ac_exeext' |
| 2621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2622 | (eval $ac_try) 2>&5 |
| 2623 | ac_status=$? |
| 2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2625 | (exit $ac_status); }; }; then |
| 2626 | ac_cv_search_strerror="none required" |
| 2627 | else |
| 2628 | echo "$as_me: failed program was:" >&5 |
| 2629 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2630 | |
| 2631 | fi |
| 2632 | rm -f conftest.err conftest.$ac_objext \ |
| 2633 | conftest$ac_exeext conftest.$ac_ext |
| 2634 | if test "$ac_cv_search_strerror" = no; then |
| 2635 | for ac_lib in cposix; do |
| 2636 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 2637 | cat >conftest.$ac_ext <<_ACEOF |
| 2638 | /* confdefs.h. */ |
| 2639 | _ACEOF |
| 2640 | cat confdefs.h >>conftest.$ac_ext |
| 2641 | cat >>conftest.$ac_ext <<_ACEOF |
| 2642 | /* end confdefs.h. */ |
| 2643 | |
| 2644 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2645 | #ifdef __cplusplus |
| 2646 | extern "C" |
| 2647 | #endif |
| 2648 | /* We use char because int might match the return type of a gcc2 |
| 2649 | builtin and then its argument prototype would still apply. */ |
| 2650 | char strerror (); |
| 2651 | int |
| 2652 | main () |
| 2653 | { |
| 2654 | strerror (); |
| 2655 | ; |
| 2656 | return 0; |
| 2657 | } |
| 2658 | _ACEOF |
| 2659 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2661 | (eval $ac_link) 2>conftest.er1 |
| 2662 | ac_status=$? |
| 2663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2664 | rm -f conftest.er1 |
| 2665 | cat conftest.err >&5 |
| 2666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2667 | (exit $ac_status); } && |
| 2668 | { ac_try='test -z "$ac_c_werror_flag" |
| 2669 | || test ! -s conftest.err' |
| 2670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2671 | (eval $ac_try) 2>&5 |
| 2672 | ac_status=$? |
| 2673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2674 | (exit $ac_status); }; } && |
| 2675 | { ac_try='test -s conftest$ac_exeext' |
| 2676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2677 | (eval $ac_try) 2>&5 |
| 2678 | ac_status=$? |
| 2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2680 | (exit $ac_status); }; }; then |
| 2681 | ac_cv_search_strerror="-l$ac_lib" |
| 2682 | break |
| 2683 | else |
| 2684 | echo "$as_me: failed program was:" >&5 |
| 2685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2686 | |
| 2687 | fi |
| 2688 | rm -f conftest.err conftest.$ac_objext \ |
| 2689 | conftest$ac_exeext conftest.$ac_ext |
| 2690 | done |
| 2691 | fi |
| 2692 | LIBS=$ac_func_search_save_LIBS |
| 2693 | fi |
| 2694 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
| 2695 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
| 2696 | if test "$ac_cv_search_strerror" != no; then |
| 2697 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
| 2698 | |
| 2699 | fi |
| 2700 | for ac_prog in gawk mawk nawk awk |
| 2701 | do |
| 2702 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2703 | set dummy $ac_prog; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2706 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 2707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2708 | else |
| 2709 | if test -n "$AWK"; then |
| 2710 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2711 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2713 | for as_dir in $PATH |
| 2714 | do |
| 2715 | IFS=$as_save_IFS |
| 2716 | test -z "$as_dir" && as_dir=. |
| 2717 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2719 | ac_cv_prog_AWK="$ac_prog" |
| 2720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2721 | break 2 |
| 2722 | fi |
| 2723 | done |
| 2724 | done |
| 2725 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2726 | fi |
| 2727 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2728 | AWK=$ac_cv_prog_AWK |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2729 | if test -n "$AWK"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2730 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 2731 | echo "${ECHO_T}$AWK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2732 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2733 | echo "$as_me:$LINENO: result: no" >&5 |
| 2734 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2735 | fi |
| 2736 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2737 | test -n "$AWK" && break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2738 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2739 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2740 | # Extract the first word of "strip", so it can be a program name with args. |
| 2741 | set dummy strip; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2744 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 2745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2746 | else |
| 2747 | if test -n "$STRIP"; then |
| 2748 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2749 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2751 | for as_dir in $PATH |
| 2752 | do |
| 2753 | IFS=$as_save_IFS |
| 2754 | test -z "$as_dir" && as_dir=. |
| 2755 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2757 | ac_cv_prog_STRIP="strip" |
| 2758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2759 | break 2 |
| 2760 | fi |
| 2761 | done |
| 2762 | done |
| 2763 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2764 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 2765 | fi |
| 2766 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2767 | STRIP=$ac_cv_prog_STRIP |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2768 | if test -n "$STRIP"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2769 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 2770 | echo "${ECHO_T}$STRIP" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2771 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2772 | echo "$as_me:$LINENO: result: no" >&5 |
| 2773 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2774 | fi |
| 2775 | |
| 2776 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2777 | |
| 2778 | |
| 2779 | if test -z "$CFLAGS"; then |
| 2780 | CFLAGS="-O" |
| 2781 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 2782 | fi |
| 2783 | if test "$GCC" = yes; then |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 2784 | gccversion=`"$CC" -dumpversion` |
| 2785 | if test "x$gccversion" = "x"; then |
| 2786 | gccversion=`"$CC" --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
| 2787 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 2788 | 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] | 2789 | 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] | 2790 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 2791 | else |
| 2792 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 2793 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 2794 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 2795 | fi |
| 2796 | fi |
| 2797 | fi |
| 2798 | |
| 2799 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2800 | { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS |
| 2801 | (cross compiling doesn't work)" >&5 |
| 2802 | echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS |
| 2803 | (cross compiling doesn't work)" >&2;} |
| 2804 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2805 | fi |
| 2806 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2807 | test "$GCC" = yes && CPP_MM=M; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2808 | |
| 2809 | if test -f ./toolcheck; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2810 | { echo "$as_me:$LINENO: checking for buggy tools..." >&5 |
| 2811 | echo "$as_me: checking for buggy tools..." >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2812 | sh ./toolcheck 1>&6 |
| 2813 | fi |
| 2814 | |
| 2815 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 2816 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2817 | echo "$as_me:$LINENO: checking for BeOS" >&5 |
| 2818 | echo $ECHO_N "checking for BeOS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2819 | case `uname` in |
| 2820 | 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] | 2821 | BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2822 | echo "${ECHO_T}yes" >&6;; |
| 2823 | *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2824 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2825 | esac |
| 2826 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2827 | echo "$as_me:$LINENO: checking for QNX" >&5 |
| 2828 | echo $ECHO_N "checking for QNX... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2829 | case `uname` in |
| 2830 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 2831 | test -z "$with_x" && with_x=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2832 | QNX=yes; echo "$as_me:$LINENO: result: yes" >&5 |
| 2833 | echo "${ECHO_T}yes" >&6;; |
| 2834 | *) QNX=no; echo "$as_me:$LINENO: result: no" >&5 |
| 2835 | echo "${ECHO_T}no" >&6;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2836 | esac |
| 2837 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2838 | echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 |
| 2839 | echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2840 | if test "`(uname) 2>/dev/null`" = Darwin; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2841 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2842 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2843 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2844 | echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 |
| 2845 | echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2846 | # Check whether --enable-darwin or --disable-darwin was given. |
| 2847 | if test "${enable_darwin+set}" = set; then |
| 2848 | enableval="$enable_darwin" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2849 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2850 | else |
| 2851 | enable_darwin="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2852 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2853 | if test "$enable_darwin" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2854 | echo "$as_me:$LINENO: result: no" >&5 |
| 2855 | echo "${ECHO_T}no" >&6 |
| 2856 | echo "$as_me:$LINENO: checking if Darwin files are there" >&5 |
| 2857 | echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2858 | if test -f os_macosx.c; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2859 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2860 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2861 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2862 | echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 |
| 2863 | echo "${ECHO_T}no, Darwin support disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2864 | enable_darwin=no |
| 2865 | fi |
| 2866 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 2867 | echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 |
| 2868 | echo "${ECHO_T}yes, Darwin support excluded" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2869 | fi |
| 2870 | |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2871 | echo "$as_me:$LINENO: checking --with-mac-arch argument" >&5 |
| 2872 | echo $ECHO_N "checking --with-mac-arch argument... $ECHO_C" >&6 |
| 2873 | |
| 2874 | # Check whether --with-mac-arch or --without-mac-arch was given. |
| 2875 | if test "${with_mac_arch+set}" = set; then |
| 2876 | withval="$with_mac_arch" |
| 2877 | MACARCH="$withval"; echo "$as_me:$LINENO: result: $MACARCH" >&5 |
| 2878 | echo "${ECHO_T}$MACARCH" >&6 |
| 2879 | else |
Bram Moolenaar | 899dddf | 2006-03-26 21:06:50 +0000 | [diff] [blame] | 2880 | MACARCH="current"; echo "$as_me:$LINENO: result: defaulting to $MACARCH" >&5 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2881 | echo "${ECHO_T}defaulting to $MACARCH" >&6 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2882 | fi; |
| 2883 | |
| 2884 | if test "x$MACARCH" = "xboth"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2885 | echo "$as_me:$LINENO: checking for 10.4 universal SDK" >&5 |
| 2886 | echo $ECHO_N "checking for 10.4 universal SDK... $ECHO_C" >&6 |
| 2887 | save_cppflags="$CPPFLAGS" |
| 2888 | save_cflags="$CFLAGS" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2889 | save_ldflags="$LDFLAGS" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2890 | CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2891 | cat >conftest.$ac_ext <<_ACEOF |
| 2892 | /* confdefs.h. */ |
| 2893 | _ACEOF |
| 2894 | cat confdefs.h >>conftest.$ac_ext |
| 2895 | cat >>conftest.$ac_ext <<_ACEOF |
| 2896 | /* end confdefs.h. */ |
| 2897 | |
| 2898 | int |
| 2899 | main () |
| 2900 | { |
| 2901 | |
| 2902 | ; |
| 2903 | return 0; |
| 2904 | } |
| 2905 | _ACEOF |
| 2906 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2908 | (eval $ac_link) 2>conftest.er1 |
| 2909 | ac_status=$? |
| 2910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2911 | rm -f conftest.er1 |
| 2912 | cat conftest.err >&5 |
| 2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2914 | (exit $ac_status); } && |
| 2915 | { ac_try='test -z "$ac_c_werror_flag" |
| 2916 | || test ! -s conftest.err' |
| 2917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2918 | (eval $ac_try) 2>&5 |
| 2919 | ac_status=$? |
| 2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2921 | (exit $ac_status); }; } && |
| 2922 | { ac_try='test -s conftest$ac_exeext' |
| 2923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2924 | (eval $ac_try) 2>&5 |
| 2925 | ac_status=$? |
| 2926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2927 | (exit $ac_status); }; }; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2928 | echo "$as_me:$LINENO: result: found" >&5 |
| 2929 | echo "${ECHO_T}found" >&6 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2930 | else |
| 2931 | echo "$as_me: failed program was:" >&5 |
| 2932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2933 | |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2934 | echo "$as_me:$LINENO: result: not found" >&5 |
| 2935 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 1f35bf9 | 2006-03-07 22:38:47 +0000 | [diff] [blame] | 2936 | CFLAGS="$save_cflags" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2937 | echo "$as_me:$LINENO: checking if Intel architecture is supported" >&5 |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2938 | echo $ECHO_N "checking if Intel architecture is supported... $ECHO_C" >&6 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2939 | CPPFLAGS="$CPPFLAGS -arch i386" |
| 2940 | LDFLAGS="$save_ldflags -arch i386" |
| 2941 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2942 | /* confdefs.h. */ |
| 2943 | _ACEOF |
| 2944 | cat confdefs.h >>conftest.$ac_ext |
| 2945 | cat >>conftest.$ac_ext <<_ACEOF |
| 2946 | /* end confdefs.h. */ |
| 2947 | |
| 2948 | int |
| 2949 | main () |
| 2950 | { |
| 2951 | |
| 2952 | ; |
| 2953 | return 0; |
| 2954 | } |
| 2955 | _ACEOF |
| 2956 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2958 | (eval $ac_link) 2>conftest.er1 |
| 2959 | ac_status=$? |
| 2960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2961 | rm -f conftest.er1 |
| 2962 | cat conftest.err >&5 |
| 2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2964 | (exit $ac_status); } && |
| 2965 | { ac_try='test -z "$ac_c_werror_flag" |
| 2966 | || test ! -s conftest.err' |
| 2967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2968 | (eval $ac_try) 2>&5 |
| 2969 | ac_status=$? |
| 2970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2971 | (exit $ac_status); }; } && |
| 2972 | { ac_try='test -s conftest$ac_exeext' |
| 2973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2974 | (eval $ac_try) 2>&5 |
| 2975 | ac_status=$? |
| 2976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2977 | (exit $ac_status); }; }; then |
| 2978 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2979 | echo "${ECHO_T}yes" >&6; MACARCH="intel" |
| 2980 | else |
| 2981 | echo "$as_me: failed program was:" >&5 |
| 2982 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2983 | |
| 2984 | echo "$as_me:$LINENO: result: no" >&5 |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2985 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 2986 | MACARCH="ppc" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2987 | CPPFLAGS="$save_cppflags -arch ppc" |
| 2988 | LDFLAGS="$save_ldflags -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 2989 | fi |
| 2990 | rm -f conftest.err conftest.$ac_objext \ |
| 2991 | conftest$ac_exeext conftest.$ac_ext |
| 2992 | fi |
| 2993 | rm -f conftest.err conftest.$ac_objext \ |
| 2994 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2995 | elif test "x$MACARCH" = "xintel"; then |
| 2996 | CPPFLAGS="$CPPFLAGS -arch intel" |
| 2997 | LDFLAGS="$LDFLAGS -arch intel" |
Bram Moolenaar | e2f98b9 | 2006-03-29 21:18:24 +0000 | [diff] [blame] | 2998 | elif test "x$MACARCH" = "xppc"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 2999 | CPPFLAGS="$CPPFLAGS -arch ppc" |
| 3000 | LDFLAGS="$LDFLAGS -arch ppc" |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 3001 | fi |
| 3002 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3003 | if test "$enable_darwin" = "yes"; then |
| 3004 | MACOSX=yes |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 3005 | OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; |
| 3006 | OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 3007 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -no-cpp-precomp" |
| 3008 | if test "x$MACARCH" = "xboth"; then |
| 3009 | CPPFLAGS="$CPPFLAGS -I/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" |
| 3010 | else |
| 3011 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon" |
| 3012 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3013 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3014 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3015 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3016 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3018 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3019 | cat >conftest.$ac_ext <<_ACEOF |
| 3020 | /* confdefs.h. */ |
| 3021 | _ACEOF |
| 3022 | cat confdefs.h >>conftest.$ac_ext |
| 3023 | cat >>conftest.$ac_ext <<_ACEOF |
| 3024 | /* end confdefs.h. */ |
| 3025 | #include <stdlib.h> |
| 3026 | #include <stdarg.h> |
| 3027 | #include <string.h> |
| 3028 | #include <float.h> |
| 3029 | |
| 3030 | int |
| 3031 | main () |
| 3032 | { |
| 3033 | |
| 3034 | ; |
| 3035 | return 0; |
| 3036 | } |
| 3037 | _ACEOF |
| 3038 | rm -f conftest.$ac_objext |
| 3039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3040 | (eval $ac_compile) 2>conftest.er1 |
| 3041 | ac_status=$? |
| 3042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3043 | rm -f conftest.er1 |
| 3044 | cat conftest.err >&5 |
| 3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3046 | (exit $ac_status); } && |
| 3047 | { ac_try='test -z "$ac_c_werror_flag" |
| 3048 | || test ! -s conftest.err' |
| 3049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3050 | (eval $ac_try) 2>&5 |
| 3051 | ac_status=$? |
| 3052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3053 | (exit $ac_status); }; } && |
| 3054 | { ac_try='test -s conftest.$ac_objext' |
| 3055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3056 | (eval $ac_try) 2>&5 |
| 3057 | ac_status=$? |
| 3058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3059 | (exit $ac_status); }; }; then |
| 3060 | ac_cv_header_stdc=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3061 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3062 | echo "$as_me: failed program was:" >&5 |
| 3063 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3064 | |
| 3065 | ac_cv_header_stdc=no |
| 3066 | fi |
| 3067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3068 | |
| 3069 | if test $ac_cv_header_stdc = yes; then |
| 3070 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3071 | cat >conftest.$ac_ext <<_ACEOF |
| 3072 | /* confdefs.h. */ |
| 3073 | _ACEOF |
| 3074 | cat confdefs.h >>conftest.$ac_ext |
| 3075 | cat >>conftest.$ac_ext <<_ACEOF |
| 3076 | /* end confdefs.h. */ |
| 3077 | #include <string.h> |
| 3078 | |
| 3079 | _ACEOF |
| 3080 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3081 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3082 | : |
| 3083 | else |
| 3084 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3085 | fi |
| 3086 | rm -f conftest* |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3087 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3088 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3089 | |
| 3090 | if test $ac_cv_header_stdc = yes; then |
| 3091 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3092 | cat >conftest.$ac_ext <<_ACEOF |
| 3093 | /* confdefs.h. */ |
| 3094 | _ACEOF |
| 3095 | cat confdefs.h >>conftest.$ac_ext |
| 3096 | cat >>conftest.$ac_ext <<_ACEOF |
| 3097 | /* end confdefs.h. */ |
| 3098 | #include <stdlib.h> |
| 3099 | |
| 3100 | _ACEOF |
| 3101 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3102 | $EGREP "free" >/dev/null 2>&1; then |
| 3103 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3104 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3105 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3106 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3107 | rm -f conftest* |
| 3108 | |
| 3109 | fi |
| 3110 | |
| 3111 | if test $ac_cv_header_stdc = yes; then |
| 3112 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3113 | if test "$cross_compiling" = yes; then |
| 3114 | : |
| 3115 | else |
| 3116 | cat >conftest.$ac_ext <<_ACEOF |
| 3117 | /* confdefs.h. */ |
| 3118 | _ACEOF |
| 3119 | cat confdefs.h >>conftest.$ac_ext |
| 3120 | cat >>conftest.$ac_ext <<_ACEOF |
| 3121 | /* end confdefs.h. */ |
| 3122 | #include <ctype.h> |
| 3123 | #if ((' ' & 0x0FF) == 0x020) |
| 3124 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3125 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3126 | #else |
| 3127 | # define ISLOWER(c) \ |
| 3128 | (('a' <= (c) && (c) <= 'i') \ |
| 3129 | || ('j' <= (c) && (c) <= 'r') \ |
| 3130 | || ('s' <= (c) && (c) <= 'z')) |
| 3131 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3132 | #endif |
| 3133 | |
| 3134 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3135 | int |
| 3136 | main () |
| 3137 | { |
| 3138 | int i; |
| 3139 | for (i = 0; i < 256; i++) |
| 3140 | if (XOR (islower (i), ISLOWER (i)) |
| 3141 | || toupper (i) != TOUPPER (i)) |
| 3142 | exit(2); |
| 3143 | exit (0); |
| 3144 | } |
| 3145 | _ACEOF |
| 3146 | rm -f conftest$ac_exeext |
| 3147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3148 | (eval $ac_link) 2>&5 |
| 3149 | ac_status=$? |
| 3150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3151 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3153 | (eval $ac_try) 2>&5 |
| 3154 | ac_status=$? |
| 3155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3156 | (exit $ac_status); }; }; then |
| 3157 | : |
| 3158 | else |
| 3159 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3160 | echo "$as_me: failed program was:" >&5 |
| 3161 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3162 | |
| 3163 | ( exit $ac_status ) |
| 3164 | ac_cv_header_stdc=no |
| 3165 | fi |
| 3166 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3167 | fi |
| 3168 | fi |
| 3169 | fi |
| 3170 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3171 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3172 | if test $ac_cv_header_stdc = yes; then |
| 3173 | |
| 3174 | cat >>confdefs.h <<\_ACEOF |
| 3175 | #define STDC_HEADERS 1 |
| 3176 | _ACEOF |
| 3177 | |
| 3178 | fi |
| 3179 | |
| 3180 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3181 | |
| 3182 | |
| 3183 | |
| 3184 | |
| 3185 | |
| 3186 | |
| 3187 | |
| 3188 | |
| 3189 | |
| 3190 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3191 | inttypes.h stdint.h unistd.h |
| 3192 | do |
| 3193 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3194 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3195 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3196 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3198 | else |
| 3199 | cat >conftest.$ac_ext <<_ACEOF |
| 3200 | /* confdefs.h. */ |
| 3201 | _ACEOF |
| 3202 | cat confdefs.h >>conftest.$ac_ext |
| 3203 | cat >>conftest.$ac_ext <<_ACEOF |
| 3204 | /* end confdefs.h. */ |
| 3205 | $ac_includes_default |
| 3206 | |
| 3207 | #include <$ac_header> |
| 3208 | _ACEOF |
| 3209 | rm -f conftest.$ac_objext |
| 3210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3211 | (eval $ac_compile) 2>conftest.er1 |
| 3212 | ac_status=$? |
| 3213 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3214 | rm -f conftest.er1 |
| 3215 | cat conftest.err >&5 |
| 3216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3217 | (exit $ac_status); } && |
| 3218 | { ac_try='test -z "$ac_c_werror_flag" |
| 3219 | || test ! -s conftest.err' |
| 3220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3221 | (eval $ac_try) 2>&5 |
| 3222 | ac_status=$? |
| 3223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3224 | (exit $ac_status); }; } && |
| 3225 | { ac_try='test -s conftest.$ac_objext' |
| 3226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3227 | (eval $ac_try) 2>&5 |
| 3228 | ac_status=$? |
| 3229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3230 | (exit $ac_status); }; }; then |
| 3231 | eval "$as_ac_Header=yes" |
| 3232 | else |
| 3233 | echo "$as_me: failed program was:" >&5 |
| 3234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3235 | |
| 3236 | eval "$as_ac_Header=no" |
| 3237 | fi |
| 3238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3239 | fi |
| 3240 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3241 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3242 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3243 | cat >>confdefs.h <<_ACEOF |
| 3244 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3245 | _ACEOF |
| 3246 | |
| 3247 | fi |
| 3248 | |
| 3249 | done |
| 3250 | |
| 3251 | |
| 3252 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3253 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3254 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3255 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3257 | fi |
| 3258 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3259 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3260 | else |
| 3261 | # Is the header compilable? |
| 3262 | echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
| 3263 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 |
| 3264 | cat >conftest.$ac_ext <<_ACEOF |
| 3265 | /* confdefs.h. */ |
| 3266 | _ACEOF |
| 3267 | cat confdefs.h >>conftest.$ac_ext |
| 3268 | cat >>conftest.$ac_ext <<_ACEOF |
| 3269 | /* end confdefs.h. */ |
| 3270 | $ac_includes_default |
| 3271 | #include <Carbon/Carbon.h> |
| 3272 | _ACEOF |
| 3273 | rm -f conftest.$ac_objext |
| 3274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3275 | (eval $ac_compile) 2>conftest.er1 |
| 3276 | ac_status=$? |
| 3277 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3278 | rm -f conftest.er1 |
| 3279 | cat conftest.err >&5 |
| 3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3281 | (exit $ac_status); } && |
| 3282 | { ac_try='test -z "$ac_c_werror_flag" |
| 3283 | || test ! -s conftest.err' |
| 3284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3285 | (eval $ac_try) 2>&5 |
| 3286 | ac_status=$? |
| 3287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3288 | (exit $ac_status); }; } && |
| 3289 | { ac_try='test -s conftest.$ac_objext' |
| 3290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3291 | (eval $ac_try) 2>&5 |
| 3292 | ac_status=$? |
| 3293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3294 | (exit $ac_status); }; }; then |
| 3295 | ac_header_compiler=yes |
| 3296 | else |
| 3297 | echo "$as_me: failed program was:" >&5 |
| 3298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3299 | |
| 3300 | ac_header_compiler=no |
| 3301 | fi |
| 3302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3303 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3304 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3305 | |
| 3306 | # Is the header present? |
| 3307 | echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
| 3308 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 |
| 3309 | cat >conftest.$ac_ext <<_ACEOF |
| 3310 | /* confdefs.h. */ |
| 3311 | _ACEOF |
| 3312 | cat confdefs.h >>conftest.$ac_ext |
| 3313 | cat >>conftest.$ac_ext <<_ACEOF |
| 3314 | /* end confdefs.h. */ |
| 3315 | #include <Carbon/Carbon.h> |
| 3316 | _ACEOF |
| 3317 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3318 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3319 | ac_status=$? |
| 3320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3321 | rm -f conftest.er1 |
| 3322 | cat conftest.err >&5 |
| 3323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3324 | (exit $ac_status); } >/dev/null; then |
| 3325 | if test -s conftest.err; then |
| 3326 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3327 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3328 | else |
| 3329 | ac_cpp_err= |
| 3330 | fi |
| 3331 | else |
| 3332 | ac_cpp_err=yes |
| 3333 | fi |
| 3334 | if test -z "$ac_cpp_err"; then |
| 3335 | ac_header_preproc=yes |
| 3336 | else |
| 3337 | echo "$as_me: failed program was:" >&5 |
| 3338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3339 | |
| 3340 | ac_header_preproc=no |
| 3341 | fi |
| 3342 | rm -f conftest.err conftest.$ac_ext |
| 3343 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3344 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3345 | |
| 3346 | # So? What about this header? |
| 3347 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3348 | yes:no: ) |
| 3349 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3350 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3351 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
| 3352 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} |
| 3353 | ac_header_preproc=yes |
| 3354 | ;; |
| 3355 | no:yes:* ) |
| 3356 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
| 3357 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} |
| 3358 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
| 3359 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} |
| 3360 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 |
| 3361 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} |
| 3362 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3363 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3364 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
| 3365 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} |
| 3366 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
| 3367 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} |
| 3368 | ( |
| 3369 | cat <<\_ASBOX |
| 3370 | ## ------------------------------------------ ## |
| 3371 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3372 | ## ------------------------------------------ ## |
| 3373 | _ASBOX |
| 3374 | ) | |
| 3375 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3376 | ;; |
| 3377 | esac |
| 3378 | echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
| 3379 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 |
| 3380 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
| 3381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3382 | else |
| 3383 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc |
| 3384 | fi |
| 3385 | echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
| 3386 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 |
| 3387 | |
| 3388 | fi |
| 3389 | if test $ac_cv_header_Carbon_Carbon_h = yes; then |
| 3390 | CARBON=yes |
| 3391 | fi |
| 3392 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3393 | |
| 3394 | if test "x$CARBON" = "xyes"; then |
Bram Moolenaar | ab79bcb | 2004-07-18 21:34:53 +0000 | [diff] [blame] | 3395 | 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] | 3396 | with_x=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3397 | fi |
| 3398 | fi |
| 3399 | fi |
Bram Moolenaar | a23ccb8 | 2006-02-27 00:08:02 +0000 | [diff] [blame] | 3400 | |
Bram Moolenaar | fd2ac76 | 2006-03-01 22:09:21 +0000 | [diff] [blame] | 3401 | if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 3402 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` |
| 3403 | fi |
| 3404 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3405 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3406 | echo "$as_me:$LINENO: result: no" >&5 |
| 3407 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3408 | fi |
| 3409 | |
| 3410 | |
| 3411 | |
| 3412 | |
| 3413 | have_local_include='' |
| 3414 | have_local_lib='' |
| 3415 | if test "$GCC" = yes; then |
| 3416 | echo 'void f(){}' > conftest.c |
| 3417 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'` |
| 3418 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'` |
| 3419 | rm -f conftest.c conftest.o |
| 3420 | fi |
| 3421 | if test -z "$have_local_lib" -a -d /usr/local/lib; then |
| 3422 | tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'` |
| 3423 | if test "$tt" = "$LDFLAGS"; then |
| 3424 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 3425 | fi |
| 3426 | fi |
| 3427 | if test -z "$have_local_include" -a -d /usr/local/include; then |
| 3428 | tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'` |
| 3429 | if test "$tt" = "$CPPFLAGS"; then |
| 3430 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 3431 | fi |
| 3432 | fi |
| 3433 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3434 | echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 |
| 3435 | echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6 |
| 3436 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3437 | # Check whether --with-vim-name or --without-vim-name was given. |
| 3438 | if test "${with_vim_name+set}" = set; then |
| 3439 | withval="$with_vim_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3440 | VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5 |
| 3441 | echo "${ECHO_T}$VIMNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3442 | else |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 3443 | VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3444 | echo "${ECHO_T}Defaulting to $VIMNAME" >&6 |
| 3445 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3446 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3447 | echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 |
| 3448 | echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3449 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3450 | # Check whether --with-ex-name or --without-ex-name was given. |
| 3451 | if test "${with_ex_name+set}" = set; then |
| 3452 | withval="$with_ex_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3453 | EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5 |
| 3454 | echo "${ECHO_T}$EXNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3455 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3456 | EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5 |
| 3457 | echo "${ECHO_T}Defaulting to ex" >&6 |
| 3458 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3459 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3460 | echo "$as_me:$LINENO: checking --with-view-name argument" >&5 |
| 3461 | echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3462 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3463 | # Check whether --with-view-name or --without-view-name was given. |
| 3464 | if test "${with_view_name+set}" = set; then |
| 3465 | withval="$with_view_name" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3466 | VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5 |
| 3467 | echo "${ECHO_T}$VIEWNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3468 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3469 | VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5 |
| 3470 | echo "${ECHO_T}Defaulting to view" >&6 |
| 3471 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3472 | |
| 3473 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3474 | echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 |
| 3475 | echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3476 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3477 | # Check whether --with-global-runtime or --without-global-runtime was given. |
| 3478 | if test "${with_global_runtime+set}" = set; then |
| 3479 | withval="$with_global_runtime" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3480 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 3481 | echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3482 | #define RUNTIME_GLOBAL "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3483 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3484 | |
| 3485 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3486 | echo "$as_me:$LINENO: result: no" >&5 |
| 3487 | echo "${ECHO_T}no" >&6 |
| 3488 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3489 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3490 | echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 |
| 3491 | echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3492 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3493 | # Check whether --with-modified-by or --without-modified-by was given. |
| 3494 | if test "${with_modified_by+set}" = set; then |
| 3495 | withval="$with_modified_by" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3496 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 3497 | echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3498 | #define MODIFIED_BY "$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3499 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3500 | |
| 3501 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3502 | echo "$as_me:$LINENO: result: no" >&5 |
| 3503 | echo "${ECHO_T}no" >&6 |
| 3504 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3505 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3506 | echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 |
| 3507 | echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6 |
| 3508 | cat >conftest.$ac_ext <<_ACEOF |
| 3509 | /* confdefs.h. */ |
| 3510 | _ACEOF |
| 3511 | cat confdefs.h >>conftest.$ac_ext |
| 3512 | cat >>conftest.$ac_ext <<_ACEOF |
| 3513 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3514 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3515 | int |
| 3516 | main () |
| 3517 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3518 | /* TryCompile function for CharSet. |
| 3519 | Treat any failure as ASCII for compatibility with existing art. |
| 3520 | Use compile-time rather than run-time tests for cross-compiler |
| 3521 | tolerance. */ |
| 3522 | #if '0'!=240 |
| 3523 | make an error "Character set is not EBCDIC" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3524 | #endif |
| 3525 | ; |
| 3526 | return 0; |
| 3527 | } |
| 3528 | _ACEOF |
| 3529 | rm -f conftest.$ac_objext |
| 3530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3531 | (eval $ac_compile) 2>conftest.er1 |
| 3532 | ac_status=$? |
| 3533 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3534 | rm -f conftest.er1 |
| 3535 | cat conftest.err >&5 |
| 3536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3537 | (exit $ac_status); } && |
| 3538 | { ac_try='test -z "$ac_c_werror_flag" |
| 3539 | || test ! -s conftest.err' |
| 3540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3541 | (eval $ac_try) 2>&5 |
| 3542 | ac_status=$? |
| 3543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3544 | (exit $ac_status); }; } && |
| 3545 | { ac_try='test -s conftest.$ac_objext' |
| 3546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3547 | (eval $ac_try) 2>&5 |
| 3548 | ac_status=$? |
| 3549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3550 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3551 | # TryCompile action if true |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3552 | cf_cv_ebcdic=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3553 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3554 | echo "$as_me: failed program was:" >&5 |
| 3555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3556 | |
| 3557 | # TryCompile action if false |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3558 | cf_cv_ebcdic=no |
| 3559 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3561 | # end of TryCompile ]) |
| 3562 | # end of CacheVal CvEbcdic |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3563 | echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 |
| 3564 | echo "${ECHO_T}$cf_cv_ebcdic" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3565 | case "$cf_cv_ebcdic" in #(vi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3566 | yes) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3567 | #define EBCDIC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3568 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3569 | |
| 3570 | line_break='"\\n"' |
| 3571 | ;; |
| 3572 | *) line_break='"\\012"';; |
| 3573 | esac |
| 3574 | |
| 3575 | |
| 3576 | if test "$cf_cv_ebcdic" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3577 | echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 |
| 3578 | echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3579 | case `uname` in |
| 3580 | OS/390) OS390Unix="yes"; |
| 3581 | if test "$CC" = "cc"; then |
| 3582 | ccm="$_CC_CCMODE" |
| 3583 | ccn="CC" |
| 3584 | else |
| 3585 | if test "$CC" = "c89"; then |
| 3586 | ccm="$_CC_C89MODE" |
| 3587 | ccn="C89" |
| 3588 | else |
| 3589 | ccm=1 |
| 3590 | fi |
| 3591 | fi |
| 3592 | if test "$ccm" != "1"; then |
| 3593 | echo "" |
| 3594 | echo "------------------------------------------" |
| 3595 | echo " On OS/390 Unix, the environment variable" |
| 3596 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 3597 | echo " Do:" |
| 3598 | echo " export _CC_${ccn}MODE=1" |
| 3599 | echo " and then call configure again." |
| 3600 | echo "------------------------------------------" |
| 3601 | exit 1 |
| 3602 | fi |
| 3603 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3604 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3605 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3606 | ;; |
| 3607 | *) OS390Unix="no"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3608 | echo "$as_me:$LINENO: result: no" >&5 |
| 3609 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3610 | ;; |
| 3611 | esac |
| 3612 | fi |
| 3613 | |
| 3614 | |
| 3615 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3616 | echo "$as_me:$LINENO: checking --with-features argument" >&5 |
| 3617 | echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6 |
| 3618 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3619 | # Check whether --with-features or --without-features was given. |
| 3620 | if test "${with_features+set}" = set; then |
| 3621 | withval="$with_features" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3622 | features="$withval"; echo "$as_me:$LINENO: result: $features" >&5 |
| 3623 | echo "${ECHO_T}$features" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3624 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3625 | features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5 |
| 3626 | echo "${ECHO_T}Defaulting to normal" >&6 |
| 3627 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3628 | |
| 3629 | dovimdiff="" |
| 3630 | dogvimdiff="" |
| 3631 | case "$features" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3632 | tiny) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3633 | #define FEAT_TINY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3634 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3635 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3636 | small) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3637 | #define FEAT_SMALL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3638 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3639 | ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3640 | normal) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3641 | #define FEAT_NORMAL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3642 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3643 | dovimdiff="installvimdiff"; |
| 3644 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3645 | big) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3646 | #define FEAT_BIG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3647 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3648 | dovimdiff="installvimdiff"; |
| 3649 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3650 | huge) cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3651 | #define FEAT_HUGE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3652 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3653 | dovimdiff="installvimdiff"; |
| 3654 | dogvimdiff="installgvimdiff" ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3655 | *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 |
| 3656 | echo "${ECHO_T}Sorry, $features is not supported" >&6 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3657 | esac |
| 3658 | |
| 3659 | |
| 3660 | |
| 3661 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3662 | echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 |
| 3663 | echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6 |
| 3664 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3665 | # Check whether --with-compiledby or --without-compiledby was given. |
| 3666 | if test "${with_compiledby+set}" = set; then |
| 3667 | withval="$with_compiledby" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3668 | compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5 |
| 3669 | echo "${ECHO_T}$withval" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3670 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3671 | compiledby=""; echo "$as_me:$LINENO: result: no" >&5 |
| 3672 | echo "${ECHO_T}no" >&6 |
| 3673 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3674 | |
| 3675 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3676 | echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 |
| 3677 | echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3678 | # Check whether --enable-xsmp or --disable-xsmp was given. |
| 3679 | if test "${enable_xsmp+set}" = set; then |
| 3680 | enableval="$enable_xsmp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3681 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3682 | else |
| 3683 | enable_xsmp="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3684 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3685 | |
| 3686 | if test "$enable_xsmp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3687 | echo "$as_me:$LINENO: result: no" >&5 |
| 3688 | echo "${ECHO_T}no" >&6 |
| 3689 | echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 |
| 3690 | echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3691 | # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given. |
| 3692 | if test "${enable_xsmp_interact+set}" = set; then |
| 3693 | enableval="$enable_xsmp_interact" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3694 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3695 | else |
| 3696 | enable_xsmp_interact="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3697 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3698 | if test "$enable_xsmp_interact" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3699 | echo "$as_me:$LINENO: result: no" >&5 |
| 3700 | echo "${ECHO_T}no" >&6 |
| 3701 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3702 | #define USE_XSMP_INTERACT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3703 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3704 | |
| 3705 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3706 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3707 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3708 | fi |
| 3709 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3710 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3711 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3712 | fi |
| 3713 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3714 | echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 |
| 3715 | echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3716 | # Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given. |
| 3717 | if test "${enable_mzschemeinterp+set}" = set; then |
| 3718 | enableval="$enable_mzschemeinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3719 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3720 | else |
| 3721 | enable_mzschemeinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3722 | fi; |
| 3723 | echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 |
| 3724 | echo "${ECHO_T}$enable_mzschemeinterp" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3725 | |
| 3726 | if test "$enable_mzschemeinterp" = "yes"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3727 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3728 | |
| 3729 | echo "$as_me:$LINENO: checking --with-plthome argument" >&5 |
| 3730 | echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6 |
| 3731 | |
| 3732 | # Check whether --with-plthome or --without-plthome was given. |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3733 | if test "${with_plthome+set}" = set; then |
| 3734 | withval="$with_plthome" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3735 | with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5 |
| 3736 | echo "${ECHO_T}$with_plthome" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3737 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3738 | with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3739 | echo "${ECHO_T}\"no\"" >&6 |
| 3740 | fi; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3741 | |
| 3742 | if test "X$with_plthome" != "X"; then |
| 3743 | vi_cv_path_mzscheme_pfx="$with_plthome" |
| 3744 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3745 | echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 |
| 3746 | echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3747 | if test "X$PLTHOME" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3748 | echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 |
| 3749 | echo "${ECHO_T}\"$PLTHOME\"" >&6 |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3750 | vi_cv_path_mzscheme_pfx="$PLTHOME" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3751 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3752 | echo "$as_me:$LINENO: result: \"not set\"" >&5 |
| 3753 | echo "${ECHO_T}\"not set\"" >&6 |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3754 | # 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] | 3755 | set dummy mzscheme; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3758 | if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then |
| 3759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3760 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3761 | case $vi_cv_path_mzscheme in |
| 3762 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3763 | ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. |
| 3764 | ;; |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3765 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3767 | for as_dir in $PATH |
| 3768 | do |
| 3769 | IFS=$as_save_IFS |
| 3770 | test -z "$as_dir" && as_dir=. |
| 3771 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3772 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3773 | ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" |
| 3774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3775 | break 2 |
| 3776 | fi |
| 3777 | done |
| 3778 | done |
| 3779 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3780 | ;; |
| 3781 | esac |
| 3782 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3783 | vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme |
| 3784 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3785 | if test -n "$vi_cv_path_mzscheme"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3786 | echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 |
| 3787 | echo "${ECHO_T}$vi_cv_path_mzscheme" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3788 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3789 | echo "$as_me:$LINENO: result: no" >&5 |
| 3790 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3791 | fi |
| 3792 | |
| 3793 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3794 | if test "X$vi_cv_path_mzscheme" != "X"; then |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3795 | lsout=`ls -l $vi_cv_path_mzscheme` |
| 3796 | if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then |
| 3797 | vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` |
| 3798 | fi |
| 3799 | fi |
| 3800 | |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3801 | if test "X$vi_cv_path_mzscheme" != "X"; then |
| 3802 | echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3803 | echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6 |
| 3804 | if test "${vi_cv_path_mzscheme_pfx+set}" = set; then |
| 3805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3806 | else |
| 3807 | vi_cv_path_mzscheme_pfx=` |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3808 | ${vi_cv_path_mzscheme} -evm \ |
| 3809 | "(display (simplify-path \ |
| 3810 | (build-path (call-with-values \ |
| 3811 | (lambda () (split-path (find-system-path (quote exec-file)))) \ |
| 3812 | (lambda (base name must-be-dir?) base)) (quote up))))"` |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3813 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3814 | echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 |
| 3815 | echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3816 | 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] | 3817 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3818 | fi |
| 3819 | fi |
| 3820 | |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 3821 | SCHEME_INC= |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3822 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3823 | echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 |
| 3824 | 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] | 3825 | if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3826 | echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 3827 | echo "${ECHO_T}\"yes\"" >&6 |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3828 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3829 | echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3830 | echo "${ECHO_T}\"no\"" >&6 |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 3831 | echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include" >&5 |
| 3832 | echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/plt/include... $ECHO_C" >&6 |
| 3833 | if test -f $vi_cv_path_mzscheme_pfx/include/plt/scheme.h; then |
| 3834 | echo "$as_me:$LINENO: result: \"yes\"" >&5 |
| 3835 | echo "${ECHO_T}\"yes\"" >&6 |
| 3836 | SCHEME_INC=/plt |
| 3837 | else |
| 3838 | echo "$as_me:$LINENO: result: \"no\"" >&5 |
| 3839 | echo "${ECHO_T}\"no\"" >&6 |
| 3840 | vi_cv_path_mzscheme_pfx= |
| 3841 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3842 | fi |
| 3843 | fi |
| 3844 | |
| 3845 | if test "X$vi_cv_path_mzscheme_pfx" != "X"; then |
Bram Moolenaar | f15f943 | 2007-06-28 11:07:21 +0000 | [diff] [blame] | 3846 | if test "x$MACOSX" = "xyes"; then |
| 3847 | MZSCHEME_LIBS="-framework PLT_MzScheme" |
| 3848 | elif test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 3849 | 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] | 3850 | else |
Bram Moolenaar | e0d7b3c | 2007-05-12 14:23:41 +0000 | [diff] [blame] | 3851 | MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzscheme -lmzgc" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 3852 | if test "$GCC" = yes; then |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 3853 | 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] | 3854 | elif test "`(uname) 2>/dev/null`" = SunOS && |
| 3855 | uname -r | grep '^5' >/dev/null; then |
| 3856 | MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib" |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 3857 | fi |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3858 | fi |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 3859 | if test -d $vi_cv_path_mzscheme_pfx/lib/plt/collects; then |
| 3860 | SCHEME_COLLECTS=lib/plt/ |
| 3861 | fi |
| 3862 | MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include${SCHEME_INC} \ |
| 3863 | -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/${SCHEME_COLLECTS}collects\"'" |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3864 | MZSCHEME_SRC="if_mzsch.c" |
| 3865 | MZSCHEME_OBJ="objects/if_mzsch.o" |
| 3866 | MZSCHEME_PRO="if_mzsch.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3867 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3868 | #define FEAT_MZSCHEME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3869 | _ACEOF |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3870 | |
| 3871 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3872 | |
| 3873 | |
| 3874 | |
| 3875 | |
| 3876 | |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 3877 | fi |
| 3878 | |
| 3879 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3880 | echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 |
| 3881 | echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3882 | # Check whether --enable-perlinterp or --disable-perlinterp was given. |
| 3883 | if test "${enable_perlinterp+set}" = set; then |
| 3884 | enableval="$enable_perlinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3885 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3886 | else |
| 3887 | enable_perlinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3888 | fi; |
| 3889 | echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 |
| 3890 | echo "${ECHO_T}$enable_perlinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3891 | if test "$enable_perlinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3892 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3893 | # Extract the first word of "perl", so it can be a program name with args. |
| 3894 | set dummy perl; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3895 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3897 | if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then |
| 3898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3899 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3900 | case $vi_cv_path_perl in |
| 3901 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3902 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 3903 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3904 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3906 | for as_dir in $PATH |
| 3907 | do |
| 3908 | IFS=$as_save_IFS |
| 3909 | test -z "$as_dir" && as_dir=. |
| 3910 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3912 | ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" |
| 3913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3914 | break 2 |
| 3915 | fi |
| 3916 | done |
| 3917 | done |
| 3918 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3919 | ;; |
| 3920 | esac |
| 3921 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3922 | vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl |
| 3923 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3924 | if test -n "$vi_cv_path_perl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3925 | echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 |
| 3926 | echo "${ECHO_T}$vi_cv_path_perl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3927 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3928 | echo "$as_me:$LINENO: result: no" >&5 |
| 3929 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3930 | fi |
| 3931 | |
| 3932 | if test "X$vi_cv_path_perl" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3933 | echo "$as_me:$LINENO: checking Perl version" >&5 |
| 3934 | echo $ECHO_N "checking Perl version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3935 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 3936 | eval `$vi_cv_path_perl -V:usethreads` |
| 3937 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 3938 | badthreads=no |
| 3939 | else |
| 3940 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 3941 | eval `$vi_cv_path_perl -V:use5005threads` |
| 3942 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 3943 | badthreads=no |
| 3944 | else |
| 3945 | badthreads=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3946 | echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 |
| 3947 | 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] | 3948 | fi |
| 3949 | else |
| 3950 | badthreads=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3951 | echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 |
| 3952 | echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3953 | fi |
| 3954 | fi |
| 3955 | if test $badthreads = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3956 | echo "$as_me:$LINENO: result: OK" >&5 |
| 3957 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3958 | eval `$vi_cv_path_perl -V:shrpenv` |
| 3959 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 3960 | shrpenv="" |
| 3961 | fi |
| 3962 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3963 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3964 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 3965 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 3966 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 3967 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 3968 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 3969 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 3970 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 3971 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3972 | echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 |
| 3973 | 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] | 3974 | cflags_save=$CFLAGS |
| 3975 | libs_save=$LIBS |
| 3976 | ldflags_save=$LDFLAGS |
| 3977 | CFLAGS="$CFLAGS $perlcppflags" |
| 3978 | LIBS="$LIBS $perllibs" |
| 3979 | LDFLAGS="$perlldflags $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3980 | cat >conftest.$ac_ext <<_ACEOF |
| 3981 | /* confdefs.h. */ |
| 3982 | _ACEOF |
| 3983 | cat confdefs.h >>conftest.$ac_ext |
| 3984 | cat >>conftest.$ac_ext <<_ACEOF |
| 3985 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 3986 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 3987 | int |
| 3988 | main () |
| 3989 | { |
| 3990 | |
| 3991 | ; |
| 3992 | return 0; |
| 3993 | } |
| 3994 | _ACEOF |
| 3995 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3996 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3997 | (eval $ac_link) 2>conftest.er1 |
| 3998 | ac_status=$? |
| 3999 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4000 | rm -f conftest.er1 |
| 4001 | cat conftest.err >&5 |
| 4002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4003 | (exit $ac_status); } && |
| 4004 | { ac_try='test -z "$ac_c_werror_flag" |
| 4005 | || test ! -s conftest.err' |
| 4006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4007 | (eval $ac_try) 2>&5 |
| 4008 | ac_status=$? |
| 4009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4010 | (exit $ac_status); }; } && |
| 4011 | { ac_try='test -s conftest$ac_exeext' |
| 4012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4013 | (eval $ac_try) 2>&5 |
| 4014 | ac_status=$? |
| 4015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4016 | (exit $ac_status); }; }; then |
| 4017 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4018 | echo "${ECHO_T}yes" >&6; perl_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4019 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4020 | echo "$as_me: failed program was:" >&5 |
| 4021 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4022 | |
| 4023 | echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 |
| 4024 | echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4025 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4026 | rm -f conftest.err conftest.$ac_objext \ |
| 4027 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4028 | CFLAGS=$cflags_save |
| 4029 | LIBS=$libs_save |
| 4030 | LDFLAGS=$ldflags_save |
| 4031 | if test $perl_ok = yes; then |
| 4032 | if test "X$perlcppflags" != "X"; then |
Bram Moolenaar | ff4a37e | 2007-05-06 13:18:29 +0000 | [diff] [blame] | 4033 | PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4034 | fi |
| 4035 | if test "X$perlldflags" != "X"; then |
| 4036 | LDFLAGS="$perlldflags $LDFLAGS" |
| 4037 | fi |
| 4038 | PERL_LIBS=$perllibs |
| 4039 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 4040 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 4041 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4042 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4043 | #define FEAT_PERL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4044 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4045 | |
| 4046 | fi |
| 4047 | fi |
| 4048 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4049 | echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 |
| 4050 | 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] | 4051 | fi |
| 4052 | fi |
| 4053 | |
| 4054 | if test "x$MACOSX" = "xyes"; then |
| 4055 | dir=/System/Library/Perl |
| 4056 | darwindir=$dir/darwin |
| 4057 | if test -d $darwindir; then |
| 4058 | PERL=/usr/bin/perl |
| 4059 | else |
| 4060 | dir=/System/Library/Perl/5.8.1 |
| 4061 | darwindir=$dir/darwin-thread-multi-2level |
| 4062 | if test -d $darwindir; then |
| 4063 | PERL=/usr/bin/perl |
| 4064 | fi |
| 4065 | fi |
| 4066 | if test -n "$PERL"; then |
| 4067 | PERL_DIR="$dir" |
| 4068 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 4069 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 4070 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 4071 | fi |
| 4072 | fi |
| 4073 | fi |
| 4074 | |
| 4075 | |
| 4076 | |
| 4077 | |
| 4078 | |
| 4079 | |
| 4080 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4081 | echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 |
| 4082 | echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4083 | # Check whether --enable-pythoninterp or --disable-pythoninterp was given. |
| 4084 | if test "${enable_pythoninterp+set}" = set; then |
| 4085 | enableval="$enable_pythoninterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4086 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4087 | else |
| 4088 | enable_pythoninterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4089 | fi; |
| 4090 | echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 |
| 4091 | echo "${ECHO_T}$enable_pythoninterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4092 | if test "$enable_pythoninterp" = "yes"; then |
| 4093 | # Extract the first word of "python", so it can be a program name with args. |
| 4094 | set dummy python; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4095 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4097 | if test "${ac_cv_path_vi_cv_path_python+set}" = set; then |
| 4098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4099 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4100 | case $vi_cv_path_python in |
| 4101 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4102 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 4103 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4104 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4106 | for as_dir in $PATH |
| 4107 | do |
| 4108 | IFS=$as_save_IFS |
| 4109 | test -z "$as_dir" && as_dir=. |
| 4110 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4111 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4112 | ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" |
| 4113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4114 | break 2 |
| 4115 | fi |
| 4116 | done |
| 4117 | done |
| 4118 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4119 | ;; |
| 4120 | esac |
| 4121 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4122 | vi_cv_path_python=$ac_cv_path_vi_cv_path_python |
| 4123 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4124 | if test -n "$vi_cv_path_python"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4125 | echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 |
| 4126 | echo "${ECHO_T}$vi_cv_path_python" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4127 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4128 | echo "$as_me:$LINENO: result: no" >&5 |
| 4129 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4130 | fi |
| 4131 | |
| 4132 | if test "X$vi_cv_path_python" != "X"; then |
| 4133 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4134 | echo "$as_me:$LINENO: checking Python version" >&5 |
| 4135 | echo $ECHO_N "checking Python version... $ECHO_C" >&6 |
| 4136 | if test "${vi_cv_var_python_version+set}" = set; then |
| 4137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4138 | else |
| 4139 | vi_cv_var_python_version=` |
| 4140 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4141 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4142 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4143 | echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 |
| 4144 | echo "${ECHO_T}$vi_cv_var_python_version" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4145 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4146 | echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 |
| 4147 | 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] | 4148 | if ${vi_cv_path_python} -c \ |
| 4149 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 4150 | then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4151 | echo "$as_me:$LINENO: result: yep" >&5 |
| 4152 | echo "${ECHO_T}yep" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4153 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4154 | echo "$as_me:$LINENO: checking Python's install prefix" >&5 |
| 4155 | echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6 |
| 4156 | if test "${vi_cv_path_python_pfx+set}" = set; then |
| 4157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4158 | else |
| 4159 | vi_cv_path_python_pfx=` |
| 4160 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4161 | "import sys; print sys.prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4162 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4163 | echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 |
| 4164 | echo "${ECHO_T}$vi_cv_path_python_pfx" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4165 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4166 | echo "$as_me:$LINENO: checking Python's execution prefix" >&5 |
| 4167 | echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6 |
| 4168 | if test "${vi_cv_path_python_epfx+set}" = set; then |
| 4169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4170 | else |
| 4171 | vi_cv_path_python_epfx=` |
| 4172 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4173 | "import sys; print sys.exec_prefix"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4174 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4175 | echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 |
| 4176 | echo "${ECHO_T}$vi_cv_path_python_epfx" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4177 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4178 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4179 | if test "${vi_cv_path_pythonpath+set}" = set; then |
| 4180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4181 | else |
| 4182 | vi_cv_path_pythonpath=` |
| 4183 | unset PYTHONPATH; |
| 4184 | ${vi_cv_path_python} -c \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4185 | "import sys, string; print string.join(sys.path,':')"` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4186 | fi |
| 4187 | |
| 4188 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4189 | |
| 4190 | |
| 4191 | # 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] | 4192 | if test "${with_python_config_dir+set}" = set; then |
| 4193 | withval="$with_python_config_dir" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4194 | vi_cv_path_python_conf="${withval}" |
| 4195 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4196 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4197 | echo "$as_me:$LINENO: checking Python's configuration directory" >&5 |
| 4198 | echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6 |
| 4199 | if test "${vi_cv_path_python_conf+set}" = set; then |
| 4200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4201 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4202 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4203 | vi_cv_path_python_conf= |
| 4204 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 4205 | for subdir in lib share; do |
| 4206 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 4207 | if test -d "$d" && test -f "$d/config.c"; then |
| 4208 | vi_cv_path_python_conf="$d" |
| 4209 | fi |
| 4210 | done |
| 4211 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4212 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4213 | fi |
| 4214 | echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 |
| 4215 | echo "${ECHO_T}$vi_cv_path_python_conf" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4216 | |
| 4217 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 4218 | |
| 4219 | if test "X$PYTHON_CONFDIR" = "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4220 | echo "$as_me:$LINENO: result: can't find it!" >&5 |
| 4221 | echo "${ECHO_T}can't find it!" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4222 | else |
| 4223 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4224 | if test "${vi_cv_path_python_plibs+set}" = set; then |
| 4225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4226 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4227 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4228 | tmp_mkf="/tmp/Makefile-conf$$" |
| 4229 | cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} |
| 4230 | __: |
| 4231 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 4232 | @echo "python_LIBS='$(LIBS)'" |
| 4233 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 4234 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 4235 | eof |
| 4236 | eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" |
| 4237 | rm -f ${tmp_mkf} |
| 4238 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 4239 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 4240 | vi_cv_path_python_plibs="-framework Python" |
| 4241 | else |
| 4242 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 4243 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 4244 | else |
| 4245 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 4246 | fi |
| 4247 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 4248 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 4249 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4250 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4251 | fi |
| 4252 | |
| 4253 | |
| 4254 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 4255 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 4256 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 4257 | else |
| 4258 | 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}" |
| 4259 | fi |
| 4260 | PYTHON_SRC="if_python.c" |
| 4261 | if test "x$MACOSX" = "xyes"; then |
| 4262 | PYTHON_OBJ="objects/if_python.o" |
| 4263 | else |
| 4264 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 4265 | fi |
| 4266 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 4267 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 4268 | fi |
| 4269 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 4270 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4271 | echo "$as_me:$LINENO: checking if -pthread should be used" >&5 |
| 4272 | echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4273 | threadsafe_flag= |
| 4274 | thread_lib= |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 4275 | if test "`(uname) 2>/dev/null`" != Darwin; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4276 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 4277 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 4278 | threadsafe_flag="-D_THREAD_SAFE" |
| 4279 | thread_lib="-pthread" |
| 4280 | fi |
| 4281 | fi |
| 4282 | libs_save_old=$LIBS |
| 4283 | if test -n "$threadsafe_flag"; then |
| 4284 | cflags_save=$CFLAGS |
| 4285 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 4286 | LIBS="$LIBS $thread_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4287 | cat >conftest.$ac_ext <<_ACEOF |
| 4288 | /* confdefs.h. */ |
| 4289 | _ACEOF |
| 4290 | cat confdefs.h >>conftest.$ac_ext |
| 4291 | cat >>conftest.$ac_ext <<_ACEOF |
| 4292 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4293 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4294 | int |
| 4295 | main () |
| 4296 | { |
| 4297 | |
| 4298 | ; |
| 4299 | return 0; |
| 4300 | } |
| 4301 | _ACEOF |
| 4302 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4304 | (eval $ac_link) 2>conftest.er1 |
| 4305 | ac_status=$? |
| 4306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4307 | rm -f conftest.er1 |
| 4308 | cat conftest.err >&5 |
| 4309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4310 | (exit $ac_status); } && |
| 4311 | { ac_try='test -z "$ac_c_werror_flag" |
| 4312 | || test ! -s conftest.err' |
| 4313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4314 | (eval $ac_try) 2>&5 |
| 4315 | ac_status=$? |
| 4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4317 | (exit $ac_status); }; } && |
| 4318 | { ac_try='test -s conftest$ac_exeext' |
| 4319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4320 | (eval $ac_try) 2>&5 |
| 4321 | ac_status=$? |
| 4322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4323 | (exit $ac_status); }; }; then |
| 4324 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4325 | echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4326 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4327 | echo "$as_me: failed program was:" >&5 |
| 4328 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4329 | |
| 4330 | echo "$as_me:$LINENO: result: no" >&5 |
| 4331 | echo "${ECHO_T}no" >&6; LIBS=$libs_save_old |
| 4332 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4333 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4334 | rm -f conftest.err conftest.$ac_objext \ |
| 4335 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4336 | CFLAGS=$cflags_save |
| 4337 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4338 | echo "$as_me:$LINENO: result: no" >&5 |
| 4339 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4340 | fi |
| 4341 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4342 | echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 |
| 4343 | 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] | 4344 | cflags_save=$CFLAGS |
| 4345 | libs_save=$LIBS |
| 4346 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 4347 | LIBS="$LIBS $PYTHON_LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4348 | cat >conftest.$ac_ext <<_ACEOF |
| 4349 | /* confdefs.h. */ |
| 4350 | _ACEOF |
| 4351 | cat confdefs.h >>conftest.$ac_ext |
| 4352 | cat >>conftest.$ac_ext <<_ACEOF |
| 4353 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4354 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4355 | int |
| 4356 | main () |
| 4357 | { |
| 4358 | |
| 4359 | ; |
| 4360 | return 0; |
| 4361 | } |
| 4362 | _ACEOF |
| 4363 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4365 | (eval $ac_link) 2>conftest.er1 |
| 4366 | ac_status=$? |
| 4367 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4368 | rm -f conftest.er1 |
| 4369 | cat conftest.err >&5 |
| 4370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4371 | (exit $ac_status); } && |
| 4372 | { ac_try='test -z "$ac_c_werror_flag" |
| 4373 | || test ! -s conftest.err' |
| 4374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4375 | (eval $ac_try) 2>&5 |
| 4376 | ac_status=$? |
| 4377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4378 | (exit $ac_status); }; } && |
| 4379 | { ac_try='test -s conftest$ac_exeext' |
| 4380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4381 | (eval $ac_try) 2>&5 |
| 4382 | ac_status=$? |
| 4383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4384 | (exit $ac_status); }; }; then |
| 4385 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4386 | echo "${ECHO_T}yes" >&6; python_ok=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4387 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4388 | echo "$as_me: failed program was:" >&5 |
| 4389 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4390 | |
| 4391 | echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 |
| 4392 | echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4393 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4394 | rm -f conftest.err conftest.$ac_objext \ |
| 4395 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4396 | CFLAGS=$cflags_save |
| 4397 | LIBS=$libs_save |
| 4398 | if test $python_ok = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4399 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4400 | #define FEAT_PYTHON 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4401 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4402 | |
| 4403 | else |
| 4404 | LIBS=$libs_save_old |
| 4405 | PYTHON_SRC= |
| 4406 | PYTHON_OBJ= |
| 4407 | PYTHON_LIBS= |
| 4408 | PYTHON_CFLAGS= |
| 4409 | fi |
| 4410 | |
| 4411 | fi |
| 4412 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4413 | echo "$as_me:$LINENO: result: too old" >&5 |
| 4414 | echo "${ECHO_T}too old" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4415 | fi |
| 4416 | fi |
| 4417 | fi |
| 4418 | |
| 4419 | |
| 4420 | |
| 4421 | |
| 4422 | |
| 4423 | |
| 4424 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4425 | echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 |
| 4426 | echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4427 | # Check whether --enable-tclinterp or --disable-tclinterp was given. |
| 4428 | if test "${enable_tclinterp+set}" = set; then |
| 4429 | enableval="$enable_tclinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4430 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4431 | else |
| 4432 | enable_tclinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4433 | fi; |
| 4434 | echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 |
| 4435 | echo "${ECHO_T}$enable_tclinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4436 | |
| 4437 | if test "$enable_tclinterp" = "yes"; then |
| 4438 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4439 | echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 |
| 4440 | echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6 |
| 4441 | |
| 4442 | # Check whether --with-tclsh or --without-tclsh was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4443 | if test "${with_tclsh+set}" = set; then |
| 4444 | withval="$with_tclsh" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4445 | tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5 |
| 4446 | echo "${ECHO_T}$tclsh_name" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4447 | else |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 4448 | tclsh_name="tclsh8.5"; echo "$as_me:$LINENO: result: no" >&5 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4449 | echo "${ECHO_T}no" >&6 |
| 4450 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4451 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4452 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4455 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4457 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4458 | case $vi_cv_path_tcl in |
| 4459 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4460 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4461 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4462 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4464 | for as_dir in $PATH |
| 4465 | do |
| 4466 | IFS=$as_save_IFS |
| 4467 | test -z "$as_dir" && as_dir=. |
| 4468 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4469 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4470 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4472 | break 2 |
| 4473 | fi |
| 4474 | done |
| 4475 | done |
| 4476 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4477 | ;; |
| 4478 | esac |
| 4479 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4480 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4481 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4482 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4483 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4484 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4485 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4486 | echo "$as_me:$LINENO: result: no" >&5 |
| 4487 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4488 | fi |
| 4489 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4490 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4491 | |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 4492 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then |
| 4493 | tclsh_name="tclsh8.4" |
| 4494 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4495 | set dummy $tclsh_name; ac_word=$2 |
| 4496 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4498 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4500 | else |
| 4501 | case $vi_cv_path_tcl in |
| 4502 | [\\/]* | ?:[\\/]*) |
| 4503 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4504 | ;; |
| 4505 | *) |
| 4506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4507 | for as_dir in $PATH |
| 4508 | do |
| 4509 | IFS=$as_save_IFS |
| 4510 | test -z "$as_dir" && as_dir=. |
| 4511 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4513 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4515 | break 2 |
| 4516 | fi |
| 4517 | done |
| 4518 | done |
| 4519 | |
| 4520 | ;; |
| 4521 | esac |
| 4522 | fi |
| 4523 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4524 | |
| 4525 | if test -n "$vi_cv_path_tcl"; then |
| 4526 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4527 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
| 4528 | else |
| 4529 | echo "$as_me:$LINENO: result: no" >&5 |
| 4530 | echo "${ECHO_T}no" >&6 |
| 4531 | fi |
| 4532 | |
| 4533 | fi |
| 4534 | 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] | 4535 | tclsh_name="tclsh8.2" |
| 4536 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4537 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4538 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4540 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4542 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4543 | case $vi_cv_path_tcl in |
| 4544 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4545 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4546 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4547 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4549 | for as_dir in $PATH |
| 4550 | do |
| 4551 | IFS=$as_save_IFS |
| 4552 | test -z "$as_dir" && as_dir=. |
| 4553 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4555 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4557 | break 2 |
| 4558 | fi |
| 4559 | done |
| 4560 | done |
| 4561 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4562 | ;; |
| 4563 | esac |
| 4564 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4565 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4566 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4567 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4568 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4569 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4570 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4571 | echo "$as_me:$LINENO: result: no" >&5 |
| 4572 | echo "${ECHO_T}no" >&6 |
| 4573 | fi |
| 4574 | |
| 4575 | fi |
| 4576 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then |
| 4577 | tclsh_name="tclsh8.0" |
| 4578 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4579 | set dummy $tclsh_name; ac_word=$2 |
| 4580 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4582 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4584 | else |
| 4585 | case $vi_cv_path_tcl in |
| 4586 | [\\/]* | ?:[\\/]*) |
| 4587 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4588 | ;; |
| 4589 | *) |
| 4590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4591 | for as_dir in $PATH |
| 4592 | do |
| 4593 | IFS=$as_save_IFS |
| 4594 | test -z "$as_dir" && as_dir=. |
| 4595 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4596 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4597 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4598 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4599 | break 2 |
| 4600 | fi |
| 4601 | done |
| 4602 | done |
| 4603 | |
| 4604 | ;; |
| 4605 | esac |
| 4606 | fi |
| 4607 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4608 | |
| 4609 | if test -n "$vi_cv_path_tcl"; then |
| 4610 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4611 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
| 4612 | else |
| 4613 | echo "$as_me:$LINENO: result: no" >&5 |
| 4614 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4615 | fi |
| 4616 | |
| 4617 | fi |
| 4618 | if test "X$vi_cv_path_tcl" = "X"; then |
| 4619 | tclsh_name="tclsh" |
| 4620 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 4621 | set dummy $tclsh_name; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4622 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4624 | if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then |
| 4625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4626 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4627 | case $vi_cv_path_tcl in |
| 4628 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4629 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 4630 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4631 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4633 | for as_dir in $PATH |
| 4634 | do |
| 4635 | IFS=$as_save_IFS |
| 4636 | test -z "$as_dir" && as_dir=. |
| 4637 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4638 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4639 | ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" |
| 4640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4641 | break 2 |
| 4642 | fi |
| 4643 | done |
| 4644 | done |
| 4645 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4646 | ;; |
| 4647 | esac |
| 4648 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4649 | vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl |
| 4650 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4651 | if test -n "$vi_cv_path_tcl"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4652 | echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 |
| 4653 | echo "${ECHO_T}$vi_cv_path_tcl" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4654 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4655 | echo "$as_me:$LINENO: result: no" >&5 |
| 4656 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4657 | fi |
| 4658 | |
| 4659 | fi |
| 4660 | if test "X$vi_cv_path_tcl" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4661 | echo "$as_me:$LINENO: checking Tcl version" >&5 |
| 4662 | echo $ECHO_N "checking Tcl version... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4663 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 4664 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4665 | echo "$as_me:$LINENO: result: $tclver - OK" >&5 |
| 4666 | echo "${ECHO_T}$tclver - OK" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4667 | 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 -` |
| 4668 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4669 | echo "$as_me:$LINENO: checking for location of Tcl include" >&5 |
| 4670 | echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4671 | if test "x$MACOSX" != "xyes"; then |
Bram Moolenaar | 0ff8f60 | 2008-02-20 11:44:03 +0000 | [diff] [blame] | 4672 | 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] | 4673 | else |
| 4674 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 4675 | fi |
Bram Moolenaar | 0ff8f60 | 2008-02-20 11:44:03 +0000 | [diff] [blame] | 4676 | TCL_INC= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4677 | for try in $tclinc; do |
| 4678 | if test -f "$try/tcl.h"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4679 | echo "$as_me:$LINENO: result: $try/tcl.h" >&5 |
| 4680 | echo "${ECHO_T}$try/tcl.h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4681 | TCL_INC=$try |
| 4682 | break |
| 4683 | fi |
| 4684 | done |
| 4685 | if test -z "$TCL_INC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4686 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4687 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4688 | SKIP_TCL=YES |
| 4689 | fi |
| 4690 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4691 | echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 |
| 4692 | 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] | 4693 | if test "x$MACOSX" != "xyes"; then |
| 4694 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 4695 | tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4696 | else |
| 4697 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 4698 | fi |
| 4699 | for try in $tclcnf; do |
| 4700 | if test -f $try/tclConfig.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4701 | echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 |
| 4702 | echo "${ECHO_T}$try/tclConfig.sh" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4703 | . $try/tclConfig.sh |
| 4704 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 4705 | 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] | 4706 | break |
| 4707 | fi |
| 4708 | done |
| 4709 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4710 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4711 | echo "${ECHO_T}<not found>" >&6 |
| 4712 | echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 |
| 4713 | echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4714 | tcllib=`echo $tclinc | sed s/include/lib/g` |
Bram Moolenaar | 9b5d4dd | 2008-01-01 15:26:45 +0000 | [diff] [blame] | 4715 | tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4716 | for ext in .so .a ; do |
| 4717 | for ver in "" $tclver ; do |
| 4718 | for try in $tcllib ; do |
| 4719 | trylib=tcl$ver$ext |
| 4720 | if test -f $try/lib$trylib ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4721 | echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 |
| 4722 | echo "${ECHO_T}$try/lib$trylib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4723 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 4724 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 4725 | uname -r | grep '^5' >/dev/null; then |
| 4726 | TCL_LIBS="$TCL_LIBS -R $try" |
| 4727 | fi |
| 4728 | break 3 |
| 4729 | fi |
| 4730 | done |
| 4731 | done |
| 4732 | done |
| 4733 | if test -z "$TCL_LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4734 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 4735 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4736 | SKIP_TCL=YES |
| 4737 | fi |
| 4738 | fi |
| 4739 | if test -z "$SKIP_TCL"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4740 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4741 | #define FEAT_TCL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4742 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4743 | |
| 4744 | TCL_SRC=if_tcl.c |
| 4745 | TCL_OBJ=objects/if_tcl.o |
| 4746 | TCL_PRO=if_tcl.pro |
| 4747 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 4748 | fi |
| 4749 | fi |
| 4750 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4751 | echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 |
| 4752 | 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] | 4753 | fi |
| 4754 | fi |
| 4755 | fi |
| 4756 | |
| 4757 | |
| 4758 | |
| 4759 | |
| 4760 | |
| 4761 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4762 | echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 |
| 4763 | echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4764 | # Check whether --enable-rubyinterp or --disable-rubyinterp was given. |
| 4765 | if test "${enable_rubyinterp+set}" = set; then |
| 4766 | enableval="$enable_rubyinterp" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4767 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4768 | else |
| 4769 | enable_rubyinterp="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4770 | fi; |
| 4771 | echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 |
| 4772 | echo "${ECHO_T}$enable_rubyinterp" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4773 | if test "$enable_rubyinterp" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4774 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4775 | # Extract the first word of "ruby", so it can be a program name with args. |
| 4776 | set dummy ruby; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4777 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4779 | if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then |
| 4780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4781 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4782 | case $vi_cv_path_ruby in |
| 4783 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4784 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 4785 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4786 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4788 | for as_dir in $PATH |
| 4789 | do |
| 4790 | IFS=$as_save_IFS |
| 4791 | test -z "$as_dir" && as_dir=. |
| 4792 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4793 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4794 | ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" |
| 4795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4796 | break 2 |
| 4797 | fi |
| 4798 | done |
| 4799 | done |
| 4800 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4801 | ;; |
| 4802 | esac |
| 4803 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4804 | vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby |
| 4805 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4806 | if test -n "$vi_cv_path_ruby"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4807 | echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 |
| 4808 | echo "${ECHO_T}$vi_cv_path_ruby" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4809 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4810 | echo "$as_me:$LINENO: result: no" >&5 |
| 4811 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4812 | fi |
| 4813 | |
| 4814 | if test "X$vi_cv_path_ruby" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4815 | echo "$as_me:$LINENO: checking Ruby version" >&5 |
| 4816 | echo $ECHO_N "checking Ruby version... $ECHO_C" >&6 |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 4817 | 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] | 4818 | echo "$as_me:$LINENO: result: OK" >&5 |
| 4819 | echo "${ECHO_T}OK" >&6 |
| 4820 | echo "$as_me:$LINENO: checking Ruby header files" >&5 |
| 4821 | echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4822 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
| 4823 | if test "X$rubyhdrdir" != "X"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4824 | echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 |
| 4825 | echo "${ECHO_T}$rubyhdrdir" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4826 | RUBY_CFLAGS="-I$rubyhdrdir" |
| 4827 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 4828 | if test "X$rubylibs" != "X"; then |
| 4829 | RUBY_LIBS="$rubylibs" |
| 4830 | fi |
| 4831 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 4832 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 4833 | librubyarg="$rubyhdrdir/$librubyarg" |
| 4834 | else |
| 4835 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 4836 | if test -f "$rubylibdir/$librubyarg"; then |
| 4837 | librubyarg="$rubylibdir/$librubyarg" |
| 4838 | elif test "$librubyarg" = "libruby.a"; then |
| 4839 | librubyarg="-lruby" |
| 4840 | else |
| 4841 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 4842 | fi |
| 4843 | fi |
| 4844 | |
| 4845 | if test "X$librubyarg" != "X"; then |
| 4846 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 4847 | fi |
| 4848 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 4849 | if test "X$rubyldflags" != "X"; then |
| 4850 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 4851 | fi |
| 4852 | RUBY_SRC="if_ruby.c" |
| 4853 | RUBY_OBJ="objects/if_ruby.o" |
| 4854 | RUBY_PRO="if_ruby.pro" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4855 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4856 | #define FEAT_RUBY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4857 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4858 | |
| 4859 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4860 | echo "$as_me:$LINENO: result: not found" >&5 |
| 4861 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4862 | fi |
| 4863 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4864 | echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 |
| 4865 | 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] | 4866 | fi |
| 4867 | fi |
| 4868 | fi |
| 4869 | |
| 4870 | |
| 4871 | |
| 4872 | |
| 4873 | |
| 4874 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4875 | echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 |
| 4876 | echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4877 | # Check whether --enable-cscope or --disable-cscope was given. |
| 4878 | if test "${enable_cscope+set}" = set; then |
| 4879 | enableval="$enable_cscope" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4880 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4881 | else |
| 4882 | enable_cscope="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4883 | fi; |
| 4884 | echo "$as_me:$LINENO: result: $enable_cscope" >&5 |
| 4885 | echo "${ECHO_T}$enable_cscope" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4886 | if test "$enable_cscope" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4887 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4888 | #define FEAT_CSCOPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4889 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4890 | |
| 4891 | fi |
| 4892 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4893 | echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 |
| 4894 | echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4895 | # Check whether --enable-workshop or --disable-workshop was given. |
| 4896 | if test "${enable_workshop+set}" = set; then |
| 4897 | enableval="$enable_workshop" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4898 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4899 | else |
| 4900 | enable_workshop="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4901 | fi; |
| 4902 | echo "$as_me:$LINENO: result: $enable_workshop" >&5 |
| 4903 | echo "${ECHO_T}$enable_workshop" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4904 | if test "$enable_workshop" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4905 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4906 | #define FEAT_SUN_WORKSHOP 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4907 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4908 | |
| 4909 | WORKSHOP_SRC="workshop.c integration.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4910 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4911 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4912 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4913 | if test "${enable_gui-xxx}" = xxx; then |
| 4914 | enable_gui=motif |
| 4915 | fi |
| 4916 | fi |
| 4917 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4918 | echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 |
| 4919 | echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4920 | # Check whether --enable-netbeans or --disable-netbeans was given. |
| 4921 | if test "${enable_netbeans+set}" = set; then |
| 4922 | enableval="$enable_netbeans" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4923 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4924 | else |
| 4925 | enable_netbeans="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4926 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4927 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4928 | echo "$as_me:$LINENO: result: no" >&5 |
| 4929 | echo "${ECHO_T}no" >&6 |
| 4930 | |
| 4931 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 4932 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 4933 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 4934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4935 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4936 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4937 | LIBS="-lsocket $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4938 | cat >conftest.$ac_ext <<_ACEOF |
| 4939 | /* confdefs.h. */ |
| 4940 | _ACEOF |
| 4941 | cat confdefs.h >>conftest.$ac_ext |
| 4942 | cat >>conftest.$ac_ext <<_ACEOF |
| 4943 | /* end confdefs.h. */ |
| 4944 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4945 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4946 | #ifdef __cplusplus |
| 4947 | extern "C" |
| 4948 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4949 | /* 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] | 4950 | builtin and then its argument prototype would still apply. */ |
| 4951 | char socket (); |
| 4952 | int |
| 4953 | main () |
| 4954 | { |
| 4955 | socket (); |
| 4956 | ; |
| 4957 | return 0; |
| 4958 | } |
| 4959 | _ACEOF |
| 4960 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4962 | (eval $ac_link) 2>conftest.er1 |
| 4963 | ac_status=$? |
| 4964 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4965 | rm -f conftest.er1 |
| 4966 | cat conftest.err >&5 |
| 4967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4968 | (exit $ac_status); } && |
| 4969 | { ac_try='test -z "$ac_c_werror_flag" |
| 4970 | || test ! -s conftest.err' |
| 4971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4972 | (eval $ac_try) 2>&5 |
| 4973 | ac_status=$? |
| 4974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4975 | (exit $ac_status); }; } && |
| 4976 | { ac_try='test -s conftest$ac_exeext' |
| 4977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4978 | (eval $ac_try) 2>&5 |
| 4979 | ac_status=$? |
| 4980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4981 | (exit $ac_status); }; }; then |
| 4982 | ac_cv_lib_socket_socket=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4983 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4984 | echo "$as_me: failed program was:" >&5 |
| 4985 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4986 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4987 | ac_cv_lib_socket_socket=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4988 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 4989 | rm -f conftest.err conftest.$ac_objext \ |
| 4990 | conftest$ac_exeext conftest.$ac_ext |
| 4991 | LIBS=$ac_check_lib_save_LIBS |
| 4992 | fi |
| 4993 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 4994 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 4995 | if test $ac_cv_lib_socket_socket = yes; then |
| 4996 | cat >>confdefs.h <<_ACEOF |
| 4997 | #define HAVE_LIBSOCKET 1 |
| 4998 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4999 | |
| 5000 | LIBS="-lsocket $LIBS" |
| 5001 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5002 | fi |
| 5003 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5004 | |
| 5005 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 5006 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 5007 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 5008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5009 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5010 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5011 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5012 | cat >conftest.$ac_ext <<_ACEOF |
| 5013 | /* confdefs.h. */ |
| 5014 | _ACEOF |
| 5015 | cat confdefs.h >>conftest.$ac_ext |
| 5016 | cat >>conftest.$ac_ext <<_ACEOF |
| 5017 | /* end confdefs.h. */ |
| 5018 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5019 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5020 | #ifdef __cplusplus |
| 5021 | extern "C" |
| 5022 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5023 | /* 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] | 5024 | builtin and then its argument prototype would still apply. */ |
| 5025 | char gethostbyname (); |
| 5026 | int |
| 5027 | main () |
| 5028 | { |
| 5029 | gethostbyname (); |
| 5030 | ; |
| 5031 | return 0; |
| 5032 | } |
| 5033 | _ACEOF |
| 5034 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5035 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5036 | (eval $ac_link) 2>conftest.er1 |
| 5037 | ac_status=$? |
| 5038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5039 | rm -f conftest.er1 |
| 5040 | cat conftest.err >&5 |
| 5041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5042 | (exit $ac_status); } && |
| 5043 | { ac_try='test -z "$ac_c_werror_flag" |
| 5044 | || test ! -s conftest.err' |
| 5045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5046 | (eval $ac_try) 2>&5 |
| 5047 | ac_status=$? |
| 5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5049 | (exit $ac_status); }; } && |
| 5050 | { ac_try='test -s conftest$ac_exeext' |
| 5051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5052 | (eval $ac_try) 2>&5 |
| 5053 | ac_status=$? |
| 5054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5055 | (exit $ac_status); }; }; then |
| 5056 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5057 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5058 | echo "$as_me: failed program was:" >&5 |
| 5059 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5060 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5061 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5062 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5063 | rm -f conftest.err conftest.$ac_objext \ |
| 5064 | conftest$ac_exeext conftest.$ac_ext |
| 5065 | LIBS=$ac_check_lib_save_LIBS |
| 5066 | fi |
| 5067 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 5068 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 5069 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 5070 | cat >>confdefs.h <<_ACEOF |
| 5071 | #define HAVE_LIBNSL 1 |
| 5072 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5073 | |
| 5074 | LIBS="-lnsl $LIBS" |
| 5075 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5076 | fi |
| 5077 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5078 | echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 |
| 5079 | echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6 |
| 5080 | cat >conftest.$ac_ext <<_ACEOF |
| 5081 | /* confdefs.h. */ |
| 5082 | _ACEOF |
| 5083 | cat confdefs.h >>conftest.$ac_ext |
| 5084 | cat >>conftest.$ac_ext <<_ACEOF |
| 5085 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5086 | |
| 5087 | #include <stdio.h> |
| 5088 | #include <stdlib.h> |
| 5089 | #include <stdarg.h> |
| 5090 | #include <fcntl.h> |
| 5091 | #include <netdb.h> |
| 5092 | #include <netinet/in.h> |
| 5093 | #include <errno.h> |
| 5094 | #include <sys/types.h> |
| 5095 | #include <sys/socket.h> |
| 5096 | /* Check bitfields */ |
| 5097 | struct nbbuf { |
| 5098 | unsigned int initDone:1; |
| 5099 | ushort signmaplen; |
| 5100 | }; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5101 | |
| 5102 | int |
| 5103 | main () |
| 5104 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5105 | |
| 5106 | /* Check creating a socket. */ |
| 5107 | struct sockaddr_in server; |
| 5108 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 5109 | (void)htons(100); |
| 5110 | (void)gethostbyname("microsoft.com"); |
| 5111 | if (errno == ECONNREFUSED) |
| 5112 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5113 | |
| 5114 | ; |
| 5115 | return 0; |
| 5116 | } |
| 5117 | _ACEOF |
| 5118 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5120 | (eval $ac_link) 2>conftest.er1 |
| 5121 | ac_status=$? |
| 5122 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5123 | rm -f conftest.er1 |
| 5124 | cat conftest.err >&5 |
| 5125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5126 | (exit $ac_status); } && |
| 5127 | { ac_try='test -z "$ac_c_werror_flag" |
| 5128 | || test ! -s conftest.err' |
| 5129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5130 | (eval $ac_try) 2>&5 |
| 5131 | ac_status=$? |
| 5132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5133 | (exit $ac_status); }; } && |
| 5134 | { ac_try='test -s conftest$ac_exeext' |
| 5135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5136 | (eval $ac_try) 2>&5 |
| 5137 | ac_status=$? |
| 5138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5139 | (exit $ac_status); }; }; then |
| 5140 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5141 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5142 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5143 | echo "$as_me: failed program was:" >&5 |
| 5144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5145 | |
| 5146 | echo "$as_me:$LINENO: result: no" >&5 |
| 5147 | echo "${ECHO_T}no" >&6; enable_netbeans="no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5148 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5149 | rm -f conftest.err conftest.$ac_objext \ |
| 5150 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5151 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5152 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5153 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5154 | fi |
| 5155 | if test "$enable_netbeans" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5156 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5157 | #define FEAT_NETBEANS_INTG 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5158 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5159 | |
| 5160 | NETBEANS_SRC="netbeans.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5161 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5162 | NETBEANS_OBJ="objects/netbeans.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5163 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5164 | fi |
| 5165 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5166 | echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 |
| 5167 | echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5168 | # Check whether --enable-sniff or --disable-sniff was given. |
| 5169 | if test "${enable_sniff+set}" = set; then |
| 5170 | enableval="$enable_sniff" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5171 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5172 | else |
| 5173 | enable_sniff="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5174 | fi; |
| 5175 | echo "$as_me:$LINENO: result: $enable_sniff" >&5 |
| 5176 | echo "${ECHO_T}$enable_sniff" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5177 | if test "$enable_sniff" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5178 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5179 | #define FEAT_SNIFF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5180 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5181 | |
| 5182 | SNIFF_SRC="if_sniff.c" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5183 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5184 | SNIFF_OBJ="objects/if_sniff.o" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5185 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5186 | fi |
| 5187 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5188 | echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 |
| 5189 | echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5190 | # Check whether --enable-multibyte or --disable-multibyte was given. |
| 5191 | if test "${enable_multibyte+set}" = set; then |
| 5192 | enableval="$enable_multibyte" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5193 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5194 | else |
| 5195 | enable_multibyte="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5196 | fi; |
| 5197 | echo "$as_me:$LINENO: result: $enable_multibyte" >&5 |
| 5198 | echo "${ECHO_T}$enable_multibyte" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5199 | if test "$enable_multibyte" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5200 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5201 | #define FEAT_MBYTE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5202 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5203 | |
| 5204 | fi |
| 5205 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5206 | echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 |
| 5207 | echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5208 | # Check whether --enable-hangulinput or --disable-hangulinput was given. |
| 5209 | if test "${enable_hangulinput+set}" = set; then |
| 5210 | enableval="$enable_hangulinput" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5211 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5212 | else |
| 5213 | enable_hangulinput="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5214 | fi; |
| 5215 | echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 |
| 5216 | echo "${ECHO_T}$enable_hangulinput" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5217 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5218 | echo "$as_me:$LINENO: checking --enable-xim argument" >&5 |
| 5219 | echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5220 | # Check whether --enable-xim or --disable-xim was given. |
| 5221 | if test "${enable_xim+set}" = set; then |
| 5222 | enableval="$enable_xim" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5223 | echo "$as_me:$LINENO: result: $enable_xim" >&5 |
| 5224 | echo "${ECHO_T}$enable_xim" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5225 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5226 | enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5 |
| 5227 | echo "${ECHO_T}defaulting to auto" >&6 |
| 5228 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5229 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5230 | echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 |
| 5231 | echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5232 | # Check whether --enable-fontset or --disable-fontset was given. |
| 5233 | if test "${enable_fontset+set}" = set; then |
| 5234 | enableval="$enable_fontset" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5235 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5236 | else |
| 5237 | enable_fontset="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5238 | fi; |
| 5239 | echo "$as_me:$LINENO: result: $enable_fontset" >&5 |
| 5240 | echo "${ECHO_T}$enable_fontset" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5241 | |
| 5242 | test -z "$with_x" && with_x=yes |
| 5243 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 5244 | if test "$with_x" = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5245 | echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 |
| 5246 | echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5247 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5248 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5249 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 5250 | set dummy xmkmf; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5251 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5253 | if test "${ac_cv_path_xmkmfpath+set}" = set; then |
| 5254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5255 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5256 | case $xmkmfpath in |
| 5257 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5258 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 5259 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5260 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5262 | for as_dir in $PATH |
| 5263 | do |
| 5264 | IFS=$as_save_IFS |
| 5265 | test -z "$as_dir" && as_dir=. |
| 5266 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5267 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5268 | ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" |
| 5269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5270 | break 2 |
| 5271 | fi |
| 5272 | done |
| 5273 | done |
| 5274 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5275 | ;; |
| 5276 | esac |
| 5277 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5278 | xmkmfpath=$ac_cv_path_xmkmfpath |
| 5279 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5280 | if test -n "$xmkmfpath"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5281 | echo "$as_me:$LINENO: result: $xmkmfpath" >&5 |
| 5282 | echo "${ECHO_T}$xmkmfpath" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5283 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5284 | echo "$as_me:$LINENO: result: no" >&5 |
| 5285 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5286 | fi |
| 5287 | |
| 5288 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5289 | echo "$as_me:$LINENO: checking for X" >&5 |
| 5290 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 5291 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5292 | |
| 5293 | # Check whether --with-x or --without-x was given. |
| 5294 | if test "${with_x+set}" = set; then |
| 5295 | withval="$with_x" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5296 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5297 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5298 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 5299 | if test "x$with_x" = xno; then |
| 5300 | # The user explicitly disabled X. |
| 5301 | have_x=disabled |
| 5302 | else |
| 5303 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 5304 | # Both variables are already set. |
| 5305 | have_x=yes |
| 5306 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5307 | if test "${ac_cv_have_x+set}" = set; then |
| 5308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5309 | else |
| 5310 | # 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] | 5311 | ac_x_includes=no ac_x_libraries=no |
| 5312 | rm -fr conftest.dir |
| 5313 | if mkdir conftest.dir; then |
| 5314 | cd conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5315 | # 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] | 5316 | cat >Imakefile <<'_ACEOF' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5317 | acfindx: |
| 5318 | @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] | 5319 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5320 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 5321 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 5322 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 5323 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 5324 | for ac_extension in a so sl; do |
| 5325 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5326 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 5327 | ac_im_usrlibdir=$ac_im_libdir; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5328 | fi |
| 5329 | done |
| 5330 | # Screen out bogus values from the imake configuration. They are |
| 5331 | # bogus both because they are the default anyway, and because |
| 5332 | # using them would break gcc on systems where it needs fixed includes. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5333 | case $ac_im_incroot in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5334 | /usr/include) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5335 | *) 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] | 5336 | esac |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5337 | case $ac_im_usrlibdir in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5338 | /usr/lib | /lib) ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5339 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5340 | esac |
| 5341 | fi |
| 5342 | cd .. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5343 | rm -fr conftest.dir |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5344 | fi |
| 5345 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5346 | # Standard set of common directories for X headers. |
| 5347 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 5348 | ac_x_header_dirs=' |
| 5349 | /usr/X11/include |
| 5350 | /usr/X11R6/include |
| 5351 | /usr/X11R5/include |
| 5352 | /usr/X11R4/include |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5353 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5354 | /usr/include/X11 |
| 5355 | /usr/include/X11R6 |
| 5356 | /usr/include/X11R5 |
| 5357 | /usr/include/X11R4 |
| 5358 | |
| 5359 | /usr/local/X11/include |
| 5360 | /usr/local/X11R6/include |
| 5361 | /usr/local/X11R5/include |
| 5362 | /usr/local/X11R4/include |
| 5363 | |
| 5364 | /usr/local/include/X11 |
| 5365 | /usr/local/include/X11R6 |
| 5366 | /usr/local/include/X11R5 |
| 5367 | /usr/local/include/X11R4 |
| 5368 | |
| 5369 | /usr/X386/include |
| 5370 | /usr/x386/include |
| 5371 | /usr/XFree86/include/X11 |
| 5372 | |
| 5373 | /usr/include |
| 5374 | /usr/local/include |
| 5375 | /usr/unsupported/include |
| 5376 | /usr/athena/include |
| 5377 | /usr/local/x11r5/include |
| 5378 | /usr/lpp/Xamples/include |
| 5379 | |
| 5380 | /usr/openwin/include |
| 5381 | /usr/openwin/share/include' |
| 5382 | |
| 5383 | if test "$ac_x_includes" = no; then |
| 5384 | # Guess where to find include files, by looking for Intrinsic.h. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5385 | # First, try using that file with no special directory specified. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5386 | cat >conftest.$ac_ext <<_ACEOF |
| 5387 | /* confdefs.h. */ |
| 5388 | _ACEOF |
| 5389 | cat confdefs.h >>conftest.$ac_ext |
| 5390 | cat >>conftest.$ac_ext <<_ACEOF |
| 5391 | /* end confdefs.h. */ |
| 5392 | #include <X11/Intrinsic.h> |
| 5393 | _ACEOF |
| 5394 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5395 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5396 | ac_status=$? |
| 5397 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5398 | rm -f conftest.er1 |
| 5399 | cat conftest.err >&5 |
| 5400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5401 | (exit $ac_status); } >/dev/null; then |
| 5402 | if test -s conftest.err; then |
| 5403 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5404 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5405 | else |
| 5406 | ac_cpp_err= |
| 5407 | fi |
| 5408 | else |
| 5409 | ac_cpp_err=yes |
| 5410 | fi |
| 5411 | if test -z "$ac_cpp_err"; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5412 | # We can compile using X headers with no special include directory. |
| 5413 | ac_x_includes= |
| 5414 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5415 | echo "$as_me: failed program was:" >&5 |
| 5416 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5417 | |
| 5418 | for ac_dir in $ac_x_header_dirs; do |
| 5419 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
| 5420 | ac_x_includes=$ac_dir |
| 5421 | break |
| 5422 | fi |
| 5423 | done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5424 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5425 | rm -f conftest.err conftest.$ac_ext |
| 5426 | fi # $ac_x_includes = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5427 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5428 | if test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5429 | # Check for the libraries. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5430 | # See if we find them without any special options. |
| 5431 | # Don't add to $LIBS permanently. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5432 | ac_save_LIBS=$LIBS |
| 5433 | LIBS="-lXt $LIBS" |
| 5434 | cat >conftest.$ac_ext <<_ACEOF |
| 5435 | /* confdefs.h. */ |
| 5436 | _ACEOF |
| 5437 | cat confdefs.h >>conftest.$ac_ext |
| 5438 | cat >>conftest.$ac_ext <<_ACEOF |
| 5439 | /* end confdefs.h. */ |
| 5440 | #include <X11/Intrinsic.h> |
| 5441 | int |
| 5442 | main () |
| 5443 | { |
| 5444 | XtMalloc (0) |
| 5445 | ; |
| 5446 | return 0; |
| 5447 | } |
| 5448 | _ACEOF |
| 5449 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5451 | (eval $ac_link) 2>conftest.er1 |
| 5452 | ac_status=$? |
| 5453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5454 | rm -f conftest.er1 |
| 5455 | cat conftest.err >&5 |
| 5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5457 | (exit $ac_status); } && |
| 5458 | { ac_try='test -z "$ac_c_werror_flag" |
| 5459 | || test ! -s conftest.err' |
| 5460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5461 | (eval $ac_try) 2>&5 |
| 5462 | ac_status=$? |
| 5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5464 | (exit $ac_status); }; } && |
| 5465 | { ac_try='test -s conftest$ac_exeext' |
| 5466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5467 | (eval $ac_try) 2>&5 |
| 5468 | ac_status=$? |
| 5469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5470 | (exit $ac_status); }; }; then |
| 5471 | LIBS=$ac_save_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5472 | # We can link X programs with no special library path. |
| 5473 | ac_x_libraries= |
| 5474 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5475 | echo "$as_me: failed program was:" >&5 |
| 5476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5477 | |
| 5478 | LIBS=$ac_save_LIBS |
| 5479 | 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] | 5480 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5481 | # 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] | 5482 | for ac_extension in a so sl; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5483 | if test -r $ac_dir/libXt.$ac_extension; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5484 | ac_x_libraries=$ac_dir |
| 5485 | break 2 |
| 5486 | fi |
| 5487 | done |
| 5488 | done |
| 5489 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5490 | rm -f conftest.err conftest.$ac_objext \ |
| 5491 | conftest$ac_exeext conftest.$ac_ext |
| 5492 | fi # $ac_x_libraries = no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5493 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5494 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5495 | # Didn't find X anywhere. Cache the known absence of X. |
| 5496 | ac_cv_have_x="have_x=no" |
| 5497 | else |
| 5498 | # Record where we found X for the cache. |
| 5499 | ac_cv_have_x="have_x=yes \ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5500 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5501 | fi |
| 5502 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5503 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5504 | fi |
| 5505 | eval "$ac_cv_have_x" |
| 5506 | fi # $with_x != no |
| 5507 | |
| 5508 | if test "$have_x" != yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5509 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 5510 | echo "${ECHO_T}$have_x" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5511 | no_x=yes |
| 5512 | else |
| 5513 | # If each of the values was on the command line, it overrides each guess. |
| 5514 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 5515 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 5516 | # Update the cache value to reflect the command line values. |
| 5517 | ac_cv_have_x="have_x=yes \ |
| 5518 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5519 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 5520 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5521 | fi |
| 5522 | |
| 5523 | if test "$no_x" = yes; then |
| 5524 | # 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] | 5525 | |
| 5526 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5527 | #define X_DISPLAY_MISSING 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5528 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5529 | |
| 5530 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 5531 | else |
| 5532 | if test -n "$x_includes"; then |
| 5533 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 5534 | fi |
| 5535 | |
| 5536 | # It would also be nice to do this for all -L options, not just this one. |
| 5537 | if test -n "$x_libraries"; then |
| 5538 | X_LIBS="$X_LIBS -L$x_libraries" |
| 5539 | # For Solaris; some versions of Sun CC require a space after -R and |
| 5540 | # others require no space. Words are not sufficient . . . . |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5541 | case `(uname -sr) 2>/dev/null` in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5542 | "SunOS 5"*) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5543 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 5544 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 5545 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 5546 | cat >conftest.$ac_ext <<_ACEOF |
| 5547 | /* confdefs.h. */ |
| 5548 | _ACEOF |
| 5549 | cat confdefs.h >>conftest.$ac_ext |
| 5550 | cat >>conftest.$ac_ext <<_ACEOF |
| 5551 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5552 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5553 | int |
| 5554 | main () |
| 5555 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5556 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5557 | ; |
| 5558 | return 0; |
| 5559 | } |
| 5560 | _ACEOF |
| 5561 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5563 | (eval $ac_link) 2>conftest.er1 |
| 5564 | ac_status=$? |
| 5565 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5566 | rm -f conftest.er1 |
| 5567 | cat conftest.err >&5 |
| 5568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5569 | (exit $ac_status); } && |
| 5570 | { ac_try='test -z "$ac_c_werror_flag" |
| 5571 | || test ! -s conftest.err' |
| 5572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5573 | (eval $ac_try) 2>&5 |
| 5574 | ac_status=$? |
| 5575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5576 | (exit $ac_status); }; } && |
| 5577 | { ac_try='test -s conftest$ac_exeext' |
| 5578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5579 | (eval $ac_try) 2>&5 |
| 5580 | ac_status=$? |
| 5581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5582 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5583 | ac_R_nospace=yes |
| 5584 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5585 | echo "$as_me: failed program was:" >&5 |
| 5586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5587 | |
| 5588 | ac_R_nospace=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5589 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5590 | rm -f conftest.err conftest.$ac_objext \ |
| 5591 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5592 | if test $ac_R_nospace = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5593 | echo "$as_me:$LINENO: result: no" >&5 |
| 5594 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5595 | X_LIBS="$X_LIBS -R$x_libraries" |
| 5596 | else |
| 5597 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5598 | cat >conftest.$ac_ext <<_ACEOF |
| 5599 | /* confdefs.h. */ |
| 5600 | _ACEOF |
| 5601 | cat confdefs.h >>conftest.$ac_ext |
| 5602 | cat >>conftest.$ac_ext <<_ACEOF |
| 5603 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5604 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5605 | int |
| 5606 | main () |
| 5607 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5608 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5609 | ; |
| 5610 | return 0; |
| 5611 | } |
| 5612 | _ACEOF |
| 5613 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5615 | (eval $ac_link) 2>conftest.er1 |
| 5616 | ac_status=$? |
| 5617 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5618 | rm -f conftest.er1 |
| 5619 | cat conftest.err >&5 |
| 5620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5621 | (exit $ac_status); } && |
| 5622 | { ac_try='test -z "$ac_c_werror_flag" |
| 5623 | || test ! -s conftest.err' |
| 5624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5625 | (eval $ac_try) 2>&5 |
| 5626 | ac_status=$? |
| 5627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5628 | (exit $ac_status); }; } && |
| 5629 | { ac_try='test -s conftest$ac_exeext' |
| 5630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5631 | (eval $ac_try) 2>&5 |
| 5632 | ac_status=$? |
| 5633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5634 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5635 | ac_R_space=yes |
| 5636 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5637 | echo "$as_me: failed program was:" >&5 |
| 5638 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5639 | |
| 5640 | ac_R_space=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5641 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5642 | rm -f conftest.err conftest.$ac_objext \ |
| 5643 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5644 | if test $ac_R_space = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5645 | echo "$as_me:$LINENO: result: yes" >&5 |
| 5646 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5647 | X_LIBS="$X_LIBS -R $x_libraries" |
| 5648 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5649 | echo "$as_me:$LINENO: result: neither works" >&5 |
| 5650 | echo "${ECHO_T}neither works" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5651 | fi |
| 5652 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5653 | LIBS=$ac_xsave_LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5654 | esac |
| 5655 | fi |
| 5656 | |
| 5657 | # Check for system-dependent libraries X programs must link with. |
| 5658 | # Do this before checking for the system-independent R6 libraries |
| 5659 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 5660 | |
| 5661 | if test "$ISC" = yes; then |
| 5662 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 5663 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5664 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 5665 | # libraries were built with DECnet support. And Karl Berry says |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5666 | # the Alpha needs dnet_stub (dnet does not exist). |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5667 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 5668 | cat >conftest.$ac_ext <<_ACEOF |
| 5669 | /* confdefs.h. */ |
| 5670 | _ACEOF |
| 5671 | cat confdefs.h >>conftest.$ac_ext |
| 5672 | cat >>conftest.$ac_ext <<_ACEOF |
| 5673 | /* end confdefs.h. */ |
| 5674 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5675 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5676 | #ifdef __cplusplus |
| 5677 | extern "C" |
| 5678 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5679 | /* 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] | 5680 | builtin and then its argument prototype would still apply. */ |
| 5681 | char XOpenDisplay (); |
| 5682 | int |
| 5683 | main () |
| 5684 | { |
| 5685 | XOpenDisplay (); |
| 5686 | ; |
| 5687 | return 0; |
| 5688 | } |
| 5689 | _ACEOF |
| 5690 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5692 | (eval $ac_link) 2>conftest.er1 |
| 5693 | ac_status=$? |
| 5694 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5695 | rm -f conftest.er1 |
| 5696 | cat conftest.err >&5 |
| 5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5698 | (exit $ac_status); } && |
| 5699 | { ac_try='test -z "$ac_c_werror_flag" |
| 5700 | || test ! -s conftest.err' |
| 5701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5702 | (eval $ac_try) 2>&5 |
| 5703 | ac_status=$? |
| 5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5705 | (exit $ac_status); }; } && |
| 5706 | { ac_try='test -s conftest$ac_exeext' |
| 5707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5708 | (eval $ac_try) 2>&5 |
| 5709 | ac_status=$? |
| 5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5711 | (exit $ac_status); }; }; then |
| 5712 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5713 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5714 | echo "$as_me: failed program was:" >&5 |
| 5715 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5716 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5717 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 5718 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 5719 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 5720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5721 | else |
| 5722 | ac_check_lib_save_LIBS=$LIBS |
| 5723 | LIBS="-ldnet $LIBS" |
| 5724 | cat >conftest.$ac_ext <<_ACEOF |
| 5725 | /* confdefs.h. */ |
| 5726 | _ACEOF |
| 5727 | cat confdefs.h >>conftest.$ac_ext |
| 5728 | cat >>conftest.$ac_ext <<_ACEOF |
| 5729 | /* end confdefs.h. */ |
| 5730 | |
| 5731 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5732 | #ifdef __cplusplus |
| 5733 | extern "C" |
| 5734 | #endif |
| 5735 | /* We use char because int might match the return type of a gcc2 |
| 5736 | builtin and then its argument prototype would still apply. */ |
| 5737 | char dnet_ntoa (); |
| 5738 | int |
| 5739 | main () |
| 5740 | { |
| 5741 | dnet_ntoa (); |
| 5742 | ; |
| 5743 | return 0; |
| 5744 | } |
| 5745 | _ACEOF |
| 5746 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5748 | (eval $ac_link) 2>conftest.er1 |
| 5749 | ac_status=$? |
| 5750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5751 | rm -f conftest.er1 |
| 5752 | cat conftest.err >&5 |
| 5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5754 | (exit $ac_status); } && |
| 5755 | { ac_try='test -z "$ac_c_werror_flag" |
| 5756 | || test ! -s conftest.err' |
| 5757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5758 | (eval $ac_try) 2>&5 |
| 5759 | ac_status=$? |
| 5760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5761 | (exit $ac_status); }; } && |
| 5762 | { ac_try='test -s conftest$ac_exeext' |
| 5763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5764 | (eval $ac_try) 2>&5 |
| 5765 | ac_status=$? |
| 5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5767 | (exit $ac_status); }; }; then |
| 5768 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 5769 | else |
| 5770 | echo "$as_me: failed program was:" >&5 |
| 5771 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5772 | |
| 5773 | ac_cv_lib_dnet_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5774 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5775 | rm -f conftest.err conftest.$ac_objext \ |
| 5776 | conftest$ac_exeext conftest.$ac_ext |
| 5777 | LIBS=$ac_check_lib_save_LIBS |
| 5778 | fi |
| 5779 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 5780 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 5781 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5782 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5783 | fi |
| 5784 | |
| 5785 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5786 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 5787 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 5788 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 5789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5790 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5791 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5792 | LIBS="-ldnet_stub $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5793 | cat >conftest.$ac_ext <<_ACEOF |
| 5794 | /* confdefs.h. */ |
| 5795 | _ACEOF |
| 5796 | cat confdefs.h >>conftest.$ac_ext |
| 5797 | cat >>conftest.$ac_ext <<_ACEOF |
| 5798 | /* end confdefs.h. */ |
| 5799 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5800 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5801 | #ifdef __cplusplus |
| 5802 | extern "C" |
| 5803 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5804 | /* 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] | 5805 | builtin and then its argument prototype would still apply. */ |
| 5806 | char dnet_ntoa (); |
| 5807 | int |
| 5808 | main () |
| 5809 | { |
| 5810 | dnet_ntoa (); |
| 5811 | ; |
| 5812 | return 0; |
| 5813 | } |
| 5814 | _ACEOF |
| 5815 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5817 | (eval $ac_link) 2>conftest.er1 |
| 5818 | ac_status=$? |
| 5819 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5820 | rm -f conftest.er1 |
| 5821 | cat conftest.err >&5 |
| 5822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5823 | (exit $ac_status); } && |
| 5824 | { ac_try='test -z "$ac_c_werror_flag" |
| 5825 | || test ! -s conftest.err' |
| 5826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5827 | (eval $ac_try) 2>&5 |
| 5828 | ac_status=$? |
| 5829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5830 | (exit $ac_status); }; } && |
| 5831 | { ac_try='test -s conftest$ac_exeext' |
| 5832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5833 | (eval $ac_try) 2>&5 |
| 5834 | ac_status=$? |
| 5835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5836 | (exit $ac_status); }; }; then |
| 5837 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5838 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5839 | echo "$as_me: failed program was:" >&5 |
| 5840 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5841 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5842 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5843 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5844 | rm -f conftest.err conftest.$ac_objext \ |
| 5845 | conftest$ac_exeext conftest.$ac_ext |
| 5846 | LIBS=$ac_check_lib_save_LIBS |
| 5847 | fi |
| 5848 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 5849 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 5850 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5851 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5852 | fi |
| 5853 | |
| 5854 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5855 | fi |
| 5856 | rm -f conftest.err conftest.$ac_objext \ |
| 5857 | conftest$ac_exeext conftest.$ac_ext |
| 5858 | LIBS="$ac_xsave_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5859 | |
| 5860 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 5861 | # to get the SysV transport functions. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5862 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5863 | # needs -lnsl. |
| 5864 | # The nsl library prevents programs from opening the X display |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5865 | # on Irix 5.2, according to T.E. Dickey. |
| 5866 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 5867 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 5868 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 5869 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 5870 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 5871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5872 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5873 | cat >conftest.$ac_ext <<_ACEOF |
| 5874 | /* confdefs.h. */ |
| 5875 | _ACEOF |
| 5876 | cat confdefs.h >>conftest.$ac_ext |
| 5877 | cat >>conftest.$ac_ext <<_ACEOF |
| 5878 | /* end confdefs.h. */ |
| 5879 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 5880 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5881 | #define gethostbyname innocuous_gethostbyname |
| 5882 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5883 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5884 | which can conflict with char gethostbyname (); below. |
| 5885 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5886 | <limits.h> exists even on freestanding compilers. */ |
| 5887 | |
| 5888 | #ifdef __STDC__ |
| 5889 | # include <limits.h> |
| 5890 | #else |
| 5891 | # include <assert.h> |
| 5892 | #endif |
| 5893 | |
| 5894 | #undef gethostbyname |
| 5895 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5896 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5897 | #ifdef __cplusplus |
| 5898 | extern "C" |
| 5899 | { |
| 5900 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5901 | /* 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] | 5902 | builtin and then its argument prototype would still apply. */ |
| 5903 | char gethostbyname (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5904 | /* The GNU C library defines this for functions which it implements |
| 5905 | to always fail with ENOSYS. Some functions are actually named |
| 5906 | something starting with __ and the normal name is an alias. */ |
| 5907 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 5908 | choke me |
| 5909 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5910 | char (*f) () = gethostbyname; |
| 5911 | #endif |
| 5912 | #ifdef __cplusplus |
| 5913 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5914 | #endif |
| 5915 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5916 | int |
| 5917 | main () |
| 5918 | { |
| 5919 | return f != gethostbyname; |
| 5920 | ; |
| 5921 | return 0; |
| 5922 | } |
| 5923 | _ACEOF |
| 5924 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5926 | (eval $ac_link) 2>conftest.er1 |
| 5927 | ac_status=$? |
| 5928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5929 | rm -f conftest.er1 |
| 5930 | cat conftest.err >&5 |
| 5931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5932 | (exit $ac_status); } && |
| 5933 | { ac_try='test -z "$ac_c_werror_flag" |
| 5934 | || test ! -s conftest.err' |
| 5935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5936 | (eval $ac_try) 2>&5 |
| 5937 | ac_status=$? |
| 5938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5939 | (exit $ac_status); }; } && |
| 5940 | { ac_try='test -s conftest$ac_exeext' |
| 5941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5942 | (eval $ac_try) 2>&5 |
| 5943 | ac_status=$? |
| 5944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5945 | (exit $ac_status); }; }; then |
| 5946 | ac_cv_func_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5947 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5948 | echo "$as_me: failed program was:" >&5 |
| 5949 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5950 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5951 | ac_cv_func_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5952 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5953 | rm -f conftest.err conftest.$ac_objext \ |
| 5954 | conftest$ac_exeext conftest.$ac_ext |
| 5955 | fi |
| 5956 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 5957 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5958 | |
| 5959 | if test $ac_cv_func_gethostbyname = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5960 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 5961 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 5962 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 5963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5964 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5965 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5966 | LIBS="-lnsl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5967 | cat >conftest.$ac_ext <<_ACEOF |
| 5968 | /* confdefs.h. */ |
| 5969 | _ACEOF |
| 5970 | cat confdefs.h >>conftest.$ac_ext |
| 5971 | cat >>conftest.$ac_ext <<_ACEOF |
| 5972 | /* end confdefs.h. */ |
| 5973 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5974 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 5975 | #ifdef __cplusplus |
| 5976 | extern "C" |
| 5977 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 5978 | /* 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] | 5979 | builtin and then its argument prototype would still apply. */ |
| 5980 | char gethostbyname (); |
| 5981 | int |
| 5982 | main () |
| 5983 | { |
| 5984 | gethostbyname (); |
| 5985 | ; |
| 5986 | return 0; |
| 5987 | } |
| 5988 | _ACEOF |
| 5989 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5991 | (eval $ac_link) 2>conftest.er1 |
| 5992 | ac_status=$? |
| 5993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5994 | rm -f conftest.er1 |
| 5995 | cat conftest.err >&5 |
| 5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5997 | (exit $ac_status); } && |
| 5998 | { ac_try='test -z "$ac_c_werror_flag" |
| 5999 | || test ! -s conftest.err' |
| 6000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6001 | (eval $ac_try) 2>&5 |
| 6002 | ac_status=$? |
| 6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6004 | (exit $ac_status); }; } && |
| 6005 | { ac_try='test -s conftest$ac_exeext' |
| 6006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6007 | (eval $ac_try) 2>&5 |
| 6008 | ac_status=$? |
| 6009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6010 | (exit $ac_status); }; }; then |
| 6011 | ac_cv_lib_nsl_gethostbyname=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6012 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6013 | echo "$as_me: failed program was:" >&5 |
| 6014 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6015 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6016 | ac_cv_lib_nsl_gethostbyname=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6017 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6018 | rm -f conftest.err conftest.$ac_objext \ |
| 6019 | conftest$ac_exeext conftest.$ac_ext |
| 6020 | LIBS=$ac_check_lib_save_LIBS |
| 6021 | fi |
| 6022 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 6023 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 6024 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6025 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6026 | fi |
| 6027 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6028 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 6029 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 6030 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 6031 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 6032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6033 | else |
| 6034 | ac_check_lib_save_LIBS=$LIBS |
| 6035 | LIBS="-lbsd $LIBS" |
| 6036 | cat >conftest.$ac_ext <<_ACEOF |
| 6037 | /* confdefs.h. */ |
| 6038 | _ACEOF |
| 6039 | cat confdefs.h >>conftest.$ac_ext |
| 6040 | cat >>conftest.$ac_ext <<_ACEOF |
| 6041 | /* end confdefs.h. */ |
| 6042 | |
| 6043 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6044 | #ifdef __cplusplus |
| 6045 | extern "C" |
| 6046 | #endif |
| 6047 | /* We use char because int might match the return type of a gcc2 |
| 6048 | builtin and then its argument prototype would still apply. */ |
| 6049 | char gethostbyname (); |
| 6050 | int |
| 6051 | main () |
| 6052 | { |
| 6053 | gethostbyname (); |
| 6054 | ; |
| 6055 | return 0; |
| 6056 | } |
| 6057 | _ACEOF |
| 6058 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6060 | (eval $ac_link) 2>conftest.er1 |
| 6061 | ac_status=$? |
| 6062 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6063 | rm -f conftest.er1 |
| 6064 | cat conftest.err >&5 |
| 6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6066 | (exit $ac_status); } && |
| 6067 | { ac_try='test -z "$ac_c_werror_flag" |
| 6068 | || test ! -s conftest.err' |
| 6069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6070 | (eval $ac_try) 2>&5 |
| 6071 | ac_status=$? |
| 6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6073 | (exit $ac_status); }; } && |
| 6074 | { ac_try='test -s conftest$ac_exeext' |
| 6075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6076 | (eval $ac_try) 2>&5 |
| 6077 | ac_status=$? |
| 6078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6079 | (exit $ac_status); }; }; then |
| 6080 | ac_cv_lib_bsd_gethostbyname=yes |
| 6081 | else |
| 6082 | echo "$as_me: failed program was:" >&5 |
| 6083 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6084 | |
| 6085 | ac_cv_lib_bsd_gethostbyname=no |
| 6086 | fi |
| 6087 | rm -f conftest.err conftest.$ac_objext \ |
| 6088 | conftest$ac_exeext conftest.$ac_ext |
| 6089 | LIBS=$ac_check_lib_save_LIBS |
| 6090 | fi |
| 6091 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 6092 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 6093 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 6094 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 6095 | fi |
| 6096 | |
| 6097 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6098 | fi |
| 6099 | |
| 6100 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 6101 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 6102 | # 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] | 6103 | # on later versions), says Simon Leinen: it contains gethostby* |
| 6104 | # variants that don't use the name server (or something). -lsocket |
| 6105 | # must be given before -lnsl if both are needed. We assume that |
| 6106 | # if connect needs -lnsl, so does gethostbyname. |
| 6107 | echo "$as_me:$LINENO: checking for connect" >&5 |
| 6108 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 6109 | if test "${ac_cv_func_connect+set}" = set; then |
| 6110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6111 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6112 | cat >conftest.$ac_ext <<_ACEOF |
| 6113 | /* confdefs.h. */ |
| 6114 | _ACEOF |
| 6115 | cat confdefs.h >>conftest.$ac_ext |
| 6116 | cat >>conftest.$ac_ext <<_ACEOF |
| 6117 | /* end confdefs.h. */ |
| 6118 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 6119 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6120 | #define connect innocuous_connect |
| 6121 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6122 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6123 | which can conflict with char connect (); below. |
| 6124 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6125 | <limits.h> exists even on freestanding compilers. */ |
| 6126 | |
| 6127 | #ifdef __STDC__ |
| 6128 | # include <limits.h> |
| 6129 | #else |
| 6130 | # include <assert.h> |
| 6131 | #endif |
| 6132 | |
| 6133 | #undef connect |
| 6134 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6135 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6136 | #ifdef __cplusplus |
| 6137 | extern "C" |
| 6138 | { |
| 6139 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6140 | /* 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] | 6141 | builtin and then its argument prototype would still apply. */ |
| 6142 | char connect (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6143 | /* The GNU C library defines this for functions which it implements |
| 6144 | to always fail with ENOSYS. Some functions are actually named |
| 6145 | something starting with __ and the normal name is an alias. */ |
| 6146 | #if defined (__stub_connect) || defined (__stub___connect) |
| 6147 | choke me |
| 6148 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6149 | char (*f) () = connect; |
| 6150 | #endif |
| 6151 | #ifdef __cplusplus |
| 6152 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6153 | #endif |
| 6154 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6155 | int |
| 6156 | main () |
| 6157 | { |
| 6158 | return f != connect; |
| 6159 | ; |
| 6160 | return 0; |
| 6161 | } |
| 6162 | _ACEOF |
| 6163 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6165 | (eval $ac_link) 2>conftest.er1 |
| 6166 | ac_status=$? |
| 6167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6168 | rm -f conftest.er1 |
| 6169 | cat conftest.err >&5 |
| 6170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6171 | (exit $ac_status); } && |
| 6172 | { ac_try='test -z "$ac_c_werror_flag" |
| 6173 | || test ! -s conftest.err' |
| 6174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6175 | (eval $ac_try) 2>&5 |
| 6176 | ac_status=$? |
| 6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6178 | (exit $ac_status); }; } && |
| 6179 | { ac_try='test -s conftest$ac_exeext' |
| 6180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6181 | (eval $ac_try) 2>&5 |
| 6182 | ac_status=$? |
| 6183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6184 | (exit $ac_status); }; }; then |
| 6185 | ac_cv_func_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6186 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6187 | echo "$as_me: failed program was:" >&5 |
| 6188 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6189 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6190 | ac_cv_func_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6191 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6192 | rm -f conftest.err conftest.$ac_objext \ |
| 6193 | conftest$ac_exeext conftest.$ac_ext |
| 6194 | fi |
| 6195 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 6196 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6197 | |
| 6198 | if test $ac_cv_func_connect = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6199 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 6200 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 6201 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 6202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6203 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6204 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6205 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6206 | cat >conftest.$ac_ext <<_ACEOF |
| 6207 | /* confdefs.h. */ |
| 6208 | _ACEOF |
| 6209 | cat confdefs.h >>conftest.$ac_ext |
| 6210 | cat >>conftest.$ac_ext <<_ACEOF |
| 6211 | /* end confdefs.h. */ |
| 6212 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6213 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6214 | #ifdef __cplusplus |
| 6215 | extern "C" |
| 6216 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6217 | /* 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] | 6218 | builtin and then its argument prototype would still apply. */ |
| 6219 | char connect (); |
| 6220 | int |
| 6221 | main () |
| 6222 | { |
| 6223 | connect (); |
| 6224 | ; |
| 6225 | return 0; |
| 6226 | } |
| 6227 | _ACEOF |
| 6228 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6230 | (eval $ac_link) 2>conftest.er1 |
| 6231 | ac_status=$? |
| 6232 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6233 | rm -f conftest.er1 |
| 6234 | cat conftest.err >&5 |
| 6235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6236 | (exit $ac_status); } && |
| 6237 | { ac_try='test -z "$ac_c_werror_flag" |
| 6238 | || test ! -s conftest.err' |
| 6239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6240 | (eval $ac_try) 2>&5 |
| 6241 | ac_status=$? |
| 6242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6243 | (exit $ac_status); }; } && |
| 6244 | { ac_try='test -s conftest$ac_exeext' |
| 6245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6246 | (eval $ac_try) 2>&5 |
| 6247 | ac_status=$? |
| 6248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6249 | (exit $ac_status); }; }; then |
| 6250 | ac_cv_lib_socket_connect=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6251 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6252 | echo "$as_me: failed program was:" >&5 |
| 6253 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6254 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6255 | ac_cv_lib_socket_connect=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6256 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6257 | rm -f conftest.err conftest.$ac_objext \ |
| 6258 | conftest$ac_exeext conftest.$ac_ext |
| 6259 | LIBS=$ac_check_lib_save_LIBS |
| 6260 | fi |
| 6261 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 6262 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 6263 | if test $ac_cv_lib_socket_connect = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6264 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6265 | fi |
| 6266 | |
| 6267 | fi |
| 6268 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6269 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 6270 | echo "$as_me:$LINENO: checking for remove" >&5 |
| 6271 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 6272 | if test "${ac_cv_func_remove+set}" = set; then |
| 6273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6274 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6275 | cat >conftest.$ac_ext <<_ACEOF |
| 6276 | /* confdefs.h. */ |
| 6277 | _ACEOF |
| 6278 | cat confdefs.h >>conftest.$ac_ext |
| 6279 | cat >>conftest.$ac_ext <<_ACEOF |
| 6280 | /* end confdefs.h. */ |
| 6281 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 6282 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6283 | #define remove innocuous_remove |
| 6284 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6285 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6286 | which can conflict with char remove (); below. |
| 6287 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6288 | <limits.h> exists even on freestanding compilers. */ |
| 6289 | |
| 6290 | #ifdef __STDC__ |
| 6291 | # include <limits.h> |
| 6292 | #else |
| 6293 | # include <assert.h> |
| 6294 | #endif |
| 6295 | |
| 6296 | #undef remove |
| 6297 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6298 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6299 | #ifdef __cplusplus |
| 6300 | extern "C" |
| 6301 | { |
| 6302 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6303 | /* 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] | 6304 | builtin and then its argument prototype would still apply. */ |
| 6305 | char remove (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6306 | /* The GNU C library defines this for functions which it implements |
| 6307 | to always fail with ENOSYS. Some functions are actually named |
| 6308 | something starting with __ and the normal name is an alias. */ |
| 6309 | #if defined (__stub_remove) || defined (__stub___remove) |
| 6310 | choke me |
| 6311 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6312 | char (*f) () = remove; |
| 6313 | #endif |
| 6314 | #ifdef __cplusplus |
| 6315 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6316 | #endif |
| 6317 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6318 | int |
| 6319 | main () |
| 6320 | { |
| 6321 | return f != remove; |
| 6322 | ; |
| 6323 | return 0; |
| 6324 | } |
| 6325 | _ACEOF |
| 6326 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6328 | (eval $ac_link) 2>conftest.er1 |
| 6329 | ac_status=$? |
| 6330 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6331 | rm -f conftest.er1 |
| 6332 | cat conftest.err >&5 |
| 6333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6334 | (exit $ac_status); } && |
| 6335 | { ac_try='test -z "$ac_c_werror_flag" |
| 6336 | || test ! -s conftest.err' |
| 6337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6338 | (eval $ac_try) 2>&5 |
| 6339 | ac_status=$? |
| 6340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6341 | (exit $ac_status); }; } && |
| 6342 | { ac_try='test -s conftest$ac_exeext' |
| 6343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6344 | (eval $ac_try) 2>&5 |
| 6345 | ac_status=$? |
| 6346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6347 | (exit $ac_status); }; }; then |
| 6348 | ac_cv_func_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6349 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6350 | echo "$as_me: failed program was:" >&5 |
| 6351 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6352 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6353 | ac_cv_func_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6354 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6355 | rm -f conftest.err conftest.$ac_objext \ |
| 6356 | conftest$ac_exeext conftest.$ac_ext |
| 6357 | fi |
| 6358 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 6359 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6360 | |
| 6361 | if test $ac_cv_func_remove = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6362 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 6363 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 6364 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 6365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6366 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6367 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6368 | LIBS="-lposix $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6369 | cat >conftest.$ac_ext <<_ACEOF |
| 6370 | /* confdefs.h. */ |
| 6371 | _ACEOF |
| 6372 | cat confdefs.h >>conftest.$ac_ext |
| 6373 | cat >>conftest.$ac_ext <<_ACEOF |
| 6374 | /* end confdefs.h. */ |
| 6375 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6376 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6377 | #ifdef __cplusplus |
| 6378 | extern "C" |
| 6379 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6380 | /* 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] | 6381 | builtin and then its argument prototype would still apply. */ |
| 6382 | char remove (); |
| 6383 | int |
| 6384 | main () |
| 6385 | { |
| 6386 | remove (); |
| 6387 | ; |
| 6388 | return 0; |
| 6389 | } |
| 6390 | _ACEOF |
| 6391 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6393 | (eval $ac_link) 2>conftest.er1 |
| 6394 | ac_status=$? |
| 6395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6396 | rm -f conftest.er1 |
| 6397 | cat conftest.err >&5 |
| 6398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6399 | (exit $ac_status); } && |
| 6400 | { ac_try='test -z "$ac_c_werror_flag" |
| 6401 | || test ! -s conftest.err' |
| 6402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6403 | (eval $ac_try) 2>&5 |
| 6404 | ac_status=$? |
| 6405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6406 | (exit $ac_status); }; } && |
| 6407 | { ac_try='test -s conftest$ac_exeext' |
| 6408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6409 | (eval $ac_try) 2>&5 |
| 6410 | ac_status=$? |
| 6411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6412 | (exit $ac_status); }; }; then |
| 6413 | ac_cv_lib_posix_remove=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6414 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6415 | echo "$as_me: failed program was:" >&5 |
| 6416 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6417 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6418 | ac_cv_lib_posix_remove=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6419 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6420 | rm -f conftest.err conftest.$ac_objext \ |
| 6421 | conftest$ac_exeext conftest.$ac_ext |
| 6422 | LIBS=$ac_check_lib_save_LIBS |
| 6423 | fi |
| 6424 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 6425 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 6426 | if test $ac_cv_lib_posix_remove = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6427 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6428 | fi |
| 6429 | |
| 6430 | fi |
| 6431 | |
| 6432 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6433 | echo "$as_me:$LINENO: checking for shmat" >&5 |
| 6434 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 6435 | if test "${ac_cv_func_shmat+set}" = set; then |
| 6436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6437 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6438 | cat >conftest.$ac_ext <<_ACEOF |
| 6439 | /* confdefs.h. */ |
| 6440 | _ACEOF |
| 6441 | cat confdefs.h >>conftest.$ac_ext |
| 6442 | cat >>conftest.$ac_ext <<_ACEOF |
| 6443 | /* end confdefs.h. */ |
| 6444 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 6445 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6446 | #define shmat innocuous_shmat |
| 6447 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6448 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6449 | which can conflict with char shmat (); below. |
| 6450 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6451 | <limits.h> exists even on freestanding compilers. */ |
| 6452 | |
| 6453 | #ifdef __STDC__ |
| 6454 | # include <limits.h> |
| 6455 | #else |
| 6456 | # include <assert.h> |
| 6457 | #endif |
| 6458 | |
| 6459 | #undef shmat |
| 6460 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6461 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6462 | #ifdef __cplusplus |
| 6463 | extern "C" |
| 6464 | { |
| 6465 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6466 | /* 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] | 6467 | builtin and then its argument prototype would still apply. */ |
| 6468 | char shmat (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6469 | /* The GNU C library defines this for functions which it implements |
| 6470 | to always fail with ENOSYS. Some functions are actually named |
| 6471 | something starting with __ and the normal name is an alias. */ |
| 6472 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 6473 | choke me |
| 6474 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6475 | char (*f) () = shmat; |
| 6476 | #endif |
| 6477 | #ifdef __cplusplus |
| 6478 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6479 | #endif |
| 6480 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6481 | int |
| 6482 | main () |
| 6483 | { |
| 6484 | return f != shmat; |
| 6485 | ; |
| 6486 | return 0; |
| 6487 | } |
| 6488 | _ACEOF |
| 6489 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6491 | (eval $ac_link) 2>conftest.er1 |
| 6492 | ac_status=$? |
| 6493 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6494 | rm -f conftest.er1 |
| 6495 | cat conftest.err >&5 |
| 6496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6497 | (exit $ac_status); } && |
| 6498 | { ac_try='test -z "$ac_c_werror_flag" |
| 6499 | || test ! -s conftest.err' |
| 6500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6501 | (eval $ac_try) 2>&5 |
| 6502 | ac_status=$? |
| 6503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6504 | (exit $ac_status); }; } && |
| 6505 | { ac_try='test -s conftest$ac_exeext' |
| 6506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6507 | (eval $ac_try) 2>&5 |
| 6508 | ac_status=$? |
| 6509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6510 | (exit $ac_status); }; }; then |
| 6511 | ac_cv_func_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6512 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6513 | echo "$as_me: failed program was:" >&5 |
| 6514 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6515 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6516 | ac_cv_func_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6517 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6518 | rm -f conftest.err conftest.$ac_objext \ |
| 6519 | conftest$ac_exeext conftest.$ac_ext |
| 6520 | fi |
| 6521 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 6522 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6523 | |
| 6524 | if test $ac_cv_func_shmat = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6525 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 6526 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 6527 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 6528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6529 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6530 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6531 | LIBS="-lipc $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6532 | cat >conftest.$ac_ext <<_ACEOF |
| 6533 | /* confdefs.h. */ |
| 6534 | _ACEOF |
| 6535 | cat confdefs.h >>conftest.$ac_ext |
| 6536 | cat >>conftest.$ac_ext <<_ACEOF |
| 6537 | /* end confdefs.h. */ |
| 6538 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6539 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6540 | #ifdef __cplusplus |
| 6541 | extern "C" |
| 6542 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6543 | /* 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] | 6544 | builtin and then its argument prototype would still apply. */ |
| 6545 | char shmat (); |
| 6546 | int |
| 6547 | main () |
| 6548 | { |
| 6549 | shmat (); |
| 6550 | ; |
| 6551 | return 0; |
| 6552 | } |
| 6553 | _ACEOF |
| 6554 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6556 | (eval $ac_link) 2>conftest.er1 |
| 6557 | ac_status=$? |
| 6558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6559 | rm -f conftest.er1 |
| 6560 | cat conftest.err >&5 |
| 6561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6562 | (exit $ac_status); } && |
| 6563 | { ac_try='test -z "$ac_c_werror_flag" |
| 6564 | || test ! -s conftest.err' |
| 6565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6566 | (eval $ac_try) 2>&5 |
| 6567 | ac_status=$? |
| 6568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6569 | (exit $ac_status); }; } && |
| 6570 | { ac_try='test -s conftest$ac_exeext' |
| 6571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6572 | (eval $ac_try) 2>&5 |
| 6573 | ac_status=$? |
| 6574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6575 | (exit $ac_status); }; }; then |
| 6576 | ac_cv_lib_ipc_shmat=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6577 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6578 | echo "$as_me: failed program was:" >&5 |
| 6579 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6580 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6581 | ac_cv_lib_ipc_shmat=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6582 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6583 | rm -f conftest.err conftest.$ac_objext \ |
| 6584 | conftest$ac_exeext conftest.$ac_ext |
| 6585 | LIBS=$ac_check_lib_save_LIBS |
| 6586 | fi |
| 6587 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 6588 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 6589 | if test $ac_cv_lib_ipc_shmat = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6590 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6591 | fi |
| 6592 | |
| 6593 | fi |
| 6594 | fi |
| 6595 | |
| 6596 | # Check for libraries that X11R6 Xt/Xaw programs need. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6597 | ac_save_LDFLAGS=$LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6598 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 6599 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 6600 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 6601 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 6602 | # These have to be linked with before -lX11, unlike the other |
| 6603 | # libraries we check for below, so use a different variable. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6604 | # John Interrante, Karl Berry |
| 6605 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 6606 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 6607 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 6608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6609 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6610 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6611 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6612 | cat >conftest.$ac_ext <<_ACEOF |
| 6613 | /* confdefs.h. */ |
| 6614 | _ACEOF |
| 6615 | cat confdefs.h >>conftest.$ac_ext |
| 6616 | cat >>conftest.$ac_ext <<_ACEOF |
| 6617 | /* end confdefs.h. */ |
| 6618 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6619 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6620 | #ifdef __cplusplus |
| 6621 | extern "C" |
| 6622 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6623 | /* 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] | 6624 | builtin and then its argument prototype would still apply. */ |
| 6625 | char IceConnectionNumber (); |
| 6626 | int |
| 6627 | main () |
| 6628 | { |
| 6629 | IceConnectionNumber (); |
| 6630 | ; |
| 6631 | return 0; |
| 6632 | } |
| 6633 | _ACEOF |
| 6634 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6636 | (eval $ac_link) 2>conftest.er1 |
| 6637 | ac_status=$? |
| 6638 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6639 | rm -f conftest.er1 |
| 6640 | cat conftest.err >&5 |
| 6641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6642 | (exit $ac_status); } && |
| 6643 | { ac_try='test -z "$ac_c_werror_flag" |
| 6644 | || test ! -s conftest.err' |
| 6645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6646 | (eval $ac_try) 2>&5 |
| 6647 | ac_status=$? |
| 6648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6649 | (exit $ac_status); }; } && |
| 6650 | { ac_try='test -s conftest$ac_exeext' |
| 6651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6652 | (eval $ac_try) 2>&5 |
| 6653 | ac_status=$? |
| 6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6655 | (exit $ac_status); }; }; then |
| 6656 | ac_cv_lib_ICE_IceConnectionNumber=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6657 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6658 | echo "$as_me: failed program was:" >&5 |
| 6659 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6660 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6661 | ac_cv_lib_ICE_IceConnectionNumber=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6662 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6663 | rm -f conftest.err conftest.$ac_objext \ |
| 6664 | conftest$ac_exeext conftest.$ac_ext |
| 6665 | LIBS=$ac_check_lib_save_LIBS |
| 6666 | fi |
| 6667 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 6668 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 6669 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6670 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6671 | fi |
| 6672 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6673 | LDFLAGS=$ac_save_LDFLAGS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6674 | |
| 6675 | fi |
| 6676 | |
| 6677 | |
| 6678 | if test "$OS390Unix" = "yes"; then |
| 6679 | CFLAGS="$CFLAGS -W c,dll" |
| 6680 | LDFLAGS="$LDFLAGS -W l,dll" |
| 6681 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 6682 | fi |
| 6683 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6684 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6685 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 6686 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6687 | echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 |
| 6688 | echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6689 | X_LIBS="$X_LIBS -L$x_libraries" |
| 6690 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 6691 | uname -r | grep '^5' >/dev/null; then |
| 6692 | X_LIBS="$X_LIBS -R $x_libraries" |
| 6693 | fi |
| 6694 | fi |
| 6695 | |
| 6696 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 6697 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6698 | echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 |
| 6699 | echo "${ECHO_T}Corrected X includes to $x_includes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6700 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 6701 | fi |
| 6702 | |
| 6703 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 6704 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 6705 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 6706 | |
| 6707 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6708 | echo "$as_me:$LINENO: checking if X11 header files can be found" >&5 |
| 6709 | 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] | 6710 | cflags_save=$CFLAGS |
| 6711 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6712 | cat >conftest.$ac_ext <<_ACEOF |
| 6713 | /* confdefs.h. */ |
| 6714 | _ACEOF |
| 6715 | cat confdefs.h >>conftest.$ac_ext |
| 6716 | cat >>conftest.$ac_ext <<_ACEOF |
| 6717 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6718 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6719 | int |
| 6720 | main () |
| 6721 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6722 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6723 | ; |
| 6724 | return 0; |
| 6725 | } |
| 6726 | _ACEOF |
| 6727 | rm -f conftest.$ac_objext |
| 6728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6729 | (eval $ac_compile) 2>conftest.er1 |
| 6730 | ac_status=$? |
| 6731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6732 | rm -f conftest.er1 |
| 6733 | cat conftest.err >&5 |
| 6734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6735 | (exit $ac_status); } && |
| 6736 | { ac_try='test -z "$ac_c_werror_flag" |
| 6737 | || test ! -s conftest.err' |
| 6738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6739 | (eval $ac_try) 2>&5 |
| 6740 | ac_status=$? |
| 6741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6742 | (exit $ac_status); }; } && |
| 6743 | { ac_try='test -s conftest.$ac_objext' |
| 6744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6745 | (eval $ac_try) 2>&5 |
| 6746 | ac_status=$? |
| 6747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6748 | (exit $ac_status); }; }; then |
| 6749 | echo "$as_me:$LINENO: result: yes" >&5 |
| 6750 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6751 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6752 | echo "$as_me: failed program was:" >&5 |
| 6753 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6754 | |
| 6755 | echo "$as_me:$LINENO: result: no" >&5 |
| 6756 | echo "${ECHO_T}no" >&6; no_x=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6757 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6759 | CFLAGS=$cflags_save |
| 6760 | |
| 6761 | if test "${no_x-no}" = yes; then |
| 6762 | with_x=no |
| 6763 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6764 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6765 | #define HAVE_X11 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6766 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6767 | |
| 6768 | X_LIB="-lXt -lX11"; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6769 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6770 | |
| 6771 | ac_save_LDFLAGS="$LDFLAGS" |
| 6772 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 6773 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6774 | echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 6775 | echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6 |
| 6776 | if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then |
| 6777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6778 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6779 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6780 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6781 | cat >conftest.$ac_ext <<_ACEOF |
| 6782 | /* confdefs.h. */ |
| 6783 | _ACEOF |
| 6784 | cat confdefs.h >>conftest.$ac_ext |
| 6785 | cat >>conftest.$ac_ext <<_ACEOF |
| 6786 | /* end confdefs.h. */ |
| 6787 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6788 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6789 | #ifdef __cplusplus |
| 6790 | extern "C" |
| 6791 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6792 | /* 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] | 6793 | builtin and then its argument prototype would still apply. */ |
| 6794 | char _XdmcpAuthDoIt (); |
| 6795 | int |
| 6796 | main () |
| 6797 | { |
| 6798 | _XdmcpAuthDoIt (); |
| 6799 | ; |
| 6800 | return 0; |
| 6801 | } |
| 6802 | _ACEOF |
| 6803 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6805 | (eval $ac_link) 2>conftest.er1 |
| 6806 | ac_status=$? |
| 6807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6808 | rm -f conftest.er1 |
| 6809 | cat conftest.err >&5 |
| 6810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6811 | (exit $ac_status); } && |
| 6812 | { ac_try='test -z "$ac_c_werror_flag" |
| 6813 | || test ! -s conftest.err' |
| 6814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6815 | (eval $ac_try) 2>&5 |
| 6816 | ac_status=$? |
| 6817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6818 | (exit $ac_status); }; } && |
| 6819 | { ac_try='test -s conftest$ac_exeext' |
| 6820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6821 | (eval $ac_try) 2>&5 |
| 6822 | ac_status=$? |
| 6823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6824 | (exit $ac_status); }; }; then |
| 6825 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6826 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6827 | echo "$as_me: failed program was:" >&5 |
| 6828 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6829 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6830 | ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6831 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6832 | rm -f conftest.err conftest.$ac_objext \ |
| 6833 | conftest$ac_exeext conftest.$ac_ext |
| 6834 | LIBS=$ac_check_lib_save_LIBS |
| 6835 | fi |
| 6836 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 |
| 6837 | echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6 |
| 6838 | if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6839 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6840 | fi |
| 6841 | |
| 6842 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6843 | echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 |
| 6844 | echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6 |
| 6845 | if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then |
| 6846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6847 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6848 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6849 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6850 | cat >conftest.$ac_ext <<_ACEOF |
| 6851 | /* confdefs.h. */ |
| 6852 | _ACEOF |
| 6853 | cat confdefs.h >>conftest.$ac_ext |
| 6854 | cat >>conftest.$ac_ext <<_ACEOF |
| 6855 | /* end confdefs.h. */ |
| 6856 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6857 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6858 | #ifdef __cplusplus |
| 6859 | extern "C" |
| 6860 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6861 | /* 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] | 6862 | builtin and then its argument prototype would still apply. */ |
| 6863 | char IceOpenConnection (); |
| 6864 | int |
| 6865 | main () |
| 6866 | { |
| 6867 | IceOpenConnection (); |
| 6868 | ; |
| 6869 | return 0; |
| 6870 | } |
| 6871 | _ACEOF |
| 6872 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6874 | (eval $ac_link) 2>conftest.er1 |
| 6875 | ac_status=$? |
| 6876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6877 | rm -f conftest.er1 |
| 6878 | cat conftest.err >&5 |
| 6879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6880 | (exit $ac_status); } && |
| 6881 | { ac_try='test -z "$ac_c_werror_flag" |
| 6882 | || test ! -s conftest.err' |
| 6883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6884 | (eval $ac_try) 2>&5 |
| 6885 | ac_status=$? |
| 6886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6887 | (exit $ac_status); }; } && |
| 6888 | { ac_try='test -s conftest$ac_exeext' |
| 6889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6890 | (eval $ac_try) 2>&5 |
| 6891 | ac_status=$? |
| 6892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6893 | (exit $ac_status); }; }; then |
| 6894 | ac_cv_lib_ICE_IceOpenConnection=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6895 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6896 | echo "$as_me: failed program was:" >&5 |
| 6897 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6898 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6899 | ac_cv_lib_ICE_IceOpenConnection=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6900 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6901 | rm -f conftest.err conftest.$ac_objext \ |
| 6902 | conftest$ac_exeext conftest.$ac_ext |
| 6903 | LIBS=$ac_check_lib_save_LIBS |
| 6904 | fi |
| 6905 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 |
| 6906 | echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6 |
| 6907 | if test $ac_cv_lib_ICE_IceOpenConnection = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6908 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6909 | fi |
| 6910 | |
| 6911 | |
| 6912 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6913 | echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 6914 | echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 |
| 6915 | if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then |
| 6916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6917 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6918 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6919 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6920 | cat >conftest.$ac_ext <<_ACEOF |
| 6921 | /* confdefs.h. */ |
| 6922 | _ACEOF |
| 6923 | cat confdefs.h >>conftest.$ac_ext |
| 6924 | cat >>conftest.$ac_ext <<_ACEOF |
| 6925 | /* end confdefs.h. */ |
| 6926 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6927 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6928 | #ifdef __cplusplus |
| 6929 | extern "C" |
| 6930 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6931 | /* 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] | 6932 | builtin and then its argument prototype would still apply. */ |
| 6933 | char XpmCreatePixmapFromData (); |
| 6934 | int |
| 6935 | main () |
| 6936 | { |
| 6937 | XpmCreatePixmapFromData (); |
| 6938 | ; |
| 6939 | return 0; |
| 6940 | } |
| 6941 | _ACEOF |
| 6942 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6944 | (eval $ac_link) 2>conftest.er1 |
| 6945 | ac_status=$? |
| 6946 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6947 | rm -f conftest.er1 |
| 6948 | cat conftest.err >&5 |
| 6949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6950 | (exit $ac_status); } && |
| 6951 | { ac_try='test -z "$ac_c_werror_flag" |
| 6952 | || test ! -s conftest.err' |
| 6953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6954 | (eval $ac_try) 2>&5 |
| 6955 | ac_status=$? |
| 6956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6957 | (exit $ac_status); }; } && |
| 6958 | { ac_try='test -s conftest$ac_exeext' |
| 6959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6960 | (eval $ac_try) 2>&5 |
| 6961 | ac_status=$? |
| 6962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6963 | (exit $ac_status); }; }; then |
| 6964 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6965 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6966 | echo "$as_me: failed program was:" >&5 |
| 6967 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6968 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6969 | ac_cv_lib_Xpm_XpmCreatePixmapFromData=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6970 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6971 | rm -f conftest.err conftest.$ac_objext \ |
| 6972 | conftest$ac_exeext conftest.$ac_ext |
| 6973 | LIBS=$ac_check_lib_save_LIBS |
| 6974 | fi |
| 6975 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 |
| 6976 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 |
| 6977 | if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6978 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6979 | fi |
| 6980 | |
| 6981 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6982 | echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 |
| 6983 | 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] | 6984 | cflags_save=$CFLAGS |
| 6985 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6986 | cat >conftest.$ac_ext <<_ACEOF |
| 6987 | /* confdefs.h. */ |
| 6988 | _ACEOF |
| 6989 | cat confdefs.h >>conftest.$ac_ext |
| 6990 | cat >>conftest.$ac_ext <<_ACEOF |
| 6991 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6992 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6993 | int |
| 6994 | main () |
| 6995 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6996 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 6997 | ; |
| 6998 | return 0; |
| 6999 | } |
| 7000 | _ACEOF |
| 7001 | rm -f conftest.$ac_objext |
| 7002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7003 | (eval $ac_compile) 2>conftest.er1 |
| 7004 | ac_status=$? |
| 7005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7006 | rm -f conftest.er1 |
| 7007 | cat conftest.err >&5 |
| 7008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7009 | (exit $ac_status); } && |
| 7010 | { ac_try='test -z "$ac_c_werror_flag" |
| 7011 | || test ! -s conftest.err' |
| 7012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7013 | (eval $ac_try) 2>&5 |
| 7014 | ac_status=$? |
| 7015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7016 | (exit $ac_status); }; } && |
| 7017 | { ac_try='test -s conftest.$ac_objext' |
| 7018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7019 | (eval $ac_try) 2>&5 |
| 7020 | ac_status=$? |
| 7021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7022 | (exit $ac_status); }; }; then |
| 7023 | echo "$as_me:$LINENO: result: no" >&5 |
| 7024 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7025 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7026 | echo "$as_me: failed program was:" >&5 |
| 7027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7028 | |
| 7029 | CFLAGS="$CFLAGS -Wno-implicit-int" |
| 7030 | cat >conftest.$ac_ext <<_ACEOF |
| 7031 | /* confdefs.h. */ |
| 7032 | _ACEOF |
| 7033 | cat confdefs.h >>conftest.$ac_ext |
| 7034 | cat >>conftest.$ac_ext <<_ACEOF |
| 7035 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7036 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7037 | int |
| 7038 | main () |
| 7039 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7040 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7041 | ; |
| 7042 | return 0; |
| 7043 | } |
| 7044 | _ACEOF |
| 7045 | rm -f conftest.$ac_objext |
| 7046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7047 | (eval $ac_compile) 2>conftest.er1 |
| 7048 | ac_status=$? |
| 7049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7050 | rm -f conftest.er1 |
| 7051 | cat conftest.err >&5 |
| 7052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7053 | (exit $ac_status); } && |
| 7054 | { ac_try='test -z "$ac_c_werror_flag" |
| 7055 | || test ! -s conftest.err' |
| 7056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7057 | (eval $ac_try) 2>&5 |
| 7058 | ac_status=$? |
| 7059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7060 | (exit $ac_status); }; } && |
| 7061 | { ac_try='test -s conftest.$ac_objext' |
| 7062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7063 | (eval $ac_try) 2>&5 |
| 7064 | ac_status=$? |
| 7065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7066 | (exit $ac_status); }; }; then |
| 7067 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7068 | echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7069 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7070 | echo "$as_me: failed program was:" >&5 |
| 7071 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7072 | |
| 7073 | echo "$as_me:$LINENO: result: test failed" >&5 |
| 7074 | echo "${ECHO_T}test failed" >&6 |
| 7075 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7076 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7078 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7079 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7081 | CFLAGS=$cflags_save |
| 7082 | |
| 7083 | LDFLAGS="$ac_save_LDFLAGS" |
| 7084 | |
| 7085 | fi |
| 7086 | fi |
| 7087 | |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 7088 | 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] | 7089 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7090 | echo "$as_me:$LINENO: checking --enable-gui argument" >&5 |
| 7091 | echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7092 | # Check whether --enable-gui or --disable-gui was given. |
| 7093 | if test "${enable_gui+set}" = set; then |
| 7094 | enableval="$enable_gui" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7095 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7096 | else |
| 7097 | enable_gui="auto" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7098 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7099 | |
| 7100 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 7101 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 7102 | |
| 7103 | SKIP_GTK=YES |
| 7104 | SKIP_GTK2=YES |
| 7105 | SKIP_GNOME=YES |
| 7106 | SKIP_MOTIF=YES |
| 7107 | SKIP_ATHENA=YES |
| 7108 | SKIP_NEXTAW=YES |
| 7109 | SKIP_PHOTON=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7110 | SKIP_CARBON=YES |
| 7111 | GUITYPE=NONE |
| 7112 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7113 | if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7114 | SKIP_PHOTON= |
| 7115 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7116 | no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7117 | echo "${ECHO_T}no GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7118 | SKIP_PHOTON=YES ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7119 | yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 7120 | echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
| 7121 | auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 7122 | echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
| 7123 | photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5 |
| 7124 | echo "${ECHO_T}Photon GUI support" >&6 ;; |
| 7125 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7126 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7127 | SKIP_PHOTON=YES ;; |
| 7128 | esac |
| 7129 | |
| 7130 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 7131 | SKIP_CARBON= |
| 7132 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7133 | no) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7134 | echo "${ECHO_T}no GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7135 | SKIP_CARBON=YES ;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7136 | yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 |
| 7137 | echo "${ECHO_T}yes - automatic GUI support" >&6 ;; |
| 7138 | auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 |
| 7139 | echo "${ECHO_T}auto - automatic GUI support" >&6 ;; |
| 7140 | carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5 |
| 7141 | echo "${ECHO_T}Carbon GUI support" >&6 ;; |
| 7142 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7143 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7144 | SKIP_CARBON=YES ;; |
| 7145 | esac |
| 7146 | |
| 7147 | else |
| 7148 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7149 | case "$enable_gui_canon" in |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7150 | no|none) echo "$as_me:$LINENO: result: no GUI support" >&5 |
| 7151 | echo "${ECHO_T}no GUI support" >&6 ;; |
| 7152 | yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 |
| 7153 | echo "${ECHO_T}yes/auto - automatic GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7154 | SKIP_GTK= |
| 7155 | SKIP_GTK2= |
| 7156 | SKIP_GNOME= |
| 7157 | SKIP_MOTIF= |
| 7158 | SKIP_ATHENA= |
| 7159 | SKIP_NEXTAW= |
| 7160 | SKIP_CARBON=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7161 | gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 |
| 7162 | echo "${ECHO_T}GTK+ 1.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7163 | SKIP_GTK=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7164 | gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 |
| 7165 | echo "${ECHO_T}GTK+ 2.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7166 | SKIP_GTK= |
| 7167 | SKIP_GTK2=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7168 | gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 |
| 7169 | echo "${ECHO_T}GNOME 1.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7170 | SKIP_GNOME= |
| 7171 | SKIP_GTK=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7172 | gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 |
| 7173 | echo "${ECHO_T}GNOME 2.x GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7174 | SKIP_GNOME= |
| 7175 | SKIP_GTK= |
| 7176 | SKIP_GTK2=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7177 | motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5 |
| 7178 | echo "${ECHO_T}Motif GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7179 | SKIP_MOTIF=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7180 | athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5 |
| 7181 | echo "${ECHO_T}Athena GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7182 | SKIP_ATHENA=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7183 | nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 |
| 7184 | echo "${ECHO_T}neXtaw GUI support" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7185 | SKIP_NEXTAW=;; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7186 | *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 |
| 7187 | echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7188 | esac |
| 7189 | |
| 7190 | fi |
| 7191 | |
| 7192 | 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] | 7193 | echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 |
| 7194 | 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] | 7195 | # Check whether --enable-gtk-check or --disable-gtk-check was given. |
| 7196 | if test "${enable_gtk_check+set}" = set; then |
| 7197 | enableval="$enable_gtk_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7198 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7199 | else |
| 7200 | enable_gtk_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7201 | fi; |
| 7202 | echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 |
| 7203 | echo "${ECHO_T}$enable_gtk_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7204 | if test "x$enable_gtk_check" = "xno"; then |
| 7205 | SKIP_GTK=YES |
| 7206 | SKIP_GNOME=YES |
| 7207 | fi |
| 7208 | fi |
| 7209 | |
| 7210 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 7211 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7212 | echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 |
| 7213 | 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] | 7214 | # Check whether --enable-gtk2-check or --disable-gtk2-check was given. |
| 7215 | if test "${enable_gtk2_check+set}" = set; then |
| 7216 | enableval="$enable_gtk2_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7217 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7218 | else |
| 7219 | enable_gtk2_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7220 | fi; |
| 7221 | echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 |
| 7222 | echo "${ECHO_T}$enable_gtk2_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7223 | if test "x$enable_gtk2_check" = "xno"; then |
| 7224 | SKIP_GTK2=YES |
| 7225 | fi |
| 7226 | fi |
| 7227 | |
| 7228 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 7229 | -a "$enable_gui_canon" != "gnome2"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7230 | echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 |
| 7231 | 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] | 7232 | # Check whether --enable-gnome-check or --disable-gnome-check was given. |
| 7233 | if test "${enable_gnome_check+set}" = set; then |
| 7234 | enableval="$enable_gnome_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7235 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7236 | else |
| 7237 | enable_gnome_check="no" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7238 | fi; |
| 7239 | echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 |
| 7240 | echo "${ECHO_T}$enable_gnome_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7241 | if test "x$enable_gnome_check" = "xno"; then |
| 7242 | SKIP_GNOME=YES |
| 7243 | fi |
| 7244 | fi |
| 7245 | |
| 7246 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7247 | echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 |
| 7248 | 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] | 7249 | # Check whether --enable-motif-check or --disable-motif-check was given. |
| 7250 | if test "${enable_motif_check+set}" = set; then |
| 7251 | enableval="$enable_motif_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7252 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7253 | else |
| 7254 | enable_motif_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7255 | fi; |
| 7256 | echo "$as_me:$LINENO: result: $enable_motif_check" >&5 |
| 7257 | echo "${ECHO_T}$enable_motif_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7258 | if test "x$enable_motif_check" = "xno"; then |
| 7259 | SKIP_MOTIF=YES |
| 7260 | fi |
| 7261 | fi |
| 7262 | |
| 7263 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7264 | echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 |
| 7265 | 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] | 7266 | # Check whether --enable-athena-check or --disable-athena-check was given. |
| 7267 | if test "${enable_athena_check+set}" = set; then |
| 7268 | enableval="$enable_athena_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7269 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7270 | else |
| 7271 | enable_athena_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7272 | fi; |
| 7273 | echo "$as_me:$LINENO: result: $enable_athena_check" >&5 |
| 7274 | echo "${ECHO_T}$enable_athena_check" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7275 | if test "x$enable_athena_check" = "xno"; then |
| 7276 | SKIP_ATHENA=YES |
| 7277 | fi |
| 7278 | fi |
| 7279 | |
| 7280 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7281 | echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 |
| 7282 | 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] | 7283 | # Check whether --enable-nextaw-check or --disable-nextaw-check was given. |
| 7284 | if test "${enable_nextaw_check+set}" = set; then |
| 7285 | enableval="$enable_nextaw_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7286 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7287 | else |
| 7288 | enable_nextaw_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7289 | fi; |
| 7290 | echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 |
| 7291 | echo "${ECHO_T}$enable_nextaw_check" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7292 | if test "x$enable_nextaw_check" = "xno"; then |
| 7293 | SKIP_NEXTAW=YES |
| 7294 | fi |
| 7295 | fi |
| 7296 | |
| 7297 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7298 | echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 |
| 7299 | 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] | 7300 | # Check whether --enable-carbon-check or --disable-carbon-check was given. |
| 7301 | if test "${enable_carbon_check+set}" = set; then |
| 7302 | enableval="$enable_carbon_check" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7303 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7304 | else |
| 7305 | enable_carbon_check="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7306 | fi; |
| 7307 | echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 |
| 7308 | echo "${ECHO_T}$enable_carbon_check" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7309 | if test "x$enable_carbon_check" = "xno"; then |
| 7310 | SKIP_CARBON=YES |
| 7311 | fi |
| 7312 | fi |
| 7313 | |
Bram Moolenaar | 843ee41 | 2004-06-30 16:16:41 +0000 | [diff] [blame] | 7314 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7315 | 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] | 7316 | echo "$as_me:$LINENO: checking for Carbon GUI" >&5 |
| 7317 | echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6 |
| 7318 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7319 | echo "${ECHO_T}yes" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7320 | GUITYPE=CARBONGUI |
Bram Moolenaar | e344bea | 2005-09-01 20:46:49 +0000 | [diff] [blame] | 7321 | if test "$VIMNAME" = "vim"; then |
| 7322 | VIMNAME=Vim |
| 7323 | fi |
Bram Moolenaar | 1471681 | 2006-05-04 21:54:08 +0000 | [diff] [blame] | 7324 | |
| 7325 | if test x$prefix = xNONE; then |
| 7326 | prefix=/Applications |
| 7327 | fi |
| 7328 | |
| 7329 | datadir='${prefix}/Vim.app/Contents/Resources' |
| 7330 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7331 | SKIP_GTK=YES; |
| 7332 | SKIP_GTK2=YES; |
| 7333 | SKIP_GNOME=YES; |
| 7334 | SKIP_MOTIF=YES; |
| 7335 | SKIP_ATHENA=YES; |
| 7336 | SKIP_NEXTAW=YES; |
| 7337 | SKIP_PHOTON=YES; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7338 | SKIP_CARBON=YES |
| 7339 | fi |
| 7340 | |
| 7341 | |
| 7342 | |
| 7343 | |
| 7344 | |
| 7345 | |
| 7346 | |
| 7347 | |
| 7348 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7349 | if test -z "$SKIP_GTK"; then |
| 7350 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7351 | echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 |
| 7352 | echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6 |
| 7353 | |
| 7354 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7355 | if test "${with_gtk_prefix+set}" = set; then |
| 7356 | withval="$with_gtk_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7357 | gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 7358 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7359 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7360 | gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 7361 | echo "${ECHO_T}no" >&6 |
| 7362 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7363 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7364 | echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 |
| 7365 | echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7366 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7367 | # 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] | 7368 | if test "${with_gtk_exec_prefix+set}" = set; then |
| 7369 | withval="$with_gtk_exec_prefix" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7370 | gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 |
| 7371 | echo "${ECHO_T}$gtk_config_prefix" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7372 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7373 | gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5 |
| 7374 | echo "${ECHO_T}no" >&6 |
| 7375 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7376 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7377 | echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 |
| 7378 | echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7379 | # Check whether --enable-gtktest or --disable-gtktest was given. |
| 7380 | if test "${enable_gtktest+set}" = set; then |
| 7381 | enableval="$enable_gtktest" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7382 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7383 | else |
| 7384 | enable_gtktest=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7385 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7386 | if test "x$enable_gtktest" = "xyes" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7387 | echo "$as_me:$LINENO: result: gtk test enabled" >&5 |
| 7388 | echo "${ECHO_T}gtk test enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7389 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7390 | echo "$as_me:$LINENO: result: gtk test disabled" >&5 |
| 7391 | echo "${ECHO_T}gtk test disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7392 | fi |
| 7393 | |
| 7394 | if test "x$gtk_config_prefix" != "x" ; then |
| 7395 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 7396 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 7397 | fi |
| 7398 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 7399 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 7400 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 7401 | fi |
| 7402 | if test "X$GTK_CONFIG" = "X"; then |
| 7403 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 7404 | set dummy gtk-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7405 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7406 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7407 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then |
| 7408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7409 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7410 | case $GTK_CONFIG in |
| 7411 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7412 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 7413 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7414 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7416 | for as_dir in $PATH |
| 7417 | do |
| 7418 | IFS=$as_save_IFS |
| 7419 | test -z "$as_dir" && as_dir=. |
| 7420 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7421 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7422 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7424 | break 2 |
| 7425 | fi |
| 7426 | done |
| 7427 | done |
| 7428 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7429 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 7430 | ;; |
| 7431 | esac |
| 7432 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7433 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
| 7434 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7435 | if test -n "$GTK_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7436 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
| 7437 | echo "${ECHO_T}$GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7438 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7439 | echo "$as_me:$LINENO: result: no" >&5 |
| 7440 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7441 | fi |
| 7442 | |
| 7443 | if test "X$GTK_CONFIG" = "Xno"; then |
| 7444 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 7445 | set dummy gtk12-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7448 | if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then |
| 7449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7450 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7451 | case $GTK12_CONFIG in |
| 7452 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7453 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 7454 | ;; |
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 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7457 | for as_dir in $PATH |
| 7458 | do |
| 7459 | IFS=$as_save_IFS |
| 7460 | test -z "$as_dir" && as_dir=. |
| 7461 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7463 | ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7465 | break 2 |
| 7466 | fi |
| 7467 | done |
| 7468 | done |
| 7469 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7470 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 7471 | ;; |
| 7472 | esac |
| 7473 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7474 | GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG |
| 7475 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7476 | if test -n "$GTK12_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7477 | echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 |
| 7478 | echo "${ECHO_T}$GTK12_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7479 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7480 | echo "$as_me:$LINENO: result: no" >&5 |
| 7481 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7482 | fi |
| 7483 | |
| 7484 | GTK_CONFIG="$GTK12_CONFIG" |
| 7485 | fi |
| 7486 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7487 | echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 |
| 7488 | echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7489 | fi |
| 7490 | if test "X$PKG_CONFIG" = "X"; then |
| 7491 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 7492 | set dummy pkg-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7493 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7495 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 7496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7497 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7498 | case $PKG_CONFIG in |
| 7499 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7500 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 7501 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7502 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7504 | for as_dir in $PATH |
| 7505 | do |
| 7506 | IFS=$as_save_IFS |
| 7507 | test -z "$as_dir" && as_dir=. |
| 7508 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7509 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7510 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7511 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7512 | break 2 |
| 7513 | fi |
| 7514 | done |
| 7515 | done |
| 7516 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7517 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 7518 | ;; |
| 7519 | esac |
| 7520 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7521 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 7522 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7523 | if test -n "$PKG_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7524 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 7525 | echo "${ECHO_T}$PKG_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7526 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7527 | echo "$as_me:$LINENO: result: no" >&5 |
| 7528 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7529 | fi |
| 7530 | |
| 7531 | fi |
| 7532 | |
| 7533 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 7534 | if test "X$SKIP_GTK2" != "XYES"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7535 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7536 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 7537 | { |
| 7538 | min_gtk_version=2.2.0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7539 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 7540 | 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] | 7541 | no_gtk="" |
| 7542 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 7543 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 7544 | { |
| 7545 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7546 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7547 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 7548 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7549 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7550 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7551 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7552 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7553 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7554 | } |
| 7555 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 7556 | { |
| 7557 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7558 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7559 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 7560 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7561 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7562 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7563 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7564 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7565 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7566 | } |
| 7567 | else |
| 7568 | no_gtk=yes |
| 7569 | fi |
| 7570 | |
| 7571 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 7572 | { |
| 7573 | ac_save_CFLAGS="$CFLAGS" |
| 7574 | ac_save_LIBS="$LIBS" |
| 7575 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 7576 | LIBS="$LIBS $GTK_LIBS" |
| 7577 | |
| 7578 | rm -f conf.gtktest |
| 7579 | if test "$cross_compiling" = yes; then |
| 7580 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 7581 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7582 | cat >conftest.$ac_ext <<_ACEOF |
| 7583 | /* confdefs.h. */ |
| 7584 | _ACEOF |
| 7585 | cat confdefs.h >>conftest.$ac_ext |
| 7586 | cat >>conftest.$ac_ext <<_ACEOF |
| 7587 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7588 | |
| 7589 | #include <gtk/gtk.h> |
| 7590 | #include <stdio.h> |
| 7591 | |
| 7592 | int |
| 7593 | main () |
| 7594 | { |
| 7595 | int major, minor, micro; |
| 7596 | char *tmp_version; |
| 7597 | |
| 7598 | system ("touch conf.gtktest"); |
| 7599 | |
| 7600 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 7601 | tmp_version = g_strdup("$min_gtk_version"); |
| 7602 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 7603 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 7604 | exit(1); |
| 7605 | } |
| 7606 | |
| 7607 | if ((gtk_major_version > major) || |
| 7608 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 7609 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 7610 | (gtk_micro_version >= micro))) |
| 7611 | { |
| 7612 | return 0; |
| 7613 | } |
| 7614 | return 1; |
| 7615 | } |
| 7616 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7617 | _ACEOF |
| 7618 | rm -f conftest$ac_exeext |
| 7619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7620 | (eval $ac_link) 2>&5 |
| 7621 | ac_status=$? |
| 7622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7623 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7625 | (eval $ac_try) 2>&5 |
| 7626 | ac_status=$? |
| 7627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7628 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7629 | : |
| 7630 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7631 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7632 | echo "$as_me: failed program was:" >&5 |
| 7633 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7634 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7635 | ( exit $ac_status ) |
| 7636 | no_gtk=yes |
| 7637 | fi |
| 7638 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7639 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7640 | CFLAGS="$ac_save_CFLAGS" |
| 7641 | LIBS="$ac_save_LIBS" |
| 7642 | } |
| 7643 | fi |
| 7644 | if test "x$no_gtk" = x ; then |
| 7645 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7646 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7647 | 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] | 7648 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7649 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7650 | 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] | 7651 | fi |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7652 | GUI_LIB_LOC="$GTK_LIBDIR" |
| 7653 | GTK_LIBNAME="$GTK_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7654 | GUI_INC_LOC="$GTK_CFLAGS" |
| 7655 | else |
| 7656 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7657 | echo "$as_me:$LINENO: result: no" >&5 |
| 7658 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7659 | GTK_CFLAGS="" |
| 7660 | GTK_LIBS="" |
| 7661 | : |
| 7662 | } |
| 7663 | fi |
| 7664 | } |
| 7665 | else |
| 7666 | GTK_CFLAGS="" |
| 7667 | GTK_LIBS="" |
| 7668 | : |
| 7669 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7670 | |
| 7671 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7672 | rm -f conf.gtktest |
| 7673 | |
| 7674 | if test "x$GTK_CFLAGS" != "x"; then |
| 7675 | SKIP_ATHENA=YES |
| 7676 | SKIP_NEXTAW=YES |
| 7677 | SKIP_MOTIF=YES |
| 7678 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7679 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7680 | fi |
| 7681 | fi |
| 7682 | |
| 7683 | if test "x$GUITYPE" != "xGTK"; then |
| 7684 | SKIP_GTK2=YES |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7685 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7686 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 7687 | { |
| 7688 | min_gtk_version=1.1.16 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7689 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
| 7690 | 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] | 7691 | no_gtk="" |
| 7692 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 7693 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 7694 | { |
| 7695 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7696 | GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7697 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 7698 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7699 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7700 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7701 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7702 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 7703 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7704 | } |
| 7705 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 7706 | { |
| 7707 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
Bram Moolenaar | 7b0294c | 2004-10-11 10:16:09 +0000 | [diff] [blame] | 7708 | GTK_LIBDIR= |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7709 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 7710 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7711 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 7712 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7713 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 7714 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 7715 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 7716 | } |
| 7717 | else |
| 7718 | no_gtk=yes |
| 7719 | fi |
| 7720 | |
| 7721 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 7722 | { |
| 7723 | ac_save_CFLAGS="$CFLAGS" |
| 7724 | ac_save_LIBS="$LIBS" |
| 7725 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 7726 | LIBS="$LIBS $GTK_LIBS" |
| 7727 | |
| 7728 | rm -f conf.gtktest |
| 7729 | if test "$cross_compiling" = yes; then |
| 7730 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 7731 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7732 | cat >conftest.$ac_ext <<_ACEOF |
| 7733 | /* confdefs.h. */ |
| 7734 | _ACEOF |
| 7735 | cat confdefs.h >>conftest.$ac_ext |
| 7736 | cat >>conftest.$ac_ext <<_ACEOF |
| 7737 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7738 | |
| 7739 | #include <gtk/gtk.h> |
| 7740 | #include <stdio.h> |
| 7741 | |
| 7742 | int |
| 7743 | main () |
| 7744 | { |
| 7745 | int major, minor, micro; |
| 7746 | char *tmp_version; |
| 7747 | |
| 7748 | system ("touch conf.gtktest"); |
| 7749 | |
| 7750 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 7751 | tmp_version = g_strdup("$min_gtk_version"); |
| 7752 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 7753 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 7754 | exit(1); |
| 7755 | } |
| 7756 | |
| 7757 | if ((gtk_major_version > major) || |
| 7758 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 7759 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 7760 | (gtk_micro_version >= micro))) |
| 7761 | { |
| 7762 | return 0; |
| 7763 | } |
| 7764 | return 1; |
| 7765 | } |
| 7766 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7767 | _ACEOF |
| 7768 | rm -f conftest$ac_exeext |
| 7769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7770 | (eval $ac_link) 2>&5 |
| 7771 | ac_status=$? |
| 7772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7773 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7775 | (eval $ac_try) 2>&5 |
| 7776 | ac_status=$? |
| 7777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7778 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7779 | : |
| 7780 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7781 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7782 | echo "$as_me: failed program was:" >&5 |
| 7783 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7784 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7785 | ( exit $ac_status ) |
| 7786 | no_gtk=yes |
| 7787 | fi |
| 7788 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7789 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7790 | CFLAGS="$ac_save_CFLAGS" |
| 7791 | LIBS="$ac_save_LIBS" |
| 7792 | } |
| 7793 | fi |
| 7794 | if test "x$no_gtk" = x ; then |
| 7795 | if test "x$enable_gtktest" = "xyes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7796 | echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7797 | 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] | 7798 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7799 | echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 |
| 7800 | 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] | 7801 | fi |
| 7802 | GTK_LIBNAME="$GTK_LIBS" |
| 7803 | GUI_INC_LOC="$GTK_CFLAGS" |
| 7804 | else |
| 7805 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7806 | echo "$as_me:$LINENO: result: no" >&5 |
| 7807 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7808 | GTK_CFLAGS="" |
| 7809 | GTK_LIBS="" |
| 7810 | : |
| 7811 | } |
| 7812 | fi |
| 7813 | } |
| 7814 | else |
| 7815 | GTK_CFLAGS="" |
| 7816 | GTK_LIBS="" |
| 7817 | : |
| 7818 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7819 | |
| 7820 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7821 | rm -f conf.gtktest |
| 7822 | |
| 7823 | if test "x$GTK_CFLAGS" != "x"; then |
| 7824 | SKIP_ATHENA=YES |
| 7825 | SKIP_NEXTAW=YES |
| 7826 | SKIP_MOTIF=YES |
| 7827 | GUITYPE=GTK |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7828 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7829 | fi |
| 7830 | fi |
| 7831 | fi |
| 7832 | if test "x$GUITYPE" = "xGTK"; then |
| 7833 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 7834 | -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] | 7835 | echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 |
| 7836 | 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] | 7837 | else |
| 7838 | { |
| 7839 | if test "0$gtk_major_version" -ge 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7840 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7841 | #define HAVE_GTK2 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7842 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7843 | |
| 7844 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 7845 | || test "0$gtk_minor_version" -ge 2 \ |
| 7846 | || test "0$gtk_major_version" -gt 2; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7847 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7848 | #define HAVE_GTK_MULTIHEAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7849 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7850 | |
| 7851 | fi |
| 7852 | fi |
| 7853 | if test -z "$SKIP_GNOME"; then |
| 7854 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7855 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7856 | |
| 7857 | |
| 7858 | |
| 7859 | |
| 7860 | |
| 7861 | # Check whether --with-gnome-includes or --without-gnome-includes was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7862 | if test "${with_gnome_includes+set}" = set; then |
| 7863 | withval="$with_gnome_includes" |
| 7864 | CFLAGS="$CFLAGS -I$withval" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7865 | |
| 7866 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7867 | |
| 7868 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7869 | # Check whether --with-gnome-libs or --without-gnome-libs was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7870 | if test "${with_gnome_libs+set}" = set; then |
| 7871 | withval="$with_gnome_libs" |
| 7872 | LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7873 | |
| 7874 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7875 | |
| 7876 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7877 | # Check whether --with-gnome or --without-gnome was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7878 | if test "${with_gnome+set}" = set; then |
| 7879 | withval="$with_gnome" |
| 7880 | if test x$withval = xyes; then |
| 7881 | want_gnome=yes |
| 7882 | have_gnome=yes |
| 7883 | else |
| 7884 | if test "x$withval" = xno; then |
| 7885 | want_gnome=no |
| 7886 | else |
| 7887 | want_gnome=yes |
| 7888 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 7889 | CFLAGS="$CFLAGS -I$withval/include" |
| 7890 | gnome_prefix=$withval/lib |
| 7891 | fi |
| 7892 | fi |
| 7893 | else |
| 7894 | want_gnome=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7895 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7896 | |
| 7897 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 7898 | { |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7899 | echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 |
| 7900 | echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7901 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7902 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7903 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7904 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 7905 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 7906 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 7907 | |
| 7908 | echo "$as_me:$LINENO: checking for FreeBSD" >&5 |
| 7909 | echo $ECHO_N "checking for FreeBSD... $ECHO_C" >&6 |
| 7910 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 7911 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7912 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 7913 | GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" |
Bram Moolenaar | 97b2ad3 | 2006-03-18 21:40:56 +0000 | [diff] [blame] | 7914 | GNOME_LIBS="$GNOME_LIBS -pthread" |
| 7915 | else |
| 7916 | echo "$as_me:$LINENO: result: no" >&5 |
| 7917 | echo "${ECHO_T}no" >&6 |
| 7918 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7919 | have_gnome=yes |
| 7920 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7921 | echo "$as_me:$LINENO: result: not found" >&5 |
| 7922 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7923 | if test "x" = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7924 | { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 |
| 7925 | echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;} |
| 7926 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7927 | fi |
| 7928 | fi |
| 7929 | } |
| 7930 | elif test "x$want_gnome" = xyes; then |
| 7931 | { |
| 7932 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 7933 | set dummy gnome-config; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7934 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 7935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 7936 | if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then |
| 7937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7938 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7939 | case $GNOME_CONFIG in |
| 7940 | [\\/]* | ?:[\\/]*) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7941 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 7942 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7943 | *) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7945 | for as_dir in $PATH |
| 7946 | do |
| 7947 | IFS=$as_save_IFS |
| 7948 | test -z "$as_dir" && as_dir=. |
| 7949 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7950 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7951 | ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 7952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7953 | break 2 |
| 7954 | fi |
| 7955 | done |
| 7956 | done |
| 7957 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7958 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 7959 | ;; |
| 7960 | esac |
| 7961 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7962 | GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG |
| 7963 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7964 | if test -n "$GNOME_CONFIG"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7965 | echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 |
| 7966 | echo "${ECHO_T}$GNOME_CONFIG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7967 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7968 | echo "$as_me:$LINENO: result: no" >&5 |
| 7969 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7970 | fi |
| 7971 | |
| 7972 | if test "$GNOME_CONFIG" = "no"; then |
| 7973 | no_gnome_config="yes" |
| 7974 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7975 | echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 |
| 7976 | echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7977 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7978 | echo "$as_me:$LINENO: result: yes" >&5 |
| 7979 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7980 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 7981 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 7982 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 7983 | have_gnome=yes |
| 7984 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 7985 | echo "$as_me:$LINENO: result: no" >&5 |
| 7986 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 7987 | no_gnome_config="yes" |
| 7988 | fi |
| 7989 | fi |
| 7990 | |
| 7991 | if test x$exec_prefix = xNONE; then |
| 7992 | if test x$prefix = xNONE; then |
| 7993 | gnome_prefix=$ac_default_prefix/lib |
| 7994 | else |
| 7995 | gnome_prefix=$prefix/lib |
| 7996 | fi |
| 7997 | else |
| 7998 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 7999 | fi |
| 8000 | |
| 8001 | if test "$no_gnome_config" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8002 | echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 8003 | 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] | 8004 | if test -f $gnome_prefix/gnomeConf.sh; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8005 | echo "$as_me:$LINENO: result: found" >&5 |
| 8006 | echo "${ECHO_T}found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8007 | echo "loading gnome configuration from" \ |
| 8008 | "$gnome_prefix/gnomeConf.sh" |
| 8009 | . $gnome_prefix/gnomeConf.sh |
| 8010 | have_gnome=yes |
| 8011 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8012 | echo "$as_me:$LINENO: result: not found" >&5 |
| 8013 | echo "${ECHO_T}not found" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8014 | if test x = xfail; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8015 | { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 |
| 8016 | echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;} |
| 8017 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8018 | fi |
| 8019 | fi |
| 8020 | fi |
| 8021 | } |
| 8022 | fi |
| 8023 | |
| 8024 | if test x$have_gnome = xyes ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8025 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8026 | #define FEAT_GUI_GNOME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8027 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8028 | |
| 8029 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 8030 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 8031 | fi |
| 8032 | } |
| 8033 | fi |
| 8034 | } |
| 8035 | fi |
| 8036 | fi |
| 8037 | fi |
| 8038 | |
| 8039 | |
| 8040 | if test -z "$SKIP_MOTIF"; then |
| 8041 | 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" |
| 8042 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 8043 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8044 | echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 |
| 8045 | 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] | 8046 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 8047 | GUI_INC_LOC= |
| 8048 | for try in $gui_includes; do |
| 8049 | if test -f "$try/Xm/Xm.h"; then |
| 8050 | GUI_INC_LOC=$try |
| 8051 | fi |
| 8052 | done |
| 8053 | if test -n "$GUI_INC_LOC"; then |
| 8054 | if test "$GUI_INC_LOC" = /usr/include; then |
| 8055 | GUI_INC_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8056 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 8057 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8058 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8059 | echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 |
| 8060 | echo "${ECHO_T}$GUI_INC_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8061 | fi |
| 8062 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8063 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8064 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8065 | SKIP_MOTIF=YES |
| 8066 | fi |
| 8067 | fi |
| 8068 | |
| 8069 | |
| 8070 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8071 | echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 |
| 8072 | echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6 |
| 8073 | |
| 8074 | # Check whether --with-motif-lib or --without-motif-lib was given. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8075 | if test "${with_motif_lib+set}" = set; then |
| 8076 | withval="$with_motif_lib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8077 | MOTIF_LIBNAME="${withval}" |
| 8078 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8079 | |
| 8080 | if test -n "$MOTIF_LIBNAME"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8081 | echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 |
| 8082 | echo "${ECHO_T}$MOTIF_LIBNAME" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8083 | GUI_LIB_LOC= |
| 8084 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8085 | echo "$as_me:$LINENO: result: no" >&5 |
| 8086 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8087 | |
| 8088 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 8089 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8090 | echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 |
| 8091 | 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] | 8092 | 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" |
| 8093 | GUI_LIB_LOC= |
| 8094 | for try in $gui_libs; do |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 8095 | 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] | 8096 | if test -f "$libtry"; then |
| 8097 | GUI_LIB_LOC=$try |
| 8098 | fi |
| 8099 | done |
| 8100 | done |
| 8101 | if test -n "$GUI_LIB_LOC"; then |
| 8102 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 8103 | GUI_LIB_LOC= |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8104 | echo "$as_me:$LINENO: result: in default path" >&5 |
| 8105 | echo "${ECHO_T}in default path" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8106 | else |
| 8107 | if test -n "$GUI_LIB_LOC"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8108 | echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 |
| 8109 | echo "${ECHO_T}$GUI_LIB_LOC" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8110 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 8111 | uname -r | grep '^5' >/dev/null; then |
| 8112 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 8113 | fi |
| 8114 | fi |
| 8115 | fi |
| 8116 | MOTIF_LIBNAME=-lXm |
| 8117 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8118 | echo "$as_me:$LINENO: result: <not found>" >&5 |
| 8119 | echo "${ECHO_T}<not found>" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8120 | SKIP_MOTIF=YES |
| 8121 | fi |
| 8122 | fi |
| 8123 | fi |
| 8124 | |
| 8125 | if test -z "$SKIP_MOTIF"; then |
| 8126 | SKIP_ATHENA=YES |
| 8127 | SKIP_NEXTAW=YES |
| 8128 | GUITYPE=MOTIF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8129 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8130 | fi |
| 8131 | |
| 8132 | |
| 8133 | GUI_X_LIBS= |
| 8134 | |
| 8135 | if test -z "$SKIP_ATHENA"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8136 | echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 |
| 8137 | 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] | 8138 | cflags_save=$CFLAGS |
| 8139 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8140 | cat >conftest.$ac_ext <<_ACEOF |
| 8141 | /* confdefs.h. */ |
| 8142 | _ACEOF |
| 8143 | cat confdefs.h >>conftest.$ac_ext |
| 8144 | cat >>conftest.$ac_ext <<_ACEOF |
| 8145 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8146 | |
| 8147 | #include <X11/Intrinsic.h> |
| 8148 | #include <X11/Xaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8149 | int |
| 8150 | main () |
| 8151 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8152 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8153 | ; |
| 8154 | return 0; |
| 8155 | } |
| 8156 | _ACEOF |
| 8157 | rm -f conftest.$ac_objext |
| 8158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8159 | (eval $ac_compile) 2>conftest.er1 |
| 8160 | ac_status=$? |
| 8161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8162 | rm -f conftest.er1 |
| 8163 | cat conftest.err >&5 |
| 8164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8165 | (exit $ac_status); } && |
| 8166 | { ac_try='test -z "$ac_c_werror_flag" |
| 8167 | || test ! -s conftest.err' |
| 8168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8169 | (eval $ac_try) 2>&5 |
| 8170 | ac_status=$? |
| 8171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8172 | (exit $ac_status); }; } && |
| 8173 | { ac_try='test -s conftest.$ac_objext' |
| 8174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8175 | (eval $ac_try) 2>&5 |
| 8176 | ac_status=$? |
| 8177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8178 | (exit $ac_status); }; }; then |
| 8179 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8180 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8181 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8182 | echo "$as_me: failed program was:" >&5 |
| 8183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8184 | |
| 8185 | echo "$as_me:$LINENO: result: no" >&5 |
| 8186 | echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8187 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8189 | CFLAGS=$cflags_save |
| 8190 | fi |
| 8191 | |
| 8192 | if test -z "$SKIP_ATHENA"; then |
| 8193 | GUITYPE=ATHENA |
| 8194 | fi |
| 8195 | |
| 8196 | if test -z "$SKIP_NEXTAW"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8197 | echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 |
| 8198 | 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] | 8199 | cflags_save=$CFLAGS |
| 8200 | CFLAGS="$CFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8201 | cat >conftest.$ac_ext <<_ACEOF |
| 8202 | /* confdefs.h. */ |
| 8203 | _ACEOF |
| 8204 | cat confdefs.h >>conftest.$ac_ext |
| 8205 | cat >>conftest.$ac_ext <<_ACEOF |
| 8206 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8207 | |
| 8208 | #include <X11/Intrinsic.h> |
| 8209 | #include <X11/neXtaw/Paned.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8210 | int |
| 8211 | main () |
| 8212 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8213 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8214 | ; |
| 8215 | return 0; |
| 8216 | } |
| 8217 | _ACEOF |
| 8218 | rm -f conftest.$ac_objext |
| 8219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8220 | (eval $ac_compile) 2>conftest.er1 |
| 8221 | ac_status=$? |
| 8222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8223 | rm -f conftest.er1 |
| 8224 | cat conftest.err >&5 |
| 8225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8226 | (exit $ac_status); } && |
| 8227 | { ac_try='test -z "$ac_c_werror_flag" |
| 8228 | || test ! -s conftest.err' |
| 8229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8230 | (eval $ac_try) 2>&5 |
| 8231 | ac_status=$? |
| 8232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8233 | (exit $ac_status); }; } && |
| 8234 | { ac_try='test -s conftest.$ac_objext' |
| 8235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8236 | (eval $ac_try) 2>&5 |
| 8237 | ac_status=$? |
| 8238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8239 | (exit $ac_status); }; }; then |
| 8240 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8241 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8242 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8243 | echo "$as_me: failed program was:" >&5 |
| 8244 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8245 | |
| 8246 | echo "$as_me:$LINENO: result: no" >&5 |
| 8247 | echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8248 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8250 | CFLAGS=$cflags_save |
| 8251 | fi |
| 8252 | |
| 8253 | if test -z "$SKIP_NEXTAW"; then |
| 8254 | GUITYPE=NEXTAW |
| 8255 | fi |
| 8256 | |
| 8257 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 8258 | if test -n "$GUI_INC_LOC"; then |
| 8259 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 8260 | fi |
| 8261 | if test -n "$GUI_LIB_LOC"; then |
| 8262 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 8263 | fi |
| 8264 | |
| 8265 | ldflags_save=$LDFLAGS |
| 8266 | LDFLAGS="$X_LIBS $LDFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8267 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
| 8268 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 8269 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
| 8270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8271 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8272 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8273 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8274 | cat >conftest.$ac_ext <<_ACEOF |
| 8275 | /* confdefs.h. */ |
| 8276 | _ACEOF |
| 8277 | cat confdefs.h >>conftest.$ac_ext |
| 8278 | cat >>conftest.$ac_ext <<_ACEOF |
| 8279 | /* end confdefs.h. */ |
| 8280 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8281 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8282 | #ifdef __cplusplus |
| 8283 | extern "C" |
| 8284 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8285 | /* 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] | 8286 | builtin and then its argument prototype would still apply. */ |
| 8287 | char XShapeQueryExtension (); |
| 8288 | int |
| 8289 | main () |
| 8290 | { |
| 8291 | XShapeQueryExtension (); |
| 8292 | ; |
| 8293 | return 0; |
| 8294 | } |
| 8295 | _ACEOF |
| 8296 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8298 | (eval $ac_link) 2>conftest.er1 |
| 8299 | ac_status=$? |
| 8300 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8301 | rm -f conftest.er1 |
| 8302 | cat conftest.err >&5 |
| 8303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8304 | (exit $ac_status); } && |
| 8305 | { ac_try='test -z "$ac_c_werror_flag" |
| 8306 | || test ! -s conftest.err' |
| 8307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8308 | (eval $ac_try) 2>&5 |
| 8309 | ac_status=$? |
| 8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8311 | (exit $ac_status); }; } && |
| 8312 | { ac_try='test -s conftest$ac_exeext' |
| 8313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8314 | (eval $ac_try) 2>&5 |
| 8315 | ac_status=$? |
| 8316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8317 | (exit $ac_status); }; }; then |
| 8318 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8319 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8320 | echo "$as_me: failed program was:" >&5 |
| 8321 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8322 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8323 | ac_cv_lib_Xext_XShapeQueryExtension=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8324 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8325 | rm -f conftest.err conftest.$ac_objext \ |
| 8326 | conftest$ac_exeext conftest.$ac_ext |
| 8327 | LIBS=$ac_check_lib_save_LIBS |
| 8328 | fi |
| 8329 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 8330 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 8331 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8332 | GUI_X_LIBS="-lXext" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8333 | fi |
| 8334 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8335 | echo "$as_me:$LINENO: checking for wslen in -lw" >&5 |
| 8336 | echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6 |
| 8337 | if test "${ac_cv_lib_w_wslen+set}" = set; then |
| 8338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8339 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8340 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8341 | 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] | 8342 | cat >conftest.$ac_ext <<_ACEOF |
| 8343 | /* confdefs.h. */ |
| 8344 | _ACEOF |
| 8345 | cat confdefs.h >>conftest.$ac_ext |
| 8346 | cat >>conftest.$ac_ext <<_ACEOF |
| 8347 | /* end confdefs.h. */ |
| 8348 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8349 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8350 | #ifdef __cplusplus |
| 8351 | extern "C" |
| 8352 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8353 | /* 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] | 8354 | builtin and then its argument prototype would still apply. */ |
| 8355 | char wslen (); |
| 8356 | int |
| 8357 | main () |
| 8358 | { |
| 8359 | wslen (); |
| 8360 | ; |
| 8361 | return 0; |
| 8362 | } |
| 8363 | _ACEOF |
| 8364 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8366 | (eval $ac_link) 2>conftest.er1 |
| 8367 | ac_status=$? |
| 8368 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8369 | rm -f conftest.er1 |
| 8370 | cat conftest.err >&5 |
| 8371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8372 | (exit $ac_status); } && |
| 8373 | { ac_try='test -z "$ac_c_werror_flag" |
| 8374 | || test ! -s conftest.err' |
| 8375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8376 | (eval $ac_try) 2>&5 |
| 8377 | ac_status=$? |
| 8378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8379 | (exit $ac_status); }; } && |
| 8380 | { ac_try='test -s conftest$ac_exeext' |
| 8381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8382 | (eval $ac_try) 2>&5 |
| 8383 | ac_status=$? |
| 8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8385 | (exit $ac_status); }; }; then |
| 8386 | ac_cv_lib_w_wslen=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8387 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8388 | echo "$as_me: failed program was:" >&5 |
| 8389 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8390 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8391 | ac_cv_lib_w_wslen=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8392 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8393 | rm -f conftest.err conftest.$ac_objext \ |
| 8394 | conftest$ac_exeext conftest.$ac_ext |
| 8395 | LIBS=$ac_check_lib_save_LIBS |
| 8396 | fi |
| 8397 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 |
| 8398 | echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6 |
| 8399 | if test $ac_cv_lib_w_wslen = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8400 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8401 | fi |
| 8402 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8403 | echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 |
| 8404 | echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 |
| 8405 | if test "${ac_cv_lib_dl_dlsym+set}" = set; then |
| 8406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8407 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8408 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8409 | 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] | 8410 | cat >conftest.$ac_ext <<_ACEOF |
| 8411 | /* confdefs.h. */ |
| 8412 | _ACEOF |
| 8413 | cat confdefs.h >>conftest.$ac_ext |
| 8414 | cat >>conftest.$ac_ext <<_ACEOF |
| 8415 | /* end confdefs.h. */ |
| 8416 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8417 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8418 | #ifdef __cplusplus |
| 8419 | extern "C" |
| 8420 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8421 | /* 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] | 8422 | builtin and then its argument prototype would still apply. */ |
| 8423 | char dlsym (); |
| 8424 | int |
| 8425 | main () |
| 8426 | { |
| 8427 | dlsym (); |
| 8428 | ; |
| 8429 | return 0; |
| 8430 | } |
| 8431 | _ACEOF |
| 8432 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8434 | (eval $ac_link) 2>conftest.er1 |
| 8435 | ac_status=$? |
| 8436 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8437 | rm -f conftest.er1 |
| 8438 | cat conftest.err >&5 |
| 8439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8440 | (exit $ac_status); } && |
| 8441 | { ac_try='test -z "$ac_c_werror_flag" |
| 8442 | || test ! -s conftest.err' |
| 8443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8444 | (eval $ac_try) 2>&5 |
| 8445 | ac_status=$? |
| 8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8447 | (exit $ac_status); }; } && |
| 8448 | { ac_try='test -s conftest$ac_exeext' |
| 8449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8450 | (eval $ac_try) 2>&5 |
| 8451 | ac_status=$? |
| 8452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8453 | (exit $ac_status); }; }; then |
| 8454 | ac_cv_lib_dl_dlsym=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8455 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8456 | echo "$as_me: failed program was:" >&5 |
| 8457 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8458 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8459 | ac_cv_lib_dl_dlsym=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8460 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8461 | rm -f conftest.err conftest.$ac_objext \ |
| 8462 | conftest$ac_exeext conftest.$ac_ext |
| 8463 | LIBS=$ac_check_lib_save_LIBS |
| 8464 | fi |
| 8465 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 |
| 8466 | echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 |
| 8467 | if test $ac_cv_lib_dl_dlsym = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8468 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8469 | fi |
| 8470 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8471 | echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 8472 | echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6 |
| 8473 | if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then |
| 8474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8475 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8476 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8477 | 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] | 8478 | cat >conftest.$ac_ext <<_ACEOF |
| 8479 | /* confdefs.h. */ |
| 8480 | _ACEOF |
| 8481 | cat confdefs.h >>conftest.$ac_ext |
| 8482 | cat >>conftest.$ac_ext <<_ACEOF |
| 8483 | /* end confdefs.h. */ |
| 8484 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8485 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8486 | #ifdef __cplusplus |
| 8487 | extern "C" |
| 8488 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8489 | /* 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] | 8490 | builtin and then its argument prototype would still apply. */ |
| 8491 | char XmuCreateStippledPixmap (); |
| 8492 | int |
| 8493 | main () |
| 8494 | { |
| 8495 | XmuCreateStippledPixmap (); |
| 8496 | ; |
| 8497 | return 0; |
| 8498 | } |
| 8499 | _ACEOF |
| 8500 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8502 | (eval $ac_link) 2>conftest.er1 |
| 8503 | ac_status=$? |
| 8504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8505 | rm -f conftest.er1 |
| 8506 | cat conftest.err >&5 |
| 8507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8508 | (exit $ac_status); } && |
| 8509 | { ac_try='test -z "$ac_c_werror_flag" |
| 8510 | || test ! -s conftest.err' |
| 8511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8512 | (eval $ac_try) 2>&5 |
| 8513 | ac_status=$? |
| 8514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8515 | (exit $ac_status); }; } && |
| 8516 | { ac_try='test -s conftest$ac_exeext' |
| 8517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8518 | (eval $ac_try) 2>&5 |
| 8519 | ac_status=$? |
| 8520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8521 | (exit $ac_status); }; }; then |
| 8522 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8523 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8524 | echo "$as_me: failed program was:" >&5 |
| 8525 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8526 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8527 | ac_cv_lib_Xmu_XmuCreateStippledPixmap=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8528 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8529 | rm -f conftest.err conftest.$ac_objext \ |
| 8530 | conftest$ac_exeext conftest.$ac_ext |
| 8531 | LIBS=$ac_check_lib_save_LIBS |
| 8532 | fi |
| 8533 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 |
| 8534 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6 |
| 8535 | if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8536 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8537 | fi |
| 8538 | |
| 8539 | if test -z "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8540 | echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 |
| 8541 | echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6 |
| 8542 | if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then |
| 8543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
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 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8546 | 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] | 8547 | cat >conftest.$ac_ext <<_ACEOF |
| 8548 | /* confdefs.h. */ |
| 8549 | _ACEOF |
| 8550 | cat confdefs.h >>conftest.$ac_ext |
| 8551 | cat >>conftest.$ac_ext <<_ACEOF |
| 8552 | /* end confdefs.h. */ |
| 8553 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8554 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8555 | #ifdef __cplusplus |
| 8556 | extern "C" |
| 8557 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8558 | /* 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] | 8559 | builtin and then its argument prototype would still apply. */ |
| 8560 | char XpEndJob (); |
| 8561 | int |
| 8562 | main () |
| 8563 | { |
| 8564 | XpEndJob (); |
| 8565 | ; |
| 8566 | return 0; |
| 8567 | } |
| 8568 | _ACEOF |
| 8569 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8571 | (eval $ac_link) 2>conftest.er1 |
| 8572 | ac_status=$? |
| 8573 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8574 | rm -f conftest.er1 |
| 8575 | cat conftest.err >&5 |
| 8576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8577 | (exit $ac_status); } && |
| 8578 | { ac_try='test -z "$ac_c_werror_flag" |
| 8579 | || test ! -s conftest.err' |
| 8580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8581 | (eval $ac_try) 2>&5 |
| 8582 | ac_status=$? |
| 8583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8584 | (exit $ac_status); }; } && |
| 8585 | { ac_try='test -s conftest$ac_exeext' |
| 8586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8587 | (eval $ac_try) 2>&5 |
| 8588 | ac_status=$? |
| 8589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8590 | (exit $ac_status); }; }; then |
| 8591 | ac_cv_lib_Xp_XpEndJob=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8592 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8593 | echo "$as_me: failed program was:" >&5 |
| 8594 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8595 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8596 | ac_cv_lib_Xp_XpEndJob=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8597 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8598 | rm -f conftest.err conftest.$ac_objext \ |
| 8599 | conftest$ac_exeext conftest.$ac_ext |
| 8600 | LIBS=$ac_check_lib_save_LIBS |
| 8601 | fi |
| 8602 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 |
| 8603 | echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6 |
| 8604 | if test $ac_cv_lib_Xp_XpEndJob = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8605 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8606 | fi |
| 8607 | |
| 8608 | fi |
| 8609 | LDFLAGS=$ldflags_save |
| 8610 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8611 | echo "$as_me:$LINENO: checking for extra X11 defines" >&5 |
| 8612 | echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8613 | NARROW_PROTO= |
| 8614 | rm -fr conftestdir |
| 8615 | if mkdir conftestdir; then |
| 8616 | cd conftestdir |
| 8617 | cat > Imakefile <<'EOF' |
| 8618 | acfindx: |
| 8619 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 8620 | EOF |
| 8621 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 8622 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 8623 | fi |
| 8624 | cd .. |
| 8625 | rm -fr conftestdir |
| 8626 | fi |
| 8627 | if test -z "$NARROW_PROTO"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8628 | echo "$as_me:$LINENO: result: no" >&5 |
| 8629 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8630 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8631 | echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 |
| 8632 | echo "${ECHO_T}$NARROW_PROTO" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8633 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8634 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8635 | fi |
| 8636 | |
| 8637 | if test "$enable_xsmp" = "yes"; then |
| 8638 | cppflags_save=$CPPFLAGS |
| 8639 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8640 | |
| 8641 | for ac_header in X11/SM/SMlib.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8642 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8643 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8645 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8646 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8649 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8650 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8651 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8652 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8653 | # Is the header compilable? |
| 8654 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8655 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8656 | cat >conftest.$ac_ext <<_ACEOF |
| 8657 | /* confdefs.h. */ |
| 8658 | _ACEOF |
| 8659 | cat confdefs.h >>conftest.$ac_ext |
| 8660 | cat >>conftest.$ac_ext <<_ACEOF |
| 8661 | /* end confdefs.h. */ |
| 8662 | $ac_includes_default |
| 8663 | #include <$ac_header> |
| 8664 | _ACEOF |
| 8665 | rm -f conftest.$ac_objext |
| 8666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8667 | (eval $ac_compile) 2>conftest.er1 |
| 8668 | ac_status=$? |
| 8669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8670 | rm -f conftest.er1 |
| 8671 | cat conftest.err >&5 |
| 8672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8673 | (exit $ac_status); } && |
| 8674 | { ac_try='test -z "$ac_c_werror_flag" |
| 8675 | || test ! -s conftest.err' |
| 8676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8677 | (eval $ac_try) 2>&5 |
| 8678 | ac_status=$? |
| 8679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8680 | (exit $ac_status); }; } && |
| 8681 | { ac_try='test -s conftest.$ac_objext' |
| 8682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8683 | (eval $ac_try) 2>&5 |
| 8684 | ac_status=$? |
| 8685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8686 | (exit $ac_status); }; }; then |
| 8687 | ac_header_compiler=yes |
| 8688 | else |
| 8689 | echo "$as_me: failed program was:" >&5 |
| 8690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8691 | |
| 8692 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8693 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8695 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8696 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8697 | |
| 8698 | # Is the header present? |
| 8699 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8700 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8701 | cat >conftest.$ac_ext <<_ACEOF |
| 8702 | /* confdefs.h. */ |
| 8703 | _ACEOF |
| 8704 | cat confdefs.h >>conftest.$ac_ext |
| 8705 | cat >>conftest.$ac_ext <<_ACEOF |
| 8706 | /* end confdefs.h. */ |
| 8707 | #include <$ac_header> |
| 8708 | _ACEOF |
| 8709 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8710 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8711 | ac_status=$? |
| 8712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8713 | rm -f conftest.er1 |
| 8714 | cat conftest.err >&5 |
| 8715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8716 | (exit $ac_status); } >/dev/null; then |
| 8717 | if test -s conftest.err; then |
| 8718 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8719 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8720 | else |
| 8721 | ac_cpp_err= |
| 8722 | fi |
| 8723 | else |
| 8724 | ac_cpp_err=yes |
| 8725 | fi |
| 8726 | if test -z "$ac_cpp_err"; then |
| 8727 | ac_header_preproc=yes |
| 8728 | else |
| 8729 | echo "$as_me: failed program was:" >&5 |
| 8730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8731 | |
| 8732 | ac_header_preproc=no |
| 8733 | fi |
| 8734 | rm -f conftest.err conftest.$ac_ext |
| 8735 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8736 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8737 | |
| 8738 | # So? What about this header? |
| 8739 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8740 | yes:no: ) |
| 8741 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8742 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8743 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8744 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8745 | ac_header_preproc=yes |
| 8746 | ;; |
| 8747 | no:yes:* ) |
| 8748 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8749 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8750 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8751 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8752 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8753 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8754 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8755 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8756 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8757 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8758 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8759 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8760 | ( |
| 8761 | cat <<\_ASBOX |
| 8762 | ## ------------------------------------------ ## |
| 8763 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8764 | ## ------------------------------------------ ## |
| 8765 | _ASBOX |
| 8766 | ) | |
| 8767 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8768 | ;; |
| 8769 | esac |
| 8770 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8774 | else |
| 8775 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8776 | fi |
| 8777 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8778 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8779 | |
| 8780 | fi |
| 8781 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8782 | cat >>confdefs.h <<_ACEOF |
| 8783 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8784 | _ACEOF |
| 8785 | |
| 8786 | fi |
| 8787 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8788 | done |
| 8789 | |
| 8790 | CPPFLAGS=$cppflags_save |
| 8791 | fi |
| 8792 | |
| 8793 | |
| 8794 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 8795 | cppflags_save=$CPPFLAGS |
| 8796 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8797 | |
| 8798 | |
| 8799 | for ac_header in X11/xpm.h X11/Sunkeysym.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8800 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8801 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8802 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8803 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8804 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8807 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8809 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8810 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8811 | # Is the header compilable? |
| 8812 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8813 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8814 | cat >conftest.$ac_ext <<_ACEOF |
| 8815 | /* confdefs.h. */ |
| 8816 | _ACEOF |
| 8817 | cat confdefs.h >>conftest.$ac_ext |
| 8818 | cat >>conftest.$ac_ext <<_ACEOF |
| 8819 | /* end confdefs.h. */ |
| 8820 | $ac_includes_default |
| 8821 | #include <$ac_header> |
| 8822 | _ACEOF |
| 8823 | rm -f conftest.$ac_objext |
| 8824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8825 | (eval $ac_compile) 2>conftest.er1 |
| 8826 | ac_status=$? |
| 8827 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8828 | rm -f conftest.er1 |
| 8829 | cat conftest.err >&5 |
| 8830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8831 | (exit $ac_status); } && |
| 8832 | { ac_try='test -z "$ac_c_werror_flag" |
| 8833 | || test ! -s conftest.err' |
| 8834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8835 | (eval $ac_try) 2>&5 |
| 8836 | ac_status=$? |
| 8837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8838 | (exit $ac_status); }; } && |
| 8839 | { ac_try='test -s conftest.$ac_objext' |
| 8840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8841 | (eval $ac_try) 2>&5 |
| 8842 | ac_status=$? |
| 8843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8844 | (exit $ac_status); }; }; then |
| 8845 | ac_header_compiler=yes |
| 8846 | else |
| 8847 | echo "$as_me: failed program was:" >&5 |
| 8848 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8849 | |
| 8850 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8851 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8853 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8854 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8855 | |
| 8856 | # Is the header present? |
| 8857 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8858 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8859 | cat >conftest.$ac_ext <<_ACEOF |
| 8860 | /* confdefs.h. */ |
| 8861 | _ACEOF |
| 8862 | cat confdefs.h >>conftest.$ac_ext |
| 8863 | cat >>conftest.$ac_ext <<_ACEOF |
| 8864 | /* end confdefs.h. */ |
| 8865 | #include <$ac_header> |
| 8866 | _ACEOF |
| 8867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8869 | ac_status=$? |
| 8870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8871 | rm -f conftest.er1 |
| 8872 | cat conftest.err >&5 |
| 8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8874 | (exit $ac_status); } >/dev/null; then |
| 8875 | if test -s conftest.err; then |
| 8876 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8877 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8878 | else |
| 8879 | ac_cpp_err= |
| 8880 | fi |
| 8881 | else |
| 8882 | ac_cpp_err=yes |
| 8883 | fi |
| 8884 | if test -z "$ac_cpp_err"; then |
| 8885 | ac_header_preproc=yes |
| 8886 | else |
| 8887 | echo "$as_me: failed program was:" >&5 |
| 8888 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8889 | |
| 8890 | ac_header_preproc=no |
| 8891 | fi |
| 8892 | rm -f conftest.err conftest.$ac_ext |
| 8893 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8894 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8895 | |
| 8896 | # So? What about this header? |
| 8897 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8898 | yes:no: ) |
| 8899 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8900 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8901 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8902 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8903 | ac_header_preproc=yes |
| 8904 | ;; |
| 8905 | no:yes:* ) |
| 8906 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8907 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8908 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8909 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8910 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8911 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8912 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8913 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8915 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8916 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8917 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8918 | ( |
| 8919 | cat <<\_ASBOX |
| 8920 | ## ------------------------------------------ ## |
| 8921 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8922 | ## ------------------------------------------ ## |
| 8923 | _ASBOX |
| 8924 | ) | |
| 8925 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8926 | ;; |
| 8927 | esac |
| 8928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8932 | else |
| 8933 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8934 | fi |
| 8935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8937 | |
| 8938 | fi |
| 8939 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8940 | cat >>confdefs.h <<_ACEOF |
| 8941 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8942 | _ACEOF |
| 8943 | |
| 8944 | fi |
| 8945 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8946 | done |
| 8947 | |
| 8948 | |
| 8949 | if test ! "$enable_xim" = "no"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8950 | echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 |
| 8951 | echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6 |
| 8952 | cat >conftest.$ac_ext <<_ACEOF |
| 8953 | /* confdefs.h. */ |
| 8954 | _ACEOF |
| 8955 | cat confdefs.h >>conftest.$ac_ext |
| 8956 | cat >>conftest.$ac_ext <<_ACEOF |
| 8957 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8958 | #include <X11/Xlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8959 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8960 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8961 | $EGREP "XIMText" >/dev/null 2>&1; then |
| 8962 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8963 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8964 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8965 | echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 |
| 8966 | echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8967 | fi |
| 8968 | rm -f conftest* |
| 8969 | |
| 8970 | fi |
| 8971 | CPPFLAGS=$cppflags_save |
| 8972 | |
| 8973 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 8974 | -a "x$GUITYPE" != "xNONE" ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8975 | echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 |
| 8976 | echo "${ECHO_T}X GUI selected; xim has been enabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8977 | enable_xim="yes" |
| 8978 | fi |
| 8979 | fi |
| 8980 | |
| 8981 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 8982 | cppflags_save=$CPPFLAGS |
| 8983 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8984 | echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 |
| 8985 | echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6 |
| 8986 | cat >conftest.$ac_ext <<_ACEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 8987 | /* confdefs.h. */ |
| 8988 | _ACEOF |
| 8989 | cat confdefs.h >>conftest.$ac_ext |
| 8990 | cat >>conftest.$ac_ext <<_ACEOF |
| 8991 | /* end confdefs.h. */ |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 8992 | |
| 8993 | #include <X11/Intrinsic.h> |
| 8994 | #include <X11/Xmu/Editres.h> |
| 8995 | int |
| 8996 | main () |
| 8997 | { |
| 8998 | int i; i = 0; |
| 8999 | ; |
| 9000 | return 0; |
| 9001 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9002 | _ACEOF |
| 9003 | rm -f conftest.$ac_objext |
| 9004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9005 | (eval $ac_compile) 2>conftest.er1 |
| 9006 | ac_status=$? |
| 9007 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9008 | rm -f conftest.er1 |
| 9009 | cat conftest.err >&5 |
| 9010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9011 | (exit $ac_status); } && |
| 9012 | { ac_try='test -z "$ac_c_werror_flag" |
| 9013 | || test ! -s conftest.err' |
| 9014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9015 | (eval $ac_try) 2>&5 |
| 9016 | ac_status=$? |
| 9017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9018 | (exit $ac_status); }; } && |
| 9019 | { ac_try='test -s conftest.$ac_objext' |
| 9020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9021 | (eval $ac_try) 2>&5 |
| 9022 | ac_status=$? |
| 9023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9024 | (exit $ac_status); }; }; then |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9025 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9026 | echo "${ECHO_T}yes" >&6 |
| 9027 | cat >>confdefs.h <<\_ACEOF |
| 9028 | #define HAVE_X11_XMU_EDITRES_H 1 |
| 9029 | _ACEOF |
| 9030 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9031 | else |
| 9032 | echo "$as_me: failed program was:" >&5 |
| 9033 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9034 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9035 | echo "$as_me:$LINENO: result: no" >&5 |
| 9036 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9037 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9039 | CPPFLAGS=$cppflags_save |
| 9040 | fi |
| 9041 | |
| 9042 | if test -z "$SKIP_MOTIF"; then |
| 9043 | cppflags_save=$CPPFLAGS |
| 9044 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9045 | |
| 9046 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9047 | |
| 9048 | |
| 9049 | |
| 9050 | |
Bram Moolenaar | fc1421e | 2006-04-20 22:17:20 +0000 | [diff] [blame] | 9051 | |
Bram Moolenaar | 2ce06f6 | 2005-01-31 19:19:04 +0000 | [diff] [blame] | 9052 | 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] | 9053 | Xm/UnhighlightT.h Xm/Notebook.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9054 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9055 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9056 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9057 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9058 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9059 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9061 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9063 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9064 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9065 | # Is the header compilable? |
| 9066 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9067 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9068 | cat >conftest.$ac_ext <<_ACEOF |
| 9069 | /* confdefs.h. */ |
| 9070 | _ACEOF |
| 9071 | cat confdefs.h >>conftest.$ac_ext |
| 9072 | cat >>conftest.$ac_ext <<_ACEOF |
| 9073 | /* end confdefs.h. */ |
| 9074 | $ac_includes_default |
| 9075 | #include <$ac_header> |
| 9076 | _ACEOF |
| 9077 | rm -f conftest.$ac_objext |
| 9078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9079 | (eval $ac_compile) 2>conftest.er1 |
| 9080 | ac_status=$? |
| 9081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9082 | rm -f conftest.er1 |
| 9083 | cat conftest.err >&5 |
| 9084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9085 | (exit $ac_status); } && |
| 9086 | { ac_try='test -z "$ac_c_werror_flag" |
| 9087 | || test ! -s conftest.err' |
| 9088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9089 | (eval $ac_try) 2>&5 |
| 9090 | ac_status=$? |
| 9091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9092 | (exit $ac_status); }; } && |
| 9093 | { ac_try='test -s conftest.$ac_objext' |
| 9094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9095 | (eval $ac_try) 2>&5 |
| 9096 | ac_status=$? |
| 9097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9098 | (exit $ac_status); }; }; then |
| 9099 | ac_header_compiler=yes |
| 9100 | else |
| 9101 | echo "$as_me: failed program was:" >&5 |
| 9102 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9103 | |
| 9104 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9105 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9107 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9108 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9109 | |
| 9110 | # Is the header present? |
| 9111 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9112 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9113 | cat >conftest.$ac_ext <<_ACEOF |
| 9114 | /* confdefs.h. */ |
| 9115 | _ACEOF |
| 9116 | cat confdefs.h >>conftest.$ac_ext |
| 9117 | cat >>conftest.$ac_ext <<_ACEOF |
| 9118 | /* end confdefs.h. */ |
| 9119 | #include <$ac_header> |
| 9120 | _ACEOF |
| 9121 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9122 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9123 | ac_status=$? |
| 9124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9125 | rm -f conftest.er1 |
| 9126 | cat conftest.err >&5 |
| 9127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9128 | (exit $ac_status); } >/dev/null; then |
| 9129 | if test -s conftest.err; then |
| 9130 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9131 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9132 | else |
| 9133 | ac_cpp_err= |
| 9134 | fi |
| 9135 | else |
| 9136 | ac_cpp_err=yes |
| 9137 | fi |
| 9138 | if test -z "$ac_cpp_err"; then |
| 9139 | ac_header_preproc=yes |
| 9140 | else |
| 9141 | echo "$as_me: failed program was:" >&5 |
| 9142 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9143 | |
| 9144 | ac_header_preproc=no |
| 9145 | fi |
| 9146 | rm -f conftest.err conftest.$ac_ext |
| 9147 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9148 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9149 | |
| 9150 | # So? What about this header? |
| 9151 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9152 | yes:no: ) |
| 9153 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9154 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9155 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9156 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9157 | ac_header_preproc=yes |
| 9158 | ;; |
| 9159 | no:yes:* ) |
| 9160 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9161 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9162 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9163 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9164 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9165 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9166 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9167 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9168 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9169 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9170 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9171 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9172 | ( |
| 9173 | cat <<\_ASBOX |
| 9174 | ## ------------------------------------------ ## |
| 9175 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9176 | ## ------------------------------------------ ## |
| 9177 | _ASBOX |
| 9178 | ) | |
| 9179 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9180 | ;; |
| 9181 | esac |
| 9182 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9183 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9184 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9186 | else |
| 9187 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9188 | fi |
| 9189 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9190 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9191 | |
| 9192 | fi |
| 9193 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9194 | cat >>confdefs.h <<_ACEOF |
| 9195 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9196 | _ACEOF |
| 9197 | |
| 9198 | fi |
| 9199 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9200 | done |
| 9201 | |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 9202 | |
| 9203 | if test $ac_cv_header_Xm_XpmP_h = yes; then |
| 9204 | echo "$as_me:$LINENO: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 |
| 9205 | echo $ECHO_N "checking for XpmAttributes_21 in Xm/XpmP.h... $ECHO_C" >&6 |
| 9206 | cat >conftest.$ac_ext <<_ACEOF |
| 9207 | /* confdefs.h. */ |
| 9208 | _ACEOF |
| 9209 | cat confdefs.h >>conftest.$ac_ext |
| 9210 | cat >>conftest.$ac_ext <<_ACEOF |
| 9211 | /* end confdefs.h. */ |
| 9212 | #include <Xm/XpmP.h> |
| 9213 | int |
| 9214 | main () |
| 9215 | { |
| 9216 | XpmAttributes_21 attr; |
| 9217 | ; |
| 9218 | return 0; |
| 9219 | } |
| 9220 | _ACEOF |
| 9221 | rm -f conftest.$ac_objext |
| 9222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9223 | (eval $ac_compile) 2>conftest.er1 |
| 9224 | ac_status=$? |
| 9225 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9226 | rm -f conftest.er1 |
| 9227 | cat conftest.err >&5 |
| 9228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9229 | (exit $ac_status); } && |
| 9230 | { ac_try='test -z "$ac_c_werror_flag" |
| 9231 | || test ! -s conftest.err' |
| 9232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9233 | (eval $ac_try) 2>&5 |
| 9234 | ac_status=$? |
| 9235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9236 | (exit $ac_status); }; } && |
| 9237 | { ac_try='test -s conftest.$ac_objext' |
| 9238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9239 | (eval $ac_try) 2>&5 |
| 9240 | ac_status=$? |
| 9241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9242 | (exit $ac_status); }; }; then |
| 9243 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9244 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
| 9245 | #define XPMATTRIBUTES_TYPE XpmAttributes_21 |
| 9246 | _ACEOF |
| 9247 | |
| 9248 | else |
| 9249 | echo "$as_me: failed program was:" >&5 |
| 9250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9251 | |
| 9252 | echo "$as_me:$LINENO: result: no" >&5 |
| 9253 | echo "${ECHO_T}no" >&6; cat >>confdefs.h <<\_ACEOF |
| 9254 | #define XPMATTRIBUTES_TYPE XpmAttributes |
| 9255 | _ACEOF |
| 9256 | |
| 9257 | |
| 9258 | fi |
| 9259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9260 | else |
| 9261 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 57657d8 | 2006-04-21 22:12:41 +0000 | [diff] [blame] | 9262 | #define XPMATTRIBUTES_TYPE XpmAttributes |
Bram Moolenaar | 910f66f | 2006-04-05 20:41:53 +0000 | [diff] [blame] | 9263 | _ACEOF |
| 9264 | |
| 9265 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9266 | CPPFLAGS=$cppflags_save |
| 9267 | fi |
| 9268 | |
| 9269 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9270 | echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 |
| 9271 | echo "${ECHO_T}no GUI selected; xim has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9272 | enable_xim="no" |
| 9273 | fi |
| 9274 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9275 | echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 |
| 9276 | echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9277 | enable_fontset="no" |
| 9278 | fi |
| 9279 | 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] | 9280 | echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 |
| 9281 | echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9282 | enable_fontset="no" |
| 9283 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9284 | |
| 9285 | if test -z "$SKIP_PHOTON"; then |
| 9286 | GUITYPE=PHOTONGUI |
| 9287 | fi |
| 9288 | |
| 9289 | |
| 9290 | |
| 9291 | |
| 9292 | |
| 9293 | |
| 9294 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9295 | { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 |
| 9296 | echo "$as_me: error: cannot use workshop without Motif" >&2;} |
| 9297 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9298 | fi |
| 9299 | |
| 9300 | if test "$enable_xim" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9301 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9302 | #define FEAT_XIM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9303 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9304 | |
| 9305 | fi |
| 9306 | if test "$enable_fontset" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9307 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9308 | #define FEAT_XFONTSET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9309 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9310 | |
| 9311 | fi |
| 9312 | |
| 9313 | |
| 9314 | |
| 9315 | |
| 9316 | if test "$enable_hangulinput" = "yes"; then |
| 9317 | if test "x$GUITYPE" = "xNONE"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9318 | echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 |
| 9319 | echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9320 | enable_hangulinput=no |
| 9321 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9322 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9323 | #define FEAT_HANGULIN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9324 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9325 | |
| 9326 | HANGULIN_SRC=hangulin.c |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9327 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9328 | HANGULIN_OBJ=objects/hangulin.o |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9329 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9330 | fi |
| 9331 | fi |
| 9332 | |
| 9333 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9334 | echo "$as_me:$LINENO: checking quality of toupper" >&5 |
| 9335 | echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9336 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9337 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 9338 | echo "$as_me: error: failed to compile test program" >&2;} |
| 9339 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9340 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9341 | cat >conftest.$ac_ext <<_ACEOF |
| 9342 | /* confdefs.h. */ |
| 9343 | _ACEOF |
| 9344 | cat confdefs.h >>conftest.$ac_ext |
| 9345 | cat >>conftest.$ac_ext <<_ACEOF |
| 9346 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9347 | #include <ctype.h> |
| 9348 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9349 | _ACEOF |
| 9350 | rm -f conftest$ac_exeext |
| 9351 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9352 | (eval $ac_link) 2>&5 |
| 9353 | ac_status=$? |
| 9354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9355 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9357 | (eval $ac_try) 2>&5 |
| 9358 | ac_status=$? |
| 9359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9360 | (exit $ac_status); }; }; then |
| 9361 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9362 | #define BROKEN_TOUPPER 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9363 | _ACEOF |
| 9364 | echo "$as_me:$LINENO: result: bad" >&5 |
| 9365 | echo "${ECHO_T}bad" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9366 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9367 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9368 | echo "$as_me: failed program was:" >&5 |
| 9369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9370 | |
| 9371 | ( exit $ac_status ) |
| 9372 | echo "$as_me:$LINENO: result: good" >&5 |
| 9373 | echo "${ECHO_T}good" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9374 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9375 | 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] | 9376 | fi |
| 9377 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9378 | echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 |
| 9379 | echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6 |
| 9380 | cat >conftest.$ac_ext <<_ACEOF |
| 9381 | /* confdefs.h. */ |
| 9382 | _ACEOF |
| 9383 | cat confdefs.h >>conftest.$ac_ext |
| 9384 | cat >>conftest.$ac_ext <<_ACEOF |
| 9385 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9386 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9387 | int |
| 9388 | main () |
| 9389 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9390 | printf("(" __DATE__ " " __TIME__ ")"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9391 | ; |
| 9392 | return 0; |
| 9393 | } |
| 9394 | _ACEOF |
| 9395 | rm -f conftest.$ac_objext |
| 9396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9397 | (eval $ac_compile) 2>conftest.er1 |
| 9398 | ac_status=$? |
| 9399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9400 | rm -f conftest.er1 |
| 9401 | cat conftest.err >&5 |
| 9402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9403 | (exit $ac_status); } && |
| 9404 | { ac_try='test -z "$ac_c_werror_flag" |
| 9405 | || test ! -s conftest.err' |
| 9406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9407 | (eval $ac_try) 2>&5 |
| 9408 | ac_status=$? |
| 9409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9410 | (exit $ac_status); }; } && |
| 9411 | { ac_try='test -s conftest.$ac_objext' |
| 9412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9413 | (eval $ac_try) 2>&5 |
| 9414 | ac_status=$? |
| 9415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9416 | (exit $ac_status); }; }; then |
| 9417 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9418 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9419 | #define HAVE_DATE_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9420 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9421 | |
| 9422 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9423 | echo "$as_me: failed program was:" >&5 |
| 9424 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9425 | |
| 9426 | echo "$as_me:$LINENO: result: no" >&5 |
| 9427 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9428 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9429 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9430 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9431 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9432 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 9433 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 9434 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9436 | fi |
| 9437 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 9438 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9439 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9440 | # Is the header compilable? |
| 9441 | echo "$as_me:$LINENO: checking elf.h usability" >&5 |
| 9442 | echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6 |
| 9443 | cat >conftest.$ac_ext <<_ACEOF |
| 9444 | /* confdefs.h. */ |
| 9445 | _ACEOF |
| 9446 | cat confdefs.h >>conftest.$ac_ext |
| 9447 | cat >>conftest.$ac_ext <<_ACEOF |
| 9448 | /* end confdefs.h. */ |
| 9449 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9450 | #include <elf.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9451 | _ACEOF |
| 9452 | rm -f conftest.$ac_objext |
| 9453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9454 | (eval $ac_compile) 2>conftest.er1 |
| 9455 | ac_status=$? |
| 9456 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9457 | rm -f conftest.er1 |
| 9458 | cat conftest.err >&5 |
| 9459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9460 | (exit $ac_status); } && |
| 9461 | { ac_try='test -z "$ac_c_werror_flag" |
| 9462 | || test ! -s conftest.err' |
| 9463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9464 | (eval $ac_try) 2>&5 |
| 9465 | ac_status=$? |
| 9466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9467 | (exit $ac_status); }; } && |
| 9468 | { ac_try='test -s conftest.$ac_objext' |
| 9469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9470 | (eval $ac_try) 2>&5 |
| 9471 | ac_status=$? |
| 9472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9473 | (exit $ac_status); }; }; then |
| 9474 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9475 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9476 | echo "$as_me: failed program was:" >&5 |
| 9477 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9478 | |
| 9479 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9480 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9482 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9483 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9484 | |
| 9485 | # Is the header present? |
| 9486 | echo "$as_me:$LINENO: checking elf.h presence" >&5 |
| 9487 | echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6 |
| 9488 | cat >conftest.$ac_ext <<_ACEOF |
| 9489 | /* confdefs.h. */ |
| 9490 | _ACEOF |
| 9491 | cat confdefs.h >>conftest.$ac_ext |
| 9492 | cat >>conftest.$ac_ext <<_ACEOF |
| 9493 | /* end confdefs.h. */ |
| 9494 | #include <elf.h> |
| 9495 | _ACEOF |
| 9496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9498 | ac_status=$? |
| 9499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9500 | rm -f conftest.er1 |
| 9501 | cat conftest.err >&5 |
| 9502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9503 | (exit $ac_status); } >/dev/null; then |
| 9504 | if test -s conftest.err; then |
| 9505 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9506 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 9507 | else |
| 9508 | ac_cpp_err= |
| 9509 | fi |
| 9510 | else |
| 9511 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9512 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9513 | if test -z "$ac_cpp_err"; then |
| 9514 | ac_header_preproc=yes |
| 9515 | else |
| 9516 | echo "$as_me: failed program was:" >&5 |
| 9517 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9518 | |
| 9519 | ac_header_preproc=no |
| 9520 | fi |
| 9521 | rm -f conftest.err conftest.$ac_ext |
| 9522 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9523 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9524 | |
| 9525 | # So? What about this header? |
| 9526 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9527 | yes:no: ) |
| 9528 | { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9529 | echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9530 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 |
| 9531 | echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;} |
| 9532 | ac_header_preproc=yes |
| 9533 | ;; |
| 9534 | no:yes:* ) |
| 9535 | { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 |
| 9536 | echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} |
| 9537 | { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 |
| 9538 | echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} |
| 9539 | { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 |
| 9540 | echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} |
| 9541 | { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 9542 | echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9543 | { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 |
| 9544 | echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} |
| 9545 | { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 |
| 9546 | echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} |
| 9547 | ( |
| 9548 | cat <<\_ASBOX |
| 9549 | ## ------------------------------------------ ## |
| 9550 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9551 | ## ------------------------------------------ ## |
| 9552 | _ASBOX |
| 9553 | ) | |
| 9554 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9555 | ;; |
| 9556 | esac |
| 9557 | echo "$as_me:$LINENO: checking for elf.h" >&5 |
| 9558 | echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 |
| 9559 | if test "${ac_cv_header_elf_h+set}" = set; then |
| 9560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9561 | else |
| 9562 | ac_cv_header_elf_h=$ac_header_preproc |
| 9563 | fi |
| 9564 | echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 |
| 9565 | echo "${ECHO_T}$ac_cv_header_elf_h" >&6 |
| 9566 | |
| 9567 | fi |
| 9568 | if test $ac_cv_header_elf_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9569 | HAS_ELF=1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9570 | fi |
| 9571 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9572 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9573 | if test "$HAS_ELF" = 1; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9574 | |
| 9575 | echo "$as_me:$LINENO: checking for main in -lelf" >&5 |
| 9576 | echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6 |
| 9577 | if test "${ac_cv_lib_elf_main+set}" = set; then |
| 9578 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9579 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9580 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9581 | LIBS="-lelf $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9582 | cat >conftest.$ac_ext <<_ACEOF |
| 9583 | /* confdefs.h. */ |
| 9584 | _ACEOF |
| 9585 | cat confdefs.h >>conftest.$ac_ext |
| 9586 | cat >>conftest.$ac_ext <<_ACEOF |
| 9587 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9588 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9589 | |
| 9590 | int |
| 9591 | main () |
| 9592 | { |
| 9593 | main (); |
| 9594 | ; |
| 9595 | return 0; |
| 9596 | } |
| 9597 | _ACEOF |
| 9598 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9600 | (eval $ac_link) 2>conftest.er1 |
| 9601 | ac_status=$? |
| 9602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9603 | rm -f conftest.er1 |
| 9604 | cat conftest.err >&5 |
| 9605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9606 | (exit $ac_status); } && |
| 9607 | { ac_try='test -z "$ac_c_werror_flag" |
| 9608 | || test ! -s conftest.err' |
| 9609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9610 | (eval $ac_try) 2>&5 |
| 9611 | ac_status=$? |
| 9612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9613 | (exit $ac_status); }; } && |
| 9614 | { ac_try='test -s conftest$ac_exeext' |
| 9615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9616 | (eval $ac_try) 2>&5 |
| 9617 | ac_status=$? |
| 9618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9619 | (exit $ac_status); }; }; then |
| 9620 | ac_cv_lib_elf_main=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9621 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9622 | echo "$as_me: failed program was:" >&5 |
| 9623 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9624 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9625 | ac_cv_lib_elf_main=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9626 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9627 | rm -f conftest.err conftest.$ac_objext \ |
| 9628 | conftest$ac_exeext conftest.$ac_ext |
| 9629 | LIBS=$ac_check_lib_save_LIBS |
| 9630 | fi |
| 9631 | echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 |
| 9632 | echo "${ECHO_T}$ac_cv_lib_elf_main" >&6 |
| 9633 | if test $ac_cv_lib_elf_main = yes; then |
| 9634 | cat >>confdefs.h <<_ACEOF |
| 9635 | #define HAVE_LIBELF 1 |
| 9636 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9637 | |
| 9638 | LIBS="-lelf $LIBS" |
| 9639 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9640 | fi |
| 9641 | |
| 9642 | fi |
| 9643 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9644 | |
| 9645 | |
| 9646 | |
| 9647 | |
| 9648 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9649 | ac_header_dirent=no |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9650 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 9651 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 9652 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 9653 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 9654 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9656 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9657 | cat >conftest.$ac_ext <<_ACEOF |
| 9658 | /* confdefs.h. */ |
| 9659 | _ACEOF |
| 9660 | cat confdefs.h >>conftest.$ac_ext |
| 9661 | cat >>conftest.$ac_ext <<_ACEOF |
| 9662 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9663 | #include <sys/types.h> |
| 9664 | #include <$ac_hdr> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9665 | |
| 9666 | int |
| 9667 | main () |
| 9668 | { |
| 9669 | if ((DIR *) 0) |
| 9670 | return 0; |
| 9671 | ; |
| 9672 | return 0; |
| 9673 | } |
| 9674 | _ACEOF |
| 9675 | rm -f conftest.$ac_objext |
| 9676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9677 | (eval $ac_compile) 2>conftest.er1 |
| 9678 | ac_status=$? |
| 9679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9680 | rm -f conftest.er1 |
| 9681 | cat conftest.err >&5 |
| 9682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9683 | (exit $ac_status); } && |
| 9684 | { ac_try='test -z "$ac_c_werror_flag" |
| 9685 | || test ! -s conftest.err' |
| 9686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9687 | (eval $ac_try) 2>&5 |
| 9688 | ac_status=$? |
| 9689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9690 | (exit $ac_status); }; } && |
| 9691 | { ac_try='test -s conftest.$ac_objext' |
| 9692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9693 | (eval $ac_try) 2>&5 |
| 9694 | ac_status=$? |
| 9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9696 | (exit $ac_status); }; }; then |
| 9697 | eval "$as_ac_Header=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9698 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9699 | echo "$as_me: failed program was:" >&5 |
| 9700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9701 | |
| 9702 | eval "$as_ac_Header=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9703 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9705 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9706 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9707 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9708 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9709 | cat >>confdefs.h <<_ACEOF |
| 9710 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 9711 | _ACEOF |
| 9712 | |
| 9713 | ac_header_dirent=$ac_hdr; break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9714 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9715 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9716 | done |
| 9717 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 9718 | if test $ac_header_dirent = dirent.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9719 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9720 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 9721 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9723 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9724 | ac_func_search_save_LIBS=$LIBS |
| 9725 | ac_cv_search_opendir=no |
| 9726 | cat >conftest.$ac_ext <<_ACEOF |
| 9727 | /* confdefs.h. */ |
| 9728 | _ACEOF |
| 9729 | cat confdefs.h >>conftest.$ac_ext |
| 9730 | cat >>conftest.$ac_ext <<_ACEOF |
| 9731 | /* end confdefs.h. */ |
| 9732 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9733 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9734 | #ifdef __cplusplus |
| 9735 | extern "C" |
| 9736 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9737 | /* 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] | 9738 | builtin and then its argument prototype would still apply. */ |
| 9739 | char opendir (); |
| 9740 | int |
| 9741 | main () |
| 9742 | { |
| 9743 | opendir (); |
| 9744 | ; |
| 9745 | return 0; |
| 9746 | } |
| 9747 | _ACEOF |
| 9748 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9750 | (eval $ac_link) 2>conftest.er1 |
| 9751 | ac_status=$? |
| 9752 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9753 | rm -f conftest.er1 |
| 9754 | cat conftest.err >&5 |
| 9755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9756 | (exit $ac_status); } && |
| 9757 | { ac_try='test -z "$ac_c_werror_flag" |
| 9758 | || test ! -s conftest.err' |
| 9759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9760 | (eval $ac_try) 2>&5 |
| 9761 | ac_status=$? |
| 9762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9763 | (exit $ac_status); }; } && |
| 9764 | { ac_try='test -s conftest$ac_exeext' |
| 9765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9766 | (eval $ac_try) 2>&5 |
| 9767 | ac_status=$? |
| 9768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9769 | (exit $ac_status); }; }; then |
| 9770 | ac_cv_search_opendir="none required" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9771 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9772 | echo "$as_me: failed program was:" >&5 |
| 9773 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9774 | |
| 9775 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9776 | rm -f conftest.err conftest.$ac_objext \ |
| 9777 | conftest$ac_exeext conftest.$ac_ext |
| 9778 | if test "$ac_cv_search_opendir" = no; then |
| 9779 | for ac_lib in dir; do |
| 9780 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9781 | cat >conftest.$ac_ext <<_ACEOF |
| 9782 | /* confdefs.h. */ |
| 9783 | _ACEOF |
| 9784 | cat confdefs.h >>conftest.$ac_ext |
| 9785 | cat >>conftest.$ac_ext <<_ACEOF |
| 9786 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9787 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9788 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9789 | #ifdef __cplusplus |
| 9790 | extern "C" |
| 9791 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9792 | /* 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] | 9793 | builtin and then its argument prototype would still apply. */ |
| 9794 | char opendir (); |
| 9795 | int |
| 9796 | main () |
| 9797 | { |
| 9798 | opendir (); |
| 9799 | ; |
| 9800 | return 0; |
| 9801 | } |
| 9802 | _ACEOF |
| 9803 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9804 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9805 | (eval $ac_link) 2>conftest.er1 |
| 9806 | ac_status=$? |
| 9807 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9808 | rm -f conftest.er1 |
| 9809 | cat conftest.err >&5 |
| 9810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9811 | (exit $ac_status); } && |
| 9812 | { ac_try='test -z "$ac_c_werror_flag" |
| 9813 | || test ! -s conftest.err' |
| 9814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9815 | (eval $ac_try) 2>&5 |
| 9816 | ac_status=$? |
| 9817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9818 | (exit $ac_status); }; } && |
| 9819 | { ac_try='test -s conftest$ac_exeext' |
| 9820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9821 | (eval $ac_try) 2>&5 |
| 9822 | ac_status=$? |
| 9823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9824 | (exit $ac_status); }; }; then |
| 9825 | ac_cv_search_opendir="-l$ac_lib" |
| 9826 | break |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9827 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9828 | echo "$as_me: failed program was:" >&5 |
| 9829 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9830 | |
| 9831 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9832 | rm -f conftest.err conftest.$ac_objext \ |
| 9833 | conftest$ac_exeext conftest.$ac_ext |
| 9834 | done |
| 9835 | fi |
| 9836 | LIBS=$ac_func_search_save_LIBS |
| 9837 | fi |
| 9838 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9839 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 9840 | if test "$ac_cv_search_opendir" != no; then |
| 9841 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 9842 | |
| 9843 | fi |
| 9844 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9845 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9846 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 9847 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 9848 | if test "${ac_cv_search_opendir+set}" = set; then |
| 9849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9850 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9851 | ac_func_search_save_LIBS=$LIBS |
| 9852 | ac_cv_search_opendir=no |
| 9853 | cat >conftest.$ac_ext <<_ACEOF |
| 9854 | /* confdefs.h. */ |
| 9855 | _ACEOF |
| 9856 | cat confdefs.h >>conftest.$ac_ext |
| 9857 | cat >>conftest.$ac_ext <<_ACEOF |
| 9858 | /* end confdefs.h. */ |
| 9859 | |
| 9860 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9861 | #ifdef __cplusplus |
| 9862 | extern "C" |
| 9863 | #endif |
| 9864 | /* We use char because int might match the return type of a gcc2 |
| 9865 | builtin and then its argument prototype would still apply. */ |
| 9866 | char opendir (); |
| 9867 | int |
| 9868 | main () |
| 9869 | { |
| 9870 | opendir (); |
| 9871 | ; |
| 9872 | return 0; |
| 9873 | } |
| 9874 | _ACEOF |
| 9875 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9877 | (eval $ac_link) 2>conftest.er1 |
| 9878 | ac_status=$? |
| 9879 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9880 | rm -f conftest.er1 |
| 9881 | cat conftest.err >&5 |
| 9882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9883 | (exit $ac_status); } && |
| 9884 | { ac_try='test -z "$ac_c_werror_flag" |
| 9885 | || test ! -s conftest.err' |
| 9886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9887 | (eval $ac_try) 2>&5 |
| 9888 | ac_status=$? |
| 9889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9890 | (exit $ac_status); }; } && |
| 9891 | { ac_try='test -s conftest$ac_exeext' |
| 9892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9893 | (eval $ac_try) 2>&5 |
| 9894 | ac_status=$? |
| 9895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9896 | (exit $ac_status); }; }; then |
| 9897 | ac_cv_search_opendir="none required" |
| 9898 | else |
| 9899 | echo "$as_me: failed program was:" >&5 |
| 9900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9901 | |
| 9902 | fi |
| 9903 | rm -f conftest.err conftest.$ac_objext \ |
| 9904 | conftest$ac_exeext conftest.$ac_ext |
| 9905 | if test "$ac_cv_search_opendir" = no; then |
| 9906 | for ac_lib in x; do |
| 9907 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9908 | cat >conftest.$ac_ext <<_ACEOF |
| 9909 | /* confdefs.h. */ |
| 9910 | _ACEOF |
| 9911 | cat confdefs.h >>conftest.$ac_ext |
| 9912 | cat >>conftest.$ac_ext <<_ACEOF |
| 9913 | /* end confdefs.h. */ |
| 9914 | |
| 9915 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9916 | #ifdef __cplusplus |
| 9917 | extern "C" |
| 9918 | #endif |
| 9919 | /* We use char because int might match the return type of a gcc2 |
| 9920 | builtin and then its argument prototype would still apply. */ |
| 9921 | char opendir (); |
| 9922 | int |
| 9923 | main () |
| 9924 | { |
| 9925 | opendir (); |
| 9926 | ; |
| 9927 | return 0; |
| 9928 | } |
| 9929 | _ACEOF |
| 9930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9932 | (eval $ac_link) 2>conftest.er1 |
| 9933 | ac_status=$? |
| 9934 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9935 | rm -f conftest.er1 |
| 9936 | cat conftest.err >&5 |
| 9937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9938 | (exit $ac_status); } && |
| 9939 | { ac_try='test -z "$ac_c_werror_flag" |
| 9940 | || test ! -s conftest.err' |
| 9941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9942 | (eval $ac_try) 2>&5 |
| 9943 | ac_status=$? |
| 9944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9945 | (exit $ac_status); }; } && |
| 9946 | { ac_try='test -s conftest$ac_exeext' |
| 9947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9948 | (eval $ac_try) 2>&5 |
| 9949 | ac_status=$? |
| 9950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9951 | (exit $ac_status); }; }; then |
| 9952 | ac_cv_search_opendir="-l$ac_lib" |
| 9953 | break |
| 9954 | else |
| 9955 | echo "$as_me: failed program was:" >&5 |
| 9956 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9957 | |
| 9958 | fi |
| 9959 | rm -f conftest.err conftest.$ac_objext \ |
| 9960 | conftest$ac_exeext conftest.$ac_ext |
| 9961 | done |
| 9962 | fi |
| 9963 | LIBS=$ac_func_search_save_LIBS |
| 9964 | fi |
| 9965 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 9966 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 9967 | if test "$ac_cv_search_opendir" != no; then |
| 9968 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 9969 | |
| 9970 | fi |
| 9971 | |
| 9972 | fi |
| 9973 | |
| 9974 | |
| 9975 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 9976 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 9977 | if test "${ac_cv_header_stdc+set}" = set; then |
| 9978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9979 | else |
| 9980 | cat >conftest.$ac_ext <<_ACEOF |
| 9981 | /* confdefs.h. */ |
| 9982 | _ACEOF |
| 9983 | cat confdefs.h >>conftest.$ac_ext |
| 9984 | cat >>conftest.$ac_ext <<_ACEOF |
| 9985 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 9986 | #include <stdlib.h> |
| 9987 | #include <stdarg.h> |
| 9988 | #include <string.h> |
| 9989 | #include <float.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 9990 | |
| 9991 | int |
| 9992 | main () |
| 9993 | { |
| 9994 | |
| 9995 | ; |
| 9996 | return 0; |
| 9997 | } |
| 9998 | _ACEOF |
| 9999 | rm -f conftest.$ac_objext |
| 10000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10001 | (eval $ac_compile) 2>conftest.er1 |
| 10002 | ac_status=$? |
| 10003 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10004 | rm -f conftest.er1 |
| 10005 | cat conftest.err >&5 |
| 10006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10007 | (exit $ac_status); } && |
| 10008 | { ac_try='test -z "$ac_c_werror_flag" |
| 10009 | || test ! -s conftest.err' |
| 10010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10011 | (eval $ac_try) 2>&5 |
| 10012 | ac_status=$? |
| 10013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10014 | (exit $ac_status); }; } && |
| 10015 | { ac_try='test -s conftest.$ac_objext' |
| 10016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10017 | (eval $ac_try) 2>&5 |
| 10018 | ac_status=$? |
| 10019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10020 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10021 | ac_cv_header_stdc=yes |
| 10022 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10023 | echo "$as_me: failed program was:" >&5 |
| 10024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10025 | |
| 10026 | ac_cv_header_stdc=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10027 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10029 | |
| 10030 | if test $ac_cv_header_stdc = yes; then |
| 10031 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10032 | cat >conftest.$ac_ext <<_ACEOF |
| 10033 | /* confdefs.h. */ |
| 10034 | _ACEOF |
| 10035 | cat confdefs.h >>conftest.$ac_ext |
| 10036 | cat >>conftest.$ac_ext <<_ACEOF |
| 10037 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10038 | #include <string.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10039 | |
| 10040 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10041 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10042 | $EGREP "memchr" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10043 | : |
| 10044 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10045 | ac_cv_header_stdc=no |
| 10046 | fi |
| 10047 | rm -f conftest* |
| 10048 | |
| 10049 | fi |
| 10050 | |
| 10051 | if test $ac_cv_header_stdc = yes; then |
| 10052 | # 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] | 10053 | cat >conftest.$ac_ext <<_ACEOF |
| 10054 | /* confdefs.h. */ |
| 10055 | _ACEOF |
| 10056 | cat confdefs.h >>conftest.$ac_ext |
| 10057 | cat >>conftest.$ac_ext <<_ACEOF |
| 10058 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10059 | #include <stdlib.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10060 | |
| 10061 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10062 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10063 | $EGREP "free" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10064 | : |
| 10065 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10066 | ac_cv_header_stdc=no |
| 10067 | fi |
| 10068 | rm -f conftest* |
| 10069 | |
| 10070 | fi |
| 10071 | |
| 10072 | if test $ac_cv_header_stdc = yes; then |
| 10073 | # /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] | 10074 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10075 | : |
| 10076 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10077 | cat >conftest.$ac_ext <<_ACEOF |
| 10078 | /* confdefs.h. */ |
| 10079 | _ACEOF |
| 10080 | cat confdefs.h >>conftest.$ac_ext |
| 10081 | cat >>conftest.$ac_ext <<_ACEOF |
| 10082 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10083 | #include <ctype.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10084 | #if ((' ' & 0x0FF) == 0x020) |
| 10085 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 10086 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 10087 | #else |
| 10088 | # define ISLOWER(c) \ |
| 10089 | (('a' <= (c) && (c) <= 'i') \ |
| 10090 | || ('j' <= (c) && (c) <= 'r') \ |
| 10091 | || ('s' <= (c) && (c) <= 'z')) |
| 10092 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 10093 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10094 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10095 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 10096 | int |
| 10097 | main () |
| 10098 | { |
| 10099 | int i; |
| 10100 | for (i = 0; i < 256; i++) |
| 10101 | if (XOR (islower (i), ISLOWER (i)) |
| 10102 | || toupper (i) != TOUPPER (i)) |
| 10103 | exit(2); |
| 10104 | exit (0); |
| 10105 | } |
| 10106 | _ACEOF |
| 10107 | rm -f conftest$ac_exeext |
| 10108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10109 | (eval $ac_link) 2>&5 |
| 10110 | ac_status=$? |
| 10111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10112 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10114 | (eval $ac_try) 2>&5 |
| 10115 | ac_status=$? |
| 10116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10117 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10118 | : |
| 10119 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10120 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10121 | echo "$as_me: failed program was:" >&5 |
| 10122 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10123 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10124 | ( exit $ac_status ) |
| 10125 | ac_cv_header_stdc=no |
| 10126 | fi |
| 10127 | 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] | 10128 | fi |
| 10129 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10130 | fi |
| 10131 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 10132 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10133 | if test $ac_cv_header_stdc = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10134 | |
| 10135 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10136 | #define STDC_HEADERS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10137 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10138 | |
| 10139 | fi |
| 10140 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10141 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 10142 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 10143 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
| 10144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10145 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10146 | cat >conftest.$ac_ext <<_ACEOF |
| 10147 | /* confdefs.h. */ |
| 10148 | _ACEOF |
| 10149 | cat confdefs.h >>conftest.$ac_ext |
| 10150 | cat >>conftest.$ac_ext <<_ACEOF |
| 10151 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10152 | #include <sys/types.h> |
| 10153 | #include <sys/wait.h> |
| 10154 | #ifndef WEXITSTATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10155 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10156 | #endif |
| 10157 | #ifndef WIFEXITED |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10158 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10159 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10160 | |
| 10161 | int |
| 10162 | main () |
| 10163 | { |
| 10164 | int s; |
| 10165 | wait (&s); |
| 10166 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 10167 | ; |
| 10168 | return 0; |
| 10169 | } |
| 10170 | _ACEOF |
| 10171 | rm -f conftest.$ac_objext |
| 10172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10173 | (eval $ac_compile) 2>conftest.er1 |
| 10174 | ac_status=$? |
| 10175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10176 | rm -f conftest.er1 |
| 10177 | cat conftest.err >&5 |
| 10178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10179 | (exit $ac_status); } && |
| 10180 | { ac_try='test -z "$ac_c_werror_flag" |
| 10181 | || test ! -s conftest.err' |
| 10182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10183 | (eval $ac_try) 2>&5 |
| 10184 | ac_status=$? |
| 10185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10186 | (exit $ac_status); }; } && |
| 10187 | { ac_try='test -s conftest.$ac_objext' |
| 10188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10189 | (eval $ac_try) 2>&5 |
| 10190 | ac_status=$? |
| 10191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10192 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10193 | ac_cv_header_sys_wait_h=yes |
| 10194 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10195 | echo "$as_me: failed program was:" >&5 |
| 10196 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10197 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10198 | ac_cv_header_sys_wait_h=no |
| 10199 | fi |
| 10200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10201 | fi |
| 10202 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
| 10203 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10204 | if test $ac_cv_header_sys_wait_h = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10205 | |
| 10206 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10207 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10208 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10209 | |
| 10210 | fi |
| 10211 | |
| 10212 | |
| 10213 | if test $ac_cv_header_sys_wait_h = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10214 | echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 |
| 10215 | echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6 |
| 10216 | cat >conftest.$ac_ext <<_ACEOF |
| 10217 | /* confdefs.h. */ |
| 10218 | _ACEOF |
| 10219 | cat confdefs.h >>conftest.$ac_ext |
| 10220 | cat >>conftest.$ac_ext <<_ACEOF |
| 10221 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10222 | #include <sys/wait.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10223 | int |
| 10224 | main () |
| 10225 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10226 | union wait xx, yy; xx = yy |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10227 | ; |
| 10228 | return 0; |
| 10229 | } |
| 10230 | _ACEOF |
| 10231 | rm -f conftest.$ac_objext |
| 10232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10233 | (eval $ac_compile) 2>conftest.er1 |
| 10234 | ac_status=$? |
| 10235 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10236 | rm -f conftest.er1 |
| 10237 | cat conftest.err >&5 |
| 10238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10239 | (exit $ac_status); } && |
| 10240 | { ac_try='test -z "$ac_c_werror_flag" |
| 10241 | || test ! -s conftest.err' |
| 10242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10243 | (eval $ac_try) 2>&5 |
| 10244 | ac_status=$? |
| 10245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10246 | (exit $ac_status); }; } && |
| 10247 | { ac_try='test -s conftest.$ac_objext' |
| 10248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10249 | (eval $ac_try) 2>&5 |
| 10250 | ac_status=$? |
| 10251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10252 | (exit $ac_status); }; }; then |
| 10253 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10254 | echo "${ECHO_T}yes" >&6 |
| 10255 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10256 | #define HAVE_SYS_WAIT_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10257 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10258 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10259 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10260 | #define HAVE_UNION_WAIT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10261 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10262 | |
| 10263 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10264 | echo "$as_me: failed program was:" >&5 |
| 10265 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10266 | |
| 10267 | echo "$as_me:$LINENO: result: no" >&5 |
| 10268 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10269 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10271 | fi |
| 10272 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10273 | |
| 10274 | |
| 10275 | |
| 10276 | |
| 10277 | |
| 10278 | |
| 10279 | |
| 10280 | |
| 10281 | |
| 10282 | |
| 10283 | |
| 10284 | |
| 10285 | |
| 10286 | |
| 10287 | |
| 10288 | |
| 10289 | |
| 10290 | |
| 10291 | |
| 10292 | |
| 10293 | |
| 10294 | |
| 10295 | |
| 10296 | |
| 10297 | |
| 10298 | |
| 10299 | |
| 10300 | |
| 10301 | |
| 10302 | |
| 10303 | |
| 10304 | |
| 10305 | |
| 10306 | |
| 10307 | |
| 10308 | |
| 10309 | |
| 10310 | |
| 10311 | |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10312 | |
Bram Moolenaar | e74455a | 2007-11-04 14:36:18 +0000 | [diff] [blame] | 10313 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10314 | 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] | 10315 | 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] | 10316 | iconv.h langinfo.h unistd.h stropts.h errno.h \ |
| 10317 | sys/resource.h sys/systeminfo.h locale.h \ |
| 10318 | sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ |
| 10319 | 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] | 10320 | libgen.h util/debug.h util/msg18n.h frame.h \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 10321 | 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] | 10322 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10323 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10324 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10325 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10326 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10327 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10329 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10330 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10331 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10332 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10333 | # Is the header compilable? |
| 10334 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10335 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10336 | cat >conftest.$ac_ext <<_ACEOF |
| 10337 | /* confdefs.h. */ |
| 10338 | _ACEOF |
| 10339 | cat confdefs.h >>conftest.$ac_ext |
| 10340 | cat >>conftest.$ac_ext <<_ACEOF |
| 10341 | /* end confdefs.h. */ |
| 10342 | $ac_includes_default |
| 10343 | #include <$ac_header> |
| 10344 | _ACEOF |
| 10345 | rm -f conftest.$ac_objext |
| 10346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10347 | (eval $ac_compile) 2>conftest.er1 |
| 10348 | ac_status=$? |
| 10349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10350 | rm -f conftest.er1 |
| 10351 | cat conftest.err >&5 |
| 10352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10353 | (exit $ac_status); } && |
| 10354 | { ac_try='test -z "$ac_c_werror_flag" |
| 10355 | || test ! -s conftest.err' |
| 10356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10357 | (eval $ac_try) 2>&5 |
| 10358 | ac_status=$? |
| 10359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10360 | (exit $ac_status); }; } && |
| 10361 | { ac_try='test -s conftest.$ac_objext' |
| 10362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10363 | (eval $ac_try) 2>&5 |
| 10364 | ac_status=$? |
| 10365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10366 | (exit $ac_status); }; }; then |
| 10367 | ac_header_compiler=yes |
| 10368 | else |
| 10369 | echo "$as_me: failed program was:" >&5 |
| 10370 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10371 | |
| 10372 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10373 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10375 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10376 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10377 | |
| 10378 | # Is the header present? |
| 10379 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10380 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10381 | cat >conftest.$ac_ext <<_ACEOF |
| 10382 | /* confdefs.h. */ |
| 10383 | _ACEOF |
| 10384 | cat confdefs.h >>conftest.$ac_ext |
| 10385 | cat >>conftest.$ac_ext <<_ACEOF |
| 10386 | /* end confdefs.h. */ |
| 10387 | #include <$ac_header> |
| 10388 | _ACEOF |
| 10389 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10390 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10391 | ac_status=$? |
| 10392 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10393 | rm -f conftest.er1 |
| 10394 | cat conftest.err >&5 |
| 10395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10396 | (exit $ac_status); } >/dev/null; then |
| 10397 | if test -s conftest.err; then |
| 10398 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10399 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10400 | else |
| 10401 | ac_cpp_err= |
| 10402 | fi |
| 10403 | else |
| 10404 | ac_cpp_err=yes |
| 10405 | fi |
| 10406 | if test -z "$ac_cpp_err"; then |
| 10407 | ac_header_preproc=yes |
| 10408 | else |
| 10409 | echo "$as_me: failed program was:" >&5 |
| 10410 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10411 | |
| 10412 | ac_header_preproc=no |
| 10413 | fi |
| 10414 | rm -f conftest.err conftest.$ac_ext |
| 10415 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10416 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10417 | |
| 10418 | # So? What about this header? |
| 10419 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10420 | yes:no: ) |
| 10421 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10422 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10423 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10424 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10425 | ac_header_preproc=yes |
| 10426 | ;; |
| 10427 | no:yes:* ) |
| 10428 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10429 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10430 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10431 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10432 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10433 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10434 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10435 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10436 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10437 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10438 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10439 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10440 | ( |
| 10441 | cat <<\_ASBOX |
| 10442 | ## ------------------------------------------ ## |
| 10443 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10444 | ## ------------------------------------------ ## |
| 10445 | _ASBOX |
| 10446 | ) | |
| 10447 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10448 | ;; |
| 10449 | esac |
| 10450 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10452 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10454 | else |
| 10455 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10456 | fi |
| 10457 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10458 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10459 | |
| 10460 | fi |
| 10461 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10462 | cat >>confdefs.h <<_ACEOF |
| 10463 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10464 | _ACEOF |
| 10465 | |
| 10466 | fi |
| 10467 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10468 | done |
| 10469 | |
| 10470 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10471 | echo "$as_me:$LINENO: checking for pthread_np.h" >&5 |
| 10472 | echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6 |
| 10473 | cat >conftest.$ac_ext <<_ACEOF |
| 10474 | /* confdefs.h. */ |
| 10475 | _ACEOF |
| 10476 | cat confdefs.h >>conftest.$ac_ext |
| 10477 | cat >>conftest.$ac_ext <<_ACEOF |
| 10478 | /* end confdefs.h. */ |
| 10479 | |
| 10480 | #include <pthread.h> |
| 10481 | #include <pthread_np.h> |
| 10482 | int |
| 10483 | main () |
| 10484 | { |
| 10485 | int i; i = 0; |
| 10486 | ; |
| 10487 | return 0; |
| 10488 | } |
| 10489 | _ACEOF |
| 10490 | rm -f conftest.$ac_objext |
| 10491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10492 | (eval $ac_compile) 2>conftest.er1 |
| 10493 | ac_status=$? |
| 10494 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10495 | rm -f conftest.er1 |
| 10496 | cat conftest.err >&5 |
| 10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10498 | (exit $ac_status); } && |
| 10499 | { ac_try='test -z "$ac_c_werror_flag" |
| 10500 | || test ! -s conftest.err' |
| 10501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10502 | (eval $ac_try) 2>&5 |
| 10503 | ac_status=$? |
| 10504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10505 | (exit $ac_status); }; } && |
| 10506 | { ac_try='test -s conftest.$ac_objext' |
| 10507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10508 | (eval $ac_try) 2>&5 |
| 10509 | ac_status=$? |
| 10510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10511 | (exit $ac_status); }; }; then |
| 10512 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10513 | echo "${ECHO_T}yes" >&6 |
| 10514 | cat >>confdefs.h <<\_ACEOF |
| 10515 | #define HAVE_PTHREAD_NP_H 1 |
| 10516 | _ACEOF |
| 10517 | |
| 10518 | else |
| 10519 | echo "$as_me: failed program was:" >&5 |
| 10520 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10521 | |
| 10522 | echo "$as_me:$LINENO: result: no" >&5 |
| 10523 | echo "${ECHO_T}no" >&6 |
| 10524 | fi |
| 10525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10526 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10527 | |
| 10528 | for ac_header in strings.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10529 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10530 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10531 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10532 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10533 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10534 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10536 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10538 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10539 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10540 | # Is the header compilable? |
| 10541 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10542 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10543 | cat >conftest.$ac_ext <<_ACEOF |
| 10544 | /* confdefs.h. */ |
| 10545 | _ACEOF |
| 10546 | cat confdefs.h >>conftest.$ac_ext |
| 10547 | cat >>conftest.$ac_ext <<_ACEOF |
| 10548 | /* end confdefs.h. */ |
| 10549 | $ac_includes_default |
| 10550 | #include <$ac_header> |
| 10551 | _ACEOF |
| 10552 | rm -f conftest.$ac_objext |
| 10553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10554 | (eval $ac_compile) 2>conftest.er1 |
| 10555 | ac_status=$? |
| 10556 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10557 | rm -f conftest.er1 |
| 10558 | cat conftest.err >&5 |
| 10559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10560 | (exit $ac_status); } && |
| 10561 | { ac_try='test -z "$ac_c_werror_flag" |
| 10562 | || test ! -s conftest.err' |
| 10563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10564 | (eval $ac_try) 2>&5 |
| 10565 | ac_status=$? |
| 10566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10567 | (exit $ac_status); }; } && |
| 10568 | { ac_try='test -s conftest.$ac_objext' |
| 10569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10570 | (eval $ac_try) 2>&5 |
| 10571 | ac_status=$? |
| 10572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10573 | (exit $ac_status); }; }; then |
| 10574 | ac_header_compiler=yes |
| 10575 | else |
| 10576 | echo "$as_me: failed program was:" >&5 |
| 10577 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10578 | |
| 10579 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10580 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10582 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10583 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10584 | |
| 10585 | # Is the header present? |
| 10586 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10587 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10588 | cat >conftest.$ac_ext <<_ACEOF |
| 10589 | /* confdefs.h. */ |
| 10590 | _ACEOF |
| 10591 | cat confdefs.h >>conftest.$ac_ext |
| 10592 | cat >>conftest.$ac_ext <<_ACEOF |
| 10593 | /* end confdefs.h. */ |
| 10594 | #include <$ac_header> |
| 10595 | _ACEOF |
| 10596 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10597 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10598 | ac_status=$? |
| 10599 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10600 | rm -f conftest.er1 |
| 10601 | cat conftest.err >&5 |
| 10602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10603 | (exit $ac_status); } >/dev/null; then |
| 10604 | if test -s conftest.err; then |
| 10605 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10606 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10607 | else |
| 10608 | ac_cpp_err= |
| 10609 | fi |
| 10610 | else |
| 10611 | ac_cpp_err=yes |
| 10612 | fi |
| 10613 | if test -z "$ac_cpp_err"; then |
| 10614 | ac_header_preproc=yes |
| 10615 | else |
| 10616 | echo "$as_me: failed program was:" >&5 |
| 10617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10618 | |
| 10619 | ac_header_preproc=no |
| 10620 | fi |
| 10621 | rm -f conftest.err conftest.$ac_ext |
| 10622 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10623 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10624 | |
| 10625 | # So? What about this header? |
| 10626 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10627 | yes:no: ) |
| 10628 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10629 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10630 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10631 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10632 | ac_header_preproc=yes |
| 10633 | ;; |
| 10634 | no:yes:* ) |
| 10635 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10636 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10637 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10638 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10639 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10640 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10641 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10642 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10643 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10644 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10645 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10646 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10647 | ( |
| 10648 | cat <<\_ASBOX |
| 10649 | ## ------------------------------------------ ## |
| 10650 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10651 | ## ------------------------------------------ ## |
| 10652 | _ASBOX |
| 10653 | ) | |
| 10654 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10655 | ;; |
| 10656 | esac |
| 10657 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10658 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10659 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10661 | else |
| 10662 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10663 | fi |
| 10664 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10665 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10666 | |
| 10667 | fi |
| 10668 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10669 | cat >>confdefs.h <<_ACEOF |
| 10670 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10671 | _ACEOF |
| 10672 | |
| 10673 | fi |
| 10674 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10675 | done |
| 10676 | |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 10677 | if test "x$MACOSX" = "xyes"; then |
| 10678 | cat >>confdefs.h <<\_ACEOF |
| 10679 | #define NO_STRINGS_WITH_STRING_H 1 |
| 10680 | _ACEOF |
| 10681 | |
| 10682 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10683 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10684 | echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 |
| 10685 | 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] | 10686 | cppflags_save=$CPPFLAGS |
| 10687 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10688 | cat >conftest.$ac_ext <<_ACEOF |
| 10689 | /* confdefs.h. */ |
| 10690 | _ACEOF |
| 10691 | cat confdefs.h >>conftest.$ac_ext |
| 10692 | cat >>conftest.$ac_ext <<_ACEOF |
| 10693 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10694 | |
| 10695 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 10696 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 10697 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 10698 | #endif |
| 10699 | #ifdef HAVE_XM_XM_H |
| 10700 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 10701 | #endif |
| 10702 | #ifdef HAVE_STRING_H |
| 10703 | # include <string.h> |
| 10704 | #endif |
| 10705 | #if defined(HAVE_STRINGS_H) |
| 10706 | # include <strings.h> |
| 10707 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10708 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10709 | int |
| 10710 | main () |
| 10711 | { |
| 10712 | int i; i = 0; |
| 10713 | ; |
| 10714 | return 0; |
| 10715 | } |
| 10716 | _ACEOF |
| 10717 | rm -f conftest.$ac_objext |
| 10718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10719 | (eval $ac_compile) 2>conftest.er1 |
| 10720 | ac_status=$? |
| 10721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10722 | rm -f conftest.er1 |
| 10723 | cat conftest.err >&5 |
| 10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10725 | (exit $ac_status); } && |
| 10726 | { ac_try='test -z "$ac_c_werror_flag" |
| 10727 | || test ! -s conftest.err' |
| 10728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10729 | (eval $ac_try) 2>&5 |
| 10730 | ac_status=$? |
| 10731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10732 | (exit $ac_status); }; } && |
| 10733 | { ac_try='test -s conftest.$ac_objext' |
| 10734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10735 | (eval $ac_try) 2>&5 |
| 10736 | ac_status=$? |
| 10737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10738 | (exit $ac_status); }; }; then |
| 10739 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10740 | echo "${ECHO_T}yes" >&6 |
| 10741 | else |
| 10742 | echo "$as_me: failed program was:" >&5 |
| 10743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10744 | |
| 10745 | cat >>confdefs.h <<\_ACEOF |
| 10746 | #define NO_STRINGS_WITH_STRING_H 1 |
| 10747 | _ACEOF |
| 10748 | |
| 10749 | echo "$as_me:$LINENO: result: no" >&5 |
| 10750 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10751 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10753 | CPPFLAGS=$cppflags_save |
Bram Moolenaar | 9372a11 | 2005-12-06 19:59:18 +0000 | [diff] [blame] | 10754 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10755 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10756 | if test $ac_cv_c_compiler_gnu = yes; then |
| 10757 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
| 10758 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 |
| 10759 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
| 10760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10761 | else |
| 10762 | ac_pattern="Autoconf.*'x'" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10763 | cat >conftest.$ac_ext <<_ACEOF |
| 10764 | /* confdefs.h. */ |
| 10765 | _ACEOF |
| 10766 | cat confdefs.h >>conftest.$ac_ext |
| 10767 | cat >>conftest.$ac_ext <<_ACEOF |
| 10768 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10769 | #include <sgtty.h> |
| 10770 | Autoconf TIOCGETP |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10771 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10772 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10773 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10774 | ac_cv_prog_gcc_traditional=yes |
| 10775 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10776 | ac_cv_prog_gcc_traditional=no |
| 10777 | fi |
| 10778 | rm -f conftest* |
| 10779 | |
| 10780 | |
| 10781 | if test $ac_cv_prog_gcc_traditional = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10782 | cat >conftest.$ac_ext <<_ACEOF |
| 10783 | /* confdefs.h. */ |
| 10784 | _ACEOF |
| 10785 | cat confdefs.h >>conftest.$ac_ext |
| 10786 | cat >>conftest.$ac_ext <<_ACEOF |
| 10787 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10788 | #include <termio.h> |
| 10789 | Autoconf TCGETA |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10790 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10791 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10792 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10793 | ac_cv_prog_gcc_traditional=yes |
| 10794 | fi |
| 10795 | rm -f conftest* |
| 10796 | |
| 10797 | fi |
| 10798 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10799 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
| 10800 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10801 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 10802 | CC="$CC -traditional" |
| 10803 | fi |
| 10804 | fi |
| 10805 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10806 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 10807 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 10808 | if test "${ac_cv_c_const+set}" = set; then |
| 10809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10810 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10811 | cat >conftest.$ac_ext <<_ACEOF |
| 10812 | /* confdefs.h. */ |
| 10813 | _ACEOF |
| 10814 | cat confdefs.h >>conftest.$ac_ext |
| 10815 | cat >>conftest.$ac_ext <<_ACEOF |
| 10816 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10817 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10818 | int |
| 10819 | main () |
| 10820 | { |
| 10821 | /* FIXME: Include the comments suggested by Paul. */ |
| 10822 | #ifndef __cplusplus |
| 10823 | /* Ultrix mips cc rejects this. */ |
| 10824 | typedef int charset[2]; |
| 10825 | const charset x; |
| 10826 | /* SunOS 4.1.1 cc rejects this. */ |
| 10827 | char const *const *ccp; |
| 10828 | char **p; |
| 10829 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 10830 | struct point {int x, y;}; |
| 10831 | static struct point const zero = {0,0}; |
| 10832 | /* AIX XL C 1.02.0.0 rejects this. |
| 10833 | It does not let you subtract one const X* pointer from another in |
| 10834 | an arm of an if-expression whose if-part is not a constant |
| 10835 | expression */ |
| 10836 | const char *g = "string"; |
| 10837 | ccp = &g + (g ? g-g : 0); |
| 10838 | /* HPUX 7.0 cc rejects these. */ |
| 10839 | ++ccp; |
| 10840 | p = (char**) ccp; |
| 10841 | ccp = (char const *const *) p; |
| 10842 | { /* SCO 3.2v4 cc rejects this. */ |
| 10843 | char *t; |
| 10844 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10845 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10846 | *t++ = 0; |
| 10847 | } |
| 10848 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 10849 | int x[] = {25, 17}; |
| 10850 | const int *foo = &x[0]; |
| 10851 | ++foo; |
| 10852 | } |
| 10853 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 10854 | typedef const int *iptr; |
| 10855 | iptr p = 0; |
| 10856 | ++p; |
| 10857 | } |
| 10858 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 10859 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 10860 | struct s { int j; const int *ap[3]; }; |
| 10861 | struct s *b; b->j = 5; |
| 10862 | } |
| 10863 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 10864 | const int foo = 10; |
| 10865 | } |
| 10866 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10867 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10868 | ; |
| 10869 | return 0; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10870 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10871 | _ACEOF |
| 10872 | rm -f conftest.$ac_objext |
| 10873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10874 | (eval $ac_compile) 2>conftest.er1 |
| 10875 | ac_status=$? |
| 10876 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10877 | rm -f conftest.er1 |
| 10878 | cat conftest.err >&5 |
| 10879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10880 | (exit $ac_status); } && |
| 10881 | { ac_try='test -z "$ac_c_werror_flag" |
| 10882 | || test ! -s conftest.err' |
| 10883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10884 | (eval $ac_try) 2>&5 |
| 10885 | ac_status=$? |
| 10886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10887 | (exit $ac_status); }; } && |
| 10888 | { ac_try='test -s conftest.$ac_objext' |
| 10889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10890 | (eval $ac_try) 2>&5 |
| 10891 | ac_status=$? |
| 10892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10893 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10894 | ac_cv_c_const=yes |
| 10895 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10896 | echo "$as_me: failed program was:" >&5 |
| 10897 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10898 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10899 | ac_cv_c_const=no |
| 10900 | fi |
| 10901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10902 | fi |
| 10903 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 10904 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10905 | if test $ac_cv_c_const = no; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10906 | |
| 10907 | cat >>confdefs.h <<\_ACEOF |
| 10908 | #define const |
| 10909 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10910 | |
| 10911 | fi |
| 10912 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10913 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 10914 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 10915 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 10916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10917 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10918 | cat >conftest.$ac_ext <<_ACEOF |
| 10919 | /* confdefs.h. */ |
| 10920 | _ACEOF |
| 10921 | cat confdefs.h >>conftest.$ac_ext |
| 10922 | cat >>conftest.$ac_ext <<_ACEOF |
| 10923 | /* end confdefs.h. */ |
| 10924 | $ac_includes_default |
| 10925 | int |
| 10926 | main () |
| 10927 | { |
| 10928 | if ((mode_t *) 0) |
| 10929 | return 0; |
| 10930 | if (sizeof (mode_t)) |
| 10931 | return 0; |
| 10932 | ; |
| 10933 | return 0; |
| 10934 | } |
| 10935 | _ACEOF |
| 10936 | rm -f conftest.$ac_objext |
| 10937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10938 | (eval $ac_compile) 2>conftest.er1 |
| 10939 | ac_status=$? |
| 10940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10941 | rm -f conftest.er1 |
| 10942 | cat conftest.err >&5 |
| 10943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10944 | (exit $ac_status); } && |
| 10945 | { ac_try='test -z "$ac_c_werror_flag" |
| 10946 | || test ! -s conftest.err' |
| 10947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10948 | (eval $ac_try) 2>&5 |
| 10949 | ac_status=$? |
| 10950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10951 | (exit $ac_status); }; } && |
| 10952 | { ac_try='test -s conftest.$ac_objext' |
| 10953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10954 | (eval $ac_try) 2>&5 |
| 10955 | ac_status=$? |
| 10956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10957 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10958 | ac_cv_type_mode_t=yes |
| 10959 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10960 | echo "$as_me: failed program was:" >&5 |
| 10961 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10962 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10963 | ac_cv_type_mode_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10964 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10966 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10967 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 10968 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 10969 | if test $ac_cv_type_mode_t = yes; then |
| 10970 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 10971 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 10972 | |
| 10973 | cat >>confdefs.h <<_ACEOF |
| 10974 | #define mode_t int |
| 10975 | _ACEOF |
| 10976 | |
| 10977 | fi |
| 10978 | |
| 10979 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 10980 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 10981 | if test "${ac_cv_type_off_t+set}" = set; then |
| 10982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10983 | else |
| 10984 | cat >conftest.$ac_ext <<_ACEOF |
| 10985 | /* confdefs.h. */ |
| 10986 | _ACEOF |
| 10987 | cat confdefs.h >>conftest.$ac_ext |
| 10988 | cat >>conftest.$ac_ext <<_ACEOF |
| 10989 | /* end confdefs.h. */ |
| 10990 | $ac_includes_default |
| 10991 | int |
| 10992 | main () |
| 10993 | { |
| 10994 | if ((off_t *) 0) |
| 10995 | return 0; |
| 10996 | if (sizeof (off_t)) |
| 10997 | return 0; |
| 10998 | ; |
| 10999 | return 0; |
| 11000 | } |
| 11001 | _ACEOF |
| 11002 | rm -f conftest.$ac_objext |
| 11003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11004 | (eval $ac_compile) 2>conftest.er1 |
| 11005 | ac_status=$? |
| 11006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11007 | rm -f conftest.er1 |
| 11008 | cat conftest.err >&5 |
| 11009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11010 | (exit $ac_status); } && |
| 11011 | { ac_try='test -z "$ac_c_werror_flag" |
| 11012 | || test ! -s conftest.err' |
| 11013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11014 | (eval $ac_try) 2>&5 |
| 11015 | ac_status=$? |
| 11016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11017 | (exit $ac_status); }; } && |
| 11018 | { ac_try='test -s conftest.$ac_objext' |
| 11019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11020 | (eval $ac_try) 2>&5 |
| 11021 | ac_status=$? |
| 11022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11023 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11024 | ac_cv_type_off_t=yes |
| 11025 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11026 | echo "$as_me: failed program was:" >&5 |
| 11027 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11028 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11029 | ac_cv_type_off_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11030 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11032 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11033 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 11034 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 11035 | if test $ac_cv_type_off_t = yes; then |
| 11036 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11037 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11038 | |
| 11039 | cat >>confdefs.h <<_ACEOF |
| 11040 | #define off_t long |
| 11041 | _ACEOF |
| 11042 | |
| 11043 | fi |
| 11044 | |
| 11045 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 11046 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 11047 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 11048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11049 | else |
| 11050 | cat >conftest.$ac_ext <<_ACEOF |
| 11051 | /* confdefs.h. */ |
| 11052 | _ACEOF |
| 11053 | cat confdefs.h >>conftest.$ac_ext |
| 11054 | cat >>conftest.$ac_ext <<_ACEOF |
| 11055 | /* end confdefs.h. */ |
| 11056 | $ac_includes_default |
| 11057 | int |
| 11058 | main () |
| 11059 | { |
| 11060 | if ((pid_t *) 0) |
| 11061 | return 0; |
| 11062 | if (sizeof (pid_t)) |
| 11063 | return 0; |
| 11064 | ; |
| 11065 | return 0; |
| 11066 | } |
| 11067 | _ACEOF |
| 11068 | rm -f conftest.$ac_objext |
| 11069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11070 | (eval $ac_compile) 2>conftest.er1 |
| 11071 | ac_status=$? |
| 11072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11073 | rm -f conftest.er1 |
| 11074 | cat conftest.err >&5 |
| 11075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11076 | (exit $ac_status); } && |
| 11077 | { ac_try='test -z "$ac_c_werror_flag" |
| 11078 | || test ! -s conftest.err' |
| 11079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11080 | (eval $ac_try) 2>&5 |
| 11081 | ac_status=$? |
| 11082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11083 | (exit $ac_status); }; } && |
| 11084 | { ac_try='test -s conftest.$ac_objext' |
| 11085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11086 | (eval $ac_try) 2>&5 |
| 11087 | ac_status=$? |
| 11088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11089 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11090 | ac_cv_type_pid_t=yes |
| 11091 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11092 | echo "$as_me: failed program was:" >&5 |
| 11093 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11094 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11095 | ac_cv_type_pid_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11096 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11098 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11099 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 11100 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 11101 | if test $ac_cv_type_pid_t = yes; then |
| 11102 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11103 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11104 | |
| 11105 | cat >>confdefs.h <<_ACEOF |
| 11106 | #define pid_t int |
| 11107 | _ACEOF |
| 11108 | |
| 11109 | fi |
| 11110 | |
| 11111 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 11112 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 11113 | if test "${ac_cv_type_size_t+set}" = set; then |
| 11114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11115 | else |
| 11116 | cat >conftest.$ac_ext <<_ACEOF |
| 11117 | /* confdefs.h. */ |
| 11118 | _ACEOF |
| 11119 | cat confdefs.h >>conftest.$ac_ext |
| 11120 | cat >>conftest.$ac_ext <<_ACEOF |
| 11121 | /* end confdefs.h. */ |
| 11122 | $ac_includes_default |
| 11123 | int |
| 11124 | main () |
| 11125 | { |
| 11126 | if ((size_t *) 0) |
| 11127 | return 0; |
| 11128 | if (sizeof (size_t)) |
| 11129 | return 0; |
| 11130 | ; |
| 11131 | return 0; |
| 11132 | } |
| 11133 | _ACEOF |
| 11134 | rm -f conftest.$ac_objext |
| 11135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11136 | (eval $ac_compile) 2>conftest.er1 |
| 11137 | ac_status=$? |
| 11138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11139 | rm -f conftest.er1 |
| 11140 | cat conftest.err >&5 |
| 11141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11142 | (exit $ac_status); } && |
| 11143 | { ac_try='test -z "$ac_c_werror_flag" |
| 11144 | || test ! -s conftest.err' |
| 11145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11146 | (eval $ac_try) 2>&5 |
| 11147 | ac_status=$? |
| 11148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11149 | (exit $ac_status); }; } && |
| 11150 | { ac_try='test -s conftest.$ac_objext' |
| 11151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11152 | (eval $ac_try) 2>&5 |
| 11153 | ac_status=$? |
| 11154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11155 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11156 | ac_cv_type_size_t=yes |
| 11157 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11158 | echo "$as_me: failed program was:" >&5 |
| 11159 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11160 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11161 | ac_cv_type_size_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11162 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11164 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11165 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 11166 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 11167 | if test $ac_cv_type_size_t = yes; then |
| 11168 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11169 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11170 | |
| 11171 | cat >>confdefs.h <<_ACEOF |
| 11172 | #define size_t unsigned |
| 11173 | _ACEOF |
| 11174 | |
| 11175 | fi |
| 11176 | |
| 11177 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 11178 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 11179 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 11180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11181 | else |
| 11182 | cat >conftest.$ac_ext <<_ACEOF |
| 11183 | /* confdefs.h. */ |
| 11184 | _ACEOF |
| 11185 | cat confdefs.h >>conftest.$ac_ext |
| 11186 | cat >>conftest.$ac_ext <<_ACEOF |
| 11187 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11188 | #include <sys/types.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11189 | |
| 11190 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11191 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11192 | $EGREP "uid_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11193 | ac_cv_type_uid_t=yes |
| 11194 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11195 | ac_cv_type_uid_t=no |
| 11196 | fi |
| 11197 | rm -f conftest* |
| 11198 | |
| 11199 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11200 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 11201 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11202 | if test $ac_cv_type_uid_t = no; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11203 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11204 | cat >>confdefs.h <<\_ACEOF |
| 11205 | #define uid_t int |
| 11206 | _ACEOF |
| 11207 | |
| 11208 | |
| 11209 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11210 | #define gid_t int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11211 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11212 | |
| 11213 | fi |
| 11214 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11215 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 11216 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 11217 | if test "${ac_cv_header_time+set}" = set; then |
| 11218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11219 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11220 | cat >conftest.$ac_ext <<_ACEOF |
| 11221 | /* confdefs.h. */ |
| 11222 | _ACEOF |
| 11223 | cat confdefs.h >>conftest.$ac_ext |
| 11224 | cat >>conftest.$ac_ext <<_ACEOF |
| 11225 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11226 | #include <sys/types.h> |
| 11227 | #include <sys/time.h> |
| 11228 | #include <time.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11229 | |
| 11230 | int |
| 11231 | main () |
| 11232 | { |
| 11233 | if ((struct tm *) 0) |
| 11234 | return 0; |
| 11235 | ; |
| 11236 | return 0; |
| 11237 | } |
| 11238 | _ACEOF |
| 11239 | rm -f conftest.$ac_objext |
| 11240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11241 | (eval $ac_compile) 2>conftest.er1 |
| 11242 | ac_status=$? |
| 11243 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11244 | rm -f conftest.er1 |
| 11245 | cat conftest.err >&5 |
| 11246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11247 | (exit $ac_status); } && |
| 11248 | { ac_try='test -z "$ac_c_werror_flag" |
| 11249 | || test ! -s conftest.err' |
| 11250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11251 | (eval $ac_try) 2>&5 |
| 11252 | ac_status=$? |
| 11253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11254 | (exit $ac_status); }; } && |
| 11255 | { ac_try='test -s conftest.$ac_objext' |
| 11256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11257 | (eval $ac_try) 2>&5 |
| 11258 | ac_status=$? |
| 11259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11260 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11261 | ac_cv_header_time=yes |
| 11262 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11263 | echo "$as_me: failed program was:" >&5 |
| 11264 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11265 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11266 | ac_cv_header_time=no |
| 11267 | fi |
| 11268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11269 | fi |
| 11270 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 11271 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11272 | if test $ac_cv_header_time = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11273 | |
| 11274 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11275 | #define TIME_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11276 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11277 | |
| 11278 | fi |
| 11279 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11280 | echo "$as_me:$LINENO: checking for ino_t" >&5 |
| 11281 | echo $ECHO_N "checking for ino_t... $ECHO_C" >&6 |
| 11282 | if test "${ac_cv_type_ino_t+set}" = set; then |
| 11283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11284 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11285 | cat >conftest.$ac_ext <<_ACEOF |
| 11286 | /* confdefs.h. */ |
| 11287 | _ACEOF |
| 11288 | cat confdefs.h >>conftest.$ac_ext |
| 11289 | cat >>conftest.$ac_ext <<_ACEOF |
| 11290 | /* end confdefs.h. */ |
| 11291 | $ac_includes_default |
| 11292 | int |
| 11293 | main () |
| 11294 | { |
| 11295 | if ((ino_t *) 0) |
| 11296 | return 0; |
| 11297 | if (sizeof (ino_t)) |
| 11298 | return 0; |
| 11299 | ; |
| 11300 | return 0; |
| 11301 | } |
| 11302 | _ACEOF |
| 11303 | rm -f conftest.$ac_objext |
| 11304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11305 | (eval $ac_compile) 2>conftest.er1 |
| 11306 | ac_status=$? |
| 11307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11308 | rm -f conftest.er1 |
| 11309 | cat conftest.err >&5 |
| 11310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11311 | (exit $ac_status); } && |
| 11312 | { ac_try='test -z "$ac_c_werror_flag" |
| 11313 | || test ! -s conftest.err' |
| 11314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11315 | (eval $ac_try) 2>&5 |
| 11316 | ac_status=$? |
| 11317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11318 | (exit $ac_status); }; } && |
| 11319 | { ac_try='test -s conftest.$ac_objext' |
| 11320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11321 | (eval $ac_try) 2>&5 |
| 11322 | ac_status=$? |
| 11323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11324 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11325 | ac_cv_type_ino_t=yes |
| 11326 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11327 | echo "$as_me: failed program was:" >&5 |
| 11328 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11329 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11330 | ac_cv_type_ino_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11331 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11333 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11334 | echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 |
| 11335 | echo "${ECHO_T}$ac_cv_type_ino_t" >&6 |
| 11336 | if test $ac_cv_type_ino_t = yes; then |
| 11337 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11338 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11339 | |
| 11340 | cat >>confdefs.h <<_ACEOF |
| 11341 | #define ino_t long |
| 11342 | _ACEOF |
| 11343 | |
| 11344 | fi |
| 11345 | |
| 11346 | echo "$as_me:$LINENO: checking for dev_t" >&5 |
| 11347 | echo $ECHO_N "checking for dev_t... $ECHO_C" >&6 |
| 11348 | if test "${ac_cv_type_dev_t+set}" = set; then |
| 11349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11350 | else |
| 11351 | cat >conftest.$ac_ext <<_ACEOF |
| 11352 | /* confdefs.h. */ |
| 11353 | _ACEOF |
| 11354 | cat confdefs.h >>conftest.$ac_ext |
| 11355 | cat >>conftest.$ac_ext <<_ACEOF |
| 11356 | /* end confdefs.h. */ |
| 11357 | $ac_includes_default |
| 11358 | int |
| 11359 | main () |
| 11360 | { |
| 11361 | if ((dev_t *) 0) |
| 11362 | return 0; |
| 11363 | if (sizeof (dev_t)) |
| 11364 | return 0; |
| 11365 | ; |
| 11366 | return 0; |
| 11367 | } |
| 11368 | _ACEOF |
| 11369 | rm -f conftest.$ac_objext |
| 11370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11371 | (eval $ac_compile) 2>conftest.er1 |
| 11372 | ac_status=$? |
| 11373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11374 | rm -f conftest.er1 |
| 11375 | cat conftest.err >&5 |
| 11376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11377 | (exit $ac_status); } && |
| 11378 | { ac_try='test -z "$ac_c_werror_flag" |
| 11379 | || test ! -s conftest.err' |
| 11380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11381 | (eval $ac_try) 2>&5 |
| 11382 | ac_status=$? |
| 11383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11384 | (exit $ac_status); }; } && |
| 11385 | { ac_try='test -s conftest.$ac_objext' |
| 11386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11387 | (eval $ac_try) 2>&5 |
| 11388 | ac_status=$? |
| 11389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11390 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11391 | ac_cv_type_dev_t=yes |
| 11392 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11393 | echo "$as_me: failed program was:" >&5 |
| 11394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11395 | |
| 11396 | ac_cv_type_dev_t=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11397 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11399 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11400 | echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 |
| 11401 | echo "${ECHO_T}$ac_cv_type_dev_t" >&6 |
| 11402 | if test $ac_cv_type_dev_t = yes; then |
| 11403 | : |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11404 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11405 | |
| 11406 | cat >>confdefs.h <<_ACEOF |
| 11407 | #define dev_t unsigned |
| 11408 | _ACEOF |
| 11409 | |
| 11410 | fi |
| 11411 | |
| 11412 | |
| 11413 | echo "$as_me:$LINENO: checking for rlim_t" >&5 |
| 11414 | echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6 |
| 11415 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
| 11416 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 |
| 11417 | echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6 |
| 11418 | else |
| 11419 | cat >conftest.$ac_ext <<_ACEOF |
| 11420 | /* confdefs.h. */ |
| 11421 | _ACEOF |
| 11422 | cat confdefs.h >>conftest.$ac_ext |
| 11423 | cat >>conftest.$ac_ext <<_ACEOF |
| 11424 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11425 | |
| 11426 | #include <sys/types.h> |
| 11427 | #if STDC_HEADERS |
| 11428 | #include <stdlib.h> |
| 11429 | #include <stddef.h> |
| 11430 | #endif |
| 11431 | #ifdef HAVE_SYS_RESOURCE_H |
| 11432 | #include <sys/resource.h> |
| 11433 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11434 | |
| 11435 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11436 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11437 | $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] | 11438 | ac_cv_type_rlim_t=yes |
| 11439 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11440 | ac_cv_type_rlim_t=no |
| 11441 | fi |
| 11442 | rm -f conftest* |
| 11443 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11444 | echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 |
| 11445 | echo "${ECHO_T}$ac_cv_type_rlim_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11446 | fi |
| 11447 | if test $ac_cv_type_rlim_t = no; then |
| 11448 | cat >> confdefs.h <<\EOF |
| 11449 | #define rlim_t unsigned long |
| 11450 | EOF |
| 11451 | fi |
| 11452 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11453 | echo "$as_me:$LINENO: checking for stack_t" >&5 |
| 11454 | echo $ECHO_N "checking for stack_t... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11455 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11456 | echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 |
| 11457 | echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11458 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11459 | cat >conftest.$ac_ext <<_ACEOF |
| 11460 | /* confdefs.h. */ |
| 11461 | _ACEOF |
| 11462 | cat confdefs.h >>conftest.$ac_ext |
| 11463 | cat >>conftest.$ac_ext <<_ACEOF |
| 11464 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11465 | |
| 11466 | #include <sys/types.h> |
| 11467 | #if STDC_HEADERS |
| 11468 | #include <stdlib.h> |
| 11469 | #include <stddef.h> |
| 11470 | #endif |
| 11471 | #include <signal.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11472 | |
| 11473 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11474 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11475 | $EGREP "stack_t" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11476 | ac_cv_type_stack_t=yes |
| 11477 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11478 | ac_cv_type_stack_t=no |
| 11479 | fi |
| 11480 | rm -f conftest* |
| 11481 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11482 | echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 |
| 11483 | echo "${ECHO_T}$ac_cv_type_stack_t" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11484 | fi |
| 11485 | if test $ac_cv_type_stack_t = no; then |
| 11486 | cat >> confdefs.h <<\EOF |
| 11487 | #define stack_t struct sigaltstack |
| 11488 | EOF |
| 11489 | fi |
| 11490 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11491 | echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 |
| 11492 | echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6 |
| 11493 | cat >conftest.$ac_ext <<_ACEOF |
| 11494 | /* confdefs.h. */ |
| 11495 | _ACEOF |
| 11496 | cat confdefs.h >>conftest.$ac_ext |
| 11497 | cat >>conftest.$ac_ext <<_ACEOF |
| 11498 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11499 | |
| 11500 | #include <sys/types.h> |
| 11501 | #if STDC_HEADERS |
| 11502 | #include <stdlib.h> |
| 11503 | #include <stddef.h> |
| 11504 | #endif |
| 11505 | #include <signal.h> |
| 11506 | #include "confdefs.h" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11507 | |
| 11508 | int |
| 11509 | main () |
| 11510 | { |
| 11511 | stack_t sigstk; sigstk.ss_base = 0; |
| 11512 | ; |
| 11513 | return 0; |
| 11514 | } |
| 11515 | _ACEOF |
| 11516 | rm -f conftest.$ac_objext |
| 11517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11518 | (eval $ac_compile) 2>conftest.er1 |
| 11519 | ac_status=$? |
| 11520 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11521 | rm -f conftest.er1 |
| 11522 | cat conftest.err >&5 |
| 11523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11524 | (exit $ac_status); } && |
| 11525 | { ac_try='test -z "$ac_c_werror_flag" |
| 11526 | || test ! -s conftest.err' |
| 11527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11528 | (eval $ac_try) 2>&5 |
| 11529 | ac_status=$? |
| 11530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11531 | (exit $ac_status); }; } && |
| 11532 | { ac_try='test -s conftest.$ac_objext' |
| 11533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11534 | (eval $ac_try) 2>&5 |
| 11535 | ac_status=$? |
| 11536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11537 | (exit $ac_status); }; }; then |
| 11538 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11539 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11540 | #define HAVE_SS_BASE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11541 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11542 | |
| 11543 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11544 | echo "$as_me: failed program was:" >&5 |
| 11545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11546 | |
| 11547 | echo "$as_me:$LINENO: result: no" >&5 |
| 11548 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11549 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11551 | |
| 11552 | olibs="$LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11553 | echo "$as_me:$LINENO: checking --with-tlib argument" >&5 |
| 11554 | echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6 |
| 11555 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11556 | # Check whether --with-tlib or --without-tlib was given. |
| 11557 | if test "${with_tlib+set}" = set; then |
| 11558 | withval="$with_tlib" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11559 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11560 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11561 | if test -n "$with_tlib"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11562 | echo "$as_me:$LINENO: result: $with_tlib" >&5 |
| 11563 | echo "${ECHO_T}$with_tlib" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11564 | LIBS="$LIBS -l$with_tlib" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11565 | echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 |
| 11566 | echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6 |
| 11567 | cat >conftest.$ac_ext <<_ACEOF |
| 11568 | /* confdefs.h. */ |
| 11569 | _ACEOF |
| 11570 | cat confdefs.h >>conftest.$ac_ext |
| 11571 | cat >>conftest.$ac_ext <<_ACEOF |
| 11572 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11573 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11574 | int |
| 11575 | main () |
| 11576 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11577 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11578 | ; |
| 11579 | return 0; |
| 11580 | } |
| 11581 | _ACEOF |
| 11582 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11583 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11584 | (eval $ac_link) 2>conftest.er1 |
| 11585 | ac_status=$? |
| 11586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11587 | rm -f conftest.er1 |
| 11588 | cat conftest.err >&5 |
| 11589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11590 | (exit $ac_status); } && |
| 11591 | { ac_try='test -z "$ac_c_werror_flag" |
| 11592 | || test ! -s conftest.err' |
| 11593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11594 | (eval $ac_try) 2>&5 |
| 11595 | ac_status=$? |
| 11596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11597 | (exit $ac_status); }; } && |
| 11598 | { ac_try='test -s conftest$ac_exeext' |
| 11599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11600 | (eval $ac_try) 2>&5 |
| 11601 | ac_status=$? |
| 11602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11603 | (exit $ac_status); }; }; then |
| 11604 | echo "$as_me:$LINENO: result: OK" >&5 |
| 11605 | echo "${ECHO_T}OK" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11606 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11607 | echo "$as_me: failed program was:" >&5 |
| 11608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11609 | |
| 11610 | { { echo "$as_me:$LINENO: error: FAILED" >&5 |
| 11611 | echo "$as_me: error: FAILED" >&2;} |
| 11612 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11613 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11614 | rm -f conftest.err conftest.$ac_objext \ |
| 11615 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11616 | olibs="$LIBS" |
| 11617 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11618 | echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 |
| 11619 | echo "${ECHO_T}empty: automatic terminal library selection" >&6 |
Bram Moolenaar | a1b5aa5 | 2006-10-10 09:41:28 +0000 | [diff] [blame] | 11620 | case "`uname -s 2>/dev/null`" in |
| 11621 | OSF1|SCO_SV) tlibs="ncurses curses termlib termcap";; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11622 | *) tlibs="ncurses termlib termcap curses";; |
| 11623 | esac |
| 11624 | for libname in $tlibs; do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11625 | |
| 11626 | as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` |
| 11627 | echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 |
| 11628 | echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6 |
| 11629 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then |
| 11630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11631 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11632 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11633 | LIBS="-l${libname} $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11634 | cat >conftest.$ac_ext <<_ACEOF |
| 11635 | /* confdefs.h. */ |
| 11636 | _ACEOF |
| 11637 | cat confdefs.h >>conftest.$ac_ext |
| 11638 | cat >>conftest.$ac_ext <<_ACEOF |
| 11639 | /* end confdefs.h. */ |
| 11640 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11641 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11642 | #ifdef __cplusplus |
| 11643 | extern "C" |
| 11644 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11645 | /* 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] | 11646 | builtin and then its argument prototype would still apply. */ |
| 11647 | char tgetent (); |
| 11648 | int |
| 11649 | main () |
| 11650 | { |
| 11651 | tgetent (); |
| 11652 | ; |
| 11653 | return 0; |
| 11654 | } |
| 11655 | _ACEOF |
| 11656 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11658 | (eval $ac_link) 2>conftest.er1 |
| 11659 | ac_status=$? |
| 11660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11661 | rm -f conftest.er1 |
| 11662 | cat conftest.err >&5 |
| 11663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11664 | (exit $ac_status); } && |
| 11665 | { ac_try='test -z "$ac_c_werror_flag" |
| 11666 | || test ! -s conftest.err' |
| 11667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11668 | (eval $ac_try) 2>&5 |
| 11669 | ac_status=$? |
| 11670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11671 | (exit $ac_status); }; } && |
| 11672 | { ac_try='test -s conftest$ac_exeext' |
| 11673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11674 | (eval $ac_try) 2>&5 |
| 11675 | ac_status=$? |
| 11676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11677 | (exit $ac_status); }; }; then |
| 11678 | eval "$as_ac_Lib=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11679 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11680 | echo "$as_me: failed program was:" >&5 |
| 11681 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11682 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11683 | eval "$as_ac_Lib=no" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11684 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11685 | rm -f conftest.err conftest.$ac_objext \ |
| 11686 | conftest$ac_exeext conftest.$ac_ext |
| 11687 | LIBS=$ac_check_lib_save_LIBS |
| 11688 | fi |
| 11689 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 |
| 11690 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 |
| 11691 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then |
| 11692 | cat >>confdefs.h <<_ACEOF |
| 11693 | #define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 |
| 11694 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11695 | |
| 11696 | LIBS="-l${libname} $LIBS" |
| 11697 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11698 | fi |
| 11699 | |
| 11700 | if test "x$olibs" != "x$LIBS"; then |
| 11701 | if test "$cross_compiling" = yes; then |
| 11702 | res="FAIL" |
| 11703 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11704 | cat >conftest.$ac_ext <<_ACEOF |
| 11705 | /* confdefs.h. */ |
| 11706 | _ACEOF |
| 11707 | cat confdefs.h >>conftest.$ac_ext |
| 11708 | cat >>conftest.$ac_ext <<_ACEOF |
| 11709 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11710 | |
| 11711 | #ifdef HAVE_TERMCAP_H |
| 11712 | # include <termcap.h> |
| 11713 | #endif |
| 11714 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11715 | _ACEOF |
| 11716 | rm -f conftest$ac_exeext |
| 11717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11718 | (eval $ac_link) 2>&5 |
| 11719 | ac_status=$? |
| 11720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11721 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11723 | (eval $ac_try) 2>&5 |
| 11724 | ac_status=$? |
| 11725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11726 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11727 | res="OK" |
| 11728 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11729 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11730 | echo "$as_me: failed program was:" >&5 |
| 11731 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11732 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11733 | ( exit $ac_status ) |
| 11734 | res="FAIL" |
| 11735 | fi |
| 11736 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11737 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11738 | if test "$res" = "OK"; then |
| 11739 | break |
| 11740 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11741 | echo "$as_me:$LINENO: result: $libname library is not usable" >&5 |
| 11742 | echo "${ECHO_T}$libname library is not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11743 | LIBS="$olibs" |
| 11744 | fi |
| 11745 | done |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11746 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11747 | echo "$as_me:$LINENO: result: no terminal library found" >&5 |
| 11748 | echo "${ECHO_T}no terminal library found" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11749 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11750 | fi |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11751 | |
| 11752 | if test "x$olibs" = "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11753 | echo "$as_me:$LINENO: checking for tgetent()" >&5 |
| 11754 | echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6 |
| 11755 | cat >conftest.$ac_ext <<_ACEOF |
| 11756 | /* confdefs.h. */ |
| 11757 | _ACEOF |
| 11758 | cat confdefs.h >>conftest.$ac_ext |
| 11759 | cat >>conftest.$ac_ext <<_ACEOF |
| 11760 | /* end confdefs.h. */ |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11761 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11762 | int |
| 11763 | main () |
| 11764 | { |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11765 | char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11766 | ; |
| 11767 | return 0; |
| 11768 | } |
| 11769 | _ACEOF |
| 11770 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11771 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11772 | (eval $ac_link) 2>conftest.er1 |
| 11773 | ac_status=$? |
| 11774 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11775 | rm -f conftest.er1 |
| 11776 | cat conftest.err >&5 |
| 11777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11778 | (exit $ac_status); } && |
| 11779 | { ac_try='test -z "$ac_c_werror_flag" |
| 11780 | || test ! -s conftest.err' |
| 11781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11782 | (eval $ac_try) 2>&5 |
| 11783 | ac_status=$? |
| 11784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11785 | (exit $ac_status); }; } && |
| 11786 | { ac_try='test -s conftest$ac_exeext' |
| 11787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11788 | (eval $ac_try) 2>&5 |
| 11789 | ac_status=$? |
| 11790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11791 | (exit $ac_status); }; }; then |
| 11792 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11793 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11794 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11795 | echo "$as_me: failed program was:" >&5 |
| 11796 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11797 | |
| 11798 | { { echo "$as_me:$LINENO: error: NOT FOUND! |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11799 | You need to install a terminal library; for example ncurses. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11800 | Or specify the name of the library with --with-tlib." >&5 |
| 11801 | echo "$as_me: error: NOT FOUND! |
| 11802 | You need to install a terminal library; for example ncurses. |
| 11803 | Or specify the name of the library with --with-tlib." >&2;} |
| 11804 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11805 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11806 | rm -f conftest.err conftest.$ac_objext \ |
| 11807 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11808 | fi |
| 11809 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11810 | echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 |
| 11811 | echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6 |
Bram Moolenaar | 1cd871b | 2004-12-19 22:46:22 +0000 | [diff] [blame] | 11812 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11813 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 11814 | echo "$as_me: error: failed to compile test program." >&2;} |
| 11815 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11816 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11817 | cat >conftest.$ac_ext <<_ACEOF |
| 11818 | /* confdefs.h. */ |
| 11819 | _ACEOF |
| 11820 | cat confdefs.h >>conftest.$ac_ext |
| 11821 | cat >>conftest.$ac_ext <<_ACEOF |
| 11822 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11823 | |
| 11824 | #ifdef HAVE_TERMCAP_H |
| 11825 | # include <termcap.h> |
| 11826 | #endif |
| 11827 | main() |
| 11828 | {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] | 11829 | _ACEOF |
| 11830 | rm -f conftest$ac_exeext |
| 11831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11832 | (eval $ac_link) 2>&5 |
| 11833 | ac_status=$? |
| 11834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11835 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11837 | (eval $ac_try) 2>&5 |
| 11838 | ac_status=$? |
| 11839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11840 | (exit $ac_status); }; }; then |
| 11841 | echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5 |
| 11842 | echo "${ECHO_T}no -- we are in termcap land" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11843 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11844 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11845 | echo "$as_me: failed program was:" >&5 |
| 11846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11847 | |
| 11848 | ( exit $ac_status ) |
| 11849 | echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5 |
| 11850 | echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11851 | #define TERMINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11852 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11853 | |
| 11854 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11855 | 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] | 11856 | fi |
| 11857 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11858 | if test "x$olibs" != "x$LIBS"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11859 | echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 |
| 11860 | 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] | 11861 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11862 | { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 |
| 11863 | echo "$as_me: error: failed to compile test program." >&2;} |
| 11864 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11865 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11866 | cat >conftest.$ac_ext <<_ACEOF |
| 11867 | /* confdefs.h. */ |
| 11868 | _ACEOF |
| 11869 | cat confdefs.h >>conftest.$ac_ext |
| 11870 | cat >>conftest.$ac_ext <<_ACEOF |
| 11871 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11872 | |
| 11873 | #ifdef HAVE_TERMCAP_H |
| 11874 | # include <termcap.h> |
| 11875 | #endif |
| 11876 | main() |
| 11877 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11878 | _ACEOF |
| 11879 | rm -f conftest$ac_exeext |
| 11880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11881 | (eval $ac_link) 2>&5 |
| 11882 | ac_status=$? |
| 11883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11884 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11886 | (eval $ac_try) 2>&5 |
| 11887 | ac_status=$? |
| 11888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11889 | (exit $ac_status); }; }; then |
| 11890 | echo "$as_me:$LINENO: result: zero" >&5 |
| 11891 | echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11892 | #define TGETENT_ZERO_ERR 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11893 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11894 | |
| 11895 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11896 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11897 | echo "$as_me: failed program was:" >&5 |
| 11898 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11899 | |
| 11900 | ( exit $ac_status ) |
| 11901 | echo "$as_me:$LINENO: result: non-zero" >&5 |
| 11902 | echo "${ECHO_T}non-zero" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11903 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11904 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11905 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11906 | fi |
| 11907 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11908 | echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 |
| 11909 | echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6 |
| 11910 | cat >conftest.$ac_ext <<_ACEOF |
| 11911 | /* confdefs.h. */ |
| 11912 | _ACEOF |
| 11913 | cat confdefs.h >>conftest.$ac_ext |
| 11914 | cat >>conftest.$ac_ext <<_ACEOF |
| 11915 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11916 | |
| 11917 | #ifdef HAVE_TERMCAP_H |
| 11918 | # include <termcap.h> |
| 11919 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11920 | |
| 11921 | int |
| 11922 | main () |
| 11923 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11924 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11925 | ; |
| 11926 | return 0; |
| 11927 | } |
| 11928 | _ACEOF |
| 11929 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11931 | (eval $ac_link) 2>conftest.er1 |
| 11932 | ac_status=$? |
| 11933 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11934 | rm -f conftest.er1 |
| 11935 | cat conftest.err >&5 |
| 11936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11937 | (exit $ac_status); } && |
| 11938 | { ac_try='test -z "$ac_c_werror_flag" |
| 11939 | || test ! -s conftest.err' |
| 11940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11941 | (eval $ac_try) 2>&5 |
| 11942 | ac_status=$? |
| 11943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11944 | (exit $ac_status); }; } && |
| 11945 | { ac_try='test -s conftest$ac_exeext' |
| 11946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11947 | (eval $ac_try) 2>&5 |
| 11948 | ac_status=$? |
| 11949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11950 | (exit $ac_status); }; }; then |
| 11951 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11952 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11953 | #define HAVE_OSPEED 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11954 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11955 | |
| 11956 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11957 | echo "$as_me: failed program was:" >&5 |
| 11958 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11959 | |
| 11960 | echo "$as_me:$LINENO: result: no" >&5 |
| 11961 | echo "${ECHO_T}no" >&6 |
| 11962 | echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 |
| 11963 | echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6 |
| 11964 | cat >conftest.$ac_ext <<_ACEOF |
| 11965 | /* confdefs.h. */ |
| 11966 | _ACEOF |
| 11967 | cat confdefs.h >>conftest.$ac_ext |
| 11968 | cat >>conftest.$ac_ext <<_ACEOF |
| 11969 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11970 | |
| 11971 | #ifdef HAVE_TERMCAP_H |
| 11972 | # include <termcap.h> |
| 11973 | #endif |
| 11974 | extern short ospeed; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11975 | |
| 11976 | int |
| 11977 | main () |
| 11978 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 11979 | ospeed = 20000 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 11980 | ; |
| 11981 | return 0; |
| 11982 | } |
| 11983 | _ACEOF |
| 11984 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11986 | (eval $ac_link) 2>conftest.er1 |
| 11987 | ac_status=$? |
| 11988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11989 | rm -f conftest.er1 |
| 11990 | cat conftest.err >&5 |
| 11991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11992 | (exit $ac_status); } && |
| 11993 | { ac_try='test -z "$ac_c_werror_flag" |
| 11994 | || test ! -s conftest.err' |
| 11995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11996 | (eval $ac_try) 2>&5 |
| 11997 | ac_status=$? |
| 11998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11999 | (exit $ac_status); }; } && |
| 12000 | { ac_try='test -s conftest$ac_exeext' |
| 12001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12002 | (eval $ac_try) 2>&5 |
| 12003 | ac_status=$? |
| 12004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12005 | (exit $ac_status); }; }; then |
| 12006 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12007 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12008 | #define OSPEED_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12009 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12010 | |
| 12011 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12012 | echo "$as_me: failed program was:" >&5 |
| 12013 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12014 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12015 | echo "$as_me:$LINENO: result: no" >&5 |
| 12016 | echo "${ECHO_T}no" >&6 |
| 12017 | fi |
| 12018 | rm -f conftest.err conftest.$ac_objext \ |
| 12019 | conftest$ac_exeext conftest.$ac_ext |
| 12020 | |
| 12021 | fi |
| 12022 | rm -f conftest.err conftest.$ac_objext \ |
| 12023 | conftest$ac_exeext conftest.$ac_ext |
| 12024 | |
| 12025 | echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 |
| 12026 | echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6 |
| 12027 | cat >conftest.$ac_ext <<_ACEOF |
| 12028 | /* confdefs.h. */ |
| 12029 | _ACEOF |
| 12030 | cat confdefs.h >>conftest.$ac_ext |
| 12031 | cat >>conftest.$ac_ext <<_ACEOF |
| 12032 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12033 | |
| 12034 | #ifdef HAVE_TERMCAP_H |
| 12035 | # include <termcap.h> |
| 12036 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12037 | |
| 12038 | int |
| 12039 | main () |
| 12040 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12041 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12042 | ; |
| 12043 | return 0; |
| 12044 | } |
| 12045 | _ACEOF |
| 12046 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12048 | (eval $ac_link) 2>conftest.er1 |
| 12049 | ac_status=$? |
| 12050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12051 | rm -f conftest.er1 |
| 12052 | cat conftest.err >&5 |
| 12053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12054 | (exit $ac_status); } && |
| 12055 | { ac_try='test -z "$ac_c_werror_flag" |
| 12056 | || test ! -s conftest.err' |
| 12057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12058 | (eval $ac_try) 2>&5 |
| 12059 | ac_status=$? |
| 12060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12061 | (exit $ac_status); }; } && |
| 12062 | { ac_try='test -s conftest$ac_exeext' |
| 12063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12064 | (eval $ac_try) 2>&5 |
| 12065 | ac_status=$? |
| 12066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12067 | (exit $ac_status); }; }; then |
| 12068 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12069 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12070 | #define HAVE_UP_BC_PC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12071 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12072 | |
| 12073 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12074 | echo "$as_me: failed program was:" >&5 |
| 12075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12076 | |
| 12077 | echo "$as_me:$LINENO: result: no" >&5 |
| 12078 | echo "${ECHO_T}no" >&6 |
| 12079 | echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 |
| 12080 | echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6 |
| 12081 | cat >conftest.$ac_ext <<_ACEOF |
| 12082 | /* confdefs.h. */ |
| 12083 | _ACEOF |
| 12084 | cat confdefs.h >>conftest.$ac_ext |
| 12085 | cat >>conftest.$ac_ext <<_ACEOF |
| 12086 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12087 | |
| 12088 | #ifdef HAVE_TERMCAP_H |
| 12089 | # include <termcap.h> |
| 12090 | #endif |
| 12091 | extern char *UP, *BC, PC; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12092 | |
| 12093 | int |
| 12094 | main () |
| 12095 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12096 | if (UP == 0 && BC == 0) PC = 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12097 | ; |
| 12098 | return 0; |
| 12099 | } |
| 12100 | _ACEOF |
| 12101 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12103 | (eval $ac_link) 2>conftest.er1 |
| 12104 | ac_status=$? |
| 12105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12106 | rm -f conftest.er1 |
| 12107 | cat conftest.err >&5 |
| 12108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12109 | (exit $ac_status); } && |
| 12110 | { ac_try='test -z "$ac_c_werror_flag" |
| 12111 | || test ! -s conftest.err' |
| 12112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12113 | (eval $ac_try) 2>&5 |
| 12114 | ac_status=$? |
| 12115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12116 | (exit $ac_status); }; } && |
| 12117 | { ac_try='test -s conftest$ac_exeext' |
| 12118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12119 | (eval $ac_try) 2>&5 |
| 12120 | ac_status=$? |
| 12121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12122 | (exit $ac_status); }; }; then |
| 12123 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12124 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12125 | #define UP_BC_PC_EXTERN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12126 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12127 | |
| 12128 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12129 | echo "$as_me: failed program was:" >&5 |
| 12130 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12131 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12132 | echo "$as_me:$LINENO: result: no" >&5 |
| 12133 | echo "${ECHO_T}no" >&6 |
| 12134 | fi |
| 12135 | rm -f conftest.err conftest.$ac_objext \ |
| 12136 | conftest$ac_exeext conftest.$ac_ext |
| 12137 | |
| 12138 | fi |
| 12139 | rm -f conftest.err conftest.$ac_objext \ |
| 12140 | conftest$ac_exeext conftest.$ac_ext |
| 12141 | |
| 12142 | echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 |
| 12143 | echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6 |
| 12144 | cat >conftest.$ac_ext <<_ACEOF |
| 12145 | /* confdefs.h. */ |
| 12146 | _ACEOF |
| 12147 | cat confdefs.h >>conftest.$ac_ext |
| 12148 | cat >>conftest.$ac_ext <<_ACEOF |
| 12149 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12150 | |
| 12151 | #ifdef HAVE_TERMCAP_H |
| 12152 | # include <termcap.h> |
| 12153 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12154 | |
| 12155 | int |
| 12156 | main () |
| 12157 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12158 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12159 | ; |
| 12160 | return 0; |
| 12161 | } |
| 12162 | _ACEOF |
| 12163 | rm -f conftest.$ac_objext |
| 12164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12165 | (eval $ac_compile) 2>conftest.er1 |
| 12166 | ac_status=$? |
| 12167 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12168 | rm -f conftest.er1 |
| 12169 | cat conftest.err >&5 |
| 12170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12171 | (exit $ac_status); } && |
| 12172 | { ac_try='test -z "$ac_c_werror_flag" |
| 12173 | || test ! -s conftest.err' |
| 12174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12175 | (eval $ac_try) 2>&5 |
| 12176 | ac_status=$? |
| 12177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12178 | (exit $ac_status); }; } && |
| 12179 | { ac_try='test -s conftest.$ac_objext' |
| 12180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12181 | (eval $ac_try) 2>&5 |
| 12182 | ac_status=$? |
| 12183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12184 | (exit $ac_status); }; }; then |
| 12185 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12186 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12187 | #define HAVE_OUTFUNTYPE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12188 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12189 | |
| 12190 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12191 | echo "$as_me: failed program was:" >&5 |
| 12192 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12193 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12194 | echo "$as_me:$LINENO: result: no" >&5 |
| 12195 | echo "${ECHO_T}no" >&6 |
| 12196 | fi |
| 12197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12198 | |
| 12199 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 12200 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12201 | cat >conftest.$ac_ext <<_ACEOF |
| 12202 | /* confdefs.h. */ |
| 12203 | _ACEOF |
| 12204 | cat confdefs.h >>conftest.$ac_ext |
| 12205 | cat >>conftest.$ac_ext <<_ACEOF |
| 12206 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12207 | |
| 12208 | #include <sys/types.h> |
| 12209 | #include <sys/time.h> |
| 12210 | #include <sys/select.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12211 | int |
| 12212 | main () |
| 12213 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12214 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12215 | ; |
| 12216 | return 0; |
| 12217 | } |
| 12218 | _ACEOF |
| 12219 | rm -f conftest.$ac_objext |
| 12220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12221 | (eval $ac_compile) 2>conftest.er1 |
| 12222 | ac_status=$? |
| 12223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12224 | rm -f conftest.er1 |
| 12225 | cat conftest.err >&5 |
| 12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12227 | (exit $ac_status); } && |
| 12228 | { ac_try='test -z "$ac_c_werror_flag" |
| 12229 | || test ! -s conftest.err' |
| 12230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12231 | (eval $ac_try) 2>&5 |
| 12232 | ac_status=$? |
| 12233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12234 | (exit $ac_status); }; } && |
| 12235 | { ac_try='test -s conftest.$ac_objext' |
| 12236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12237 | (eval $ac_try) 2>&5 |
| 12238 | ac_status=$? |
| 12239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12240 | (exit $ac_status); }; }; then |
| 12241 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12242 | echo "${ECHO_T}yes" >&6 |
| 12243 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12244 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12245 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12246 | |
| 12247 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12248 | echo "$as_me: failed program was:" >&5 |
| 12249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12250 | |
| 12251 | echo "$as_me:$LINENO: result: no" >&5 |
| 12252 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12253 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12255 | |
| 12256 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12257 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 12258 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12259 | if test -r /dev/ptc; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12260 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12261 | #define HAVE_DEV_PTC 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12262 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12263 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12264 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12265 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12266 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12267 | echo "$as_me:$LINENO: result: no" >&5 |
| 12268 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12269 | fi |
| 12270 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12271 | echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 |
| 12272 | echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12273 | if test -c /dev/ptmx ; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12274 | cat >conftest.$ac_ext <<_ACEOF |
| 12275 | /* confdefs.h. */ |
| 12276 | _ACEOF |
| 12277 | cat confdefs.h >>conftest.$ac_ext |
| 12278 | cat >>conftest.$ac_ext <<_ACEOF |
| 12279 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12280 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12281 | int |
| 12282 | main () |
| 12283 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12284 | ptsname(0);grantpt(0);unlockpt(0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12285 | ; |
| 12286 | return 0; |
| 12287 | } |
| 12288 | _ACEOF |
| 12289 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12291 | (eval $ac_link) 2>conftest.er1 |
| 12292 | ac_status=$? |
| 12293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12294 | rm -f conftest.er1 |
| 12295 | cat conftest.err >&5 |
| 12296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12297 | (exit $ac_status); } && |
| 12298 | { ac_try='test -z "$ac_c_werror_flag" |
| 12299 | || test ! -s conftest.err' |
| 12300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12301 | (eval $ac_try) 2>&5 |
| 12302 | ac_status=$? |
| 12303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12304 | (exit $ac_status); }; } && |
| 12305 | { ac_try='test -s conftest$ac_exeext' |
| 12306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12307 | (eval $ac_try) 2>&5 |
| 12308 | ac_status=$? |
| 12309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12310 | (exit $ac_status); }; }; then |
| 12311 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12312 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12313 | #define HAVE_SVR4_PTYS 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12314 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12315 | |
| 12316 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12317 | echo "$as_me: failed program was:" >&5 |
| 12318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12319 | |
| 12320 | echo "$as_me:$LINENO: result: no" >&5 |
| 12321 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12322 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12323 | rm -f conftest.err conftest.$ac_objext \ |
| 12324 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12325 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12326 | echo "$as_me:$LINENO: result: no" >&5 |
| 12327 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12328 | fi |
| 12329 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12330 | echo "$as_me:$LINENO: checking for ptyranges" >&5 |
| 12331 | echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12332 | if test -d /dev/ptym ; then |
| 12333 | pdir='/dev/ptym' |
| 12334 | else |
| 12335 | pdir='/dev' |
| 12336 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12337 | cat >conftest.$ac_ext <<_ACEOF |
| 12338 | /* confdefs.h. */ |
| 12339 | _ACEOF |
| 12340 | cat confdefs.h >>conftest.$ac_ext |
| 12341 | cat >>conftest.$ac_ext <<_ACEOF |
| 12342 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12343 | #ifdef M_UNIX |
| 12344 | yes; |
| 12345 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12346 | |
| 12347 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12348 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12349 | $EGREP "yes" >/dev/null 2>&1; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12350 | ptys=`echo /dev/ptyp??` |
| 12351 | else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12352 | ptys=`echo $pdir/pty??` |
| 12353 | fi |
| 12354 | rm -f conftest* |
| 12355 | |
| 12356 | if test "$ptys" != "$pdir/pty??" ; then |
| 12357 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 12358 | 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] | 12359 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12360 | #define PTYRANGE0 "$p0" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12361 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12362 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12363 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12364 | #define PTYRANGE1 "$p1" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12365 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12366 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12367 | echo "$as_me:$LINENO: result: $p0 / $p1" >&5 |
| 12368 | echo "${ECHO_T}$p0 / $p1" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12369 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12370 | echo "$as_me:$LINENO: result: don't know" >&5 |
| 12371 | echo "${ECHO_T}don't know" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12372 | fi |
| 12373 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12374 | echo "$as_me:$LINENO: checking default tty permissions/group" >&5 |
| 12375 | echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12376 | rm -f conftest_grp |
| 12377 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12378 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12379 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12380 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12381 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12382 | cat >conftest.$ac_ext <<_ACEOF |
| 12383 | /* confdefs.h. */ |
| 12384 | _ACEOF |
| 12385 | cat confdefs.h >>conftest.$ac_ext |
| 12386 | cat >>conftest.$ac_ext <<_ACEOF |
| 12387 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12388 | |
| 12389 | #include <sys/types.h> |
| 12390 | #include <sys/stat.h> |
| 12391 | #include <stdio.h> |
| 12392 | main() |
| 12393 | { |
| 12394 | struct stat sb; |
| 12395 | char *x,*ttyname(); |
| 12396 | int om, m; |
| 12397 | FILE *fp; |
| 12398 | |
| 12399 | if (!(x = ttyname(0))) exit(1); |
| 12400 | if (stat(x, &sb)) exit(1); |
| 12401 | om = sb.st_mode; |
| 12402 | if (om & 002) exit(0); |
| 12403 | m = system("mesg y"); |
| 12404 | if (m == -1 || m == 127) exit(1); |
| 12405 | if (stat(x, &sb)) exit(1); |
| 12406 | m = sb.st_mode; |
| 12407 | if (chmod(x, om)) exit(1); |
| 12408 | if (m & 002) exit(0); |
| 12409 | if (sb.st_gid == getgid()) exit(1); |
| 12410 | if (!(fp=fopen("conftest_grp", "w"))) |
| 12411 | exit(1); |
| 12412 | fprintf(fp, "%d\n", sb.st_gid); |
| 12413 | fclose(fp); |
| 12414 | exit(0); |
| 12415 | } |
| 12416 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12417 | _ACEOF |
| 12418 | rm -f conftest$ac_exeext |
| 12419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12420 | (eval $ac_link) 2>&5 |
| 12421 | ac_status=$? |
| 12422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12423 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12425 | (eval $ac_try) 2>&5 |
| 12426 | ac_status=$? |
| 12427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12428 | (exit $ac_status); }; }; then |
| 12429 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12430 | if test -f conftest_grp; then |
| 12431 | ptygrp=`cat conftest_grp` |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12432 | echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5 |
| 12433 | echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6 |
| 12434 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12435 | #define PTYMODE 0620 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12436 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12437 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12438 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12439 | #define PTYGROUP $ptygrp |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12440 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12441 | |
| 12442 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12443 | echo "$as_me:$LINENO: result: ptys are world accessable" >&5 |
| 12444 | echo "${ECHO_T}ptys are world accessable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12445 | fi |
| 12446 | |
| 12447 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12448 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12449 | echo "$as_me: failed program was:" >&5 |
| 12450 | sed 's/^/| /' conftest.$ac_ext >&5 |
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 | ( exit $ac_status ) |
| 12453 | echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 |
| 12454 | echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6 |
| 12455 | fi |
| 12456 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12457 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12458 | rm -f conftest_grp |
| 12459 | |
| 12460 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12461 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 12462 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 12463 | if test "${ac_cv_type_signal+set}" = set; then |
| 12464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12465 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12466 | cat >conftest.$ac_ext <<_ACEOF |
| 12467 | /* confdefs.h. */ |
| 12468 | _ACEOF |
| 12469 | cat confdefs.h >>conftest.$ac_ext |
| 12470 | cat >>conftest.$ac_ext <<_ACEOF |
| 12471 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12472 | #include <sys/types.h> |
| 12473 | #include <signal.h> |
| 12474 | #ifdef signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12475 | # undef signal |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12476 | #endif |
| 12477 | #ifdef __cplusplus |
| 12478 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 12479 | #else |
| 12480 | void (*signal ()) (); |
| 12481 | #endif |
| 12482 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12483 | int |
| 12484 | main () |
| 12485 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12486 | int i; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12487 | ; |
| 12488 | return 0; |
| 12489 | } |
| 12490 | _ACEOF |
| 12491 | rm -f conftest.$ac_objext |
| 12492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12493 | (eval $ac_compile) 2>conftest.er1 |
| 12494 | ac_status=$? |
| 12495 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12496 | rm -f conftest.er1 |
| 12497 | cat conftest.err >&5 |
| 12498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12499 | (exit $ac_status); } && |
| 12500 | { ac_try='test -z "$ac_c_werror_flag" |
| 12501 | || test ! -s conftest.err' |
| 12502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12503 | (eval $ac_try) 2>&5 |
| 12504 | ac_status=$? |
| 12505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12506 | (exit $ac_status); }; } && |
| 12507 | { ac_try='test -s conftest.$ac_objext' |
| 12508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12509 | (eval $ac_try) 2>&5 |
| 12510 | ac_status=$? |
| 12511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12512 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12513 | ac_cv_type_signal=void |
| 12514 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12515 | echo "$as_me: failed program was:" >&5 |
| 12516 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12517 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12518 | ac_cv_type_signal=int |
| 12519 | fi |
| 12520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12521 | fi |
| 12522 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 12523 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 12524 | |
| 12525 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12526 | #define RETSIGTYPE $ac_cv_type_signal |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12527 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12528 | |
| 12529 | |
| 12530 | |
| 12531 | if test $ac_cv_type_signal = void; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12532 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12533 | #define SIGRETURN return |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12534 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12535 | |
| 12536 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12537 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12538 | #define SIGRETURN return 0 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12539 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12540 | |
| 12541 | fi |
| 12542 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12543 | echo "$as_me:$LINENO: checking for struct sigcontext" >&5 |
| 12544 | echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6 |
| 12545 | cat >conftest.$ac_ext <<_ACEOF |
| 12546 | /* confdefs.h. */ |
| 12547 | _ACEOF |
| 12548 | cat confdefs.h >>conftest.$ac_ext |
| 12549 | cat >>conftest.$ac_ext <<_ACEOF |
| 12550 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12551 | |
| 12552 | #include <signal.h> |
| 12553 | test_sig() |
| 12554 | { |
| 12555 | struct sigcontext *scont; |
| 12556 | scont = (struct sigcontext *)0; |
| 12557 | return 1; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12558 | } |
| 12559 | int |
| 12560 | main () |
| 12561 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12562 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12563 | ; |
| 12564 | return 0; |
| 12565 | } |
| 12566 | _ACEOF |
| 12567 | rm -f conftest.$ac_objext |
| 12568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12569 | (eval $ac_compile) 2>conftest.er1 |
| 12570 | ac_status=$? |
| 12571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12572 | rm -f conftest.er1 |
| 12573 | cat conftest.err >&5 |
| 12574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12575 | (exit $ac_status); } && |
| 12576 | { ac_try='test -z "$ac_c_werror_flag" |
| 12577 | || test ! -s conftest.err' |
| 12578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12579 | (eval $ac_try) 2>&5 |
| 12580 | ac_status=$? |
| 12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12582 | (exit $ac_status); }; } && |
| 12583 | { ac_try='test -s conftest.$ac_objext' |
| 12584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12585 | (eval $ac_try) 2>&5 |
| 12586 | ac_status=$? |
| 12587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12588 | (exit $ac_status); }; }; then |
| 12589 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12590 | echo "${ECHO_T}yes" >&6 |
| 12591 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12592 | #define HAVE_SIGCONTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12593 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12594 | |
| 12595 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12596 | echo "$as_me: failed program was:" >&5 |
| 12597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12598 | |
| 12599 | echo "$as_me:$LINENO: result: no" >&5 |
| 12600 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12601 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12603 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12604 | echo "$as_me:$LINENO: checking getcwd implementation" >&5 |
| 12605 | echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12606 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12607 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12608 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12609 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12610 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12611 | cat >conftest.$ac_ext <<_ACEOF |
| 12612 | /* confdefs.h. */ |
| 12613 | _ACEOF |
| 12614 | cat confdefs.h >>conftest.$ac_ext |
| 12615 | cat >>conftest.$ac_ext <<_ACEOF |
| 12616 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12617 | |
| 12618 | char *dagger[] = { "IFS=pwd", 0 }; |
| 12619 | main() |
| 12620 | { |
| 12621 | char buffer[500]; |
| 12622 | extern char **environ; |
| 12623 | environ = dagger; |
| 12624 | return getcwd(buffer, 500) ? 0 : 1; |
| 12625 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12626 | _ACEOF |
| 12627 | rm -f conftest$ac_exeext |
| 12628 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12629 | (eval $ac_link) 2>&5 |
| 12630 | ac_status=$? |
| 12631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12632 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12634 | (eval $ac_try) 2>&5 |
| 12635 | ac_status=$? |
| 12636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12637 | (exit $ac_status); }; }; then |
| 12638 | echo "$as_me:$LINENO: result: it is usable" >&5 |
| 12639 | echo "${ECHO_T}it is usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12640 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12641 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12642 | echo "$as_me: failed program was:" >&5 |
| 12643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12644 | |
| 12645 | ( exit $ac_status ) |
| 12646 | echo "$as_me:$LINENO: result: it stinks" >&5 |
| 12647 | echo "${ECHO_T}it stinks" >&6 |
| 12648 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12649 | #define BAD_GETCWD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12650 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12651 | |
| 12652 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12653 | 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] | 12654 | fi |
| 12655 | |
| 12656 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12657 | |
| 12658 | |
| 12659 | |
| 12660 | |
| 12661 | |
| 12662 | |
| 12663 | |
| 12664 | |
| 12665 | |
| 12666 | |
| 12667 | |
| 12668 | |
| 12669 | |
| 12670 | |
| 12671 | |
| 12672 | |
| 12673 | |
| 12674 | |
| 12675 | |
| 12676 | |
| 12677 | |
| 12678 | |
| 12679 | |
| 12680 | |
| 12681 | |
| 12682 | |
| 12683 | |
| 12684 | |
| 12685 | |
| 12686 | |
| 12687 | |
| 12688 | |
| 12689 | |
| 12690 | |
| 12691 | |
| 12692 | |
| 12693 | |
| 12694 | |
| 12695 | |
| 12696 | |
| 12697 | |
| 12698 | |
| 12699 | |
| 12700 | |
| 12701 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12702 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 12703 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
| 12704 | memset nanosleep opendir putenv qsort readlink select setenv \ |
| 12705 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 12706 | sigvec strcasecmp strerror strftime stricmp strncasecmp \ |
Bram Moolenaar | 0cb032e | 2005-04-23 20:52:00 +0000 | [diff] [blame] | 12707 | strnicmp strpbrk strtol tgetent towlower towupper iswupper \ |
| 12708 | usleep utime utimes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12709 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12710 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12711 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12712 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12713 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12715 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12716 | cat >conftest.$ac_ext <<_ACEOF |
| 12717 | /* confdefs.h. */ |
| 12718 | _ACEOF |
| 12719 | cat confdefs.h >>conftest.$ac_ext |
| 12720 | cat >>conftest.$ac_ext <<_ACEOF |
| 12721 | /* end confdefs.h. */ |
| 12722 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12723 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12724 | #define $ac_func innocuous_$ac_func |
| 12725 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12726 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12727 | which can conflict with char $ac_func (); below. |
| 12728 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12729 | <limits.h> exists even on freestanding compilers. */ |
| 12730 | |
| 12731 | #ifdef __STDC__ |
| 12732 | # include <limits.h> |
| 12733 | #else |
| 12734 | # include <assert.h> |
| 12735 | #endif |
| 12736 | |
| 12737 | #undef $ac_func |
| 12738 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12739 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12740 | #ifdef __cplusplus |
| 12741 | extern "C" |
| 12742 | { |
| 12743 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12744 | /* 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] | 12745 | builtin and then its argument prototype would still apply. */ |
| 12746 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12747 | /* The GNU C library defines this for functions which it implements |
| 12748 | to always fail with ENOSYS. Some functions are actually named |
| 12749 | something starting with __ and the normal name is an alias. */ |
| 12750 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12751 | choke me |
| 12752 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12753 | char (*f) () = $ac_func; |
| 12754 | #endif |
| 12755 | #ifdef __cplusplus |
| 12756 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12757 | #endif |
| 12758 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12759 | int |
| 12760 | main () |
| 12761 | { |
| 12762 | return f != $ac_func; |
| 12763 | ; |
| 12764 | return 0; |
| 12765 | } |
| 12766 | _ACEOF |
| 12767 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12769 | (eval $ac_link) 2>conftest.er1 |
| 12770 | ac_status=$? |
| 12771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12772 | rm -f conftest.er1 |
| 12773 | cat conftest.err >&5 |
| 12774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12775 | (exit $ac_status); } && |
| 12776 | { ac_try='test -z "$ac_c_werror_flag" |
| 12777 | || test ! -s conftest.err' |
| 12778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12779 | (eval $ac_try) 2>&5 |
| 12780 | ac_status=$? |
| 12781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12782 | (exit $ac_status); }; } && |
| 12783 | { ac_try='test -s conftest$ac_exeext' |
| 12784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12785 | (eval $ac_try) 2>&5 |
| 12786 | ac_status=$? |
| 12787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12788 | (exit $ac_status); }; }; then |
| 12789 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12790 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12791 | echo "$as_me: failed program was:" >&5 |
| 12792 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12793 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12794 | eval "$as_ac_var=no" |
| 12795 | fi |
| 12796 | rm -f conftest.err conftest.$ac_objext \ |
| 12797 | conftest$ac_exeext conftest.$ac_ext |
| 12798 | fi |
| 12799 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12800 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12801 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12802 | cat >>confdefs.h <<_ACEOF |
| 12803 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12804 | _ACEOF |
| 12805 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12806 | fi |
| 12807 | done |
| 12808 | |
| 12809 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12810 | echo "$as_me:$LINENO: checking for st_blksize" >&5 |
| 12811 | echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6 |
| 12812 | cat >conftest.$ac_ext <<_ACEOF |
| 12813 | /* confdefs.h. */ |
| 12814 | _ACEOF |
| 12815 | cat confdefs.h >>conftest.$ac_ext |
| 12816 | cat >>conftest.$ac_ext <<_ACEOF |
| 12817 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12818 | #include <sys/types.h> |
| 12819 | #include <sys/stat.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12820 | int |
| 12821 | main () |
| 12822 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12823 | struct stat st; |
| 12824 | int n; |
| 12825 | |
| 12826 | stat("/", &st); |
| 12827 | n = (int)st.st_blksize; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12828 | ; |
| 12829 | return 0; |
| 12830 | } |
| 12831 | _ACEOF |
| 12832 | rm -f conftest.$ac_objext |
| 12833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12834 | (eval $ac_compile) 2>conftest.er1 |
| 12835 | ac_status=$? |
| 12836 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12837 | rm -f conftest.er1 |
| 12838 | cat conftest.err >&5 |
| 12839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12840 | (exit $ac_status); } && |
| 12841 | { ac_try='test -z "$ac_c_werror_flag" |
| 12842 | || test ! -s conftest.err' |
| 12843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12844 | (eval $ac_try) 2>&5 |
| 12845 | ac_status=$? |
| 12846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12847 | (exit $ac_status); }; } && |
| 12848 | { ac_try='test -s conftest.$ac_objext' |
| 12849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12850 | (eval $ac_try) 2>&5 |
| 12851 | ac_status=$? |
| 12852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12853 | (exit $ac_status); }; }; then |
| 12854 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12855 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12856 | #define HAVE_ST_BLKSIZE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12857 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12858 | |
| 12859 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12860 | echo "$as_me: failed program was:" >&5 |
| 12861 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12862 | |
| 12863 | echo "$as_me:$LINENO: result: no" >&5 |
| 12864 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12865 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12867 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12868 | echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 |
| 12869 | 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] | 12870 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12871 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 12872 | echo "$as_me: error: failed to compile test program" >&2;} |
| 12873 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12874 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12875 | cat >conftest.$ac_ext <<_ACEOF |
| 12876 | /* confdefs.h. */ |
| 12877 | _ACEOF |
| 12878 | cat confdefs.h >>conftest.$ac_ext |
| 12879 | cat >>conftest.$ac_ext <<_ACEOF |
| 12880 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12881 | #include <sys/types.h> |
| 12882 | #include <sys/stat.h> |
| 12883 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12884 | _ACEOF |
| 12885 | rm -f conftest$ac_exeext |
| 12886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12887 | (eval $ac_link) 2>&5 |
| 12888 | ac_status=$? |
| 12889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12890 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12892 | (eval $ac_try) 2>&5 |
| 12893 | ac_status=$? |
| 12894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12895 | (exit $ac_status); }; }; then |
| 12896 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12897 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12898 | #define STAT_IGNORES_SLASH 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12899 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12900 | |
| 12901 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12902 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12903 | echo "$as_me: failed program was:" >&5 |
| 12904 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12905 | |
| 12906 | ( exit $ac_status ) |
| 12907 | echo "$as_me:$LINENO: result: no" >&5 |
| 12908 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12909 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12910 | 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] | 12911 | fi |
| 12912 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12913 | echo "$as_me:$LINENO: checking for iconv_open()" >&5 |
| 12914 | echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12915 | save_LIBS="$LIBS" |
| 12916 | LIBS="$LIBS -liconv" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12917 | cat >conftest.$ac_ext <<_ACEOF |
| 12918 | /* confdefs.h. */ |
| 12919 | _ACEOF |
| 12920 | cat confdefs.h >>conftest.$ac_ext |
| 12921 | cat >>conftest.$ac_ext <<_ACEOF |
| 12922 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12923 | |
| 12924 | #ifdef HAVE_ICONV_H |
| 12925 | # include <iconv.h> |
| 12926 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12927 | |
| 12928 | int |
| 12929 | main () |
| 12930 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12931 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12932 | ; |
| 12933 | return 0; |
| 12934 | } |
| 12935 | _ACEOF |
| 12936 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12938 | (eval $ac_link) 2>conftest.er1 |
| 12939 | ac_status=$? |
| 12940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12941 | rm -f conftest.er1 |
| 12942 | cat conftest.err >&5 |
| 12943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12944 | (exit $ac_status); } && |
| 12945 | { ac_try='test -z "$ac_c_werror_flag" |
| 12946 | || test ! -s conftest.err' |
| 12947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12948 | (eval $ac_try) 2>&5 |
| 12949 | ac_status=$? |
| 12950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12951 | (exit $ac_status); }; } && |
| 12952 | { ac_try='test -s conftest$ac_exeext' |
| 12953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12954 | (eval $ac_try) 2>&5 |
| 12955 | ac_status=$? |
| 12956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12957 | (exit $ac_status); }; }; then |
| 12958 | echo "$as_me:$LINENO: result: yes; with -liconv" >&5 |
| 12959 | echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12960 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12961 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12962 | |
| 12963 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12964 | echo "$as_me: failed program was:" >&5 |
| 12965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12966 | |
| 12967 | LIBS="$save_LIBS" |
| 12968 | cat >conftest.$ac_ext <<_ACEOF |
| 12969 | /* confdefs.h. */ |
| 12970 | _ACEOF |
| 12971 | cat confdefs.h >>conftest.$ac_ext |
| 12972 | cat >>conftest.$ac_ext <<_ACEOF |
| 12973 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12974 | |
| 12975 | #ifdef HAVE_ICONV_H |
| 12976 | # include <iconv.h> |
| 12977 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12978 | |
| 12979 | int |
| 12980 | main () |
| 12981 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 12982 | iconv_open("fr", "to"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 12983 | ; |
| 12984 | return 0; |
| 12985 | } |
| 12986 | _ACEOF |
| 12987 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12989 | (eval $ac_link) 2>conftest.er1 |
| 12990 | ac_status=$? |
| 12991 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12992 | rm -f conftest.er1 |
| 12993 | cat conftest.err >&5 |
| 12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12995 | (exit $ac_status); } && |
| 12996 | { ac_try='test -z "$ac_c_werror_flag" |
| 12997 | || test ! -s conftest.err' |
| 12998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12999 | (eval $ac_try) 2>&5 |
| 13000 | ac_status=$? |
| 13001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13002 | (exit $ac_status); }; } && |
| 13003 | { ac_try='test -s conftest$ac_exeext' |
| 13004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13005 | (eval $ac_try) 2>&5 |
| 13006 | ac_status=$? |
| 13007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13008 | (exit $ac_status); }; }; then |
| 13009 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13010 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13011 | #define HAVE_ICONV 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13012 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13013 | |
| 13014 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13015 | echo "$as_me: failed program was:" >&5 |
| 13016 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13017 | |
| 13018 | echo "$as_me:$LINENO: result: no" >&5 |
| 13019 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13020 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13021 | rm -f conftest.err conftest.$ac_objext \ |
| 13022 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13023 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13024 | rm -f conftest.err conftest.$ac_objext \ |
| 13025 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13026 | |
| 13027 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13028 | echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 |
| 13029 | echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6 |
| 13030 | cat >conftest.$ac_ext <<_ACEOF |
| 13031 | /* confdefs.h. */ |
| 13032 | _ACEOF |
| 13033 | cat confdefs.h >>conftest.$ac_ext |
| 13034 | cat >>conftest.$ac_ext <<_ACEOF |
| 13035 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13036 | |
| 13037 | #ifdef HAVE_LANGINFO_H |
| 13038 | # include <langinfo.h> |
| 13039 | #endif |
| 13040 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13041 | int |
| 13042 | main () |
| 13043 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13044 | char *cs = nl_langinfo(CODESET); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13045 | ; |
| 13046 | return 0; |
| 13047 | } |
| 13048 | _ACEOF |
| 13049 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13051 | (eval $ac_link) 2>conftest.er1 |
| 13052 | ac_status=$? |
| 13053 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13054 | rm -f conftest.er1 |
| 13055 | cat conftest.err >&5 |
| 13056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13057 | (exit $ac_status); } && |
| 13058 | { ac_try='test -z "$ac_c_werror_flag" |
| 13059 | || test ! -s conftest.err' |
| 13060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13061 | (eval $ac_try) 2>&5 |
| 13062 | ac_status=$? |
| 13063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13064 | (exit $ac_status); }; } && |
| 13065 | { ac_try='test -s conftest$ac_exeext' |
| 13066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13067 | (eval $ac_try) 2>&5 |
| 13068 | ac_status=$? |
| 13069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13070 | (exit $ac_status); }; }; then |
| 13071 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13072 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13073 | #define HAVE_NL_LANGINFO_CODESET 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13074 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13075 | |
| 13076 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13077 | echo "$as_me: failed program was:" >&5 |
| 13078 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13079 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13080 | echo "$as_me:$LINENO: result: no" >&5 |
| 13081 | echo "${ECHO_T}no" >&6 |
| 13082 | fi |
| 13083 | rm -f conftest.err conftest.$ac_objext \ |
| 13084 | conftest$ac_exeext conftest.$ac_ext |
| 13085 | |
| 13086 | echo "$as_me:$LINENO: checking --disable-acl argument" >&5 |
| 13087 | echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13088 | # Check whether --enable-acl or --disable-acl was given. |
| 13089 | if test "${enable_acl+set}" = set; then |
| 13090 | enableval="$enable_acl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13091 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13092 | else |
| 13093 | enable_acl="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13094 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13095 | if test "$enable_acl" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13096 | echo "$as_me:$LINENO: result: no" >&5 |
| 13097 | echo "${ECHO_T}no" >&6 |
| 13098 | echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 |
| 13099 | echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6 |
| 13100 | if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then |
| 13101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13102 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13103 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13104 | LIBS="-lposix1e $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13105 | cat >conftest.$ac_ext <<_ACEOF |
| 13106 | /* confdefs.h. */ |
| 13107 | _ACEOF |
| 13108 | cat confdefs.h >>conftest.$ac_ext |
| 13109 | cat >>conftest.$ac_ext <<_ACEOF |
| 13110 | /* end confdefs.h. */ |
| 13111 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13112 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13113 | #ifdef __cplusplus |
| 13114 | extern "C" |
| 13115 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13116 | /* 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] | 13117 | builtin and then its argument prototype would still apply. */ |
| 13118 | char acl_get_file (); |
| 13119 | int |
| 13120 | main () |
| 13121 | { |
| 13122 | acl_get_file (); |
| 13123 | ; |
| 13124 | return 0; |
| 13125 | } |
| 13126 | _ACEOF |
| 13127 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13129 | (eval $ac_link) 2>conftest.er1 |
| 13130 | ac_status=$? |
| 13131 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13132 | rm -f conftest.er1 |
| 13133 | cat conftest.err >&5 |
| 13134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13135 | (exit $ac_status); } && |
| 13136 | { ac_try='test -z "$ac_c_werror_flag" |
| 13137 | || test ! -s conftest.err' |
| 13138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13139 | (eval $ac_try) 2>&5 |
| 13140 | ac_status=$? |
| 13141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13142 | (exit $ac_status); }; } && |
| 13143 | { ac_try='test -s conftest$ac_exeext' |
| 13144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13145 | (eval $ac_try) 2>&5 |
| 13146 | ac_status=$? |
| 13147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13148 | (exit $ac_status); }; }; then |
| 13149 | ac_cv_lib_posix1e_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13150 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13151 | echo "$as_me: failed program was:" >&5 |
| 13152 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13153 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13154 | ac_cv_lib_posix1e_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13155 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13156 | rm -f conftest.err conftest.$ac_objext \ |
| 13157 | conftest$ac_exeext conftest.$ac_ext |
| 13158 | LIBS=$ac_check_lib_save_LIBS |
| 13159 | fi |
| 13160 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 |
| 13161 | echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6 |
| 13162 | if test $ac_cv_lib_posix1e_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13163 | LIBS="$LIBS -lposix1e" |
| 13164 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13165 | echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 |
| 13166 | echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6 |
| 13167 | if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then |
| 13168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13169 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13170 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13171 | LIBS="-lacl $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13172 | cat >conftest.$ac_ext <<_ACEOF |
| 13173 | /* confdefs.h. */ |
| 13174 | _ACEOF |
| 13175 | cat confdefs.h >>conftest.$ac_ext |
| 13176 | cat >>conftest.$ac_ext <<_ACEOF |
| 13177 | /* end confdefs.h. */ |
| 13178 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13179 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13180 | #ifdef __cplusplus |
| 13181 | extern "C" |
| 13182 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13183 | /* 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] | 13184 | builtin and then its argument prototype would still apply. */ |
| 13185 | char acl_get_file (); |
| 13186 | int |
| 13187 | main () |
| 13188 | { |
| 13189 | acl_get_file (); |
| 13190 | ; |
| 13191 | return 0; |
| 13192 | } |
| 13193 | _ACEOF |
| 13194 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13196 | (eval $ac_link) 2>conftest.er1 |
| 13197 | ac_status=$? |
| 13198 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13199 | rm -f conftest.er1 |
| 13200 | cat conftest.err >&5 |
| 13201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13202 | (exit $ac_status); } && |
| 13203 | { ac_try='test -z "$ac_c_werror_flag" |
| 13204 | || test ! -s conftest.err' |
| 13205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13206 | (eval $ac_try) 2>&5 |
| 13207 | ac_status=$? |
| 13208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13209 | (exit $ac_status); }; } && |
| 13210 | { ac_try='test -s conftest$ac_exeext' |
| 13211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13212 | (eval $ac_try) 2>&5 |
| 13213 | ac_status=$? |
| 13214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13215 | (exit $ac_status); }; }; then |
| 13216 | ac_cv_lib_acl_acl_get_file=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13217 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13218 | echo "$as_me: failed program was:" >&5 |
| 13219 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13220 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13221 | ac_cv_lib_acl_acl_get_file=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13222 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13223 | rm -f conftest.err conftest.$ac_objext \ |
| 13224 | conftest$ac_exeext conftest.$ac_ext |
| 13225 | LIBS=$ac_check_lib_save_LIBS |
| 13226 | fi |
| 13227 | echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 |
| 13228 | echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6 |
| 13229 | if test $ac_cv_lib_acl_acl_get_file = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13230 | LIBS="$LIBS -lacl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13231 | echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 |
| 13232 | echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6 |
| 13233 | if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then |
| 13234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13235 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13236 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13237 | LIBS="-lattr $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13238 | cat >conftest.$ac_ext <<_ACEOF |
| 13239 | /* confdefs.h. */ |
| 13240 | _ACEOF |
| 13241 | cat confdefs.h >>conftest.$ac_ext |
| 13242 | cat >>conftest.$ac_ext <<_ACEOF |
| 13243 | /* end confdefs.h. */ |
| 13244 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13245 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13246 | #ifdef __cplusplus |
| 13247 | extern "C" |
| 13248 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13249 | /* 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] | 13250 | builtin and then its argument prototype would still apply. */ |
| 13251 | char fgetxattr (); |
| 13252 | int |
| 13253 | main () |
| 13254 | { |
| 13255 | fgetxattr (); |
| 13256 | ; |
| 13257 | return 0; |
| 13258 | } |
| 13259 | _ACEOF |
| 13260 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13262 | (eval $ac_link) 2>conftest.er1 |
| 13263 | ac_status=$? |
| 13264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13265 | rm -f conftest.er1 |
| 13266 | cat conftest.err >&5 |
| 13267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13268 | (exit $ac_status); } && |
| 13269 | { ac_try='test -z "$ac_c_werror_flag" |
| 13270 | || test ! -s conftest.err' |
| 13271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13272 | (eval $ac_try) 2>&5 |
| 13273 | ac_status=$? |
| 13274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13275 | (exit $ac_status); }; } && |
| 13276 | { ac_try='test -s conftest$ac_exeext' |
| 13277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13278 | (eval $ac_try) 2>&5 |
| 13279 | ac_status=$? |
| 13280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13281 | (exit $ac_status); }; }; then |
| 13282 | ac_cv_lib_attr_fgetxattr=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13283 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13284 | echo "$as_me: failed program was:" >&5 |
| 13285 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13286 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13287 | ac_cv_lib_attr_fgetxattr=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13288 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13289 | rm -f conftest.err conftest.$ac_objext \ |
| 13290 | conftest$ac_exeext conftest.$ac_ext |
| 13291 | LIBS=$ac_check_lib_save_LIBS |
| 13292 | fi |
| 13293 | echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 |
| 13294 | echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6 |
| 13295 | if test $ac_cv_lib_attr_fgetxattr = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13296 | LIBS="$LIBS -lattr" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13297 | fi |
| 13298 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13299 | fi |
| 13300 | |
| 13301 | fi |
| 13302 | |
| 13303 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13304 | echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 |
| 13305 | echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6 |
| 13306 | cat >conftest.$ac_ext <<_ACEOF |
| 13307 | /* confdefs.h. */ |
| 13308 | _ACEOF |
| 13309 | cat confdefs.h >>conftest.$ac_ext |
| 13310 | cat >>conftest.$ac_ext <<_ACEOF |
| 13311 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13312 | |
| 13313 | #include <sys/types.h> |
| 13314 | #ifdef HAVE_SYS_ACL_H |
| 13315 | # include <sys/acl.h> |
| 13316 | #endif |
| 13317 | acl_t acl; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13318 | int |
| 13319 | main () |
| 13320 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13321 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 13322 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 13323 | acl_free(acl); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13324 | ; |
| 13325 | return 0; |
| 13326 | } |
| 13327 | _ACEOF |
| 13328 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13330 | (eval $ac_link) 2>conftest.er1 |
| 13331 | ac_status=$? |
| 13332 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13333 | rm -f conftest.er1 |
| 13334 | cat conftest.err >&5 |
| 13335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13336 | (exit $ac_status); } && |
| 13337 | { ac_try='test -z "$ac_c_werror_flag" |
| 13338 | || test ! -s conftest.err' |
| 13339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13340 | (eval $ac_try) 2>&5 |
| 13341 | ac_status=$? |
| 13342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13343 | (exit $ac_status); }; } && |
| 13344 | { ac_try='test -s conftest$ac_exeext' |
| 13345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13346 | (eval $ac_try) 2>&5 |
| 13347 | ac_status=$? |
| 13348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13349 | (exit $ac_status); }; }; then |
| 13350 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13351 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13352 | #define HAVE_POSIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13353 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13354 | |
| 13355 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13356 | echo "$as_me: failed program was:" >&5 |
| 13357 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13358 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13359 | echo "$as_me:$LINENO: result: no" >&5 |
| 13360 | echo "${ECHO_T}no" >&6 |
| 13361 | fi |
| 13362 | rm -f conftest.err conftest.$ac_objext \ |
| 13363 | conftest$ac_exeext conftest.$ac_ext |
| 13364 | |
| 13365 | echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 |
| 13366 | echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6 |
| 13367 | cat >conftest.$ac_ext <<_ACEOF |
| 13368 | /* confdefs.h. */ |
| 13369 | _ACEOF |
| 13370 | cat confdefs.h >>conftest.$ac_ext |
| 13371 | cat >>conftest.$ac_ext <<_ACEOF |
| 13372 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13373 | |
| 13374 | #ifdef HAVE_SYS_ACL_H |
| 13375 | # include <sys/acl.h> |
| 13376 | #endif |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13377 | int |
| 13378 | main () |
| 13379 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13380 | acl("foo", GETACLCNT, 0, NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13381 | |
| 13382 | ; |
| 13383 | return 0; |
| 13384 | } |
| 13385 | _ACEOF |
| 13386 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13388 | (eval $ac_link) 2>conftest.er1 |
| 13389 | ac_status=$? |
| 13390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13391 | rm -f conftest.er1 |
| 13392 | cat conftest.err >&5 |
| 13393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13394 | (exit $ac_status); } && |
| 13395 | { ac_try='test -z "$ac_c_werror_flag" |
| 13396 | || test ! -s conftest.err' |
| 13397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13398 | (eval $ac_try) 2>&5 |
| 13399 | ac_status=$? |
| 13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13401 | (exit $ac_status); }; } && |
| 13402 | { ac_try='test -s conftest$ac_exeext' |
| 13403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13404 | (eval $ac_try) 2>&5 |
| 13405 | ac_status=$? |
| 13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13407 | (exit $ac_status); }; }; then |
| 13408 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13409 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13410 | #define HAVE_SOLARIS_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13411 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13412 | |
| 13413 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13414 | echo "$as_me: failed program was:" >&5 |
| 13415 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13416 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13417 | echo "$as_me:$LINENO: result: no" >&5 |
| 13418 | echo "${ECHO_T}no" >&6 |
| 13419 | fi |
| 13420 | rm -f conftest.err conftest.$ac_objext \ |
| 13421 | conftest$ac_exeext conftest.$ac_ext |
| 13422 | |
| 13423 | echo "$as_me:$LINENO: checking for AIX ACL support" >&5 |
| 13424 | echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6 |
| 13425 | cat >conftest.$ac_ext <<_ACEOF |
| 13426 | /* confdefs.h. */ |
| 13427 | _ACEOF |
| 13428 | cat confdefs.h >>conftest.$ac_ext |
| 13429 | cat >>conftest.$ac_ext <<_ACEOF |
| 13430 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13431 | |
| 13432 | #ifdef HAVE_SYS_ACL_H |
| 13433 | # include <sys/acl.h> |
| 13434 | #endif |
| 13435 | #ifdef HAVE_SYS_ACCESS_H |
| 13436 | # include <sys/access.h> |
| 13437 | #endif |
| 13438 | #define _ALL_SOURCE |
| 13439 | |
| 13440 | #include <sys/stat.h> |
| 13441 | |
| 13442 | int aclsize; |
| 13443 | struct acl *aclent; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13444 | int |
| 13445 | main () |
| 13446 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13447 | aclsize = sizeof(struct acl); |
| 13448 | aclent = (void *)malloc(aclsize); |
| 13449 | statacl("foo", STX_NORMAL, aclent, aclsize); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13450 | |
| 13451 | ; |
| 13452 | return 0; |
| 13453 | } |
| 13454 | _ACEOF |
| 13455 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13456 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13457 | (eval $ac_link) 2>conftest.er1 |
| 13458 | ac_status=$? |
| 13459 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13460 | rm -f conftest.er1 |
| 13461 | cat conftest.err >&5 |
| 13462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13463 | (exit $ac_status); } && |
| 13464 | { ac_try='test -z "$ac_c_werror_flag" |
| 13465 | || test ! -s conftest.err' |
| 13466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13467 | (eval $ac_try) 2>&5 |
| 13468 | ac_status=$? |
| 13469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13470 | (exit $ac_status); }; } && |
| 13471 | { ac_try='test -s conftest$ac_exeext' |
| 13472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13473 | (eval $ac_try) 2>&5 |
| 13474 | ac_status=$? |
| 13475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13476 | (exit $ac_status); }; }; then |
| 13477 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13478 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13479 | #define HAVE_AIX_ACL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13480 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13481 | |
| 13482 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13483 | echo "$as_me: failed program was:" >&5 |
| 13484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13485 | |
| 13486 | echo "$as_me:$LINENO: result: no" >&5 |
| 13487 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13488 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13489 | rm -f conftest.err conftest.$ac_objext \ |
| 13490 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13491 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13492 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13493 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13494 | fi |
| 13495 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13496 | echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 |
| 13497 | echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13498 | # Check whether --enable-gpm or --disable-gpm was given. |
| 13499 | if test "${enable_gpm+set}" = set; then |
| 13500 | enableval="$enable_gpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13501 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13502 | else |
| 13503 | enable_gpm="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13504 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13505 | |
| 13506 | if test "$enable_gpm" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13507 | echo "$as_me:$LINENO: result: no" >&5 |
| 13508 | echo "${ECHO_T}no" >&6 |
| 13509 | echo "$as_me:$LINENO: checking for gpm" >&5 |
| 13510 | echo $ECHO_N "checking for gpm... $ECHO_C" >&6 |
| 13511 | if test "${vi_cv_have_gpm+set}" = set; then |
| 13512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13513 | else |
| 13514 | olibs="$LIBS" ; LIBS="-lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13515 | cat >conftest.$ac_ext <<_ACEOF |
| 13516 | /* confdefs.h. */ |
| 13517 | _ACEOF |
| 13518 | cat confdefs.h >>conftest.$ac_ext |
| 13519 | cat >>conftest.$ac_ext <<_ACEOF |
| 13520 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13521 | #include <gpm.h> |
| 13522 | #include <linux/keyboard.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13523 | int |
| 13524 | main () |
| 13525 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13526 | Gpm_GetLibVersion(NULL); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13527 | ; |
| 13528 | return 0; |
| 13529 | } |
| 13530 | _ACEOF |
| 13531 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13533 | (eval $ac_link) 2>conftest.er1 |
| 13534 | ac_status=$? |
| 13535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13536 | rm -f conftest.er1 |
| 13537 | cat conftest.err >&5 |
| 13538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13539 | (exit $ac_status); } && |
| 13540 | { ac_try='test -z "$ac_c_werror_flag" |
| 13541 | || test ! -s conftest.err' |
| 13542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13543 | (eval $ac_try) 2>&5 |
| 13544 | ac_status=$? |
| 13545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13546 | (exit $ac_status); }; } && |
| 13547 | { ac_try='test -s conftest$ac_exeext' |
| 13548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13549 | (eval $ac_try) 2>&5 |
| 13550 | ac_status=$? |
| 13551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13552 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13553 | vi_cv_have_gpm=yes |
| 13554 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13555 | echo "$as_me: failed program was:" >&5 |
| 13556 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13557 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13558 | vi_cv_have_gpm=no |
| 13559 | fi |
| 13560 | rm -f conftest.err conftest.$ac_objext \ |
| 13561 | conftest$ac_exeext conftest.$ac_ext |
| 13562 | LIBS="$olibs" |
| 13563 | |
| 13564 | fi |
| 13565 | echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 |
| 13566 | echo "${ECHO_T}$vi_cv_have_gpm" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13567 | if test $vi_cv_have_gpm = yes; then |
| 13568 | LIBS="$LIBS -lgpm" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13569 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13570 | #define HAVE_GPM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13571 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13572 | |
| 13573 | fi |
| 13574 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13575 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13576 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13577 | fi |
| 13578 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13579 | echo "$as_me:$LINENO: checking for rename" >&5 |
| 13580 | echo $ECHO_N "checking for rename... $ECHO_C" >&6 |
| 13581 | cat >conftest.$ac_ext <<_ACEOF |
| 13582 | /* confdefs.h. */ |
| 13583 | _ACEOF |
| 13584 | cat confdefs.h >>conftest.$ac_ext |
| 13585 | cat >>conftest.$ac_ext <<_ACEOF |
| 13586 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13587 | #include <stdio.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13588 | int |
| 13589 | main () |
| 13590 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13591 | rename("this", "that") |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13592 | ; |
| 13593 | return 0; |
| 13594 | } |
| 13595 | _ACEOF |
| 13596 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13598 | (eval $ac_link) 2>conftest.er1 |
| 13599 | ac_status=$? |
| 13600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13601 | rm -f conftest.er1 |
| 13602 | cat conftest.err >&5 |
| 13603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13604 | (exit $ac_status); } && |
| 13605 | { ac_try='test -z "$ac_c_werror_flag" |
| 13606 | || test ! -s conftest.err' |
| 13607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13608 | (eval $ac_try) 2>&5 |
| 13609 | ac_status=$? |
| 13610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13611 | (exit $ac_status); }; } && |
| 13612 | { ac_try='test -s conftest$ac_exeext' |
| 13613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13614 | (eval $ac_try) 2>&5 |
| 13615 | ac_status=$? |
| 13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13617 | (exit $ac_status); }; }; then |
| 13618 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13619 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13620 | #define HAVE_RENAME 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13621 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13622 | |
| 13623 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13624 | echo "$as_me: failed program was:" >&5 |
| 13625 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13626 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13627 | echo "$as_me:$LINENO: result: no" >&5 |
| 13628 | echo "${ECHO_T}no" >&6 |
| 13629 | fi |
| 13630 | rm -f conftest.err conftest.$ac_objext \ |
| 13631 | conftest$ac_exeext conftest.$ac_ext |
| 13632 | |
| 13633 | echo "$as_me:$LINENO: checking for sysctl" >&5 |
| 13634 | echo $ECHO_N "checking for sysctl... $ECHO_C" >&6 |
| 13635 | cat >conftest.$ac_ext <<_ACEOF |
| 13636 | /* confdefs.h. */ |
| 13637 | _ACEOF |
| 13638 | cat confdefs.h >>conftest.$ac_ext |
| 13639 | cat >>conftest.$ac_ext <<_ACEOF |
| 13640 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13641 | #include <sys/types.h> |
| 13642 | #include <sys/sysctl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13643 | int |
| 13644 | main () |
| 13645 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13646 | int mib[2], r; |
| 13647 | size_t len; |
| 13648 | |
| 13649 | mib[0] = CTL_HW; |
| 13650 | mib[1] = HW_USERMEM; |
| 13651 | len = sizeof(r); |
| 13652 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13653 | |
| 13654 | ; |
| 13655 | return 0; |
| 13656 | } |
| 13657 | _ACEOF |
| 13658 | rm -f conftest.$ac_objext |
| 13659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13660 | (eval $ac_compile) 2>conftest.er1 |
| 13661 | ac_status=$? |
| 13662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13663 | rm -f conftest.er1 |
| 13664 | cat conftest.err >&5 |
| 13665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13666 | (exit $ac_status); } && |
| 13667 | { ac_try='test -z "$ac_c_werror_flag" |
| 13668 | || test ! -s conftest.err' |
| 13669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13670 | (eval $ac_try) 2>&5 |
| 13671 | ac_status=$? |
| 13672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13673 | (exit $ac_status); }; } && |
| 13674 | { ac_try='test -s conftest.$ac_objext' |
| 13675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13676 | (eval $ac_try) 2>&5 |
| 13677 | ac_status=$? |
| 13678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13679 | (exit $ac_status); }; }; then |
| 13680 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13681 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13682 | #define HAVE_SYSCTL 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13683 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13684 | |
| 13685 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13686 | echo "$as_me: failed program was:" >&5 |
| 13687 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13688 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13689 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13690 | echo "${ECHO_T}not usable" >&6 |
| 13691 | fi |
| 13692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13693 | |
| 13694 | echo "$as_me:$LINENO: checking for sysinfo" >&5 |
| 13695 | echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6 |
| 13696 | cat >conftest.$ac_ext <<_ACEOF |
| 13697 | /* confdefs.h. */ |
| 13698 | _ACEOF |
| 13699 | cat confdefs.h >>conftest.$ac_ext |
| 13700 | cat >>conftest.$ac_ext <<_ACEOF |
| 13701 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13702 | #include <sys/types.h> |
| 13703 | #include <sys/sysinfo.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13704 | int |
| 13705 | main () |
| 13706 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13707 | struct sysinfo sinfo; |
| 13708 | int t; |
| 13709 | |
| 13710 | (void)sysinfo(&sinfo); |
| 13711 | t = sinfo.totalram; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13712 | |
| 13713 | ; |
| 13714 | return 0; |
| 13715 | } |
| 13716 | _ACEOF |
| 13717 | rm -f conftest.$ac_objext |
| 13718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13719 | (eval $ac_compile) 2>conftest.er1 |
| 13720 | ac_status=$? |
| 13721 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13722 | rm -f conftest.er1 |
| 13723 | cat conftest.err >&5 |
| 13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13725 | (exit $ac_status); } && |
| 13726 | { ac_try='test -z "$ac_c_werror_flag" |
| 13727 | || test ! -s conftest.err' |
| 13728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13729 | (eval $ac_try) 2>&5 |
| 13730 | ac_status=$? |
| 13731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13732 | (exit $ac_status); }; } && |
| 13733 | { ac_try='test -s conftest.$ac_objext' |
| 13734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13735 | (eval $ac_try) 2>&5 |
| 13736 | ac_status=$? |
| 13737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13738 | (exit $ac_status); }; }; then |
| 13739 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13740 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13741 | #define HAVE_SYSINFO 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13742 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13743 | |
| 13744 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13745 | echo "$as_me: failed program was:" >&5 |
| 13746 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13747 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13748 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13749 | echo "${ECHO_T}not usable" >&6 |
| 13750 | fi |
| 13751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13752 | |
Bram Moolenaar | 914572a | 2007-05-01 11:37:47 +0000 | [diff] [blame] | 13753 | echo "$as_me:$LINENO: checking for sysinfo.mem_unit" >&5 |
| 13754 | echo $ECHO_N "checking for sysinfo.mem_unit... $ECHO_C" >&6 |
| 13755 | cat >conftest.$ac_ext <<_ACEOF |
| 13756 | /* confdefs.h. */ |
| 13757 | _ACEOF |
| 13758 | cat confdefs.h >>conftest.$ac_ext |
| 13759 | cat >>conftest.$ac_ext <<_ACEOF |
| 13760 | /* end confdefs.h. */ |
| 13761 | #include <sys/types.h> |
| 13762 | #include <sys/sysinfo.h> |
| 13763 | int |
| 13764 | main () |
| 13765 | { |
| 13766 | struct sysinfo sinfo; |
| 13767 | sinfo.mem_unit = 1; |
| 13768 | |
| 13769 | ; |
| 13770 | return 0; |
| 13771 | } |
| 13772 | _ACEOF |
| 13773 | rm -f conftest.$ac_objext |
| 13774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13775 | (eval $ac_compile) 2>conftest.er1 |
| 13776 | ac_status=$? |
| 13777 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13778 | rm -f conftest.er1 |
| 13779 | cat conftest.err >&5 |
| 13780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13781 | (exit $ac_status); } && |
| 13782 | { ac_try='test -z "$ac_c_werror_flag" |
| 13783 | || test ! -s conftest.err' |
| 13784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13785 | (eval $ac_try) 2>&5 |
| 13786 | ac_status=$? |
| 13787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13788 | (exit $ac_status); }; } && |
| 13789 | { ac_try='test -s conftest.$ac_objext' |
| 13790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13791 | (eval $ac_try) 2>&5 |
| 13792 | ac_status=$? |
| 13793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13794 | (exit $ac_status); }; }; then |
| 13795 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13796 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
| 13797 | #define HAVE_SYSINFO_MEM_UNIT 1 |
| 13798 | _ACEOF |
| 13799 | |
| 13800 | else |
| 13801 | echo "$as_me: failed program was:" >&5 |
| 13802 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13803 | |
| 13804 | echo "$as_me:$LINENO: result: no" >&5 |
| 13805 | echo "${ECHO_T}no" >&6 |
| 13806 | fi |
| 13807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13808 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13809 | echo "$as_me:$LINENO: checking for sysconf" >&5 |
| 13810 | echo $ECHO_N "checking for sysconf... $ECHO_C" >&6 |
| 13811 | cat >conftest.$ac_ext <<_ACEOF |
| 13812 | /* confdefs.h. */ |
| 13813 | _ACEOF |
| 13814 | cat confdefs.h >>conftest.$ac_ext |
| 13815 | cat >>conftest.$ac_ext <<_ACEOF |
| 13816 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13817 | #include <unistd.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13818 | int |
| 13819 | main () |
| 13820 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13821 | (void)sysconf(_SC_PAGESIZE); |
| 13822 | (void)sysconf(_SC_PHYS_PAGES); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13823 | |
| 13824 | ; |
| 13825 | return 0; |
| 13826 | } |
| 13827 | _ACEOF |
| 13828 | rm -f conftest.$ac_objext |
| 13829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13830 | (eval $ac_compile) 2>conftest.er1 |
| 13831 | ac_status=$? |
| 13832 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13833 | rm -f conftest.er1 |
| 13834 | cat conftest.err >&5 |
| 13835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13836 | (exit $ac_status); } && |
| 13837 | { ac_try='test -z "$ac_c_werror_flag" |
| 13838 | || test ! -s conftest.err' |
| 13839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13840 | (eval $ac_try) 2>&5 |
| 13841 | ac_status=$? |
| 13842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13843 | (exit $ac_status); }; } && |
| 13844 | { ac_try='test -s conftest.$ac_objext' |
| 13845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13846 | (eval $ac_try) 2>&5 |
| 13847 | ac_status=$? |
| 13848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13849 | (exit $ac_status); }; }; then |
| 13850 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13851 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13852 | #define HAVE_SYSCONF 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13853 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13854 | |
| 13855 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13856 | echo "$as_me: failed program was:" >&5 |
| 13857 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13858 | |
| 13859 | echo "$as_me:$LINENO: result: not usable" >&5 |
| 13860 | echo "${ECHO_T}not usable" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13861 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13863 | |
| 13864 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13865 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 13866 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 13867 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 13868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13869 | else |
| 13870 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13871 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13872 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13873 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13874 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13875 | cat >conftest.$ac_ext <<_ACEOF |
| 13876 | /* confdefs.h. */ |
| 13877 | _ACEOF |
| 13878 | cat confdefs.h >>conftest.$ac_ext |
| 13879 | cat >>conftest.$ac_ext <<_ACEOF |
| 13880 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13881 | #include <stdio.h> |
| 13882 | main() |
| 13883 | { |
| 13884 | FILE *f=fopen("conftestval", "w"); |
| 13885 | if (!f) exit(1); |
| 13886 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 13887 | exit(0); |
| 13888 | } |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13889 | _ACEOF |
| 13890 | rm -f conftest$ac_exeext |
| 13891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13892 | (eval $ac_link) 2>&5 |
| 13893 | ac_status=$? |
| 13894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13895 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13897 | (eval $ac_try) 2>&5 |
| 13898 | ac_status=$? |
| 13899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13900 | (exit $ac_status); }; }; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13901 | ac_cv_sizeof_int=`cat conftestval` |
| 13902 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13903 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13904 | echo "$as_me: failed program was:" >&5 |
| 13905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13906 | |
| 13907 | ( exit $ac_status ) |
| 13908 | ac_cv_sizeof_int=0 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13909 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13910 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13911 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13912 | fi |
| 13913 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13914 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13915 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 13916 | cat >>confdefs.h <<_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13917 | #define SIZEOF_INT $ac_cv_sizeof_int |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13918 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13919 | |
| 13920 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13921 | echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5 |
| 13922 | 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] | 13923 | bcopy_test_prog=' |
| 13924 | main() { |
| 13925 | char buf[10]; |
| 13926 | strcpy(buf, "abcdefghi"); |
| 13927 | mch_memmove(buf, buf + 2, 3); |
| 13928 | if (strncmp(buf, "ababcf", 6)) |
| 13929 | exit(1); |
| 13930 | strcpy(buf, "abcdefghi"); |
| 13931 | mch_memmove(buf + 2, buf, 3); |
| 13932 | if (strncmp(buf, "cdedef", 6)) |
| 13933 | exit(1); |
| 13934 | exit(0); /* libc version works properly. */ |
| 13935 | }' |
| 13936 | |
| 13937 | |
| 13938 | if test "$cross_compiling" = yes; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13939 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13940 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13941 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13942 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13943 | cat >conftest.$ac_ext <<_ACEOF |
| 13944 | /* confdefs.h. */ |
| 13945 | _ACEOF |
| 13946 | cat confdefs.h >>conftest.$ac_ext |
| 13947 | cat >>conftest.$ac_ext <<_ACEOF |
| 13948 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13949 | #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] | 13950 | _ACEOF |
| 13951 | rm -f conftest$ac_exeext |
| 13952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13953 | (eval $ac_link) 2>&5 |
| 13954 | ac_status=$? |
| 13955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13956 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13958 | (eval $ac_try) 2>&5 |
| 13959 | ac_status=$? |
| 13960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13961 | (exit $ac_status); }; }; then |
| 13962 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13963 | #define USEMEMMOVE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13964 | _ACEOF |
| 13965 | echo "$as_me:$LINENO: result: memmove does" >&5 |
| 13966 | echo "${ECHO_T}memmove does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13967 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13968 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13969 | echo "$as_me: failed program was:" >&5 |
| 13970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13971 | |
| 13972 | ( exit $ac_status ) |
| 13973 | if test "$cross_compiling" = yes; then |
| 13974 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 13975 | echo "$as_me: error: failed to compile test program" >&2;} |
| 13976 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13977 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13978 | cat >conftest.$ac_ext <<_ACEOF |
| 13979 | /* confdefs.h. */ |
| 13980 | _ACEOF |
| 13981 | cat confdefs.h >>conftest.$ac_ext |
| 13982 | cat >>conftest.$ac_ext <<_ACEOF |
| 13983 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13984 | #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] | 13985 | _ACEOF |
| 13986 | rm -f conftest$ac_exeext |
| 13987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13988 | (eval $ac_link) 2>&5 |
| 13989 | ac_status=$? |
| 13990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13991 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13993 | (eval $ac_try) 2>&5 |
| 13994 | ac_status=$? |
| 13995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13996 | (exit $ac_status); }; }; then |
| 13997 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 13998 | #define USEBCOPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 13999 | _ACEOF |
| 14000 | echo "$as_me:$LINENO: result: bcopy does" >&5 |
| 14001 | echo "${ECHO_T}bcopy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14002 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14003 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14004 | echo "$as_me: failed program was:" >&5 |
| 14005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14006 | |
| 14007 | ( exit $ac_status ) |
| 14008 | if test "$cross_compiling" = yes; then |
| 14009 | { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 |
| 14010 | echo "$as_me: error: failed to compile test program" >&2;} |
| 14011 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14012 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14013 | cat >conftest.$ac_ext <<_ACEOF |
| 14014 | /* confdefs.h. */ |
| 14015 | _ACEOF |
| 14016 | cat confdefs.h >>conftest.$ac_ext |
| 14017 | cat >>conftest.$ac_ext <<_ACEOF |
| 14018 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14019 | #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] | 14020 | _ACEOF |
| 14021 | rm -f conftest$ac_exeext |
| 14022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14023 | (eval $ac_link) 2>&5 |
| 14024 | ac_status=$? |
| 14025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14026 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14028 | (eval $ac_try) 2>&5 |
| 14029 | ac_status=$? |
| 14030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14031 | (exit $ac_status); }; }; then |
| 14032 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14033 | #define USEMEMCPY 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14034 | _ACEOF |
| 14035 | echo "$as_me:$LINENO: result: memcpy does" >&5 |
| 14036 | echo "${ECHO_T}memcpy does" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14037 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14038 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14039 | echo "$as_me: failed program was:" >&5 |
| 14040 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14041 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14042 | ( exit $ac_status ) |
| 14043 | echo "$as_me:$LINENO: result: no" >&5 |
| 14044 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14045 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14046 | 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] | 14047 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14048 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14049 | 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] | 14050 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14051 | fi |
| 14052 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14053 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14054 | |
| 14055 | |
| 14056 | if test "$enable_multibyte" = "yes"; then |
| 14057 | cflags_save=$CFLAGS |
| 14058 | ldflags_save=$LDFLAGS |
| 14059 | if test -n "$x_includes" ; then |
| 14060 | CFLAGS="$CFLAGS -I$x_includes" |
| 14061 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14062 | echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 |
| 14063 | echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6 |
| 14064 | cat >conftest.$ac_ext <<_ACEOF |
| 14065 | /* confdefs.h. */ |
| 14066 | _ACEOF |
| 14067 | cat confdefs.h >>conftest.$ac_ext |
| 14068 | cat >>conftest.$ac_ext <<_ACEOF |
| 14069 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14070 | #include <X11/Xlocale.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14071 | int |
| 14072 | main () |
| 14073 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14074 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14075 | ; |
| 14076 | return 0; |
| 14077 | } |
| 14078 | _ACEOF |
| 14079 | rm -f conftest.$ac_objext |
| 14080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14081 | (eval $ac_compile) 2>conftest.er1 |
| 14082 | ac_status=$? |
| 14083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14084 | rm -f conftest.er1 |
| 14085 | cat conftest.err >&5 |
| 14086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14087 | (exit $ac_status); } && |
| 14088 | { ac_try='test -z "$ac_c_werror_flag" |
| 14089 | || test ! -s conftest.err' |
| 14090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14091 | (eval $ac_try) 2>&5 |
| 14092 | ac_status=$? |
| 14093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14094 | (exit $ac_status); }; } && |
| 14095 | { ac_try='test -s conftest.$ac_objext' |
| 14096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14097 | (eval $ac_try) 2>&5 |
| 14098 | ac_status=$? |
| 14099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14100 | (exit $ac_status); }; }; then |
| 14101 | cat >conftest.$ac_ext <<_ACEOF |
| 14102 | /* confdefs.h. */ |
| 14103 | _ACEOF |
| 14104 | cat confdefs.h >>conftest.$ac_ext |
| 14105 | cat >>conftest.$ac_ext <<_ACEOF |
| 14106 | /* end confdefs.h. */ |
| 14107 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14108 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14109 | #ifdef __cplusplus |
| 14110 | extern "C" |
| 14111 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14112 | /* 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] | 14113 | builtin and then its argument prototype would still apply. */ |
| 14114 | char _Xsetlocale (); |
| 14115 | int |
| 14116 | main () |
| 14117 | { |
| 14118 | _Xsetlocale (); |
| 14119 | ; |
| 14120 | return 0; |
| 14121 | } |
| 14122 | _ACEOF |
| 14123 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14125 | (eval $ac_link) 2>conftest.er1 |
| 14126 | ac_status=$? |
| 14127 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14128 | rm -f conftest.er1 |
| 14129 | cat conftest.err >&5 |
| 14130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14131 | (exit $ac_status); } && |
| 14132 | { ac_try='test -z "$ac_c_werror_flag" |
| 14133 | || test ! -s conftest.err' |
| 14134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14135 | (eval $ac_try) 2>&5 |
| 14136 | ac_status=$? |
| 14137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14138 | (exit $ac_status); }; } && |
| 14139 | { ac_try='test -s conftest$ac_exeext' |
| 14140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14141 | (eval $ac_try) 2>&5 |
| 14142 | ac_status=$? |
| 14143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14144 | (exit $ac_status); }; }; then |
| 14145 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14146 | echo "${ECHO_T}yes" >&6 |
| 14147 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14148 | #define X_LOCALE 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14149 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14150 | |
| 14151 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14152 | echo "$as_me: failed program was:" >&5 |
| 14153 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14154 | |
| 14155 | echo "$as_me:$LINENO: result: no" >&5 |
| 14156 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14157 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14158 | rm -f conftest.err conftest.$ac_objext \ |
| 14159 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14160 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14161 | echo "$as_me: failed program was:" >&5 |
| 14162 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14163 | |
| 14164 | echo "$as_me:$LINENO: result: no" >&5 |
| 14165 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14166 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14168 | fi |
| 14169 | CFLAGS=$cflags_save |
| 14170 | LDFLAGS=$ldflags_save |
| 14171 | fi |
| 14172 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14173 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 14174 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
| 14175 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then |
| 14176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14177 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14178 | ac_check_lib_save_LIBS=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14179 | LIBS="-lxpg4 $LIBS" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14180 | cat >conftest.$ac_ext <<_ACEOF |
| 14181 | /* confdefs.h. */ |
| 14182 | _ACEOF |
| 14183 | cat confdefs.h >>conftest.$ac_ext |
| 14184 | cat >>conftest.$ac_ext <<_ACEOF |
| 14185 | /* end confdefs.h. */ |
| 14186 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14187 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14188 | #ifdef __cplusplus |
| 14189 | extern "C" |
| 14190 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14191 | /* 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] | 14192 | builtin and then its argument prototype would still apply. */ |
| 14193 | char _xpg4_setrunelocale (); |
| 14194 | int |
| 14195 | main () |
| 14196 | { |
| 14197 | _xpg4_setrunelocale (); |
| 14198 | ; |
| 14199 | return 0; |
| 14200 | } |
| 14201 | _ACEOF |
| 14202 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14204 | (eval $ac_link) 2>conftest.er1 |
| 14205 | ac_status=$? |
| 14206 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14207 | rm -f conftest.er1 |
| 14208 | cat conftest.err >&5 |
| 14209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14210 | (exit $ac_status); } && |
| 14211 | { ac_try='test -z "$ac_c_werror_flag" |
| 14212 | || test ! -s conftest.err' |
| 14213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14214 | (eval $ac_try) 2>&5 |
| 14215 | ac_status=$? |
| 14216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14217 | (exit $ac_status); }; } && |
| 14218 | { ac_try='test -s conftest$ac_exeext' |
| 14219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14220 | (eval $ac_try) 2>&5 |
| 14221 | ac_status=$? |
| 14222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14223 | (exit $ac_status); }; }; then |
| 14224 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14225 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14226 | echo "$as_me: failed program was:" >&5 |
| 14227 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14228 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14229 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14230 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14231 | rm -f conftest.err conftest.$ac_objext \ |
| 14232 | conftest$ac_exeext conftest.$ac_ext |
| 14233 | LIBS=$ac_check_lib_save_LIBS |
| 14234 | fi |
| 14235 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
| 14236 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
| 14237 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14238 | LIBS="$LIBS -lxpg4" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14239 | fi |
| 14240 | |
| 14241 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14242 | echo "$as_me:$LINENO: checking how to create tags" >&5 |
| 14243 | echo $ECHO_N "checking how to create tags... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14244 | test -f tags && mv tags tags.save |
| 14245 | 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] | 14246 | TAGPRG="ctags -I INIT+ --fields=+S" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14247 | else |
| 14248 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 14249 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 14250 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 14251 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 14252 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 14253 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 14254 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 14255 | fi |
| 14256 | test -f tags.save && mv tags.save tags |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14257 | echo "$as_me:$LINENO: result: $TAGPRG" >&5 |
| 14258 | echo "${ECHO_T}$TAGPRG" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14259 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14260 | echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 |
| 14261 | 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] | 14262 | MANDEF="man" |
Bram Moolenaar | 8b13150 | 2008-02-13 09:28:19 +0000 | [diff] [blame] | 14263 | (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] | 14264 | echo "$as_me:$LINENO: result: $MANDEF" >&5 |
| 14265 | echo "${ECHO_T}$MANDEF" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14266 | if test "$MANDEF" = "man -s"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14267 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14268 | #define USEMAN_S 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14269 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14270 | |
| 14271 | fi |
| 14272 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14273 | echo "$as_me:$LINENO: checking --disable-nls argument" >&5 |
| 14274 | echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14275 | # Check whether --enable-nls or --disable-nls was given. |
| 14276 | if test "${enable_nls+set}" = set; then |
| 14277 | enableval="$enable_nls" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14278 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14279 | else |
| 14280 | enable_nls="yes" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14281 | fi; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14282 | |
| 14283 | if test "$enable_nls" = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14284 | echo "$as_me:$LINENO: result: no" >&5 |
| 14285 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 14286 | |
| 14287 | INSTALL_LANGS=install-languages |
| 14288 | |
| 14289 | INSTALL_TOOL_LANGS=install-tool-languages |
| 14290 | |
| 14291 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14292 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 14293 | set dummy msgfmt; ac_word=$2 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14294 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 14295 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 14296 | if test "${ac_cv_prog_MSGFMT+set}" = set; then |
| 14297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14298 | else |
| 14299 | if test -n "$MSGFMT"; then |
| 14300 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 14301 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14302 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14303 | for as_dir in $PATH |
| 14304 | do |
| 14305 | IFS=$as_save_IFS |
| 14306 | test -z "$as_dir" && as_dir=. |
| 14307 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14308 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 14309 | ac_cv_prog_MSGFMT="msgfmt" |
| 14310 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14311 | break 2 |
| 14312 | fi |
| 14313 | done |
| 14314 | done |
| 14315 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14316 | fi |
| 14317 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14318 | MSGFMT=$ac_cv_prog_MSGFMT |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14319 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14320 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 14321 | echo "${ECHO_T}$MSGFMT" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14322 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14323 | echo "$as_me:$LINENO: result: no" >&5 |
| 14324 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14325 | fi |
| 14326 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14327 | echo "$as_me:$LINENO: checking for NLS" >&5 |
| 14328 | echo $ECHO_N "checking for NLS... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14329 | if test -f po/Makefile; then |
| 14330 | have_gettext="no" |
| 14331 | if test -n "$MSGFMT"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14332 | cat >conftest.$ac_ext <<_ACEOF |
| 14333 | /* confdefs.h. */ |
| 14334 | _ACEOF |
| 14335 | cat confdefs.h >>conftest.$ac_ext |
| 14336 | cat >>conftest.$ac_ext <<_ACEOF |
| 14337 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14338 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14339 | int |
| 14340 | main () |
| 14341 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14342 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14343 | ; |
| 14344 | return 0; |
| 14345 | } |
| 14346 | _ACEOF |
| 14347 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14349 | (eval $ac_link) 2>conftest.er1 |
| 14350 | ac_status=$? |
| 14351 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14352 | rm -f conftest.er1 |
| 14353 | cat conftest.err >&5 |
| 14354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14355 | (exit $ac_status); } && |
| 14356 | { ac_try='test -z "$ac_c_werror_flag" |
| 14357 | || test ! -s conftest.err' |
| 14358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14359 | (eval $ac_try) 2>&5 |
| 14360 | ac_status=$? |
| 14361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14362 | (exit $ac_status); }; } && |
| 14363 | { ac_try='test -s conftest$ac_exeext' |
| 14364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14365 | (eval $ac_try) 2>&5 |
| 14366 | ac_status=$? |
| 14367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14368 | (exit $ac_status); }; }; then |
| 14369 | echo "$as_me:$LINENO: result: gettext() works" >&5 |
| 14370 | echo "${ECHO_T}gettext() works" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14371 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14372 | echo "$as_me: failed program was:" >&5 |
| 14373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14374 | |
| 14375 | olibs=$LIBS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14376 | LIBS="$LIBS -lintl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14377 | cat >conftest.$ac_ext <<_ACEOF |
| 14378 | /* confdefs.h. */ |
| 14379 | _ACEOF |
| 14380 | cat confdefs.h >>conftest.$ac_ext |
| 14381 | cat >>conftest.$ac_ext <<_ACEOF |
| 14382 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14383 | #include <libintl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14384 | int |
| 14385 | main () |
| 14386 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14387 | gettext("Test"); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14388 | ; |
| 14389 | return 0; |
| 14390 | } |
| 14391 | _ACEOF |
| 14392 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14394 | (eval $ac_link) 2>conftest.er1 |
| 14395 | ac_status=$? |
| 14396 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14397 | rm -f conftest.er1 |
| 14398 | cat conftest.err >&5 |
| 14399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14400 | (exit $ac_status); } && |
| 14401 | { ac_try='test -z "$ac_c_werror_flag" |
| 14402 | || test ! -s conftest.err' |
| 14403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14404 | (eval $ac_try) 2>&5 |
| 14405 | ac_status=$? |
| 14406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14407 | (exit $ac_status); }; } && |
| 14408 | { ac_try='test -s conftest$ac_exeext' |
| 14409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14410 | (eval $ac_try) 2>&5 |
| 14411 | ac_status=$? |
| 14412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14413 | (exit $ac_status); }; }; then |
| 14414 | echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 |
| 14415 | echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14416 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14417 | echo "$as_me: failed program was:" >&5 |
| 14418 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14419 | |
| 14420 | echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 |
| 14421 | echo "${ECHO_T}gettext() doesn't work" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14422 | LIBS=$olibs |
| 14423 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14424 | rm -f conftest.err conftest.$ac_objext \ |
| 14425 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14426 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14427 | rm -f conftest.err conftest.$ac_objext \ |
| 14428 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14429 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14430 | echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 |
| 14431 | echo "${ECHO_T}msgfmt not found - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14432 | fi |
| 14433 | if test $have_gettext = "yes"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14434 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14435 | #define HAVE_GETTEXT 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14436 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14437 | |
| 14438 | MAKEMO=yes |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14439 | |
| 14440 | |
| 14441 | for ac_func in bind_textdomain_codeset |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14442 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14443 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14444 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14445 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14446 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14448 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14449 | cat >conftest.$ac_ext <<_ACEOF |
| 14450 | /* confdefs.h. */ |
| 14451 | _ACEOF |
| 14452 | cat confdefs.h >>conftest.$ac_ext |
| 14453 | cat >>conftest.$ac_ext <<_ACEOF |
| 14454 | /* end confdefs.h. */ |
| 14455 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14456 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14457 | #define $ac_func innocuous_$ac_func |
| 14458 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14459 | /* System header to define __stub macros and hopefully few prototypes, |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14460 | which can conflict with char $ac_func (); below. |
| 14461 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14462 | <limits.h> exists even on freestanding compilers. */ |
| 14463 | |
| 14464 | #ifdef __STDC__ |
| 14465 | # include <limits.h> |
| 14466 | #else |
| 14467 | # include <assert.h> |
| 14468 | #endif |
| 14469 | |
| 14470 | #undef $ac_func |
| 14471 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14472 | /* Override any gcc2 internal prototype to avoid an error. */ |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14473 | #ifdef __cplusplus |
| 14474 | extern "C" |
| 14475 | { |
| 14476 | #endif |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14477 | /* 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] | 14478 | builtin and then its argument prototype would still apply. */ |
| 14479 | char $ac_func (); |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14480 | /* The GNU C library defines this for functions which it implements |
| 14481 | to always fail with ENOSYS. Some functions are actually named |
| 14482 | something starting with __ and the normal name is an alias. */ |
| 14483 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14484 | choke me |
| 14485 | #else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14486 | char (*f) () = $ac_func; |
| 14487 | #endif |
| 14488 | #ifdef __cplusplus |
| 14489 | } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14490 | #endif |
| 14491 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14492 | int |
| 14493 | main () |
| 14494 | { |
| 14495 | return f != $ac_func; |
| 14496 | ; |
| 14497 | return 0; |
| 14498 | } |
| 14499 | _ACEOF |
| 14500 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14502 | (eval $ac_link) 2>conftest.er1 |
| 14503 | ac_status=$? |
| 14504 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14505 | rm -f conftest.er1 |
| 14506 | cat conftest.err >&5 |
| 14507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14508 | (exit $ac_status); } && |
| 14509 | { ac_try='test -z "$ac_c_werror_flag" |
| 14510 | || test ! -s conftest.err' |
| 14511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14512 | (eval $ac_try) 2>&5 |
| 14513 | ac_status=$? |
| 14514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14515 | (exit $ac_status); }; } && |
| 14516 | { ac_try='test -s conftest$ac_exeext' |
| 14517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14518 | (eval $ac_try) 2>&5 |
| 14519 | ac_status=$? |
| 14520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14521 | (exit $ac_status); }; }; then |
| 14522 | eval "$as_ac_var=yes" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14523 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14524 | echo "$as_me: failed program was:" >&5 |
| 14525 | sed 's/^/| /' conftest.$ac_ext >&5 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14526 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14527 | eval "$as_ac_var=no" |
| 14528 | fi |
| 14529 | rm -f conftest.err conftest.$ac_objext \ |
| 14530 | conftest$ac_exeext conftest.$ac_ext |
| 14531 | fi |
| 14532 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14533 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14534 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14535 | cat >>confdefs.h <<_ACEOF |
| 14536 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14537 | _ACEOF |
| 14538 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14539 | fi |
| 14540 | done |
| 14541 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14542 | echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 |
| 14543 | echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6 |
| 14544 | cat >conftest.$ac_ext <<_ACEOF |
| 14545 | /* confdefs.h. */ |
| 14546 | _ACEOF |
| 14547 | cat confdefs.h >>conftest.$ac_ext |
| 14548 | cat >>conftest.$ac_ext <<_ACEOF |
| 14549 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14550 | #include <libintl.h> |
| 14551 | extern int _nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14552 | int |
| 14553 | main () |
| 14554 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14555 | ++_nl_msg_cat_cntr; |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14556 | ; |
| 14557 | return 0; |
| 14558 | } |
| 14559 | _ACEOF |
| 14560 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14562 | (eval $ac_link) 2>conftest.er1 |
| 14563 | ac_status=$? |
| 14564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14565 | rm -f conftest.er1 |
| 14566 | cat conftest.err >&5 |
| 14567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14568 | (exit $ac_status); } && |
| 14569 | { ac_try='test -z "$ac_c_werror_flag" |
| 14570 | || test ! -s conftest.err' |
| 14571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14572 | (eval $ac_try) 2>&5 |
| 14573 | ac_status=$? |
| 14574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14575 | (exit $ac_status); }; } && |
| 14576 | { ac_try='test -s conftest$ac_exeext' |
| 14577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14578 | (eval $ac_try) 2>&5 |
| 14579 | ac_status=$? |
| 14580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14581 | (exit $ac_status); }; }; then |
| 14582 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14583 | echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14584 | #define HAVE_NL_MSG_CAT_CNTR 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14585 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14586 | |
| 14587 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14588 | echo "$as_me: failed program was:" >&5 |
| 14589 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14590 | |
| 14591 | echo "$as_me:$LINENO: result: no" >&5 |
| 14592 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14593 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14594 | rm -f conftest.err conftest.$ac_objext \ |
| 14595 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14596 | fi |
| 14597 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14598 | echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 |
| 14599 | echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14600 | fi |
| 14601 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14602 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14603 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14604 | fi |
| 14605 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14606 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14607 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 14608 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 14609 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14611 | fi |
| 14612 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 14613 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14614 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14615 | # Is the header compilable? |
| 14616 | echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 |
| 14617 | echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 |
| 14618 | cat >conftest.$ac_ext <<_ACEOF |
| 14619 | /* confdefs.h. */ |
| 14620 | _ACEOF |
| 14621 | cat confdefs.h >>conftest.$ac_ext |
| 14622 | cat >>conftest.$ac_ext <<_ACEOF |
| 14623 | /* end confdefs.h. */ |
| 14624 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14625 | #include <dlfcn.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14626 | _ACEOF |
| 14627 | rm -f conftest.$ac_objext |
| 14628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14629 | (eval $ac_compile) 2>conftest.er1 |
| 14630 | ac_status=$? |
| 14631 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14632 | rm -f conftest.er1 |
| 14633 | cat conftest.err >&5 |
| 14634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14635 | (exit $ac_status); } && |
| 14636 | { ac_try='test -z "$ac_c_werror_flag" |
| 14637 | || test ! -s conftest.err' |
| 14638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14639 | (eval $ac_try) 2>&5 |
| 14640 | ac_status=$? |
| 14641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14642 | (exit $ac_status); }; } && |
| 14643 | { ac_try='test -s conftest.$ac_objext' |
| 14644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14645 | (eval $ac_try) 2>&5 |
| 14646 | ac_status=$? |
| 14647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14648 | (exit $ac_status); }; }; then |
| 14649 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14650 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14651 | echo "$as_me: failed program was:" >&5 |
| 14652 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14653 | |
| 14654 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14655 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14657 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14658 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14659 | |
| 14660 | # Is the header present? |
| 14661 | echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 |
| 14662 | echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 |
| 14663 | cat >conftest.$ac_ext <<_ACEOF |
| 14664 | /* confdefs.h. */ |
| 14665 | _ACEOF |
| 14666 | cat confdefs.h >>conftest.$ac_ext |
| 14667 | cat >>conftest.$ac_ext <<_ACEOF |
| 14668 | /* end confdefs.h. */ |
| 14669 | #include <dlfcn.h> |
| 14670 | _ACEOF |
| 14671 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14672 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14673 | ac_status=$? |
| 14674 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14675 | rm -f conftest.er1 |
| 14676 | cat conftest.err >&5 |
| 14677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14678 | (exit $ac_status); } >/dev/null; then |
| 14679 | if test -s conftest.err; then |
| 14680 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14681 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14682 | else |
| 14683 | ac_cpp_err= |
| 14684 | fi |
| 14685 | else |
| 14686 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14687 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14688 | if test -z "$ac_cpp_err"; then |
| 14689 | ac_header_preproc=yes |
| 14690 | else |
| 14691 | echo "$as_me: failed program was:" >&5 |
| 14692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14693 | |
| 14694 | ac_header_preproc=no |
| 14695 | fi |
| 14696 | rm -f conftest.err conftest.$ac_ext |
| 14697 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14698 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14699 | |
| 14700 | # So? What about this header? |
| 14701 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14702 | yes:no: ) |
| 14703 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14704 | echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14705 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 |
| 14706 | echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} |
| 14707 | ac_header_preproc=yes |
| 14708 | ;; |
| 14709 | no:yes:* ) |
| 14710 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 |
| 14711 | echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} |
| 14712 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 |
| 14713 | echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} |
| 14714 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 |
| 14715 | echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} |
| 14716 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14717 | echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14718 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 |
| 14719 | echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} |
| 14720 | { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 |
| 14721 | echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} |
| 14722 | ( |
| 14723 | cat <<\_ASBOX |
| 14724 | ## ------------------------------------------ ## |
| 14725 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14726 | ## ------------------------------------------ ## |
| 14727 | _ASBOX |
| 14728 | ) | |
| 14729 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14730 | ;; |
| 14731 | esac |
| 14732 | echo "$as_me:$LINENO: checking for dlfcn.h" >&5 |
| 14733 | echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 |
| 14734 | if test "${ac_cv_header_dlfcn_h+set}" = set; then |
| 14735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14736 | else |
| 14737 | ac_cv_header_dlfcn_h=$ac_header_preproc |
| 14738 | fi |
| 14739 | echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 |
| 14740 | echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 |
| 14741 | |
| 14742 | fi |
| 14743 | if test $ac_cv_header_dlfcn_h = yes; then |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14744 | DLL=dlfcn.h |
| 14745 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14746 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14747 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 14748 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 14749 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14751 | fi |
| 14752 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 14753 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14754 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14755 | # Is the header compilable? |
| 14756 | echo "$as_me:$LINENO: checking dl.h usability" >&5 |
| 14757 | echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6 |
| 14758 | cat >conftest.$ac_ext <<_ACEOF |
| 14759 | /* confdefs.h. */ |
| 14760 | _ACEOF |
| 14761 | cat confdefs.h >>conftest.$ac_ext |
| 14762 | cat >>conftest.$ac_ext <<_ACEOF |
| 14763 | /* end confdefs.h. */ |
| 14764 | $ac_includes_default |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14765 | #include <dl.h> |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14766 | _ACEOF |
| 14767 | rm -f conftest.$ac_objext |
| 14768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14769 | (eval $ac_compile) 2>conftest.er1 |
| 14770 | ac_status=$? |
| 14771 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14772 | rm -f conftest.er1 |
| 14773 | cat conftest.err >&5 |
| 14774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14775 | (exit $ac_status); } && |
| 14776 | { ac_try='test -z "$ac_c_werror_flag" |
| 14777 | || test ! -s conftest.err' |
| 14778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14779 | (eval $ac_try) 2>&5 |
| 14780 | ac_status=$? |
| 14781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14782 | (exit $ac_status); }; } && |
| 14783 | { ac_try='test -s conftest.$ac_objext' |
| 14784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14785 | (eval $ac_try) 2>&5 |
| 14786 | ac_status=$? |
| 14787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14788 | (exit $ac_status); }; }; then |
| 14789 | ac_header_compiler=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14790 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14791 | echo "$as_me: failed program was:" >&5 |
| 14792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14793 | |
| 14794 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14795 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14797 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14798 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14799 | |
| 14800 | # Is the header present? |
| 14801 | echo "$as_me:$LINENO: checking dl.h presence" >&5 |
| 14802 | echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6 |
| 14803 | cat >conftest.$ac_ext <<_ACEOF |
| 14804 | /* confdefs.h. */ |
| 14805 | _ACEOF |
| 14806 | cat confdefs.h >>conftest.$ac_ext |
| 14807 | cat >>conftest.$ac_ext <<_ACEOF |
| 14808 | /* end confdefs.h. */ |
| 14809 | #include <dl.h> |
| 14810 | _ACEOF |
| 14811 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14812 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14813 | ac_status=$? |
| 14814 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14815 | rm -f conftest.er1 |
| 14816 | cat conftest.err >&5 |
| 14817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14818 | (exit $ac_status); } >/dev/null; then |
| 14819 | if test -s conftest.err; then |
| 14820 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14821 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 14822 | else |
| 14823 | ac_cpp_err= |
| 14824 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14825 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14826 | ac_cpp_err=yes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14827 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14828 | if test -z "$ac_cpp_err"; then |
| 14829 | ac_header_preproc=yes |
| 14830 | else |
| 14831 | echo "$as_me: failed program was:" >&5 |
| 14832 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14833 | |
| 14834 | ac_header_preproc=no |
| 14835 | fi |
| 14836 | rm -f conftest.err conftest.$ac_ext |
| 14837 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14838 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14839 | |
| 14840 | # So? What about this header? |
| 14841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14842 | yes:no: ) |
| 14843 | { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14844 | echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14845 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 |
| 14846 | echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;} |
| 14847 | ac_header_preproc=yes |
| 14848 | ;; |
| 14849 | no:yes:* ) |
| 14850 | { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 |
| 14851 | echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} |
| 14852 | { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 |
| 14853 | echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} |
| 14854 | { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 |
| 14855 | echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} |
| 14856 | { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 14857 | echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14858 | { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 |
| 14859 | echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} |
| 14860 | { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 |
| 14861 | echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} |
| 14862 | ( |
| 14863 | cat <<\_ASBOX |
| 14864 | ## ------------------------------------------ ## |
| 14865 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 14866 | ## ------------------------------------------ ## |
| 14867 | _ASBOX |
| 14868 | ) | |
| 14869 | sed "s/^/$as_me: WARNING: /" >&2 |
| 14870 | ;; |
| 14871 | esac |
| 14872 | echo "$as_me:$LINENO: checking for dl.h" >&5 |
| 14873 | echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 |
| 14874 | if test "${ac_cv_header_dl_h+set}" = set; then |
| 14875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14876 | else |
| 14877 | ac_cv_header_dl_h=$ac_header_preproc |
| 14878 | fi |
| 14879 | echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 |
| 14880 | echo "${ECHO_T}$ac_cv_header_dl_h" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14881 | |
| 14882 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14883 | if test $ac_cv_header_dl_h = yes; then |
| 14884 | DLL=dl.h |
| 14885 | fi |
| 14886 | |
| 14887 | |
| 14888 | fi |
| 14889 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14890 | |
| 14891 | if test x${DLL} = xdlfcn.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14892 | |
| 14893 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14894 | #define HAVE_DLFCN_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14895 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14896 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14897 | echo "$as_me:$LINENO: checking for dlopen()" >&5 |
| 14898 | echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6 |
| 14899 | cat >conftest.$ac_ext <<_ACEOF |
| 14900 | /* confdefs.h. */ |
| 14901 | _ACEOF |
| 14902 | cat confdefs.h >>conftest.$ac_ext |
| 14903 | cat >>conftest.$ac_ext <<_ACEOF |
| 14904 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14905 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14906 | int |
| 14907 | main () |
| 14908 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14909 | |
| 14910 | extern void* dlopen(); |
| 14911 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14912 | |
| 14913 | ; |
| 14914 | return 0; |
| 14915 | } |
| 14916 | _ACEOF |
| 14917 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14919 | (eval $ac_link) 2>conftest.er1 |
| 14920 | ac_status=$? |
| 14921 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14922 | rm -f conftest.er1 |
| 14923 | cat conftest.err >&5 |
| 14924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14925 | (exit $ac_status); } && |
| 14926 | { ac_try='test -z "$ac_c_werror_flag" |
| 14927 | || test ! -s conftest.err' |
| 14928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14929 | (eval $ac_try) 2>&5 |
| 14930 | ac_status=$? |
| 14931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14932 | (exit $ac_status); }; } && |
| 14933 | { ac_try='test -s conftest$ac_exeext' |
| 14934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14935 | (eval $ac_try) 2>&5 |
| 14936 | ac_status=$? |
| 14937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14938 | (exit $ac_status); }; }; then |
| 14939 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14940 | echo "${ECHO_T}yes" >&6; |
| 14941 | |
| 14942 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14943 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14944 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14945 | |
| 14946 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14947 | echo "$as_me: failed program was:" >&5 |
| 14948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14949 | |
| 14950 | echo "$as_me:$LINENO: result: no" >&5 |
| 14951 | echo "${ECHO_T}no" >&6; |
| 14952 | echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 |
| 14953 | echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14954 | olibs=$LIBS |
| 14955 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14956 | cat >conftest.$ac_ext <<_ACEOF |
| 14957 | /* confdefs.h. */ |
| 14958 | _ACEOF |
| 14959 | cat confdefs.h >>conftest.$ac_ext |
| 14960 | cat >>conftest.$ac_ext <<_ACEOF |
| 14961 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14962 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14963 | int |
| 14964 | main () |
| 14965 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 14966 | |
| 14967 | extern void* dlopen(); |
| 14968 | dlopen(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 14969 | |
| 14970 | ; |
| 14971 | return 0; |
| 14972 | } |
| 14973 | _ACEOF |
| 14974 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14976 | (eval $ac_link) 2>conftest.er1 |
| 14977 | ac_status=$? |
| 14978 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14979 | rm -f conftest.er1 |
| 14980 | cat conftest.err >&5 |
| 14981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14982 | (exit $ac_status); } && |
| 14983 | { ac_try='test -z "$ac_c_werror_flag" |
| 14984 | || test ! -s conftest.err' |
| 14985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14986 | (eval $ac_try) 2>&5 |
| 14987 | ac_status=$? |
| 14988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14989 | (exit $ac_status); }; } && |
| 14990 | { ac_try='test -s conftest$ac_exeext' |
| 14991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14992 | (eval $ac_try) 2>&5 |
| 14993 | ac_status=$? |
| 14994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14995 | (exit $ac_status); }; }; then |
| 14996 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14997 | echo "${ECHO_T}yes" >&6; |
| 14998 | |
| 14999 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15000 | #define HAVE_DLOPEN 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15001 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15002 | |
| 15003 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15004 | echo "$as_me: failed program was:" >&5 |
| 15005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15006 | |
| 15007 | echo "$as_me:$LINENO: result: no" >&5 |
| 15008 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15009 | LIBS=$olibs |
| 15010 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15011 | rm -f conftest.err conftest.$ac_objext \ |
| 15012 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15013 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15014 | rm -f conftest.err conftest.$ac_objext \ |
| 15015 | conftest$ac_exeext conftest.$ac_ext |
| 15016 | echo "$as_me:$LINENO: checking for dlsym()" >&5 |
| 15017 | echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6 |
| 15018 | cat >conftest.$ac_ext <<_ACEOF |
| 15019 | /* confdefs.h. */ |
| 15020 | _ACEOF |
| 15021 | cat confdefs.h >>conftest.$ac_ext |
| 15022 | cat >>conftest.$ac_ext <<_ACEOF |
| 15023 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15024 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15025 | int |
| 15026 | main () |
| 15027 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15028 | |
| 15029 | extern void* dlsym(); |
| 15030 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15031 | |
| 15032 | ; |
| 15033 | return 0; |
| 15034 | } |
| 15035 | _ACEOF |
| 15036 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15038 | (eval $ac_link) 2>conftest.er1 |
| 15039 | ac_status=$? |
| 15040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15041 | rm -f conftest.er1 |
| 15042 | cat conftest.err >&5 |
| 15043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15044 | (exit $ac_status); } && |
| 15045 | { ac_try='test -z "$ac_c_werror_flag" |
| 15046 | || test ! -s conftest.err' |
| 15047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15048 | (eval $ac_try) 2>&5 |
| 15049 | ac_status=$? |
| 15050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15051 | (exit $ac_status); }; } && |
| 15052 | { ac_try='test -s conftest$ac_exeext' |
| 15053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15054 | (eval $ac_try) 2>&5 |
| 15055 | ac_status=$? |
| 15056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15057 | (exit $ac_status); }; }; then |
| 15058 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15059 | echo "${ECHO_T}yes" >&6; |
| 15060 | |
| 15061 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15062 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15063 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15064 | |
| 15065 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15066 | echo "$as_me: failed program was:" >&5 |
| 15067 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15068 | |
| 15069 | echo "$as_me:$LINENO: result: no" >&5 |
| 15070 | echo "${ECHO_T}no" >&6; |
| 15071 | echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 |
| 15072 | echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15073 | olibs=$LIBS |
| 15074 | LIBS="$LIBS -ldl" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15075 | cat >conftest.$ac_ext <<_ACEOF |
| 15076 | /* confdefs.h. */ |
| 15077 | _ACEOF |
| 15078 | cat confdefs.h >>conftest.$ac_ext |
| 15079 | cat >>conftest.$ac_ext <<_ACEOF |
| 15080 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15081 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15082 | int |
| 15083 | main () |
| 15084 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15085 | |
| 15086 | extern void* dlsym(); |
| 15087 | dlsym(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15088 | |
| 15089 | ; |
| 15090 | return 0; |
| 15091 | } |
| 15092 | _ACEOF |
| 15093 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15095 | (eval $ac_link) 2>conftest.er1 |
| 15096 | ac_status=$? |
| 15097 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15098 | rm -f conftest.er1 |
| 15099 | cat conftest.err >&5 |
| 15100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15101 | (exit $ac_status); } && |
| 15102 | { ac_try='test -z "$ac_c_werror_flag" |
| 15103 | || test ! -s conftest.err' |
| 15104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15105 | (eval $ac_try) 2>&5 |
| 15106 | ac_status=$? |
| 15107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15108 | (exit $ac_status); }; } && |
| 15109 | { ac_try='test -s conftest$ac_exeext' |
| 15110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15111 | (eval $ac_try) 2>&5 |
| 15112 | ac_status=$? |
| 15113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15114 | (exit $ac_status); }; }; then |
| 15115 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15116 | echo "${ECHO_T}yes" >&6; |
| 15117 | |
| 15118 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15119 | #define HAVE_DLSYM 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15120 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15121 | |
| 15122 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15123 | echo "$as_me: failed program was:" >&5 |
| 15124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15125 | |
| 15126 | echo "$as_me:$LINENO: result: no" >&5 |
| 15127 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15128 | LIBS=$olibs |
| 15129 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15130 | rm -f conftest.err conftest.$ac_objext \ |
| 15131 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15132 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15133 | rm -f conftest.err conftest.$ac_objext \ |
| 15134 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15135 | elif test x${DLL} = xdl.h; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15136 | |
| 15137 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15138 | #define HAVE_DL_H 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15139 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15140 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15141 | echo "$as_me:$LINENO: checking for shl_load()" >&5 |
| 15142 | echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6 |
| 15143 | cat >conftest.$ac_ext <<_ACEOF |
| 15144 | /* confdefs.h. */ |
| 15145 | _ACEOF |
| 15146 | cat confdefs.h >>conftest.$ac_ext |
| 15147 | cat >>conftest.$ac_ext <<_ACEOF |
| 15148 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15149 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15150 | int |
| 15151 | main () |
| 15152 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15153 | |
| 15154 | extern void* shl_load(); |
| 15155 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15156 | |
| 15157 | ; |
| 15158 | return 0; |
| 15159 | } |
| 15160 | _ACEOF |
| 15161 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15163 | (eval $ac_link) 2>conftest.er1 |
| 15164 | ac_status=$? |
| 15165 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15166 | rm -f conftest.er1 |
| 15167 | cat conftest.err >&5 |
| 15168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15169 | (exit $ac_status); } && |
| 15170 | { ac_try='test -z "$ac_c_werror_flag" |
| 15171 | || test ! -s conftest.err' |
| 15172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15173 | (eval $ac_try) 2>&5 |
| 15174 | ac_status=$? |
| 15175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15176 | (exit $ac_status); }; } && |
| 15177 | { ac_try='test -s conftest$ac_exeext' |
| 15178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15179 | (eval $ac_try) 2>&5 |
| 15180 | ac_status=$? |
| 15181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15182 | (exit $ac_status); }; }; then |
| 15183 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15184 | echo "${ECHO_T}yes" >&6; |
| 15185 | |
| 15186 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15187 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15188 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15189 | |
| 15190 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15191 | echo "$as_me: failed program was:" >&5 |
| 15192 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15193 | |
| 15194 | echo "$as_me:$LINENO: result: no" >&5 |
| 15195 | echo "${ECHO_T}no" >&6; |
| 15196 | echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 |
| 15197 | echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15198 | olibs=$LIBS |
| 15199 | LIBS="$LIBS -ldld" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15200 | cat >conftest.$ac_ext <<_ACEOF |
| 15201 | /* confdefs.h. */ |
| 15202 | _ACEOF |
| 15203 | cat confdefs.h >>conftest.$ac_ext |
| 15204 | cat >>conftest.$ac_ext <<_ACEOF |
| 15205 | /* end confdefs.h. */ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15206 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15207 | int |
| 15208 | main () |
| 15209 | { |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15210 | |
| 15211 | extern void* shl_load(); |
| 15212 | shl_load(); |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15213 | |
| 15214 | ; |
| 15215 | return 0; |
| 15216 | } |
| 15217 | _ACEOF |
| 15218 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15220 | (eval $ac_link) 2>conftest.er1 |
| 15221 | ac_status=$? |
| 15222 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15223 | rm -f conftest.er1 |
| 15224 | cat conftest.err >&5 |
| 15225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15226 | (exit $ac_status); } && |
| 15227 | { ac_try='test -z "$ac_c_werror_flag" |
| 15228 | || test ! -s conftest.err' |
| 15229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15230 | (eval $ac_try) 2>&5 |
| 15231 | ac_status=$? |
| 15232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15233 | (exit $ac_status); }; } && |
| 15234 | { ac_try='test -s conftest$ac_exeext' |
| 15235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15236 | (eval $ac_try) 2>&5 |
| 15237 | ac_status=$? |
| 15238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15239 | (exit $ac_status); }; }; then |
| 15240 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15241 | echo "${ECHO_T}yes" >&6; |
| 15242 | |
| 15243 | cat >>confdefs.h <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15244 | #define HAVE_SHL_LOAD 1 |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15245 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15246 | |
| 15247 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15248 | echo "$as_me: failed program was:" >&5 |
| 15249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15250 | |
| 15251 | echo "$as_me:$LINENO: result: no" >&5 |
| 15252 | echo "${ECHO_T}no" >&6; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15253 | LIBS=$olibs |
| 15254 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15255 | rm -f conftest.err conftest.$ac_objext \ |
| 15256 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15257 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15258 | rm -f conftest.err conftest.$ac_objext \ |
| 15259 | conftest$ac_exeext conftest.$ac_ext |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15260 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15261 | |
| 15262 | for ac_header in setjmp.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15263 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15264 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 15265 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15266 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15267 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15268 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15270 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15272 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15273 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15274 | # Is the header compilable? |
| 15275 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 15276 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 15277 | cat >conftest.$ac_ext <<_ACEOF |
| 15278 | /* confdefs.h. */ |
| 15279 | _ACEOF |
| 15280 | cat confdefs.h >>conftest.$ac_ext |
| 15281 | cat >>conftest.$ac_ext <<_ACEOF |
| 15282 | /* end confdefs.h. */ |
| 15283 | $ac_includes_default |
| 15284 | #include <$ac_header> |
| 15285 | _ACEOF |
| 15286 | rm -f conftest.$ac_objext |
| 15287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15288 | (eval $ac_compile) 2>conftest.er1 |
| 15289 | ac_status=$? |
| 15290 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15291 | rm -f conftest.er1 |
| 15292 | cat conftest.err >&5 |
| 15293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15294 | (exit $ac_status); } && |
| 15295 | { ac_try='test -z "$ac_c_werror_flag" |
| 15296 | || test ! -s conftest.err' |
| 15297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15298 | (eval $ac_try) 2>&5 |
| 15299 | ac_status=$? |
| 15300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15301 | (exit $ac_status); }; } && |
| 15302 | { ac_try='test -s conftest.$ac_objext' |
| 15303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15304 | (eval $ac_try) 2>&5 |
| 15305 | ac_status=$? |
| 15306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15307 | (exit $ac_status); }; }; then |
| 15308 | ac_header_compiler=yes |
| 15309 | else |
| 15310 | echo "$as_me: failed program was:" >&5 |
| 15311 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15312 | |
| 15313 | ac_header_compiler=no |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15314 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15316 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15317 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15318 | |
| 15319 | # Is the header present? |
| 15320 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 15321 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 15322 | cat >conftest.$ac_ext <<_ACEOF |
| 15323 | /* confdefs.h. */ |
| 15324 | _ACEOF |
| 15325 | cat confdefs.h >>conftest.$ac_ext |
| 15326 | cat >>conftest.$ac_ext <<_ACEOF |
| 15327 | /* end confdefs.h. */ |
| 15328 | #include <$ac_header> |
| 15329 | _ACEOF |
| 15330 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15331 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15332 | ac_status=$? |
| 15333 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15334 | rm -f conftest.er1 |
| 15335 | cat conftest.err >&5 |
| 15336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15337 | (exit $ac_status); } >/dev/null; then |
| 15338 | if test -s conftest.err; then |
| 15339 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15340 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 15341 | else |
| 15342 | ac_cpp_err= |
| 15343 | fi |
| 15344 | else |
| 15345 | ac_cpp_err=yes |
| 15346 | fi |
| 15347 | if test -z "$ac_cpp_err"; then |
| 15348 | ac_header_preproc=yes |
| 15349 | else |
| 15350 | echo "$as_me: failed program was:" >&5 |
| 15351 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15352 | |
| 15353 | ac_header_preproc=no |
| 15354 | fi |
| 15355 | rm -f conftest.err conftest.$ac_ext |
| 15356 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15357 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15358 | |
| 15359 | # So? What about this header? |
| 15360 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 15361 | yes:no: ) |
| 15362 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15363 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15364 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 15365 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 15366 | ac_header_preproc=yes |
| 15367 | ;; |
| 15368 | no:yes:* ) |
| 15369 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 15370 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 15371 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 15372 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 15373 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 15374 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 15375 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 15376 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 15377 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 15378 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 15379 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 15380 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 15381 | ( |
| 15382 | cat <<\_ASBOX |
| 15383 | ## ------------------------------------------ ## |
| 15384 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 15385 | ## ------------------------------------------ ## |
| 15386 | _ASBOX |
| 15387 | ) | |
| 15388 | sed "s/^/$as_me: WARNING: /" >&2 |
| 15389 | ;; |
| 15390 | esac |
| 15391 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 15392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 15393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 15394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15395 | else |
| 15396 | eval "$as_ac_Header=\$ac_header_preproc" |
| 15397 | fi |
| 15398 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 15399 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 15400 | |
| 15401 | fi |
| 15402 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 15403 | cat >>confdefs.h <<_ACEOF |
| 15404 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 15405 | _ACEOF |
| 15406 | |
| 15407 | fi |
| 15408 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15409 | done |
| 15410 | |
| 15411 | |
| 15412 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 15413 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 15414 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 15415 | PERL_LIBS="$PERL_LIBS -ldl" |
| 15416 | fi |
| 15417 | fi |
| 15418 | |
| 15419 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 15420 | && test "x$GUITYPE" != "xCARBONGUI"; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15421 | echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 |
| 15422 | echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6 |
Bram Moolenaar | b90daee | 2006-10-17 09:49:09 +0000 | [diff] [blame] | 15423 | if test "x$enable_multibyte" = "xyes" || test "x$features" = "xbig" \ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15424 | || test "x$features" = "xhuge"; then |
| 15425 | LIBS="$LIBS -framework Carbon" |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15426 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15427 | echo "${ECHO_T}yes" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15428 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15429 | echo "$as_me:$LINENO: result: no" >&5 |
| 15430 | echo "${ECHO_T}no" >&6 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15431 | fi |
| 15432 | fi |
Bram Moolenaar | e224ffa | 2006-03-01 00:01:28 +0000 | [diff] [blame] | 15433 | if test "x$MACARCH" = "xboth"; then |
| 15434 | LDFLAGS="$LDFLAGS -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" |
| 15435 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15436 | |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15437 | echo "$as_me:$LINENO: checking for GCC 3 or later" >&5 |
| 15438 | echo $ECHO_N "checking for GCC 3 or later... $ECHO_C" >&6 |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15439 | DEPEND_CFLAGS_FILTER= |
| 15440 | if test "$GCC" = yes; then |
Bram Moolenaar | 2217cae | 2006-03-25 21:55:52 +0000 | [diff] [blame] | 15441 | gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` |
Bram Moolenaar | f740b29 | 2006-02-16 22:11:02 +0000 | [diff] [blame] | 15442 | if test "$gccmajor" -gt "2"; then |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15443 | DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" |
| 15444 | fi |
| 15445 | fi |
Bram Moolenaar | a5792f5 | 2005-11-23 21:25:05 +0000 | [diff] [blame] | 15446 | if test "$DEPEND_CFLAGS_FILTER" = ""; then |
| 15447 | echo "$as_me:$LINENO: result: no" >&5 |
| 15448 | echo "${ECHO_T}no" >&6 |
| 15449 | else |
| 15450 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15451 | echo "${ECHO_T}yes" >&6 |
| 15452 | fi |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 15453 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15454 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15455 | ac_config_files="$ac_config_files auto/config.mk:config.mk.in" |
| 15456 | cat >confcache <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15457 | # This file is a shell script that caches the results of configure |
| 15458 | # tests run on this system so they can be shared between configure |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15459 | # scripts and configure runs, see configure's option --config-cache. |
| 15460 | # It is not useful on other systems. If it contains results you don't |
| 15461 | # want to keep, you may remove or edit it. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15462 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15463 | # config.status only pays attention to the cache file if you give it |
| 15464 | # the --recheck option to rerun configure. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15465 | # |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15466 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15467 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15468 | # following values. |
| 15469 | |
| 15470 | _ACEOF |
| 15471 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15472 | # The following way of writing the cache mishandles newlines in values, |
| 15473 | # but we know of no workaround that is simple, portable, and efficient. |
| 15474 | # So, don't put newlines in cache variables' values. |
| 15475 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15476 | # 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] | 15477 | { |
| 15478 | (set) 2>&1 | |
| 15479 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15480 | *ac_space=\ *) |
| 15481 | # `set' does not quote correctly, so add quotes (double-quote |
| 15482 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15483 | sed -n \ |
| 15484 | "s/'/'\\\\''/g; |
| 15485 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15486 | ;; |
| 15487 | *) |
| 15488 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15489 | sed -n \ |
| 15490 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15491 | ;; |
| 15492 | esac; |
| 15493 | } | |
| 15494 | sed ' |
| 15495 | t clear |
| 15496 | : clear |
| 15497 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15498 | t end |
| 15499 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15500 | : end' >>confcache |
| 15501 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15502 | if test -w $cache_file; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15503 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15504 | cat confcache >$cache_file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15505 | else |
| 15506 | echo "not updating unwritable cache $cache_file" |
| 15507 | fi |
| 15508 | fi |
| 15509 | rm -f confcache |
| 15510 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15511 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15512 | # Let make expand exec_prefix. |
| 15513 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15514 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15515 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15516 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15517 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15518 | # (actually we leave an empty line to preserve line numbers). |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15519 | if test "x$srcdir" = x.; then |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15520 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15521 | s/:*\$(srcdir):*/:/; |
| 15522 | s/:*\${srcdir}:*/:/; |
| 15523 | s/:*@srcdir@:*/:/; |
| 15524 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15525 | s/:*$//; |
| 15526 | s/^[^=]*=[ ]*$//; |
| 15527 | }' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15528 | fi |
| 15529 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15530 | DEFS=-DHAVE_CONFIG_H |
| 15531 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15532 | ac_libobjs= |
| 15533 | ac_ltlibobjs= |
| 15534 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15535 | # 1. Remove the extension, and $U if already installed. |
| 15536 | ac_i=`echo "$ac_i" | |
| 15537 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 15538 | # 2. Add them. |
| 15539 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 15540 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 15541 | done |
| 15542 | LIBOBJS=$ac_libobjs |
| 15543 | |
| 15544 | LTLIBOBJS=$ac_ltlibobjs |
| 15545 | |
| 15546 | |
| 15547 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15548 | : ${CONFIG_STATUS=./config.status} |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15549 | ac_clean_files_save=$ac_clean_files |
| 15550 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15551 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15552 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15553 | cat >$CONFIG_STATUS <<_ACEOF |
| 15554 | #! $SHELL |
| 15555 | # Generated by $as_me. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15556 | # Run this file to recreate the current configuration. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15557 | # Compiler output produced by configure, useful for debugging |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15558 | # configure, is in config.log if it exists. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15559 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15560 | debug=false |
| 15561 | ac_cs_recheck=false |
| 15562 | ac_cs_silent=false |
| 15563 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15564 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15565 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15566 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15567 | ## --------------------- ## |
| 15568 | ## M4sh Initialization. ## |
| 15569 | ## --------------------- ## |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15570 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15571 | # Be Bourne compatible |
| 15572 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15573 | emulate sh |
| 15574 | NULLCMD=: |
| 15575 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15576 | # is contrary to our usage. Disable this feature. |
| 15577 | alias -g '${1+"$@"}'='"$@"' |
| 15578 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 15579 | set -o posix |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15580 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15581 | DUALCASE=1; export DUALCASE # for MKS sh |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15582 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15583 | # Support unset when possible. |
| 15584 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15585 | as_unset=unset |
| 15586 | else |
| 15587 | as_unset=false |
| 15588 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15589 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15590 | |
| 15591 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15592 | $as_unset ENV MAIL MAILPATH |
| 15593 | PS1='$ ' |
| 15594 | PS2='> ' |
| 15595 | PS4='+ ' |
| 15596 | |
| 15597 | # NLS nuisances. |
| 15598 | for as_var in \ |
| 15599 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15600 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15601 | LC_TELEPHONE LC_TIME |
| 15602 | do |
| 15603 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15604 | eval $as_var=C; export $as_var |
| 15605 | else |
| 15606 | $as_unset $as_var |
| 15607 | fi |
| 15608 | done |
| 15609 | |
| 15610 | # Required to use basename. |
| 15611 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15612 | as_expr=expr |
| 15613 | else |
| 15614 | as_expr=false |
| 15615 | fi |
| 15616 | |
| 15617 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 15618 | as_basename=basename |
| 15619 | else |
| 15620 | as_basename=false |
| 15621 | fi |
| 15622 | |
| 15623 | |
| 15624 | # Name of the executable. |
| 15625 | as_me=`$as_basename "$0" || |
| 15626 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15627 | X"$0" : 'X\(//\)$' \| \ |
| 15628 | X"$0" : 'X\(/\)$' \| \ |
| 15629 | . : '\(.\)' 2>/dev/null || |
| 15630 | echo X/"$0" | |
| 15631 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 15632 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 15633 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 15634 | s/.*/./; q'` |
| 15635 | |
| 15636 | |
| 15637 | # PATH needs CR, and LINENO needs CR and PATH. |
| 15638 | # Avoid depending upon Character Ranges. |
| 15639 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15640 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15641 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15642 | as_cr_digits='0123456789' |
| 15643 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15644 | |
| 15645 | # The user is always right. |
| 15646 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15647 | echo "#! /bin/sh" >conf$$.sh |
| 15648 | echo "exit 0" >>conf$$.sh |
| 15649 | chmod +x conf$$.sh |
| 15650 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15651 | PATH_SEPARATOR=';' |
| 15652 | else |
| 15653 | PATH_SEPARATOR=: |
| 15654 | fi |
| 15655 | rm -f conf$$.sh |
| 15656 | fi |
| 15657 | |
| 15658 | |
| 15659 | as_lineno_1=$LINENO |
| 15660 | as_lineno_2=$LINENO |
| 15661 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15662 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15663 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 15664 | # Find who we are. Look in the path if we contain no path at all |
| 15665 | # relative or not. |
| 15666 | case $0 in |
| 15667 | *[\\/]* ) as_myself=$0 ;; |
| 15668 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15669 | for as_dir in $PATH |
| 15670 | do |
| 15671 | IFS=$as_save_IFS |
| 15672 | test -z "$as_dir" && as_dir=. |
| 15673 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15674 | done |
| 15675 | |
| 15676 | ;; |
| 15677 | esac |
| 15678 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15679 | # in which case we are not to be found in the path. |
| 15680 | if test "x$as_myself" = x; then |
| 15681 | as_myself=$0 |
| 15682 | fi |
| 15683 | if test ! -f "$as_myself"; then |
| 15684 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 15685 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 15686 | { (exit 1); exit 1; }; } |
| 15687 | fi |
| 15688 | case $CONFIG_SHELL in |
| 15689 | '') |
| 15690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15691 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 15692 | do |
| 15693 | IFS=$as_save_IFS |
| 15694 | test -z "$as_dir" && as_dir=. |
| 15695 | for as_base in sh bash ksh sh5; do |
| 15696 | case $as_dir in |
| 15697 | /*) |
| 15698 | if ("$as_dir/$as_base" -c ' |
| 15699 | as_lineno_1=$LINENO |
| 15700 | as_lineno_2=$LINENO |
| 15701 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15702 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15703 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 15704 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 15705 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 15706 | CONFIG_SHELL=$as_dir/$as_base |
| 15707 | export CONFIG_SHELL |
| 15708 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 15709 | fi;; |
| 15710 | esac |
| 15711 | done |
| 15712 | done |
| 15713 | ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15714 | esac |
| 15715 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15716 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15717 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 15718 | # line-number line before each line; the second 'sed' does the real |
| 15719 | # work. The second script uses 'N' to pair each line-number line |
| 15720 | # with the numbered line, and appends trailing '-' during |
| 15721 | # substitution so that $LINENO is not a special case at line end. |
| 15722 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 15723 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 15724 | sed '=' <$as_myself | |
| 15725 | sed ' |
| 15726 | N |
| 15727 | s,$,-, |
| 15728 | : loop |
| 15729 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 15730 | t loop |
| 15731 | s,-$,, |
| 15732 | s,^['$as_cr_digits']*\n,, |
| 15733 | ' >$as_me.lineno && |
| 15734 | chmod +x $as_me.lineno || |
| 15735 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 15736 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 15737 | { (exit 1); exit 1; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15738 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15739 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15740 | # (the dirname of $[0] is not the place where we might find the |
| 15741 | # original and so on. Autoconf is especially sensible to this). |
| 15742 | . ./$as_me.lineno |
| 15743 | # Exit status is that of the last command. |
| 15744 | exit |
| 15745 | } |
| 15746 | |
| 15747 | |
| 15748 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 15749 | *c*,-n*) ECHO_N= ECHO_C=' |
| 15750 | ' ECHO_T=' ' ;; |
| 15751 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 15752 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 15753 | esac |
| 15754 | |
| 15755 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 15756 | as_expr=expr |
| 15757 | else |
| 15758 | as_expr=false |
| 15759 | fi |
| 15760 | |
| 15761 | rm -f conf$$ conf$$.exe conf$$.file |
| 15762 | echo >conf$$.file |
| 15763 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15764 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 15765 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 15766 | if test -f conf$$.exe; then |
| 15767 | # Don't use ln at all; we don't have any links |
| 15768 | as_ln_s='cp -p' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 15769 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15770 | as_ln_s='ln -s' |
| 15771 | fi |
| 15772 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15773 | as_ln_s=ln |
| 15774 | else |
| 15775 | as_ln_s='cp -p' |
| 15776 | fi |
| 15777 | rm -f conf$$ conf$$.exe conf$$.file |
| 15778 | |
| 15779 | if mkdir -p . 2>/dev/null; then |
| 15780 | as_mkdir_p=: |
| 15781 | else |
| 15782 | test -d ./-p && rmdir ./-p |
| 15783 | as_mkdir_p=false |
| 15784 | fi |
| 15785 | |
| 15786 | as_executable_p="test -f" |
| 15787 | |
| 15788 | # Sed expression to map a string onto a valid CPP name. |
| 15789 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15790 | |
| 15791 | # Sed expression to map a string onto a valid variable name. |
| 15792 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15793 | |
| 15794 | |
| 15795 | # IFS |
| 15796 | # We need space, tab and new line, in precisely that order. |
| 15797 | as_nl=' |
| 15798 | ' |
| 15799 | IFS=" $as_nl" |
| 15800 | |
| 15801 | # CDPATH. |
| 15802 | $as_unset CDPATH |
| 15803 | |
| 15804 | exec 6>&1 |
| 15805 | |
| 15806 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 15807 | # report actual input values of CONFIG_FILES etc. instead of their |
| 15808 | # values after options handling. Logging --version etc. is OK. |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 15809 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 15810 | { |
| 15811 | echo |
| 15812 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15813 | ## Running $as_me. ## |
| 15814 | _ASBOX |
| 15815 | } >&5 |
| 15816 | cat >&5 <<_CSEOF |
| 15817 | |
| 15818 | This file was extended by $as_me, which was |
| 15819 | generated by GNU Autoconf 2.59. Invocation command line was |
| 15820 | |
| 15821 | CONFIG_FILES = $CONFIG_FILES |
| 15822 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15823 | CONFIG_LINKS = $CONFIG_LINKS |
| 15824 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15825 | $ $0 $@ |
| 15826 | |
| 15827 | _CSEOF |
| 15828 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 15829 | echo >&5 |
| 15830 | _ACEOF |
| 15831 | |
| 15832 | # Files that config.status was made for. |
| 15833 | if test -n "$ac_config_files"; then |
| 15834 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 15835 | fi |
| 15836 | |
| 15837 | if test -n "$ac_config_headers"; then |
| 15838 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 15839 | fi |
| 15840 | |
| 15841 | if test -n "$ac_config_links"; then |
| 15842 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 15843 | fi |
| 15844 | |
| 15845 | if test -n "$ac_config_commands"; then |
| 15846 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 15847 | fi |
| 15848 | |
| 15849 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15850 | |
| 15851 | ac_cs_usage="\ |
| 15852 | \`$as_me' instantiates files from templates according to the |
| 15853 | current configuration. |
| 15854 | |
| 15855 | Usage: $0 [OPTIONS] [FILE]... |
| 15856 | |
| 15857 | -h, --help print this help, then exit |
| 15858 | -V, --version print version number, then exit |
| 15859 | -q, --quiet do not print progress messages |
| 15860 | -d, --debug don't remove temporary files |
| 15861 | --recheck update $as_me by reconfiguring in the same conditions |
| 15862 | --file=FILE[:TEMPLATE] |
| 15863 | instantiate the configuration file FILE |
| 15864 | --header=FILE[:TEMPLATE] |
| 15865 | instantiate the configuration header FILE |
| 15866 | |
| 15867 | Configuration files: |
| 15868 | $config_files |
| 15869 | |
| 15870 | Configuration headers: |
| 15871 | $config_headers |
| 15872 | |
| 15873 | Report bugs to <bug-autoconf@gnu.org>." |
| 15874 | _ACEOF |
| 15875 | |
| 15876 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15877 | ac_cs_version="\\ |
| 15878 | config.status |
| 15879 | configured by $0, generated by GNU Autoconf 2.59, |
| 15880 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 15881 | |
| 15882 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 15883 | This config.status script is free software; the Free Software Foundation |
| 15884 | gives unlimited permission to copy, distribute and modify it." |
| 15885 | srcdir=$srcdir |
| 15886 | _ACEOF |
| 15887 | |
| 15888 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15889 | # If no file are specified by the user, then we need to provide default |
| 15890 | # value. By we need to know if files were specified by the user. |
| 15891 | ac_need_defaults=: |
| 15892 | while test $# != 0 |
| 15893 | do |
| 15894 | case $1 in |
| 15895 | --*=*) |
| 15896 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 15897 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 15898 | ac_shift=: |
| 15899 | ;; |
| 15900 | -*) |
| 15901 | ac_option=$1 |
| 15902 | ac_optarg=$2 |
| 15903 | ac_shift=shift |
| 15904 | ;; |
| 15905 | *) # This is not an option, so the user has probably given explicit |
| 15906 | # arguments. |
| 15907 | ac_option=$1 |
| 15908 | ac_need_defaults=false;; |
| 15909 | esac |
| 15910 | |
| 15911 | case $ac_option in |
| 15912 | # Handling of the options. |
| 15913 | _ACEOF |
| 15914 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15915 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15916 | ac_cs_recheck=: ;; |
| 15917 | --version | --vers* | -V ) |
| 15918 | echo "$ac_cs_version"; exit 0 ;; |
| 15919 | --he | --h) |
| 15920 | # Conflict between --help and --header |
| 15921 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 15922 | Try \`$0 --help' for more information." >&5 |
| 15923 | echo "$as_me: error: ambiguous option: $1 |
| 15924 | Try \`$0 --help' for more information." >&2;} |
| 15925 | { (exit 1); exit 1; }; };; |
| 15926 | --help | --hel | -h ) |
| 15927 | echo "$ac_cs_usage"; exit 0 ;; |
| 15928 | --debug | --d* | -d ) |
| 15929 | debug=: ;; |
| 15930 | --file | --fil | --fi | --f ) |
| 15931 | $ac_shift |
| 15932 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15933 | ac_need_defaults=false;; |
| 15934 | --header | --heade | --head | --hea ) |
| 15935 | $ac_shift |
| 15936 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 15937 | ac_need_defaults=false;; |
| 15938 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15939 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15940 | ac_cs_silent=: ;; |
| 15941 | |
| 15942 | # This is an error. |
| 15943 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 15944 | Try \`$0 --help' for more information." >&5 |
| 15945 | echo "$as_me: error: unrecognized option: $1 |
| 15946 | Try \`$0 --help' for more information." >&2;} |
| 15947 | { (exit 1); exit 1; }; } ;; |
| 15948 | |
| 15949 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 15950 | |
| 15951 | esac |
| 15952 | shift |
| 15953 | done |
| 15954 | |
| 15955 | ac_configure_extra_args= |
| 15956 | |
| 15957 | if $ac_cs_silent; then |
| 15958 | exec 6>/dev/null |
| 15959 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15960 | fi |
| 15961 | |
| 15962 | _ACEOF |
| 15963 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15964 | if \$ac_cs_recheck; then |
| 15965 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15966 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15967 | fi |
| 15968 | |
| 15969 | _ACEOF |
| 15970 | |
| 15971 | |
| 15972 | |
| 15973 | |
| 15974 | |
| 15975 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15976 | for ac_config_target in $ac_config_targets |
| 15977 | do |
| 15978 | case "$ac_config_target" in |
| 15979 | # Handling of arguments. |
| 15980 | "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; |
| 15981 | "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; |
| 15982 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15983 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15984 | { (exit 1); exit 1; }; };; |
| 15985 | esac |
| 15986 | done |
| 15987 | |
| 15988 | # If the user did not use the arguments to specify the items to instantiate, |
| 15989 | # then the envvar interface is used. Set only those that are not. |
| 15990 | # We use the long form for the default assignment because of an extremely |
| 15991 | # bizarre bug on SunOS 4.1.3. |
| 15992 | if $ac_need_defaults; then |
| 15993 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15994 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 15995 | fi |
| 15996 | |
| 15997 | # Have a temporary directory for convenience. Make it in the build tree |
| 15998 | # simply because there is no reason to put it here, and in addition, |
| 15999 | # creating and moving files from /tmp can sometimes cause problems. |
| 16000 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16001 | $debug || |
| 16002 | { |
| 16003 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16004 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16005 | } |
| 16006 | |
| 16007 | # Create a (secure) tmp directory for tmp files. |
| 16008 | |
| 16009 | { |
| 16010 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 16011 | test -n "$tmp" && test -d "$tmp" |
| 16012 | } || |
| 16013 | { |
| 16014 | tmp=./confstat$$-$RANDOM |
| 16015 | (umask 077 && mkdir $tmp) |
| 16016 | } || |
| 16017 | { |
| 16018 | echo "$me: cannot create a temporary directory in ." >&2 |
| 16019 | { (exit 1); exit 1; } |
| 16020 | } |
| 16021 | |
| 16022 | _ACEOF |
| 16023 | |
| 16024 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16025 | |
| 16026 | # |
| 16027 | # CONFIG_FILES section. |
| 16028 | # |
| 16029 | |
| 16030 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16031 | # This happens for instance when ./config.status config.h |
| 16032 | if test -n "\$CONFIG_FILES"; then |
| 16033 | # Protect against being on the right side of a sed subst in config.status. |
| 16034 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16035 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16036 | s,@SHELL@,$SHELL,;t t |
| 16037 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16038 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16039 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16040 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16041 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16042 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16043 | s,@exec_prefix@,$exec_prefix,;t t |
| 16044 | s,@prefix@,$prefix,;t t |
| 16045 | s,@program_transform_name@,$program_transform_name,;t t |
| 16046 | s,@bindir@,$bindir,;t t |
| 16047 | s,@sbindir@,$sbindir,;t t |
| 16048 | s,@libexecdir@,$libexecdir,;t t |
| 16049 | s,@datadir@,$datadir,;t t |
| 16050 | s,@sysconfdir@,$sysconfdir,;t t |
| 16051 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16052 | s,@localstatedir@,$localstatedir,;t t |
| 16053 | s,@libdir@,$libdir,;t t |
| 16054 | s,@includedir@,$includedir,;t t |
| 16055 | s,@oldincludedir@,$oldincludedir,;t t |
| 16056 | s,@infodir@,$infodir,;t t |
| 16057 | s,@mandir@,$mandir,;t t |
| 16058 | s,@build_alias@,$build_alias,;t t |
| 16059 | s,@host_alias@,$host_alias,;t t |
| 16060 | s,@target_alias@,$target_alias,;t t |
| 16061 | s,@DEFS@,$DEFS,;t t |
| 16062 | s,@ECHO_C@,$ECHO_C,;t t |
| 16063 | s,@ECHO_N@,$ECHO_N,;t t |
| 16064 | s,@ECHO_T@,$ECHO_T,;t t |
| 16065 | s,@LIBS@,$LIBS,;t t |
| 16066 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 16067 | s,@CC@,$CC,;t t |
| 16068 | s,@CFLAGS@,$CFLAGS,;t t |
| 16069 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16070 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16071 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16072 | s,@EXEEXT@,$EXEEXT,;t t |
| 16073 | s,@OBJEXT@,$OBJEXT,;t t |
| 16074 | s,@CPP@,$CPP,;t t |
| 16075 | s,@EGREP@,$EGREP,;t t |
| 16076 | s,@AWK@,$AWK,;t t |
| 16077 | s,@STRIP@,$STRIP,;t t |
| 16078 | s,@CPP_MM@,$CPP_MM,;t t |
| 16079 | s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t |
| 16080 | s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t |
| 16081 | s,@VIMNAME@,$VIMNAME,;t t |
| 16082 | s,@EXNAME@,$EXNAME,;t t |
| 16083 | s,@VIEWNAME@,$VIEWNAME,;t t |
| 16084 | s,@line_break@,$line_break,;t t |
| 16085 | s,@dovimdiff@,$dovimdiff,;t t |
| 16086 | s,@dogvimdiff@,$dogvimdiff,;t t |
| 16087 | s,@compiledby@,$compiledby,;t t |
| 16088 | s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t |
| 16089 | s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t |
| 16090 | s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t |
| 16091 | s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t |
| 16092 | s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t |
| 16093 | s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t |
| 16094 | s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t |
| 16095 | s,@vi_cv_perllib@,$vi_cv_perllib,;t t |
| 16096 | s,@shrpenv@,$shrpenv,;t t |
| 16097 | s,@PERL_SRC@,$PERL_SRC,;t t |
| 16098 | s,@PERL_OBJ@,$PERL_OBJ,;t t |
| 16099 | s,@PERL_PRO@,$PERL_PRO,;t t |
| 16100 | s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t |
| 16101 | s,@PERL_LIBS@,$PERL_LIBS,;t t |
| 16102 | s,@vi_cv_path_python@,$vi_cv_path_python,;t t |
| 16103 | s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t |
| 16104 | s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t |
| 16105 | s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t |
| 16106 | s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t |
| 16107 | s,@PYTHON_SRC@,$PYTHON_SRC,;t t |
| 16108 | s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t |
| 16109 | s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t |
| 16110 | s,@TCL_SRC@,$TCL_SRC,;t t |
| 16111 | s,@TCL_OBJ@,$TCL_OBJ,;t t |
| 16112 | s,@TCL_PRO@,$TCL_PRO,;t t |
| 16113 | s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t |
| 16114 | s,@TCL_LIBS@,$TCL_LIBS,;t t |
| 16115 | s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t |
| 16116 | s,@RUBY_SRC@,$RUBY_SRC,;t t |
| 16117 | s,@RUBY_OBJ@,$RUBY_OBJ,;t t |
| 16118 | s,@RUBY_PRO@,$RUBY_PRO,;t t |
| 16119 | s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t |
| 16120 | s,@RUBY_LIBS@,$RUBY_LIBS,;t t |
| 16121 | s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t |
| 16122 | s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t |
| 16123 | s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t |
| 16124 | s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t |
| 16125 | s,@SNIFF_SRC@,$SNIFF_SRC,;t t |
| 16126 | s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t |
| 16127 | s,@xmkmfpath@,$xmkmfpath,;t t |
| 16128 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 16129 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 16130 | s,@X_LIBS@,$X_LIBS,;t t |
| 16131 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 16132 | s,@X_LIB@,$X_LIB,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16133 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t |
| 16134 | s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t |
| 16135 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
| 16136 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t |
| 16137 | s,@GTK_LIBS@,$GTK_LIBS,;t t |
| 16138 | s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t |
| 16139 | s,@GNOME_LIBS@,$GNOME_LIBS,;t t |
| 16140 | s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t |
| 16141 | s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t |
| 16142 | s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t |
| 16143 | s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t |
| 16144 | s,@NARROW_PROTO@,$NARROW_PROTO,;t t |
| 16145 | s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t |
| 16146 | s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t |
| 16147 | s,@GUITYPE@,$GUITYPE,;t t |
| 16148 | s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t |
| 16149 | s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t |
| 16150 | s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t |
| 16151 | s,@TAGPRG@,$TAGPRG,;t t |
Bram Moolenaar | 2389c3c | 2005-05-22 22:07:59 +0000 | [diff] [blame] | 16152 | s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t |
| 16153 | s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16154 | s,@MSGFMT@,$MSGFMT,;t t |
| 16155 | s,@MAKEMO@,$MAKEMO,;t t |
Bram Moolenaar | d5cdbeb | 2005-10-10 20:59:28 +0000 | [diff] [blame] | 16156 | s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16157 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16158 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 16159 | CEOF |
| 16160 | |
| 16161 | _ACEOF |
| 16162 | |
| 16163 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16164 | # Split the substitutions into bite-sized pieces for seds with |
| 16165 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16166 | ac_max_sed_lines=48 |
| 16167 | ac_sed_frag=1 # Number of current file. |
| 16168 | ac_beg=1 # First line for current file. |
| 16169 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16170 | ac_more_lines=: |
| 16171 | ac_sed_cmds= |
| 16172 | while $ac_more_lines; do |
| 16173 | if test $ac_beg -gt 1; then |
| 16174 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16175 | else |
| 16176 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16177 | fi |
| 16178 | if test ! -s $tmp/subs.frag; then |
| 16179 | ac_more_lines=false |
| 16180 | else |
| 16181 | # The purpose of the label and of the branching condition is to |
| 16182 | # speed up the sed processing (if there are no `@' at all, there |
| 16183 | # is no need to browse any of the substitutions). |
| 16184 | # These are the two extra sed commands mentioned above. |
| 16185 | (echo ':t |
| 16186 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16187 | if test -z "$ac_sed_cmds"; then |
| 16188 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16189 | else |
| 16190 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16191 | fi |
| 16192 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16193 | ac_beg=$ac_end |
| 16194 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16195 | fi |
| 16196 | done |
| 16197 | if test -z "$ac_sed_cmds"; then |
| 16198 | ac_sed_cmds=cat |
| 16199 | fi |
| 16200 | fi # test -n "$CONFIG_FILES" |
| 16201 | |
| 16202 | _ACEOF |
| 16203 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16204 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16205 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16206 | case $ac_file in |
| 16207 | - | *:- | *:-:* ) # input from stdin |
| 16208 | cat >$tmp/stdin |
| 16209 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16210 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16211 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16212 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16213 | * ) ac_file_in=$ac_file.in ;; |
| 16214 | esac |
| 16215 | |
| 16216 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16217 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16218 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16219 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16220 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16221 | X"$ac_file" : 'X\(/\)' \| \ |
| 16222 | . : '\(.\)' 2>/dev/null || |
| 16223 | echo X"$ac_file" | |
| 16224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16225 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16226 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16227 | /^X\(\/\).*/{ s//\1/; q; } |
| 16228 | s/.*/./; q'` |
| 16229 | { if $as_mkdir_p; then |
| 16230 | mkdir -p "$ac_dir" |
| 16231 | else |
| 16232 | as_dir="$ac_dir" |
| 16233 | as_dirs= |
| 16234 | while test ! -d "$as_dir"; do |
| 16235 | as_dirs="$as_dir $as_dirs" |
| 16236 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16237 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16238 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16239 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16240 | X"$as_dir" : 'X\(/\)' \| \ |
| 16241 | . : '\(.\)' 2>/dev/null || |
| 16242 | echo X"$as_dir" | |
| 16243 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16244 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16245 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16246 | /^X\(\/\).*/{ s//\1/; q; } |
| 16247 | s/.*/./; q'` |
| 16248 | done |
| 16249 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16250 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16251 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16252 | { (exit 1); exit 1; }; }; } |
| 16253 | |
| 16254 | ac_builddir=. |
| 16255 | |
| 16256 | if test "$ac_dir" != .; then |
| 16257 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16258 | # A "../" for each directory in $ac_dir_suffix. |
| 16259 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16260 | else |
| 16261 | ac_dir_suffix= ac_top_builddir= |
| 16262 | fi |
| 16263 | |
| 16264 | case $srcdir in |
| 16265 | .) # No --srcdir option. We are building in place. |
| 16266 | ac_srcdir=. |
| 16267 | if test -z "$ac_top_builddir"; then |
| 16268 | ac_top_srcdir=. |
| 16269 | else |
| 16270 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16271 | fi ;; |
| 16272 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16273 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16274 | ac_top_srcdir=$srcdir ;; |
| 16275 | *) # Relative path. |
| 16276 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16277 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16278 | esac |
| 16279 | |
| 16280 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 16281 | # the directories may not exist. |
| 16282 | case `pwd` in |
| 16283 | .) ac_abs_builddir="$ac_dir";; |
| 16284 | *) |
| 16285 | case "$ac_dir" in |
| 16286 | .) ac_abs_builddir=`pwd`;; |
| 16287 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 16288 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 16289 | esac;; |
| 16290 | esac |
| 16291 | case $ac_abs_builddir in |
| 16292 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16293 | *) |
| 16294 | case ${ac_top_builddir}. in |
| 16295 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 16296 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 16297 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 16298 | esac;; |
| 16299 | esac |
| 16300 | case $ac_abs_builddir in |
| 16301 | .) ac_abs_srcdir=$ac_srcdir;; |
| 16302 | *) |
| 16303 | case $ac_srcdir in |
| 16304 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 16305 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 16306 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 16307 | esac;; |
| 16308 | esac |
| 16309 | case $ac_abs_builddir in |
| 16310 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16311 | *) |
| 16312 | case $ac_top_srcdir in |
| 16313 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 16314 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 16315 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 16316 | esac;; |
| 16317 | esac |
| 16318 | |
| 16319 | |
| 16320 | |
| 16321 | if test x"$ac_file" != x-; then |
| 16322 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16323 | echo "$as_me: creating $ac_file" >&6;} |
| 16324 | rm -f "$ac_file" |
| 16325 | fi |
| 16326 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16327 | # use $as_me), people would be surprised to read: |
| 16328 | # /* config.h. Generated by config.status. */ |
| 16329 | if test x"$ac_file" = x-; then |
| 16330 | configure_input= |
| 16331 | else |
| 16332 | configure_input="$ac_file. " |
| 16333 | fi |
| 16334 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16335 | sed 's,.*/,,'` by configure." |
| 16336 | |
| 16337 | # First look for the input files in the build tree, otherwise in the |
| 16338 | # src tree. |
| 16339 | ac_file_inputs=`IFS=: |
| 16340 | for f in $ac_file_in; do |
| 16341 | case $f in |
| 16342 | -) echo $tmp/stdin ;; |
| 16343 | [\\/$]*) |
| 16344 | # Absolute (can't be DOS-style, as IFS=:) |
| 16345 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16346 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16347 | { (exit 1); exit 1; }; } |
| 16348 | echo "$f";; |
| 16349 | *) # Relative |
| 16350 | if test -f "$f"; then |
| 16351 | # Build tree |
| 16352 | echo "$f" |
| 16353 | elif test -f "$srcdir/$f"; then |
| 16354 | # Source tree |
| 16355 | echo "$srcdir/$f" |
| 16356 | else |
| 16357 | # /dev/null tree |
| 16358 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16359 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16360 | { (exit 1); exit 1; }; } |
| 16361 | fi;; |
| 16362 | esac |
| 16363 | done` || { (exit 1); exit 1; } |
| 16364 | _ACEOF |
| 16365 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16366 | sed "$ac_vpsub |
| 16367 | $extrasub |
| 16368 | _ACEOF |
| 16369 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16370 | :t |
| 16371 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16372 | s,@configure_input@,$configure_input,;t t |
| 16373 | s,@srcdir@,$ac_srcdir,;t t |
| 16374 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16375 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16376 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16377 | s,@builddir@,$ac_builddir,;t t |
| 16378 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16379 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16380 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16381 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16382 | rm -f $tmp/stdin |
| 16383 | if test x"$ac_file" != x-; then |
| 16384 | mv $tmp/out $ac_file |
| 16385 | else |
| 16386 | cat $tmp/out |
| 16387 | rm -f $tmp/out |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16388 | fi |
| 16389 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16390 | done |
| 16391 | _ACEOF |
| 16392 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16393 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16394 | # |
| 16395 | # CONFIG_HEADER section. |
| 16396 | # |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16397 | |
| 16398 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16399 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 16400 | # |
| 16401 | # ac_d sets the value in "#define NAME VALUE" lines. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16402 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16403 | ac_dB='[ ].*$,\1#\2' |
| 16404 | ac_dC=' ' |
| 16405 | ac_dD=',;t' |
| 16406 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16407 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16408 | ac_uB='$,\1#\2define\3' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16409 | ac_uC=' ' |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16410 | ac_uD=',;t' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16411 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16412 | 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] | 16413 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16414 | case $ac_file in |
| 16415 | - | *:- | *:-:* ) # input from stdin |
| 16416 | cat >$tmp/stdin |
| 16417 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16418 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16419 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16420 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16421 | * ) ac_file_in=$ac_file.in ;; |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16422 | esac |
| 16423 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16424 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16425 | echo "$as_me: creating $ac_file" >&6;} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16426 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16427 | # First look for the input files in the build tree, otherwise in the |
| 16428 | # src tree. |
| 16429 | ac_file_inputs=`IFS=: |
| 16430 | for f in $ac_file_in; do |
| 16431 | case $f in |
| 16432 | -) echo $tmp/stdin ;; |
| 16433 | [\\/$]*) |
| 16434 | # Absolute (can't be DOS-style, as IFS=:) |
| 16435 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16436 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16437 | { (exit 1); exit 1; }; } |
| 16438 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 16439 | echo "$f";; |
| 16440 | *) # Relative |
| 16441 | if test -f "$f"; then |
| 16442 | # Build tree |
| 16443 | echo "$f" |
| 16444 | elif test -f "$srcdir/$f"; then |
| 16445 | # Source tree |
| 16446 | echo "$srcdir/$f" |
| 16447 | else |
| 16448 | # /dev/null tree |
| 16449 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16450 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16451 | { (exit 1); exit 1; }; } |
| 16452 | fi;; |
| 16453 | esac |
| 16454 | done` || { (exit 1); exit 1; } |
| 16455 | # Remove the trailing spaces. |
| 16456 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16457 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16458 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16459 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16460 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16461 | # `conftest.undefs', that substitutes the proper values into |
| 16462 | # config.h.in to produce config.h. The first handles `#define' |
| 16463 | # templates, and the second `#undef' templates. |
| 16464 | # And first: Protect against being on the right side of a sed subst in |
| 16465 | # config.status. Protect against being in an unquoted here document |
| 16466 | # in config.status. |
| 16467 | rm -f conftest.defines conftest.undefs |
| 16468 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16469 | # Putting comments in sed scripts is not portable. |
| 16470 | # |
| 16471 | # `end' is used to avoid that the second main sed command (meant for |
| 16472 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16473 | # See the Autoconf documentation for `clear'. |
| 16474 | cat >confdef2sed.sed <<\_ACEOF |
| 16475 | s/[\\&,]/\\&/g |
| 16476 | s,[\\$`],\\&,g |
| 16477 | t clear |
| 16478 | : clear |
| 16479 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16480 | t end |
| 16481 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16482 | : end |
| 16483 | _ACEOF |
| 16484 | # If some macros were called several times there might be several times |
| 16485 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16486 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16487 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16488 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16489 | rm -f confdef2sed.sed |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16490 | |
| 16491 | # This sed command replaces #undef with comments. This is necessary, for |
| 16492 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16493 | # on some systems where configure will not decide to define it. |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16494 | cat >>conftest.undefs <<\_ACEOF |
| 16495 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16496 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16497 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16498 | # Break up conftest.defines because some shells have a limit on the size |
| 16499 | # of here documents, and old seds have small limits too (100 cmds). |
| 16500 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16501 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16502 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16503 | echo ' :' >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16504 | rm -f conftest.tail |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16505 | while grep . conftest.defines >/dev/null |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16506 | do |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16507 | # Write a limited-size here document to $tmp/defines.sed. |
| 16508 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16509 | # Speed up: don't consider the non `#define' lines. |
| 16510 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16511 | # Work around the forget-to-reset-the-flag bug. |
| 16512 | echo 't clr' >>$CONFIG_STATUS |
| 16513 | echo ': clr' >>$CONFIG_STATUS |
| 16514 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16515 | echo 'CEOF |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16516 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16517 | rm -f $tmp/in |
| 16518 | mv $tmp/out $tmp/in |
| 16519 | ' >>$CONFIG_STATUS |
| 16520 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16521 | rm -f conftest.defines |
| 16522 | mv conftest.tail conftest.defines |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16523 | done |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16524 | rm -f conftest.defines |
| 16525 | echo ' fi # grep' >>$CONFIG_STATUS |
| 16526 | echo >>$CONFIG_STATUS |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16527 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16528 | # Break up conftest.undefs because some shells have a limit on the size |
| 16529 | # of here documents, and old seds have small limits too (100 cmds). |
| 16530 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16531 | rm -f conftest.tail |
| 16532 | while grep . conftest.undefs >/dev/null |
| 16533 | do |
| 16534 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16535 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16536 | # Speed up: don't consider the non `#undef' |
| 16537 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16538 | # Work around the forget-to-reset-the-flag bug. |
| 16539 | echo 't clr' >>$CONFIG_STATUS |
| 16540 | echo ': clr' >>$CONFIG_STATUS |
| 16541 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16542 | echo 'CEOF |
| 16543 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16544 | rm -f $tmp/in |
| 16545 | mv $tmp/out $tmp/in |
| 16546 | ' >>$CONFIG_STATUS |
| 16547 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16548 | rm -f conftest.undefs |
| 16549 | mv conftest.tail conftest.undefs |
| 16550 | done |
| 16551 | rm -f conftest.undefs |
| 16552 | |
| 16553 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16554 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16555 | # use $as_me), people would be surprised to read: |
| 16556 | # /* config.h. Generated by config.status. */ |
| 16557 | if test x"$ac_file" = x-; then |
| 16558 | echo "/* Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16559 | else |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16560 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16561 | fi |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16562 | cat $tmp/in >>$tmp/config.h |
| 16563 | rm -f $tmp/in |
| 16564 | if test x"$ac_file" != x-; then |
| 16565 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 16566 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16567 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16568 | else |
| 16569 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16570 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16571 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16572 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16573 | X"$ac_file" : 'X\(/\)' \| \ |
| 16574 | . : '\(.\)' 2>/dev/null || |
| 16575 | echo X"$ac_file" | |
| 16576 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16577 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16578 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16579 | /^X\(\/\).*/{ s//\1/; q; } |
| 16580 | s/.*/./; q'` |
| 16581 | { if $as_mkdir_p; then |
| 16582 | mkdir -p "$ac_dir" |
| 16583 | else |
| 16584 | as_dir="$ac_dir" |
| 16585 | as_dirs= |
| 16586 | while test ! -d "$as_dir"; do |
| 16587 | as_dirs="$as_dir $as_dirs" |
| 16588 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 16589 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16590 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16591 | X"$as_dir" : 'X\(//\)$' \| \ |
| 16592 | X"$as_dir" : 'X\(/\)' \| \ |
| 16593 | . : '\(.\)' 2>/dev/null || |
| 16594 | echo X"$as_dir" | |
| 16595 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16596 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16597 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16598 | /^X\(\/\).*/{ s//\1/; q; } |
| 16599 | s/.*/./; q'` |
| 16600 | done |
| 16601 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 16602 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 16603 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 16604 | { (exit 1); exit 1; }; }; } |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16605 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16606 | rm -f $ac_file |
| 16607 | mv $tmp/config.h $ac_file |
| 16608 | fi |
| 16609 | else |
| 16610 | cat $tmp/config.h |
| 16611 | rm -f $tmp/config.h |
| 16612 | fi |
| 16613 | done |
| 16614 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16615 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16616 | cat >>$CONFIG_STATUS <<\_ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16617 | |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16618 | { (exit 0); exit 0; } |
| 16619 | _ACEOF |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16620 | chmod +x $CONFIG_STATUS |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16621 | ac_clean_files=$ac_clean_files_save |
| 16622 | |
| 16623 | |
| 16624 | # configure is writing to config.log, and then calls config.status. |
| 16625 | # config.status does its own redirection, appending to config.log. |
| 16626 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16627 | # by configure, so config.status won't be able to write to it; its |
| 16628 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16629 | # effectively closing config.log, so it can be properly (re)opened and |
| 16630 | # appended to by config.status. When coming back to configure, we |
| 16631 | # need to make the FD available again. |
| 16632 | if test "$no_create" != yes; then |
| 16633 | ac_cs_success=: |
| 16634 | ac_config_status_args= |
| 16635 | test "$silent" = yes && |
| 16636 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16637 | exec 5>/dev/null |
| 16638 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
Bram Moolenaar | c7453f5 | 2006-02-10 23:20:28 +0000 | [diff] [blame] | 16639 | exec 5>>auto/config.log |
Bram Moolenaar | 495de9c | 2005-01-25 22:03:25 +0000 | [diff] [blame] | 16640 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16641 | # would make configure fail if this is the last instruction. |
| 16642 | $ac_cs_success || { (exit 1); exit 1; } |
| 16643 | fi |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16644 | |
| 16645 | |